/* ============================================
   TV Wandam — Stylesheet
   Cores: Vermelho, Amarelo, Verde (Guiné-Bissau)
   ============================================ */

:root {
  --red: #CE1126;
  --yellow: #FCD116;
  --green: #009E49;
  --black: #0A0A0A;
  --dark: #141414;
  --gray-900: #1A1A1A;
  --gray-800: #2A2A2A;
  --gray-600: #666;
  --gray-400: #999;
  --gray-200: #E5E5E5;
  --white: #FFFFFF;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --header-height: 72px;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul { list-style: none; }

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

/* Flag dots */
.flag-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.flag-dot--red { background: var(--red); }
.flag-dot--yellow { background: var(--yellow); }
.flag-dot--green { background: var(--green); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--primary {
  background: linear-gradient(135deg, var(--red), #E8334A);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(206, 17, 38, 0.35);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(206, 17, 38, 0.45);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

.btn--full { width: 100%; }

/* Section shared */
.section {
  padding: 100px 0;
}

.section__header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section__header--light .section__title,
.section__header--light .section__desc {
  color: var(--white);
}

.section__tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--red);
  margin-bottom: 12px;
}

.section__header--light .section__tag {
  color: var(--yellow);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 16px;
  line-height: 1.2;
}

.section__desc {
  font-size: 1.05rem;
  color: var(--gray-600);
  line-height: 1.7;
}

.sobre__intro {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.header.scrolled,
.page-inner .header,
.page-equipa .header,
.page-conteudos .header {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 12px;
  min-width: 0;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  min-width: 0;
}

.nav__logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--white);
  letter-spacing: 0.5px;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.nav__menu > li {
  flex-shrink: 0;
}

.nav__panel-head,
.nav__group-label,
.nav__menu-spacer {
  display: none;
}

.nav__link {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  padding: 8px 12px;
  border-radius: 50px;
  transition: all var(--transition);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.nav__link.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav__link--cta {
  background: var(--red);
  color: var(--white) !important;
  margin-left: 8px;
}
.nav__link--cta:hover {
  background: #E8334A;
  transform: translateY(-1px);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}

.nav__backdrop {
  display: none;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero__carousel {
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide.is-active {
  opacity: 1;
}

.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.75) 100%);
  z-index: 1;
}

.hero--has-carousel .hero__content {
  z-index: 3;
}

.hero__gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
}

.hero__gradient--red {
  width: 500px;
  height: 500px;
  background: var(--red);
  top: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__gradient--yellow {
  width: 400px;
  height: 400px;
  background: var(--yellow);
  top: 50%;
  right: -80px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero__gradient--green {
  width: 450px;
  height: 450px;
  background: var(--green);
  bottom: -120px;
  left: 30%;
  animation: float 9s ease-in-out infinite 1s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: calc(var(--header-height) + 40px) 24px 80px;
}

.hero__logo {
  width: 160px;
  height: 160px;
  margin: 0 auto 32px;
  border-radius: 50%;
  box-shadow: 0 0 60px rgba(206, 17, 38, 0.2), 0 0 60px rgba(0, 158, 73, 0.15);
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(206, 17, 38, 0.2), 0 0 40px rgba(0, 158, 73, 0.1); }
  50% { box-shadow: 0 0 80px rgba(206, 17, 38, 0.35), 0 0 60px rgba(252, 209, 22, 0.15); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--red), var(--yellow), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.65);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.7;
  text-align: center;
  text-wrap: balance;
}

.hero__subtitle .hero__nowrap {
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.hero__stats {
  display: flex;
  gap: clamp(24px, 4vw, 48px);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__stat--highlight .hero__stat-number {
  background: linear-gradient(135deg, var(--yellow), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--white);
}

.hero__stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.4);
  z-index: 2;
}

.page-home.is-revealed .hero__scroll {
  animation: bounce 2.2s ease-in-out infinite 0.4s;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   ANIMAÇÕES PREMIUM
   ============================================ */
:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Intro --- */
.site-intro {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: auto;
}

.site-intro__stage {
  position: absolute;
  inset: 0;
  background: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: opacity 0.45s var(--ease-premium), transform 0.55s var(--ease-premium);
}

.site-intro.is-exiting .site-intro__stage {
  opacity: 0;
  transform: scale(1.04);
}

.site-intro__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  opacity: 0;
}

.site-intro__glow--red {
  width: 300px;
  height: 300px;
  background: var(--red);
  top: 18%;
  left: 12%;
  animation: intro-glow 1.1s var(--ease-smooth) 0.05s forwards;
}

.site-intro__glow--green {
  width: 260px;
  height: 260px;
  background: var(--green);
  bottom: 16%;
  right: 10%;
  animation: intro-glow 1.1s var(--ease-smooth) 0.2s forwards;
}

.site-intro__center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-intro__logo {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  margin-bottom: 16px;
  opacity: 0;
  transform: scale(0.72);
  animation: intro-logo 0.95s var(--ease-premium) 0.12s forwards;
}

.site-intro__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--white);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(14px);
  animation: enter-up 0.75s var(--ease-premium) 0.38s forwards;
}

