@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

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

:root {
  --navy:   #16243B;
  --navy2:  #2E4A7A;
  --gold:   #C8973A;
  --slate:  #4A5568;
  --line:   #DDE4EE;
  --paper:  #F5F7FA;
  --white:  #fff;
  --f: 'IBM Plex Sans',system-ui,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif;
  --fh: 'Space Grotesk','IBM Plex Sans',system-ui,sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: var(--f); color: var(--navy); background: var(--white); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

a { color: inherit; }

/* ─── NAV ────────────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy);
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 7vw;
}
.topnav-logo { height: 40px; filter: invert(1); display: block; }
.topnav-links { display: flex; gap: 28px; list-style: none; flex-wrap: wrap; }
.topnav-links li.lang-switch { display: flex; align-items: center; }
.topnav-links a {
  color: rgba(255,255,255,.75); text-decoration: none;
  font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  transition: color .15s;
}
.topnav-links a:hover, .topnav-links a.active { color: var(--white); }
.topnav-toggle { display: none; }
.lang-switch-group { display: flex; gap: 4px; }
.lang-switch-group button {
  background: transparent; border: 1px solid rgba(255,255,255,.3); color: rgba(255,255,255,.7);
  font: 700 12px/1 inherit; padding: 6px 10px; border-radius: 5px; cursor: pointer; transition: .15s;
}
.lang-switch-group button.active { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.lang-switch-group button:hover:not(.active) { color: var(--white); border-color: rgba(255,255,255,.6); }

@media (max-width: 860px) {
  .topnav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy); flex-direction: column; gap: 0;
    max-height: 0; overflow: hidden; transition: max-height .25s ease;
  }
  .topnav-links.open { max-height: 520px; }
  .topnav-links li { width: 100%; }
  .topnav-links a {
    display: block; width: 100%; box-sizing: border-box;
    padding: 24px 7vw; font-size: 18px; text-align: center;
    border-top: 1px solid rgba(255,255,255,.18);
  }
  .topnav-links li:first-child a { border-top: none; }
  .topnav-links li.lang-switch {
    width: 100%; box-sizing: border-box; padding: 24px 7vw;
    border-top: 1px solid rgba(255,255,255,.18); justify-content: center;
  }
  .lang-switch-group button { padding: 10px 18px; font-size: 14px; }
  .topnav-toggle {
    display: block; background: none; border: none; color: var(--white);
    font-size: 22px; cursor: pointer; padding: 4px 8px;
  }
  .pg-header { padding: 48px 7vw 42px; }
  .hero { height: 78svh; min-height: 520px; }
  .hero-content { margin-bottom: 4vh; }
  .hero-logo { height: 104px; margin-bottom: 18px; }
  section.block { padding: 44px 7vw; }
}

/* ─── PAGE HEADER (inner pages) ──────────────────────────────────────── */
.pg-header {
  position: relative; isolation: isolate;
  background: var(--navy);
  border-top: 3px solid var(--gold);
  padding: 96px 7vw 84px;
  text-align: center;
}
.pg-header::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background-image: var(--header-image, url('planta-nave-clara.jpg'));
  background-size: cover; background-position: center 58%;
}
.pg-header::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(10,18,30,.94), rgba(10,18,30,.7));
}
.pg-header.services { --header-image: url('maquina-haas-vf3.jpg'); }
.pg-header.about { --header-image: url('planta-nave.jpg'); }
.pg-header.about::after { background: linear-gradient(90deg, rgba(10,18,30,.82), rgba(10,18,30,.38)); }
.pg-header.quality { --header-image: url('cmm-zeiss-header.jpg'); }
.pg-header.locations { --header-image: url('planta-nave.jpg'); }
.pg-header.contact { --header-image: url('operador-haas-vf3.jpg'); }
.pg-header .tag { color: var(--gold); }
.pg-header h1 { font-family: var(--fh); font-size: clamp(30px, 4.4vw, 50px); font-weight: 700; color: var(--white); margin-top: 14px; line-height: 1.1; letter-spacing: -.02em; text-wrap: balance; }
.pg-header p { font-size: 16px; color: rgba(255,255,255,.72); max-width: 640px; margin: 18px auto 0; line-height: 1.7; text-wrap: pretty; }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.tag::before { content: ''; width: 22px; height: 2px; background: var(--gold); display: inline-block; flex-shrink: 0; }

