/* =========================================
   GRUPO NEXTIL — DESIGN SYSTEM
   ========================================= */

:root {
  /* Brand Colors (Remapped for Apolo Atacado) */
  --navy:        #d61143; /* Apolo Red */
  --navy-deep:   #a50d33; /* Apolo Deep Red */
  --blue:        #4d4d4d; /* Apolo Gray */
  --blue-mid:    #333333; /* Apolo Dark Gray */
  --blue-light:  #f24b76; /* Apolo Pink */
  --blue-pale:   #fcdce4; /* Apolo Pale Pink */

  /* Neutrals */
  --white:       #ffffff;
  --gray-50:     #fafafa;
  --gray-100:    #f4f4f5;
  --gray-200:    #e4e4e7;
  --gray-400:    #a1a1aa;
  --gray-500:    #71717a;
  --gray-600:    #52525b;
  --gray-900:    #18181b;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --max-w: 1200px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =========================================
   RESET
   ========================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { text-decoration: none; color: inherit; transition: all 0.3s var(--ease); }
ul  { list-style: none; }

/* =========================================
   LAYOUT UTILITIES
   ========================================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.section {
  padding: clamp(3rem, 5vw, 5rem) 0;
}

.text-white  { color: var(--white) !important; }
.text-accent { color: var(--blue-light); }

/* Section Header Pattern */
.section-header {
  margin-bottom: 4rem;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--blue-light);
  margin-bottom: 0.75rem;
}
.section-tag-light {
  color: var(--blue-pale);
}

.section-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-500);
  max-width: 580px;
}

.title-divider {
  font-weight: 200;
  color: var(--gray-200);
  margin: 0 0.25em;
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9375rem;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.3s var(--ease);
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(8, 8, 70, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--gray-200);
}
.btn-outline:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

.btn-header {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
  padding: 0.6rem 1.5rem;
  font-size: 0.875rem;
}
.btn-header:hover {
  background: var(--blue);
  border-color: var(--blue);
}

/* Card Button Variants */
.btn-card {
  width: 100%;
  margin-top: auto;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border-color: rgba(255,255,255,0.15);
}
.btn-card:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.3);
}

.btn-card-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-card-white:hover {
  background: var(--gray-100);
  border-color: var(--gray-100);
  transform: none;
}

.btn-card-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-card-navy:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
}

.btn-card-accent {
  background: var(--blue-light);
  color: var(--white);
  border-color: var(--blue-light);
}
.btn-card-accent:hover {
  background: var(--blue-mid);
  border-color: var(--blue-mid);
}

/* =========================================
   IMAGE PLACEHOLDERS
   ========================================= */
.image-placeholder {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-weight: 500;
  font-size: 0.9375rem;
  text-align: center;
  padding: 2rem;
}

.hero-placeholder {
  min-height: 500px;
  border-radius: var(--radius-lg);
}

/* =========================================
   HEADER & TOP BAR
   ========================================= */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: all 0.3s var(--ease);
}

.top-bar {
  width: 100%;
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.4rem 0;
  pointer-events: auto;
  transition: all 0.3s var(--ease);
}

.header.scrolled .top-bar {
  transform: translateY(-100%);
  opacity: 0;
  position: absolute;
}

.top-bar-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.top-bar-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.top-bar-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.top-bar-link:hover, .top-bar-link.active {
  color: var(--white);
}

.top-bar-inner > span {
  color: rgba(255, 255, 255, 0.5) !important;
}

.header.scrolled {
  padding-top: 0.6rem;
}

.header-inner {
  pointer-events: auto;
  background: var(--white);
  padding: 0.65rem 0.65rem 0.65rem 1.75rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 2rem;
  width: calc(100% - clamp(2rem, 6vw, 5rem));
  max-width: 1100px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.3s var(--ease);
  margin-top: 0.75rem;
}

.header.scrolled .header-inner {
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  flex-shrink: 0;
}
.logo-grupo {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.logo-nextil {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* Nav */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.nav-link {
  color: var(--gray-600);
  font-weight: 500;
  font-size: 0.875rem;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-light);
  border-radius: 1px;
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--navy); }
.nav-link:hover::after { width: 100%; }

/* Hamburger */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}
.mobile-menu-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Drawer */
.mobile-drawer {
  pointer-events: auto;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  width: calc(100% - 2.5rem);
  max-width: 500px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.12);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 999;
}
.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mobile-link {
  display: block;
  padding: 0.875rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--gray-600);
  border-radius: 10px;
  transition: all 0.2s var(--ease);
}
.mobile-link:hover {
  background: var(--gray-100);
  color: var(--navy);
}
.mobile-cta {
  margin-top: 0.5rem;
  text-align: center;
}