.site-intro__bars {
  display: flex;
  gap: 8px;
  margin-top: 22px;
}

.site-intro__bar {
  width: 52px;
  height: 5px;
  border-radius: 999px;
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  animation: intro-bar 0.55s var(--ease-premium) forwards;
}

.site-intro__bar--red { background: var(--red); animation-delay: 0.55s; }
.site-intro__bar--yellow { background: var(--yellow); animation-delay: 0.67s; }
.site-intro__bar--green { background: var(--green); animation-delay: 0.79s; }

.site-intro__curtain {
  position: absolute;
  inset: 0;
  display: flex;
  z-index: 3;
  pointer-events: none;
}

.site-intro__panel {
  flex: 1;
  transform: translateY(100%);
  will-change: transform;
}

.site-intro__panel--red { background: var(--red); }
.site-intro__panel--yellow { background: var(--yellow); }
.site-intro__panel--green { background: var(--green); }

.site-intro.is-exiting .site-intro__panel--red {
  transform: translateY(0);
  transition: transform 0.75s var(--ease-premium);
}

.site-intro.is-exiting .site-intro__panel--yellow {
  transform: translateY(0);
  transition: transform 0.75s var(--ease-premium) 0.07s;
}

.site-intro.is-exiting .site-intro__panel--green {
  transform: translateY(0);
  transition: transform 0.75s var(--ease-premium) 0.14s;
}

.site-intro.is-leaving .site-intro__panel--red {
  transform: translateY(-100%);
  transition: transform 0.85s var(--ease-premium) 0.05s;
}

.site-intro.is-leaving .site-intro__panel--yellow {
  transform: translateY(-100%);
  transition: transform 0.85s var(--ease-premium) 0.12s;
}

.site-intro.is-leaving .site-intro__panel--green {
  transform: translateY(-100%);
  transition: transform 0.85s var(--ease-premium) 0.19s;
}

@keyframes intro-logo {
  to { opacity: 1; transform: scale(1); }
}

@keyframes intro-bar {
  to { opacity: 1; transform: scaleX(1); }
}

@keyframes intro-glow {
  from { opacity: 0; transform: scale(0.75); }
  to { opacity: 0.32; transform: scale(1); }
}

@keyframes enter-up {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

body.is-intro {
  overflow: hidden;
}

/* --- Hero reveal --- */
.page-home .hero__reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(8px);
  will-change: opacity, transform, filter;
}

.page-home.is-revealed .hero__reveal {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
  transition:
    opacity 0.95s var(--ease-premium),
    transform 0.95s var(--ease-premium),
    filter 0.95s var(--ease-premium);
  transition-delay: calc(var(--delay, 0) * 1ms);
}

.page-home.is-revealed .hero__logo {
  animation: pulse-glow 3.5s ease-in-out infinite 1s;
}

.page-home:not(.is-revealed) .header {
  opacity: 0;
}

.page-home.is-revealed .header {
  opacity: 1;
  transition: opacity 0.8s var(--ease-premium) 0.35s;
}

/* --- Páginas internas --- */
.page-inner.is-ready > main,
.page-inner.is-ready > .equipa-page,
.page-inner.is-ready > .feed-page {
  animation: page-enter 0.75s var(--ease-premium) forwards;
}

.page-inner.is-ready .header {
  animation: header-enter 0.65s var(--ease-premium) forwards;
}

