@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --primary: #1eaddd;
  --primary-dark: #147a9c;
  --secondary: #1eaddd;
  --navy: #0b2f4f;
  --background: #f4f8fa;
  --surface: #ffffff;
  --text: #17324a;
  --text-muted: #607486;
  --border: #dbe6ec;
  --danger: #b42318;
  --success: #087a55;
  --shadow-sm: 0 8px 24px rgba(11, 47, 79, .08);
  --shadow-lg: 0 24px 60px rgba(11, 47, 79, .15);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --header-height: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--surface); font-family: 'Manrope', Arial, sans-serif; line-height: 1.7; overflow-x: hidden; }
body.menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--primary); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3 { color: var(--navy); line-height: 1.15; margin-top: 0; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 5vw, 4.6rem); letter-spacing: -.05em; }
h2 { font-size: clamp(1.8rem, 3.3vw, 3rem); letter-spacing: -.035em; }
h3 { font-size: 1.18rem; }
p { margin-top: 0; }
:focus-visible { outline: 3px solid #f5b842; outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 9999; transform: translateY(-150%); background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { transform: none; color: #fff; }
.container { width: min(calc(100% - 32px), var(--container)); margin-inline: auto; }
.section { padding: clamp(68px, 9vw, 116px) 0; }
.section-sm { padding: 54px 0; }
.section-tint { background: var(--background); }
.section-dark { color: #fff; background: var(--navy); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-heading { max-width: 720px; margin: 0 auto 42px; text-align: center; }
.section-heading p { color: var(--text-muted); font-size: 1.06rem; }
.section-heading.align-left { text-align: left; margin-inline: 0; }
.eyebrow, .badge { display: inline-flex; align-items: center; gap: 8px; color: var(--primary-dark); background: #e8f8fc; font-size: .78rem; font-weight: 800; letter-spacing: .11em; line-height: 1; text-transform: uppercase; border-radius: 999px; padding: 9px 13px; margin-bottom: 18px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--secondary); }
.muted { color: var(--text-muted); }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 21px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; text-decoration: none; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--secondary); color: var(--navy); box-shadow: 0 10px 24px rgba(30,173,221,.24); }
.btn-primary:hover { background: #4cc6e8; color: var(--navy); }
.btn-secondary { color: var(--navy); background: #fff; border-color: var(--border); }
.btn-secondary:hover { background: var(--background); color: var(--navy); }
.btn-outline { color: #fff; border-color: rgba(255,255,255,.5); background: transparent; }
.btn-outline:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.btn-link { display: inline-flex; gap: 7px; align-items: center; color: var(--primary-dark); font-weight: 800; text-decoration: none; }
.btn-link::after { content: '→'; transition: transform .2s ease; }
.btn-link:hover::after { transform: translateX(4px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.topbar { color: #d9edf1; background: #082943; font-size: .78rem; }
.topbar-inner { min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-links { display: flex; align-items: center; gap: 22px; min-width: 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar-whatsapp { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.topbar-whatsapp img { width: 18px; height: 18px; }
.topbar-address { display: inline-flex; align-items: center; gap: 6px; max-width: 620px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.topbar-address span { color: var(--secondary); font-size: 1rem; }
.site-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); border-bottom: 1px solid transparent; transition: box-shadow .2s ease, border-color .2s ease; backdrop-filter: blur(14px); }
.site-header.is-scrolled { border-color: var(--border); box-shadow: 0 8px 26px rgba(11,47,79,.09); }
.nav-wrap { min-height: var(--header-height); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; color: var(--navy); text-decoration: none; min-width: 170px; }
.brand-logo { width: 160px; height: auto; flex: 0 0 auto; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav > a:not(.btn) { color: var(--text); font-size: .9rem; font-weight: 700; text-decoration: none; position: relative; }
.site-nav > a:not(.btn)::after { content: ''; position: absolute; left: 0; bottom: -9px; width: 100%; height: 2px; background: var(--secondary); transform: scaleX(0); transition: transform .2s; }
.site-nav > a:hover::after, .site-nav > a[aria-current='page']::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; padding: 10px; border: 0; border-radius: 12px; background: var(--background); color: var(--navy); }
.nav-toggle span { display: block; height: 2px; margin: 5px 0; background: currentColor; transition: transform .2s, opacity .2s; }

.hero { position: relative; height: 432px; min-height: 0; color: #fff; background: var(--navy); overflow: hidden; }
.slider, .slides, .slide { height: 100%; min-height: 0; }
.slides { position: relative; }
.slide { position: absolute; inset: 0; display: grid; align-items: center; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; background-position: center; background-size: cover; }
.slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(7,37,62,.96) 0%, rgba(7,37,62,.78) 48%, rgba(7,37,62,.22) 100%); }
.slide::after { content: ''; position: absolute; width: 440px; height: 440px; right: -160px; bottom: -200px; border: 80px solid rgba(30,173,221,.14); border-radius: 50%; }
.slide.is-active { opacity: 1; visibility: visible; position: relative; z-index: 1; }
.slide-1 { background-image: url('../images/hero/consulta-endoclinic.webp'); }
.slide-2 { background-image: url('../images/servicios/endoscopia.jpg'); }
.slide-3 { background-image: url('../images/hero/equipo-medico.webp'); }
.hero-content { position: relative; z-index: 2; width: min(690px, 90%); padding: 28px 0 68px; }
.hero .eyebrow { color: #d7f5fc; background: rgba(30,173,221,.15); }
.hero h1, .hero h2 { color: #fff; margin-bottom: 12px; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.05em; }
.hero p { max-width: 620px; color: #dce9ef; font-size: clamp(1rem, 1.8vw, 1.18rem); }
.hero .actions { margin-top: 18px; }
.slider-controls { position: absolute; z-index: 5; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slider-arrow { position: absolute; top: 50%; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(11,47,79,.62); font-size: 1.25rem; transform: translateY(-50%); pointer-events: auto; transition: background .2s ease, transform .2s ease; }
.slider-arrow:hover { background: rgba(30,173,221,.9); transform: translateY(-50%) scale(1.06); }
.slider-arrow[data-prev] { left: clamp(12px,3vw,34px); }
.slider-arrow[data-next] { right: clamp(12px,3vw,34px); }
.slider-dots { position: absolute; left: 50%; bottom: 22px; display: flex; gap: 9px; transform: translateX(-50%); pointer-events: auto; }
.slider-dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255,255,255,.5); transition: width .2s, background .2s; }
.slider-dot[aria-current='true'] { width: 28px; background: var(--secondary); }

.trust-strip { position: relative; z-index: 10; margin-top: -22px; }
.trust-grid { display: grid; grid-template-columns: repeat(3,1fr); background: #fff; box-shadow: var(--shadow-lg); border-radius: var(--radius); overflow: hidden; }
.trust-item { padding: 24px; display: flex; align-items: center; gap: 13px; border-right: 1px solid var(--border); }
.trust-item:last-child { border: 0; }
.icon-box { flex: 0 0 48px; width: 48px; height: 48px; display: grid; place-items: center; color: var(--primary-dark); background: #e8f8fc; border-radius: 14px; font-size: 1.25rem; }
.icon-box img { width: 25px; height: 25px; object-fit: contain; }
.trust-item strong { display: block; color: var(--navy); font-size: .92rem; }
.trust-item span { color: var(--text-muted); font-size: .8rem; }

.split { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: clamp(42px,7vw,90px); align-items: center; }
.portrait-wrap { position: relative; max-width: 520px; }
.portrait-wrap::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; z-index: -1; border-radius: 28px; background: linear-gradient(145deg,#e4f7fb,#e6eef5); }
.portrait-wrap img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; object-position: center top; border-radius: 28px; box-shadow: var(--shadow-lg); }
.experience-tag { position: absolute; right: -24px; bottom: 28px; width: 145px; padding: 19px; color: #fff; background: var(--navy); border-radius: 16px; box-shadow: var(--shadow-lg); }
.experience-tag strong { display: block; color: var(--secondary); font-size: 2rem; line-height: 1; }
.check-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px 20px; margin: 24px 0 30px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; color: var(--primary); font-weight: 900; }
.stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 30px 0; }
.stat { position: relative; min-height: 176px; display: flex; flex-direction: column; justify-content: center; padding: 28px 24px 24px; overflow: hidden; background: linear-gradient(145deg,#fff 35%,#f2faff 100%); border: 1px solid #cfe3ee; border-radius: 16px; box-shadow: 0 12px 28px rgba(11,47,79,.07); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.stat::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg,var(--primary),var(--secondary)); }
.stat::after { content: ''; position: absolute; right: -32px; bottom: -42px; width: 90px; height: 90px; border: 16px solid rgba(30,173,221,.08); border-radius: 50%; }
.stat:hover { transform: translateY(-4px); border-color: #9dd8eb; box-shadow: 0 18px 38px rgba(11,47,79,.11); }
.stat strong { position: relative; z-index: 1; display: block; margin-bottom: 7px; color: var(--navy); font-size: clamp(1.22rem,2vw,1.55rem); line-height: 1.2; letter-spacing: -.03em; }
.stat > span:last-child { position: relative; z-index: 1; color: var(--text-muted); font-size: .79rem; line-height: 1.5; }
.stat .stat-kicker { position: relative; z-index: 1; margin-bottom: 10px; color: var(--primary-dark); font-size: .66rem; font-weight: 800; letter-spacing: .1em; line-height: 1.2; text-transform: uppercase; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3,minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4,minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.service-card { position: relative; min-height: 255px; padding: 30px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.service-card::after { content: ''; position: absolute; width: 90px; height: 90px; right: -50px; top: -50px; border: 18px solid rgba(30,173,221,.12); border-radius: 50%; }
.service-card:hover { transform: translateY(-6px); border-color: #a7ddec; box-shadow: var(--shadow-lg); }
.service-card .icon-box { margin-bottom: 22px; }
.service-card p { color: var(--text-muted); font-size: .92rem; }
.center-cta { margin-top: 38px; text-align: center; }
.feature-card { padding: 28px; }
.feature-card .icon-box { margin-bottom: 20px; }
.feature-card p { color: var(--text-muted); margin-bottom: 0; }

.hours-location { display: grid; grid-template-columns: .86fr 1.14fr; gap: 0; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hours-panel { padding: clamp(30px,5vw,58px); color: #fff; background: var(--navy); }
.hours-panel h2, .hours-panel h3 { color: #fff; }
.hours-list { padding: 0; margin: 25px 0; list-style: none; }
.hours-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.location-panel { padding: clamp(30px,5vw,58px); background: #e8f8fc; }
.location-panel p > a[href^='tel:'], .location-panel p > a[href^='https://wa.me/'], .site-footer p > a[href^='tel:'], .site-footer p > a[href^='https://wa.me/'] { display: inline-flex; align-items: center; gap: 8px; margin-block: 3px; font-weight: 700; }
.location-panel p > a[href^='tel:']::before, .location-panel p > a[href^='https://wa.me/']::before, .site-footer p > a[href^='tel:']::before, .site-footer p > a[href^='https://wa.me/']::before { content: ''; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 50%; background-color: #fff; background-position: center; background-repeat: no-repeat; box-shadow: 0 3px 9px rgba(11,47,79,.12); }
.location-panel p > a[href^='tel:']::before, .site-footer p > a[href^='tel:']::before { background-image: url('../images/ico/telefono.png'); background-size: 14px; }
.location-panel p > a[href^='https://wa.me/']::before, .site-footer p > a[href^='https://wa.me/']::before { background-image: url('../images/ico/whatsapp.png'); background-size: 20px; }
.map { position: relative; overflow: hidden; width: 100%; min-height: 310px; border: 0; border-radius: var(--radius); background: #dbe8ec; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 24px; color: var(--text-muted); background: linear-gradient(135deg,#ddf3f9,#edf4f7); }
.map-placeholder strong { color: var(--navy); font-size: 1.2rem; }

.blog-card { overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.blog-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.blog-card-body { padding: 25px; }
.blog-card .badge { margin-bottom: 13px; font-size: .68rem; }
.blog-meta { display: flex; gap: 14px; color: var(--text-muted); font-size: .76rem; }
.blog-card h3 { margin: 10px 0; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card p { color: var(--text-muted); font-size: .9rem; }

.cta-banner { position: relative; overflow: hidden; padding: clamp(42px,7vw,70px); color: #fff; background: linear-gradient(135deg,var(--primary-dark),var(--navy)); border-radius: 28px; }
.cta-banner::after { content: ''; position: absolute; right: -90px; top: -120px; width: 320px; height: 320px; border: 60px solid rgba(30,173,221,.18); border-radius: 50%; }
.cta-banner-inner { position: relative; z-index: 1; max-width: 770px; }
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #dcebf0; }

.page-hero { position: relative; padding: clamp(72px,10vw,124px) 0; color: #fff; background: linear-gradient(120deg,rgba(7,46,76,.98),rgba(8,127,140,.85)), url('../images/hero/clinica-endoscopia.webp') center/cover; }
.page-hero h1 { max-width: 900px; color: #fff; font-size: clamp(2.2rem,4.8vw,4rem); }
.page-hero p { max-width: 760px; color: #dcebf0; font-size: 1.08rem; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; font-size: .8rem; color: #c5dde5; }
.breadcrumb a { color: #fff; }
.service-detail { padding: clamp(55px,8vw,90px) 0; border-bottom: 1px solid var(--border); }
.service-detail:nth-child(even) { background: var(--background); }
.service-layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: 55px; align-items: center; }
.service-layout.reverse > :first-child { order: 2; }
.service-media { min-height: 380px; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-lg); }
.service-media img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; }
.info-panel { padding: 27px; border-left: 4px solid var(--secondary); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #e8f8fc; }
.condition-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.condition { padding: 22px 16px; text-align: center; font-weight: 700; background: #fff; border: 1px solid var(--border); border-radius: 14px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 34px; align-items: start; }
.contact-card { padding: 30px; }
.contact-list { display: grid; gap: 12px; margin: 25px 0; }
.contact-row { display: grid; grid-template-columns: 44px 1fr; gap: 13px; align-items: center; padding: 12px; background: #f8fbfc; border: 1px solid transparent; border-radius: 13px; transition: border-color .2s ease, background .2s ease; }
.contact-row:hover { background: #fff; border-color: #cfe3ee; }
.contact-row .icon-box { width: 44px; height: 44px; }
.contact-row strong { display: block; margin-bottom: 3px; }
.contact-row a { font-weight: 700; text-decoration: none; }
.contact-icon-box img { width: 25px; height: 25px; }
.whatsapp-icon-box img { width: 29px; height: 29px; }
.form-card { padding: clamp(25px,5vw,42px); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.form-group { display: grid; gap: 7px; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { color: var(--navy); font-size: .88rem; font-weight: 800; }
.form-group input, .form-group select, .form-group textarea { width: 100%; min-height: 49px; padding: 11px 13px; color: var(--text); background: #fff; border: 1px solid #bdccd5; border-radius: 10px; }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group small { color: var(--text-muted); font-size: .75rem; }
.form-group input[aria-invalid='true'], .form-group select[aria-invalid='true'], .form-group textarea[aria-invalid='true'] { border-color: var(--danger); }
.form-error { min-height: 1.25em; margin: 0; color: var(--danger); font-size: .75rem; }
.captcha-group { padding: 0; background: transparent; border: 0; }
.captcha-challenge { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px; margin-bottom: 0; }
.captcha-question { min-width: 120px; color: var(--navy); font-size: .95rem; font-weight: 800; }
.captcha-refresh { flex: 0 0 auto; width: 42px; height: 42px; min-height: 42px; padding: 0; color: var(--primary-dark); background: #fff; border: 1px solid #b8dbe8; border-radius: 50%; font-size: 1rem; font-weight: 800; }
.captcha-refresh:hover { background: #e8f8fc; }
.captcha-refresh:disabled { cursor: wait; opacity: .55; }
.captcha-group input[name='captcha'] { width: 110px; max-width: 110px; min-height: 44px; background: #fff; font-size: .95rem; font-weight: 700; }
.checkbox { display: flex; align-items: flex-start; gap: 11px; }
.checkbox input { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 3px; }
.honeypot { position: absolute; left: -9999px; }
.alert { display: none; padding: 14px 16px; margin: 0 0 20px; border-radius: 10px; font-size: .9rem; }
.alert.is-visible { display: block; }
.alert-success { color: #07583f; background: #d9f7e9; border: 1px solid #9addc3; }
.alert-error { color: #842018; background: #fee4e2; border: 1px solid #f4aaa4; }
.btn[disabled] { cursor: wait; opacity: .65; transform: none; }

.article-header { max-width: 900px; margin-inline: auto; text-align: center; }
.article-header .breadcrumb { justify-content: center; color: var(--text-muted); }
.article-header .breadcrumb a { color: var(--primary-dark); }
.article-header h1 { font-size: clamp(2.2rem,5vw,4.2rem); }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 22px; color: var(--text-muted); }
.article-hero-image { width: min(calc(100% - 32px), 1080px); margin: 45px auto 0; aspect-ratio: 16/8; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 60px; align-items: start; }
.article-content { max-width: 780px; }
.article-content > p:first-child { color: var(--navy); font-size: 1.15rem; }
.article-content h2 { margin-top: 44px; font-size: 1.85rem; }
.article-content h3 { margin-top: 28px; }
.article-content li { margin-bottom: 8px; }
.toc { position: sticky; top: 115px; padding: 24px; background: var(--background); border: 1px solid var(--border); border-radius: var(--radius); }
.toc h2 { font-size: 1rem; }
.toc ol { padding-left: 20px; margin-bottom: 0; }
.toc a { font-size: .84rem; text-decoration: none; }
.disclaimer { margin-top: 42px; padding: 20px; color: var(--text-muted); background: var(--background); border-radius: 12px; font-size: .86rem; }
.related { margin-top: 55px; padding-top: 45px; border-top: 1px solid var(--border); }

.site-footer { padding-top: 70px; color: #cfe0e8; background: #071f34; }
.footer-grid { display: grid; grid-template-columns: 1.25fr .7fr .95fr 1.15fr; gap: 42px; }
.site-footer h2, .site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer p, .site-footer li { font-size: .85rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 9px 0; }
.site-footer a { color: #dbe9ef; text-decoration: none; }
.site-footer a:hover { color: var(--secondary); }
.footer-bottom { margin-top: 50px; padding: 24px 0 36px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-bottom p { margin: 4px 0; font-size: .73rem; }
.developer-credit { margin-top: -22px; padding-bottom: 28px; color: #91aebb; font-size: .75rem; text-align: right; }
.developer-credit strong { color: #fff; font-weight: 700; }
.whatsapp-float, .back-to-top { position: fixed; z-index: 800; right: 18px; width: 52px; height: 52px; display: grid; place-items: center; color: #fff; border: 0; border-radius: 50%; box-shadow: 0 10px 25px rgba(0,0,0,.22); text-decoration: none; }
.whatsapp-float { bottom: 20px; padding: 0; background: transparent; font-size: 0; }
.whatsapp-float img { width: 52px; height: 52px; object-fit: contain; }
.whatsapp-float:hover { color: #fff; background: transparent; transform: scale(1.06); }
.back-to-top { bottom: 84px; background: var(--navy); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .site-nav { gap: 16px; }
  .brand { min-width: 145px; }
  .brand-logo { width: 140px; }
  .site-nav .btn { display: none; }
  .condition-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 1100px) {
  .topbar .topbar-hours { display: none; }
  .topbar-links { width: 100%; justify-content: center; }
  .topbar-address { max-width: calc(100% - 160px); }
}

@media (max-width: 800px) {
  :root { --header-height: 72px; }
  .topbar .topbar-hours { display: none; }
  .topbar-inner { justify-content: center; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 110px 16px auto 16px; z-index: 1100; display: grid; gap: 0; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: .2s; }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav > a:not(.btn) { padding: 14px; border-bottom: 1px solid var(--border); }
  .site-nav > a:not(.btn)::after { display: none; }
  .site-nav .btn { display: inline-flex; margin-top: 12px; }
  .nav-toggle[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .split, .hours-location, .service-layout, .contact-grid, .article-layout { grid-template-columns: 1fr; }
  .service-layout.reverse > :first-child { order: initial; }
  .portrait-wrap { margin: 0 auto; }
  .toc { position: static; order: -1; }
  .hero { height: 396px; min-height: 0; }
  .slide::before { background: linear-gradient(90deg,rgba(7,37,62,.96),rgba(7,37,62,.72)); }
  .hero-content { padding-top: 24px; padding-bottom: 62px; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .topbar { display: none; }
  .site-nav { top: 80px; }
  .brand { min-width: 0; }
  .brand-logo { width: 138px; }
  .hero { height: 414px; min-height: 0; }
  .hero-content { width: 100%; padding: 20px 0 58px; }
  .hero h1, .hero h2 { font-size: clamp(1.8rem,8.5vw,2.25rem); }
  .hero p { display: -webkit-box; overflow: hidden; font-size: .88rem; line-height: 1.45; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
  .hero .actions { gap: 6px; margin-top: 12px; }
  .hero .actions .btn { min-height: 41px; padding-block: 8px; }
  .hero .actions .btn { width: 100%; }
  .slider-arrow { width: 42px; height: 42px; }
  .slider-dots { bottom: 16px; }
  .trust-strip { margin-top: 0; padding: 18px 0; background: var(--background); }
  .trust-grid, .grid-2, .grid-3, .grid-4, .form-grid, .stats { grid-template-columns: 1fr; }
  .trust-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .check-list { grid-template-columns: 1fr; }
  .experience-tag { right: 10px; }
  .condition-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
  .captcha-challenge { align-items: center; flex-direction: row; }
  .footer-grid { grid-template-columns: 1fr; }
  .developer-credit { text-align: center; }
  .actions .btn { width: 100%; }
  .cta-banner { border-radius: 20px; }
  .article-hero-image { width: calc(100% - 24px); aspect-ratio: 4/3; }
}

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