/* ============================================================
   CONDUCCION SEGURA - MAIN STYLESHEET
   Google Ads Optimized | Professional Spanish Driving Service
   ============================================================ */

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand Colors */
  --color-primary:       #C8102E;   /* Spanish Red */
  --color-primary-dark:  #A00D25;
  --color-primary-light: #E8192E;
  --color-secondary:     #F4A820;   /* Gold/Amber */
  --color-accent:        #25D366;   /* WhatsApp Green */
  --color-accent-dark:   #128C7E;

  /* Neutrals */
  --color-dark:          #0D0D0D;
  --color-dark-2:        #1A1A1A;
  --color-dark-3:        #2D2D2D;
  --color-gray-800:      #3D3D3D;
  --color-gray-600:      #6B6B6B;
  --color-gray-400:      #9E9E9E;
  --color-gray-200:      #E8E8E8;
  --color-gray-100:      #F5F5F5;
  --color-white:         #FFFFFF;

  /* Typography */
  --font-primary:   'Inter', sans-serif;
  --font-secondary: 'Poppins', sans-serif;

  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  --weight-light:    300;
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;
  --weight-extrabold:800;
  --weight-black:    900;

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Layout */
  --container-max: 1200px;
  --container-pad: 1.5rem;

  /* Borders */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.15);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.20);
  --shadow-red: 0 8px 30px rgba(200,16,46,0.35);

  /* Transitions */
  --transition-fast:   150ms ease;
  --transition-base:   300ms ease;
  --transition-slow:   500ms ease;
  --transition-slower: 800ms ease;

  /* Header height */
  --header-height: 80px;
  --topbar-height: 40px;
  --total-header:  120px;
}

/* ============================================================
   2. RESET & BASE STYLES
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  color: var(--color-dark);
  background-color: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-secondary);
  font-weight: var(--weight-bold);
  line-height: 1.2;
  color: var(--color-dark);
}

/* ============================================================
   3. UTILITY CLASSES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.container--narrow {
  max-width: 800px;
}

.section-padding {
  padding: var(--space-24) 0;
}

.section-padding--lg {
  padding: var(--space-32) 0;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Section Headers */
.section-label {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(200,16,46,0.08);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

.section-title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.section-title span {
  color: var(--color-primary);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-16);
}

/* ============================================================
   4. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-secondary);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 2px solid transparent;
}

/* Primary Red Button */
.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-red);
}

.btn--primary:hover,
.btn--primary:focus {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 12px 40px rgba(200,16,46,0.45);
  transform: translateY(-2px);
  color: var(--color-white);
}

/* WhatsApp Green Button */
.btn--whatsapp {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
  box-shadow: 0 8px 30px rgba(37,211,102,0.35);
}

.btn--whatsapp:hover,
.btn--whatsapp:focus {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  box-shadow: 0 12px 40px rgba(37,211,102,0.45);
  transform: translateY(-2px);
  color: var(--color-white);
}

/* Outline Button */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.6);
}

.btn--outline:hover,
.btn--outline:focus {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  transform: translateY(-2px);
}

.btn--outline-dark {
  background: transparent;
  color: var(--color-dark);
  border-color: var(--color-dark);
}

.btn--outline-dark:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Large Button */
.btn--lg {
  padding: 1.1rem 2.5rem;
  font-size: var(--text-lg);
}

/* Small Button */
.btn--sm {
  padding: 0.6rem 1.25rem;
  font-size: var(--text-sm);
}

/* Pulse animation for CTA buttons */
.btn--pulse {
  animation: pulse-btn 2.5s ease infinite;
}

@keyframes pulse-btn {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   5. TOP BAR
   ============================================================ */
.top-bar {
  background: var(--color-dark);
  height: var(--topbar-height);
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1000;
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.top-bar__link {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.75);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
}

.top-bar__link:hover {
  color: var(--color-white);
}

.top-bar__right {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.top-bar__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  color: rgba(255,255,255,0.65);
  transition: all var(--transition-fast);
}

.top-bar__social:hover {
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
}

/* ============================================================
   6. LANGUAGE TOGGLE
   ============================================================ */
.language-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,0.12);
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: rgba(255,255,255,0.55);
  padding: 4px 8px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
  letter-spacing: 0.05em;
  border: none;
  background: none;
}

.lang-btn:hover {
  color: var(--color-white);
}

.lang-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.lang-divider {
  color: rgba(255,255,255,0.25);
  font-size: var(--text-xs);
}

.flag-icon {
  font-size: 0.8rem;
}

/* ============================================================
   7. NAVIGATION / HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: var(--color-white);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  transition: box-shadow var(--transition-base);
}

.site-header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.navbar {
  height: var(--header-height);
  position: relative;
}

.navbar .container {
  height: 100%;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-8);
}

/* Logo */
.navbar__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.navbar__logo img {
  height: 46px;
  width: auto;
  object-fit: contain;
}

/* Desktop Menu */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex: 1;
  justify-content: center;
}

.navbar__item {
  position: relative;
}

.navbar__link {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-800);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  letter-spacing: 0.02em;
  position: relative;
}

.navbar__link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--color-primary);
  border-radius: var(--radius-full);
  transition: width var(--transition-base);
}

.navbar__link:hover,
.navbar__link.active {
  color: var(--color-primary);
}

.navbar__link:hover::after,
.navbar__link.active::after {
  width: 80%;
}

/* Navbar CTA */
.navbar__cta {
  flex-shrink: 0;
}

.navbar__cta .btn {
  padding: 0.65rem 1.4rem;
  font-size: var(--text-sm);
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  padding: 8px;
  transition: background var(--transition-fast);
  cursor: pointer;
}

.navbar__hamburger:hover {
  background: var(--color-gray-100);
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  transform-origin: center;
}

/* Hamburger animation to X */
.navbar__hamburger.open .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__hamburger.open .hamburger__line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__hamburger.open .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   8. MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--transition-slow);
}

.mobile-menu.is-open .mobile-menu__overlay {
  opacity: 1;
}

.mobile-menu__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 320px;
  max-width: 85vw;
  background: var(--color-white);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0,0,0,0.2);
}

.mobile-menu.is-open .mobile-menu__panel {
  transform: translateX(0);
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-gray-200);
}

.mobile-menu__header img {
  height: 38px;
  width: auto;
}

.mobile-menu__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  color: var(--color-gray-600);
  transition: all var(--transition-fast);
}