@keyframes page-enter {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes header-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Scroll reveal --- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 0.75s var(--ease-premium),
    transform 0.75s var(--ease-premium),
    filter 0.75s var(--ease-premium);
  transition-delay: calc(var(--reveal-i, 0) * 70ms);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-intro { display: none !important; }
  .page-home .hero__reveal,
  .page-home:not(.is-revealed) .header {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
    animation: none !important;
  }
  .page-inner > main,
  .page-inner > .equipa-page,
  .page-inner > .feed-page,
  .page-inner .header { animation: none !important; }
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================
   SOBRE
   ============================================ */
.sobre__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.sobre__card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.sobre__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.sobre__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(206, 17, 38, 0.1), rgba(0, 158, 73, 0.1));
  border-radius: 12px;
  margin-bottom: 20px;
}

.sobre__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--red);
}

.sobre__card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 10px;
}

.sobre__card p {
  font-size: 0.92rem;
  color: var(--gray-600);
  line-height: 1.65;
}

.sobre__missao {
  max-width: 800px;
  margin: 0 auto;
}

.sobre__quote {
  position: relative;
  padding: 40px 48px;
  background: linear-gradient(135deg, var(--gray-900), var(--dark));
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--red);
}

.sobre__quote::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 4rem;
  color: var(--red);
  opacity: 0.3;
  font-family: Georgia, serif;
  line-height: 1;
}

.sobre__quote p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}

.sobre__quote cite {
  font-size: 0.85rem;
  color: var(--yellow);
  font-style: normal;
  font-weight: 600;
}

/* ============================================
   SERVIÇOS
   ============================================ */
.servicos {
  background: var(--black);
  position: relative;
}

.servicos::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), var(--yellow), var(--green));
}

.servicos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.servico {
  padding: 36px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.servico:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(206, 17, 38, 0.3);
  transform: translateY(-4px);
}

.servico__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  display: block;
}

.servico h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.servico > p {
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 16px;
  line-height: 1.65;
}

.servico__list {
  list-style: none;
}

.servico__list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.servico__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

/* ============================================
   HISTÓRIA
   ============================================ */
.historia {
  background: #fafafa;
  border-top: 1px solid var(--gray-200);
}

.historia__intro {
  max-width: 960px;
  margin: 0 auto 56px;
}

.historia__prose {
  columns: 2;
  column-gap: 48px;
  margin-bottom: 40px;
}

.historia__prose p {
  font-size: 1rem;
  color: var(--gray-600);
  line-height: 1.85;
  margin: 0 0 18px;
  break-inside: avoid;
}
.historia__prose p:last-child { margin-bottom: 0; }

.historia__metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.historia__metrics li {
  text-align: center;
  padding: 22px 16px;
  border-right: 1px solid var(--gray-200);
}

.historia__metrics li:last-child { border-right: none; }

.historia__metrics strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--black);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.historia__metrics span {
  display: block;
  margin-top: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gray-600);
}

.historia__timeline-block {
  border-top: 1px solid var(--gray-200);
  padding-top: 40px;
}

.historia__timeline-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.historia__timeline-label {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gray-600);
  margin: 0;
}

.historia__timeline-nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.historia__nav-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-800);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.historia__nav-btn svg { width: 16px; height: 16px; }
.historia__nav-btn:hover:not(:disabled) {
  border-color: var(--red);
  color: var(--red);
}
.historia__nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.historia__nav-count {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gray-600);
  min-width: 3.5rem;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.historia__track-wrap {
  position: relative;
  margin: 0 -24px;
  padding: 0 24px;
}

.historia__track-wrap::before,
.historia__track-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 12px;
  width: 48px;
  z-index: 2;
  pointer-events: none;
}
.historia__track-wrap::before {
  left: 0;
  background: linear-gradient(90deg, #fafafa 30%, transparent);
}
.historia__track-wrap::after {
  right: 0;
  background: linear-gradient(270deg, #fafafa 30%, transparent);
}

.historia__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-200) transparent;
}
.historia__track::-webkit-scrollbar { height: 4px; }
.historia__track::-webkit-scrollbar-thumb {
  background: var(--gray-200);
  border-radius: 999px;
}

.historia__card {
  flex: 0 0 min(300px, 84vw);
  scroll-snap-align: start;
  padding: 28px 28px 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.historia__card:hover {
  border-color: #d1d5db;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.historia__card-date {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--red);
  margin-bottom: 12px;
}

.historia__card-title {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--black);
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.historia__card-text {
  font-size: 0.9375rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin: 0;
}

/* Legado timeline (compat) */
.historia__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.historia__text {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}

.historia__timeline {
  position: relative;
  padding-left: 32px;
}

.historia__timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--red), var(--yellow), var(--green));
}

