/* ============================
   FUENTES Y VARIABLES
   ============================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&family=Lora:wght@400;500;600;700&display=swap');

:root {
  /* Colores */
  --color-principal: #6766DB;
  --color-principal-10: rgba(103, 102, 219, 0.10);

  --color-dorado: #D09D3E;
  --color-amarillo: #FCC433;
  --color-grisoscuro: #6A7282;
  --color-grisclaro: #dce3ecff;
  --color-negro: #000;

  --fondos: linear-gradient(180deg, #FFF 0%, #F9F9FF 50%, #F0F0FF 100%);

  /* Tipografías */
  --font-titulo: 'Lora', serif;
  --font-texto: 'Inter', sans-serif;

   --transition: 0.35s ease;

  /* Tamaños */
  --h1-size: 72px;
  --h2-size: 40px;
  --p-size: 18px;
}


/* ============================
   RESET
   ============================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  font-family: var(--font-texto);
  background: var(--fondos);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}




/* ============================
   HEADER / NAV
   ============================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: white;
  box-shadow: 0px 1.5px 6px rgba(103, 102, 219, 0.50);
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
}

.nav {
  width: 100%;
}

.nav ul {
  display: flex;
  align-items: center;
  width: 100%;
  list-style: none;
  padding: 0;
  margin: 0;
}


.nav li {
  margin-right: 32px;
}

/* LOGO A LA DERECHA */
.nav li.logo-item {
  margin-left: auto; /* se empuja a la derecha */
  margin-right: 32;
}

.logo {
  width: 36px; 
  height: auto;
}

.nav a{
  color: var(--color-negro);
  text-decoration: none;
  font-size:16px;
  font-weight:300;
  position: relative;
  padding-bottom:4px;
  transition: color var(--transition);
}

/* Subrayado animado */
.nav a::after{
  content: "";
  position: absolute;
  left:0;
  bottom:0;
  height:2px;
  width:0%;
  background: var(--color-principal);
  transition: width var(--transition);
}

.nav a:hover::after,
.nav a.active::after{ 
  width:100%; 
}

.nav a:hover, .nav a.active{ 
  color: var(--color-principal); 
}

.logo-link{
  display:inline-block;
  position:relative;
}

.logo.default{
  display:block;
}

.logo.hover{
  display:none;
}

/* === LOGO ACTIVO (HOME) === */
.logo-link.active .default{
  display:none;
}

.logo-link.active .hover{
  display:block;
}

.logo-link.active:hover .default{
  display:none;
}

.logo-link.active:hover .hover{
  display:block;
}



.nav-toggle{
  display:none;
}

.nav-burger{
  display:none;
  flex-direction:column;
  gap:6px;
  cursor:pointer;
}

.nav-burger span{
  width:26px;
  height:2px;
  background:#000;
  transition:0.3s ease;
}

/* ESTADO INICIAL */
.nav-burger span{
  width:26px;
  height:2px;
  background:#000;
  transition:transform 0.35s ease, opacity 0.25s ease;
  transform-origin:center;
}

/* ANIMACIÓN A X */
.nav-toggle:checked + .nav-burger span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle:checked + .nav-burger span:nth-child(2){
  opacity:0;
}

.nav-toggle:checked + .nav-burger span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}
/* ============================
   FIN HEADER / NAV
   ============================ */

/* ============================
   HERO
   ============================ */

.hero{
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
  width: 100%;
  padding-top: 200px;
  display: flex;
  justify-content: center;
}

.hero-inner{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;

  width: 100%;
  margin: 0 auto;
}

.hero-anim{
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to { opacity:1; transform: none; }
}

/* ============================
   ANIMACIÓN 
   ============================ */
.animacion {
  width: 220px;
  height: auto;
}

.titulo {
  font-family: var(--font-titulo);
  font-size: var(--h1-size);
  font-weight: 600;
  color: var(--color-principal);
  line-height: 1.15;
  text-align:center;
}