/* =========================================
   HERO (Split Layout)
   ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: var(--gray-50);
  overflow: visible;
  padding-top: 80px; /* Offset for header */
  padding-bottom: 4rem;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 4rem 1.25rem;
  }
}

.hero-content {
  max-width: 600px;
}

@media (max-width: 992px) {
  .hero-content {
    margin: 0 auto;
  }
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  color: var(--navy-deep);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-title .text-accent {
  color: var(--navy); /* The vibrant Apolo Red */
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--gray-600);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .hero-cta {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }
  .btn-hero-primary, .btn-hero-outline {
    width: 100%;
    white-space: normal;
  }
}

.hero-image {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-graphic {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(214, 17, 67, 0.15); /* Apolo red tint shadow */
  object-fit: cover;
}

/* Hero Buttons */
.btn-hero-primary {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
  padding: 1rem 2.25rem;
  border-radius: 8px; /* Sharper corners for e-commerce feel */
}
.btn-hero-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(214, 17, 67, 0.3);
}

.btn-hero-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
  padding: 1rem 2.25rem;
  border-radius: 8px;
}
.btn-hero-outline:hover {
  background: var(--gray-100);
  color: var(--navy-deep);
}

/* =========================================
   ABOUT (QUEM SOMOS) — Curved Cutout Tab
   ========================================= */
.about {
  background: var(--gray-50); /* Gray background to make the white card pop */
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

/* Curved Cutout Implementation */
.curved-wrapper {
  position: relative;
  margin-top: 48px; /* Space for the tab */
  filter: drop-shadow(0 12px 40px rgba(0,0,0,0.06)); /* Drop shadow applies to the entire composite shape */
}

.curved-tab {
  position: absolute;
  top: -48px;
  left: 0;
  height: 48px;
  background: var(--white);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  z-index: 2;
}

.curved-tab .mb-0 {
  margin-bottom: 0;
}

/* The inverted curve connecting the right side of the tab to the main body */
.curved-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -24px;
  width: 24px;
  height: 24px;
  /* Perfect inverted corner using radial-gradient */
  background: radial-gradient(circle at 100% 0, transparent 24px, var(--white) 24px);
  z-index: 1;
}

.curved-body {
  background: var(--white);
  /* Top-left is 0 because the tab is there */
  border-radius: 0 24px 24px 24px;
  padding: clamp(2rem, 4vw, 3.5rem);
}

.about-text .section-title {
  margin-top: 0;
}

.about-text .text-body p {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

/* =========================================
   FEATURES (DIFERENCIAIS) — Clean Grid
   ========================================= */
.features {
  background: var(--white);
  padding: 6rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 4rem;
}

.feature-card {
  background: var(--white);
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  padding: 2.5rem 2rem;
  transition: all 0.3s var(--ease);
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-color: var(--navy);
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: rgba(214, 17, 67, 0.1); /* Light Apolo red */
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Feature Row for CTA / Wider Card */
.feature-card-wide {
  grid-column: 1 / -1;
  background: var(--navy);
  color: var(--white);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.feature-card-wide .feature-title {
  color: var(--white);
}

.feature-card-wide .feature-desc {
  color: rgba(255, 255, 255, 0.85);
}

.feature-card-wide .feature-icon-wrapper {
  background: rgba(255, 255, 255, 0.15);
  color: var(--white);
}

@media (max-width: 768px) {
  .feature-card-wide {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}

.btn-card-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  color: var(--navy);
  padding: 1rem 2rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: all 0.3s var(--ease);
  text-decoration: none;
  white-space: nowrap;
}
.btn-card-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* =========================================
   HOW TO BUY (COMO COMPRAR) — Vertical Timeline
   ========================================= */
.ecosystem {
  background: var(--gray-50);
  padding: 6rem 0;
  position: relative;
}

.ecosystem .section-title {
  color: var(--navy-deep);
}

.ecosystem .section-tag {
  color: var(--navy);
}

.ecosystem .section-subtitle {
  color: var(--gray-600);
}

.timeline {
  max-width: 800px;
  margin: 4rem auto 0;
  position: relative;
}

/* Timeline central line */
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 28px; /* Center of the 56px icon */
  width: 2px;
  background: var(--gray-200);
  z-index: 1;
}

.timeline-item {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  margin-bottom: 3rem;
  transition: transform 0.3s var(--ease);
  text-decoration: none;
  color: inherit;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:hover {
  transform: translateX(10px);
}

.timeline-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  background: var(--white);
  border: 2px solid var(--navy);
  color: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}

.timeline-item:hover .timeline-icon {
  background: var(--navy);
  color: var(--white);
}

.timeline-content {
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  flex: 1;
  position: relative;
}

/* Little triangle pointing left */
.timeline-content::before {
  content: '';
  position: absolute;
  top: 18px;
  left: -8px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-left: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  transform: rotate(45deg);
}

.timeline-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 0.5rem;
}

.timeline-content p {
  color: var(--gray-600);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .timeline::before {
    left: 20px;
  }
  .timeline-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1rem;
  }
  .timeline-content::before {
    top: 10px;
  }
}
.eco-row-3::after { background: var(--blue-light); }
.eco-row-4::after { background: var(--blue-pale); }
.eco-row-5::after { background: var(--white); }

