/* Solo Flejes Orocué · estilos del sitio
   Concepto: la diagonal del logo (verde arriba, azul abajo) corta la portada y marca los títulos.
   Colores tomados del logo: azul #185AA4 y verde #43AC35; el azul profundo y el verde oscuro salen del mismo tono. */
:root {
  --blue: #185AA4;
  --blue-700: #134A88;
  --navy: #0D2B52;
  --navy-900: #091F3C;
  --navy-2: #133D6E;
  --green: #43AC35;
  --green-600: #2B7A23;
  --green-700: #21641A;
  --green-50: #E9F5E6;
  --paper: #F3F6F9;
  --white: #FFFFFF;
  --ink: #11213A;
  --muted: #4E5E72;
  --line: #DCE3EB;
  --on-dark: #E7EEF6;
  --on-dark-muted: #A8BCD2;

  --f-display: "Kanit", "Trebuchet MS", Arial, sans-serif;
  --f-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --gutter: 20px;
  --radius: 12px;
  --shadow: 0 18px 40px rgba(9, 31, 60, .12);
  --header-h: 72px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.6; }
img, svg, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; border-radius: 4px; }
.hero :focus-visible, .facts :focus-visible, .flejes :focus-visible, .footer :focus-visible { outline-color: var(--green); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

/* Tipografía */
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.3vw, 2.8rem); color: var(--navy); letter-spacing: -.005em; }
h3 { font-size: 1.22rem; color: var(--navy); font-weight: 600; }
p { margin: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-display); font-weight: 500; font-size: .86rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue);
}
.eyebrow::before {
  content: ""; width: 26px; height: 12px; flex: none;
  background: linear-gradient(115deg, transparent 0 18%, var(--green) 18% 44%, transparent 44% 56%, var(--blue) 56% 82%, transparent 82%);
}
.eyebrow-light { color: var(--on-dark-muted); }
.eyebrow-light::before { background: linear-gradient(115deg, transparent 0 18%, var(--green) 18% 44%, transparent 44% 56%, #7FA8DA 56% 82%, transparent 82%); }
.section { padding-block: clamp(60px, 8vw, 104px); }
.section-white { background: var(--white); }
.head { display: grid; gap: 12px; max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.head > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: 10px; border: 2px solid transparent;
  font-family: var(--f-body); font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green-600); color: var(--white); }
.btn-primary:hover { background: var(--green-700); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .08); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: var(--white); }
.btn-outline:hover { background: #EAF1FA; }
.btn-add { width: 100%; min-height: 46px; border-color: var(--green-600); color: var(--green-600); background: var(--white); font-size: .97rem; }
.btn-add:hover { background: var(--green-50); }
.btn-sm { min-height: 44px; padding: 8px 18px; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 560px) { .cta-row .btn { flex: 1 1 100%; } }

/* Encabezado */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; color: var(--ink); padding-block: 6px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--blue); border-bottom-color: var(--green); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; width: 46px; height: 46px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--white); color: var(--navy); align-items: center; justify-content: center; cursor: pointer; }
.menu-btn .icon { width: 24px; height: 24px; }
.menu-btn .icon-cerrar { display: none; }
.menu-abierto .menu-btn .icon-abrir { display: none; }
.menu-abierto .menu-btn .icon-cerrar { display: block; }
@media (max-width: 1100px) { .nav { gap: 20px; } }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    display: none; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-top: 1px solid var(--line); box-shadow: 0 16px 30px rgba(9, 31, 60, .15);
    padding: 8px var(--gutter) 16px;
  }
  .menu-abierto .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .brand img { height: 42px; }
}
@media (max-width: 380px) { .brand img { height: 36px; } .topbar-actions .btn-sm { padding-inline: 12px; } }

