@import url('fonts/fonts.css');

/* ============ TOKENS ============ */
:root {
  /* Brand */
  --c-orange: #F28C1E;
  --c-orange-hover: #FFA640;
  --c-orange-active: #E07A10;
  --c-royal: #1F3C9C;
  --c-blue: #3A6FD8;
  --c-sky: #8FB6F2;
  --c-silver: #B8BEC8;
  --c-concrete: #5F6368;
  --c-bone: #F7F8FA;
  /* Derived */
  --c-navy-900: #10193A;
  --c-navy-950: #0F1A3D;
  --c-white: #FFFFFF;
  --c-ink: #2B2F36;
  --c-ink-2: #3E4248;
  --c-ink-3: #4A4F57;
  --c-on-dark: #D6DDEA;
  --c-on-dark-2: #E0E6F1;
  --c-on-dark-3: #E6EAF2;
  --c-border: #E3E6EB;
  --c-field-border: #868D97;
  --c-surface-2: #EEF0F3;
  --c-ph-1: #C9CED6;
  --c-ph-2: #D3D7DE;
  --c-logo-ph: #D8DCE2;
  --c-error: #B3261E;
  --c-success-bg: #EEF3FC;
  --c-whatsapp: #1E8E4E;
  --c-whatsapp-hover: #187A42;
  --c-line-on-dark: rgba(143, 182, 242, 0.25);
  --c-line-on-dark-2: rgba(143, 182, 242, 0.20);

  /* Type */
  --f-head: 'Montserrat', system-ui, sans-serif;
  --f-body: 'Source Sans 3', system-ui, sans-serif;
  --f-script: 'Kaushan Script', cursive;

  /* Spacing scale */
  --s-1: 4px; --s-2: 6px; --s-3: 8px; --s-4: 10px; --s-5: 12px; --s-6: 14px;
  --s-7: 16px; --s-8: 18px; --s-9: 20px; --s-10: 22px; --s-11: 24px; --s-12: 28px;
  --s-13: 32px; --s-14: 40px; --s-15: 48px; --s-16: 56px; --s-17: 64px; --s-18: 72px;

  /* Layout */
  --container: 1240px;
  --pad-x: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 9vw, 112px);
  --header-h: 72px;

  /* Radii (system is square; only these exceptions) */
  --r-0: 0;
  --r-pill: 28px;
  --r-round: 50%;

  /* Slanted edge used on primary buttons / step numerals */
  --slant-12: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  --slant-10: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);

  /* Shadows */
  --sh-header: 0 2px 14px rgba(15, 26, 61, 0.06);
  --sh-stats: 0 18px 40px rgba(15, 26, 61, 0.25);
  --sh-card-hover: 0 12px 28px rgba(31, 60, 156, 0.12);
  --sh-wa: 0 8px 24px rgba(15, 26, 61, 0.30);

  /* Placeholder fill */
  --ph-stripes: repeating-linear-gradient(135deg, var(--c-ph-1) 0 22px, var(--c-ph-2) 22px 44px);

  /* Motion */
  --t-fast: 150ms cubic-bezier(0.2, 0, 0, 1);
  --t-med: 220ms cubic-bezier(0.2, 0, 0, 1);

  /* Z-index */
  --z-hero-bg: 0; --z-hero-overlay: 1; --z-hero-bands: 2; --z-hero-content: 3;
  --z-stats: 2; --z-header: 50; --z-whatsapp: 60;
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--c-bone); color: var(--c-concrete); font-family: var(--f-body); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--c-royal); transition: color var(--t-fast), background-color var(--t-fast), border-color var(--t-fast); }
a:hover { color: var(--c-blue); }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--container); margin: 0 auto; padding-left: max(var(--pad-x), env(safe-area-inset-left)); padding-right: max(var(--pad-x), env(safe-area-inset-right)); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); scroll-margin-top: var(--header-h); }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }

/* Eyebrow + headings */
.eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--f-head); font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c-royal); }
.eyebrow::before { content: ""; width: 32px; height: 4px; background: var(--c-orange); flex-shrink: 0; }
.eyebrow--light { color: var(--c-white); }
.eyebrow--hero::before { width: 40px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; margin-bottom: 48px; }
.h2 { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -0.015em; color: var(--c-royal); text-wrap: balance; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--c-concrete); text-wrap: pretty; }

/* ============ BUTTONS ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-head); font-size: 16px; line-height: 1.2; text-decoration: none; cursor: pointer; border: 0; transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--c-orange); color: var(--c-navy-900); font-weight: 800; padding: 18px 32px; clip-path: var(--slant-12); }
.btn--primary:hover { background: var(--c-orange-hover); color: var(--c-navy-900); }
.btn--primary:active { background: var(--c-orange-active); }
.btn--primary:focus-visible { clip-path: none; }
.btn--sm { font-size: 14px; padding: 12px 24px; clip-path: var(--slant-10); }
.btn--outline-light { background: transparent; color: var(--c-white); font-weight: 700; border: 2px solid var(--c-white); padding: 16px 30px; }
.btn--outline-light:hover { background: var(--c-white); color: var(--c-royal); }
.btn--outline-light:active { background: var(--c-on-dark); color: var(--c-royal); }
.btn--outline-orange { background: transparent; color: var(--c-white); font-weight: 700; border: 2px solid var(--c-orange); padding: 15px 28px; }
.btn--outline-orange:hover { background: var(--c-orange); color: var(--c-navy-900); }
.btn--outline-orange:active { background: var(--c-orange-active); border-color: var(--c-orange-active); color: var(--c-navy-900); }
.link-arrow { font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--c-royal); text-decoration: none; border-bottom: 3px solid var(--c-orange); padding-bottom: 4px; }
.link-arrow:hover { color: var(--c-blue); }

/* Placeholder image frame */
.ph { position: relative; background: var(--ph-stripes); overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }

/* ============ HEADER ============ */
.header { position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-header); background: var(--c-white); border-bottom: 1px solid var(--c-border); box-shadow: var(--sh-header); }
.header__bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo { display: block; width: 136px; height: 55px; flex-shrink: 0; }
.header__logo img { width: 136px; height: 55px; }
.nav { display: none; align-items: center; gap: 28px; }
.nav__link { font-family: var(--f-head); font-weight: 700; font-size: 14px; line-height: 1.2; color: var(--c-royal); text-decoration: none; }
.nav__link:hover { color: var(--c-blue); }
.header__mobile { display: flex; align-items: center; gap: 10px; }
.header__mobile .btn--sm { padding: 12px 18px; min-height: 44px; clip-path: none; }
.burger { width: 44px; height: 44px; border: 2px solid var(--c-royal); background: var(--c-white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0; cursor: pointer; }
.burger span { display: block; width: 20px; height: 2px; background: var(--c-royal); transition: transform var(--t-med), opacity var(--t-fast); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; background: var(--c-white); border-top: 1px solid var(--c-border); padding: 8px var(--pad-x) 16px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--f-head); font-weight: 700; font-size: 16px; color: var(--c-royal); text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--c-surface-2); }
@media (min-width: 900px) {
  .nav { display: flex; }
  .header__mobile, .mobile-menu { display: none !important; }
}

