/* =========================================================
   MEDICFAR S.A.S. — Hoja de estilos
   Paleta y tipografía alineadas con el brochure corporativo
   ========================================================= */

/* ---------- Fuentes (OFL, alojadas localmente) ---------- */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("../fonts/source-serif-4-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  /* Marca */
  --petroleo: #0B3A44;        /* fondos oscuros y títulos */
  --petroleo-700: #0E4652;    /* superficies sobre oscuro */
  --petroleo-600: #17505B;
  --teal: #10707E;            /* acento principal, etiquetas */
  --menta: #7FC9BC;           /* acento secundario, viñetas, números */
  --menta-300: #A9D9D0;

  /* Neutros */
  --texto: #3A585C;           /* párrafos */
  --texto-suave: #57767A;     /* texto secundario (AA sobre blanco) */
  --linea: #D7E6E3;           /* bordes */
  --tinte: #F1F7F5;           /* fondos de sección claros */
  --tinte-2: #EAF3F1;         /* tarjetas */
  --blanco: #FFFFFF;

  /* Tipografía */
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  /* Escala */
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(11, 58, 68, .05), 0 8px 24px rgba(11, 58, 68, .06);
  --header-h: 76px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--texto);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  color: var(--petroleo);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal); text-underline-offset: 3px; }
a:hover { color: var(--petroleo); }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.ico {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--petroleo);
  color: var(--blanco);
  border-radius: 8px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; color: var(--blanco); }

/* ---------- Etiquetas y tipografía de apoyo ---------- */
.eyebrow,
.label {
  display: block;
  margin: 0 0 .75rem;
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow-light, .label-mint { color: var(--menta); }

.prose p {
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--texto);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 48px;
  padding: .8em 1.4em;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 .95rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--petroleo); color: var(--blanco); }
.btn-primary:hover { background: var(--teal); color: var(--blanco); }

.btn-mint { background: var(--menta); color: var(--petroleo); }
.btn-mint:hover { background: var(--blanco); color: var(--petroleo); }

.btn-ghost { background: transparent; color: var(--blanco); border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { border-color: var(--menta); color: var(--menta); }

/* ---------- Chips (píldoras) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.chips li {
  padding: .5em 1.1em;
  border: 1px solid var(--linea);
  border-radius: 999px;
  background: var(--tinte);
  font-size: .875rem;
  font-weight: 600;
  color: var(--petroleo);
}
.chips-dark li {
  background: rgba(255,255,255,.04);
  border-color: rgba(127, 201, 188, .45);
  color: var(--blanco);
}

/* =========================================================
   CABECERA
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header::before {               /* barra degradada como el brochure */
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--menta), var(--teal) 55%, var(--petroleo));
}
.site-header.is-scrolled {
  border-bottom-color: var(--linea);
  box-shadow: 0 6px 20px rgba(11, 58, 68, .06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--petroleo);
}
.brand-emblem { width: 46px; height: 46px; color: var(--petroleo); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: .18em;
  color: var(--petroleo);
}
.brand-sub {
  margin-top: 4px;
  font-size: .64rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--teal);
}
.brand-light, .brand-light .brand-name, .brand-light .brand-emblem { color: var(--blanco); }
.brand-light .brand-sub { color: var(--menta); }

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul {
  display: flex;
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.main-nav ul a {
  position: relative;
  padding: 6px 0;
  font-size: .92rem;
  font-weight: 600;
  color: var(--petroleo);
  text-decoration: none;
}
.main-nav ul a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--menta);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.main-nav ul a:hover::after,
.main-nav ul a.is-active::after { transform: scaleX(1); }
.main-nav ul a.is-active { color: var(--teal); }

.nav-cta { min-height: 44px; padding: .65em 1.2em; font-size: .88rem; }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--linea);
  border-radius: 12px;
  background: var(--blanco);
  color: var(--petroleo);
  cursor: pointer;
}
.menu-toggle .ico { width: 24px; height: 24px; }