/* ─── HERO (home only) ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy);
  height: min(88svh, 820px); min-height: 560px;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(160deg, rgba(10,18,30,.6) 0%, rgba(10,18,30,.3) 55%),
    linear-gradient(0deg, rgba(10,18,30,.85) 0%, rgba(10,18,30,.15) 40%, transparent 62%);
}
.hero-scroll {
  position: absolute; left: 50%; bottom: 22px; z-index: 2;
  width: 26px; height: 42px; transform: translateX(-50%);
  border: 2px solid rgba(255,255,255,.5); border-radius: 14px;
}
.hero-scroll::before {
  content: ''; position: absolute; left: 50%; top: 8px;
  width: 4px; height: 8px; border-radius: 2px; background: var(--gold);
  transform: translateX(-50%);
  animation: hero-scroll-dot 1.6s ease-in-out infinite;
}
@keyframes hero-scroll-dot {
  0% { opacity: 0; transform: translate(-50%, 0); }
  30% { opacity: 1; }
  70% { opacity: 1; transform: translate(-50%, 10px); }
  100% { opacity: 0; transform: translate(-50%, 10px); }
}
.hero-content { position: relative; z-index: 2; padding: 0 24px; margin-bottom: 10vh; }
.hero-logo {
  display: block;
  height: 136px; margin: 0 auto 24px;
  filter: invert(1) drop-shadow(0 2px 10px rgba(0,0,0,.6));
}
.hero-title {
  font-family: var(--fh);
  font-size: clamp(28px, 4.4vw, 52px);
  font-weight: 700; color: var(--white);
  line-height: 1.08; margin-bottom: 12px; letter-spacing: -.02em; text-wrap: balance;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 22px);
  font-weight: 400; color: rgba(255,255,255,.75);
  margin-bottom: 28px;
}
.iso-pill {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 40px; padding: 8px 20px 8px 8px;
  backdrop-filter: blur(8px); background: rgba(255,255,255,.08);
}
.iso-pill img { height: 36px; border-radius: 50%; }
.iso-pill span { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.9); letter-spacing: .2px; }

/* ─── SECTIONS / GENERIC ─────────────────────────────────────────────── */
section.block { padding: 76px 7vw; }
section.block.alt { background: var(--paper); }
section.block.dark { background: var(--navy); color: var(--white); }

h2.block-title {
  font-family: var(--fh);
  font-size: clamp(24px, 3.2vw, 36px); font-weight: 700;
  color: var(--navy); margin-bottom: 20px; line-height: 1.12;
  letter-spacing: -.02em; text-wrap: balance;
}
.dark h2.block-title { color: var(--white); }

p.block-lede {
  font-size: 15.5px; line-height: 1.8; color: var(--slate); max-width: 680px; text-wrap: pretty;
}
.dark p.block-lede { color: rgba(255,255,255,.75); }