.mobile-menu__close:hover {
  background: var(--color-gray-100);
  color: var(--color-dark);
}

.mobile-menu__list {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mobile-menu__link {
  display: block;
  padding: var(--space-4) var(--space-2);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  border-bottom: 1px solid var(--color-gray-100);
  transition: all var(--transition-fast);
}

.mobile-menu__link:hover {
  color: var(--color-primary);
  padding-left: var(--space-4);
}

.mobile-menu__lang {
  display: flex;
  gap: var(--space-3);
}

.mobile-menu__lang .lang-btn {
  flex: 1;
  justify-content: center;
  background: var(--color-gray-100);
  color: var(--color-gray-600);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  font-size: var(--text-sm);
}

.mobile-menu__lang .lang-btn.active {
  background: var(--color-primary);
  color: var(--color-white);
}

.mobile-menu__whatsapp {
  width: 100%;
}

/* ============================================================
   9. HERO SECTION (Sliding Background)
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 650px;
  max-height: 950px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Background Slides */
.hero__slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  transform: scale(1.05);
  transition: opacity 1.2s ease-in-out, transform 8s ease;
}

.hero__slide.active {
  opacity: 1;
  transform: scale(1);
}

/* Dark overlay gradient */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(0,0,0,0.72) 0%,
    rgba(0,0,0,0.45) 50%,
    rgba(0,0,0,0.30) 100%
  );
  z-index: 1;
}

/* Red accent bar at bottom */
.hero__overlay::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero .container {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: center;
}

/* Badge */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
  animation: fadeSlideDown 0.8s ease forwards;
}

.hero__badge-star {
  color: var(--color-secondary);
  font-size: 1.1rem;
}

/* Hero Title */
.hero__title {
  font-size: var(--text-7xl);
  font-weight: var(--weight-black);
  color: var(--color-white);
  line-height: 1.05;
  margin-bottom: var(--space-6);
  animation: fadeSlideUp 0.9s ease 0.2s both;
}

.hero__title-line {
  display: block;
}

.hero__title-accent {
  color: var(--color-secondary);
  position: relative;
}

/* Hero Subtitle */
.hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
  margin-bottom: var(--space-10);
  max-width: 580px;
  font-weight: var(--weight-regular);
  animation: fadeSlideUp 0.9s ease 0.4s both;
}

/* Hero Buttons */
.hero__buttons {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: fadeSlideUp 0.9s ease 0.6s both;
}

/* Hero Slide Indicators */
.hero__indicators {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: var(--space-2);
}

.hero__indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.hero__indicator.active {
  background: var(--color-white);
  width: 28px;
}

/* Scroll down arrow */
.hero__scroll {
  position: absolute;
  bottom: var(--space-10);
  right: var(--space-12);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: rgba(255,255,255,0.6);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s ease 1s both;
}

.hero__scroll-arrow {
  width: 36px;
  height: 36px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-arrow 2s ease infinite;
}

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

/* ============================================================
   10. STATS SECTION
   ============================================================ */
.stats {
  background: var(--color-dark);
  padding: var(--space-12) 0;
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

.stats__item {
  text-align: center;
  padding: var(--space-6) var(--space-4);
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(255,255,255,0.1);
}

.stats__number {
  font-family: var(--font-secondary);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: var(--color-white);
  line-height: 1;
  margin-bottom: var(--space-2);
  display: block;
}

.stats__number-accent {
  color: var(--color-secondary);
}

.stats__label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  font-weight: var(--weight-medium);
  letter-spacing: 0.03em;
}

/* ============================================================
   11. SERVICES SECTION
   ============================================================ */
.services {
  background: var(--color-white);
  padding: var(--space-24) 0;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-16);
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-slow);
  transform-origin: left;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, rgba(200,16,46,0.1), rgba(244,168,32,0.1));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-6);
  color: var(--color-primary);
  transition: all var(--transition-base);
}

.service-card:hover .service-card__icon {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  transform: scale(1.1) rotate(5deg);
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.service-card__description {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ============================================================
   12. HOW IT WORKS SECTION
   ============================================================ */
.how-it-works {
  background: var(--color-gray-100);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(200,16,46,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.how-it-works__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

/* Connector line between steps */
.how-it-works__grid::before {
  content: '';
  position: absolute;
  top: 48px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  z-index: 0;
}

.step-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}

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

.step-card__number {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-white);
  font-family: var(--font-secondary);
  font-size: var(--text-2xl);
  font-weight: var(--weight-black);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-red);
  transition: all var(--transition-base);
}

.step-card:hover .step-card__number {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(200,16,46,0.45);
}

.step-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
  color: var(--color-dark);
}

.step-card__description {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ============================================================
   13. CATEGORIES PREVIEW SECTION (Home Page)
   ============================================================ */
.categories-preview {
  background: var(--color-white);
  padding: var(--space-24) 0;
}

.categories-preview__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}

.category-preview-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border: 2px solid var(--color-gray-200);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.category-preview-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.category-preview-card:hover {
  border-color: var(--color-primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.category-preview-card:hover::before {
  opacity: 0.04;
}

.category-preview-card__svg {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-5);
  transition: transform var(--transition-base);
  position: relative;
  z-index: 1;
}

.category-preview-card:hover .category-preview-card__svg {
  transform: scale(1.12) translateY(-4px);
}

.category-preview-card__name {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
}

.category-preview-card__sub {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  position: relative;
  z-index: 1;
}

.category-preview-card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-primary);
  position: relative;
  z-index: 1;
  transition: gap var(--transition-fast);
}

.category-preview-card:hover .category-preview-card__link {
  gap: var(--space-2);
}

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

/* ============================================================
   14. REVIEWS SECTION
   ============================================================ */
.reviews {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.reviews::before {
  content: '';
  position: absolute;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(200,16,46,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.reviews .section-label {
  background: rgba(244,168,32,0.15);
  color: var(--color-secondary);
}

.reviews .section-title {
  color: var(--color-white);
}

.reviews .section-subtitle {
  color: rgba(255,255,255,0.65);
}

.reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.review-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: all var(--transition-base);
}

.review-card:hover {
  background: rgba(255,255,255,0.1);
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.2);
}

.review-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
}

.review-card__star {
  color: var(--color-secondary);
  font-size: 1rem;
}

.review-card__text {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: var(--space-6);
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.review-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  flex-shrink: 0;
}

.review-card__name {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-white);
  line-height: 1.2;
}