@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    position: fixed;
    inset: calc(var(--header-h) + 4px) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 20px var(--gutter) 28px;
    background: var(--blanco);
    border-bottom: 1px solid var(--linea);
    box-shadow: 0 20px 40px rgba(11, 58, 68, .12);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid var(--tinte-2);
    font-size: 1rem;
  }
  .main-nav ul a::after { display: none; }
  .nav-cta { width: 100%; }
}

/* =========================================================
   HERO
   ========================================================= */
/* Portada: hero + cifras llenan exactamente la pantalla bajo la cabecera */
.cover {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--header-h) - 5px);   /* 4px barra degradada + 1px borde */
  min-height: calc(100svh - var(--header-h) - 5px);
}
.cover .hero {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
}
.cover .hero > .container { width: 100%; }
.cover .stats { flex: 0 0 auto; }

/* En escritorio la portada se escala con la altura de la pantalla
   para que hero y cifras quepan completos sin desplazarse */
@media (min-width: 961px) {
  .cover .hero { padding-block: clamp(28px, 7svh, 104px); }
  .cover .hero h1 { font-size: clamp(1.9rem, min(4.6vw, 5.4svh), 3.6rem); margin-bottom: clamp(.6rem, 2svh, 1.25rem); }
  .cover .hero-lead { margin-bottom: clamp(1rem, 3svh, 2rem); }
  .cover .hero-actions { margin-bottom: clamp(1rem, 3svh, 2rem); }
  .cover .hero-visual { align-self: stretch; }
  .cover .hero-photo { aspect-ratio: auto; height: 100%; min-height: 320px; }
  .cover .stat { padding-block: clamp(14px, 3svh, 32px); }
}
/* Pantallas de escritorio bajas (laptops 768px o menos de alto):
   se ocultan las píldoras del hero para que la portada quepa entera */
@media (min-width: 961px) and (max-height: 860px) {
  .cover .hero .chips-dark { display: none; }
  .cover .hero-actions { margin-bottom: 0; }
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(127, 201, 188, .16), transparent 60%),
    var(--petroleo);
  color: rgba(255,255,255,.85);
  padding: clamp(56px, 9vw, 112px) 0 clamp(64px, 9vw, 120px);
}

/* Flor de loto translúcida del brochure (assets/img/loto.webp).
   El punto de origen de los pétalos está al 83 % del ancho y alto de la imagen;
   se desplaza fuera del borde para que la flor nazca de la esquina, como en el brochure. */
.petals {
  position: absolute;
  z-index: 0;
  width: clamp(300px, 42vw, 640px);
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}
.petals-right { right: calc(clamp(300px, 42vw, 640px) * -0.17); bottom: calc(clamp(300px, 42vw, 640px) * -0.17); }
.petals-left  { left:  calc(clamp(300px, 42vw, 640px) * -0.17); bottom: calc(clamp(300px, 42vw, 640px) * -0.17); transform: scaleX(-1); }
.hero .petals { opacity: .75; }
.section .container, .hero .container { position: relative; z-index: 1; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
}

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--blanco);
  margin-bottom: 1.25rem;
}
.hero h1 em { font-style: italic; color: var(--menta); }

.hero-lead {
  max-width: 34em;
  font-size: 1.08rem;
  color: rgba(255,255,255,.78);
  margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 2rem; }

.hero-visual { position: relative; }
.hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.08);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-badge {
  position: absolute;
  left: -28px;
  bottom: 36px;
  width: 112px;
  height: 112px;
  padding: 16px;
  border-radius: 24px;
  background: var(--petroleo-700);
  border: 1px solid rgba(127, 201, 188, .3);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  color: var(--blanco);
}
.hero-badge svg { width: 100%; height: 100%; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { aspect-ratio: 16 / 10; }
  .hero-badge { left: auto; right: 16px; bottom: -32px; width: 88px; height: 88px; padding: 12px; }
}

/* =========================================================
   CIFRAS
   ========================================================= */
.stats {
  background: var(--tinte);
  border-bottom: 1px solid var(--linea);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 32px 24px;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--linea); }
.stat-num {
  font-family: var(--sans);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: .95;
  letter-spacing: -0.04em;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}
.stat-label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
@media (max-width: 720px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 24px 12px; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--linea); }
}

/* =========================================================
   SECCIONES
   ========================================================= */
