/* ==========================================================================
   CADeveloper.com - Corporate Design System
   Theme: Trust & Authority (Light) | Mobile-First | Responsive Grid
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Color Palette — extraída de Stripe: blanco azulado frío + navy tinta */
  --bg-page: #f6f9fc;
  --bg-card: #ffffff;
  --bg-subtle: #eaf1f8;
  --border: #e6ebf1;
  --border-strong: #d5dee9;

  /* Brand — navy Stripe #0A2540 + blurple #635BFF */
  --navy: #0a2540;
  --navy-soft: #425466;
  --accent: #635bff;
  --accent-hover: #4a42d4;
  --accent-tint: rgba(99, 91, 255, 0.08);
  --accent-border: rgba(99, 91, 255, 0.3);
  --whatsapp: #25d366;
  --whatsapp-hover: #20ba5a;

  /* Lavados de gradiente cálido (firma Stripe, usar con sutileza) */
  --wash-orange: rgba(255, 178, 125, 0.18);
  --wash-pink: rgba(255, 123, 172, 0.1);
  --wash-purple: rgba(153, 102, 255, 0.14);
  --grad-signature: linear-gradient(90deg, #ffb27d 0%, #ff7bac 35%, #9966ff 70%, #635bff 100%);

  /* Typography */
  --font-heading: 'Lexend', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Text Colors */
  --text-main: #0a2540;
  --text-muted: #425466;
  --text-dim: #6b7c93;

  /* Shadows — azuladas en capas, estilo Stripe */
  --shadow-sm: 0 1px 3px rgba(50, 50, 93, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(50, 50, 93, 0.09), 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 13px 27px -5px rgba(50, 50, 93, 0.18), 0 8px 16px -8px rgba(0, 0, 0, 0.1);

  /* Spacing & Borders */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. Global Resets & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hairline de gradiente en el borde superior (guiño a Stripe) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-signature);
  z-index: 1002;
  pointer-events: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

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

ul {
  list-style: none;
}

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

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   3. Typography & Utility Classes
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Énfasis de marca (nombre histórico: antes era un gradiente) */
.gradient-text,
.gradient-text-alt {
  color: var(--accent);
}

/* Eyebrow label sobre cada titular de sección */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.section-tag::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  color: var(--navy);
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

.text-center {
  text-align: center;
}

/* Card Utility (nombre histórico: .glass-card, hoy tarjeta sólida) */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Elements
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition-fast);
  border: none;
  text-align: center;
  white-space: nowrap;
}

.btn svg {
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--navy);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--navy-soft);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
  min-height: 44px;
}

/* --------------------------------------------------------------------------
   5. Header & Navigation (Mobile-First)
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: var(--transition-normal);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.logo-badge {
  background: var(--navy);
  color: #ffffff;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 800;
}

.nav-menu {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition-fast);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Navigation Drawer */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 37, 64, 0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease-in-out;
}

.drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 999;
  padding: 6rem 2rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: right 0.35s ease-in-out;
  border-left: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  right: 0;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition-fast);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--accent);
  padding-left: 0.5rem;
}

/* Desktop Navigation Media Query */
@media (min-width: 992px) {
  .hamburger { display: none; }
  .mobile-drawer { display: none; }
  .drawer-overlay { display: none; }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .nav-link {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
    position: relative;
  }

  .nav-link:hover, .nav-link.active {
    color: var(--navy);
  }

  .nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: var(--transition-fast);
    border-radius: 2px;
  }

  .nav-link:hover::after, .nav-link.active::after {
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero {
  padding: 8rem 0 0 0;
  position: relative;
}

/* Lavado de gradiente cálido muy sutil, estilo Stripe */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(640px 320px at 10% 6%, var(--wash-orange), transparent 65%),
    radial-gradient(720px 360px at 90% 10%, var(--wash-purple), transparent 65%),
    radial-gradient(560px 320px at 65% 85%, var(--wash-pink), transparent 70%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

@media (min-width: 992px) {
  .hero { padding: 11rem 0 0 0; }
}

.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.5rem;
  letter-spacing: -0.035em;
  color: var(--navy);
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--text-muted);
  margin: 0 auto 2rem auto;
  max-width: 620px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 620px;
  margin: 0 auto;
}

.stat-item + .stat-item {
  border-left: 1px solid var(--border);
}

.stat-item h4 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--navy);
}

.stat-item p {
  font-size: 0.82rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Clients Strip — marquee de clientes en un marco con hairline de gradiente */
.clients-strip {
  margin-top: 5rem;
  padding-bottom: 1rem;
}

.clients-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 0 2rem 0;
  overflow: hidden;
}