/* ─── CARDS ──────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 20px; margin-top: 32px; }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cols-2, .cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card-photo {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  color: var(--slate); font-size: 12px; text-align: center; padding: 12px;
  border-bottom: 1px solid var(--line);
}
/* absolute -> la foto llena el marco y nunca altera su altura */
.card-photo img, .card-photo video {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.card-photo.contain { background: var(--white); }
.card-photo.contain img { object-fit: contain; padding: 14px; }
.card-body { padding: 22px 24px; }
.card-body h3 { font-size: 17px; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.card-body p { font-size: 13.5px; color: var(--slate); line-height: 1.65; }
.card-badge {
  display: inline-block; font-size: 9.5px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold);
  background: rgba(200,151,58,.1); border-radius: 20px;
  padding: 3px 10px; margin-bottom: 10px;
}

/* ─── STATS ──────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 16px 14px; }
.dark .stat { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
.stat-n { font-size: 28px; font-weight: 800; color: var(--navy2); line-height: 1; }
.dark .stat-n { color: var(--gold); }
.stat-l { font-size: 11.5px; color: var(--slate); margin-top: 4px; line-height: 1.4; }
.dark .stat-l { color: rgba(255,255,255,.65); }

/* ─── LIST ROWS (services / treatments) ─────────────────────────────── */
.row-list { list-style: none; margin-top: 10px; }
.row-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.row-item:first-child { padding-top: 0; }
.row-item:last-child { border-bottom: none; }
.row-t { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.row-d { font-size: 12.5px; color: var(--slate); line-height: 1.55; }

/* ─── PROCESO INTEGRAL / INDUSTRIAS ─────────────────────────────────── */
.process-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: 32px; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.14);
}
.process-step { background: var(--navy); padding: 24px 22px; min-height: 150px; }
.process-num { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.process-step h3 { color: var(--white); font-size: 16px; margin: 12px 0 7px; }
.process-step p { color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.55; }
.industry-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 30px; }
.industry-item { border: 1px solid var(--line); border-top: 2px solid var(--gold); border-radius: 10px; padding: 20px 16px 16px; background: var(--white); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.industry-item:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(22,36,59,.1); border-color: rgba(46,74,122,.35); border-top-color: var(--gold); }
.ind-ico { width: 30px; height: 30px; display: block; margin-bottom: 12px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.industry-item h3 { font-size: 14px; color: var(--navy); margin-bottom: 0; }
.industry-item p { font-size: 12px; color: var(--slate); line-height: 1.45; margin-top: 5px; }
.industry-featured {
  display: flex; align-items: center; gap: 16px;
  background: var(--navy); border: none; border-top: 3px solid var(--gold);
  border-radius: 10px; padding: 26px 28px; margin-top: 30px;
}
.industry-featured .ind-ico { width: 34px; height: 34px; stroke: var(--gold); margin-bottom: 0; flex-shrink: 0; }
.industry-featured h3 { color: var(--white); font-size: 19px; margin-bottom: 0; }
.industry-featured span.card-badge-inline { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; display: block; margin-bottom: 4px; }
.industry-grid { margin-top: 14px; }
@media (max-width: 1080px) { .process-grid { grid-template-columns: 1fr; } }
@media (max-width: 980px) { .industry-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .industry-grid { grid-template-columns: 1fr; }
}

/* ─── TABLE ──────────────────────────────────────────────────────────── */
.eq-table-wrap { overflow-x: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; }
.eq-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.eq-table th, .eq-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.eq-table thead th { background: var(--navy); color: var(--gold); font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 700; border-bottom: none; }
.eq-table tbody td { color: var(--slate); }
.eq-table tbody tr:nth-child(even) { background: var(--paper); }
.eq-table tbody tr:last-child td { border-bottom: none; }
.eq-table tbody tr:hover { background: rgba(46,74,122,.06); }
.eq-table tr.flagship { background: rgba(200,151,58,.09); }
.eq-table tr.flagship td { color: var(--navy); font-weight: 700; }
.eq-table tr.flagship td:first-child { box-shadow: inset 3px 0 0 var(--gold); }

/* ─── CTA BAND ───────────────────────────────────────────────────────── */
.cta-band {
  background: var(--navy); border-top: 3px solid var(--gold);
  padding: 48px 7vw; text-align: center;
}
.cta-band h2 { font-family: var(--fh); color: var(--white); font-size: clamp(22px, 2.8vw, 32px); font-weight: 700; margin-bottom: 12px; letter-spacing: -.02em; text-wrap: balance; }
.cta-band p { color: rgba(255,255,255,.7); font-size: 14px; margin-bottom: 22px; }
.cta-btn {
  display: inline-block; background: var(--gold); color: var(--navy);
  font-weight: 700; font-size: 14px; text-decoration: none;
  padding: 14px 32px; border-radius: 7px; transition: filter .15s, transform .18s ease, box-shadow .18s ease;
}
.cta-btn:hover { filter: brightness(1.06); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(200,151,58,.3); }
.cta-btn:active { transform: translateY(0); }
.cta-btn-outline {
  background: transparent; color: var(--white);
  border: 1.5px solid rgba(255,255,255,.6);
}
.cta-btn-outline:hover { background: var(--white); color: var(--navy); box-shadow: 0 10px 26px rgba(0,0,0,.25); }

/* ─── HISTORY BAND ───────────────────────────────────────────────────── */
.history-band {
  position: relative; background: linear-gradient(rgba(22,36,59,.82), rgba(22,36,59,.9)), url('operador-haas-vf3.jpg') center/cover no-repeat;
  padding: 72px 7vw; text-align: center;
}
.history-band-inner { max-width: 640px; margin: 0 auto; }
.history-band .tag { display: inline-block; margin-bottom: 14px; }
.history-band h2 { font-family: var(--fh); color: var(--white); font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 26px; letter-spacing: -.02em; text-wrap: balance; }

/* ─── MAP ────────────────────────────────────────────────────────────── */
#map { width: 100%; height: 380px; display: block; filter: grayscale(15%); border-bottom: 3px solid var(--gold); }

/* ─── CONTACT LINKS ──────────────────────────────────────────────────── */
.clinks { display: flex; flex-direction: column; gap: 9px; }
.clink {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--slate); text-decoration: none; transition: color .15s;
}
.dark .clink { color: rgba(255,255,255,.75); }
.clink:hover { color: var(--navy2); }
.dark .clink:hover { color: var(--gold); }
.clink-ico {
  width: 20px; height: 20px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--gold);
}
.clink-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.dark .clink-ico { color: var(--gold); }
.contact-links { display: flex; flex-wrap: wrap; gap: 16px 36px; }

