/* Configuraciones básicas */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&display=swap');

:root {
  --color-amarillo: #FCD116;
  --color-azul: #003893;
  --color-rojo: #CE1126;
  --color-oscuro: #222222;
  --color-claro: #f8f8f8;
  --color-texto: #333333;
  --color-texto-claro: #ffffff;
  --gradiente-principal: linear-gradient(135deg, var(--color-amarillo), var(--color-azul) 55%, var(--color-rojo));
  --gradiente-secundario: linear-gradient(135deg, var(--color-azul), var(--color-rojo));
  --sombra-suave: 0 5px 15px rgba(0, 0, 0, 0.1);
  --sombra-fuerte: 0 10px 25px rgba(0, 0, 0, 0.15);
  --transicion: all 0.3s ease;
}

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

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

body {
  font-family: 'Lato', sans-serif;
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-texto);
  background-color: var(--color-claro);
  overflow-x: hidden;
}

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

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

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

ul {
  list-style: none;
}

/* Botones */
.boton {
  display: inline-block;
  padding: 1.4rem 3rem;
  font-weight: 700;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transicion);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.6rem;
  border: none;
}

.boton-primario {
  background: var(--color-rojo);
  color: var(--color-texto-claro);
  box-shadow: 0 4px 12px rgba(206, 17, 38, 0.3);
}

.boton-primario:hover {
  background: #b50d1f;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(206, 17, 38, 0.4);
  color: var(--color-texto-claro);
}

.boton-secundario {
  background: var(--color-azul);
  color: var(--color-texto-claro);
  box-shadow: 0 4px 12px rgba(0, 56, 147, 0.3);
}

.boton-secundario:hover {
  background: #002b70;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 56, 147, 0.4);
  color: var(--color-texto-claro);
}

.boton-terciario {
  background: var(--color-amarillo);
  color: var(--color-oscuro);
  box-shadow: 0 4px 12px rgba(252, 209, 22, 0.3);
}

.boton-terciario:hover {
  background: #e0bb0e;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(252, 209, 22, 0.4);
  color: var(--color-oscuro);
}

/* Encabezado */
.encabezado {
  background-color: white;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  box-shadow: var(--sombra-suave);
}

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

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

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

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

.nav-lista {
  display: flex;
  gap: 3.5rem;
}

.nav-enlace {
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-texto);
  position: relative;
  padding: 0.5rem 0;
}

.nav-enlace::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradiente-principal);
  transition: width 0.3s ease;
}

.nav-enlace:hover::after {
  width: 100%;
}

.nav-enlace:hover {
  color: var(--color-azul);
}

.toggle-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 3rem;
  height: 2.5rem;
  position: relative;
  z-index: 100;
}

.toggle-menu span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-azul);
  position: absolute;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.toggle-menu span:nth-child(1) {
  top: 0;
}

.toggle-menu span:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}

.toggle-menu span:nth-child(3) {
  bottom: 0;
}

.toggle-menu.activo span:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.toggle-menu.activo span:nth-child(2) {
  opacity: 0;
}

.toggle-menu.activo span:nth-child(3) {
  transform: rotate(-45deg);
  bottom: 40%;
}

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

.hero::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M50 30 L75 50 L50 70 L25 50z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 80px;
}

.hero-contenido {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-texto-claro);
  max-width: 800px;
  margin: 0 auto;
}

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

.hero p {
  font-size: 1.8rem;
  margin-bottom: 3.5rem;
  opacity: 0.9;
}

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

/* Características */
.caracteristicas {
  padding: 10rem 0;
  background-color: var(--color-claro);
  position: relative;
}

.seccion-titulo {
  text-align: center;
  margin-bottom: 6rem;
}

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

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

.seccion-titulo p {
  font-size: 1.8rem;
  color: var(--color-texto);
  max-width: 700px;
  margin: 0 auto;
  margin-top: 2rem;
}

.caract-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
}

.caract-tarjeta {
  background: white;
  border-radius: 12px;
  padding: 3.5rem;
  box-shadow: var(--sombra-suave);
  transition: var(--transicion);
  text-align: center;
}

.caract-tarjeta:hover {
  transform: translateY(-10px);
  box-shadow: var(--sombra-fuerte);
}

.caract-icono {
  width: 8rem;
  height: 8rem;
  margin: 0 auto 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 3.5rem;
}

.caract-tarjeta:nth-child(1) .caract-icono {
  background: rgba(252, 209, 22, 0.15);
  color: var(--color-amarillo);
}

.caract-tarjeta:nth-child(2) .caract-icono {
  background: rgba(0, 56, 147, 0.15);
  color: var(--color-azul);
}

