/* ==========================================================================
   CERRAJERO PARCENT — Premium Stylesheet
   Pure CSS3 | No frameworks | Mobile-first responsive
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Colors */
  --color-primary: #0a1628;
  --color-primary-light: #132240;
  --color-primary-dark: #060e1a;
  --color-accent: #f97316;
  --color-accent-hover: #ea580c;
  --color-accent-light: #fb923c;
  --color-whatsapp: #25d366;
  --color-whatsapp-hover: #1da851;
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-text: #1e293b;
  --color-text-muted: #64748b;
  --color-bg: #ffffff;
  --color-bg-alt: #f8fafc;
  --color-bg-dark: #0a1628;

  /* Typography */
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Outfit', system-ui, -apple-system, sans-serif;

  --fs-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.82rem + 0.25vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --fs-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --fs-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.75rem);
  --fs-4xl: clamp(2.25rem, 1.75rem + 2vw, 3.5rem);
  --fs-hero: clamp(2.5rem, 2rem + 2.5vw, 4rem);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-section: clamp(4rem, 3rem + 4vw, 7rem);

  /* Layout */
  --container-max: 1200px;
  --container-narrow: 800px;
  --header-height: 72px;

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(10, 22, 40, 0.05);
  --shadow-md: 0 4px 16px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 8px 32px rgba(10, 22, 40, 0.12);
  --shadow-xl: 0 16px 48px rgba(10, 22, 40, 0.16);
  --shadow-accent: 0 8px 24px rgba(249, 115, 22, 0.35);
  --shadow-whatsapp: 0 8px 24px rgba(37, 211, 102, 0.35);

  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.15);
  --glass-blur: blur(16px);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Z-index layers */
  --z-header: 100;
  --z-fab: 90;
  --z-back-top: 80;
  --z-overlay: 50;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
}

strong {
  font-weight: 600;
}

/* Skip link — accesibilidad */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  z-index: 9999;
  padding: var(--space-sm) var(--space-md);
  background: var(--color-accent);
  color: var(--color-white);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.container--narrow {
  max-width: var(--container-narrow);
}

.text-accent {
  color: var(--color-accent);
}

.text-nowrap {
  white-space: nowrap;
}

.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
}

/* Reveal animation — visible by default; animated only when JS is active */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

html.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children — only when JS active */
html.js .reveal:nth-child(2) { transition-delay: 0.1s; }
html.js .reveal:nth-child(3) { transition-delay: 0.2s; }
html.js .reveal:nth-child(4) { transition-delay: 0.3s; }
html.js .reveal:nth-child(5) { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   4. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.875rem 1.75rem;
  font-family: var(--font-heading);
  font-size: var(--fs-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              background-color var(--transition-base);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn__icon {
  flex-shrink: 0;
}

/* Call button — naranja CTA */
.btn--call {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-accent);
}

.btn--call:hover {
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45);
}

/* WhatsApp button */
.btn--whatsapp {
  background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-hover) 100%);
  color: var(--color-white);
  box-shadow: var(--shadow-whatsapp);
}

.btn--whatsapp:hover {
  color: var(--color-white);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

/* Size variants */
.btn--sm {
  padding: 0.625rem 1.25rem;
  font-size: var(--fs-xs);
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: var(--fs-base);
}

.btn--xl {
  padding: 1.125rem 2.25rem;
  font-size: var(--fs-lg);
}

/* --------------------------------------------------------------------------
   5. HEADER
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  height: var(--header-height);
  transition: background-color var(--transition-base),
              box-shadow var(--transition-base),
              backdrop-filter var(--transition-base);
}

.header.is-scrolled {
  background: rgba(10, 22, 40, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 1;
  min-width: 0;
  text-decoration: none;
}

.header__logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.header__brand-text {
  display: none;
  font-family: var(--font-heading);
  font-size: clamp(0.6875rem, 2.6vw + 0.35rem, 0.9375rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.header__brand-accent {
  color: var(--color-accent);
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.header__nav-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.header__nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.header__nav-link:hover {
  color: var(--color-white);
}

.header__nav-link:hover::after {
  width: 100%;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.header__menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-sm);
}

.header__menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.header__menu-btn[aria-expanded="true"] .header__menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header__menu-btn[aria-expanded="true"] .header__menu-bar:nth-child(2) {
  opacity: 0;
}

.header__menu-btn[aria-expanded="true"] .header__menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile navigation */
@media (max-width: 1023px) {
  .header__logo-img {
    height: 36px;
    padding: 2px 6px;
    flex-shrink: 0;
  }

  .header__brand-text {
    display: block;
    font-size: clamp(0.625rem, 2.1vw + 0.28rem, 0.8125rem);
    letter-spacing: 0.03em;
  }

  .header__nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: var(--space-2xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    overflow-y: auto;
  }

  .header__nav.is-open {
    transform: translateX(0);
  }

  .header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-xl);
  }

  .header__nav-link {
    font-size: var(--fs-xl);
  }

  .header__menu-btn {
    display: flex;
  }

  .header__actions .btn--sm {
    display: none;
  }
}