/* ============ HERO ============ */
.hero { position: relative; min-height: min(92vh, 860px); padding-top: var(--header-h); display: flex; align-items: center; overflow: hidden; background: var(--c-navy-950); }
.hero__bg { position: absolute; inset: 0; z-index: var(--z-hero-bg); background: repeating-linear-gradient(135deg, #9AA1AC 0 22px, #A7ADB7 22px 44px); }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero__overlay { position: absolute; inset: 0; z-index: var(--z-hero-overlay); background: linear-gradient(100deg, rgba(15,26,61,0.94) 0%, rgba(31,60,156,0.86) 55%, rgba(31,60,156,0.55) 100%); }
.hero__band { position: absolute; top: -10%; bottom: -10%; z-index: var(--z-hero-bands); transform: skewX(-18deg); }
.hero__band--1 { right: 6%; width: 64px; background: var(--c-blue); opacity: 0.85; }
.hero__band--2 { right: calc(6% - 40px); width: 22px; background: var(--c-sky); opacity: 0.85; }
.hero__band--3 { right: calc(6% - 66px); width: 8px; background: var(--c-silver); }
.hero__inner { position: relative; z-index: var(--z-hero-content); width: 100%; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(120px, 14vw, 170px); }
.hero__content { max-width: 760px; display: flex; flex-direction: column; gap: 24px; }
.hero__content .eyebrow { letter-spacing: 0.16em; }
.h1 { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: clamp(36px, 6vw, 68px); line-height: 1.04; letter-spacing: -0.02em; color: var(--c-white); text-wrap: balance; }
.h1 em { font-style: normal; color: var(--c-orange); }
.hero__sub { margin: 0; max-width: 620px; font-size: clamp(18px, 2vw, 21px); line-height: 1.55; color: var(--c-on-dark-3); text-wrap: pretty; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 8px; }

/* ============ STATS ============ */
.stats { position: relative; z-index: var(--z-stats); margin-top: -80px; }
.stats__bar { background: var(--c-royal); border-top: 6px solid var(--c-orange); box-shadow: var(--sh-stats); display: grid; grid-template-columns: 1fr; margin: 0; }
.stat { padding: 28px 28px 26px; display: flex; flex-direction: column-reverse; gap: 6px; border-bottom: 1px solid var(--c-line-on-dark); }
.stat dd { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.01em; color: var(--c-white); }
.stat dt { font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--c-on-dark); }
@media (min-width: 480px) {
  .stats__bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(odd) { border-right: 1px solid var(--c-line-on-dark); }
  .stat:nth-child(n+3) { border-bottom: 0; }
}
@media (min-width: 900px) {
  .stats__bar { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .stat { border-bottom: 0; border-right: 1px solid var(--c-line-on-dark); }
  .stat:last-child { border-right: 0; }
}

/* ============ SERVICES ============ */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.card { position: relative; isolation: isolate; overflow: hidden; min-height: 320px; background: var(--c-navy-950); padding: 28px 24px 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; transition: box-shadow var(--t-fast); }
.card__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(15,26,61,0.95) 0%, rgba(15,26,61,0.78) 42%, rgba(15,26,61,0.15) 100%); }
@media (hover: hover) { .card:hover { box-shadow: var(--sh-card-hover); } .card:hover .card__bg { transform: scale(1.04); } }
.card::after { content: ""; position: absolute; top: 0; right: 0; width: 56px; height: 6px; background: var(--c-orange); clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%); }
.card h3 { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 18px; line-height: 1.25; color: var(--c-white); }
.card p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--c-on-dark-2); text-wrap: pretty; }