.section {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 10vw, 120px) 0;
}
.section-tint { background: var(--tinte); }
.section-dark {
  background: var(--petroleo);
  color: rgba(255,255,255,.8);
}
.section-dark h2, .section-dark h3 { color: var(--blanco); }
.section-dark .label-mint { color: var(--menta); }

.section-head {
  display: flex;
  align-items: flex-start;
  gap: clamp(14px, 2.5vw, 28px);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-num {
  font-weight: 800;
  font-size: clamp(3.4rem, 7vw, 5.2rem);
  line-height: .85;
  letter-spacing: -0.04em;
  color: var(--linea);
  user-select: none;
}
.section-dark .section-num { color: rgba(127, 201, 188, .22); }

.section-head h2 {
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem);
}
.section-head h2::after {        /* filete menta bajo el título */
  content: "";
  display: block;
  width: 56px;
  height: 3px;
  margin-top: 18px;
  border-radius: 2px;
  background: var(--menta);
}
.section-sub {
  margin-top: 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--teal);
}
.section-dark .section-sub { color: var(--menta); }

/* =========================================================
   NOSOTROS
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 64px);
}
.mv-card {
  padding: clamp(24px, 4vw, 40px);
  border-top: 4px solid var(--teal);
}
.mv-card p { font-size: 1rem; }
.mv-light { background: var(--tinte); }
.mv-dark { background: var(--petroleo); border-top-color: var(--menta); color: rgba(255,255,255,.85); }
.mv-dark .label { color: var(--menta); }

.letter {
  margin: clamp(40px, 6vw, 64px) 0 0;
  padding: clamp(24px, 4vw, 40px);
  background: var(--tinte);
  border-left: 4px solid var(--teal);
}
.letter blockquote { margin: 0; }
.letter blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.08rem, 1.8vw, 1.3rem);
  line-height: 1.6;
  color: var(--petroleo);
}
.letter-close em { color: var(--teal); }
.letter figcaption {
  display: flex;
  flex-direction: column;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--linea);
  font-size: .92rem;
}
.letter figcaption strong { color: var(--petroleo); }
.letter figcaption span { color: var(--texto-suave); }

@media (max-width: 860px) {
  .about-grid, .mv-grid { grid-template-columns: 1fr; }
  .about-photo { aspect-ratio: 16 / 10; }
}

/* =========================================================
   SÍMBOLO
   ========================================================= */
.symbol-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}
.symbol-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--petroleo-700);
  border: 1px solid rgba(127, 201, 188, .18);
  color: var(--blanco);
}
.symbol-logo {
  width: min(340px, 100%);
  height: auto;
}
.symbol-text p {
  font-family: var(--serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,.88);
}
.symbol-text hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid rgba(127, 201, 188, .25);
}

.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: clamp(40px, 6vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.values li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--petroleo-600);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--blanco);
}
.values span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--menta);
}
@media (max-width: 860px) {
  .symbol-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: repeat(2, 1fr); }
}

/* =========================================================
   SERVICIOS
   ========================================================= */
.banner {
  margin: 0 0 32px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1436 / 418;
  background: var(--tinte-2);
}
.banner img { width: 100%; height: 100%; object-fit: cover; }

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

.service {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.service:hover {
  border-color: var(--menta);
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(11,58,68,.05), 0 18px 36px rgba(11,58,68,.09);
}
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--tinte-2);
  color: var(--teal);
}
.service-icon .ico { width: 26px; height: 26px; stroke-width: 1.6; }
.service-n {
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--menta);
}
.service h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; }
.service-tag {
  font-family: var(--serif);
  font-style: italic;
  color: var(--teal);
  margin-bottom: 12px;
}
.service > p:not(.service-tag), .service-wide-text > p:not(.service-tag) {
  font-size: .95rem;
  color: var(--texto);
}

.service details {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--tinte-2);
}
.service summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: .9rem;
  font-weight: 700;
  color: var(--petroleo);
  cursor: pointer;
  list-style: none;
}
.service summary::-webkit-details-marker { display: none; }
.service summary .ico { width: 18px; height: 18px; color: var(--teal); transition: transform .25s; }
.service details[open] summary .ico { transform: rotate(45deg); }
.service h4 {
  margin: 16px 0 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}