/* ============================
   CONTENIDO
   ============================ */
.contenido{
  position: relative;
  width: 100%;
  min-height: 100%;
  padding-bottom: 170px;
  z-index: 10;
  opacity:0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to { opacity:1; transform: none; }
}

.frase {
  width: 683px;
  margin: 110px auto 0 auto; 
  text-align: center;
  font-family: var(--font-titulo);
  color: var(--color-grisoscuro);
  font-weight: 500;
  font-size: 40px;
  line-height: normal;
}

/* bloque descripción-ILUSTRACIÓN */
  .bloque-descriptivo {
  width: 920px;
  display:flex;
  justify-content:center;
  align-items:center;
  gap:50px;
  margin: 120px auto 0 auto;
  padding: 30px 30px;
  background: var(--color-principal-10);
  border-radius: 40px;
  position: relative;
}

  .descripcion {
  width: 450px;
  font-size: 22px;
  color: var(--color-negro);
  line-height: 1.4;
  font-family: var(--font-texto);
}

.ilustracion {
  width: 240px;
  height: auto;
  margin-left: 0px; 
  margin-top: 0px;
  object-fit: contain;
}



/* CTA */
.cta{ 
  display:flex; 
  justify-content:center; 
  align-items:center; 
  text-align:center; 
  padding: 10px 0; 
}
.cta-inner{ 
  max-width:800px; 
  padding: 28px 16px; 
}

.cta-heading{
  font-family: var(--font-titulo);
  font-size:28px;
  font-weight:400;
  margin-bottom: 20px;
  margin-top:80px;
}

.estrella{
  width:48px;
  margin: 18px auto 28px;
  filter: drop-shadow(0 0 6px rgba(208,157,62,0.45));
  display:block;
  transition: transform 0.9s ease;
  animation: breathe 4s ease-in-out infinite;
}

@keyframes breathe {
  0% { transform: scale(1) rotate(0deg); opacity:0.95; }
  50% { transform: scale(1.04) rotate(180deg); opacity:1; }
  100% { transform: scale(1) rotate(0deg); opacity:0.95; }
}

.cta-sub{
  font-family: var(--font-titulo);
  font-size:40px;
  font-weight:500;
  color: var(--color-principal);
  margin-bottom:60px;
  line-height:1.05;
}

.cta-group {
  display: flex;
  gap: 28px; 
  flex-wrap: nowrap; 
  align-items:center;
  justify-content:center;
}

.cta-button{
  padding:12px 24px;
  border-radius:70px;
  text-decoration:none;
  background: var(--color-principal);
  color:#fff;
  font-size:15px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  box-shadow: 0 8px 18px rgba(103,102,219,0.12);
}

.cta-button:hover{
  background: var(--color-amarillo);
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(103,102,219,0.10);
}