.caract-tarjeta:nth-child(3) .caract-icono {
  background: rgba(206, 17, 38, 0.15);
  color: var(--color-rojo);
}

.caract-titulo {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--color-oscuro);
}

.caract-texto {
  color: #666;
  font-size: 1.6rem;
}

/* Cómo funciona */
.como-funciona {
  padding: 10rem 0;
  background-color: white;
  position: relative;
}

.como-funciona::before,
.como-funciona::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 150px;
  background-color: var(--color-claro);
}

.como-funciona::before {
  top: 0;
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
}

.como-funciona::after {
  bottom: 0;
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
}

.pasos-contenedor {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.paso {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.6s forwards;
}

.paso:last-child {
  margin-bottom: 0;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.paso:nth-child(1) {
  animation-delay: 0.2s;
}

.paso:nth-child(2) {
  animation-delay: 0.4s;
}

.paso:nth-child(3) {
  animation-delay: 0.6s;
}

.paso-numero {
  flex-shrink: 0;
  width: 6rem;
  height: 6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradiente-secundario);
  color: white;
  font-size: 2.4rem;
  font-weight: 700;
  border-radius: 50%;
  margin-right: 3rem;
  box-shadow: var(--sombra-suave);
}

.paso-contenido h3 {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: var(--color-azul);
}

.paso-contenido p {
  color: #666;
  font-size: 1.6rem;
}

/* Llamada a la acción */
.cta {
  background: var(--gradiente-principal);
  padding: 12rem 0;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-patron {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cpath d='M20 20 L60 20 L60 60 L20 60z' fill='%23ffffff' fill-opacity='0.05'/%3E%3C/svg%3E");
  background-size: 80px;
}

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

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

.cta p {
  font-size: 1.8rem;
  margin-bottom: 4rem;
  opacity: 0.9;
}

.cta .boton {
  background: white;
  color: var(--color-azul);
  font-weight: 800;
  padding: 1.8rem 4rem;
  font-size: 1.8rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.cta .boton:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Preguntas frecuentes */
.faq {
  padding: 10rem 0;
  background-color: var(--color-claro);
}

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

.acordeon {
  margin-top: 5rem;
}

.acordeon-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 2rem;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
}

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

.acordeon-header:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.acordeon-icono {
  width: 24px;
  height: 24px;
  position: relative;
}

.acordeon-icono:before,
.acordeon-icono:after {
  content: '';
  position: absolute;
  background-color: var(--color-azul);
  transition: all 0.3s ease-in-out;
}

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

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

.acordeon-item.activo .acordeon-header {
  background-color: rgba(0, 56, 147, 0.05);
}

.acordeon-item.activo .acordeon-icono:after {
  transform: rotate(90deg);
  opacity: 0;
}

.acordeon-contenido {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 2rem;
}

.acordeon-item.activo .acordeon-contenido {
  max-height: 50rem;
  padding-bottom: 2rem;
}

/* Pie de página */
.footer {
  background: var(--color-oscuro);
  color: white;
  padding: 8rem 0 2rem;
}

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

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

.footer-logo svg {
  width: 40px;
  height: 40px;
}

.footer-about p {
  opacity: 0.7;
  margin-bottom: 2rem;
}

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

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

.footer-links li {
  margin-bottom: 1.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.derechos {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.4rem;
  opacity: 0.7;
}

/* Media Queries */
@media screen and (max-width: 991px) {
  html {
    font-size: 58%;
  }
  
  .seccion-titulo h2 {
    font-size: 3.2rem;
  }
  
  .hero h1 {
    font-size: 4.2rem;
  }
}

@media screen and (max-width: 768px) {
  html {
    font-size: 55%;
  }
  
  .toggle-menu {
    display: block;
  }
  
  .nav-lista {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: white;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 10rem 3rem 3rem;
    transition: right 0.3s ease;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 99;
    gap: 2.5rem;
  }
  
  .nav-lista.activo {
    right: 0;
  }
  
  .nav-item {
    width: 100%;
  }
  
  .nav-enlace {
    display: block;
    width: 100%;
    padding: 1rem 0;
    font-size: 1.8rem;
  }
  
  .paso {
    flex-direction: column;
  }
  
  .paso-numero {
    margin-right: 0;
    margin-bottom: 2rem;
  }
  
  .hero-botones {
    flex-direction: column;
    align-items: center;
  }
  
  .hero-botones .boton {
    width: 100%;
  }
}

@media screen and (max-width: 480px) {
  html {
    font-size: 50%;
  }
  
  .hero h1 {
    font-size: 3.6rem;
  }
  
  .footer {
    padding-top: 6rem;
  }
  
  .caract-tarjeta {
    padding: 3rem 2rem;
  }
}