.ticks {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}
.ticks li {
  position: relative;
  padding: 4px 0 4px 18px;
  line-height: 1.45;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .82em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--menta);
}
.ticks.cols-2 { columns: 2; column-gap: 16px; }
.ticks.cols-2 li { break-inside: avoid; }

.service-wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: center;
  background: var(--tinte-2);
}
.service-wide .service-icon { background: var(--blanco); }
.service-wide .chips { margin-top: 18px; }
.service-wide .chips li { background: var(--blanco); }
.service-wide-photo {
  margin: 0;
  height: 100%;
  min-height: 260px;
  border-radius: var(--radius);
  overflow: hidden;
}
.service-wide-photo img { width: 100%; height: 100%; object-fit: cover; }

.brochure-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  margin-top: 48px;
  padding: clamp(22px, 3.5vw, 32px) clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-left: 4px solid var(--menta);
}
.brochure-text { min-width: 0; flex: 1 1 320px; }
.brochure-text .label { margin-bottom: 6px; }
.brochure-text p { font-family: var(--serif); font-size: 1.1rem; color: var(--petroleo); margin-bottom: 4px; }
.brochure-meta { font-size: .8rem; font-weight: 600; color: var(--texto-suave); }
@media (max-width: 560px) { .brochure-cta .btn { width: 100%; } }

.extra {
  margin-top: 48px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--petroleo);
}
.extra .label { color: var(--menta); margin-bottom: 24px; }
.extra-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.extra-item { display: flex; gap: 16px; align-items: flex-start; }
.extra-item .service-icon {
  width: 46px; height: 46px;
  background: rgba(127, 201, 188, .14);
  color: var(--menta);
}
.extra-item h4 { color: var(--blanco); font-size: 1.05rem; margin-bottom: 6px; }
.extra-item p { font-size: .92rem; color: rgba(255,255,255,.75); }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .extra-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 680px) {
  .services-grid { grid-template-columns: 1fr; }
  .service { padding: 22px; }
  .service-wide { grid-template-columns: 1fr; gap: 20px; }
  .service-wide-photo { min-height: 200px; order: -1; }
  .banner { aspect-ratio: 16 / 7; }
}

/* =========================================================
   POR QUÉ ELEGIRNOS
   ========================================================= */
.reasons {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.reason {
  display: grid;
  grid-template-columns: 72px 1fr 1.25fr;
  gap: 24px;
  align-items: center;
  padding: 26px 30px;
  background: var(--blanco);
  border: 1px solid var(--linea);
  border-radius: var(--radius-lg);
}
.reason-n { font-weight: 800; font-size: 1.8rem; color: var(--menta); }
.reason h3 { font-size: 1.15rem; margin-bottom: 4px; }
.reason-main p { font-size: .95rem; color: var(--texto-suave); }
.reason blockquote {
  margin: 0;
  padding-left: 22px;
  border-left: 3px solid var(--tinte-2);
}
.reason blockquote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--petroleo);
  margin-bottom: 8px;
}
.reason cite {
  font-style: normal;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--texto-suave);
}
@media (max-width: 860px) {
  .reason { grid-template-columns: 52px 1fr; gap: 12px 16px; padding: 22px; }
  .reason blockquote { grid-column: 1 / -1; }
}

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 210px;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.gallery li.g-wide { grid-column: span 2; }
.g-item {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tinte-2);
  cursor: zoom-in;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.g-item::after {
  content: attr(data-caption);
  position: absolute;
  inset: auto 0 0 0;
  padding: 28px 16px 12px;
  background: linear-gradient(transparent, rgba(11,58,68,.85));
  color: var(--blanco);
  font: 600 .85rem/1.3 var(--sans);
  text-align: left;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s, transform .3s;
}
.g-item:hover img, .g-item:focus-visible img { transform: scale(1.05); }
.g-item:hover::after, .g-item:focus-visible::after { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
}
@media (max-width: 520px) {
  .gallery { grid-auto-rows: 140px; gap: 8px; }
  .g-item::after { opacity: 1; transform: none; font-size: .75rem; padding: 20px 10px 8px; }
}