.timeline__item {
  position: relative;
  padding-bottom: 32px;
}

.timeline__dot {
  position: absolute;
  left: -32px;
  top: 6px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border: 3px solid var(--red);
  border-radius: 50%;
  z-index: 1;
}

.timeline__date {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline__content h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  margin: 4px 0 6px;
}

.timeline__content p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ============================================
   FUNDADORA
   ============================================ */
.fundadora {
  background: linear-gradient(180deg, #F8F8F8 0%, var(--white) 100%);
}

.fundadora__layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.fundadora__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
}

.fundadora__team-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--black);
  color: var(--white);
  flex-shrink: 0;
  justify-content: center;
  transition: all var(--transition);
  box-shadow: var(--shadow);
}

.fundadora__team-icon svg {
  width: 24px;
  height: 24px;
}

.fundadora__team-icon__label {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fundadora__team-icon:hover {
  background: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(206, 17, 38, 0.35);
}

.fundadora__frame {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.fundadora__avatar {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--yellow), var(--green));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.fundadora__avatar::after {
  content: '';
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: var(--white);
  z-index: 0;
}

.fundadora__initials {
  position: relative;
  z-index: 1;
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--red), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fundadora__badge {
  position: relative;
  z-index: 2;
  margin-top: -20px;
  padding: 8px 24px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 50px;
  letter-spacing: 0.5px;
}

.fundadora__role {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--red);
  margin-bottom: 20px;
}

.fundadora__bio {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.75;
}

.fundadora__bio strong {
  color: var(--black);
}

/* ============================================
   REDES SOCIAIS
   ============================================ */
.redes {
  background: linear-gradient(135deg, var(--gray-900), var(--black));
  position: relative;
}

.redes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.rede {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  text-align: center;
}

.rede svg {
  width: 36px;
  height: 36px;
  margin-bottom: 4px;
}

.rede span {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.rede small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

.rede__count {
  display: block;
  margin-top: 6px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--yellow);
}

