:root {
  --blue: #16348c;
  --blue-dark: #0f2569;
  --blue-deep: #0a1b52;
  --yellow: #f7c600;
  --yellow-dark: #e0ac00;
  --yellow-soft: #fff3c4;
  --ink: #142049;
  --ink-soft: #4a5578;
  --white: #ffffff;
  --off-white: #fbfaf6;
  --radius-lg: 28px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 45px rgba(15, 37, 105, 0.14);
  --font-heading: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--off-white);
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  margin: 0 0 .5em;
  line-height: 1.15;
  color: var(--blue-dark);
}

p { margin: 0 0 1em; line-height: 1.6; color: var(--ink-soft); }

a { text-decoration: none; color: inherit; }

img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .8rem;
  color: var(--yellow);
  margin-bottom: .6em;
}
.eyebrow-dark { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .8em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-family: var(--font-body);
  font-size: .95rem;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn-lg { padding: 1em 2em; font-size: 1.02rem; }
.btn-primary {
  background: var(--yellow);
  color: var(--blue-deep);
  box-shadow: 0 10px 24px rgba(247, 198, 0, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(247, 198, 0, 0.45); }
.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); }
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}
.btn-outline:hover { background: var(--white); color: var(--blue-dark); }
.btn-outline-blue { color: var(--blue); border-color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: var(--white); }

.icon-inline {
  width: 16px;
  height: 16px;
  flex: none;
  margin-right: 7px;
}
.btn .icon-inline { width: 17px; height: 17px; }

/* Matrícula button pulse */
@keyframes btn-pulse {
  0%, 78%, 100% { box-shadow: 0 10px 24px rgba(247, 198, 0, 0.35); transform: scale(1); }
  86% { box-shadow: 0 10px 24px rgba(247, 198, 0, 0.35), 0 0 0 8px rgba(247, 198, 0, 0.18); transform: scale(1.05); }
  93% { box-shadow: 0 10px 24px rgba(247, 198, 0, 0.35), 0 0 0 2px rgba(247, 198, 0, 0.1); transform: scale(1); }
}
.btn-matricula { animation: btn-pulse 3.2s ease-in-out infinite; }
.btn-matricula:hover { animation-play-state: paused; }

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
  animation: whatsapp-shake 5s ease-in-out infinite;
}
.whatsapp-float svg { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float:hover { animation-play-state: paused; transform: scale(1.06); }
body.nav-open .whatsapp-float { opacity: 0; pointer-events: none; }
@keyframes whatsapp-shake {
  0%, 92%, 100% { transform: rotate(0); }
  93% { transform: rotate(-14deg); }
  94.5% { transform: rotate(11deg); }
  96% { transform: rotate(-8deg); }
  97.5% { transform: rotate(5deg); }
  99% { transform: rotate(0); }
}
@media (max-width: 760px) {
  .whatsapp-float { right: 14px; bottom: 92px; width: 50px; height: 50px; }
  .whatsapp-float svg { width: 26px; height: 26px; }
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.scrolled {
  background: var(--white);
  padding: 10px 0;
  box-shadow: 0 8px 24px rgba(10,27,82,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; line-height: 1.1; }
.brand-logo {
  width: 44px; height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.brand-text { display: flex; flex-direction: column; }
.brand-mark {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--white);
  letter-spacing: .02em;
}
.site-header.scrolled .brand-mark { color: var(--blue); }
.brand-sub {
  font-size: .65rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 700;
}
.site-header.scrolled .brand-sub { color: var(--ink-soft); }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--white);
  font-weight: 700;
  font-size: .92rem;
  position: relative;
  padding-bottom: 4px;
}
.site-header.scrolled .main-nav a { color: var(--ink); }
.main-nav a:hover { color: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: 16px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 24px; height: 3px; border-radius: 2px;
  background: var(--white);
}
.site-header.scrolled .nav-toggle span { background: var(--blue); }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero-slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  background-color: var(--blue-dark);
  background-size: cover;
  background-position: center;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.10), transparent 45%),
    radial-gradient(circle at 80% 75%, rgba(255,255,255,0.08), transparent 50%);
}
.hero-slide .ph-label {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border: 1.5px dashed rgba(255,255,255,0.35);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,27,82,0.55) 0%, rgba(10,27,82,0.35) 45%, rgba(10,27,82,0.75) 100%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 90px;
  padding-bottom: 150px;
  max-width: 780px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
}
.hero h1 span { color: var(--yellow); }
.hero-text {
  color: rgba(255,255,255,0.9);
  font-size: 1.15rem;
  max-width: 560px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 1.4em; }