.clink-group { margin-bottom: 16px; }
.clink-group:last-child { margin-bottom: 0; }
.clink-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px; display: block;
}

/* ─── FOUNDER ────────────────────────────────────────────────────────── */
.founder-card {
  display: flex; gap: 28px; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 10px; padding: 28px; margin-top: 32px;
}
@media (max-width: 640px) { .founder-card { flex-direction: column; text-align: center; } }
.founder-photo {
  width: 250px; aspect-ratio: 739 / 898; flex-shrink: 0;
  border-radius: 10px; overflow: hidden;
  background: var(--navy); color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; text-align: center;
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .founder-photo { width: 100%; max-width: 280px; } }
.founder-name { font-size: 17px; font-weight: 700; color: var(--navy); }
.founder-role { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin: 3px 0 8px; }
.founder-bio { font-size: 13px; color: var(--slate); line-height: 1.6; }

/* ─── TIMELINE ───────────────────────────────────────────────────────── */
.timeline {
  margin-top: 40px; padding-top: 34px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  border-top: 2px solid var(--line);
  background: linear-gradient(90deg, var(--gold), rgba(200,151,58,.25)) top left / 100% 2px no-repeat;
}
.tl-item { position: relative; padding-right: 12px; }
.tl-item::before {
  content: ''; position: absolute; left: 0; top: -41px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--gold); box-shadow: 0 0 0 4px var(--paper);
}
.tl-year { font-family: var(--fh); font-size: 22px; font-weight: 700; color: var(--gold); letter-spacing: -.01em; }
.tl-text { font-size: 13.5px; color: var(--slate); line-height: 1.7; margin-top: 10px; max-width: none; }
@media (max-width: 760px) {
  .timeline { display: flex; flex-direction: column; gap: 26px; border-top: none; border-left: 2px solid var(--line); padding: 0 0 0 28px; background: none; }
  .tl-item::before { left: -34px; top: 4px; }
}