.rede:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.rede--facebook:hover { border-color: #1877F2; background: rgba(24, 119, 242, 0.1); }
.rede--facebook svg { color: #1877F2; }

.rede--instagram:hover { border-color: #E4405F; background: rgba(228, 64, 95, 0.1); }
.rede--instagram svg { color: #E4405F; }

.rede--youtube:hover { border-color: #FF0000; background: rgba(255, 0, 0, 0.1); }
.rede--youtube svg { color: #FF0000; }

.rede--tiktok:hover { border-color: #69C9D0; background: rgba(105, 201, 208, 0.1); }
.rede--tiktok svg { color: #69C9D0; }

/* ============================================
   CONTACTO
   ============================================ */
.contacto__layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}

.contacto__desc {
  font-size: 1rem;
  color: var(--gray-600);
  margin-bottom: 16px;
  line-height: 1.7;
}

.contacto__note {
  font-size: 0.92rem;
  color: var(--gray-400);
  line-height: 1.65;
}

.contacto__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.contacto-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  min-height: 112px;
  overflow: hidden;
}

.contacto-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.contacto-card--wa:hover { border-color: rgba(37, 211, 102, 0.45); }
.contacto-card--tel:hover { border-color: rgba(206, 17, 38, 0.35); }
.contacto-card--email:hover { border-color: rgba(206, 17, 38, 0.35); }
.contacto-card--loc { border-color: var(--gray-200); }

.contacto-card--static {
  cursor: default;
}

.contacto-card--static:hover {
  transform: none;
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
}

.contacto-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.contacto-card__icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
}

.contacto-card--wa .contacto-card__icon {
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
}

.contacto-card--tel .contacto-card__icon {
  background: rgba(206, 17, 38, 0.1);
  color: var(--red);
}

.contacto-card--email .contacto-card__icon {
  background: rgba(206, 17, 38, 0.1);
  color: var(--red);
}

.contacto-card--loc .contacto-card__icon {
  background: rgba(0, 158, 73, 0.1);
  color: var(--green);
}

.contacto-card__body {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.contacto-card__label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.9px;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.contacto-card__value {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
}

.contacto-card--wa .contacto-card__value {
  white-space: nowrap;
}

.contacto-card--email .contacto-card__value {
  white-space: normal;
  overflow-wrap: anywhere;
  font-size: clamp(0.92rem, 2.2vw, 1.05rem);
}

.contacto-card__action {
  display: block;
  margin-top: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--red);
}

.contacto-card--wa .contacto-card__action { color: #128c7e; }
.contacto-card--loc .contacto-card__action { color: var(--green); }

.contacto-card__arrow {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-600);
  transition: all var(--transition);
}

.contacto-card__arrow svg {
  width: 14px;
  height: 14px;
}

.contacto-card:hover .contacto-card__arrow {
  background: var(--red);
  color: var(--white);
}

.contacto-card--wa:hover .contacto-card__arrow {
  background: #128c7e;
  color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--black);
  padding: 64px 0 32px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer__logo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.footer__brand p {
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 320px;
}

.footer__links h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer__links a:hover {
  color: var(--yellow);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__bottom p {
  font-size: 0.85rem;
}

.footer__legal {
  text-align: right;
}

.footer__credit {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.45);
}

.footer__credit a {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
}

.footer__credit a:hover {
  color: var(--yellow);
}

.footer__flag {
  display: flex;
  gap: 6px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .historia__layout,
  .fundadora__layout,
  .contacto__layout {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .historia__prose {
    columns: 1;
  }

  .historia__metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .historia__metrics li {
    border-right: none;
    border-bottom: 1px solid var(--gray-200);
  }
  .historia__metrics li:nth-child(odd) {
    border-right: 1px solid var(--gray-200);
  }
  .historia__metrics li:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .historia__track-wrap {
    margin: 0 -16px;
    padding: 0 16px;
  }

  .footer__top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1280px) and (max-width: 1499px) {
  .nav__link {
    font-size: 0.76rem;
    padding: 7px 10px;
  }

  .nav__menu {
    gap: 2px;
  }

  .nav__link--cta {
    margin-left: 4px;
  }
}

@media (max-width: 1279px) {
  .nav__toggle {
    display: flex;
    z-index: 1002;
    position: relative;
  }

  .nav__backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  body.nav-open .nav__backdrop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .header.menu-open {
    background: #000 !important;
    box-shadow: none;
  }

  .nav__menu {
    position: fixed;
    top: 0;
    right: 0;
    width: min(340px, 88vw);
    height: 100vh;
    height: 100dvh;
    flex: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 0 24px;
    background: #0a0a0a;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    gap: 0;
    z-index: 1001;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.32s var(--ease-premium), visibility 0.32s;
  }

  .nav__menu.active {
    transform: translateX(0);
    visibility: visible;
  }

  .nav__panel-head {
    display: block;
    padding: calc(var(--header-height) + 16px) 24px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 8px;
  }

  .nav__panel-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255, 255, 255, 0.45);
  }

  .nav__panel-sub {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-top: 4px;
  }

  .nav__group-label {
    display: block;
    padding: 16px 24px 6px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.4);
  }

  .nav__menu-spacer {
    display: block;
    flex: 1;
    min-height: 16px;
  }

  .nav__menu > li {
    width: 100%;
  }

  .nav__menu > li:not(.nav__panel-head):not(.nav__group-label):not(.nav__menu-spacer) {
    padding: 0 12px;
  }

  .nav__menu .nav__link {
    width: 100%;
    padding: 13px 16px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    white-space: normal;
    border-radius: 10px;
    border-left: 3px solid transparent;
  }

  .nav__menu .nav__link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
  }

  .nav__menu .nav__link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
    border-left-color: var(--red);
  }

  .nav__menu-cta {
    padding: 12px 20px 0;
  }

  .nav__link--cta {
    margin-left: 0;
    margin-top: 0;
    padding: 16px;
    text-align: center;
    font-size: 1rem;
    border-radius: 12px;
    border-left: none !important;
  }

  .nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav__toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .contacto__cards {
    grid-template-columns: 1fr;
  }

  .hero__stats { gap: 32px; }

  .hero__logo { width: 120px; height: 120px; }

  .servicos__grid {
    grid-template-columns: 1fr;
  }

  .fundadora__avatar,
  .fundadora__avatar::after {
    width: 200px;
    height: 200px;
  }

  .fundadora__initials { font-size: 3rem; }

  .footer__top {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .footer__legal {
    text-align: center;
  }

  .sobre__quote {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; max-width: 280px; }

  .hero__stats {
    flex-direction: column;
    gap: 20px;
  }

  .servicos__grid {
    grid-template-columns: 1fr;
  }

}
