:root{
  --bg: #faf8f2;
  --bg-soft: #f6efe4;
  --white: #ffffff;
  --text: #2f2a24;
  --muted: #6f665b;
  --primary: #7A5A34;
  --primary-dark: #624725;
  --border: #e7ddd0;
  --border-strong: #d7c4a8;
  --shadow: 0 18px 50px rgba(45, 32, 18, 0.08);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1140px;
}

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

html{
  scroll-behavior:smooth;
}

body{
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height:1.55;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

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

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(var(--container), calc(100% - 32px));
  margin:0 auto;
}

/* HEADER */

.site-header{
  position:sticky;
  top:0;
  z-index:20;
  background:rgba(250,248,242,0.90);
  backdrop-filter:blur(10px);
  border-bottom:1px solid rgba(122,90,52,0.08);
}

.header-inner{
  min-height:74px;
  display:flex;
  align-items:center;
}

.logo{
  height:54px;
  width:auto;
  object-fit:contain;
}

/* HERO */

.hero{
  position:relative;
  overflow:hidden;
  background:
    linear-gradient(
      90deg,
      rgba(18,14,10,0.82) 0%,
      rgba(18,14,10,0.72) 38%,
      rgba(18,14,10,0.48) 62%,
      rgba(18,14,10,0.38) 100%
    ),
    url("/img/hero.jpg") center center / cover no-repeat;
    padding:36px 0 36px;
}

.hero-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(246,239,228,0.08) 0%, rgba(246,239,228,0.00) 100%);
  pointer-events:none;
}

.hero-grid{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:40px;
  align-items:center;
}

.hero-copy{
  color:#fff;
  text-shadow:0 2px 12px rgba(0,0,0,0.22);
  max-width:620px;
}


.eyebrow{
  display:inline-block;
  margin-bottom:16px;
  padding:8px 14px;
  border:1px solid rgba(255,255,255,0.18);
  border-radius:999px;
  background:rgba(255,255,255,0.10);
  font-size:0.93rem;
  font-weight:600;
  letter-spacing:0.01em;
}

.hero h1{
  font-size:clamp(2.1rem, 3.4vw, 4rem);
  line-height:1.05;
  font-weight:800;
  letter-spacing:-0.03em;
  margin-bottom:18px;
  max-width:20ch;
  color:#fff;
  text-shadow:
    0 2px 10px rgba(255,255,255,0.04),
    0 3px 18px rgba(0,0,0,0.38);
}

.hero-text{
  font-size:clamp(1.05rem, 1.7vw, 1.28rem);
  font-weight:600;
  color:rgba(255,255,255,0.9);
  text-shadow:
    0 1px 8px rgba(255,255,255,0.03),
    0 2px 12px rgba(0,0,0,0.3);
}

.hero-points span{
  font-size:0.97rem;
  font-weight:700;
  color:#fff;
  text-shadow:0 1px 8px rgba(0,0,0,0.28);
  background:rgba(255,255,255,0.10);
  border:1px solid rgba(255,255,255,0.14);
  padding:10px 14px;
  border-radius:999px;
}

.hero-points{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  margin-bottom:24px;
}

.cta{
  display:flex;
  width:fit-content;
  align-items:center;
  justify-content:center;
  min-height:54px;
  padding:0 24px;
  border-radius:999px;
  font-weight:700;
  font-size:1rem;
  transition:transform .18s ease, opacity .18s ease, box-shadow .18s ease;
  margin:0 auto;
}

.cta:hover{
  transform:translateY(-1px);
  opacity:0.96;
}

.cta-primary{
  background:var(--primary);
  color:#fff;
  box-shadow:0 10px 30px rgba(122,90,52,0.22);
}

.hero-card{
  display:flex;
  justify-content:flex-end;
}

.expert-box{
  width:100%;
  max-width:520px;
  background:rgba(255,255,255,0.96);
  border:1px solid rgba(255,255,255,0.55);
  border-radius:var(--radius-xl);
  box-shadow:var(--shadow);
  padding:22px;
}

.expert-photo-wrap{
  margin-bottom:16px;
}

.expert-photo{
  width:100%;
  height:400px;
  object-fit:cover;
  border-radius:20px;
}

.expert-name{
  font-size:1.3rem;
  font-weight:700;
  color:var(--primary);
  margin-bottom:10px;
}

.expert-desc{
  color:var(--muted);
  font-size:0.98rem;
  margin-bottom:10px;
}

/* FORM */

.quick-form{
  padding:38px 0 34px;
  margin-top:-18px;
  position:relative;
  z-index:2;
}

.quick-form-box{
  background:var(--bg-soft);
  border:1px solid var(--border-strong);
  border-radius:32px;
  box-shadow:var(--shadow);
  padding:34px 26px;
}

.quick-form-head{
  text-align:center;
  max-width:760px;
  margin:0 auto 22px;
}

