:root {
  --color-primary: #041b33;
  --color-secondary: #082b4c;
  --color-accent: #f47b00;
  --color-accent-light: #ff961f;
  --color-danger: #c62026;
  --color-light: #ffffff;
  --color-background: #f3f5f7;
  --color-text: #202832;
  --color-muted: #5b6570;
  --color-dark: #111820;
  --font-heading: "Oswald", sans-serif;
  --font-body: "Inter", sans-serif;
  --container-width: 1200px;
  --border-radius: 8px;
  --transition: 0.25s ease;
  --shadow-sm: 0 8px 24px rgba(4, 27, 51, 0.1);
  --shadow-lg: 0 24px 60px rgba(4, 27, 51, 0.2);
  --header-height: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; font-family: var(--font-body); color: var(--color-text); background: var(--color-light); line-height: 1.65; overflow-x: hidden; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--color-accent-light); outline-offset: 4px; }
.container { width: min(calc(100% - 32px), var(--container-width)); margin-inline: auto; }
.section { padding: 96px 0; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 9999; padding: 12px 18px; color: var(--color-primary); background: var(--color-light); border-radius: 0 0 6px 6px; font-weight: 700; }
.skip-link:focus { top: 0; }

h1, h2, h3 { margin-top: 0; font-family: var(--font-heading); line-height: 1.1; text-transform: uppercase; color: var(--color-primary); }
h1 { font-size: clamp(3rem, 7vw, 6.8rem); letter-spacing: -0.03em; }
h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4vw, 4rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 18px; }
.section-kicker, .eyebrow { margin-bottom: 12px; color: var(--color-accent); font-family: var(--font-heading); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.section-heading > p:last-child { color: var(--color-muted); }
.section-heading.light h2, .section-heading.light p { color: var(--color-light); }
.section-heading.light .section-kicker { color: var(--color-accent-light); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 22px; border: 2px solid transparent; border-radius: 4px; font-family: var(--font-heading); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; transition: transform var(--transition), background-color var(--transition), border-color var(--transition), color var(--transition); }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: var(--color-light); background: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-light); }
.btn-outline { color: var(--color-light); border-color: rgba(255,255,255,.8); background: transparent; }
.btn-outline:hover { color: var(--color-primary); background: var(--color-light); }
.btn-dark { color: var(--color-light); background: var(--color-primary); }
.btn-dark:hover { background: var(--color-secondary); }
.btn-whatsapp { color: var(--color-light); background: #1fa855; }

.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1000; height: var(--header-height); color: var(--color-light); transition: background-color var(--transition), box-shadow var(--transition), height var(--transition); }
.site-header.scrolled { height: 72px; background: rgba(4, 27, 51, 0.98); box-shadow: 0 10px 30px rgba(0,0,0,.2); backdrop-filter: blur(12px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: max-content; }
.brand img { width: 58px; height: 58px; object-fit: contain; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-family: var(--font-heading); font-size: 1rem; letter-spacing: .04em; }
.brand-text small { margin-top: 4px; color: rgba(255,255,255,.72); font-size: .7rem; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.nav-link { position: relative; padding: 12px 0; font-size: .88rem; font-weight: 600; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 6px; height: 2px; background: var(--color-accent); transition: right var(--transition); }
.nav-link:hover::after, .nav-link.active::after { right: 0; }
.btn-header { min-height: 42px; padding: 9px 15px; font-size: .83rem; }
.menu-toggle { display: none; width: 46px; height: 42px; padding: 9px; border: 1px solid rgba(255,255,255,.35); color: var(--color-light); background: transparent; border-radius: 4px; }
.menu-toggle span { display: block; width: 100%; height: 2px; margin: 5px 0; background: currentColor; transition: transform var(--transition), opacity var(--transition); }

.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: calc(var(--header-height) + 70px) 0 190px; color: var(--color-light); background: var(--color-primary); isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -4; background: url("../images/hero.jpg") center 40% / cover no-repeat; transform: scale(1.02); }
.hero-overlay { position: absolute; inset: 0; z-index: -3; background: linear-gradient(90deg, rgba(4,27,51,.98) 0%, rgba(4,27,51,.92) 40%, rgba(4,27,51,.45) 72%, rgba(4,27,51,.25) 100%), linear-gradient(0deg, rgba(4,27,51,.86), transparent 45%); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 150px; z-index: -1; background: linear-gradient(180deg, transparent, rgba(4,27,51,.95)); }
.hero-angle { position: absolute; z-index: -2; background: var(--color-accent); opacity: .9; transform: skewX(-22deg); }
.hero-angle-one { width: 420px; height: 14px; right: -90px; top: 27%; }
.hero-angle-two { width: 320px; height: 6px; right: 4%; top: calc(27% + 26px); opacity: .65; }
.hero-content { position: relative; z-index: 2; max-width: var(--container-width); }
.hero-content > * { max-width: 800px; }
.hero h1 { margin-bottom: 24px; color: var(--color-light); text-shadow: 0 8px 30px rgba(0,0,0,.28); }
.hero-rotating-title { display: flex; align-items: center; min-height: 2.35em; }
.hero-title-text { display: block; opacity: 1; transform: translateY(0); transition: opacity .35s ease, transform .35s ease; }
.hero-title-text.is-changing { opacity: 0; transform: translateY(10px); }
.title-initial { color: var(--color-accent); }
.hero-description { max-width: 700px !important; font-size: clamp(1.05rem, 2vw, 1.32rem); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-features { position: absolute; left: 50%; bottom: 38px; z-index: 4; display: grid; grid-template-columns: repeat(4, 1fr); transform: translateX(-50%); }
.hero-feature { min-height: 104px; display: flex; align-items: center; gap: 14px; padding: 22px; border-right: 1px solid rgba(255,255,255,.2); background: rgba(4,27,51,.82); backdrop-filter: blur(10px); }
.hero-feature:first-child { border-radius: 8px 0 0 8px; }
.hero-feature:last-child { border-right: 0; border-radius: 0 8px 8px 0; }
.hero-feature strong, .hero-feature small { display: block; }
.hero-feature strong { font-family: var(--font-heading); font-size: .96rem; text-transform: uppercase; }
.hero-feature small { margin-top: 4px; color: rgba(255,255,255,.65); font-size: .74rem; }
.icon-badge { flex: 0 0 42px; width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid var(--color-accent); color: var(--color-accent-light); border-radius: 50%; }

.highlight-strip { position: relative; z-index: 5; min-height: 80px; display: flex; align-items: center; justify-content: center; gap: 36px; padding: 16px 24px; color: var(--color-primary); background: var(--color-accent); overflow: hidden; }
.highlight-strip p { margin: 0; font-family: var(--font-heading); font-size: clamp(1.15rem, 2.3vw, 2rem); font-weight: 700; text-align: center; text-transform: uppercase; }
.speed-lines { width: 160px; height: 36px; background: repeating-linear-gradient(0deg, transparent 0 7px, var(--color-primary) 7px 10px); clip-path: polygon(0 15%,100% 0,85% 100%,0 85%); opacity: .85; }
.speed-lines.mirrored { transform: scaleX(-1); }

.two-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(48px, 8vw, 100px); }
.about { background: var(--color-light); }
.about-visual { position: relative; min-height: 500px; }
.image-frame { position: absolute; inset: 0 48px 30px 0; overflow: hidden; border-radius: var(--border-radius); box-shadow: var(--shadow-lg); }
.image-frame img { width: 100%; height: 100%; object-fit: cover; }
.about-accent { position: absolute; right: 0; top: -20px; width: 120px; height: 78%; z-index: -1; background: var(--color-accent); clip-path: polygon(28% 0,100% 0,72% 100%,0 100%); }
.achievement-card { position: absolute; right: 0; bottom: 0; width: 210px; padding: 22px; color: var(--color-light); background: var(--color-primary); border-left: 6px solid var(--color-accent); box-shadow: var(--shadow-lg); }
.achievement-card strong, .achievement-card span, .achievement-card small { display: block; }
.achievement-card strong { color: var(--color-accent-light); font-family: var(--font-heading); font-size: 2.7rem; line-height: 1; }
.achievement-card span { margin: 6px 0; font-weight: 700; text-transform: uppercase; }
.achievement-card small { color: rgba(255,255,255,.6); font-size: .7rem; }
.about-content > p:not(.section-kicker) { color: var(--color-muted); }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px 24px; margin: 28px 0 34px; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 28px; font-weight: 600; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-accent); font-weight: 900; }