/* ─── FOOTER ─────────────────────────────────────────────────────────── */
.soon-notice {
  background: var(--navy); color: rgba(255,255,255,.55);
  text-align: center; font-size: 12.5px; font-weight: 600; letter-spacing: .3px;
  padding: 14px 24px; border-top: 1px solid rgba(255,255,255,.08);
}
footer {
  background: var(--navy); padding: 48px 7vw; border-top: 3px solid var(--gold);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; align-items: start;
}
.foot-brand { display: flex; flex-direction: column; gap: 14px; }
.foot-brand img { height: 30px; opacity: .85; align-self: flex-start; }
.foot-brand span { font-size: 12px; color: rgba(255,255,255,.45); line-height: 1.6; letter-spacing: .3px; }
.foot-nav, .foot-contact { display: flex; flex-direction: column; gap: 11px; }
.foot-nav a, .foot-contact a { font-size: 13px; color: rgba(255,255,255,.7); text-decoration: none; width: max-content; transition: color .15s ease; }
.foot-nav a { font-weight: 600; }
.foot-nav a:hover, .foot-contact a:hover { color: var(--gold); }
@media (max-width: 700px) { footer { grid-template-columns: 1fr 1fr; gap: 30px 24px; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 860px) {
  .hero { height: 78svh; min-height: 520px; }
  .hero-content { margin-bottom: 4vh; }
  .hero-logo { height: 104px; margin-bottom: 18px; }
  section.block { padding: 44px 7vw; }
}

/* ─── WHATSAPP BUTTON ────────────────────────────────────────────────── */
.wa-btn {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,.2); text-decoration: none;
  transition: transform .15s;
}
.wa-btn:hover { transform: scale(1.06); }
.wa-btn svg { width: 30px; height: 30px; fill: #25D366; }

/* ─── VALOR AGREGADO ─────────────────────────────────────────────────── */
.val-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 32px;
  margin-top: 36px;
}
@media (max-width: 980px) { .val-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .val-grid { grid-template-columns: 1fr; gap: 24px; } }
.val-ico {
  width: 30px; height: 30px; display: block; margin-bottom: 12px;
  fill: none; stroke: var(--gold); stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.val-item h3 {
  font-size: 15px; font-weight: 700; color: var(--white);
  margin-bottom: 7px; line-height: 1.3;
}
.val-item p { font-size: 13.5px; line-height: 1.65; color: rgba(255,255,255,.7); }

/* ─── FOTO DE BLOQUE ─────────────────────────────────────────────────── */
.block-photo {
  margin-top: 32px; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--line);
}
.block-photo img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }
.block-photo figcaption {
  font-size: 11.5px; color: var(--slate); padding: 10px 14px;
  background: var(--white); border-top: 1px solid var(--line);
}
.block-photo.dark-photo { border-color: rgba(255,255,255,.14); margin-top: 40px; }

.val-photos {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 40px;
}
@media (max-width: 860px) { .val-photos { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .val-photos { grid-template-columns: 1fr; } }
.val-photos figure {
  margin: 0; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04);
}
.val-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.val-photos figcaption {
  font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  color: var(--gold); padding: 10px 12px;
}

/* ─── GALERÍA ────────────────────────────────────────────────────────── */
.gal-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.gal-chip {
  border: 1px solid var(--line); background: var(--white); color: var(--slate);
  font-family: var(--f); font-size: 12.5px; font-weight: 700; letter-spacing: .2px;
  padding: 8px 16px; border-radius: 30px; cursor: pointer; transition: all .15s;
}
.gal-chip:hover { border-color: var(--navy2); color: var(--navy2); }
.gal-chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.gal-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 26px;
}
@media (max-width: 980px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gal-grid { grid-template-columns: repeat(2, 1fr); } }