@media (min-width: 1024px) {
  .header__nav {
    display: block !important;
  }
}

/* --------------------------------------------------------------------------
   6. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--color-primary);
  color: var(--color-white);
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(249, 115, 22, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
    linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.hero__shape--1 {
  width: 500px;
  height: 500px;
  background: rgba(249, 115, 22, 0.15);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero__shape--2 {
  width: 400px;
  height: 400px;
  background: rgba(59, 130, 246, 0.1);
  bottom: 10%;
  left: -150px;
  animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
  padding-block: var(--space-3xl);
}

.hero--centered .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 820px;
  margin-inline: auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: var(--fs-sm);
  font-weight: 500;
  margin-bottom: var(--space-lg);
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.hero__title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.hero__subtitle {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero__subtitle strong {
  color: var(--color-accent-light);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md) var(--space-xl);
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.75);
}

.hero__trust-item svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.hero__wave {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: auto;
}

.hero__wave svg {
  width: 100%;
  height: 60px;
}

/* --------------------------------------------------------------------------
   7. SECTIONS — Shared
   -------------------------------------------------------------------------- */
.section {
  padding-block: var(--space-section);
  position: relative;
}

.section__header {
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
  margin-bottom: var(--space-3xl);
}

.section__eyebrow {
  display: inline-block;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--color-accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

.section__desc {
  font-size: var(--fs-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
}

.section__cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-top: var(--space-3xl);
}

.section__diagonal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: var(--color-bg);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
  z-index: 0;
}

/* --------------------------------------------------------------------------
   8. WHY SECTION
   -------------------------------------------------------------------------- */
.section--why {
  background: var(--color-bg);
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 480px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.why-card {
  padding: var(--space-xl);
  background: var(--color-bg);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base),
              border-color var(--transition-base);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.why-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.why-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.why-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   9. SERVICES
   -------------------------------------------------------------------------- */
.section--services {
  background: var(--color-bg-alt);
  padding-top: calc(var(--space-section) + 60px);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

@media (min-width: 480px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.service-card {
  padding: var(--space-xl);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-gray-100);
  transition: transform var(--transition-base),
              box-shadow var(--transition-base);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card--featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white);
  border: none;
}

@media (min-width: 768px) {
  .service-card--featured {
    grid-column: span 2;
  }
}

.service-card--featured .service-card__title,
.service-card--featured .service-card__text {
  color: var(--color-white);
}

.service-card--featured .service-card__text {
  opacity: 0.85;
}

.service-card--featured .service-card__icon {
  background: transparent;
}

.service-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: transparent;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-lg);
  transition: transform var(--transition-base);
}

.service-card:hover .service-card__icon {
  transform: scale(1.08) rotate(-2deg);
}

.service-card__icon img {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  box-shadow: var(--shadow-md);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.3;
}

.service-card__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.service-card__list {
  margin-top: var(--space-md);
  padding-left: var(--space-md);
}

.service-card__list li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-xs);
  opacity: 0.9;
}

.service-card__list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-accent-light);
}

/* --------------------------------------------------------------------------
   10. PROCESS
   -------------------------------------------------------------------------- */
.section--process {
  background: var(--color-white);
}

.process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  max-width: 900px;
  margin-inline: auto;
  counter-reset: step;
}

@media (min-width: 768px) {
  .process-steps {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-2xl);
  }
}

.process-step {
  display: flex;
  gap: var(--space-lg);
  padding: var(--space-xl);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-100);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.process-step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.process-step__number {
  flex-shrink: 0;
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.3;
  line-height: 1;
}