.eco-row:hover::after {
  width: 100%;
}

/* Number */
.eco-num {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  letter-spacing: -0.03em;
  line-height: 1;
  flex-shrink: 0;
  min-width: 70px;
  transition: color 0.4s var(--ease);
}

.eco-row:hover .eco-num {
  color: rgba(255, 255, 255, 0.5);
}

/* Content */
.eco-info {
  flex: 1;
}

.eco-info h3 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.375rem;
  transition: color 0.3s var(--ease);
}

.eco-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9375rem;
  line-height: 1.6;
  max-width: 600px;
}

.eco-row:hover .eco-info p {
  color: rgba(255, 255, 255, 0.7);
}

/* Arrow */
.eco-arrow {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: all 0.3s var(--ease);
  opacity: 0;
  transform: translateX(-8px);
}

.eco-row:hover .eco-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--white);
}

/* Stagger reveals */
.eco-stack .eco-row:nth-child(1) { transition-delay: 0s; }
.eco-stack .eco-row:nth-child(2) { transition-delay: 0.06s; }
.eco-stack .eco-row:nth-child(3) { transition-delay: 0.12s; }
.eco-stack .eco-row:nth-child(4) { transition-delay: 0.18s; }
.eco-stack .eco-row:nth-child(5) { transition-delay: 0.24s; }

/* =========================================
   AUDIENCE (PÚBLICO)
   ========================================= */
.audience {
  background: var(--gray-50);
}

.audience-grid {
  display: flex;
  gap: 1.5rem;
  align-items: stretch;
}

.audience-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  padding: 3rem 2.5rem;
  transition: transform 0.4s var(--ease);
}
.audience-card:hover {
  transform: translateY(-6px);
}

.audience-card-content { flex: 1; }

.audience-card-dark   { background: var(--navy-deep); color: var(--white); }
.audience-card-primary { background: var(--blue); color: var(--white); }
.audience-card-accent  { background: var(--blue-light); color: var(--white); }

.audience-card h3 {
  font-size: 1.625rem;
  font-weight: 700;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.audience-list { margin-bottom: 2.5rem; }

.audience-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.875rem;
  font-size: 1rem;
  opacity: 0.92;
  line-height: 1.5;
}

.audience-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.5);
}

/* =========================================
   PURPOSE (PROPÓSITO)
   ========================================= */
.purpose {
  background: var(--white);
}

.purpose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.purpose-title {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.purpose-text {
  font-size: 1.0625rem;
  color: var(--gray-600);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.purpose-statement {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  line-height: 1.4;
  padding-left: 1.25rem;
  border-left: 3px solid var(--blue-light);
}

/* =========================================
   CAROUSEL (ONDE COMPRAR)
   ========================================= */
.carousel-section {
  background: var(--white);
}

.carousel-wrapper {
  position: relative;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.carousel-track {
  display: flex;
  transition: transform 0.5s var(--ease);
}

.carousel-slide {
  min-width: 100%;
  width: 100%;
  max-width: 100%;
  flex-shrink: 0;
}

.carousel-card {
  display: flex;
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
}

.card-dark    { background: var(--navy-deep); color: var(--white); }
.card-primary { background: var(--blue); color: var(--white); }
.card-accent  { background: var(--blue-light); color: var(--white); }
.card-whatsapp { background: #25D366; color: var(--white); }

.carousel-card .card-text {
  flex: 1;
  padding: clamp(2rem, 4vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.carousel-card h3 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.carousel-card p {
  font-size: 1rem;
  opacity: 0.85;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  max-width: 380px;
}

.carousel-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.carousel-card .card-image {
  flex: 1.1;
  position: relative;
}

.carousel-img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.35);
  font-weight: 500;
  font-size: 0.9375rem;
}

/* Carousel Controls */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 0 0.25rem;
}

.carousel-dots {
  display: flex;
  gap: 0.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  padding: 0;
}
.carousel-dot.active {
  background: var(--navy);
  width: 28px;
  border-radius: 5px;
}

.carousel-arrows {
  display: flex;
  gap: 0.75rem;
}

.carousel-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: all 0.3s var(--ease);
}
.carousel-btn:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* =========================================
   FINAL CTA
   ========================================= */
.final-cta {
  position: relative;
  background: linear-gradient(90deg, var(--navy-deep) 0%, var(--navy) 100%);
  padding: clamp(6rem, 12vw, 8rem) 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.cta-overlay {
  display: none;
}

.cta-container {
  position: relative;
  z-index: 2;
}

.cta-content {
  max-width: 650px;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--white);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.cta-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 2.5rem;
}

.cta-subtitle strong {
  font-weight: 800;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--navy-deep);
  color: var(--white);
  padding: clamp(4rem, 8vw, 6rem) 0 2.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-top: 1.25rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.4);
}