.review-card__location {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   15. CONTACT SECTION / FORM
   ============================================================ */
.contact-section {
  background: var(--color-gray-100);
  padding: var(--space-24) 0;
}

.contact-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--space-16);
  align-items: start;
}

.contact-info__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-3);
}

.contact-info__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.contact-info__subtitle {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: 1.7;
  margin-bottom: var(--space-8);
}

.contact-info__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-info__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-fast);
}

.contact-info__item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.contact-info__item-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(200,16,46,0.1), rgba(244,168,32,0.1));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-info__item-label {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  font-weight: var(--weight-medium);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 2px;
}

.contact-info__item-value {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
}

.contact-info__item-value a {
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

.contact-info__item-value a:hover {
  color: var(--color-primary);
}

.contact-info__response {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  font-weight: var(--weight-medium);
}

.contact-info__response-dot {
  width: 8px;
  height: 8px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  animation: pulse-dot 2s ease infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50%       { box-shadow: 0 0 0 6px rgba(37,211,102,0); }
}

/* Contact Form */
.contact-form-wrapper {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-gray-200);
}

.contact-form__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-gray-100);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.form-label__required {
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1;
}

.form-label__optional {
  color: var(--color-gray-400);
  font-size: var(--text-xs);
  font-weight: var(--weight-regular);
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1.1rem;
  border: 2px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  color: var(--color-dark);
  background: var(--color-white);
  transition: all var(--transition-fast);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-gray-400);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(200,16,46,0.08);
}

.form-input.error,
.form-textarea.error {
  border-color: var(--color-primary);
  background: rgba(200,16,46,0.03);
}

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

.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%236B6B6B'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-char-count {
  display: flex;
  justify-content: flex-end;
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  margin-top: var(--space-1);
}

.form-privacy {
  font-size: var(--text-xs);
  color: var(--color-gray-400);
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.form-privacy svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--color-gray-400);
}

.form-submit-area {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: var(--text-lg);
}

.form-or-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--color-gray-400);
  font-size: var(--text-sm);
}

.form-or-divider::before,
.form-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-gray-200);
}

.form-whatsapp-alt {
  width: 100%;
}

/* Form Success/Error Messages */
.form-message {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: var(--weight-medium);
  display: none;
}

.form-message.success {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.3);
  color: #166534;
  display: block;
}

.form-message.error {
  background: rgba(200,16,46,0.08);
  border: 1px solid rgba(200,16,46,0.2);
  color: var(--color-primary-dark);
  display: block;
}

/* ============================================================
   16. FINAL CTA SECTION
   ============================================================ */
.final-cta {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-24) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.final-cta::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0,0,0,0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.final-cta__content {
  position: relative;
  z-index: 1;
}

.final-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
}

.final-cta__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.1;
}

.final-cta__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin: 0 auto var(--space-10);
  line-height: 1.65;
}

.final-cta .btn--whatsapp {
  background: var(--color-white);
  color: var(--color-accent-dark);
  border-color: var(--color-white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  font-size: var(--text-lg);
  padding: 1.1rem 2.5rem;
}

.final-cta .btn--whatsapp:hover {
  background: rgba(255,255,255,0.92);
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.3);
}

/* ============================================================
   17. FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark-2);
}

.footer__top {
  padding: var(--space-20) 0 var(--space-12);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr 1.4fr;
  gap: var(--space-12);
}

.footer__logo-link {
  display: block;
  margin-bottom: var(--space-5);
}

.footer__logo-link img {
  height: 42px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__description {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social-link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  transition: all var(--transition-base);
}

.footer__social-link:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

.footer__heading {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.footer__link:hover {
  color: var(--color-white);
  padding-left: var(--space-2);
}

.footer__contact-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: rgba(255,255,255,0.55);
}

.footer__contact-item svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
}

.footer__badge {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: var(--weight-medium);
}

/* Footer Bottom */
.footer__bottom {
  padding: var(--space-6) 0;
}

.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer__copyright {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
}

.footer__founded {
  margin-left: var(--space-2);
  color: var(--color-secondary);
}

.footer__legal-links {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer__legal-link {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.4);
  transition: color var(--transition-fast);
}

.footer__legal-link:hover {
  color: var(--color-white);
}

/* ============================================================
   18. FLOATING WHATSAPP BUTTON
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9998;
  width: 60px;
  height: 60px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  box-shadow: 0 6px 25px rgba(37,211,102,0.5);
  transition: all var(--transition-base);
  animation: float-wa 3s ease-in-out infinite;
}

.floating-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 35px rgba(37,211,102,0.65);
  color: var(--color-white);
}

.floating-whatsapp__tooltip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-dark);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.floating-whatsapp__tooltip::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-left-color: var(--color-dark);
}

.floating-whatsapp:hover .floating-whatsapp__tooltip {
  opacity: 1;
}

@keyframes float-wa {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.floating-whatsapp:hover {
  animation: none;
  transform: scale(1.12);
}

/* ============================================================
   19. PAGE HERO (Inner pages - not home)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-4);
  display: block;
}

.page-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.page-hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   20. ANIMATIONS & KEYFRAMES
   ============================================================ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeSlideRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Scroll-triggered animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.animated {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }











/* ============================================================
   PHASE 3 ADDITIONS - About & Contact Pages
   ============================================================ */

/* ============================================================
   ABOUT PAGE - IMAGE SLIDESHOW SECTION
   ============================================================ */
.about-slideshow {
  position: relative;
  width: 100%;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: var(--shadow-xl);
}

.about-slideshow__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.about-slideshow__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

.about-slideshow__slide.active {
  opacity: 1;
}

.about-slideshow__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Overlay gradient on slideshow */
.about-slideshow__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.10) 50%,
    transparent 100%
  );
  z-index: 1;
  pointer-events: none;
}

/* Badge on top of slideshow */
.about-slideshow__badge {
  position: absolute;
  top: var(--space-5);
  left: var(--space-5);
  z-index: 2;
  background: var(--color-primary);
  color: var(--color-white);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  box-shadow: var(--shadow-md);
}

/* Caption on bottom of slideshow */
.about-slideshow__caption {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  right: var(--space-5);
  z-index: 2;
  color: var(--color-white);
}

.about-slideshow__caption-title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  display: block;
  margin-bottom: var(--space-1);
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.about-slideshow__caption-sub {
  font-size: var(--text-sm);
  opacity: 0.85;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* Slideshow dot indicators */
.about-slideshow__dots {
  position: absolute;
  bottom: var(--space-4);
  right: var(--space-5);
  z-index: 3;
  display: flex;
  gap: var(--space-2);
}

.about-slideshow__dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.45);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  padding: 0;
}

