/* =========================================================
   TORAL — Paisajismo & Construcción
   ========================================================= */

:root {
  --ink: #151513;
  --charcoal: #1f201c;
  --graphite: #2b2c27;
  --paper: #f5f2ec;
  --paper-2: #ebe6dc;
  --sand: #cfb68a;
  --sand-strong: #b8975e;
  --olive: #434d11;       /* color del logo */
  --olive-soft: #5f6a26;
  --leaf: var(--olive);
  --muted: #6d6a62;
  --line: rgba(21, 21, 19, .12);
  --line-light: rgba(255, 255, 255, .16);

  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;

  --radius: 4px;
  --header-h: 84px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.12; font-weight: 600; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; cursor: pointer; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--sand); color: var(--ink); padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid var(--sand-strong); outline-offset: 3px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--sand);
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.eyebrow-dark { color: var(--olive-soft); }

.section-title { font-size: clamp(32px, 4.2vw, 54px); letter-spacing: -.02em; margin-bottom: 26px; }

.display {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(32px, 4vw, 52px); line-height: 1.12; margin-bottom: 30px;
}
.display em { font-style: italic; color: var(--leaf); }

.lead { font-size: 20px; line-height: 1.6; color: var(--ink); font-weight: 500; }

.fine-print { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px;
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 11px 20px; font-size: 12px; }
.btn-block { width: 100%; }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: #dfc79c; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--graphite); }
.btn-whatsapp { background: #1f7a4d; color: #fff; margin-top: 34px; }
.btn-whatsapp:hover { background: #196640; }
.btn-whatsapp svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(21, 21, 19, .94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-light);
  opacity: 0; transition: opacity .4s var(--ease);
}
.site-header.is-scrolled { --header-h: 70px; }
.site-header.is-scrolled::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; text-decoration: none; line-height: 0; }
.brand img { width: auto; height: 54px; transition: height .4s var(--ease); }
.site-header.is-scrolled .brand img { height: 42px; }
.brand-footer img { height: 92px; }

.site-nav { display: flex; align-items: center; gap: 36px; }
.site-nav ul { display: flex; gap: 30px; }
.site-nav ul a {
  position: relative; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 0;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.site-nav ul a:hover::after, .site-nav ul a.is-current::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; position: relative; z-index: 2; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: transform .3s var(--ease), opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--ink);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-video { pointer-events: none; }