.clients-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--grad-signature);
}

.clients-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 1.5rem;
}

.clients-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.clients-track {
  display: flex;
  width: max-content;
  animation: clients-scroll 36s linear infinite;
}

.clients-marquee:hover .clients-track {
  animation-play-state: paused;
}

.clients-list {
  display: flex;
  align-items: center;
}

/* Nombres como wordmarks tipográficos, con punto separador */
.clients-list li {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy-soft);
  white-space: nowrap;
}

.clients-list li::after {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-border);
  margin: 0 1.75rem;
  flex-shrink: 0;
}

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

/* Sin animación: una sola lista, envuelta y centrada */
@media (prefers-reduced-motion: reduce) {
  .clients-track {
    animation: none;
    width: auto;
    justify-content: center;
  }
  .clients-list {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 0.75rem;
    padding: 0 1.5rem;
  }
  .clients-list[aria-hidden="true"] {
    display: none;
  }
  .clients-marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* --------------------------------------------------------------------------
   7. Portfolio / Products Section (With Interactive Filter)
   -------------------------------------------------------------------------- */
.products-section {
  padding: 6rem 0;
  position: relative;
}

@media (min-width: 992px) {
  .products-section, .services-section, .why-us-section,
  .faq-section, .contact-section {
    padding: 7.5rem 0;
  }
}

/* Scroll reveal (la clase .reveal la agrega JS; sin JS todo queda visible) */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  min-height: 44px;
  font-weight: 600;
  font-family: var(--font-heading);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  cursor: pointer;
  transition: var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  background: var(--accent);
  color: #ffffff;
  border-color: var(--accent);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: 100%;
  overflow: hidden;
}

.product-card > div:first-of-type {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 1.5rem 1.5rem 0 1.5rem;
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.product-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.category-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--bg-subtle);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.product-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

/* Imagen full-bleed en la parte superior de la tarjeta */
.product-preview-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-preview-img {
  transform: scale(1.04);
}

.product-description {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.product-features {
  margin-bottom: 1.5rem;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.product-features li svg {
  color: var(--accent);
  flex-shrink: 0;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   8. Custom Development Services Section
   -------------------------------------------------------------------------- */
.services-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  padding: 2rem 1.5rem;
  text-align: left;
}

.service-icon-box {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  background: var(--accent-tint);
  border: 1px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.service-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--navy);
}

.service-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Why CADeveloper / Value Proposition
   -------------------------------------------------------------------------- */
.why-us-section {
  padding: 6rem 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

/* Numeración editorial (01, 02, 03) */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent-tint);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.feature-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--navy);
}

.feature-content p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   10. Contact & WhatsApp Form Section
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 0;
  position: relative;
}

.contact-card {
  padding: 2.5rem 1.5rem;
  max-width: 850px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-card {
    padding: 3.5rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1.2fr;
  }
}

.contact-info h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--navy);
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(37, 211, 102, 0.12);
  color: #128c7e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* Form Controls */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: inherit;
  /* Mínimo 16px: iOS Safari hace zoom automático en inputs con fuente menor */
  font-size: 1rem;
  transition: var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

.form-textarea {
  resize: vertical;
  min-height: 110px;
}

/* --------------------------------------------------------------------------
   11. FAQ Section
   -------------------------------------------------------------------------- */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.faq-question:hover {
  background: var(--bg-subtle);
}

.faq-icon {
  font-size: 1.2rem;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0, 1, 0, 1);
  background: var(--bg-card);
  padding: 0 1.5rem;
  border: 1px solid var(--border);
  border-top: none;
}

.faq-item.active .faq-answer {
  max-height: 800px;
  transition: max-height 0.35s ease-in-out;
  padding: 1.25rem 1.5rem;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   12. Floating WhatsApp Action Button
   -------------------------------------------------------------------------- */
.whatsapp-float {
  position: fixed;
  bottom: calc(1.75rem + env(safe-area-inset-bottom, 0px));
  right: 1.75rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 8px 20px rgba(50, 50, 93, 0.3);
  z-index: 9999;
  transition: var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  background: var(--whatsapp-hover);
}

/* --------------------------------------------------------------------------
   13. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--navy);
  padding: 4rem 0 2rem 0;
  color: #adbccd;
}

.footer .logo {
  color: #ffffff;
}

.footer .logo-badge {
  background: var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.2rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links a {
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
  color: #8898aa;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}