.about-slideshow__dot.active {
  background: var(--color-white);
  width: 24px;
}

/* ============================================================
   ABOUT PAGE - MAIN SECTIONS
   ============================================================ */

/* About Intro Section */
.about-intro {
  padding: var(--space-24) 0;
  background: var(--color-white);
}

.about-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-intro__content {}

.about-intro__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
  display: block;
}

.about-intro__title {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  line-height: 1.15;
  margin-bottom: var(--space-5);
}

.about-intro__title span {
  color: var(--color-primary);
}

.about-intro__lead {
  font-size: var(--text-lg);
  color: var(--color-gray-600);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

.about-intro__body {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-8);
}

/* About feature list */
.about-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.about-feature {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}

.about-feature__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(200,16,46,0.1), rgba(244,168,32,0.08));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.about-feature:hover .about-feature__icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.08);
}

.about-feature__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.about-feature__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

/* ============================================================
   ABOUT PAGE - HISTORY / TIMELINE SECTION
   ============================================================ */
.about-history {
  background: var(--color-gray-100);
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}

.about-history::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200,16,46,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.about-history__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-history__timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Vertical line */
.about-history__timeline::before {
  content: '';
  position: absolute;
  left: 22px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--color-primary),
    var(--color-secondary),
    var(--color-primary)
  );
  z-index: 0;
}

.timeline-item {
  display: flex;
  gap: var(--space-5);
  position: relative;
  z-index: 1;
  padding-bottom: var(--space-8);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item__dot {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  border: 3px solid var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: var(--text-xs);
  font-weight: var(--weight-black);
  font-family: var(--font-secondary);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.timeline-item:hover .timeline-item__dot {
  background: var(--color-primary);
  color: var(--color-white);
  transform: scale(1.1);
  box-shadow: var(--shadow-red);
}

.timeline-item__content {
  padding-top: var(--space-2);
  flex: 1;
}

.timeline-item__year {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}

.timeline-item__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.timeline-item__desc {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.65;
}

/* ============================================================
   ABOUT PAGE - VALUES / OFFERING SECTION
   ============================================================ */
.about-values {
  background: var(--color-white);
  padding: var(--space-24) 0;
}

.about-values__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.value-card {
  background: var(--color-gray-100);
  border-radius: var(--radius-xl);
  padding: var(--space-10) var(--space-7);
  text-align: center;
  border: 2px solid transparent;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.value-card:hover {
  background: var(--color-white);
  border-color: var(--color-gray-200);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-card__icon {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-6);
  color: var(--color-white);
  box-shadow: var(--shadow-red);
  transition: all var(--transition-base);
}

.value-card:hover .value-card__icon {
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 12px 35px rgba(200,16,46,0.45);
}

.value-card__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.value-card__desc {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.7;
}

/* ============================================================
   ABOUT PAGE - DGT BADGE / TRUST SECTION
   ============================================================ */
.about-trust {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.about-trust::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.about-trust__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-12);
  align-items: center;
}

.about-trust__text {
  color: var(--color-white);
}

.about-trust__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: var(--space-3);
  display: block;
}

.about-trust__title {
  font-size: var(--text-3xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.about-trust__body {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.about-trust__divider {
  width: 1px;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.2), transparent);
}

.about-trust__stats {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.about-trust__stat {
  text-align: right;
}

.about-trust__stat-number {
  display: block;
  font-family: var(--font-secondary);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: var(--space-1);
}

.about-trust__stat-label {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-weight: var(--weight-medium);
}

/* ============================================================
   CONTACT PAGE - SPECIFIC STYLES
   ============================================================ */
.contact-page {
  background: var(--color-white);
}

/* Contact Page Hero Image */
.contact-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
}

.contact-hero__pattern {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.contact-hero__content {
  position: relative;
  z-index: 1;
}

.contact-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: block;
  margin-bottom: var(--space-4);
}

.contact-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.contact-hero__title span {
  color: var(--color-secondary);
}

.contact-hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto var(--space-8);
  line-height: 1.65;
}

/* Contact quick cards (top of contact page) */
.contact-quick-cards {
  background: var(--color-white);
  padding: var(--space-12) 0;
  position: relative;
}

/* Pull the cards up slightly over the hero */
.contact-quick-cards--overlap {
  margin-top: -40px;
  padding-top: var(--space-4);
  position: relative;
  z-index: 10;
}

.contact-quick-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-5);
}

.contact-quick-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-5);
  text-align: center;
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-base);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}

.contact-quick-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-primary);
}

.contact-quick-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.contact-quick-card__icon--phone {
  background: rgba(200,16,46,0.1);
  color: var(--color-primary);
}

.contact-quick-card__icon--email {
  background: rgba(244,168,32,0.12);
  color: var(--color-secondary);
}

.contact-quick-card__icon--whatsapp {
  background: rgba(37,211,102,0.12);
  color: var(--color-accent-dark);
}

.contact-quick-card__icon--response {
  background: rgba(200,16,46,0.08);
  color: var(--color-primary);
}

.contact-quick-card:hover .contact-quick-card__icon {
  transform: scale(1.1);
}

.contact-quick-card__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
}

.contact-quick-card__value {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  line-height: 1.3;
}

.contact-quick-card__sub {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
}

/* Main contact form section */
.contact-form-section {
  background: var(--color-gray-100);
  padding: var(--space-24) 0;
}

.contact-form-section__grid {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: var(--space-16);
  align-items: start;
}

/* Contact sidebar */
.contact-sidebar {}

.contact-sidebar__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.contact-sidebar__title span {
  color: var(--color-primary);
}

.contact-sidebar__desc {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.75;
  margin-bottom: var(--space-8);
}

/* Sidebar contact items */
.contact-sidebar__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}

.contact-sidebar__item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  text-decoration: none;
  transition: all var(--transition-base);
  color: inherit;
}

.contact-sidebar__item:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.contact-sidebar__item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.contact-sidebar__item-icon--phone {
  background: rgba(200,16,46,0.1);
  color: var(--color-primary);
}

.contact-sidebar__item-icon--email {
  background: rgba(244,168,32,0.1);
  color: #B8870A;
}

.contact-sidebar__item-icon--whatsapp {
  background: rgba(37,211,102,0.1);
  color: var(--color-accent-dark);
}