.principles { background: var(--color-background); }
.cards-grid { display: grid; gap: 24px; }
.principles-grid { grid-template-columns: repeat(3, 1fr); }
.info-card { position: relative; min-height: 270px; padding: 36px; background: var(--color-light); border-top: 5px solid var(--color-accent); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); overflow: hidden; }
.info-card::after { content: ""; position: absolute; right: -35px; bottom: -35px; width: 100px; height: 100px; border: 18px solid rgba(244,123,0,.08); transform: rotate(45deg); }
.info-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.card-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 25px; color: var(--color-light); background: var(--color-secondary); border-radius: 50%; font-size: 1.6rem; }
.card-icon.danger { background: var(--color-danger); }
.info-card p { color: var(--color-muted); }

.courses { background: var(--color-light); }
.courses-grid { grid-template-columns: repeat(3, 1fr); }
.course-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--color-light); border: 1px solid #e4e9ee; border-radius: var(--border-radius); box-shadow: 0 10px 30px rgba(4,27,51,.08); transition: transform var(--transition), box-shadow var(--transition); }
.course-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); }
.course-card > img { width: 100%; height: 220px; object-fit: cover; transition: transform .5s ease; }
.course-card:hover > img { transform: scale(1.04); }
.course-card-body { position: relative; flex: 1; display: flex; flex-direction: column; padding: 30px 26px 26px; }
.course-icon { position: absolute; right: 22px; top: -30px; width: 58px; height: 58px; display: grid; place-items: center; color: var(--color-light); background: var(--color-accent); border: 4px solid var(--color-light); border-radius: 50%; font-size: 1.45rem; }
.course-icon.danger { background: var(--color-danger); }
.course-card p { color: var(--color-muted); }
.course-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: auto; padding-top: 18px; color: var(--color-secondary); font-size: .78rem; font-weight: 700; text-transform: uppercase; }
.course-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 20px; border-top: 1px solid #e8edf1; }
.btn-link, .request-course { padding: 0; border: 0; color: var(--color-accent); background: none; font-weight: 800; }
.request-course { color: var(--color-secondary); font-size: .8rem; text-align: right; }
.btn-link:hover, .request-course:hover { text-decoration: underline; }