.process-step__title {
  font-family: var(--font-heading);
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.process-step__text {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.process-step__text a {
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   11. ADVANTAGES
   -------------------------------------------------------------------------- */
.section--advantages {
  background: var(--color-primary);
  color: var(--color-white);
}

.section--advantages .section__title {
  color: var(--color-white);
}

.section--advantages .section__desc {
  color: rgba(255, 255, 255, 0.7);
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .advantages-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.advantage-card {
  padding: var(--space-xl);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  text-align: center;
  transition: transform var(--transition-base),
              background var(--transition-base);
}

.advantage-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.08);
}

.advantage-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  line-height: 1;
}

.advantage-card__title {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.advantage-card__text {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   12. REVIEWS
   -------------------------------------------------------------------------- */
.section--reviews {
  background: var(--color-bg-alt);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.review-card {
  padding: var(--space-2xl);
  background: var(--color-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gray-100);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.review-card__stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  margin-bottom: var(--space-lg);
}

.review-card__text {
  font-size: var(--fs-base);
  color: var(--color-text);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-xl);
}

.review-card__author {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  border-top: 1px solid var(--color-gray-100);
  padding-top: var(--space-lg);
}

.review-card__name {
  font-family: var(--font-heading);
  font-weight: 600;
  font-style: normal;
  color: var(--color-primary);
}

.review-card__location {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   13. FAQ
   -------------------------------------------------------------------------- */
.section--faq {
  background: var(--color-white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition-base);
}

.faq-item[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.faq-item__question {
  padding: var(--space-lg) var(--space-xl);
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-primary);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  transition: color var(--transition-fast);
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::after {
  content: '+';
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--color-accent);
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.faq-item[open] .faq-item__question::after {
  transform: rotate(45deg);
}

.faq-item__question:hover {
  color: var(--color-accent);
}

.faq-item__answer {
  padding: 0 var(--space-xl) var(--space-lg);
}

.faq-item__answer p {
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   14. CTA FINAL
   -------------------------------------------------------------------------- */
.section--cta-final {
  position: relative;
  background: var(--color-primary);
  color: var(--color-white);
  overflow: hidden;
}

.cta-final__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(249, 115, 22, 0.2) 0%, transparent 60%),
    linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  pointer-events: none;
}

.cta-final__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 720px;
  margin-inline: auto;
}

.cta-final__title {
  font-family: var(--font-heading);
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.cta-final__text {
  font-size: var(--fs-lg);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.cta-final__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.cta-final__phone {
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.6);
}

.cta-final__phone a {
  color: var(--color-accent-light);
  font-weight: 600;
}

.cta-final__phone a:hover {
  color: var(--color-white);
}

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding-block: var(--space-3xl) var(--space-xl);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer__logo {
  margin-bottom: var(--space-lg);
  height: 44px;
  width: auto;
  object-fit: contain;
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 8px;
}

.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.7;
  max-width: 360px;
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: var(--space-lg);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer__link:hover {
  color: var(--color-accent-light);
}

.footer__link--static {
  cursor: default;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
}

.footer__domain {
  color: var(--color-accent);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   16. FAB (Floating Action Buttons)
   -------------------------------------------------------------------------- */
.fab {
  position: fixed;
  bottom: var(--space-lg);
  right: var(--space-lg);
  z-index: var(--z-fab);
  display: none;
  flex-direction: column;
  gap: var(--space-sm);
}

@media (max-width: 1023px) {
  .fab {
    display: flex;
  }
}

.fab__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: var(--color-white);
  box-shadow: var(--shadow-lg);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.fab__btn:hover {
  transform: scale(1.08);
  color: var(--color-white);
}

.fab__btn--call {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  box-shadow: var(--shadow-accent);
}

.fab__btn--whatsapp {
  background: linear-gradient(135deg, var(--color-whatsapp) 0%, var(--color-whatsapp-hover) 100%);
  box-shadow: var(--shadow-whatsapp);
}

/* --------------------------------------------------------------------------
   17. BACK TO TOP
   -------------------------------------------------------------------------- */
.back-to-top {
  position: fixed;
  bottom: var(--space-lg);
  left: var(--space-lg);
  z-index: var(--z-back-top);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-base),
              opacity var(--transition-base),
              background var(--transition-base);
  opacity: 0;
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
}

@media (max-width: 1023px) {
  .back-to-top {
    bottom: calc(var(--space-lg) + 130px);
  }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVE FINE-TUNING
   -------------------------------------------------------------------------- */
@media (max-width: 375px) {
  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .section__cta {
    flex-direction: column;
  }

  .section__cta .btn {
    width: 100%;
  }

  .cta-final__actions {
    flex-direction: column;
  }

  .cta-final__actions .btn {
    width: 100%;
  }
}

@media (min-width: 1920px) {
  :root {
    --container-max: 1400px;
  }
}

@media (min-width: 2560px) {
  :root {
    --container-max: 1600px;
  }
}

/* --------------------------------------------------------------------------
   19. PRINT
   -------------------------------------------------------------------------- */
@media print {
  .header,
  .fab,
  .back-to-top {
    display: none !important;
  }

  .hero {
    min-height: auto;
    padding: 2rem 0;
  }

  body {
    color: #000;
    background: #fff;
  }
}