/* Visor */
.lightbox {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(6, 30, 36, .94);
  color: var(--blanco);
}
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(6, 30, 36, .6); }
.lightbox figure { margin: 0; max-width: min(1200px, 88vw); }
.lightbox img { max-height: 80vh; width: auto; margin-inline: auto; border-radius: 10px; }
.lightbox figcaption { margin-top: 14px; text-align: center; font-size: .95rem; color: rgba(255,255,255,.85); }
.lb-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--blanco);
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.16); }
.lb-btn .ico { width: 24px; height: 24px; }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { top: auto; bottom: 20px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.faq-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
}
.faq-layout .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq details {
  border-bottom: 1px solid var(--linea);
}
.faq details:first-child { border-top: 1px solid var(--linea); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--petroleo);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico {
  width: 22px; height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--tinte-2);
  color: var(--teal);
  transition: transform .25s, background-color .25s;
  box-sizing: content-box;
}
.faq details[open] summary .ico { transform: rotate(45deg); background: var(--menta); color: var(--petroleo); }
.faq details p {
  padding: 0 44px 22px 4px;
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.7;
}
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .section-head { position: static; }
  .faq details p { padding-right: 4px; }
}

/* =========================================================
   CONTACTO
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.contact-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-radius: var(--radius);
  background: var(--petroleo-700);
  border: 1px solid rgba(127, 201, 188, .15);
}
.contact-list .label { margin-bottom: 4px; font-size: .7rem; }
.contact-list p { color: var(--blanco); font-weight: 500; overflow-wrap: anywhere; }
.contact-list a { color: var(--blanco); text-decoration: none; }
.contact-list a:hover { color: var(--menta); text-decoration: underline; }
.c-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(127, 201, 188, .14);
  color: var(--menta);
  flex-shrink: 0;
}

.contact-form {
  padding: clamp(22px, 4vw, 40px);
  border-radius: var(--radius-lg);
  background: var(--blanco);
  color: var(--texto);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--petroleo); }
.opt { font-weight: 500; color: var(--texto-suave); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--linea);
  border-radius: 10px;
  background: var(--tinte);
  font: 500 1rem/1.4 var(--sans);
  color: var(--petroleo);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: var(--blanco);
  box-shadow: 0 0 0 3px rgba(16, 112, 126, .15);
}
.field [aria-invalid="true"] { border-color: #B4483C; }
.field select:invalid { color: var(--texto-suave); }
.field select option { color: var(--petroleo); }

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 4px 0 18px;
  font-size: .85rem;
  line-height: 1.5;
  color: var(--texto-suave);
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex-shrink: 0; }

.form-error {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #FBEDEB;
  color: #8E2F25;
  font-size: .9rem;
  font-weight: 600;
}
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-form .btn-mint { background: var(--petroleo); color: var(--blanco); }
.contact-form .btn-mint:hover { background: var(--teal); }
.contact-form .btn-ghost { color: var(--petroleo); border-color: var(--linea); }
.contact-form .btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.form-note { margin-top: 14px; font-size: .82rem; color: var(--texto-suave); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-actions .btn { width: 100%; }
}

/* =========================================================
   PIE
   ========================================================= */
.site-footer {
  background: #072D35;
  color: rgba(255,255,255,.72);
  padding-top: clamp(56px, 8vw, 80px);
  font-size: .92rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr 1.3fr;
  gap: 36px;
  padding-bottom: 48px;
}
.footer-logo { display: inline-block; }
.footer-logo img { width: 190px; height: auto; }
.footer-claim {
  max-width: 22em;
  margin-top: 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
}
.site-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--menta); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 22px;
  border-top: 1px solid rgba(127, 201, 188, .15);
  font-size: .8rem;
  color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } }

/* =========================================================
   FLOTANTES
   ========================================================= */