.stats { position: relative; color: var(--color-light); background: var(--color-primary); overflow: hidden; }
.stats::before, .stats::after { content: ""; position: absolute; width: 420px; height: 120px; background: var(--color-accent); opacity: .08; transform: rotate(-18deg); }
.stats::before { left: -160px; top: 40px; }
.stats::after { right: -160px; bottom: 20px; }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { padding: 34px 20px; text-align: center; border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.04); border-radius: var(--border-radius); }
.stat-card strong { display: block; margin-bottom: 12px; color: var(--color-accent-light); font-family: var(--font-heading); font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1; }
.stat-card span { font-weight: 700; text-transform: uppercase; }

.methodology { background: var(--color-background); }
.timeline { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 4%; right: 4%; top: 33px; height: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-secondary)); }
.timeline-item { position: relative; z-index: 1; text-align: center; }
.timeline-number { width: 68px; height: 68px; display: grid; place-items: center; margin: 0 auto 24px; color: var(--color-light); background: var(--color-primary); border: 5px solid var(--color-background); border-radius: 50%; font-family: var(--font-heading); font-size: 1.2rem; box-shadow: 0 0 0 2px var(--color-accent); }
.timeline-item h3 { font-size: 1.05rem; }
.timeline-item p { color: var(--color-muted); font-size: .86rem; }

