/* Estilos principales */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700;900&display=swap');

:root {
  --color-rojo: #AA151B;
  --color-amarillo: #F1BF00;
  --color-oro: #FFCC00;
  --color-oscuro: #232323;
  --color-gris: #777777;
  --color-claro: #f9f9f9;
  --gradiente-principal: linear-gradient(135deg, var(--color-rojo) 0%, var(--color-amarillo) 100%);
  --gradiente-oscuro: linear-gradient(135deg, var(--color-oscuro) 0%, #444444 100%);
  --sombra-1: 0 5px 15px rgba(0, 0, 0, 0.08);
  --sombra-2: 0 15px 30px rgba(0, 0, 0, 0.12);
  --radio: 10px;
  --transicion: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-oscuro);
  background-color: var(--color-claro);
}

.contenedor {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transicion);
}

ul {
  list-style: none;
}

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

/* Botones */
.boton {
  display: inline-block;
  padding: 1.5rem 3.5rem;
  font-weight: 600;
  font-size: 1.5rem;
  text-align: center;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transicion);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.boton-primario {
  background: var(--color-rojo);
  color: white;
  box-shadow: 0 10px 20px rgba(170, 21, 27, 0.2);
}

.boton-primario:hover {
  background: #8c1116;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(170, 21, 27, 0.3);
}

.boton-secundario {
  background: var(--color-amarillo);
  color: var(--color-oscuro);
  box-shadow: 0 10px 20px rgba(241, 191, 0, 0.2);
}

.boton-secundario:hover {
  background: #d1a400;
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(241, 191, 0, 0.3);
}

.boton-fantasma {
  background: transparent;
  border: 2px solid var(--color-rojo);
  color: var(--color-rojo);
}

.boton-fantasma:hover {
  background: var(--color-rojo);
  color: white;
  transform: translateY(-3px);
}

/* Header */
.cabecera {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: white;
  box-shadow: var(--sombra-1);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  height: 7rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--color-rojo);
}

.logo svg {
  width: 3.5rem;
  height: 3.5rem;
}

.nav {
  display: flex;
  align-items: center;
}

.menu {
  display: flex;
  gap: 3rem;
}

.menu-item a {
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--color-oscuro);
  padding: 0.5rem 0;
  position: relative;
}

.menu-item a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradiente-principal);
  transition: width 0.3s ease;
}

.menu-item a:hover {
  color: var(--color-rojo);
}

.menu-item a:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 2.5rem;
  height: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background-color: var(--color-rojo);
  transition: var(--transicion);
}

/* Hero */
.hero {
  background: var(--gradiente-principal);
  padding: 18rem 0 12rem;
  position: relative;
  overflow: hidden;
  color: white;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M0 0l60 60M60 0L0 60' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}

.hero-contenido {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 2rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.hero-subtitulo {
  font-size: 1.8rem;
  margin-bottom: 3.5rem;
  opacity: 0.9;
  font-weight: 300;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-botones {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

/* Ventajas */
.ventajas {
  padding: 10rem 0;
  background-color: white;
}

.seccion-encabezado {
  text-align: center;
  margin-bottom: 7rem;
}

.seccion-titulo {
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--color-oscuro);
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
}

.seccion-titulo::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--gradiente-principal);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
}

.seccion-descripcion {
  max-width: 700px;
  margin: 2rem auto 0;
  color: var(--color-gris);
  font-size: 1.7rem;
}

.ventajas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3.5rem;
}

.ventaja {
  background-color: var(--color-claro);
  border-radius: var(--radio);
  padding: 3rem;
  text-align: center;
  box-shadow: var(--sombra-1);
  transition: var(--transicion);
  position: relative;
  overflow: hidden;
}

.ventaja::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradiente-principal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.ventaja:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-2);
}

.ventaja:hover::before {
  transform: scaleX(1);
}

.ventaja-icono {
  margin: 0 auto 2.5rem;
  width: 7rem;
  height: 7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(170, 21, 27, 0.1);
  border-radius: 50%;
  color: var(--color-rojo);
  font-size: 3rem;
}

.ventaja-titulo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-oscuro);
}

.ventaja-texto {
  color: var(--color-gris);
  font-size: 1.5rem;
}

/* Proceso */
.proceso {
  padding: 12rem 0;
  background-color: var(--color-claro);
  position: relative;
}

.proceso::before,
.proceso::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100px;
}

.proceso::before {
  top: 0;
  background: white;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 50%);
}