/* ============ PLANTAS MÓVILES ============ */
.plantas { position: relative; background: var(--c-royal); overflow: hidden; scroll-margin-top: var(--header-h); }
.plantas::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; background: linear-gradient(90deg, var(--c-orange) 0 30%, var(--c-blue) 30% 70%, var(--c-sky) 70% 92%, var(--c-silver) 92%); }
.plantas__grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.plantas__media { position: relative; }
.plantas__media::before { content: ""; position: absolute; left: -18px; top: -18px; width: 45%; height: 45%; background: var(--c-orange); clip-path: polygon(0 0, 100% 0, 0 100%); }
.plantas__media .ph { aspect-ratio: 4 / 3; }
.plantas__copy { display: flex; flex-direction: column; gap: 22px; }
.plantas__copy .h2 { color: var(--c-white); font-size: clamp(30px, 4vw, 46px); line-height: 1.08; }
.plantas__copy .h2 em { font-style: normal; color: var(--c-orange); }
.plantas__copy > p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--c-on-dark-2); text-wrap: pretty; }
.benefits { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; padding: 16px 18px; background: rgba(15, 26, 61, 0.35); border-left: 4px solid var(--c-orange); }
.benefit__check { flex-shrink: 0; width: 28px; height: 28px; background: var(--c-orange); color: var(--c-navy-900); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 16px; }
.benefit strong { display: block; font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--c-white); margin-bottom: 4px; }
.benefit span { font-size: 16px; line-height: 1.45; color: var(--c-on-dark); }
.plantas__cta { padding-top: 6px; }
@media (min-width: 960px) { .plantas__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

/* ============ PROCESO ============ */
.steps-wrap { position: relative; }
.steps-line { display: none; position: absolute; left: 0; right: 0; top: 31px; height: 3px; background: var(--c-silver); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; display: grid; grid-template-columns: 1fr; gap: 32px; }
.step { display: flex; flex-direction: column; gap: 14px; }
.step__n { width: 64px; height: 64px; background: var(--c-orange); color: var(--c-navy-900); font-family: var(--f-head); font-weight: 900; font-size: 26px; line-height: 1; display: flex; align-items: center; justify-content: center; clip-path: var(--slant-12); }
.step h3 { margin: 6px 0 0; font-family: var(--f-head); font-weight: 800; font-size: 20px; line-height: 1.25; color: var(--c-royal); }
.step p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--c-concrete); text-wrap: pretty; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } .steps-line { display: block; } }

/* ============ OBRAS ============ */
.obras { background: var(--c-white); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.obras__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; }
.obras__head .section-head { margin-bottom: 0; max-width: 640px; }
.gallery { display: grid; grid-template-columns: 1fr; grid-auto-rows: 220px; gap: 14px; }
.obra { margin: 0; display: flex; flex-direction: column; overflow: hidden; }
.obra .ph { flex: 1; min-height: 0; }
.obra figcaption { background: var(--c-royal); border-left: 5px solid var(--c-orange); padding: 12px 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; }
.obra__tipo { font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--c-white); }
.obra__meta { font-size: 14px; line-height: 1.4; color: var(--c-on-dark); }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) {
  .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .obra--1 { grid-column: span 2; grid-row: span 2; }
  .obra--4 { grid-row: span 2; }
  .obra--5, .obra--6 { grid-column: span 2; }
}