.gal-item {
  position: relative;
  border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  background: var(--white); cursor: pointer; padding: 0;
  transition: box-shadow .15s, transform .15s; display: block; width: 100%;
}
.gal-item::after {
  content: ''; position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; pointer-events: none;
  background: rgba(22,36,59,.85) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / 16px no-repeat;
  opacity: 0; transform: scale(.7); transition: opacity .2s ease, transform .2s ease;
}
.gal-item:hover::after { opacity: 1; transform: scale(1); }
.gal-item:hover { box-shadow: 0 6px 20px rgba(22,36,59,.12); transform: translateY(-2px); }
.gal-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.gal-cap {
  padding: 10px 12px; font-size: 12px; font-weight: 600; color: var(--navy);
  text-align: left; font-family: var(--f);
}
.gal-cap span { display: block; font-size: 10.5px; font-weight: 700; color: var(--gold);
  letter-spacing: 1px; text-transform: uppercase; margin-top: 3px; }
.gal-item[hidden] { display: none; }

/* ─── LIGHTBOX ───────────────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(8,14,24,.94);
  display: none; align-items: center; justify-content: center;
}
.lb.open { display: flex; }
.lb-img {
  max-width: 88vw; max-height: 76vh; object-fit: contain;
  border-radius: 6px; display: block;
}
.lb-cap {
  position: absolute; bottom: 34px; left: 0; right: 0; text-align: center;
  color: #fff; font-size: 15px; font-weight: 600; padding: 0 60px;
}
.lb-cap em { display: block; font-style: normal; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.lb-btn {
  position: absolute; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  color: #fff; width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  font-size: 24px; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background .15s, transform .15s;
}
.lb-btn:hover { background: rgba(255,255,255,.28); transform: scale(1.06); }
.lb-count {
  position: absolute; top: 30px; left: 30px; z-index: 2;
  color: rgba(255,255,255,.75); font-size: 13px; font-weight: 700; letter-spacing: 1.5px;
}
.lb-close { top: 24px; right: 24px; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-cap { bottom: 20px; font-size: 13px; padding: 0 20px; }
}

/* ─── CLIENTES ───────────────────────────────────────────────────────── */
.cli-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 32px;
}
@media (max-width: 860px) { .cli-grid { grid-template-columns: repeat(2, 1fr); } }
.cli-item {
  background: var(--white); border: 1px solid var(--line); border-radius: 8px;
  aspect-ratio: 38/13; display: flex; align-items: center; justify-content: center;
  padding: 16px 22px;
}
.cli-item img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cli-item-text { font-size: 15px; font-weight: 700; color: var(--slate); opacity: .7; text-align: center; transition: opacity .2s; }
.cli-item:hover .cli-item-text { opacity: 1; }