/* Portada */
.hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: var(--on-dark);
  --copy-w: min(540px, 52vw);
  --copy-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter)));
}
.hero-media {
  position: absolute; top: 0; right: 0; bottom: 0; width: calc(100% - var(--copy-left) - var(--copy-w) - 36px); z-index: -1;
  background: var(--green);
  clip-path: polygon(16% 0, 100% 0, 100% 100%, 0 100%);
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 45% 50%;
  clip-path: polygon(calc(16% + 14px) 0, 100% 0, 100% 100%, 14px 100%);
}
.hero-inner { display: flex; align-items: center; min-height: clamp(520px, 46vw, 660px); }
.hero-copy { max-width: var(--copy-w); display: grid; gap: 22px; padding-block: 64px; }
.hero h1 { font-size: clamp(2.7rem, 1.3rem + 4.4vw, 4.6rem); font-weight: 700; color: var(--white); line-height: 1; letter-spacing: -.01em; }
.hero h1 em { font-style: italic; color: var(--green); }
.lead { font-size: 1.14rem; color: var(--on-dark); max-width: 30rem; }
.hero-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--on-dark-muted); font-size: .98rem; }
.hero-facts li { display: flex; align-items: center; gap: 10px; }
.hero-facts .icon { width: 20px; height: 20px; color: var(--green); }
@media (max-width: 900px) {
  .hero-media { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 9; z-index: 0; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
  .hero-media img { object-position: 45% 0%; clip-path: polygon(0 0, 100% 0, 100% calc(88% - 10px), 0 calc(100% - 10px)); }
  .hero-inner { min-height: 0; }
  .hero-copy { max-width: none; padding-block: 28px 48px; }
}

/* Franja de datos */
.facts { background: var(--navy-900); color: var(--on-dark); border-top: 4px solid var(--green); }
.facts ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: 22px 20px; display: grid; gap: 2px; align-content: start; border-left: 1px solid rgba(255, 255, 255, .1); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { font-family: var(--f-display); font-weight: 600; font-size: 1.4rem; color: var(--white); line-height: 1.15; }
.facts span { color: var(--on-dark-muted); font-size: .96rem; }
@media (max-width: 860px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li { padding: 18px 14px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
  .facts li:nth-child(odd) { padding-left: 0; }
  .facts li:nth-child(-n+2) { border-top: 0; }
}

/* Destacados */
.featured { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-rows: auto 1fr; min-width: 0; box-shadow: 0 2px 0 rgba(9, 31, 60, .03); }
.card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 18px 18px 20px; display: grid; grid-template-rows: auto 1fr auto; gap: 10px; }
.card-varilla .card-body { grid-template-rows: auto auto 1fr auto; }
.card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.12rem; }
.card h3 .icon { color: var(--green-600); }
.card p { color: var(--muted); }
.card-graphic { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 20% 10%, var(--navy-2), var(--navy) 70%); display: grid; place-items: center; padding: 20px; }
.rebar { width: 100%; height: auto; overflow: visible; }
.rebar .bar { fill: #8FA9C7; }
.rebar .rib { fill: none; stroke: var(--navy); stroke-width: 1.4; stroke-dasharray: 2.4 2.4; opacity: .55; }
.rebar text { font-family: var(--f-display); font-size: 11px; font-weight: 500; fill: var(--on-dark); }
.rebar .rebar-title { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; fill: var(--on-dark-muted); }
.refs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; align-content: start; }
.refs li { font-family: var(--f-display); font-weight: 500; font-size: .9rem; padding: 2px 10px; border-radius: 999px; background: #EAF1FA; color: var(--blue-700); }
@media (max-width: 1040px) { .featured { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .featured { grid-template-columns: minmax(0, 1fr); } }

/* Catálogo */
.lines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.line { display: grid; grid-template-rows: auto 1fr; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--line); min-width: 0; }
.line > img, .line-graphic { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.line-graphic { display: grid; place-items: center; align-content: center; gap: 10px; background: radial-gradient(120% 90% at 80% 10%, var(--navy-2), var(--navy) 70%); color: var(--white); text-align: center; padding: 16px; }
.line-graphic .icon { width: 64px; height: 64px; stroke-width: 1.4; color: var(--green); }
.line-graphic span { font-family: var(--f-display); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .86rem; color: var(--on-dark-muted); }
.line-body { padding: 18px 20px 20px; display: grid; grid-template-rows: auto 1fr auto; gap: 8px; }
.line-body p { color: var(--muted); }
.link-add { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--green-600); font-weight: 700; text-decoration: none; }
.link-add:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-add .icon { width: 18px; height: 18px; }
.line-wide { grid-column: span 2; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: none; }
.line-wide > img { height: 100%; min-height: 260px; }
.line-wide .line-body { grid-template-rows: none; align-content: center; justify-items: start; padding: 26px 28px; }
.line-wide h3 { font-size: 1.45rem; }
.line-tag { font-family: var(--f-display); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-600); }
@media (max-width: 1040px) {
  .lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Con 2 columnas la última tarjeta quedaría sola: se vuelve ancha */
  .lines > .line:last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-rows: none; }
  .lines > .line:last-child > img { height: 100%; min-height: 220px; }
  .lines > .line:last-child .line-body { grid-template-rows: none; align-content: center; justify-items: start; padding: 26px 28px; }
  .lines > .line:last-child h3 { font-size: 1.45rem; }
}
@media (max-width: 640px) {
  .lines { grid-template-columns: minmax(0, 1fr); }
  .line-wide, .lines > .line:last-child { grid-column: auto; grid-template-columns: none; grid-template-rows: auto 1fr; }
  .line-wide > img, .lines > .line:last-child > img { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .line-wide .line-body, .lines > .line:last-child .line-body { padding: 18px 20px 20px; align-content: start; }
  .line-wide h3, .lines > .line:last-child h3 { font-size: 1.22rem; }
}

/* Flejes */
.flejes { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.flejes::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 32px 32px;
}
.flejes-grid { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.flejes-photo { margin: 0; position: relative; }
.flejes-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 55%; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 0, 0, .35); }
.flejes-photo figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); background: rgba(9, 31, 60, .85); color: var(--white); font-size: .9rem; padding: 8px 12px; border-radius: 8px; }
.flejes-copy { display: grid; gap: 20px; justify-items: start; }
.flejes-copy h2 { color: var(--white); }
.flejes-copy > p:not(.eyebrow) { font-size: 1.1rem; max-width: 34rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: paso; }
.steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 14px; counter-increment: paso; }
.steps li::before {
  content: counter(paso); grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: var(--green-600); color: var(--white);
  font-family: var(--f-display); font-weight: 600; font-size: 1.15rem;
}
.steps b { color: var(--white); font-weight: 700; }
.steps span { color: var(--on-dark-muted); }
@media (max-width: 900px) { .flejes-grid { grid-template-columns: minmax(0, 1fr); } .flejes-photo { max-width: 460px; width: 100%; margin-inline: auto; } }