.hero-controls {
  position: absolute;
  bottom: 32px;
  left: 0; right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

@media (max-height: 760px) {
  .hero-content { padding-top: 110px; padding-bottom: 110px; }
  .hero-cta { margin-top: 1em; }
  .hero-controls { bottom: 60px; }
}
.hero-arrow {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s ease;
}
.hero-arrow:hover { background: rgba(255,255,255,0.25); }
.hero-dots { display: flex; gap: 10px; }
.hero-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.hero-dot.is-active { background: var(--yellow); transform: scale(1.2); }

/* Waves */
.wave { position: absolute; left: 0; right: 0; width: 100%; line-height: 0; z-index: 2; }
.wave svg { width: 100%; height: 90px; display: block; }
.wave-bottom { bottom: -1px; }
.wave-bottom svg path { fill: var(--off-white); }
.wave-top { top: -1px; }
.wave-top svg path { fill: var(--blue); }
.wave-top-cta svg path { fill: var(--yellow); }
.programas { position: relative; background: var(--blue); padding-top: 60px; }
.cta-final { position: relative; background: var(--yellow); }

/* Diferenciais */
.diferenciais { padding: 110px 0 80px; background: var(--off-white); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head-light h2 { color: var(--white); }
.section-head-light p.eyebrow { color: var(--yellow); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card-diferencial {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease;
}
.card-diferencial:hover { transform: translateY(-6px); }
.icon-circle {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--yellow-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
}
.icon-circle svg { width: 30px; height: 30px; }
.card-diferencial h3 { font-size: 1.05rem; }
.card-diferencial p { font-size: .92rem; margin-bottom: 0; }

/* Placeholder blocks */
.ph-block {
  position: relative;
  border-radius: var(--radius-md);
  background-color: var(--blue-dark);
  background-image: linear-gradient(135deg, var(--blue), var(--blue-dark));
  background-size: cover;
  background-position: center;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.ph-block::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12), transparent 45%);
}
.ph-block .ph-label {
  position: relative;
  z-index: 1;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  border: 1.5px dashed rgba(255,255,255,0.4);
  padding: 8px 16px;
  border-radius: 999px;
  text-align: center;
  max-width: 80%;
}

/* Sobre */
.sobre { padding: 90px 0; background: var(--off-white); }
.sobre-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.sobre-media {
  position: relative;
  padding: 10px 44px 44px 10px;
  max-width: 460px;
}
.ph-block-a {
  aspect-ratio: 4/5;
  width: 100%;
  background-image: linear-gradient(135deg, var(--blue), var(--blue-deep));
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-soft);
}
.ph-block-b {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1/1;
  background-image: linear-gradient(135deg, var(--yellow), var(--yellow-dark));
  background-size: cover;
  background-position: center;
  border: 6px solid var(--off-white);
  box-shadow: 0 16px 32px rgba(15,37,105,0.22);
}
.blob {
  position: absolute;
  border-radius: 50%;
  z-index: -1;
  filter: blur(2px);
}
.blob-1 { width: 150px; height: 150px; background: var(--yellow-soft); top: -34px; left: -34px; }