/* Oculta el botón de play nativo (iPhone/Android) si el teléfono bloquea la reproducción automática */
.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-panel,
.hero-video::-webkit-media-controls-overlay-play-button,
.hero-video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; opacity: 0; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(15,15,13,.82) 0%, rgba(15,15,13,.55) 45%, rgba(15,15,13,.2) 100%),
    linear-gradient(0deg, rgba(15,15,13,.55) 0%, rgba(15,15,13,0) 40%);
}
.hero-content { position: relative; padding-block: calc(var(--header-h) + 40px) 120px; }
.hero-title { font-size: clamp(46px, 8vw, 112px); font-weight: 600; letter-spacing: -.035em; line-height: .98; margin-bottom: 30px; }
.hero-title span { display: block; }
.hero-title .accent { font-family: var(--font-serif); font-style: italic; font-weight: 500; color: var(--sand); letter-spacing: -.01em; }
.hero-lead { max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.86); margin-bottom: 42px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 26px; height: 44px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; margin-left: -1.5px;
  background: #fff; border-radius: 2px; animation: cue 1.8s infinite var(--ease);
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head-split { max-width: none; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.section-head-split p { color: var(--muted); }
.section-head-split strong { color: var(--ink); }

/* Intro */
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.intro-text > p:not(.eyebrow):not(.signature) { color: var(--muted); max-width: 560px; }
.signature {
  margin-top: 34px !important; padding-top: 26px; border-top: 1px solid var(--line);
  font-family: var(--font-serif); font-style: italic; font-size: 30px; color: var(--ink);
}
.intro-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: var(--radius); }
.intro-media figcaption { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* What we do */
.what { background: var(--paper-2); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card {
  background: var(--paper); padding: 44px 34px 40px;
  display: flex; flex-direction: column;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.card:hover { background: var(--ink); color: #fff; }
.card:hover p { color: rgba(255,255,255,.72); }
.card-icon { width: 52px; height: 52px; margin-bottom: 36px; color: var(--olive); transition: color .4s; }
.card:hover .card-icon, .card:hover .card-link { color: var(--sand); }
.card-icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 22px; margin-bottom: 16px; }
.card p { font-size: 15.5px; color: var(--muted); flex: 1; transition: color .4s; }
.card-link {
  margin-top: 28px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--olive); transition: color .4s;
}
.card-link::after { content: " →"; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media { position: relative; padding-bottom: 80px; padding-right: 60px; }
.about-media > img:first-child { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; border-radius: var(--radius); }
.about-media-inset {
  position: absolute; right: 0; bottom: 0; width: 52%;
  aspect-ratio: 16/10; object-fit: cover;
  border: 8px solid var(--paper); border-radius: var(--radius);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45);
}
.about-text p:not(.eyebrow):not(.lead) { color: var(--muted); }

.steps {
  margin-top: clamp(70px, 9vw, 120px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.steps li { padding: 34px 34px 0 0; display: flex; flex-direction: column; gap: 8px; }
.steps li + li { padding-left: 34px; border-left: 1px solid var(--line); }
.step-n { font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--olive-soft); }
.steps strong { font-family: var(--font-serif); font-size: 34px; font-weight: 500; font-style: italic; }
.steps span:last-child { color: var(--muted); font-size: 15.5px; }

/* Services */
.services { background: var(--ink); color: #fff; }
.services .section-title { color: #fff; }

.tab-list { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line-light); margin-bottom: 56px; }
.tab-list button {
  background: none; border: 0; color: rgba(255,255,255,.55);
  text-align: left; padding: 0 20px 24px 0;
  font-size: 15px; font-weight: 600; line-height: 1.35;
  position: relative; transition: color .3s;
}
.tab-list button span { display: block; font-size: 12px; letter-spacing: .2em; color: var(--sand); margin-bottom: 8px; }
.tab-list button::after {
  content: ""; position: absolute; left: 0; right: 20px; bottom: -1px; height: 2px;
  background: var(--sand); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease);
}
.tab-list button:hover { color: #fff; }
.tab-list button[aria-selected="true"] { color: #fff; }
.tab-list button[aria-selected="true"]::after { transform: scaleX(1); }

.tab-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 90px); align-items: start; animation: fade .6s var(--ease); }
.tab-panel[hidden] { display: none; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.panel-text h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 18px; }
.panel-text > p { color: rgba(255,255,255,.72); font-size: 18px; margin-bottom: 34px; max-width: 560px; }
.panel-media img { width: 100%; aspect-ratio: 4/3.3; object-fit: cover; border-radius: var(--radius); }

.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 36px; }
.checklist li {
  position: relative; padding: 13px 0 13px 28px;
  border-bottom: 1px solid var(--line-light); font-size: 15.5px;
}
.checklist li::before {
  content: ""; position: absolute; left: 2px; top: 21px; width: 12px; height: 7px;
  border-left: 1.6px solid var(--sand); border-bottom: 1.6px solid var(--sand);
  transform: rotate(-45deg);
}

/* Projects */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  background: transparent; border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 22px; font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--ink);
  transition: all .3s var(--ease);
}
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--olive); color: #fff; border-color: var(--olive); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; gap: 18px; grid-auto-flow: dense; }
.project { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--paper-2); }
.project-wide { grid-column: span 2; grid-row: span 2; }
.project-wide-right { grid-column: 2 / span 2; }
.project.is-hidden { display: none; }
.project-link { display: block; height: 100%; text-decoration: none; color: #fff; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.project-link::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(15,15,13,.78) 0%, rgba(15,15,13,0) 55%);
  transition: opacity .5s;
}
.project figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 26px;
  display: flex; flex-direction: column; gap: 4px;
  transform: translateY(8px); transition: transform .5s var(--ease);
}
.project figcaption strong { font-size: 19px; font-weight: 600; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); }
.project:hover img { transform: scale(1.05); }
.project-cta {
  border-radius: var(--radius);
  background: var(--olive); color: #fff; padding: 32px;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px;
}
.project-cta-title { font-family: var(--font-serif); font-style: italic; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.15; margin-bottom: 18px; }
.project-cta .tag { color: var(--sand); }
.project:hover figcaption { transform: none; }