/* Cotizador */
.cotizar { background: linear-gradient(180deg, var(--paper), #E8EEF5); }
.cotizar-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.cotizar-intro { display: grid; gap: 16px; position: sticky; top: calc(var(--header-h) + 24px); }
.cotizar-intro > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.ticks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .icon { color: var(--green-600); margin-top: 2px; }
.pago { margin-top: 10px; padding: 18px 20px; border-radius: 14px; background: var(--white); border: 1.5px dashed #B9C6D3; display: grid; gap: 8px; }
.pago-tag { justify-self: start; font-family: var(--f-display); font-weight: 500; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green-700); background: var(--green-50); padding: 3px 10px; border-radius: 999px; }
.pago h3 { font-size: 1.15rem; }
.pago-pasos { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--muted); }
.quote { background: var(--white); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid var(--line); padding: clamp(18px, 3vw, 32px); display: grid; gap: 20px; min-width: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--paper); border-radius: 12px; border: 1px solid var(--line); }
.tab { font: inherit; font-weight: 700; font-size: clamp(.88rem, 3.6vw, 1rem); white-space: nowrap; border: 0; border-radius: 9px; padding: 12px 8px; min-height: 46px; background: transparent; color: var(--muted); cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: 0 4px 12px rgba(13, 43, 82, .25); }
.panel { display: grid; gap: 18px; }
.panel[hidden] { display: none; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip-groups { display: grid; gap: 14px; }
.chips-title { font-weight: 700; color: var(--navy); }
.chips legend { font-family: var(--f-display); font-weight: 500; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--ink); font-weight: 600; font-size: .95rem;
  transition: background-color .15s ease, border-color .15s ease;
}
.chips span::before { content: "+"; font-weight: 700; color: var(--muted); width: 12px; text-align: center; }
.chips label:hover span { border-color: #B6C4D3; }
.chips input:checked + span { background: var(--green-50); border-color: var(--green-600); color: var(--green-700); }
.chips input:checked + span::before { content: "✓"; color: var(--green-600); }
.chips input:focus-visible + span { outline: 3px solid var(--green-600); outline-offset: 2px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 700; color: var(--navy); font-size: .96rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white); width: 100%;
  border: 1.5px solid #8796A8; border-radius: 10px; padding: 11px 12px; min-height: 48px;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24, 90, 164, .18); }
.flejes-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
/* Si una etiqueta ocupa dos líneas, el espacio extra va a la etiqueta y las casillas quedan alineadas */
.fields .field { grid-template-rows: 1fr auto; }
.plano { margin: 0; background-color: var(--paper); background-image: linear-gradient(#E3E9F0 1px, transparent 1px), linear-gradient(90deg, #E3E9F0 1px, transparent 1px); background-size: 18px 18px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.plano svg { display: block; width: 100%; height: auto; }
.plano figcaption { font-size: .85rem; color: var(--muted); text-align: center; }
.shared { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 18px; border-top: 1px dashed var(--line); }
.preview { background: var(--paper); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--line); }
.preview-label { font-family: var(--f-display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.preview pre { margin: 0; font-family: var(--f-body); font-size: .98rem; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.quote-note { font-size: .9rem; color: var(--muted); text-align: center; margin-top: -8px; }
@media (max-width: 960px) {
  .cotizar-grid { grid-template-columns: minmax(0, 1fr); }
  .cotizar-intro { position: static; }
}
@media (max-width: 640px) {
  .flejes-form, .shared { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 380px) { .fields { grid-template-columns: minmax(0, 1fr); } }

/* Nosotros */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 40%; border-radius: var(--radius); }
.about-badge {
  position: absolute; right: -12px; bottom: -22px; display: flex; align-items: center; gap: 12px;
  background: var(--navy); color: var(--white); border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow);
  border-left: 6px solid var(--green);
}
.about-badge b { font-family: var(--f-display); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.about-badge span { color: var(--on-dark-muted); line-height: 1.25; font-size: .95rem; }
.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 30px; }
.reason { display: grid; gap: 8px; align-content: start; min-width: 0; }
.reason .icon { width: 30px; height: 30px; color: var(--green-600); }
.reason p { color: var(--muted); }
@media (max-width: 900px) { .about-grid { grid-template-columns: minmax(0, 1fr); } .about-badge { right: 12px; } .about-photo { margin-bottom: 28px; } }
@media (max-width: 520px) { .reasons { grid-template-columns: minmax(0, 1fr); } }

/* Galería */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 16vw, 210px); gap: 12px; }
.gallery > img, .gallery video { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; background: var(--line); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.g-tall { grid-row: span 2; }
.g-video { grid-column: span 2; grid-row: span 2; border-radius: 10px; overflow: hidden; background: var(--navy); }
.g-video video { display: block; object-position: 40% 50%; }
.g-wide-2 { grid-column: span 2; }
.gallery:has(.g-video[hidden]) .g-wide-2, .gallery:has(.g-video[hidden]) .g-std { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; }
}

/* Contacto */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: stretch; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; border-top: 1px solid var(--line); }
.contact-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon { grid-row: span 2; color: var(--green-600); margin-top: 4px; }
.contact-list small { font-family: var(--f-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.contact-list a, .contact-list b { color: var(--navy); font-weight: 700; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.contact-list a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.map-wrap { min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #E3E9F0; }
.map { display: block; width: 100%; height: 100%; min-height: 380px; border: 0; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }

/* Pie */
.footer { background: var(--navy-900); color: var(--on-dark-muted); padding-block: 56px calc(28px + env(safe-area-inset-bottom, 0px)); font-size: .97rem; border-top: 4px solid var(--green); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-brand img { width: 210px; height: auto; }
.footer-quote { margin-top: 16px; color: var(--on-dark); font-style: italic; max-width: 22rem; }
.footer-title { font-family: var(--f-display); font-size: .9rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--white); margin-bottom: 10px; }
.footer p + p { margin-top: 4px; }
.footer a { color: var(--white); text-decoration: none; display: inline-block; padding-block: 10px; margin-block: -8px; overflow-wrap: anywhere; max-width: 100%; }
.footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .9rem; }
@media (max-width: 1040px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); } }

/* Botón flotante de WhatsApp */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 50;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 18px; border-radius: 999px;
  background: var(--green-600); color: var(--white); text-decoration: none; font-weight: 700;
  box-shadow: 0 12px 28px rgba(9, 31, 60, .3); transition: background-color .15s ease, transform .2s ease, opacity .2s ease, visibility .2s;
}
.wa-float:hover { background: var(--green-700); transform: translateY(-2px); }
.wa-float.oculto { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px); }
.wa-float .icon { width: 28px; height: 28px; stroke-width: 1.9; }
@media (max-width: 560px) { .wa-float { width: 58px; height: 58px; padding: 0; justify-content: center; } .wa-float span { display: none; } }