.contact-sidebar__item:hover .contact-sidebar__item-icon {
  transform: scale(1.08);
}

.contact-sidebar__item-label {
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-gray-400);
  display: block;
  margin-bottom: 2px;
}

.contact-sidebar__item-value {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
}

/* Live indicator */
.contact-sidebar__live {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
}

.contact-sidebar__live-dot {
  width: 10px;
  height: 10px;
  background: var(--color-accent);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  animation: pulse-dot 2s ease infinite;
}

.contact-sidebar__live-text {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: #166534;
  line-height: 1.4;
}

.contact-sidebar__live-sub {
  font-size: var(--text-xs);
  color: var(--color-gray-600);
  font-weight: var(--weight-regular);
  display: block;
}

/* Full-width contact form box */
.contact-form-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-gray-200);
}

.contact-form-box__header {
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 2px solid var(--color-gray-100);
}

.contact-form-box__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.contact-form-box__subtitle {
  font-size: var(--text-base);
  color: var(--color-gray-600);
}

/* Form subject select extra option */
.form-select option {
  padding: var(--space-2);
}

/* ============================================================
   RESPONSIVE - PHASE 3 ADDITIONS
   ============================================================ */
@media (max-width: 1023px) {

  .about-intro__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-history__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .about-trust__inner {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    text-align: center;
  }

  .about-trust__divider {
    display: none;
  }

  .about-trust__stats {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--space-8);
  }

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

  .about-values__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .contact-form-section__grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .contact-form-box {
    padding: var(--space-8) var(--space-6);
  }
}

@media (max-width: 767px) {

  .about-slideshow {
    aspect-ratio: 4 / 3;
  }

  .about-values__grid {
    grid-template-columns: 1fr;
  }

  .about-intro__title {
    font-size: var(--text-3xl);
  }

  .contact-quick-cards--overlap {
    margin-top: 0;
  }

  .contact-quick-cards__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
  }

  .contact-quick-card {
    padding: var(--space-6) var(--space-4);
  }

  .contact-form-box {
    padding: var(--space-6) var(--space-4);
  }

  .contact-hero__title {
    font-size: var(--text-3xl);
  }

  .contact-hero__subtitle {
    font-size: var(--text-base);
  }

  .about-history__timeline::before {
    left: 20px;
  }
}



/* ============================================================
   PHASE 4 ADDITIONS - Categories & FAQ Pages
   ============================================================ */

/* ============================================================
   CATEGORIES PAGE
   ============================================================ */

/* Categories Hero */
.categories-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.categories-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
}

.categories-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.categories-hero__content {
  position: relative;
  z-index: 1;
}

.categories-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: block;
  margin-bottom: var(--space-4);
}

.categories-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.categories-hero__title span {
  color: var(--color-secondary);
}

.categories-hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.75);
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================================
   CATEGORY CARDS GRID
   ============================================================ */
.categories-section {
  background: var(--color-gray-100);
  padding: var(--space-24) 0;
}

.categories-section__intro {
  text-align: center;
  margin-bottom: var(--space-16);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

/* Individual Category Card */
.cat-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  border: 2px solid var(--color-gray-200);
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  user-select: none;
}

.cat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  transition: height var(--transition-slow);
  z-index: 0;
}

.cat-card:hover,
.cat-card.active {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.cat-card:hover::before,
.cat-card.active::before {
  height: 5px;
}

/* SVG icon wrapper */
.cat-card__icon-wrap {
  width: 100px;
  height: 100px;
  margin-bottom: var(--space-5);
  position: relative;
  z-index: 1;
  transition: transform var(--transition-base);
}

.cat-card:hover .cat-card__icon-wrap,
.cat-card.active .cat-card__icon-wrap {
  transform: scale(1.1) translateY(-4px);
}

.cat-card__icon-wrap svg {
  width: 100%;
  height: 100%;
}

/* Card name */
.cat-card__name {
  font-size: var(--text-xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

/* Card subtitle */
.cat-card__sub {
  font-size: var(--text-sm);
  color: var(--color-gray-400);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
}

/* Read more link */
.cat-card__readmore {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-primary);
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
  transition: gap var(--transition-fast);
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid rgba(200,16,46,0.2);
  border-radius: var(--radius-full);
  background: rgba(200,16,46,0.04);
}

.cat-card:hover .cat-card__readmore,
.cat-card.active .cat-card__readmore {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  gap: 8px;
}

.cat-card__readmore svg {
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}

.cat-card.active .cat-card__readmore svg {
  transform: rotate(90deg);
}

/* ============================================================
   CATEGORY DETAIL PANEL (expands below the row)
   ============================================================ */
.cat-detail-panel {
  grid-column: 1 / -1;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  border: 2px solid var(--color-primary);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.4s ease,
    margin 0.4s ease;
  margin-top: 0;
  margin-bottom: 0;
  pointer-events: none;
  position: relative; /* important for the close button positioning */
  will-change: max-height;
}
/* Keep only visual state here, NOT a fixed max-height */
.cat-detail-panel.is-open {
  opacity: 1;
  margin-top: var(--space-2);
  margin-bottom: var(--space-4);
  pointer-events: all;
}
.cat-detail-panel__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 0;
}

/* Left side - coloured header */
.cat-detail-panel__left {
  background: linear-gradient(145deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: var(--space-10) var(--space-8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.cat-detail-panel__left::before {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.cat-detail-panel__left::after {
  content: '';
  position: absolute;
  top: -40px;
  left: -40px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.cat-detail-panel__icon {
  width: 80px;
  height: 80px;
  margin-bottom: var(--space-6);
  position: relative;
  z-index: 1;
  filter: brightness(0) invert(1) opacity(0.9);
}

.cat-detail-panel__title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

.cat-detail-panel__subtitle {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.75);
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.cat-detail-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  color: var(--color-white);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-top: var(--space-5);
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1;
  width: fit-content;
}

/* Right side - content */
.cat-detail-panel__right {
  padding: var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-detail-panel__desc {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.8;
  margin-bottom: var(--space-6);
}

.cat-detail-panel__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.cat-detail-panel__list-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.cat-detail-panel__list-icon {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background: rgba(200,16,46,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 1px;
}

.cat-detail-panel__list-icon svg {
  width: 11px;
  height: 11px;
}

.cat-detail-panel__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Close button on panel */
.cat-detail-panel__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-600);
  cursor: pointer;
  transition: all var(--transition-fast);
  z-index: 10;
}

.cat-detail-panel__close:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

/* ============================================================
   FAQ PAGE
   ============================================================ */
.faq-hero {
  background: linear-gradient(135deg, var(--color-dark) 0%, var(--color-dark-3) 100%);
  padding: var(--space-20) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.faq-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary), var(--color-primary));
}

.faq-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}

.faq-hero__content {
  position: relative;
  z-index: 1;
}

.faq-hero__label {
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  display: block;
  margin-bottom: var(--space-4);
}

.faq-hero__title {
  font-size: var(--text-5xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-white);
  margin-bottom: var(--space-5);
  line-height: 1.1;
}

.faq-hero__title span {
  color: var(--color-secondary);
}

.faq-hero__subtitle {
  font-size: var(--text-xl);
  color: rgba(255,255,255,0.75);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* FAQ Section */
.faq-section {
  background: var(--color-gray-100);
  padding: var(--space-24) 0;
}

.faq-section__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-12);
  align-items: start;
}

/* FAQ Sidebar (category filter) */
.faq-sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-6));
}