.footer-links li { margin-bottom: 0.75rem; }

.footer-links a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9375rem;
  transition: all 0.2s var(--ease);
}
.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 2rem;
  text-align: center;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  transition: all 0.3s var(--ease);
}

.footer-social a:hover {
  background: var(--blue-mid);
  transform: translateY(-3px);
}

.footer-bottom p {
  color: rgba(255,255,255,0.3);
  font-size: 0.8125rem;
}

/* =========================================
   SCROLL REVEAL ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for bento grid children */
.features-bento .bento-1 { transition-delay: 0s; }
.features-bento .bento-2 { transition-delay: 0.1s; }
.features-bento .bento-3 { transition-delay: 0.2s; }
.features-bento .bento-4 { transition-delay: 0.3s; }
.features-bento .bento-5 { transition-delay: 0.4s; }



.audience-grid .audience-card:nth-child(1) { transition-delay: 0s; }
.audience-grid .audience-card:nth-child(2) { transition-delay: 0.1s; }
.audience-grid .audience-card:nth-child(3) { transition-delay: 0.2s; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .about-grid,
  .purpose-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .image-placeholder { min-height: 350px; }

  .features-bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 {
    grid-column: span 2;
  }
  .bento-1 { grid-row: span 1; }

  .eco-num {
    min-width: 50px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-links,
  .btn-header {
    display: none;
  }

  .top-bar-inner {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 1rem;
    gap: 1.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .top-bar-inner::-webkit-scrollbar {
    display: none;
  }
  .top-bar-links {
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .top-bar-inner > span {
    display: none; /* Hide 'Ecossistema:' text on mobile to save space */
  }

  .mobile-menu-btn {
    display: flex;
  }

  .header-inner {
    padding: 0.65rem 1.25rem;
    margin-top: 1.25rem;
  }

  .top-bar {
    position: relative;
    padding-right: 2.5rem;
  }
  
  .top-bar-scroll-arrow {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 2.5rem;
    background: linear-gradient(to right, transparent, var(--navy-deep) 30%);
    border: none;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: opacity 0.3s;
    font-size: 1rem;
  }

  .audience-grid {
    flex-direction: column;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .features-bento {
    grid-template-columns: 1fr;
  }
  .bento-1, .bento-2, .bento-3, .bento-4, .bento-5 {
    grid-column: span 1;
  }
  
  .bento-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .bento-bg-num {
    font-size: 8rem;
    bottom: -1rem;
    right: -0.5rem;
  }

  .eco-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
  }
  .eco-arrow {
    display: none;
  }

  .carousel-card {
    flex-direction: column;
    min-height: auto;
  }

  .carousel-card .card-text {
    padding: 2.5rem 1.5rem;
  }

  .carousel-card h3 {
    font-size: 2rem;
  }

  .carousel-card p {
    margin-bottom: 2rem;
  }

  .carousel-card .btn {
    width: 100%;
    text-align: center;
    padding: 1rem;
    white-space: normal;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .carousel-card .card-image {
    height: 250px;
    flex: none;
    display: block;
  }

  .carousel-card .card-image img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }

  .carousel-img-placeholder {
    flex: 1;
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .footer-brand {
    grid-column: span 2;
  }

  .carousel-controls {
    flex-direction: column;
    align-items: center;
    margin-top: 1.5rem;
  }

  .carousel-arrows {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    left: 0;
    width: 100%;
    justify-content: space-between;
    padding: 0 10px;
    pointer-events: none;
    z-index: 10;
  }

  .carousel-btn {
    pointer-events: auto;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .carousel-btn svg {
    width: 20px;
    height: 20px;
  }

  .final-cta {
    background-position: 70% center;
    text-align: center;
  }

  .cta-overlay {
    background: linear-gradient(180deg, rgba(5,5,48,0.95) 0%, rgba(45,75,181,0.85) 100%);
  }

  .cta-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
  }
}

/* =========================================
   FLOATING WHATSAPP BUTTON
   ========================================= */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25D366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 35px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  z-index: 1000;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
  color: white;
}

@media (max-width: 768px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 28px;
  }
}
