/* ============================
   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: 64px;
  --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;
  color: var(--color-negro);
  -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;
  margin-right: 32;
}

.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 {
  width: 36px;
  height: auto;
  display: block;
}

.logo.hover {
  width: 36px;
  height: auto;
  display: none;
}

.logo-link:hover .default {
  display: none;
}

.logo-link: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
   ============================ */



/* ============================
   CONTENIDO
   ============================ */

.contact-container {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 150px;
  padding-bottom:200px; 
  padding-left:30px;
  padding-right:30px;
  width: 100%;
  display: flex;
  gap: 180px;
  align-items: flex-start;
  opacity:0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to { opacity:1; transform: none; }
}


.left-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 420px;
}


.titulo {
color: var(--color-principal);
font-size: 70px; 
font-family: Lora; 
font-weight: 600; 
line-height: 80px; 
word-wrap: break-word
}

.descripcion {
width: 405px; 
color: var(--color-grisoscuro); 
font-size: 20px; 
font-family: Lora; 
font-weight: 400; 
line-height: 24px; 
word-wrap: break-word
}



.info {
  width: 420px;
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-title {
  font-family: Lora, serif;
  font-size: 72px;
  font-weight: 500;
  color: var(--color-principal);
  line-height: 1;
  margin-bottom: 20px;
}

.info-text {
  font-family: Lora, serif;
  font-size: 20px;
  line-height: 24px;
  color: var(--color-grisoscuro);
  margin-bottom: 20px;
}

/* =======================
      ITEMS DE CONTACTO
======================= */
.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.info-item img {
  width: 20px;
  height: 20px;
}

.circle-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-principal-10);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.info-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-grisoscuro);
}

.info-value {
  font-family: Lora, serif;
  font-size: 18px;
  font-weight: 500;
  color: var(--color-negro);
}

.info-value a {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.info-value a:hover {
  color: var(--color-principal);
}


/* ============================
   CONTENEDOR DEL FORMULARIO
   ============================ */

.form-right {
    width: 600px;
    background: white;
    border-radius: 30px;
    box-shadow: 0px 4px 6px -4px rgba(0,0,0,0.1);
    outline: 0.8px solid rgba(103,102,219,0.10);
    outline-offset: -0.8px;
    padding: 0;
    overflow: hidden;
    font-family: Inter, sans-serif;
}

/* ======================= 
    PASOS DEL FORMULARIO 
    ======================= */ 
    .steps-header { 
      background: linear-gradient(180deg, #ffffff 0%, #F9F9FF 50%, #F0F0FF 100%); 
      padding: 16px; 
      display: flex; 
      justify-content: center; 
      align-items: center; 
      gap: 12px; 
    } 

    

      .step { 
        display: flex; 
        align-items: 
        center; gap: 8px; 
      } 

      
      .step-circle { 
        width: 30px; 
        height: 30px; 
        border-radius: 50%; 
        background: var(--color-grisclaro); 
        display: flex; 
        justify-content: center; 
        align-items: center; 
        font-size: 14px; 
      } 
        
        .step.active .step-circle { 
          background: var(--color-principal); 
          color: white; 
          box-shadow: 0px 4px 6px -4px rgba(103, 102, 219, 0.30); 
        } 

        .step-line { 
          width: 150px; 
          height: 4px; 
          border-radius: 4px; 
          background: var(--color-grisclaro); 
        } 

          .step-label { 
            text-align: center; 
            font-family: Lora, serif; 
            font-size: 14px; 
            color: var(--color-principal); 
            margin-top: 12px; 
          }



/* ============================
   FORMULARIO INTERNO
   ============================ */

.formulario {
    display: flex;
    flex-direction: column;
}


.formulario label {
    padding-top: 14px; 
    padding-left: 40px; 
    padding-right: 40px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-grisoscuro);
    font-size: 14px;
    font-weight: 500;
    font-family: Lora;
}

.fila-doble {
    display: flex;
    gap: 36px;
    margin-top:6px;
    padding-left: 40px;
    padding-right: 40px;
}

.fila-doble label {
    width: 50%;
    padding-left: 0;
    padding-right: 0;
}

.fila-edad {
    width: 200px;   
}


.with-icon span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.9;
}



/* Inputs estilo tarjeta */
.formulario input,
.formulario textarea {
    height: 40px;
    padding: 4px 12px;
    background: white;
    border-radius: 14px;
    outline: 0.8px solid var(--color-grisclaro);
    border: none;
    font-size: 14px;
    font-family: Inter, sans-serif;
    color: var(--color-grisoscuro);
}

.formulario textarea {
    height: 40px;
    resize: none;
}





/* ============================
   SELECT IGUAL A INPUT
============================ */
.formulario select {
    height: 40px;
    padding: 4px 40px 4px 12px;
    width:300px;
    background: white url("/iconos/desplegable.svg") no-repeat right 12px center;
    background-size: 14px;
    border-radius: 14px;
    outline: 0.8px solid var(--color-grisclaro);
    border: none;
    font-size: 14px;
    font-family: Inter, sans-serif;
    color: var(--color-grisoscuro);
    cursor: pointer;
    appearance: none;
}


/* Textarea más alto */
.formulario textarea {
    height: 100px;
    padding: 10px 12px;
    resize: vertical;
}


/* ============================
   BOTONES
============================ */
.botones-navegacion {
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    margin-top: 20px;
    margin-bottom: 24px;
}

.botones-navegacion button {
    margin: 0;
}