.quick-form-head h2{
  font-size:clamp(1.8rem, 3vw, 2.7rem);
  line-height:1.1;
  color:var(--primary);
  margin-bottom:12px;
  letter-spacing:-0.02em;
}

.quick-form-head p{
  color:var(--muted);
  font-size:1.05rem;
}

.quick-benefits{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:14px;
  margin-bottom:22px;
}

.quick-benefit{
  background:rgba(255,255,255,0.82);
  border:1px solid var(--border);
  border-radius:18px;
  padding:14px 16px;
  text-align:center;
  font-size:0.97rem;
  color:var(--text);
  font-weight:600;
}

.jotform-wrap{
  max-width:650px;
  width:100%;
  margin:0 auto;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:42px;
  overflow:hidden;
}

/* SECTIONS */

.pain-section,
.proof-section,
.statement-section,
.trust-section,
.final-cta{
  padding:78px 0;
}

.section-heading{
  max-width:820px;
  margin-bottom:30px;
}

.section-heading.center{
  text-align:center;
  margin-left:auto;
  margin-right:auto;
}

.section-kicker{
  color:var(--primary);
  font-size:0.92rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.08em;
  margin-bottom:12px;
}

.section-heading h2{
  font-size:clamp(1.9rem, 3vw, 3rem);
  line-height:1.08;
  letter-spacing:-0.03em;
  margin-bottom:12px;
  color:var(--text);
}

.section-sub{
  color:var(--muted);
  font-size:1.05rem;
}

/* PAINS */

.pain-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:18px;
}

.pain-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:26px 22px;
  box-shadow:0 10px 30px rgba(45, 32, 18, 0.04);
}

.pain-card h3{
  font-size:1.15rem;
  color:var(--primary);
  margin-bottom:10px;
}

.pain-card p{
  color:var(--muted);
  font-size:0.98rem;
}

/* PROOF */

.proof-section{
  background:#fff;
}

.proof-grid{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:18px;
}

.proof-item{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 10px 28px rgba(45, 32, 18, 0.04);
}

.proof-item img{
  width:100%;
  aspect-ratio: 4 / 3;
  object-fit:cover;
}

.proof-item figcaption{
  padding:12px 14px;
  font-size:0.94rem;
  color:var(--muted);
}

/* STATEMENT */

.statement-box{
  background:var(--bg-soft);
  border:1px solid var(--border-strong);
  border-radius:30px;
  padding:34px 26px;
  text-align:center;
  max-width:900px;
}

.statement-box p{
  font-size:clamp(1.2rem, 2vw, 1.7rem);
  line-height:1.45;
  color:var(--text);
  font-weight:500;
}

/* FORM PROPIO CRO */

.terra-form{
  max-width:500px;
  margin:0 auto;
  display:flex;
  flex-direction:column;
  gap:18px;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:16px;
}

.field label{
  display:block;
  font-size:0.95rem;
  font-weight:700;
  color:var(--text);
  margin-bottom:8px;
}

.field input,
.field select{
  width:100%;
  min-height:54px;
  padding:0 16px;
  border:1px solid var(--border);
  border-radius:16px;
  background:rgba(255,255,255,0.92);
  font-size:1rem;
  color:var(--text);
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease;
}

.field input:focus,
.field select:focus{
  border-color:var(--primary);
  box-shadow:0 0 0 4px rgba(122,90,52,0.10);
}

.form-submit{
  text-align:center;
  margin-top:8px;
}

.form-submit button{
  border:none;
  cursor:pointer;
  min-height:56px;
  padding:0 30px;
  border-radius:999px;
  background:var(--primary);
  color:#fff;
  font-size:1rem;
  font-weight:800;
  box-shadow:0 10px 26px rgba(122,90,52,0.22);
  transition:transform .18s ease, opacity .18s ease;
}

.form-submit button:hover{
  transform:translateY(-1px);
  opacity:0.96;
}

.form-submit button:disabled{
  opacity:.65;
  cursor:not-allowed;
}

.form-submit p{
  margin-top:12px;
  font-size:0.92rem;
  color:var(--muted);
}

/* Estilos específicos para la nota de submit y privacidad */
.submit-note {
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary); /* Le damos un poco más de peso a la promesa de respuesta */
}

.form-privacy {
  margin-top: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
  border-top: 1px solid var(--border); /* Una línea sutil para separar la acción legal de la comercial */
}

.form-privacy svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--muted);
}

.form-privacy span {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

/* Ajuste para móvil para que el texto de privacidad no se vea amontonado */
@media (max-width: 600px) {
  .form-privacy {
    padding: 10px 0;
  }
}

/* THANK YOU */

.terra-success{
  display:none;
  text-align:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:24px;
  padding:34px 20px;
}

.success-icon{
  width:56px;
  height:56px;
  margin:0 auto 16px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--primary);
  color:#fff;
  font-size:1.4rem;
  font-weight:800;
}

.terra-success h3{
  font-size:1.5rem;
  color:var(--primary);
  margin-bottom:10px;
}

