:root {
  --navy: #1A1A1A;
  --navy-2: #2B2B2B;
  --navy-3: #3A3A3A;
  --white: #FFFFFF;
  --mist: #F3F2F0;
  --ink: #1A1A1A;
  --muted: #6B6B6B;
  --soft: #8A8A8A;
  --line-light: rgba(26,26,26,.14);
  --line-dark: rgba(255,255,255,.14);
  --font-head: 'Bitter', Georgia, 'Times New Roman', serif;
  --font-wordmark: 'Libre Caslon Display', Georgia, serif;
  --font-btn: var(--font-body);
  --font-body: 'Work Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; letter-spacing: -.005em; color: var(--ink); margin: 0; }
h1 .lt, h2 .lt, h3 .lt {
  display: block; font-family: var(--font-head); font-weight: 500; font-style: italic; text-transform: none;
  font-size: 1em; line-height: 1.15; color: var(--muted); margin-top: .08em;
}
.section-dark h1 .lt, .section-dark h2 .lt, .hero-inner h1 .lt { color: rgba(255,255,255,.82); }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 2px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section { padding: 110px 0; }
.section-light { background: linear-gradient(155deg, var(--mist) 0%, #EAE7E0 35%, #DAD5CA 100%); }
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark .eyebrow:not(.eyebrow-light) { color: #fff; }

.eyebrow { display: inline-block; font-family: var(--font-body); font-size: .68rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--soft); margin-bottom: 18px; }
.eyebrow-light { color: rgba(255,255,255,.75); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 0; font-weight: 700; font-size: .88rem;
  letter-spacing: .01em;
  font-family: var(--font-btn); border: 1.5px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn i { font-size: 1.15em; }
.btn-primary { background: #1E9E52; color: #fff; }
.btn-primary:hover { background: transparent; color: #1E9E52; border-color: #1E9E52; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.btn-solid-navy { background: var(--navy); color: #fff; }
.btn-solid-navy:hover { background: var(--navy-3); transform: translateY(-2px); }
.btn-lg { padding: 16px 32px; font-size: .92rem; }
.btn-header { padding: 11px 20px; font-size: .82rem; flex-shrink: 0; }

/* ===== Header (transparente -> sólido al scrollear) ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  background: transparent; transition: background .3s ease, box-shadow .3s ease;
}
.site-header.scrolled { background: var(--navy); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
body.inner-page .site-header { background: var(--navy); box-shadow: 0 4px 20px rgba(0,0,0,.2); }
.h-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.wordmark { font-family: var(--font-wordmark); font-weight: 400; text-transform: uppercase; font-size: 1.35rem; line-height: 1; color: #fff; letter-spacing: .015em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wordmark .amp { color: rgba(255,255,255,.6); font-weight: 500; }
.desk-nav { display: flex; align-items: center; gap: 30px; }
.desk-nav a { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.85); transition: color .2s ease; }
.desk-nav a:hover { color: #fff; }

/* ===== Mobile nav (hamburguesa, panel deslizante) ===== */
.burger {
  position: fixed; top: 0; right: 24px; z-index: 110; width: 26px; height: var(--header-h);
  display: none; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer;
}
.burger span { display: block; height: 2px; width: 100%; background: #fff; border-radius: 2px; transition: transform .25s ease, opacity .25s ease; }
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

#moverlay { position: fixed; inset: 0; background: rgba(10,10,10,.6); z-index: 90; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
#moverlay.active { opacity: 1; pointer-events: auto; }

#mnav {
  position: fixed; top: 0; right: -100%; width: 100%; height: 100%;
  background: var(--navy); z-index: 100; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 34px; padding: 40px 24px; transition: right .35s ease;
}
#mnav.active { right: 0; }
.mnav-links { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.mnav-word { font-family: var(--font-wordmark); font-weight: 400; text-transform: uppercase; font-size: 1.6rem; color: #fff; margin-bottom: 18px; }
.mnav-word .amp { color: rgba(255,255,255,.6); }
#mnav a:not(.btn) { font-weight: 600; font-size: 1.1rem; color: #fff; padding: 8px 0; }
#mnav .btn { margin-top: 6px; font-size: 1rem; }

/* ===== Hero ===== */
#top.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: grayscale(100%) contrast(1.1) brightness(.55); }
.hero-tint { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(8,8,8,.95) 0%, rgba(14,14,14,.86) 32%, rgba(20,20,20,.62) 58%, rgba(20,20,20,.4) 100%); }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero-inner h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); color: #fff; letter-spacing: -.005em; }
.hero-lead { margin: 24px 0 36px; font-size: 1.12rem; line-height: 1.65; color: rgba(255,255,255,.86); max-width: 540px; text-align: justify; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; }

/* ===== El problema ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(2.3rem, 4vw, 3rem); }
.section-sub { margin-top: 14px; color: var(--muted); font-size: 1.02rem; line-height: 1.6; }
.problema-grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.problema-card {
  background: var(--white);
  border: 1px solid var(--line-light); padding: 40px 36px;
}
.problema-card h3 { font-size: clamp(1.6rem, 2.8vw, 2rem); margin-bottom: 16px; color: var(--ink); line-height: 1.2; }
.problema-card p { color: var(--muted); font-size: .98rem; line-height: 1.65; }

/* ===== Full-bleed impact photo ===== */
.impact-photo { position: relative; height: 56vh; min-height: 420px; display: flex; align-items: center; justify-content: center; overflow: hidden; color: #fff; }
.impact-bg { position: absolute; inset: 0; }
.impact-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: grayscale(100%) contrast(1.05); }
.impact-tint { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(10,10,10,.82) 0%, rgba(10,10,10,.5) 55%, rgba(10,10,10,.8) 100%); }
.impact-inner { position: relative; z-index: 1; text-align: center; }
.impact-inner p { font-family: var(--font-head); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: #fff; }

/* ===== Quienes somos ===== */
.quienes-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.quienes-inner h2 { font-size: clamp(2.3rem, 4vw, 3rem); margin-bottom: 32px; }
.quienes-inner p { font-size: 1.18rem; line-height: 1.8; color: var(--ink); }
.quienes-inner strong { color: var(--navy); font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 0; }
.faq-item { position: relative; border-bottom: 1px solid var(--line-dark); padding: 22px 0; text-align: center; }
.faq-item:last-child { border-bottom: none; }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative; padding: 0 44px; text-align: center;
}
.faq-q { font-family: var(--font-head); font-weight: 600; font-size: 1.06rem; color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: rgba(255,255,255,.6); transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p { margin-top: 16px; color: rgba(255,255,255,.72); font-size: .98rem; line-height: 1.65; max-width: 56ch; margin-left: auto; margin-right: auto; }

/* ===== Contacto ===== */
.contacto-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; margin-bottom: 40px; }
.contacto-whatsapp {
  background: var(--navy); color: #fff; border-radius: 0;
  padding: 44px 36px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center;
}
.contacto-whatsapp i { font-size: 2.6rem; color: #1E9E52; margin-bottom: 10px; }
.contacto-whatsapp h3 { color: #fff; font-size: 1.25rem; }
.contacto-phone { font-size: 1.15rem; font-weight: 600; color: #fff; }
.contacto-note { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 10px; }
.contacto-whatsapp .btn { margin-top: 8px; }
.contacto-form {
  background: var(--mist);
  border: 1px solid var(--line-light); border-radius: 0; padding: 40px 36px;
}
.contacto-form h3 { color: var(--ink); font-size: clamp(1.5rem, 2.4vw, 1.8rem); margin-bottom: 26px; }
.contacto-form { text-align: center; }
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-row label { font-size: .82rem; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.form-row input, .form-row textarea, .form-row select {
  background: #fff; border: 1px solid var(--line-light); border-radius: 0;
  padding: 12px 14px; color: var(--ink); font-family: var(--font-body); font-size: .96rem; resize: vertical; width: 100%;
}
.form-row select {
  appearance: none; cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235E6B82' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contacto-form .btn { margin: 26px auto 0; }
.form-status { margin-top: 14px; font-size: .88rem; color: var(--muted); min-height: 1.2em; }
.form-status.success { color: #188A42; }
.form-status.error { color: #C0392B; }

.ubicacion { width: 100%; height: 360px; border-radius: 0; overflow: hidden; border: 1px solid var(--line-light); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: rgba(255,255,255,.65); }
.footer-main { padding: 72px 32px 48px; display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; }
.footer-brand .wordmark { font-size: 1.3rem; }
.footer-tagline { margin-top: 14px; font-size: .92rem; line-height: 1.65; color: rgba(255,255,255,.6); max-width: 36ch; }
.footer-col-title { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 18px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .86rem; font-weight: 400; color: rgba(255,255,255,.65); transition: color .2s ease; }
.footer-links a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; font-size: .86rem; }
.footer-contact p { display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.65); overflow-wrap: anywhere; }
.footer-contact i { color: rgba(255,255,255,.5); }
.footer-bottom {
  border-top: 1px solid var(--line-dark); display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 8px; padding: 28px 24px; font-size: .8rem; color: rgba(255,255,255,.48);
}
.footer-bottom a { color: rgba(255,255,255,.75); }
.footer-bottom a:hover { color: #fff; }

/* ===== Flotantes ===== */
.wa-float, .top-float {
  position: fixed; right: 22px; z-index: 40; border: none;
  width: 54px; height: 54px; border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.28); transition: transform .2s ease, opacity .2s ease, visibility .2s ease;
  cursor: pointer;
}
.wa-float { bottom: 22px; background: #1E9E52; }
.top-float { bottom: 88px; background: var(--navy); border: 1px solid rgba(255,255,255,.28); opacity: 0; visibility: hidden; }
.top-float.visible { opacity: 1; visibility: visible; }
body.inner-page .top-float { opacity: 1; visibility: visible; }
.wa-float:hover, .top-float:hover { transform: scale(1.06); }
.wa-float.hidden, .top-float.hidden { opacity: 0; pointer-events: none; visibility: hidden; transform: scale(.8); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .contacto-grid { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .problema-grid-cards { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .desk-nav, .site-header .btn-header { display: none; }
  .burger { display: flex; }
  .h-inner { justify-content: center; position: relative; }
  .h-inner .wordmark { position: absolute; left: 50%; transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .section { padding: 72px 0; }
  #top.hero { text-align: center; }
  .hero-inner { max-width: 100%; }
  .hero-bg img { object-position: 30% 30%; }
  .hero-inner .eyebrow { font-size: .56rem; }
  .hero-inner h1 { font-size: clamp(2.5rem, 9vw, 3.2rem); }
  .hero-lead { margin-left: auto; margin-right: auto; text-align: center; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .impact-photo { height: 46vh; }
  .contacto-form .btn { margin-top: 4px; }
  .footer-main { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .footer-col { display: flex; flex-direction: column; align-items: center; }
  .footer-links { align-items: center; }
  .footer-contact { align-items: center; }
  .footer-contact p { justify-content: center; }
  .footer-tagline { margin-left: auto; margin-right: auto; }
}

@media (max-width: 480px) {
  .btn:not(.btn-header) { width: 100%; max-width: 340px; }
  .wa-float, .top-float { width: 56px; height: 56px; font-size: 1.5rem; right: 16px; }
  .wa-float { bottom: 16px; }
  .top-float { bottom: 84px; }
}
