/*
  Dr. Raúl Alfaro Neri — Odontología Integral
  Hoja de estilos completa, sin framework ni dependencias de ejecución.
  Los recursos se referencian con rutas relativas para Cloudflare Pages.
*/
:root {
  color-scheme: light;
  --ink: #173b43;
  --muted: #718184;
  --terracotta: #bd7964;
  --terracotta-dark: #9e5b48;
  --seafoam: #e5f0eb;
  --cream: #f8f5ee;
  --line: #e6ebe8;
  --shadow-soft: 0 18px 46px rgba(30, 59, 62, .085);
  --heading: 'Plus Jakarta Sans', 'Segoe UI', Arial, sans-serif;
  --body: 'DM Sans', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 106px; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: #fff; color: var(--ink); font: 400 15px/1.65 var(--body); -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 3px solid #d58b70; outline-offset: 4px; }
svg { fill: none; stroke: currentColor; stroke-linejoin: round; stroke-linecap: round; stroke-width: 1.9; }
.container { width: min(1180px, calc(100% - 88px)); margin-inline: auto; }
.section { padding: 112px 0; }
.skip-link { position: fixed; z-index: 500; top: -100px; left: 14px; padding: 12px 18px; background: white; border: 2px solid var(--terracotta); border-radius: 10px; color: var(--ink); }
.skip-link:focus { top: 12px; }
::selection { color: #fff; background: #a76553; }

/* Banda superior de dirección y teléfono */
.topbar { background: var(--ink); color: #f0f5f3; font-size: 11px; font-weight: 600; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 39px; }
.topbar__location, .topbar__phone { display: inline-flex; align-items: center; gap: 9px; }
.topbar svg { width: 14px; height: 14px; stroke-width: 1.75; }
.topbar__phone { transition: color .2s; }
.topbar__phone:hover { color: #f6cab7; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(25,59,66,.08); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 4px 24px rgba(20,47,52,.035); }
.header__inner { height: 91px; display: flex; align-items: center; gap: 35px; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__symbol { display: grid; place-items: center; width: 47px; height: 47px; background: var(--seafoam); border: 1px solid #c9dad6; border-radius: 15px 15px 18px 18px; color: var(--ink); }
.brand__symbol svg { width: 33px; height: 33px; fill: none; stroke-width: 1.6; }
.brand__text { display: flex; flex-direction: column; gap: 5px; }
.brand__text strong { color: var(--ink); font-family: var(--heading); font-size: 15px; letter-spacing: -.04em; font-weight: 800; white-space: nowrap; }
.brand__text small { font-size: 9.4px; letter-spacing: .22em; font-weight: 700; color: #a27767; }
.nav { display: flex; align-items: center; gap: 25px; margin-left: auto; }
.nav__link { position: relative; padding: 12px 0; color: #566b6e; font-size: 12.5px; font-weight: 700; transition: color .2s; white-space: nowrap; }
.nav__link:hover, .nav__link.active { color: var(--terracotta-dark); }
.nav__link:after { content: ''; position: absolute; height: 2px; background: var(--terracotta); left: 0; right: 100%; bottom: 5px; transition: right .24s; }
.nav__link:hover:after, .nav__link.active:after { right: 0; }
.nav__link--mobile { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 55px; padding: 14px 24px; border: 1px solid transparent; border-radius: 10px; font-size: 13px; font-family: var(--heading); font-weight: 700; line-height: 1.3; text-align: center; transition: background .25s, color .25s, transform .25s, box-shadow .25s; cursor: pointer; white-space: nowrap; }
.btn:hover { transform: translateY(-3px); }
.btn svg { width: 18px; height: 18px; stroke-width: 2; flex-shrink: 0; }
.btn--small { min-height: 43px; padding: 12px 17px; font-size: 11.5px; border-radius: 8px; gap: 9px; }
.btn--small svg { width: 16px; height: 16px; }
.btn--dark { color: white; background: var(--ink); box-shadow: 0 8px 20px rgba(22,53,58,.12); }
.btn--dark:hover { background: #2c5860; }
.btn--primary { color: white; background: var(--terracotta); box-shadow: 0 12px 28px rgba(185,117,96,.19); }
.btn--primary:hover { background: var(--terracotta-dark); box-shadow: 0 15px 30px rgba(185,117,96,.26); }
.btn--outline { color: var(--ink); background: rgba(255,255,255,.58); border-color: #cdd5d3; }
.btn--outline:hover { background: #fff; border-color: var(--ink); }
.btn--light { background: white; color: var(--ink); }
.btn--light:hover { background: #f6ece5; }
.menu-toggle { display: none; width: 43px; height: 43px; background: white; border: 1px solid #dae3e0; border-radius: 10px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; cursor: pointer; }
.menu-toggle span { height: 2px; background: var(--ink); width: 19px; border-radius: 2px; transition: transform .25s, opacity .25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* First screen */
.hero { overflow: hidden; position: relative; background: radial-gradient(circle at 82% 30%, #edf0e9 0, transparent 31%), linear-gradient(113deg, #fbfaf6 0%, #f5f3ee 55%, #e6efeb 125%); }
.hero__orb { position: absolute; pointer-events: none; border: 1px solid rgba(62,105,108,.07); border-radius: 50%; }
.hero__orb--one { width: 740px; height: 740px; top: -475px; left: -300px; }
.hero__orb--two { width: 520px; height: 520px; bottom: 2px; right: -375px; }
.hero__grid { min-height: 666px; display: grid; grid-template-columns: .97fr 1.03fr; align-items: center; gap: 50px; padding-top: 78px; padding-bottom: 79px; }
.hero__content { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; gap: 12px; align-items: center; font-size: 10px; font-weight: 800; letter-spacing: .23em; color: var(--terracotta-dark); }
.eyebrow__dash { width: 29px; height: 1px; background: currentColor; }
.hero h1 { margin: 26px 0 24px; max-width: 620px; color: var(--ink); font-family: var(--heading); font-size: clamp(43px, 4.65vw, 70px); font-weight: 700; line-height: 1.15; letter-spacing: -.074em; }
.hero h1 em { color: var(--terracotta); font-style: normal; }
.hero__lead { margin: 0 0 13px; font-size: 19px; color: var(--ink); font-weight: 800; font-family: var(--heading); letter-spacing: -.045em; }
.hero__description { max-width: 465px; margin: 0; color: #647577; font-size: 15.4px; line-height: 1.9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__footnote { display: flex; align-items: center; gap: 13px; margin-top: 46px; padding-top: 26px; border-top: 1px solid #dedfd9; max-width: 445px; }
.hero__footnote-icon { display: grid; width: 38px; height: 38px; place-items: center; background: var(--seafoam); color: var(--ink); border-radius: 12px; flex-shrink: 0; }
.hero__footnote-icon svg { width: 19px; height: 19px; }
.hero__footnote strong { display: block; color: var(--ink); font-size: 12.2px; }
.hero__footnote small { display: block; margin-top: 4px; color: var(--muted); font-size: 11.3px; }
.hero__visual { position: relative; display: grid; place-items: center; min-width: 0; padding: 35px 21px 30px 36px; }
.hero__visual-shape { position: absolute; top: 1%; bottom: 8%; left: 11%; right: 1%; border-radius: 45% 45% 38% 38% / 35% 35% 34% 34%; background: #dce8e2; transform: rotate(-9deg); border: 1px solid #d2dfd8; }
.hero__visual:before { content: ''; position: absolute; width: 95px; height: 95px; border: 1px solid #d3a495; border-radius: 50%; left: 2%; bottom: 3%; }
.hero__photo-card { position: relative; width: 100%; z-index: 1; border: 9px solid rgba(255,255,255,.97); background: #fff; border-radius: 25px; padding: 0; box-shadow: 0 32px 55px rgba(41,69,62,.15), 0 0 0 1px rgba(40,72,68,.1); transform: rotate(1.5deg); transition: transform .5s ease; }
.hero__photo-card:hover { transform: rotate(0deg) translateY(-4px); }
.hero__photo-card > img { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 819; object-fit: contain; border-radius: 15px; }
.hero__photo-caption { display: flex; align-items: center; gap: 8px; padding: 12px 15px 6px; background: white; font-size: 10px; font-weight: 800; color: var(--ink); }
.hero__caption-dot { display: inline-block; width: 7px; height: 7px; background: var(--terracotta); border-radius: 50%; }
.hero__floating-tag { position: absolute; z-index: 3; right: -13px; top: -9px; display: flex; align-items: center; gap: 12px; background: #fff; padding: 12px 20px 12px 11px; border: 1px solid #e7e9e5; border-radius: 14px; color: var(--ink); box-shadow: 0 10px 35px rgba(30,65,65,.1); font-family: var(--heading); font-size: 11px; line-height: 1.5; font-weight: 800; }
.tag__icon { display: grid; place-items: center; width: 37px; height: 37px; background: var(--seafoam); border-radius: 10px; }
.tag__icon svg { width: 21px; height: 21px; }
.hero__bottom { position: relative; background: var(--ink); color: #f0f5ef; }
.hero__bottom-inner { display: flex; align-items: center; justify-content: center; gap: 28px; min-height: 68px; font-family: var(--heading); font-size: 10px; font-weight: 700; letter-spacing: .115em; }
.hero__bottom i { display: block; width: 5px; height: 5px; flex: none; border-radius: 50%; background: #c48e7c; }

/* Common headlines */
.kicker { display: inline-flex; align-items: center; gap: 9px; font-size: 10px; font-family: var(--heading); color: var(--terracotta-dark); font-weight: 800; letter-spacing: .18em; }
.kicker__dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.kicker--light { color: #e7b6a2; }
.section-heading { margin-bottom: 48px; }
.section-heading--center { text-align: center; }
.section-heading h2, .gallery h2, .hours h2, .contact h2 { margin: 18px 0 15px; font-family: var(--heading); color: var(--ink); font-weight: 800; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.2; letter-spacing: -.068em; }
.section-heading h2 span { color: var(--terracotta); }
.section-heading p, .gallery__intro p, .hours__left p { max-width: 510px; color: #728082; font-size: 15px; line-height: 1.9; margin: 0; }
.section-heading--center p { margin-inline: auto; }

/* services */
.services { background: white; }
.services__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.service-card { display: flex; flex-direction: column; min-height: 325px; padding: 25px 25px 23px; border: 1px solid #e7e9e6; border-radius: 17px; background: white; transition: transform .32s, box-shadow .32s, border-color .32s, background .32s; }
.service-card:hover { transform: translateY(-9px); box-shadow: var(--shadow-soft); border-color: #d6e0dc; background: #fcfdfb; }
.service-card__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.service-card__index { color: #aab4b3; font-family: var(--heading); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.service-card__icon { display: grid; place-items: center; width: 69px; height: 69px; background: #ecf3f0; border: 1px solid #dfece7; border-radius: 18px; color: #46716e; }
.service-card:nth-child(2) .service-card__icon { background: #faf0ec; color: var(--terracotta); border-color: #f1dfd7; }
.service-card:nth-child(3) .service-card__icon { background: #edf0f5; color: #667f96; border-color: #e0e7ef; }
.service-card:nth-child(4) .service-card__icon { background: #f5f0e7; color: #a58a64; border-color: #ede5d6; }
.service-card__icon svg { width: 40px; height: 40px; stroke-width: 1.7; }
.service-card h3 { margin: 30px 0 11px; color: var(--ink); font-family: var(--heading); font-weight: 800; font-size: 19px; line-height: 1.32; letter-spacing: -.055em; }
.service-card p { color: #829091; font-size: 12.9px; line-height: 1.8; margin: 0 0 20px; }
.service-card__link { display: flex; align-items: center; gap: 12px; justify-content: space-between; margin-top: auto; border-top: 1px solid #ebedeb; padding-top: 19px; font-size: 11.5px; font-weight: 800; color: var(--terracotta-dark); }
.service-card__link svg { height: 18px; width: 18px; transition: transform .25s; }
.service-card__link:hover svg { transform: translateX(5px); }

/* gallery */
.gallery { background: var(--cream); position: relative; overflow: hidden; }
.gallery__deco { position: absolute; top: -170px; right: -200px; width: 525px; height: 525px; border: 1px solid #e0d9d1; border-radius: 50%; pointer-events: none; }
.gallery__deco:after { content: ''; position: absolute; inset: 36px; border: 1px solid #e6ded5; border-radius: 50%; }
.gallery__intro { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 38px; }
.gallery__intro h2 { margin-bottom: 0; }
.gallery h2 em, .hours h2 em { font-style: normal; color: var(--terracotta); }
.gallery__intro p { max-width: 320px; padding-bottom: 2px; }
.gallery__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; }
.gallery-card { background: #fff; margin: 0; padding: 11px; border: 1px solid #e4dcd2; border-radius: 20px; box-shadow: 0 16px 48px rgba(82,70,58,.06); overflow: hidden; transition: box-shadow .25s, transform .25s; }
.gallery-card:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(69,60,53,.11); }
.gallery-card__image { width: 100%; aspect-ratio: 1080 / 839; display: grid; place-items: center; background: #e8e6e1; border: 1px solid #e7ded4; padding: 0; position: relative; cursor: zoom-in; border-radius: 13px; overflow: hidden; }
.gallery-card__image:after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: inset 0 0 25px rgba(255,255,255,.26); }
.gallery-card__image img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.gallery-card:nth-child(2) .gallery-card__image { background: #e3e7e7; }

.gallery-card__zoom { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; right: 16px; top: 16px; color: var(--ink); background: rgba(255,255,255,.96); border: 1px solid #e0e3df; border-radius: 12px; z-index: 1; box-shadow: 0 4px 13px rgba(0,0,0,.09); }
.gallery-card__zoom svg { width: 18px; height: 18px; }
.gallery-card figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 19px 15px 12px; }
.gallery-card figcaption small { display: block; margin-bottom: 7px; color: var(--terracotta-dark); font-weight: 800; letter-spacing: .18em; font-size: 9px; }
.gallery-card figcaption strong { display: block; color: var(--ink); font-family: var(--heading); font-size: 17px; font-weight: 800; letter-spacing: -.04em; }
.gallery-card__arrow { color: var(--terracotta); font-size: 24px; }
.gallery__address { display: flex; gap: 13px; align-items: center; justify-content: center; margin-top: 36px; font-size: 12px; color: #68787b; }
.gallery__address > svg { width: 18px; height: 18px; color: var(--terracotta); flex-shrink: 0; }
.gallery__address a { margin-left: 13px; font-weight: 800; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; }
.gallery__address a:hover { color: var(--terracotta-dark); }

/* time */
.hours { background: #fff; }
.hours__grid { display: grid; grid-template-columns: 0.83fr 1.17fr; gap: clamp(50px,8vw,120px); align-items: center; }
.hours__left h2 { max-width: 360px; margin-bottom: 21px; }
.hours__left p { max-width: 345px; }
.hours__left .btn { margin-top: 31px; }
.hours__panel { border: 1px solid #dbe7e3; border-radius: 24px; background: linear-gradient(155deg,#f1f6f3,#fafcfb 75%); padding: 33px 38px 0; overflow: hidden; box-shadow: var(--shadow-soft); }
.hours__panel-head { display: flex; gap: 13px; align-items: center; padding-bottom: 23px; border-bottom: 1px solid #d8e4e1; font-size: 10px; letter-spacing: .17em; color: #69847e; font-family: var(--heading); font-weight: 800; }
.hours__clock { width: 42px; height: 42px; border-radius: 13px; background: #dceae4; display: grid; place-items: center; color: #547b73; }
.hours__clock svg { width: 21px; height: 21px; }
.hours__row { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; border-bottom: 1px solid #dbe7e3; gap: 18px; }
.hours__day strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 4px; }
.hours__day span { color: #8b9996; font-size: 11.5px; }
.hours__time { color: var(--ink); font-family: var(--heading); font-size: 16px; font-weight: 800; letter-spacing: -.035em; text-align: right; white-space: nowrap; }
.hours__time small { font-size: 10px; font-weight: 700; color: #5a7570; }
.hours__hyphen { margin: 0 4px; color: var(--terracotta); }
.hours__panel-footer { display: flex; align-items: center; gap: 10px; margin: 0 -38px; padding: 22px 38px; background: #e1ede8; color: var(--ink); font-weight: 800; font-family: var(--heading); font-size: 16px; }
.hours__panel-footer svg { width: 19px; height: 19px; color: var(--terracotta-dark); }
.hours__panel-footer a:hover { text-decoration: underline; }

/* map */
.location { background: var(--ink); }
.location .section-heading { margin-bottom: 40px; }
.location .section-heading h2 { color: white; }
.location .section-heading h2 span { color: #e3b9a7; }
.location .section-heading p { color: #b5c8c6; }
.location__card { background: #fff; display: grid; grid-template-columns: 43% 57%; overflow: hidden; border-radius: 21px; box-shadow: 0 28px 45px rgba(0,0,0,.12); }
.location__details { padding: 47px 46px 48px; }
.location__label { color: var(--terracotta-dark); font-size: 10px; font-family: var(--heading); font-weight: 800; letter-spacing: .18em; }
.location__details h3 { color: var(--ink); font-family: var(--heading); font-weight: 800; font-size: clamp(26px,2.7vw,38px); line-height: 1.16; letter-spacing: -.065em; margin: 19px 0 7px; }
.location__subtitle { margin: 0; color: #7c8e8b; font-size: 13px; }
.location__line { height: 1px; background: #e5eae7; margin: 27px 0; }
.location__info { display: flex; align-items: flex-start; gap: 13px; margin-bottom: 23px; }
.location__info-icon { width: 37px; height: 37px; display: grid; place-items: center; flex-shrink: 0; border-radius: 11px; background: #f3e9e4; color: var(--terracotta-dark); }
.location__info-icon svg { width: 19px; height: 19px; }
.location__info strong { display: block; font-size: 12px; color: var(--ink); margin-bottom: 6px; }
.location__info span:not(.location__info-icon), .location__info a { color: #7b8786; font-size: 12.6px; line-height: 1.7; }
.location__info a:hover { color: var(--terracotta-dark); text-decoration: underline; }
.location__btn { margin-top: 9px; }
.location__map { position: relative; min-height: 470px; background: #e8eee9; }
.location__map iframe { display: block; width: 100%; height: 100%; border: 0; position: absolute; inset: 0; }
.location__map-fallback { position: absolute; z-index: 2; left: 50%; bottom: 20px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 13px; background: white; border: 1px solid #dce4e2; border-radius: 9px; box-shadow: 0 6px 25px rgba(0,0,0,.11); padding: 13px 16px; white-space: nowrap; color: var(--ink); font-weight: 800; font-size: 12px; }
.location__map-fallback:hover { background: #f8f1ed; }
.location__map-fallback span { color: var(--terracotta); font-size: 18px; }

/* final CTA */
.contact { background: linear-gradient(110deg, #b5705d 0%, #a86351 55%, #9c594b 100%); color: white; position: relative; overflow: hidden; padding: 87px 0 93px; }
.contact:before { content: ''; position: absolute; right: -160px; top: -235px; width: 510px; height: 510px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; }
.contact:after { content: ''; position: absolute; right: -105px; top: -180px; width: 400px; height: 400px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.contact__inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.contact .kicker { color: #ffe5d6; }
.contact h2 { color: #fff; font-size: clamp(33px,3.7vw,53px); margin-top: 19px; }
.contact h2 em { color: #ffe1cc; font-style: normal; }
.contact p { margin: 18px 0 0; color: #ffe7df; font-size: 14px; }
.contact__action { min-width: 260px; display: flex; flex-direction: column; align-items: flex-start; }
.contact__action > span { font-family: var(--heading); font-size: 10px; font-weight: 800; letter-spacing: .21em; color: #ffe7d9; }
.contact__number { font-family: var(--heading); font-size: clamp(25px,2.7vw,40px); font-weight: 800; letter-spacing: -.055em; color: #fff; margin: 10px 0 22px; white-space: nowrap; }
.contact__number:hover { text-decoration: underline; text-underline-offset: 6px; }

/* footer */
.footer { background: #142f36; color: #a3b7b7; }
.footer__main { display: grid; grid-template-columns: 1.55fr 1fr 1fr 1.3fr; gap: 32px; padding: 65px 0; }
.brand--footer .brand__symbol { background: #294c52; border-color: #3e6064; color: #e6efeb; }
.brand--footer .brand__text strong { color: white; }
.brand--footer .brand__text small { color: #dba893; }
.footer__brand > p { padding-left: 60px; font-size: 12px; line-height: 1.6; }
.footer__column { display: flex; flex-direction: column; gap: 11px; font-size: 12.2px; line-height: 1.65; }
.footer__column h3 { font-size: 12px; color: white; margin: 5px 0 8px; font-family: var(--heading); font-weight: 800; }
.footer__column a { color: #dbb3a6; }
.footer__column a:hover { text-decoration: underline; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.09); padding: 20px 0 25px; display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
.footer__bottom a { color: #e8d4ce; }
.footer__bottom a:hover { text-decoration: underline; }
.footer__bottom a span { margin-left: 6px; }

/* fixed phone bubble */
.float-call { position: fixed; display: inline-flex; align-items: center; gap: 8px; bottom: 27px; right: 26px; z-index: 80; color: white; background: var(--terracotta); box-shadow: 0 12px 33px rgba(45,45,45,.22); padding: 13px 17px; border-radius: 100px; border: 2px solid white; font-family: var(--heading); font-size: 12px; font-weight: 800; transition: transform .2s, background .2s; }
.float-call:hover { background: var(--terracotta-dark); transform: translateY(-4px); }
.float-call svg { height: 18px; width: 18px; }

/* overlay lightbox — uses actual originals */
.lightbox { border: 0; padding: 0; width: min(1100px, calc(100vw - 58px)); max-height: min(94vh, 950px); overflow: visible; background: transparent; color: white; }
.lightbox::backdrop { background: rgba(12,30,33,.9); backdrop-filter: blur(8px); }
.lightbox__inner { display: flex; justify-content: center; align-items: center; position: relative; width: 100%; }
.lightbox figure { width: 100%; margin: 0; min-width: 0; }
.lightbox__img { width: 100%; max-height: calc(90vh - 48px); object-fit: contain; margin-inline: auto; border: 5px solid white; border-radius: 9px; background: #edf0ec; }
.lightbox__caption { text-align: center; padding: 14px 0 0; font-size: 13px; }
.lightbox__close, .lightbox__nav { appearance: none; border: 1px solid rgba(255,255,255,.35); background: rgba(21,44,49,.85); color: white; cursor: pointer; display: grid; place-items: center; border-radius: 50%; transition: background .2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--terracotta); }
.lightbox__close { position: absolute; z-index: 3; right: -17px; top: -17px; width: 43px; height: 43px; font-size: 27px; }
.lightbox__nav { position: absolute; z-index: 2; width: 40px; height: 40px; top: 47%; font-size: 30px; }
.lightbox__nav--prev { left: 9px; }
.lightbox__nav--next { right: 9px; }

/* El contenido siempre permanece visible, también sin JavaScript o con conexión lenta. */
.js .reveal { opacity: 1; transform: none; }
.js .reveal.is-pending { opacity: 1; transform: none; }
.js .reveal.is-visible { animation: appear-soft .58s ease-out both; }
@keyframes appear-soft { from { opacity: .84; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.js .service-card:nth-child(2), .js .gallery-card:nth-child(2) { transition-delay: .08s; }
.js .service-card:nth-child(3) { transition-delay: .16s; }
.js .service-card:nth-child(4) { transition-delay: .24s; }

@media (max-width: 1130px) {
  .container { width: min(1160px, calc(100% - 60px)); }
  .header__inner { gap: 18px; }
  .nav { gap: 16px; }
  .nav__link { font-size: 11px; }
  .brand__text strong { font-size: 13px; }
  .brand__symbol { width: 42px; height: 42px; }
  .hero__grid { gap: 30px; }
  .hero h1 { font-size: clamp(42px,5.1vw,62px); }
  .hero__floating-tag { right: -5px; }
  .service-card { padding: 23px 19px; }
}
@media (max-width: 940px) {
  .header__inner { height: 76px; }
  .header__cta { margin-left: auto; }
  .menu-toggle { display: flex; }
  .nav { position: absolute; display: none; top: 100%; left: 0; right: 0; max-height: calc(100vh - 76px); overflow-y: auto; padding: 14px 30px 24px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 22px 35px rgba(17,47,51,.12); margin: 0; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav.is-open { display: flex; }
  .nav__link { font-size: 15px; padding: 13px 5px; }
  .nav__link:after { display: none; }
  .nav__link--mobile { display: block; }
  .hero__grid { min-height: 580px; grid-template-columns: 1fr 1fr; gap: 18px; padding-top: 65px; padding-bottom: 65px; }
  .hero__visual { padding: 32px 12px 30px 14px; }
  .hero__floating-tag { transform: scale(.82); transform-origin: top right; }
  .hero h1 { font-size: clamp(38px, 5vw, 55px); }
  .hero__bottom-inner { gap: 17px; font-size: 9px; }
  .services__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .service-card { min-height: 290px; }
  .hours__grid { gap: 40px; grid-template-columns: .8fr 1.2fr; }
  .hours__panel { padding: 24px 23px 0; }
  .hours__panel-footer { margin-inline: -23px; padding-inline: 23px; }
  .hours__time { font-size: 14px; }
  .location__details { padding: 35px 30px; }
  .footer__main { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 75px; }
  .container { width: calc(100% - 38px); }
  .section { padding: 77px 0; }
  .topbar__inner { height: 32px; }
  .topbar { font-size: 10px; }
  .topbar svg { width: 12px; height: 12px; }
  .header__inner { height: 72px; }
  .brand__text strong { font-size: 12px; }
  .brand__text small { font-size: 8px; letter-spacing: .14em; }
  .brand__symbol { width: 39px; height: 39px; border-radius: 12px; }
  .brand__symbol svg { width: 27px; height: 27px; }
  .header__cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .nav { padding-inline: 20px; }
  .hero__grid { grid-template-columns: 1fr; gap: 38px; min-height: 0; padding-top: 67px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(42px, 8vw, 62px); max-width: 560px; margin: 23px 0; }
  .hero__lead { font-size: 17px; }
  .hero__description { max-width: 560px; }
  .hero__footnote { margin-top: 29px; padding-top: 21px; }
  .hero__visual { padding: 15px 20px 23px 18px; max-width: 620px; margin-inline: auto; }
  .hero__photo-card { max-width: 570px; }
  .hero__floating-tag { right: -10px; top: -9px; transform: scale(.83); }
  .hero__bottom-inner { min-height: 62px; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; font-size: 8px; letter-spacing: .09em; }
  .hero__bottom i:nth-of-type(2) { display: none; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2, .gallery h2, .hours h2 { font-size: clamp(33px,6vw,46px); }
  .services__grid { gap: 13px; }
  .service-card { padding: 21px; }
  .service-card h3 { font-size: 17px; }
  .gallery__intro { display: block; }
  .gallery__intro p { max-width: 550px; margin-top: 16px; }
  .gallery__grid { gap: 20px; }
  .gallery-card { padding: 8px; }
  .gallery-card figcaption { padding: 15px 8px 10px; }
  .gallery-card figcaption strong { font-size: 14px; }
  .gallery__address { flex-wrap: wrap; line-height: 1.6; text-align: center; }
  .hours__grid { grid-template-columns: 1fr; }
  .hours__left h2 { max-width: 550px; }
  .hours__left p { max-width: 530px; }
  .hours__panel { max-width: 640px; width: 100%; margin-inline: auto; }
  .location__card { grid-template-columns: 1fr; }
  .location__details { padding: 36px 33px; }
  .location__map { min-height: 360px; }
  .contact { padding: 73px 0; }
  .contact__inner { flex-direction: column; align-items: flex-start; gap: 36px; }
  .contact__action { min-width: 0; }
  .contact__number { font-size: 35px; }
}
@media (max-width: 500px) {
  .topbar__inner { gap: 7px; }
  .topbar__location, .topbar__phone { gap: 5px; }
  .container { width: calc(100% - 34px); }
  .hero__grid { padding-top: 58px; gap: 29px; padding-bottom: 54px; }
  .hero h1 { font-size: clamp(36px, 10.3vw, 47px); letter-spacing: -.075em; }
  .hero__lead { font-size: 16px; }
  .hero__description { font-size: 14px; line-height: 1.8; }
  .hero__actions { flex-direction: column; align-items: stretch; max-width: 390px; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { padding: 16px 10px 17px; }
  .hero__visual-shape { left: 4%; }
  .hero__photo-card { border-width: 6px; border-radius: 17px; }
  .hero__photo-card > img { border-radius: 11px; }
  .hero__floating-tag { top: -25px; right: -7px; transform: scale(.72); }
  .hero__photo-caption { font-size: 9px; padding: 7px 9px 4px; }
  .hero__bottom-inner { font-size: 8px; gap: 10px; }
  .hero__bottom i { width: 4px; height: 4px; }
  .services__grid, .gallery__grid { grid-template-columns: 1fr; }
  .service-card { min-height: 275px; padding: 23px; }
  .service-card h3 { font-size: 20px; margin-top: 19px; }
  .service-card__icon { width: 58px; height: 58px; }
  .service-card__icon svg { width: 34px; height: 34px; }
  .gallery-card figcaption strong { font-size: 17px; }
  .gallery__address { margin-top: 23px; }
  .gallery__address a { margin-left: 0; }
  .hours__panel { padding: 24px 17px 0; border-radius: 17px; }
  .hours__panel-footer { margin-inline: -17px; padding-inline: 17px; }
  .hours__row { gap: 9px; }
  .hours__day strong { font-size: 12.2px; }
  .hours__day span { font-size: 10px; }
  .hours__time { font-size: 12px; }
  .hours__time small { font-size: 9px; }
  .hours__hyphen { margin: 0 1px; }
  .location__details { padding: 29px 23px; }
  .location__map { min-height: 340px; }
  .contact h2 { font-size: clamp(30px,8vw,43px); }
  .contact__number { font-size: 32px; }
  .footer__main { grid-template-columns: 1fr 1fr; gap: 37px 18px; padding: 48px 0; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__column:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 13px; }
  .float-call { bottom: 15px; right: 12px; padding: 13px; }
  .float-call span { display: none; }
  .lightbox { width: calc(100vw - 24px); }
  .lightbox__close { right: 0; top: -45px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal.is-pending { opacity: 1; transform: none; }
}