.terra-success p{
  color:var(--muted);
  margin-bottom:18px;
}

.terra-success button{
  border:none;
  cursor:pointer;
  min-height:52px;
  padding:0 24px;
  border-radius:999px;
  background:#1d2b2f;
  color:#fff;
  font-weight:700;
}

/* MOBILE */

@media (max-width:600px){
  .form-grid{
    grid-template-columns:1fr;
  }

  .field input,
  .field select{
    min-height:52px;
  }

  .form-submit button{
    width:100%;
  }
}

/* TRUST */

.trust-box{
  display:grid;
  grid-template-columns:92px 1fr;
  gap:20px;
  align-items:center;
  background:#fff;
  border:1px solid var(--border);
  border-radius:26px;
  padding:24px;
  box-shadow:0 10px 28px rgba(45, 32, 18, 0.04);
}

.shield-icon{
  width:92px;
  height:92px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:22px;
  background:var(--bg-soft);
  border:1px solid var(--border-strong);
  overflow:hidden; 
}

.shield-icon img{
  width:120%;
  height:120%;
  object-fit:contain;
}

.trust-text h3{
  color:var(--primary);
  font-size:1.2rem;
  margin-bottom:8px;
}

.trust-text p{
  color:var(--muted);
  font-size:1rem;
}

/* FINAL CTA */

.final-cta-box{
  text-align:center;
  background:linear-gradient(180deg, #f6efe4 0%, #f3eadc 100%);
  border:1px solid var(--border-strong);
  border-radius:32px;
  padding:40px 24px;
  box-shadow:var(--shadow);
}

.final-cta-box h2{
  font-size:clamp(1.9rem, 3vw, 2.8rem);
  color:var(--primary);
  margin-bottom:14px;
  line-height:1.1;
  letter-spacing:-0.03em;
}

.final-cta-box p{
  max-width:760px;
  margin:0 auto 22px;
  color:var(--muted);
  font-size:1.05rem;
}

/* FOOTER */

.footer{
  padding:30px 0 40px;
}

.footer-inner{
  text-align:center;
  color:var(--muted);
  font-size:0.92rem;
}

/* RESPONSIVE */

@media (max-width: 1080px){
  .hero-grid{
    grid-template-columns:1fr;
  }

  .hero-copy{
    margin:0 auto;
    text-align:center;
    max-width: 800px;
  }

  .hero h1{
    text-align:left;
    font-size:clamp(2.6rem, 5vw, 3.6rem);
  }

  .hero-copy .hero-text{
    margin-left:auto;
    margin-right:auto;
    text-align:left;
  }

  .hero-points{
    align-items:center;
  }

  .hero-card{
    justify-content:center;
  }

  .quick-benefits,
  .pain-grid,
  .proof-grid{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width: 600px){
  .container{
    width:min(var(--container), calc(100% - 22px));
  }

  .site-header{
    position:static;
  }

  .header-inner{
    min-height:68px;
  }

  .logo{
    height:40px;
  }

  .hero{
    padding:52px 0 34px;
  }

  .hero-copy{
    text-align:left;
  }
  
  .hero h1{
    font-size:2.6rem;
    line-height:1.08;
    max-width:none;
    text-align:center;
  }
  
  .hero-text{
    font-size:1rem;
  }

  .hero-points{
    flex-direction:column;
    align-items:flex-start;
  }

  .expert-box{
    padding:18px;
  }

  .expert-photo{
    height:340px;
  }

  .quick-form{
    padding:22px 0 22px;
    margin-top:0;
  }

  .quick-form-box{
    padding:22px 14px;
    border-radius:24px;
  }

  .jotform-wrap{
    padding:6px;
    border-radius:18px;
  }

  .quick-benefits,
  .pain-grid,
  .proof-grid{
    grid-template-columns:1fr;
  }

  .pain-section,
  .proof-section,
  .statement-section,
  .trust-section,
  .final-cta{
    padding:56px 0;
  }

  .trust-box{
    grid-template-columns:1fr;
    text-align:center;
  }

  .shield-icon{
    margin:0 auto;
  }

  .statement-box,
  .final-cta-box{
    border-radius:24px;
    padding:28px 18px;
  }

  .field label{
    font-size:1rem;
    margin-bottom:10px;
  }
  
  .field input,
  .field select{
    min-height:58px;
    padding:0 18px;
    font-size:1rem;
  }
  
  .form-grid{
    gap:18px;
  }
  
  .terra-form{
    gap:20px;
  }
  .field label{
    display:block;
    font-size:1rem;
    font-weight:700;
    margin-bottom:12px;
    padding-left:2px;
  }

  .field input,
  .field select{
    min-height:60px;
    padding:0 18px;
    font-size:1rem;
    border-radius:16px;
  }

  .form-grid{
    gap:20px;
  }

  .terra-form{
    gap:22px;
  }

  .jotform-wrap{
    padding:16px;
  }
}