/* Video band */
.video-band { background: var(--charcoal); color: #fff; padding-block: clamp(80px, 10vw, 130px); }
.video-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.video-text p:not(.eyebrow) { color: rgba(255,255,255,.72); margin-bottom: 36px; }
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 960/544; }

/* Advisory */
.advisory-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.advisory-media img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; border-radius: var(--radius); }
.advisory-text p:not(.eyebrow):not(.lead):not(.fine-print) { color: var(--muted); }
.advisory-actions { margin-top: 36px; }

/* Business */
.business { background: var(--ink); color: #fff; overflow: hidden; }
.business-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: .14; filter: grayscale(1);
}
.business .container { position: relative; }
.business-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.business-text p:not(.eyebrow) { color: rgba(255,255,255,.74); }
.business-areas {
  background: rgba(255,255,255,.04); border: 1px solid var(--line-light);
  padding: 44px; border-radius: var(--radius); backdrop-filter: blur(4px);
}
.business-areas h3 { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--sand); margin-bottom: 14px; }
.checklist-light { grid-template-columns: 1fr; }
.business-cta {
  margin-top: 80px; padding-top: 50px; border-top: 1px solid var(--line-light);
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.business-cta p { font-family: var(--font-serif); font-style: italic; font-size: clamp(26px, 3vw, 38px); margin: 0; }

/* Contact */
.contact { background: var(--paper-2); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 7vw, 110px); align-items: start; }
.contact-text > p:not(.eyebrow):not(.lead) { color: var(--muted); }
.contact-list { margin-top: 40px; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.contact-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--olive-soft); padding-top: 3px; }
.contact-list a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { border-color: var(--ink); }

.contact-form {
  background: #fff; padding: clamp(30px, 4vw, 54px); border-radius: var(--radius);
  box-shadow: 0 40px 80px -50px rgba(21,21,19,.35);
  display: flex; flex-direction: column; gap: 20px;
}
.contact-form h3 { font-size: 26px; margin-bottom: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label > span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--paper); border: 1px solid transparent; border-radius: var(--radius);
  padding: 14px 16px; transition: border-color .3s, background .3s;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--sand-strong); background: #fff; }
