* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  height: auto;
}

html {
  scroll-behavior: smooth;
}

body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif;
  background: #d1d1d1;
  color: #000000;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* HERO */
.hero {
  min-height: 100vh;
  padding: 24px 8%;
  background: #d7d7d7;
  position: relative;
  overflow: hidden;
}

.hero-logo {
  position: absolute;
  left: 8%;
  top: 60px;
  width: 260px;
  opacity: 1;
  z-index: 1;
  pointer-events: none;
}

.navbar,
.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 90px;
  position: relative;
  z-index: 2;
}

/* NAV */
.navbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 70px;
  flex-wrap: wrap;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #000000;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #e6007e;
}

/* HERO CONTENT */
.hero-content {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}

.tag {
  color: #e6007e;
  font-weight: bold;
  margin-bottom: 14px;
}

.hero-text h1 {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text p {
  color: #555555;
  max-width: 600px;
  margin-bottom: 28px;
}

/* BOTONES */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: bold;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn.primary {
  background: #e6007e;
  color: #ffffff;
}

.btn.primary:hover {
  background: #ff4faf;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(230, 0, 126, 0.35);
}

.btn.secondary {
  border: 1px solid #e6007e;
  color: #e6007e;
}

.btn.secondary:hover {
  background: #d9d9d9;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(230, 0, 126, 0.35);
}

/* TARJETA HERO */
.hero-card {
  background: #ffffff;
  color: #000000;
  padding: 28px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* TIP PRO */
}

.hero-card h3 {
  margin-bottom: 16px;
}

.hero-card ul {
  padding-left: 20px;
}

.hero-card li {
  margin-bottom: 10px;
}

/* SECCIONES */
.section {
  padding: 80px 8%;
}

#beneficios {
  background: #d7d7d7;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
}

.section-text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
  color: #555555;
}

.alt {
  background: #d4d4d4;
}

.titulo-con-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.logo-inline {
  width: 250px;
  height: auto;
  vertical-align: middle;
}

/* CARDS */
.cards,
.benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card,
.benefit {
  background: #ffffff;
  color: #000000;
  padding: 24px;
  border-radius: 16px;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* TIP PRO */
}

.card:hover,
.benefit:hover {
  transform: translateY(-5px);
}

.card h3,
.benefit h3 {
  margin-bottom: 10px;
  color: #e6007e;
}

.card p,
.benefit p {
  color: #333333;
}

/* PROCESO */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step {
  background: #ffffff;
  color: #000000;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  transition: transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.08); /* TIP PRO */
}

.step span {
  display: inline-flex;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: #e6007e;
  color: #ffffff;
  font-weight: bold;
  margin-bottom: 14px;
}

.step:hover {
  transform: translateY(-5px);
}

/* PORTAFOLIO */
.portfolio {
  text-align: center;
  background: #d1d1d1;
}

/* BOTÓN */
.portfolio-toggle {
  background: #e6007e; /* más oscuro */
  color: #ffffff;
  border: none;
  padding: 14px 24px;
  border-radius: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s ease;
  margin-bottom: 28px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

.portfolio-toggle:hover {
  background: #e6007e;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(230, 0, 126, 0.3);
}

/* PANEL */
.portfolio-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 50px;

  max-height: 0;
  overflow: hidden;
  opacity: 0;

  transition:
    max-height 0.6s ease,
    opacity 0.4s ease,
    padding 0.4s ease;

  width: 100%;
}

/* PANEL ACTIVO */
.portfolio-panel.active {
  max-height: 2000px;
  opacity: 1;
  padding: 20px 0;
}

/* TARJETAS */
.portfolio-panel a {
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 20px;

  transition: 0.3s ease;

  background: transparent;
}

/* HOVER */
.portfolio-panel a:hover {
  transform: translateY(-6px) scale(1.05);
}