.instructors { background: var(--color-light); }
.instructors-carousel { position: relative; padding: 0 58px 36px; min-width: 0; }
.instructors-viewport { overflow: hidden; width: 100%; }
.instructors-track { display: flex; gap: 22px; transition: transform .5s ease; will-change: transform; transform: translate3d(0,0,0); }
.instructor-card { flex: 0 0 calc((100% - 44px) / 3); min-width: 0; }
.instructor-control { position: absolute; top: 48%; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; color: var(--color-light); background: var(--color-primary); border-radius: 50%; font-size: 2rem; line-height: 1; transform: translateY(-50%); box-shadow: var(--shadow-sm); z-index: 2; }
.instructor-control:hover { background: var(--color-secondary); }
.instructor-control:disabled { opacity: .35; cursor: not-allowed; }
.instructor-control.previous { left: 0; }
.instructor-control.next { right: 0; }
.instructor-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.instructor-dot { width: 10px; height: 10px; padding: 0; border: 0; background: #c4cbd2; border-radius: 50%; }
.instructor-dot.active { background: var(--color-accent); }
.instructor-card { overflow: hidden; background: var(--color-light); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
.instructor-card > img { width: 100%; height: 340px; object-fit: cover; object-position: center top; }
.instructor-content { padding: 28px; border-top: 5px solid var(--color-accent); }
.instructor-content h3 { margin-bottom: 6px; }
.instructor-content .role { color: var(--color-accent); font-weight: 800; }
.instructor-content > p:not(.role), .instructor-content li { color: var(--color-muted); font-size: .9rem; }
.instructor-content ul { padding-left: 20px; }
.instructor-content a { color: var(--color-secondary); font-weight: 800; }

.gallery-section { background: var(--color-primary); }
.gallery-section h2, .gallery-section .section-heading > p:last-child { color: var(--color-light); }
.gallery-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 32px; }
.filter-btn { padding: 10px 18px; color: var(--color-light); background: transparent; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; font-weight: 700; }
.filter-btn:hover, .filter-btn.active { color: var(--color-primary); background: var(--color-accent); border-color: var(--color-accent); }
.gallery-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery-item { position: relative; grid-column: span 4; padding: 0; border: 0; overflow: hidden; background: var(--color-secondary); border-radius: 4px; }
.gallery-item:nth-child(1), .gallery-item:nth-child(6) { grid-column: span 6; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity var(--transition); }
.gallery-item span { position: absolute; inset: auto 0 0; padding: 32px 18px 14px; color: var(--color-light); background: linear-gradient(transparent, rgba(4,27,51,.95)); text-align: left; font-family: var(--font-heading); text-transform: uppercase; }
.gallery-item:hover img { transform: scale(1.06); opacity: .82; }
.gallery-item.is-hidden { display: none; }

.testimonials { background: var(--color-background); }
.testimonial-slider { position: relative; max-width: 900px; margin-inline: auto; overflow: hidden; }
.testimonial-track { display: flex; transition: transform .5s ease; }
.testimonial-slide { flex: 0 0 100%; display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 34px; min-height: 330px; padding: 54px 76px; background: var(--color-light); border-left: 7px solid var(--color-accent); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
.testimonial-slide img { width: 130px; height: 130px; object-fit: cover; border-radius: 50%; }
.testimonial-slide blockquote { margin: 10px 0 20px; color: var(--color-secondary); font-size: 1.15rem; font-weight: 600; }
.testimonial-slide strong, .testimonial-slide span { display: block; }
.testimonial-slide span { color: var(--color-muted); font-size: .86rem; }
.stars { color: var(--color-accent); letter-spacing: .16em; }
.slider-control { position: absolute; top: 50%; width: 46px; height: 46px; border: 0; color: var(--color-light); background: var(--color-primary); border-radius: 50%; font-size: 2rem; transform: translateY(-50%); }
.slider-control.previous { left: 14px; }
.slider-control.next { right: 14px; }
.slider-dots { display: flex; justify-content: center; gap: 9px; margin-top: 22px; }
.slider-dot { width: 11px; height: 11px; padding: 0; border: 0; background: #c4cbd2; border-radius: 50%; }
.slider-dot.active { background: var(--color-accent); }

.cta-section { position: relative; padding: 76px 0; color: var(--color-light); background: var(--color-secondary); overflow: hidden; }
.cta-section::before { content: ""; position: absolute; right: -80px; top: -100px; width: 470px; height: 320px; background: var(--color-accent); clip-path: polygon(45% 0,100% 0,100% 100%,0 100%); opacity: .85; }
.cta-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
.cta-content h2 { max-width: 760px; color: var(--color-light); }
.cta-content p:not(.section-kicker) { max-width: 760px; color: rgba(255,255,255,.78); }
.cta-actions { display: grid; gap: 12px; min-width: 230px; }

.contact { background: var(--color-light); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(48px, 8vw, 100px); }
.contact-info > p:not(.section-kicker) { color: var(--color-muted); }
.contact-info address { display: grid; gap: 4px; margin-top: 30px; font-style: normal; }
.contact-info address > * { display: grid; padding: 16px 0; border-bottom: 1px solid #e5e9ed; }
.contact-info address strong { color: var(--color-secondary); font-size: .8rem; text-transform: uppercase; }
.contact-info address span { color: var(--color-muted); }
.contact-form { padding: 34px; background: var(--color-background); border-radius: var(--border-radius); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: inline-block; margin-bottom: 7px; color: var(--color-secondary); font-weight: 700; font-size: .86rem; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 13px 14px; color: var(--color-text); background: var(--color-light); border: 1px solid #cfd7df; border-radius: 4px; transition: border-color var(--transition), box-shadow var(--transition); }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(244,123,0,.15); outline: 0; }
.form-group [aria-invalid="true"] { border-color: var(--color-danger); }
.field-error { display: block; min-height: 18px; margin-top: 5px; color: var(--color-danger); font-size: .75rem; }
.checkbox-group { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 9px; }
.checkbox-group input { width: 18px; height: 18px; margin-top: 4px; }
.checkbox-group label { margin: 0; font-weight: 500; }
.checkbox-group .field-error { grid-column: 1 / -1; }
.checkbox-group a { color: var(--color-secondary); text-decoration: underline; }
.form-submit { width: 100%; }
.form-notice { margin: 12px 0 0; color: var(--color-muted); font-size: .76rem; text-align: center; }

.site-footer { padding-top: 68px; color: rgba(255,255,255,.75); background: #021426; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 48px; padding-bottom: 52px; }
.footer-grid h2 { margin-bottom: 18px; color: var(--color-light); font-size: 1.05rem; }
.footer-grid > div { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.footer-brand img { width: 72px; height: 72px; object-fit: contain; }
.footer-brand p { max-width: 320px; margin-top: 8px; }
.footer-grid a:hover { color: var(--color-accent-light); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; }
.footer-bottom p { margin: 0; }
.footer-bottom div { display: flex; gap: 18px; }

.floating-whatsapp { position: fixed; right: 24px; bottom: 24px; z-index: 900; width: 58px; height: 58px; display: grid; place-items: center; color: var(--color-light); background: #1fa855; border: 3px solid var(--color-light); border-radius: 50%; box-shadow: 0 10px 28px rgba(0,0,0,.28); font-size: 1.7rem; animation: pulse 2.4s infinite; }
.floating-whatsapp .tooltip { position: absolute; right: 70px; width: max-content; padding: 7px 10px; color: var(--color-light); background: var(--color-primary); border-radius: 4px; font-size: .75rem; opacity: 0; visibility: hidden; transform: translateX(6px); transition: var(--transition); }
.floating-whatsapp:hover .tooltip, .floating-whatsapp:focus .tooltip { opacity: 1; visibility: visible; transform: translateX(0); }
.back-to-top { position: fixed; right: 30px; bottom: 94px; z-index: 890; width: 44px; height: 44px; border: 0; color: var(--color-light); background: var(--color-primary); border-radius: 4px; opacity: 0; visibility: hidden; transform: translateY(12px); transition: var(--transition); }
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }

.modal, .lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; }
.modal[hidden], .lightbox[hidden] { display: none; }
.modal-backdrop, .lightbox-backdrop { position: absolute; inset: 0; background: rgba(1,12,23,.86); backdrop-filter: blur(7px); }
.modal-dialog { position: relative; z-index: 1; width: min(100%, 650px); max-height: min(88vh, 780px); overflow: auto; padding: 42px; background: var(--color-light); border-top: 7px solid var(--color-accent); border-radius: var(--border-radius); box-shadow: var(--shadow-lg); }
.modal-close, .lightbox-close { position: absolute; right: 16px; top: 12px; z-index: 3; width: 42px; height: 42px; border: 0; color: var(--color-light); background: var(--color-primary); border-radius: 50%; font-size: 1.8rem; line-height: 1; }
.modal-icon { width: 68px; height: 68px; display: grid; place-items: center; margin-bottom: 24px; color: var(--color-light); background: var(--color-accent); border-radius: 50%; font-size: 1.7rem; }
.modal-dialog > p, .modal-dialog li { color: var(--color-muted); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.modal-meta span { padding: 8px 12px; color: var(--color-secondary); background: var(--color-background); border-radius: 4px; font-size: .8rem; font-weight: 700; }
.legal-dialog { width: min(100%, 760px); }
.legal-dialog h3 { margin-top: 26px; font-size: 1.15rem; }

.lightbox-content { position: relative; z-index: 1; width: min(1100px, 95vw); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; gap: 14px; }
.lightbox-content figure { margin: 0; overflow: hidden; background: var(--color-primary); border-radius: var(--border-radius); }
.lightbox-content figure img { width: 100%; max-height: 76vh; object-fit: contain; background: #000; }
.lightbox-content figcaption { padding: 14px 18px; color: var(--color-light); background: var(--color-primary); text-align: center; }
.lightbox-close { right: 10px; top: -54px; }
.lightbox-control { width: 52px; height: 52px; border: 0; color: var(--color-light); background: rgba(4,27,51,.9); border-radius: 50%; font-size: 2rem; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,168,85,.35), 0 10px 28px rgba(0,0,0,.28); } 50% { box-shadow: 0 0 0 14px rgba(31,168,85,0), 0 10px 28px rgba(0,0,0,.28); } }

@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; }
}