.contact-form .is-invalid { border-color: #b4452f; }
.form-error { color: #b4452f; font-size: 14px; margin: 0; }
.contact-form .consent { flex-direction: row; align-items: flex-start; gap: 12px; cursor: pointer; }
.contact-form .consent input { width: 20px; height: 20px; flex: 0 0 20px; margin: 2px 0 0; padding: 0; accent-color: var(--olive); }
.contact-form .consent span { font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.5; }
.contact-form .consent a { color: var(--olive); }
.contact-form .consent input.is-invalid { outline: 2px solid #b4452f; outline-offset: 2px; }

/* Páginas legales */
.legal-hero { background: var(--ink); color: #fff; padding: calc(var(--header-h) + 70px) 0 60px; }
.legal-hero h1 { font-size: clamp(36px, 5vw, 62px); letter-spacing: -.03em; margin-bottom: 14px; }
.legal-hero p { color: rgba(255,255,255,.7); margin: 0; }
.legal-body { max-width: 820px; }
.legal-body h2 { font-size: clamp(22px, 2.2vw, 28px); margin: 48px 0 16px; letter-spacing: -.01em; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: #45443f; }
.legal-body ul { list-style: disc; padding-left: 22px; margin: 0 0 1.1em; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--olive); }
.legal-body .note { background: var(--paper-2); border-left: 3px solid var(--olive); padding: 18px 22px; border-radius: var(--radius); }
.dato-pendiente { background: #fff3b0; padding: 0 4px; border-radius: 2px; }
.contact-form .fine-print { margin: 0; text-align: center; }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255,255,255,.7); padding-top: 80px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.3fr .9fr; gap: 50px; padding-bottom: 60px; }
.footer-title { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--sand); margin-bottom: 16px; }
.footer-services { display: flex; flex-direction: column; gap: 10px; }
.footer-services a { text-decoration: none; transition: color .3s; }
.footer-services a:hover { color: #fff; }
.brand-footer { color: #fff; }
.footer-tag { margin-top: 22px; font-family: var(--font-serif); font-style: italic; font-size: 22px; color: var(--sand); }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; }
.footer-links a, .footer-contact a { text-decoration: none; transition: color .3s; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-bottom {
  border-top: 1px solid var(--line-light); padding-block: 26px; font-size: 13px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
}
.footer-bottom p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.legal-links a { text-decoration: none; transition: color .3s; }
.legal-links a:hover { color: #fff; }
.credits a { color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-light); transition: border-color .3s; }
.credits a:hover { border-color: var(--sand); }
.heart { display: inline-block; color: #e0245e; font-size: 11px; margin: 0 2px; animation: heartbeat 1.2s ease-in-out infinite; }
@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  15% { transform: scale(1.3); }
  25% { transform: scale(.95); }
  32% { transform: scale(1.18); }
}

/* WhatsApp float */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.4);
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: currentColor; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(10,10,9,.94);
  display: flex; align-items: center; justify-content: center; padding: 60px 80px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { max-width: 1400px; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-height: calc(100vh - 160px); width: auto; object-fit: contain; border-radius: var(--radius); }
.lightbox figcaption { color: rgba(255,255,255,.8); margin-top: 16px; font-size: 15px; text-align: center; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; opacity: .7; transition: opacity .2s; line-height: 1; }
.lightbox button:hover { opacity: 1; }
.lb-close { top: 18px; right: 26px; font-size: 44px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 64px; padding: 10px 18px; }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }

/* Utilidades */
.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; }
.hero-h1 { font-size: 13px; line-height: 1.5; }
.section-intro { color: var(--muted); font-size: 18px; max-width: 680px; }
.section-intro a { color: var(--olive); }
.panel-link {
  display: inline-block; margin-top: 30px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.panel-link::after { content: " →"; }

/* Preguntas frecuentes */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.faq-grid .section-head { margin-bottom: 0; position: sticky; top: 110px; }
.faq-grid .section-title { font-size: clamp(30px, 3.4vw, 44px); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 24px 48px 24px 0; font-size: 18px; font-weight: 600; line-height: 1.4;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; margin-top: -9px;
  border-right: 1.6px solid var(--olive); border-bottom: 1.6px solid var(--olive);
  transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.faq-item summary:hover { color: var(--olive); }
.faq-item p { color: var(--muted); padding: 0 48px 26px 0; margin: 0; }

/* ---------- Páginas de servicio ---------- */
.page-hero {
  position: relative; min-height: 72vh; display: flex; align-items: flex-end;
  color: #fff; background: var(--ink) center / cover no-repeat; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,15,13,.85) 0%, rgba(15,15,13,.55) 55%, rgba(15,15,13,.25) 100%),
              linear-gradient(0deg, rgba(15,15,13,.6) 0%, rgba(15,15,13,0) 50%);
}
.page-hero .container { position: relative; padding-block: calc(var(--header-h) + 60px) 80px; }
.page-hero h1 { font-size: clamp(38px, 5.6vw, 76px); letter-spacing: -.03em; max-width: 900px; margin-bottom: 24px; }
.page-hero h1 em { font-family: var(--font-serif); font-weight: 500; color: var(--sand); }
.page-hero .hero-lead { margin-bottom: 36px; max-width: 640px; }

.breadcrumb { margin-bottom: 28px; font-size: 13px; color: rgba(255,255,255,.7); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: #fff; }

.service-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.service-body h2 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -.02em; margin: 56px 0 20px; }
.service-body h2:first-child { margin-top: 0; }
.service-body > p { color: var(--muted); }
.service-body .lead { color: var(--ink); }
.service-body .checklist li { border-bottom-color: var(--line); }
.service-body .checklist li::before { border-color: var(--olive); }

.process { counter-reset: step; display: grid; gap: 0; border-top: 1px solid var(--line); }
.process li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 6px 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.process li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-size: 13px; font-weight: 700; letter-spacing: .2em; color: var(--olive-soft); padding-top: 4px; }
.process strong { font-size: 18px; }
.process span { color: var(--muted); }

.service-aside { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 20px; }
.aside-card { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px; }
.aside-card h2 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: 30px; margin-bottom: 14px; }
.aside-card p { color: rgba(255,255,255,.75); font-size: 15.5px; }
.aside-card .btn { width: 100%; margin-top: 12px; }
.aside-card .btn-whatsapp { margin-top: 12px; }
.aside-media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }

.related { background: var(--paper-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 200px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; text-decoration: none; transition: background .4s var(--ease), color .4s var(--ease);
}
.related-card h3 { font-size: 22px; }
.related-card p { color: var(--muted); font-size: 15px; margin: 10px 0 0; transition: color .4s; }
.related-card span { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--olive); transition: color .4s; }
.related-card span::after { content: " →"; }
.related-card:hover { background: var(--ink); color: #fff; }
.related-card:hover p { color: rgba(255,255,255,.7); }
.related-card:hover span { color: var(--sand); }

.cta-band { background: var(--olive); color: #fff; padding-block: 70px; }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-serif); font-style: italic; font-weight: 500; font-size: clamp(28px, 3.2vw, 42px); }
.cta-band .cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-band .btn-whatsapp { margin-top: 0; }

/* Reveal animation */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue span, .heart { animation: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .site-nav ul { gap: 22px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 40px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .site-nav ul a { font-size: 20px; }
  body.nav-open { overflow: hidden; }

  .intro-grid, .about-grid, .advisory-grid, .business-grid, .contact-grid, .video-grid,
  .section-head-split, .tab-panel { grid-template-columns: 1fr; }
  .section-head-split { gap: 10px; }
  .intro-media img { aspect-ratio: 4/3; }
  .advisory-media img { aspect-ratio: 4/3; }
  .advisory-media { order: 2; }

  .tab-list { grid-template-columns: 1fr 1fr; border-bottom: 0; gap: 0 20px; }
  .tab-list button { padding: 16px 0; border-bottom: 1px solid var(--line-light); }
  .tab-list button::after { right: 0; }

  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .faq-grid, .service-layout { grid-template-columns: 1fr; }
  .faq-grid .section-head, .service-aside { position: static; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .project-wide-right { grid-column: span 2; }
  .brand img { height: 40px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { width: min(100% - 36px, var(--container)); }
  .hero-content { padding-bottom: 110px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .card { padding: 36px 28px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .about-media { padding-right: 30px; padding-bottom: 60px; }
  .tab-list { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .project-wide, .project-wide-right { grid-column: auto; grid-row: span 1; }
  .project figcaption { transform: none; }
  .business-areas { padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: 64vh; }
  .faq-item summary { font-size: 16.5px; }
  .aside-card { padding: 28px 24px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 96px; }
  .lightbox { padding: 60px 12px; }
  .lb-prev, .lb-next { top: auto; bottom: 10px; transform: none; }
}