.proceso::after {
  bottom: 0;
  background: white;
  clip-path: polygon(0 100%, 100% 50%, 100% 100%, 0 100%);
}

.proceso-contenedor {
  position: relative;
  z-index: 1;
}

.paso-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 5rem;
  counter-reset: paso;
}

.paso {
  text-align: center;
  position: relative;
  padding: 0 2rem;
}

.paso::before {
  counter-increment: paso;
  content: counter(paso);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--gradiente-principal);
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(170, 21, 27, 0.2);
}

.paso-contenido {
  background-color: white;
  padding: 5rem 2.5rem 3rem;
  border-radius: var(--radio);
  box-shadow: var(--sombra-1);
  transition: var(--transicion);
}

.paso:hover .paso-contenido {
  transform: translateY(-10px);
  box-shadow: var(--sombra-2);
}

.paso-titulo {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--color-oscuro);
}

.paso-texto {
  color: var(--color-gris);
}

/* CTA */
.cta {
  background: var(--gradiente-principal);
  padding: 10rem 0;
  color: white;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 0h60v60H0z' fill='none'/%3E%3Cpath d='M30 0v60M0 30h60' stroke='%23fff' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 30px 30px;
}

.cta-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.cta-titulo {
  font-size: 3.6rem;
  font-weight: 900;
  margin-bottom: 2rem;
}

.cta-texto {
  font-size: 1.7rem;
  margin-bottom: 4rem;
  opacity: 0.9;
}

.cta .boton {
  background: white;
  color: var(--color-rojo);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 1.6rem 4rem;
}

.cta .boton:hover {
  background: var(--color-claro);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* FAQ */
.faq {
  padding: 10rem 0;
  background-color: white;
}

.preguntas-contenedor {
  max-width: 800px;
  margin: 0 auto;
}

.preguntas-lista {
  margin-top: 5rem;
}

.pregunta {
  background-color: var(--color-claro);
  border-radius: var(--radio);
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--sombra-1);
}

.pregunta-cabecera {
  padding: 2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  font-size: 1.8rem;
  color: var(--color-oscuro);
}

.pregunta-toggle {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
  margin-left: 2rem;
}

.pregunta-toggle::before,
.pregunta-toggle::after {
  content: '';
  position: absolute;
  background-color: var(--color-rojo);
  transition: all 0.3s ease;
}

.pregunta-toggle::before {
  top: 11px;
  left: 0;
  width: 100%;
  height: 2px;
}

.pregunta-toggle::after {
  top: 0;
  left: 11px;
  width: 2px;
  height: 100%;
}

.pregunta.activa .pregunta-toggle::after {
  transform: rotate(90deg);
  opacity: 0;
}

.pregunta-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.pregunta.activa .pregunta-contenido {
  max-height: 1000px;
}

.pregunta-respuesta {
  padding: 0 2rem 2rem;
  color: var(--color-gris);
}

/* Footer */
.footer {
  background: var(--color-oscuro);
  color: white;
  padding: 6rem 0 2rem;
}

.footer-superior {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 4rem;
  margin-bottom: 5rem;
}

.footer-info {
  max-width: 350px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 2rem;
}

.footer-logo svg {
  width: 3.5rem;
  height: 3.5rem;
}

.footer-descripcion {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 2rem;
  font-size: 1.5rem;
}

.footer-titulo {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 2.5rem;
  position: relative;
}

.footer-titulo::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-amarillo);
}

.footer-enlaces li {
  margin-bottom: 1.2rem;
}

.footer-enlaces a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  transition: all 0.2s;
}

.footer-enlaces a:hover {
  color: white;
  margin-left: 5px;
}

.footer-inferior {
  text-align: center;
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Media Queries */
@media screen and (max-width: 991px) {
  html {
    font-size: 60%;
  }
  
  .hero h1 {
    font-size: 4rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 58%;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 5rem 3rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .menu.activo {
    right: 0;
  }
  
  .menu-item {
    width: 100%;
    margin-bottom: 2rem;
  }
  
  .menu-item a {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.8rem;
  }
  
  .menu-toggle.activo span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .menu-toggle.activo span:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.activo span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  .hero-botones {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-botones .boton {
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .footer-superior {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-info {
    margin: 0 auto;
  }
  
  .footer-logo {
    justify-content: center;
  }
  
  .footer-titulo::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 55%;
  }
  
  .hero h1 {
    font-size: 3.5rem;
  }
  
  .ventaja {
    padding: 2.5rem 2rem;
  }
}