.faq-sidebar__title {
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gray-400);
  margin-bottom: var(--space-4);
}

.faq-sidebar__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.faq-sidebar__btn {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-gray-600);
  background: var(--color-white);
  border: 1.5px solid var(--color-gray-200);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  width: 100%;
}

.faq-sidebar__btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(200,16,46,0.04);
}

.faq-sidebar__btn.active {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.faq-sidebar__btn-count {
  margin-left: auto;
  background: rgba(255,255,255,0.2);
  color: inherit;
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  min-width: 24px;
  text-align: center;
}

.faq-sidebar__btn:not(.active) .faq-sidebar__btn-count {
  background: var(--color-gray-200);
  color: var(--color-gray-600);
}

/* CTA box in sidebar */
.faq-sidebar__cta {
  margin-top: var(--space-8);
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
}

.faq-sidebar__cta-title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-white);
  margin-bottom: var(--space-2);
}

.faq-sidebar__cta-sub {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.75);
  margin-bottom: var(--space-4);
  line-height: 1.5;
}

.faq-sidebar__cta .btn {
  width: 100%;
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-white);
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
}

.faq-sidebar__cta .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* FAQ Main Content */
.faq-main {}

/* Category group */
.faq-group {
  margin-bottom: var(--space-10);
}

.faq-group[data-category].hidden {
  display: none;
}

.faq-group__title {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-primary);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.faq-group__title-icon {
  width: 32px;
  height: 32px;
  background: rgba(200,16,46,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

/* FAQ Accordion Item */
.faq-item {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  border: 1.5px solid var(--color-gray-200);
  margin-bottom: var(--space-3);
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(200,16,46,0.3);
}

.faq-item.is-open {
  border-color: var(--color-primary);
  box-shadow: 0 4px 20px rgba(200,16,46,0.1);
}

/* Question button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background var(--transition-fast);
}

.faq-question:hover {
  background: rgba(200,16,46,0.02);
}

.faq-item.is-open .faq-question {
  background: rgba(200,16,46,0.03);
}

.faq-question__text {
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--color-dark);
  line-height: 1.5;
  flex: 1;
}

.faq-item.is-open .faq-question__text {
  color: var(--color-primary);
}

/* Chevron icon */
.faq-question__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-gray-400);
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.faq-item.is-open .faq-question__icon {
  background: var(--color-primary);
  color: var(--color-white);
  transform: rotate(180deg);
}

/* Answer panel */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.is-open .faq-answer {
  max-height: 600px;
}

.faq-answer__inner {
  padding: 0 var(--space-6) var(--space-6);
  border-top: 1px solid var(--color-gray-100);
}

.faq-answer__text {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.8;
  padding-top: var(--space-4);
}

.faq-answer__text strong {
  color: var(--color-dark);
  font-weight: var(--weight-semibold);
}

.faq-answer__text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: var(--weight-medium);
}

.faq-answer__text a:hover {
  color: var(--color-primary-dark);
}

.faq-answer__whatsapp {
  margin-top: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-accent-dark);
  padding: var(--space-2) var(--space-4);
  background: rgba(37,211,102,0.08);
  border: 1px solid rgba(37,211,102,0.2);
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.faq-answer__whatsapp:hover {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}

/* FAQ search bar */
.faq-search {
  position: relative;
  max-width: 520px;
  margin: var(--space-8) auto 0;
}

.faq-search__input {
  width: 100%;
  padding: 0.875rem 1rem 0.875rem 3rem;
  border: 2px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-base);
  color: var(--color-white);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  outline: none;
  transition: all var(--transition-fast);
}

.faq-search__input::placeholder {
  color: rgba(255,255,255,0.55);
}

.faq-search__input:focus {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.15);
}

.faq-search__icon {
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255,255,255,0.6);
  pointer-events: none;
}

/* No results message */
.faq-no-results {
  text-align: center;
  padding: var(--space-12);
  display: none;
}

.faq-no-results.visible {
  display: block;
}

.faq-no-results__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

.faq-no-results__title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-3);
}

.faq-no-results__sub {
  color: var(--color-gray-600);
  margin-bottom: var(--space-6);
}

/* ============================================================
   RESPONSIVE - PHASE 4
   ============================================================ */
@media (max-width: 1023px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cat-detail-panel__inner {
    grid-template-columns: 1fr;
  }

  .cat-detail-panel__left {
    padding: var(--space-8);
    flex-direction: row;
    gap: var(--space-5);
    align-items: center;
  }

  .cat-detail-panel__icon {
    width: 56px;
    height: 56px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .faq-section__grid {
    grid-template-columns: 1fr;
  }

  .faq-sidebar {
    position: static;
  }

  .faq-sidebar__list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .faq-sidebar__btn {
    width: auto;
    flex: 1;
    min-width: 140px;
  }
}

@media (max-width: 767px) {
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  .cat-card {
    padding: var(--space-6) var(--space-4);
  }

  .cat-card__icon-wrap {
    width: 72px;
    height: 72px;
  }

  .cat-card__name {
    font-size: var(--text-base);
  }

  .cat-detail-panel__right {
    padding: var(--space-6) var(--space-5);
  }

  .cat-detail-panel__left {
    padding: var(--space-6) var(--space-5);
    flex-direction: column;
    align-items: flex-start;
  }

  .cat-detail-panel__actions {
    flex-direction: column;
  }

  .cat-detail-panel__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .categories-hero__title,
  .faq-hero__title {
    font-size: var(--text-3xl);
  }

  .faq-section__grid {
    grid-template-columns: 1fr;
  }

  .faq-sidebar__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .faq-sidebar__btn {
    width: auto;
    min-width: 0;
    flex: none;
    font-size: var(--text-xs);
    padding: var(--space-2) var(--space-3);
  }

  .faq-search {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .categories-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cat-card__icon-wrap {
    width: 60px;
    height: 60px;
  }
}



/* ============================================================
   PHASE 5 ADDITIONS - Legal Pages (Privacy + Terms)
   ============================================================ */

.legal-section {
  background: var(--color-white);
}

/* Main content wrapper */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
}

/* Each section block */
.legal-block {
  margin-bottom: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--color-gray-200);
}