/* BOTÓN ANTERIOR */
.btn-prev {
    width: 120px;
    height: 40px;
    background: white;
    color: var(--color-principal);
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    border: 1px solid var(--color-principal);
    box-shadow: none;
}

.btn-prev:hover {
    background: #F3F3FF;
    border:none;
}

/* BOTÓN SIGUIENTE + ENVIAR */
.btn-next,
button[type="submit"] {
    width: 120px;
    height: 40px;
    background: var(--color-principal);
    color: white;
    font-size: 14px;
    font-weight: 500;
    border-radius: 100px;
    border: none;
    box-shadow: 0px 4px 6px -4px rgba(103,102,219,0.30);
}

.btn-next:hover,
button[type="submit"]:hover {
    opacity: 0.8;
}



/* Ocultar pasos */
.form-step {
    display: none;
}

.form-step.active {
    display: flex;
    flex-direction: column;
}


/* ESTADOS DE LOS PASOS */
.step.active .step-circle {
    background: var(--color-principal);
    color: white;
    box-shadow: 0px 4px 6px -4px rgba(103, 102, 219, 0.30);
}

/* PASO COMPLETADO */
.step.completed .step-circle {
    background: rgba(103, 102, 219, 0.25); /* morado claro */
    color: var(--color-principal);
    font-weight: 700;
    position: relative;
}

/* Meter check */
.step.completed .step-circle::before {
    content: "✓";
    font-size: 18px;
    font-weight: 700;
    color: var(--color-principal);
}

/* Ocultamos el número cuando está completado */
.step.completed .step-circle {
    font-size: 0;
}

/* LÍNEA COMPLETADA */
.step.completed .step-line {
    background: rgba(103, 102, 219, 0.25);
}

/* ESTADO FUTURO (por defecto) */
.step .step-circle {
    background: var(--color-grisclaro);
    color: #6A7282;
}



/* ============================
   CHECKBOX POLÍTICA PRIVACIDAD
============================ */
.checkbox-legal {
  display: flex;
  align-items: flex-start;
  padding: 20px 40px 0 40px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: var(--color-grisoscuro);
  cursor: pointer;
  user-select: none;
}

/* Ocultamos el checkbox nativo */
.checkbox-legal input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Caja visual */
.custom-checkbox {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  outline: 1px solid var(--color-grisoscuro);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), outline var(--transition);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Check */
.custom-checkbox::after {
  content: "✓";
  font-size: 12px;
  font-weight: 700;
  color: white;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--transition), transform var(--transition);
}

/* Estado checked */
.checkbox-legal input:checked + .custom-checkbox {
  background: var(--color-principal);
  outline: 1px var(--color-principal);
}

.checkbox-legal input:checked + .custom-checkbox::after {
  opacity: 1;
  transform: scale(1);
}

/* Texto */
.checkbox-text {
  line-height: 1.4;
}

/* Link */
.checkbox-text a {
  color: var(--color-principal);
  text-decoration: none;
  font-weight: 500;
}

.checkbox-text a:hover {
  text-decoration: underline;
}



/* ============================
   MENSAJE DE GRACIAS
============================ */
.thanks-message {
  display: none;
  padding: 80px 40px;
  text-align: center;
}

.thanks-message h2 {
  font-family: var(--font-titulo);
  font-size: 32px;
  color: var(--color-principal);
  margin-bottom: 16px;
}

.thanks-message p {
  font-family: var(--font-texto);
  font-size: 16px;
  color: var(--color-grisoscuro);
  line-height: 1.5;
}




/* ============================
   RESPONSIVE
   ============================ */
@media (max-width:1200px){

  .contact-container{
    gap: 100px;
    padding-left:60px;
    padding-right:60px;
  }

  .left-column{
    width: 360px;
  }

  .titulo{
    font-size: 52px;
    line-height: 64px;
  }

  .descripcion{
    width: 100%;
    font-size: 18px;
    line-height: 22px;
  }

  .info{
    width: 100%;
  }

  .info-title{
    font-size: 56px;
  }

  .info-text{
    font-size: 18px;
  }

  .form-right{
    width: 520px;
  }

  .step-line{
    width: 120px;
  }
}


@media (max-width:980px){

  .contact-container{
    flex-direction: column;
    gap: 56px;
    padding-top: 135px;
    padding-left:30px;
    padding-right:30px;
    align-items: center;
  }

  .left-column,
  .info,
  .form-right{
    width: 100%;
    max-width: 520px;
  }

  /* TEXTO */
  .titulo{
    font-size: 48px;
    line-height: 50px;
    text-align: left;
  }

  .descripcion{
    width: 90%;
    font-size: 17px;
    line-height: 22px;
  }

  .info-title{
    font-size: 46px;
  }

  .info-value{
    font-size: 16px;
  }

  /* FORMULARIO */
  .form-right{
    border-radius: 26px;
  }

  .fila-doble{
    gap: 20px;
  }

  .step-line{
    width: 100px;
  }
}


@media (max-width:600px){

  .contact-container{
    flex-direction: column;
    gap: 48px;
    padding-left:30px;
    padding-right:30px;
  
  }

  .left-column,
  .info,
  .form-right{
    width: 100%;
  }

  .titulo{
    font-size: 36px;
    line-height: 1.2;
  }

  .descripcion{
    font-size: 16px;
    line-height: 22px;
  }

  
  .info-value{
    font-size: 15px;
  }

  /* FORMULARIO */
  .form-right{
    border-radius: 20px;
  }

  .step-line{
    display: none;
  }

  .steps-header{
    gap: 16px;
  }

  .formulario select {
    width:250px;
  }
}


/* ============================
   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;
  }
}