/* IMÁGENES */
.portfolio-panel img {
  width: 140px;
  max-width: 100%;
  height: auto;
  object-fit: contain;

  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    filter 0.3s ease;
}

/* HOVER */
.portfolio-panel a:hover img {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

/* CONTACTO */
.contact {
  text-align: center;
}

.contact-form {
  max-width: 650px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #cccccc;
  border-radius: 10px;
  outline: none;
  font-size: 1rem;
}

/* MENSAJE */
.form-message {
  margin-top: 16px;
  color: #e6007e;
  font-weight: bold;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 58px;
  height: 58px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 999;
  transition: 0.3s ease;
  border: none;
  cursor: pointer;
}

.whatsapp-float:hover {
  background: #32e678;
  transform: translateY(-3px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.25);
}

/* FOOTER */
.footer {
  text-align: center;
  padding: 24px;
  background: #d4d4d4;
  color: #555555;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding: 10px 8% 60px;
  }

 .navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 15px; /* menos espacio entre navbar y logo */
    padding: 12px 14px;
    background: #ffffff; /* hace que se distinga */
    border-radius: 16px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 3;
  }

  .nav-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    width: 100%;
    font-size: 0.85rem;
    flex-wrap: wrap;
  }
  
    .nav-links a {
    color: #000000;
    font-weight: 600;
  }

  .nav-links a:hover {
    color: #e6007e;
  }

  .hero-logo {
    position: static !important;
    transform: none !important;
    display: block;
    width: 350px;
    margin: 18px auto 28px;
    opacity: 1;
    z-index: 1;
  }

  .hero-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 0;
    text-align: left;
  }

  .hero-text h1 {
    font-size: 2rem;
    line-height: 1.2;
  }

  .hero-text p {
    font-size: 0.95rem;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 14px;
  }

  .btn {
    width: fit-content;
  }

  .hero-card {
    margin-top: 10px;
  }

  .cards {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .card {
    width: 100%;
  }

   .benefits {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .benefits {
    width: 100%;
  }

    .steps {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .step {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 2px 6% 55px;
  }

  .navbar {
    padding: 10px 12px;
    border-radius: 14px;
    margin-bottom: 10px;
  }

  .nav-links {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    font-size: 0.75rem;
  }

  .hero-content {
    width: 100%;
    overflow-x: hidden;
  }

  .hero-card {
    width: 100%;
  }

  .hero-logo {
    width: 350px;
    margin: 14px auto 25px;
  }

  .hero-text h1 {
    font-size: 1.8rem;
  }

  .btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }

    .cards {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .card {
    width: 100%;
    padding: 22px;
  }

    .benefits {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .benefits {
    width: 100%;
    padding: 22px;
  }

    .steps {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .step {
    width: 100%;
    padding: 22px;
  }
  .logo-inline {
  width: 200px;
  }
  
  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 52px;
    height: 52px;
    font-size: 1.8rem;
  }

    .portfolio-panel a {
    min-height: 140px;
    padding: 20px;
  }

  .portfolio-panel img {
    width: 90px;
  }

}

@media (hover: none) {
  .btn:hover,
  .card:hover,
  .benefit:hover,
  .portfolio-toggle:hover,
  .portfolio-panel a:hover,
  .nav-links a:hover {
    transform: none;
    box-shadow: none;
  }

  .btn.primary:hover {
    background: #e6007e;
  }

  .btn.secondary:hover {
    background: transparent;
  }

  .portfolio-toggle:hover {
    background: #e6007e;
  }

  .portfolio-panel a:hover {
    background: #f2f2f2;
    color: #000000;
  }

  .nav-links a:hover {
    color: #000000;
  }

  .card:hover,
  .benefit:hover {
    transform: none;
  }
}

@media (hover: none) {
  .btn:active,
  .portfolio-toggle:active,
  .portfolio-panel a:active {
    transform: scale(0.97);
  }

  .btn.primary:active,
  .portfolio-toggle:active {
    background: #c4006b;
  }
}