/* ============ NOSOTROS ============ */
.nosotros { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); }
.nosotros__copy { display: flex; flex-direction: column; gap: 20px; }
.nosotros__copy .h2 { line-height: 1.12; }
.nosotros__copy .h2 .script { color: var(--c-blue); }
.nosotros__copy .ph { aspect-ratio: 16 / 9; margin-top: 8px; }
.nosotros__side { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.valor { display: flex; gap: 20px; padding: 22px 24px; background: var(--c-white); border: 1px solid var(--c-border); }
.valor__n { min-width: 40px; font-family: var(--f-head); font-weight: 900; font-size: 28px; line-height: 1; color: var(--c-royal); }
.valor h3 { margin: 0 0 6px; font-family: var(--f-head); font-weight: 800; font-size: 19px; line-height: 1.25; color: var(--c-royal); }
.valor p { margin: 0; font-size: 16px; line-height: 1.5; color: var(--c-concrete); }
.certs { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; }
.label-caps { font-family: var(--f-head); font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-royal); }
.badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.badge { background: var(--c-white); border: 1px solid var(--c-border); padding: 14px 12px 16px; display: flex; flex-direction: column; gap: 4px; text-align: center; }
.badge__logo { height: 72px; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.badge__logo img { max-width: 100%; max-height: 72px; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.badge__name { font-family: var(--f-head); font-weight: 800; font-size: 14px; line-height: 1.25; color: var(--c-royal); }
.badge__desc { font-size: 13px; line-height: 1.35; color: var(--c-concrete); }
@media (min-width: 480px) { .badges { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 960px) { .nosotros { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); } }

/* ============ CLIENTES ============ */
.clientes { background: var(--c-surface-2); border-top: 1px solid var(--c-border); border-bottom: 1px solid var(--c-border); }
.clientes__inner { padding-top: 40px; padding-bottom: 40px; display: flex; flex-direction: column; gap: 20px; }
.clientes .label-caps { text-align: center; }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.logos li { height: 96px; background-color: var(--c-white); background-repeat: no-repeat; background-position: center; background-size: contain; background-origin: content-box; border: 1px solid var(--c-border); padding: 16px 20px; transition: border-color var(--t-fast), box-shadow var(--t-fast); }
@media (hover: hover) { .logos li:hover { border-color: var(--c-blue); box-shadow: var(--sh-card-hover); } }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logos { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ============ TESTIMONIOS ============ */
.testis { display: grid; grid-template-columns: 1fr; gap: 18px; }
.testi { margin: 0; background: var(--c-white); border: 1px solid var(--c-border); border-top: 5px solid var(--c-royal); padding: 30px 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 22px; }
.testi blockquote { margin: 0; }
.testi blockquote::before { content: "\201C"; display: block; height: 24px; font-family: var(--f-head); font-weight: 900; font-size: 48px; line-height: 0.6; color: var(--c-orange); margin-bottom: 10px; }
.testi blockquote p { margin: 0; font-size: 17px; line-height: 1.55; color: var(--c-ink-2); text-wrap: pretty; }
.testi figcaption { display: flex; align-items: center; gap: 14px; border-top: 1px solid var(--c-border); padding-top: 18px; }
.testi__logo { width: 72px; height: 48px; flex-shrink: 0; border: 1px solid var(--c-border); background: var(--c-white) no-repeat center / contain; background-origin: content-box; padding: 6px 8px; }
.testi strong { display: block; font-family: var(--f-head); font-weight: 700; font-size: 15px; line-height: 1.3; color: var(--c-royal); }
.testi figcaption span { font-size: 14px; line-height: 1.4; color: var(--c-concrete); }
@media (min-width: 900px) { .testis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ============ CTA FINAL ============ */
.cta { position: relative; background: var(--c-royal); overflow: hidden; }
.cta__stripe-top { position: absolute; top: 0; left: 0; right: 0; height: 14px; background: var(--c-orange); clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%); }
.cta__stripe, .cta__stripe-thin { display: none; position: absolute; top: -20%; bottom: -20%; transform: skewX(-22deg); }
.cta__stripe { right: 8%; width: 22%; background: var(--c-orange); }
.cta__stripe-thin { right: calc(30% + 18px); width: 14px; background: var(--c-blue); }
.cta__inner { position: relative; padding-top: clamp(64px, 8vw, 100px); padding-bottom: clamp(64px, 8vw, 100px); }
.cta__content { max-width: 620px; display: flex; flex-direction: column; gap: 24px; }
.cta h2 { margin: 0; font-family: var(--f-head); font-weight: 900; font-size: clamp(32px, 4.6vw, 52px); line-height: 1.06; letter-spacing: -0.02em; color: var(--c-white); text-wrap: balance; }
.cta__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.cta__contact { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.2; color: var(--c-white); text-decoration: none; padding: 14px 8px; border-bottom: 2px solid var(--c-sky); }
.cta__contact:hover { color: var(--c-sky); }
@media (min-width: 1100px) {
  .cta__stripe-top { display: none; }
  .cta__stripe, .cta__stripe-thin { display: block; }
}

/* ============ CONTACTO / FORM ============ */
.contacto { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.quote { scroll-margin-top: 96px; background: var(--c-white); border: 1px solid var(--c-border); border-top: 6px solid var(--c-orange); padding: clamp(24px, 4vw, 44px); }
.quote__head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.quote__head h2 { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(26px, 3vw, 36px); line-height: 1.1; color: var(--c-royal); }
.quote__head p { margin: 0; font-size: 16px; color: var(--c-concrete); }
.form { display: grid; grid-template-columns: 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--c-ink); }
.field--full, .form__actions { grid-column: 1 / -1; }
.input { height: 48px; border: 1.5px solid var(--c-field-border); border-radius: 0; background: var(--c-white); padding: 0 14px; font-size: 16px; font-weight: 400; color: var(--c-ink); transition: border-color var(--t-fast), box-shadow var(--t-fast); }
select.input { padding: 0 12px; }
textarea.input { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.input::placeholder { color: #6B7079; }
.input:hover { border-color: var(--c-concrete); }
.input:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(58, 111, 216, 0.25); }
.input[aria-invalid="true"] { border-color: var(--c-error); }
/* Honeypot: off-screen, never shown to people */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.field__error { font-size: 14px; font-weight: 500; color: var(--c-error); }
.field__error[hidden] { display: none; }
.form[hidden] { display: none; }
.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: 4px; }
.form__actions .btn--primary { padding: 18px 36px; }
.form__legal { font-size: 14px; font-weight: 400; color: var(--c-concrete); }
.success { background: var(--c-success-bg); border-left: 5px solid var(--c-royal); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.success[hidden] { display: none; }
.success strong { font-family: var(--f-head); font-size: 20px; line-height: 1.3; color: var(--c-royal); }
.success span { font-size: 16px; color: var(--c-ink-2); }
.success button { align-self: flex-start; background: none; border: 0; padding: 8px 0; color: var(--c-royal); font-weight: 700; font-size: 15px; text-decoration: underline; cursor: pointer; }
.aside { display: flex; flex-direction: column; gap: 20px; }
.contact-card { background: var(--c-royal); border-bottom: 6px solid var(--c-orange); padding: 30px 28px; display: flex; flex-direction: column; gap: 18px; }
.contact-card h2 { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: 22px; line-height: 1.2; color: var(--c-white); }
.contact-card dl { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.contact-card dl > div { display: flex; flex-direction: column; gap: 2px; padding-bottom: 12px; border-bottom: 1px solid var(--c-line-on-dark); }
.contact-card dt { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-silver); }
.contact-card dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--c-white); }
.contact-card dd a { color: var(--c-white); text-decoration: none; }
.contact-card dd a:hover { color: var(--c-sky); }
.map { aspect-ratio: 4 / 3; border: 1px solid var(--c-logo-ph); background: var(--c-surface-2); overflow: hidden; }
.map img, .map iframe { width: 100%; height: 100%; object-fit: cover; border: 0; }
.map__link { align-self: flex-start; margin-top: -8px; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--c-royal); text-decoration: none; }
.map__link:hover { color: var(--c-blue); }
@media (min-width: 640px) { .form { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .contacto { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }

/* ============ FOOTER ============ */
.footer { background: var(--c-navy-900); color: var(--c-on-dark); }
.footer::before { content: ""; display: block; height: 6px; background: linear-gradient(90deg, var(--c-orange) 0 18%, var(--c-royal) 18% 60%, var(--c-blue) 60% 82%, var(--c-sky) 82% 95%, var(--c-silver) 95%); }
.footer__inner { padding-top: 56px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__brand { display: flex; flex-direction: column; gap: 16px; max-width: 320px; }
.footer__brand img { width: 178px; height: 72px; }
.footer__brand p { margin: 0; font-size: 15px; line-height: 1.5; }
.footer__brand .script { font-size: 18px; color: var(--c-sky); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col .label-caps { color: var(--c-white); margin-bottom: 4px; }
.footer__col a { font-size: 15px; line-height: 1.5; color: var(--c-on-dark); text-decoration: none; padding: 2px 0; }
.footer__col a:hover { color: var(--c-orange); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--c-line-on-dark-2); padding-top: 22px; font-size: 14px; }
.footer__bottom a { color: var(--c-on-dark); }
.footer__bottom a:hover { color: var(--c-orange); }
.footer__links { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
/* Discreet staff login: same weight as the legal link, lock glyph, no emphasis */
.footer__login { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; opacity: 0.8; }
.footer__login:hover { opacity: 1; }
.footer__login svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ============ WHATSAPP FAB ============ */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: var(--z-whatsapp); height: 56px; padding: 0 20px 0 16px; border-radius: var(--r-pill); background: var(--c-whatsapp); color: var(--c-white); text-decoration: none; display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 15px; box-shadow: var(--sh-wa); transition: background-color var(--t-fast), transform var(--t-fast); }
.wa:hover { background: var(--c-whatsapp-hover); color: var(--c-white); transform: translateY(-2px); }
.wa:active { transform: translateY(0); }
.wa svg { width: 24px; height: 24px; fill: var(--c-white); }
@media (min-width: 900px) { body:not(.wa-always) .wa { display: none; } }

/* ============ RESPONSIVE REFINEMENTS (celular y tableta) ============ */
/* Hero: on phones use the small viewport height so the browser chrome does not push content around */
@supports (height: 1svh) {
  .hero { min-height: min(92svh, 860px); }
}

/* Keep the floating WhatsApp button from covering the footer's last links */
.footer__inner { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
@media (max-width: 899px) {
  .footer__inner { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (min-width: 900px) {
  body.wa-always .footer__inner { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* Touch targets >= 44px below 900px without moving the layout */
@media (max-width: 899px) {
  /* Stacked footer links: real padding, gap removed so the rhythm stays close to the spec */
  .footer__col { gap: 0; }
  .footer__col a { padding: 11px 0; }
  .footer__col .label-caps { margin-bottom: 6px; }
  /* Inline links: invisible 44px-tall hit area centred on the text */
  .link-arrow, .contact-card dd a, .footer__bottom a, .footer__login, .form__legal a, .success button, .cta__contact, .login__link, .login__legal a { position: relative; }
  .link-arrow::after, .contact-card dd a::after, .footer__bottom a::after, .form__legal a::after, .success button::after, .login__link::after, .login__legal a::after {
    content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%);
  }
  .footer__bottom { gap: 16px; }
  /* No grey tap flash on controls that already have their own :active state */
  .btn, .burger, .wa { -webkit-tap-highlight-color: transparent; }
}

/* Tablet (640-899): contact card and map side by side instead of a very tall stacked map */
@media (min-width: 640px) and (max-width: 899px) {
  .aside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; gap: 20px; }
  .map { aspect-ratio: auto; min-height: 320px; }
}

/* ============ LOGIN (acceso interno) ============ */
.login-body { min-height: 100vh; background: var(--c-bone); }
@supports (height: 1svh) { .login-body { min-height: 100svh; } }
.login { min-height: 100vh; display: grid; grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
@supports (height: 1svh) { .login { min-height: 100svh; } }

/* Brand panel: echo of the hero (navy base, overlay gradient, skewed bands) */
.login__brand { position: relative; overflow: hidden; background: var(--c-navy-950); background-image: linear-gradient(100deg, rgba(15,26,61,0.94) 0%, rgba(31,60,156,0.86) 55%, rgba(31,60,156,0.55) 100%); }
.login__brand::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: linear-gradient(90deg, var(--c-orange) 0 30%, var(--c-blue) 30% 70%, var(--c-sky) 70% 92%, var(--c-silver) 92%); }
.login__band { position: absolute; top: -10%; bottom: -10%; transform: skewX(-18deg); }
.login__band--1 { right: 10%; width: 48px; background: var(--c-blue); opacity: 0.85; }
.login__band--2 { right: calc(10% - 30px); width: 16px; background: var(--c-sky); opacity: 0.85; }
.login__band--3 { right: calc(10% - 50px); width: 6px; background: var(--c-silver); }
.login__brand-inner { position: relative; padding: calc(24px + env(safe-area-inset-top)) var(--pad-x) 28px; display: flex; flex-direction: column; gap: 14px; }
.login__brand-inner img { width: 119px; height: 48px; }
.login__tagline { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.5; color: var(--c-on-dark); }

/* Form panel */
.login__panel { display: flex; flex-direction: column; gap: 24px; padding: 24px var(--pad-x) calc(24px + env(safe-area-inset-bottom)); max-width: 560px; width: 100%; margin: 0 auto; }
.login__back { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--c-royal); text-decoration: none; }
.login__back:hover { color: var(--c-blue); }
.login__card { background: var(--c-white); border: 1px solid var(--c-border); border-top: 6px solid var(--c-orange); padding: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; gap: 22px; }
.login__head { display: flex; flex-direction: column; gap: 10px; }
.login__title { margin: 0; font-family: var(--f-head); font-weight: 800; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.015em; color: var(--c-royal); text-wrap: balance; }
.login__sub { margin: 0; font-size: 16px; line-height: 1.5; color: var(--c-concrete); text-wrap: pretty; }
.login__alert { margin: 0; padding: 14px 16px; background: #FBEDEC; border-left: 5px solid var(--c-error); font-size: 15px; font-weight: 500; line-height: 1.4; color: #7A1A14; }
.login__alert[hidden] { display: none; }
.login__form { grid-template-columns: 1fr; gap: 18px; }
.login__form .form__actions { padding-top: 2px; }
.login__submit { width: 100%; padding: 18px 32px; }
.login__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; font-size: 15px; font-weight: 400; color: var(--c-ink); }
.login__link { font-weight: 600; font-size: 15px; color: var(--c-royal); text-decoration: none; border-bottom: 2px solid var(--c-sky); padding-bottom: 1px; }
.login__link:hover { color: var(--c-blue); border-color: var(--c-blue); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--c-royal); flex-shrink: 0; }

/* Password field with show/hide toggle */
.password { position: relative; display: block; }
.password .input { width: 100%; padding-right: 52px; }
.password__toggle { position: absolute; top: 0; right: 0; width: 48px; height: 48px; border: 0; background: transparent; color: var(--c-concrete); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.password__toggle:hover { color: var(--c-royal); }
.password__toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.password__toggle .password__eye-off { display: none; }
.password__toggle.is-visible .password__eye { display: none; }
.password__toggle.is-visible .password__eye-off { display: block; }

.login__legal { margin: auto 0 0; font-size: 13px; line-height: 1.5; color: var(--c-concrete); text-align: center; }
.login__legal a { color: var(--c-royal); text-decoration: none; border-bottom: 1px solid var(--c-silver); }
.login__legal a:hover { color: var(--c-blue); }

/* Desktop: split layout, brand panel fills the left column */
@media (min-width: 900px) {
  .login { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: 1fr; }
  .login__brand::after { left: auto; top: 0; bottom: 0; right: 0; width: 6px; height: auto; background: linear-gradient(180deg, var(--c-orange) 0 30%, var(--c-blue) 30% 70%, var(--c-sky) 70% 92%, var(--c-silver) 92%); }
  .login__band--1 { right: 14%; width: 64px; }
  .login__band--2 { right: calc(14% - 40px); width: 22px; }
  .login__band--3 { right: calc(14% - 66px); width: 8px; }
  .login__brand-inner { height: 100%; justify-content: flex-end; padding: 48px clamp(32px, 5vw, 72px); gap: 20px; }
  .login__brand-inner img { width: 178px; height: 72px; }
  .login__tagline { font-size: 17px; }
  .login__panel { max-width: none; margin: 0; padding: 32px clamp(32px, 6vw, 96px) 32px; justify-content: center; }
  .login__card { max-width: 520px; width: 100%; }
  .login__legal { margin-top: 0; text-align: left; }
}