.sobre-texto h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.link-arrow {
  display: inline-flex;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--yellow);
  padding-bottom: 2px;
}
.link-arrow:hover { color: var(--blue-dark); }

/* Programas */
.programas { padding-bottom: 100px; }
.programas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card-programa {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.ph-programa { aspect-ratio: 4/3; margin-bottom: 20px; }
.card-programa h3 { font-size: 1.15rem; }
.card-programa p { font-size: .92rem; }

/* Unidades */
.unidades { padding: 100px 0; background: var(--white); }
.unidades-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.card-unidade {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: var(--off-white);
}
.card-unidade-media {
  position: relative;
  aspect-ratio: 16/10;
  background-size: cover;
  background-position: center;
}
.card-unidade-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,27,82,0) 40%, rgba(10,27,82,0.55) 100%);
}
.badge-unidade {
  position: absolute;
  left: 20px; bottom: 16px;
  z-index: 1;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  text-shadow: 0 2px 10px rgba(0,0,0,0.25);
}
.card-unidade-body { padding: 26px 28px 30px; }
.rating-linha { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.rating-estrelas { color: var(--yellow-dark); letter-spacing: 2px; font-size: 1rem; }
.rating-texto { font-size: .85rem; font-weight: 700; color: var(--ink-soft); }
.unidade-endereco {
  font-size: .95rem;
  color: var(--ink);
  margin-bottom: 20px;
}
.unidade-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.unidade-fone, .unidade-horario {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: .85rem;
  font-weight: 700;
  color: var(--blue);
}
.unidade-fone:hover { color: var(--blue-dark); }
.unidade-horario { display: flex; color: var(--ink-soft); font-weight: 600; margin-top: 8px; }

/* Nosso Espaço */
.espaco { padding: 100px 0 110px; background: var(--off-white); }
.galeria-tabs { display: flex; justify-content: center; gap: 12px; margin-bottom: 40px; }
.galeria-tab {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .9rem;
  padding: .7em 1.5em;
  border-radius: 999px;
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--blue);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.galeria-tab.is-active, .galeria-tab:hover { background: var(--blue); color: var(--white); }

.galeria-viewport {
  position: relative;
  overflow: hidden;
  margin: 0 calc(-50vw + 50%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}
.galeria-track {
  display: none;
}
.galeria-track.is-active { display: flex; width: max-content; animation: galeria-marquee 34s linear infinite; }
.galeria-track:hover { animation-play-state: paused; }
.galeria-set { display: flex; gap: 20px; padding: 4px 10px; }
.galeria-item {
  flex: none;
  height: 320px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: none;
  padding: 0;
  cursor: zoom-in;
  background: var(--blue-dark);
  transition: transform .25s ease;
}
.galeria-item:hover { transform: translateY(-6px); }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; display: block; image-rendering: auto; }
.galeria-item-h { width: 440px; }
.galeria-item-v { width: 220px; }
.galeria-hint {
  text-align: center;
  font-size: .82rem;
  color: var(--ink-soft);
  margin: 28px 0 0;
}

@keyframes galeria-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(10,27,82,0.92);
  padding: 40px;
}
.lightbox.is-open { display: flex; }
.lightbox-img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: var(--radius-md);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-size: 1.8rem;
  cursor: pointer;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* Depoimentos */
.depoimentos { padding: 100px 0; background: var(--off-white); }
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card-depoimento {
  margin: 0;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-soft);
  border-top: 4px solid var(--yellow);
}
.card-depoimento p { font-style: italic; color: var(--ink); }
.card-depoimento footer { font-size: .85rem; font-weight: 700; color: var(--blue); }
.depoimento-unidade {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--blue);
  background: var(--yellow-soft);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.depoimentos-fonte { text-align: center; font-size: .82rem; color: var(--ink-soft); margin: 36px 0 0; }

/* CTA final */
.cta-final { padding: 100px 0 110px; }
.cta-final-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.cta-final .eyebrow { color: var(--blue-dark); }
.cta-final-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.cta-final-text { color: var(--ink); }