.legal-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Section titles (h2) */
.legal-title {
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  color: var(--color-dark);
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
  border-left: 4px solid var(--color-primary);
  line-height: 1.25;
}

/* Sub-section titles (h3) */
.legal-subtitle {
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
}

/* Body text */
.legal-text {
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.85;
  margin-bottom: var(--space-4);
}

.legal-text:last-child {
  margin-bottom: 0;
}

.legal-text a {
  color: var(--color-primary);
  text-decoration: underline;
  font-weight: var(--weight-medium);
  transition: color var(--transition-fast);
}

.legal-text a:hover {
  color: var(--color-primary-dark);
}

.legal-text strong {
  color: var(--color-dark);
  font-weight: var(--weight-semibold);
}

/* Bullet lists */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  margin-left: 0;
}

.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-gray-600);
  line-height: 1.7;
  padding-left: var(--space-2);
  position: relative;
}

.legal-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
  margin-top: 8px;
}

.legal-list li strong {
  color: var(--color-dark);
}

.legal-list li a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Info Box */
.legal-info-box {
  background: var(--color-gray-100);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: var(--space-6) var(--space-8);
  margin: var(--space-6) 0;
}

.legal-info-box--green {
  border-left-color: var(--color-accent);
  background: rgba(37,211,102,0.06);
}

.legal-info-box__title {
  font-size: var(--text-base);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: var(--text-sm);
}

.legal-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.legal-info-list li {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
}

.legal-info-list li strong {
  color: var(--color-dark);
}

.legal-info-list li a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Rights grid */
.legal-rights-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-6);
}

.legal-right-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  background: var(--color-gray-100);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  transition: all var(--transition-fast);
}

.legal-right-item:hover {
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
}

.legal-right-icon {
  width: 40px;
  height: 40px;
  background: rgba(200,16,46,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.legal-right-item strong {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.legal-right-item p {
  font-size: var(--text-sm);
  color: var(--color-gray-600);
  line-height: 1.6;
  margin: 0;
}

.legal-right-item a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Legal Table (Cookies) */
.legal-table-wrap {
  overflow-x: auto;
  margin: var(--space-5) 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.legal-table thead {
  background: var(--color-dark);
  color: var(--color-white);
}

.legal-table thead th {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-weight: var(--weight-semibold);
  font-size: var(--text-sm);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.legal-table tbody tr {
  border-bottom: 1px solid var(--color-gray-200);
  transition: background var(--transition-fast);
}

.legal-table tbody tr:last-child {
  border-bottom: none;
}

.legal-table tbody tr:hover {
  background: var(--color-gray-100);
}

.legal-table tbody td {
  padding: var(--space-4) var(--space-5);
  color: var(--color-gray-600);
  line-height: 1.6;
  vertical-align: top;
}

.legal-table tbody td:first-child {
  white-space: nowrap;
}

/* ============================================================
   RESPONSIVE - Legal Pages
   ============================================================ */
@media (max-width: 767px) {

  .legal-title {
    font-size: var(--text-xl);
  }

  .legal-rights-grid {
    grid-template-columns: 1fr;
  }

  .legal-info-box {
    padding: var(--space-5) var(--space-5);
  }

  .legal-table thead th,
  .legal-table tbody td {
    padding: var(--space-3) var(--space-4);
  }

  .legal-block {
    margin-bottom: var(--space-8);
    padding-bottom: var(--space-8);
  }
}









/* ============================================================
   EMERGENCY FIX - animate-on-scroll fallback
   ============================================================ */

/* If JS fails or observer doesn't fire, show content after delay */
.legal-content .animate-on-scroll,
.legal-section .animate-on-scroll {
  animation: legalFadeIn 0.5s ease 0.3s both;
}

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

/* Force show after animation completes */
.legal-section .animate-on-scroll,
.legal-content .animate-on-scroll {
  animation-fill-mode: forwards;
}
.legal-content--visible {
  opacity: 1 !important;
  transform: none !important;
}
/* ============================================================
   LEGAL PAGE — Force visibility (opacity fix)
   ============================================================ */
.is-legal-page .animate-on-scroll {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: none !important;
}

.is-legal-page .legal-content {
  opacity: 1 !important;
  transform: none !important;
}


/* ============================================================
   DOCUMENTS PAGE
   ============================================================ */

/* Documents Hero */
.documents-hero {
  position: relative;
  background:
    linear-gradient(
      135deg,
      rgba(13, 13, 13, 0.98) 0%,
      rgba(45, 45, 45, 0.96) 100%
    );
  padding: var(--space-24) 0;
  text-align: center;
  overflow: hidden;
}

.documents-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary),
    var(--color-primary)
  );
}

.documents-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.7;
  background-image:
    linear-gradient(
      30deg,
      rgba(255,255,255,0.025) 12%,
      transparent 12.5%,
      transparent 87%,
      rgba(255,255,255,0.025) 87.5%
    ),
    linear-gradient(
      150deg,
      rgba(255,255,255,0.025) 12%,
      transparent 12.5%,
      transparent 87%,
      rgba(255,255,255,0.025) 87.5%
    );
  background-size: 44px 76px;
  pointer-events: none;
}

.documents-hero__content {
  position: relative;
  z-index: 1;
  max-width: 850px;
  margin: 0 auto;
}

.documents-hero__label {
  display: inline-block;
  color: var(--color-secondary);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.documents-hero__title {
  color: var(--color-white);
  font-size: var(--text-5xl);
  font-weight: var(--weight-black);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}

.documents-hero__subtitle {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255,255,255,0.78);
  font-size: var(--text-xl);
  line-height: 1.7;
}

.documents-hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Make the outline button visible on the dark hero */
.documents-hero .btn--outline {
  color: var(--color-white);
  border-color: rgba(255,255,255,0.55);
}

.documents-hero .btn--outline:hover,
.documents-hero .btn--outline:focus {
  color: var(--color-primary);
  background: var(--color-white);
  border-color: var(--color-white);
}


/* Documents Disclaimer */
.documents-disclaimer-section {
  background: var(--color-gray-100);
  padding: var(--space-6) 0;
}

.documents-disclaimer {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 950px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-6);
  background: var(--color-white);
  border: 1px solid rgba(200,16,46,0.18);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}