/* ============================
   RESPONSIVE - MENU
   ============================ */

   @media (max-width: 780px) {
/* RESET TOTAL DEL NAV DESKTOP EN MÓVIL */
.nav ul {
  width: auto;
}

.nav-menu {
  margin: 0;
  padding: 0;
}
.nav-menu li {
  margin: 0;
}
.nav-menu .logo-item {
  margin-left: 0;
}
  /* =====================
     HEADER
  ====================== */
  .header {
    height: 72px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  /* =====================
     BOTÓN HAMBURGUESA
  ====================== */
  .nav-burger {
    display: flex;
    position: relative;
    z-index: 50;
  }
  /* =====================
     MENÚ OCULTO
  ====================== */
 .nav-menu {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  z-index: 40;
}
  /* =====================
     MOSTRAR MENÚ
  ====================== */
.nav-toggle:checked + .nav-burger + .nav-menu {
  transform: translateY(0);
}
  /* =====================
     ITEMS DEL MENÚ
  ====================== */
  .nav-menu li {
    width: 100%;
    display: flex;
    justify-content: center;
  }
  .nav-menu a {
    font-size: 24px;
    font-weight: 400;
    text-align: center;
  }
  /* =====================
     LOGO DENTRO DEL MENÚ
  ====================== */
  .nav-menu .logo-item {
    order: -1;
    display: flex;
    justify-content: center;
  }
  .nav-menu .logo.default,
  .nav-menu .logo.hover {
    width: 50px;
    height: auto;
  }
  .logo-link {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}




/* ============================
   RESPONSIVE - HOME
   ============================ */

@media (max-width:1024px){
   
  :root{
    --h1-size: 48px;
    --h2-size: 26px;
    --p-size: 17px;
  }

  .animacion{
    width: 150px;
  }

  .titulo{
    max-width: 500px;
  }
 .contenido{
 padding-left:60px;
 padding-right:60px;
}


  /* FRASE */
  .frase{
    width: 560px;
    font-size: 36px;
  }

  /* BLOQUE DESCRIPTIVO */
  .bloque-descriptivo{
    max-width: 680px;
    gap: 40px;
    margin-top: 100px;
    padding: 50px 50px;
  }

  .descripcion{
    width: 420px;
    font-size: 18px;
  }

  .ilustracion{
    width: 220px;
  }

  /* CTA */
  .cta-heading{
    font-size: 26px;
    margin-top: 70px;
  }

  .cta-sub{
    font-size: 34px;
    margin-bottom: 50px;
  }
}





@media (max-width:820px){
:root{
    --h1-size:44px;
    --h2-size: 26px;
  }

  .titulo{
    max-width: 420px;
  }
}







@media (max-width:780px){

  /* VARIABLES */
  :root{
    --h1-size: 40px;
    --h2-size: 28px;
    --p-size: 16px;
  }

   .hero-inner{
    flex-direction: column;
    margin-top:-20px;
  }

 /* CONTENIDO */
 .contenido{
 padding-left:50px;
 padding-right:50px;
}

  /* FRASE */
  .frase{
    width: 100%;
    max-width: 460px;
    font-size: 28px;
    padding: 0 20px;
    margin-top:70px;
  }

  /* BLOQUE DESCRIPTIVO */
  .bloque-descriptivo{
    width: 100%;
    max-width: 600px;
    flex-direction: column;
    gap: 30px;
    margin-top: 100px;
    padding: 50px 50px;
    text-align: center;
  }

  .descripcion{
    width: 100%;
    font-size: 17px;
  }

  .ilustracion{
    width: 200px;
  }

  /* CTA */
  .cta-heading{
    font-size: 24px;
    margin-top: 60px;
  }

  .cta-sub{
    font-size: 30px;
    margin-bottom: 60px;
  }

 .cta-group{
    flex-direction: column;
    gap: 20px;
     margin-bottom: -20px;
  }

  .cta-button{
    width: 100%;
    max-width: 180px;
    text-align: center;
  }
}



@media (max-width:600px){

  /* VARIABLES */
  :root{
    --h1-size: 36px;
    --h2-size: 24px;
    --p-size: 15px;
  }

    .hero-inner{
    margin-top:-40px;
  }
 
.contenido{
 padding-left:30px;
 padding-right:30px;
}


  /* FRASE */
  .frase{
    font-size: 20px;
    padding: 0 18px;
    margin-top: 50px;
  }

  /* BLOQUE DESCRIPTIVO */
  .bloque-descriptivo{
    margin-top: 70px;
    padding: 40px 40px;
    border-radius: 28px;
  }

  .descripcion{
    font-size: 16px;
    line-height: 1.45;
  }

  .ilustracion{
    width: 170px;
  }

  /* CTA */
  .cta-heading{
    font-size: 20px;
    margin-top: 50px;
  }

  .cta-sub{
    font-size: 24px;
    line-height: 1.1;
  }
}