/* ─── MARQUEE ────────────────────────────────────────────────────────── */
.marquee-wrap {
  padding: 30px 0; background: var(--paper);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.marquee-label {
  text-align: center; font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--slate); margin-bottom: 18px;
}
.marquee-track {
  display: flex; width: max-content;
  animation: marquee-scroll 32s linear infinite;
}
.marquee-item {
  flex-shrink: 0; padding: 0 38px;
  font-size: 13.5px; font-weight: 700; color: var(--slate);
  opacity: .6; white-space: nowrap;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.mq-ico {
  width: 28px; height: 28px;
  fill: none; stroke: currentColor; stroke-width: 1.5;
  stroke-linecap: round; stroke-linejoin: round;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ─── CAROUSEL ───────────────────────────────────────────────────────── */
.carousel {
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin-top: 28px; padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 10px; }
.carousel-card {
  scroll-snap-align: start; flex-shrink: 0;
  width: 200px; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; padding: 20px 18px;
}
.carousel-card .row-t { font-size: 14px; }

/* ─── LISTA DE TRATAMIENTOS ──────────────────────────────────────────── */
.treat-list {
  list-style: none; margin-top: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px;
}
@media (max-width: 860px) { .treat-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .treat-list { grid-template-columns: 1fr; } }
.treat-item {
  display: flex; align-items: center; gap: 14px;
  font-size: 14px; font-weight: 600; color: var(--navy);
  padding: 13px 2px; border-bottom: 1px solid var(--line);
  transition: color .18s ease, padding-left .18s ease;
}
.treat-item::before {
  content: ''; flex-shrink: 0; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 3px rgba(200,151,58,.16);
  transition: transform .2s ease;
}
.treat-item:hover { color: var(--navy2); padding-left: 6px; }
.treat-item:hover::before { transform: scale(1.45); }

/* ─── MOTION / UX ────────────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes gallery-in {
  from { opacity: 0; transform: scale(.98); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes wa-pulse {
  0%, 72%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 0 0 0 rgba(37,211,102,0); }
  80% { box-shadow: 0 4px 16px rgba(0,0,0,.2), 0 0 0 9px rgba(37,211,102,.16); }
}

.hero-content > * { opacity: 0; animation: fade-up .7s ease-out forwards; }
.hero-content > :nth-child(1) { animation-delay: .08s; }
.hero-content > :nth-child(2) { animation-delay: .18s; }
.hero-content > :nth-child(3) { animation-delay: .28s; }
.hero-content > :nth-child(4) { animation-delay: .38s; }
.hero-content > :nth-child(5) { animation-delay: .48s; }

.card, .founder-card, .carousel-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover, .founder-card:hover, .carousel-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46,74,122,.35);
  box-shadow: 0 12px 28px rgba(22,36,59,.1);
}
.card-photo img, .card-photo video { transition: transform .45s ease; }
.card:hover .card-photo img, .card:hover .card-photo video { transform: scale(1.035); }

.topnav-links a { position: relative; }
.topnav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -7px;
  height: 2px; background: var(--gold); transform: scaleX(0);
  transform-origin: center; transition: transform .2s ease;
}
.topnav-links a:hover::after, .topnav-links a.active::after { transform: scaleX(1); }
.topnav-toggle { transition: transform .2s ease, color .2s ease; }
.topnav-toggle[aria-expanded="true"] { transform: rotate(90deg); color: var(--gold); }

.stat { transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.stat:hover { transform: translateY(-3px); border-color: rgba(200,151,58,.55); }
.stat-n { transition: color .2s ease; }

.gal-item:not([hidden]) { animation: gallery-in .28s ease both; }
.gal-item img { transition: transform .4s ease; }
.gal-item:hover img { transform: scale(1.045); }
.gal-chip { transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease; }
.gal-chip:active { transform: scale(.97); }

.wa-btn { animation: wa-pulse 7s ease-out infinite; }
.wa-btn:hover { animation-play-state: paused; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .08s; }
.js .reveal-delay-2 { transition-delay: .16s; }
.js .reveal-delay-3 { transition-delay: .24s; }

@media (max-width: 860px) {
  .topnav-links a::after { display: none; }
  .card:hover, .founder-card:hover, .carousel-card:hover { transform: none; box-shadow: none; }
  .card:hover .card-photo img, .card:hover .card-photo video { transform: none; }
}

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

/* ─── REFRESH v8 ─────────────────────────────────────────────────────── */
@keyframes hdr-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.pg-header::before { animation: hdr-zoom 16s ease-out both; }
.hero { background-size: cover; }
.hero video { animation: hdr-zoom 20s ease-out both; }

/* links de contenido con subrayado sutil que vira a dorado */
a { transition: color .15s ease, box-shadow .15s ease; }
:where(section.block, .founder-bio, .cta-band) a:not(.cta-btn) {
  color: var(--navy2); text-decoration: none; box-shadow: inset 0 -1px 0 rgba(46,74,122,.35);
}
:where(section.block, .founder-bio) a:not(.cta-btn):hover { color: var(--gold); box-shadow: inset 0 -1px 0 var(--gold); }
.dark a:not(.cta-btn) { color: var(--gold); box-shadow: inset 0 -1px 0 rgba(200,151,58,.4); }

/* focus accesible y consistente */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

/* ritmo entre bloques + reveal un poco más presente */
.js .reveal { transform: translateY(24px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
@media (max-width: 860px) { section.block { padding: 60px 7vw; } }

/* footer: estilos en la sección FOOTER */

@media (prefers-reduced-motion: reduce) {
  .pg-header::before, .hero video { animation: none !important; }
}