.contato-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.card-contato {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  box-shadow: 0 20px 45px rgba(15,37,105,0.12);
}
.card-contato h3 { color: var(--blue-dark); font-size: 1.2rem; }
.contato-endereco {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink);
  font-size: .95rem;
  margin-bottom: 6px;
}
.contato-endereco svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }
.contato-horario { display: flex; align-items: center; font-size: .85rem; color: var(--ink-soft); margin: 0 0 20px; padding-left: 30px; }
.contato-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin: 6px 0 18px; }
.contato-tel {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: .88rem;
  font-weight: 700;
  color: var(--blue);
}
.contato-tel:hover { color: var(--blue-dark); }
.contato-links { display: flex; flex-direction: column; gap: 6px; }
.contato-links a { display: inline-flex; align-items: center; width: fit-content; font-size: .88rem; font-weight: 700; color: var(--blue); }
.contato-links a:hover { color: var(--blue-dark); }

/* Footer */
.site-footer { background: var(--blue-deep); color: rgba(255,255,255,0.85); padding: 70px 0 30px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-logo { width: 56px; height: 56px; border-radius: 14px; object-fit: cover; margin-bottom: 12px; }
.footer-tagline { color: rgba(255,255,255,0.6); font-size: .88rem; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: var(--white); font-size: .95rem; margin-bottom: 4px; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,0.8); }
.footer-col a:hover { color: var(--yellow); }
.footer-muted { font-size: .85rem; color: rgba(255,255,255,0.45); font-style: italic; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: .8rem; color: rgba(255,255,255,0.5); }

/* Responsive */
@media (max-width: 960px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .programas-grid { grid-template-columns: 1fr; }
  .depoimentos-grid { grid-template-columns: 1fr; }
  .sobre-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .unidades-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .contato-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .brand-sub { display: none; }
  .brand-logo { width: 38px; height: 38px; }
  .brand-mark { font-size: 1.4rem; }

  .nav-backdrop { position: fixed; inset: 0; z-index: 98; background: rgba(10,27,82,0.5);
    opacity: 0; pointer-events: none; transition: opacity .3s ease; }
  .nav-backdrop.is-open { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }

  .main-nav { position: fixed; top: 0; right: -100%; width: 78%; max-width: 320px; height: 100vh;
    background: var(--blue-dark); flex-direction: column; padding: 100px 32px; gap: 24px;
    transition: right .3s ease; z-index: 99; }
  .main-nav.is-open { right: 0; }
  .nav-toggle { display: flex; z-index: 101; position: relative; }
  .nav-toggle span { transition: transform .25s ease, opacity .25s ease; transform-origin: center; }
  .nav-toggle.is-open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.is-open span:nth-child(2) { opacity: 0; }
  .nav-toggle.is-open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .header-actions .btn-primary { padding: .7em 1.2em; font-size: .85rem; }
  .cards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { padding-bottom: 76px; }
  .galeria-item { height: 240px; }
  .galeria-item-h { width: 320px; }
  .galeria-item-v { width: 165px; }
  .galeria-tabs { flex-wrap: wrap; }
  .galeria-viewport {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }
  .galeria-viewport::-webkit-scrollbar { display: none; }
  .galeria-track.is-active { animation: none; }
  .galeria-item { scroll-snap-align: start; }
  .galeria-set[aria-hidden="true"] { display: none; }
  .lightbox-arrow { width: 42px; height: 42px; font-size: 1.4rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 400px) {
  .site-header .container { padding: 0 16px; }
  .brand { gap: 8px; flex-shrink: 0; }
  .brand-logo { width: 32px; height: 32px; }
  .brand-mark { font-size: 1.15rem; }
  .header-actions { gap: 8px; }
  .header-actions .btn-primary { padding: .55em .75em; font-size: .72rem; }
}