.wa-float, .to-top {
  position: fixed;
  right: 20px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(11, 58, 68, .25);
  transition: transform .2s, opacity .25s, visibility .25s;
}
.wa-float {
  bottom: 20px;
  width: 58px;
  height: 58px;
  background: var(--teal);
  color: var(--blanco);
}
.wa-float .ico { width: 28px; height: 28px; }
.wa-float:hover { transform: scale(1.06); color: var(--blanco); background: var(--petroleo); }
.to-top {
  bottom: 90px;
  width: 44px;
  height: 44px;
  background: var(--blanco);
  color: var(--petroleo);
  border: 1px solid var(--linea);
  opacity: 0;
  visibility: hidden;
}
.to-top.is-visible { opacity: 1; visibility: visible; }

/* =========================================================
   ANIMACIÓN DE ENTRADA (solo con JS y sin movimiento reducido)
   ========================================================= */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* =========================================================
   IMPRESIÓN
   ========================================================= */
@media print {
  .site-header, .wa-float, .to-top, .lightbox, .contact-form, .petals { display: none !important; }
  .section, .hero { padding: 24px 0; }
  .section-dark, .hero { background: #fff; color: #000; }
  .section-dark h2, .section-dark h3, .hero h1 { color: #000; }
}

/* =========================================================
   ENTRADA (holograma + frase aleatoria)
   ========================================================= */
.intro { display: none; }
.js .intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(32px, env(safe-area-inset-bottom, 0px));
  background: #06262D;
  color: var(--blanco);
  overflow: hidden;
}
.js .intro:focus { outline: none; }
.js .intro[hidden] { display: none; }
/* respaldo: si el script no carga, la entrada se retira sola */
.js .intro:not(.is-on) { animation: introFailsafe .6s ease 9s forwards; }
@keyframes introFailsafe { to { opacity: 0; visibility: hidden; } }

.intro.is-leaving { animation: introOut .8s ease forwards; }
@keyframes introOut { to { opacity: 0; transform: scale(1.02); visibility: hidden; } }

html.intro-open, html.intro-open body { overflow: hidden; }

.intro-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 2svh, 20px);
  width: 100%;
  max-width: 760px;
  text-align: center;
}
.intro-video {
  width: min(58svh, 82vw, 560px);
  height: auto;
  aspect-ratio: 1;
  max-width: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 70%, transparent 100%);
          mask-image: radial-gradient(closest-side at 50% 50%, #000 70%, transparent 100%);
  margin-bottom: clamp(-40px, -4svh, -12px);
}
.intro-text { margin: 0; max-width: 34em; }
.intro-quote {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6svh + .4vw, 1.75rem);
  line-height: 1.4;
  color: var(--blanco);
  text-wrap: balance;
}
.intro-author {
  display: inline-grid;
  grid-template-columns: 28px auto 28px;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--menta);
}
.intro-author::before, .intro-author::after {
  content: "";
  width: 28px;
  height: 1px;
  background: rgba(127, 201, 188, .6);
}
@media (max-width: 520px) {
  .intro-author { display: block; }
  .intro-author::before, .intro-author::after { display: none; }
}
.intro-skip {
  margin-top: clamp(10px, 2.5svh, 24px);
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 44px;
  padding: .6em 1.3em;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  background: transparent;
  color: rgba(255,255,255,.85);
  font: 600 .88rem/1 var(--sans);
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.intro-skip:hover { border-color: var(--menta); color: var(--menta); }

/* aparición escalonada */
.intro.is-on .intro-video  { animation: introIn 1.2s ease both; }
.intro.is-on .intro-quote  { animation: introUp .9s ease .6s both; }
.intro.is-on .intro-author { animation: introUp .9s ease 1.1s both; }
.intro.is-on .intro-skip   { animation: introUp .9s ease 1.6s both; }
@keyframes introIn { from { opacity: 0; transform: scale(.94); } }
@keyframes introUp { from { opacity: 0; transform: translateY(12px); } }

.intro-progress {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: rgba(127, 201, 188, .12);
}
.intro-progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--menta), var(--teal));
  transform-origin: left;
  transform: scaleX(0);
}
.intro.is-on .intro-progress span { animation: introBar 6.5s linear forwards; }
@keyframes introBar { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .intro.is-on .intro-video, .intro.is-on .intro-quote, .intro.is-on .intro-author,
  .intro.is-on .intro-skip, .intro.is-leaving { animation: none; }
}
