/* ========================================================================== Landing Fone - Pixel-perfect (mockup aprobado) ========================================================================== */

/* ===== Reset base (sin alterar el diseño) ===== */
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Montserrat",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
  background:#ffffff;
  color:#111;
}

/* Accesibilidad: labels invisibles (no afectan layout) */
.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

/* ===== Header ===== */
.site-header{
  height:92px;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
}
.site-header__inner{
  width:100%;
  max-width:1500px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.site-header__logo{
  height:44px;
  width:auto;
  display:block;
}

/* ===== Hero ===== */
.hero{
  height:625px;
  background-image:url("assets/Fondo.png");
  background-repeat:no-repeat;
  background-position:center top;
  background-size:cover;
  border-top:1px solid rgba(0,0,0,0.06);
  display:flex;
  align-items:stretch;
  justify-content:center;
}

.hero__inner{
  position:relative;
  width:100%;
  max-width:1500px;
  height:100%;
  padding:0 24px;
  display:flex;
  gap:0;
}

/* ===== Columna izquierda ===== */
.hero__left{
  position:relative;
  flex:0 0 54%;
  height:100%;
}

/* Texto superior pequeño */
.hero__kicker{
  position:absolute;
  left:278px;
  top:110px;
  margin:0;
  font-size:14px;
  font-weight:600;
  color:#111;
}

/* Titular grande */
.hero__headline{
  position:absolute;
  left:278px;
  top:130px;
  margin:0;
  font-size:44px;
  line-height:1.02;
  font-weight:800;
  letter-spacing:-0.5px;
  color:#111;
}

/* Visual */
.hero__visual{
  position:absolute;
  left:0;
  bottom:0;
  width:740px;
  height:auto;
  display:block;
  pointer-events:none;
  user-select:none;
  transform: scale(1.15);
  transform-origin: bottom left;
}

/* ===== Columna derecha ===== */
.hero__right{
  flex:1;
  height:100%;
  display:flex;
  align-items:flex-start;
  justify-content:center;
}
.hero__right-inner{
  width:620px;
  margin-top:90px;
  text-align:center;
}

/* Título derecha */
.form-title{
  margin:0;
  font-size:52px;
  line-height:1.05;
  font-weight:800;
  color:#111;
  letter-spacing:-0.6px;
}

/* Subtítulo */
.form-subtitle{
  margin:10px 0 22px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.6px;
  color:#111;
}

/* ===== Form ===== */
.form{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:16px;
}

.form__input{
  width:520px;
  height:56px;
  padding:0 26px;
  border:0;
  border-radius:16px;
  background:#ffffff;
  box-shadow:0 8px 22px rgba(0,0,0,0.10);
  font-family:inherit;
  font-size:14px;
  font-weight:700;
  color:#111;
  outline:none;
}

.form__input::placeholder{
  color:#111;
  opacity:1;
}

.form__button{
  margin-top:10px;
  width:260px;
  height:52px;
  border:0;
  border-radius:18px;
  background:#0b0b0b;
  color:#f4c400;
  font-family:inherit;
  font-size:18px;
  font-weight:400;
  cursor:pointer;
  box-shadow:0 10px 26px rgba(0,0,0,0.18);
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1200px){
  .hero{height:auto; min-height:606px}
  .hero__inner{max-width:1100px}
  .hero__kicker,.hero__headline{left:210px}
  .hero__visual{width:660px}
  .hero__right-inner{width:560px}
  .form__input{width:480px}
}

@media (max-width: 980px){
  .hero{
    height:auto;
    padding-bottom:28px;
  }

  .hero__inner{
    flex-direction:column;
    align-items:center;
    padding:0 18px 28px;
  }

  /* 🔥 FIX REAL RESPONSIVE */
  .hero__left{
    width:100%;
    flex:0 0 auto;
    height:auto;              /* ← CAMBIO CLAVE */
  }

  .hero__kicker{
    left:22px;
    top:36px;
    font-size:13px;
  }

  .hero__headline{
    left:22px;
    top:54px;
    font-size:40px;
  }

  .hero__visual{
    left:0;
    width:min(820px, 100%);
  }

  .hero__right{
    width:100%;
    justify-content:center;
  }

  .hero__right-inner{
    width:min(620px, 100%);
    margin-top:18px;
  }

  .form__input{
    width:min(520px, 100%);
  }
}

@media (max-width: 520px){
  .site-header{height:84px}
  .site-header__logo{height:38px}

  /* 🔥 FIX FINAL */
  .hero__left{
   width:100%;
  flex:0 0 auto;

  /* 🔥 clave: altura responsive */
  min-height: 220px;
  height: 45vw;        /* escala según pantalla */
  max-height: 320px;

  position: relative;
  }

  .hero__headline{font-size:30px}
  .form-title{font-size:34px}
  .form-subtitle{font-size:10px}

  .hero__visual{
    bottom:5px;
  }

  .form__button{width:240px}
}

/* Placeholder */
.form__input::placeholder {
  color: rgba(0, 0, 0, 0.45);
  opacity: 1;
  font-weight: 600;
}

/* Animación botón */
.form__button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.form__button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(0,0,0,0.25);
  filter: brightness(1.05);
}
.form__button:active {
  transform: translateY(0px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.form__msg{
  font-family: inherit;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}

/* Imagen responsive */
@media (max-width: 768px){
  .hero__visual{
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    transform: none !important;
    display: block;
    margin: 0 auto;
  }

  .hero__left{
    overflow: hidden;
  }
}