.documents-disclaimer__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  color: var(--color-primary);
  background: rgba(200,16,46,0.08);
  border-radius: var(--radius-full);
}

.documents-disclaimer p {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: 1.65;
  margin: 0;
}

/* Documents Services Section */
.documents-services {
  background: var(--color-white);
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  align-items: stretch;
}

/* Individual Document Card */
.document-card {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-width: 0;
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-8) var(--space-7);
  box-shadow: var(--shadow-sm);
  transition:
    transform var(--transition-slow),
    box-shadow var(--transition-slow),
    border-color var(--transition-base);
}

.document-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}

.document-card:hover {
  transform: translateY(-8px);
  border-color: transparent;
  box-shadow: var(--shadow-xl);
}

.document-card:hover::before {
  transform: scaleX(1);
}

/* Card top area */
.document-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.document-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
  color: var(--color-primary);
  background: linear-gradient(
    135deg,
    rgba(200,16,46,0.1),
    rgba(244,168,32,0.12)
  );
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.document-card:hover .document-card__icon {
  color: var(--color-white);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  transform: scale(1.08) rotate(-3deg);
}

.document-card__badge {
  display: inline-flex;
  align-items: center;
  max-width: 150px;
  padding: var(--space-2) var(--space-3);
  color: var(--color-primary);
  background: rgba(200,16,46,0.07);
  border: 1px solid rgba(200,16,46,0.14);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  text-align: right;
}

.document-card__title {
  color: var(--color-dark);
  font-size: var(--text-2xl);
  font-weight: var(--weight-extrabold);
  line-height: 1.2;
  margin-bottom: var(--space-1);
}

.document-card__subtitle {
  color: var(--color-gray-400);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  margin-bottom: var(--space-5);
}

.document-card__description {
  color: var(--color-gray-600);
  font-size: var(--text-base);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}

/* Information list */
.document-card__information {
  margin-top: auto;
}

.document-card__information-title {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-dark);
  font-size: var(--text-sm);
  font-weight: var(--weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--space-4);
}

.document-card__information-title::before {
  content: '';
  width: 22px;
  height: 3px;
  flex-shrink: 0;
  background: var(--color-primary);
  border-radius: var(--radius-full);
}

.document-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
}

.document-card__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.document-card__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--color-primary);
  background: rgba(200,16,46,0.1);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: var(--weight-bold);
}

/* Card note */
.document-card__note {
  margin: var(--space-6) 0;
  padding: var(--space-4);
  color: var(--color-gray-600);
  background: var(--color-gray-100);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  line-height: 1.65;
}

.document-card__note strong {
  color: var(--color-dark);
  font-weight: var(--weight-bold);
}

/* Card button */
.document-card__button {
  width: 100%;
  margin-top: auto;
  gap: var(--space-3);
}

.document-card__button svg {
  transition: transform var(--transition-fast);
}

.document-card__button:hover svg {
  transform: translateX(4px);
}

/* Accent variations */
.document-card--passport .document-card__icon {
  color: #9b7200;
  background: rgba(244,168,32,0.13);
}

.document-card--residence .document-card__icon {
  color: var(--color-primary);
  background: rgba(200,16,46,0.1);
}

.document-card--dni .document-card__icon {
  color: var(--color-accent-dark);
  background: rgba(37,211,102,0.1);
}


/* Documents Process Section */
.documents-process {
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
  background: var(--color-gray-100);
}

.documents-process::before {
  content: '';
  position: absolute;
  top: -160px;
  right: -160px;
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(200,16,46,0.07) 0%,
    transparent 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.documents-process__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  position: relative;
}

/* Connector line */
.documents-process__grid::before {
  content: '';
  position: absolute;
  top: 34px;
  left: calc(16.67% + 25px);
  right: calc(16.67% + 25px);
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--color-primary),
    var(--color-secondary)
  );
  z-index: 0;
}

.documents-process-card {
  position: relative;
  z-index: 1;
  padding: var(--space-8) var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.documents-process-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
}

.documents-process-card__number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto var(--space-5);
  color: var(--color-white);
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-primary-dark)
  );
  border: 7px solid var(--color-gray-100);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-red);
  font-family: var(--font-secondary);
  font-size: var(--text-lg);
  font-weight: var(--weight-black);
}

.documents-process-card__title {
  color: var(--color-dark);
  font-size: var(--text-lg);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}

.documents-process-card__description {
  color: var(--color-gray-600);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Documents CTA */
.documents-cta {
  position: relative;
  overflow: hidden;
  padding: var(--space-24) 0;
  background: linear-gradient(
    135deg,
    var(--color-primary) 0%,
    var(--color-primary-dark) 100%
  );
  text-align: center;
}

.documents-cta::before {
  content: '';
  position: absolute;
  top: -130px;
  right: -100px;
  width: 420px;
  height: 420px;
  background: radial-gradient(
    circle,
    rgba(255,255,255,0.12) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.documents-cta::after {
  content: '';
  position: absolute;
  bottom: -180px;
  left: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(
    circle,
    rgba(0,0,0,0.14) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.documents-cta__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}

.documents-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: var(--space-2) var(--space-5);
  color: var(--color-white);
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  letter-spacing: 0.12em;
}

.documents-cta__badge span:first-child {
  color: var(--color-secondary);
  font-size: 1rem;
}

.documents-cta__title {
  color: var(--color-white);
  font-size: var(--text-4xl);
  font-weight: var(--weight-black);
  line-height: 1.15;
  margin-bottom: var(--space-4);
}

.documents-cta__subtitle {
  max-width: 600px;
  margin: 0 auto var(--space-8);
  color: rgba(255,255,255,0.84);
  font-size: var(--text-lg);
  line-height: 1.7;
}

.documents-cta .btn--whatsapp {
  color: var(--color-accent-dark);
  background: var(--color-white);
  border-color: var(--color-white);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.documents-cta .btn--whatsapp:hover {
  color: var(--color-accent-dark);
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.92);
}