/* =====================================================
RESET + BASE · MASTER LEVEL
Sistema global limpio, accesible y escalable
===================================================== */


/* ========================
NORMALIZACIÓN GLOBAL
======================== */

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


/* ========================
DOCUMENTO BASE
======================== */

html {
  font-size: 100%; /* 16px base */
  scroll-padding-top: 5rem; /* evita header fijo */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}


/* ========================
BODY BASE
======================== */

body {
  font-family: "Inter", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;

  /* 🔥 FIX CRÍTICO RESPONSIVE */
  overflow-x: hidden;

  /* Renderizado pro */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}


/* ========================
MEDIA (IMÁGENES / VIDEO)
======================== */

img,
video,
picture,
canvas {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ========================
FORMULARIOS
======================== */

input,
textarea,
select,
button {
  font-family: inherit;
  font-size: 1rem;
  border: none;
  outline: none;
  background: none;
}


/* Evita estilos raros en botones */
button {
  cursor: pointer;
}


/* ========================
LISTAS
======================== */

ul,
ol {
  list-style: none;
}


/* ========================
ENLACES
======================== */

a {
  text-decoration: none;
  color: inherit;
  text-underline-offset: 0.2em;
}


/* ========================
TIPOGRAFÍA BASE
======================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 0.5rem;
}


/* ========================
PLACEHOLDER
======================== */

::placeholder {
  color: var(--text-muted);
  opacity: 0.55;
}


/* ========================
INTERACCIÓN TÁCTIL
======================== */

a,
button,
[role="button"],
input[type="submit"],
input[type="button"],
input[type="reset"],
label[for] {
  touch-action: manipulation;
}


/* ========================
ACCESIBILIDAD
======================== */

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


/* ========================
SELECCIÓN DE TEXTO
======================== */

::selection {
  background: var(--color-primary);
  color: #fff;
}


/* ========================
SCROLLBAR (OPCIONAL PRO)
======================== */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255,255,255,0.3);
}/* ========================
01. VARIABLES CSS (PRO)
======================== */

:root {

  /* ========================
  COLORES DE MARCA
  ======================== */

  --color-primary:   #0d6cf2;
  --color-blue:      #4aa3ff;
  --color-purple:    #7c5cff;
  --color-green:     #38d996;
  --color-amber:     #f59e0b;
  --color-wa:        #25d366;
  --color-error:     #ef4444;

  /* ========================
  FONDOS
  ======================== */

  --bg-dark:         #0a0a0b;
  --bg-card:         #111418;
  --bg-section-alt:  rgba(255, 255, 255, 0.025);

  /* ========================
  TEXTOS (MEJORADO)
  ======================== */

  --text-main:       #ffffff;
  --text-muted:      #a8b3c4;
  --text-soft:       #cbd5e1;  /* 🔥 NUEVO (muy importante) */

  /* ========================
  BORDES
  ======================== */

  --border-soft:     rgba(49, 61, 77, 0.35);
  --border-primary:  rgba(13, 108, 242, 0.3);

  /* ========================
  RADIOS
  ======================== */

  --radius-sm:       0.4rem;
  --radius-md:       0.6rem;
  --radius-lg:       0.9rem;
  --radius-xl:       1.2rem;

  /* ========================
  LAYOUT
  ======================== */

  --container:       72rem;
  --pad:             1.5rem;

  /* ========================
  ESPACIADO (🔥 PRO)
  ======================== */

  --space-xs:      0.5rem;
  --space-sm:      1rem;
  --space-md:      1.5rem;
  --space-lg:      2rem;
  --space-xl:      3rem;
  --space-2xl:     clamp(3rem, 6vw, 4.5rem);
  --space-section: clamp(3rem, 8vw, 5rem);

  /* ========================
  TRANSICIONES
  ======================== */

  --transition:      0.25s ease;
  --transition-slow: 0.4s ease;

  /* ========================
  SOMBRAS
  ======================== */

  --shadow-card:     0 8px 28px rgba(0, 0, 0, 0.3);

  --shadow-card-hover:
    0 14px 40px rgba(0, 0, 0, 0.4),
    0 0 20px rgba(13, 108, 242, 0.18);

  /* ========================
  GRADIENTES
  ======================== */

  --gradient-primary: linear-gradient(135deg, #0d6cf2 0%, #7c5cff 100%);
  --gradient-text:    linear-gradient(135deg, #4aa3ff 0%, #7c5cff 100%);

  /* ========================
  Z-INDEX SYSTEM (🔥 CLAVE)
  ======================== */

  --z-header: 100;
  --z-dropdown: 200;
  --z-wa: 9999;
  --z-cookies: 9998;
  --z-modal: 10000;

}/* ========================
03. TIPOGRAFÍA GLOBAL
======================== */

/* Jerarquía principal de títulos
   Estilo corporativo: uppercase + tracking amplio */
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-main);
}

h1 {
  letter-spacing: -0.02em;
}

h2 {
  letter-spacing: -0.01em;
}

h3 {
  letter-spacing: 0;
}

/* Títulos secundarios */
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
}

/* ========================
PÁRRAFOS
======================== */

p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ========================
ÉNFASIS
======================== */

strong {
  font-weight: 700;
  color: var(--text-main);
}/* =====================================================
16. ACCESIBILIDAD + PRINT + REDUCCIÓN DE MOVIMIENTO
WCAG 2.1 AA · UX · SEO técnico
===================================================== */


/* ========================
FOCUS VISIBLE (TECLADO)
======================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 108, 242, 0.65);
  border-radius: var(--radius-sm);
}


/* ========================
REDUCCIÓN DE MOVIMIENTO
======================== */

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  /* Mostrar contenido animado inmediatamente */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* ========================
PRINT (IMPRESIÓN PRO)
======================== */

@media print {

  /* Eliminar elementos no útiles en papel */
  header,
  nav,
  .menu-toggle,
  .header-search-wrap,
  .hero__actions,
  .services-hero__actions,
  .btn,
  .home-cta,
  .services-cta,
  .plans,
  #cookieBanner,
  #cookieModal,
  #wa-widget,
  .search-dropdown,
  .breadcrumbs,
  .footer__social {
    display: none !important;
  }

  /* Estilo base */
  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  /* Quitar decoraciones */
  .hero,
  .services-hero {
    background: none;
    padding: 2rem 0;
    text-align: left;
  }

  .hero::before,
  .hero::after,
  .services-hero::after {
    display: none;
  }

  /* Texto claro */
  p, li {
    color: #000;
  }

  h1, h2, h3 {
    color: #000;
  }

  /* Enlaces visibles (SEO + UX en papel) */
  a {
    color: #000;
    text-decoration: underline;
  }

  /* Mostrar URL en impresión */
  a::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    color: #555;
  }

  /* Evitar cortes feos */
  section,
  article,
  .service-card,
  .card,
  .timeline__content,
  .benefit-card {
    page-break-inside: avoid;
  }

  /* Imágenes adaptadas */
  img {
    max-width: 100%;
    page-break-inside: avoid;
  }
}/* =====================================================
   HEADER
===================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  background: rgba(10, 10, 11, 0.88);
  border-bottom: 1px solid var(--border-soft);
  will-change: transform;
}

.header__container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.875rem var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* ── Logo ── */
.logo {
  font-size: clamp(1.1rem, 4.5vw, 1.3rem);
  font-weight: 900;
  letter-spacing: 0.05em;
  color: var(--text-main);
  text-decoration: none;
  position: relative;
  z-index: 200;
  flex-shrink: 0;
}

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

/* ── Desktop nav list ── */
.nav__list {
  display: flex;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__list a {
  position: relative;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.nav__list a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav__list a:hover        { color: var(--text-main); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__list .active        { color: var(--color-primary); }
.nav__list .active::after { transform: scaleX(1); }

/* ── Header right ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* ── Header WhatsApp icon ── */
.header-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(37, 211, 102, 0.25);
  background: rgba(37, 211, 102, 0.07);
  color: #25d366;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.22s ease, border-color 0.22s ease,
              transform 0.22s ease, box-shadow 0.22s ease;
}

.header-wa svg { display: block; width: 16px; height: 16px; }

.header-wa:hover {
  background: rgba(37, 211, 102, 0.16);
  border-color: rgba(37, 211, 102, 0.5);
  box-shadow: 0 0 16px rgba(37, 211, 102, 0.22);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .header-wa { display: none; }
}

/* ── Search ── */
.header-search-wrap { position: relative; }

.header-search {
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-main);
  font-size: 0.85rem;
  width: 120px;
  transition: width 0.25s ease, border-color 0.25s ease;
}

.header-search:focus {
  width: 180px;
  border-color: var(--border-primary);
  outline: none;
}


/* ── Hamburger ─────────────────────────────────────
   44 × 44px touch target (Apple HIG minimum).
   3-bar → X morphs on open via transform.
   Bars: 20px wide, 1.5px tall, 5px gap.
   translateY = center-to-center / 2 = (0.75+5+0.75) = 6.5px
─────────────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  z-index: 200;
  flex-shrink: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-main);
  border-radius: 2px;
  transform-origin: center;
  transition: transform  0.32s cubic-bezier(0.23, 1, 0.32, 1),
              opacity    0.22s ease,
              background 0.2s ease;
}

.menu-toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.menu-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 8px;
}


/* =====================================================
   DESKTOP → MOBILE BREAKPOINT (≤ 768px)
===================================================== */

@media (max-width: 768px) {
  .header-search-wrap     { display: none; }
  .header-actions .btn    { display: none; }
  .menu-toggle            { display: flex; }
  .nav                    { display: none; }
}

@media (max-width: 480px) {
  .header__container {
    padding: 0.75rem 1.25rem;
  }
}

@media (max-width: 390px) {
  .header__container {
    padding: 0.75rem 1rem;
  }
}


/* =====================================================
   BODY SCROLL LOCK
   JS adds/removes .mob-open. overflow:hidden + modern
   overscroll-behavior on the overlay prevent iOS bounce.
===================================================== */

body.mob-open {
  overflow: hidden;
}


/* =====================================================
   MOBILE OVERLAY
   Lives outside <header> to avoid its backdrop-filter
   stacking context. Full-screen, own close control.
===================================================== */

.mob-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;

  /* Horizontal + bottom padding.
     Top is handled by mob-overlay__header padding-top. */
  padding: 0 1.25rem max(2.5rem, env(safe-area-inset-bottom, 0px));

  background: rgba(8, 8, 12, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  /* Scroll on very small phones, prevent chaining to body */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  visibility: hidden;
  will-change: opacity, transform;

  transition: opacity    0.28s cubic-bezier(0.22, 1, 0.36, 1),
              transform  0.28s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.28s;
}

/* Desktop: never show */
@media (min-width: 769px) {
  .mob-overlay { display: none !important; }
}

.mob-overlay.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}


/* ── Overlay header (logo + close btn) ──────────── */

.mob-overlay__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 380px;
  /* Critical: pushes content below iPhone notch / Dynamic Island */
  padding: max(1.25rem, env(safe-area-inset-top, 0px)) 0 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.mob-overlay__logo {
  font-size: 1.25rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.02em;
}

.mob-overlay__logo span {
  color: #4aa3ff;
}

/* ── Close button ── */
.mob-overlay__close {
  /* Default absolute: overridden when inside flex header */
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, transform 0.25s ease;
}

.mob-overlay__header .mob-overlay__close {
  position: static;
}

.mob-overlay__close:hover {
  background: rgba(255, 255, 255, 0.13);
  transform: rotate(90deg);
}

.mob-overlay__close:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}


/* ── Nav link list ─────────────────────────────── */

.mob-overlay__list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

/* Per-item stagger (--i set inline in HTML) */
.mob-overlay__list li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity   0.3s ease       calc(var(--i, 0) * 0.065s + 0.06s),
              transform 0.3s cubic-bezier(0.23, 1, 0.32, 1) calc(var(--i, 0) * 0.065s + 0.06s);
}

.mob-overlay.is-open .mob-overlay__list li {
  opacity: 1;
  transform: translateX(0);
}

/* Link row */
.mob-overlay__list a {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 52px;
  padding: 0.8rem 0.875rem;
  border-radius: 0.875rem;
  border: 1px solid transparent;
  text-decoration: none;
  color: #fff;
  transition: background  0.15s ease,
              border-color 0.15s ease,
              transform   0.18s ease;
}

.mob-overlay__list a:hover {
  background: rgba(13, 108, 242, 0.08);
  border-color: rgba(13, 108, 242, 0.28);
  transform: translateX(3px);
}

.mob-overlay__list a.active {
  background: rgba(13, 108, 242, 0.15);
  border-color: rgba(13, 108, 242, 0.45);
}

.mob-overlay__list a:focus-visible {
  outline: 2px solid rgba(13, 108, 242, 0.75);
  outline-offset: -2px;
  background: rgba(13, 108, 242, 0.06);
  border-color: rgba(13, 108, 242, 0.28);
}

/* Icon badge */
.mob-overlay__icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4aa3ff;
  transition: background 0.2s ease;
}

.mob-overlay__list a:hover .mob-overlay__icon,
.mob-overlay__list a:focus-visible .mob-overlay__icon {
  background: rgba(13, 108, 242, 0.2);
}

/* Text block */
.mob-overlay__text {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.mob-overlay__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

.mob-overlay__sub {
  font-size: 0.77rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1;
}

.mob-overlay__list a.active .mob-overlay__icon {
  background: rgba(13, 108, 242, 0.25);
  border-color: rgba(13, 108, 242, 0.4);
}

.mob-overlay__list a.active .mob-overlay__title {
  color: #90c8ff;
}


/* ── CTA block ─────────────────────────────────── */

.mob-overlay__cta {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1rem;
  margin-top: 0.25rem;

  opacity: 0;
  transform: translateY(8px);
  transition: opacity   0.3s ease 0.38s,
              transform 0.3s ease 0.38s;
}

.mob-overlay.is-open .mob-overlay__cta {
  opacity: 1;
  transform: translateY(0);
}

.mob-overlay__cta .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  border-radius: 0.875rem;
  white-space: normal;
  text-align: center;
  line-height: 1.4;
}

.mob-overlay__cta .btn--secondary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
/* =====================================================
06. HERO · MASTER LEVEL (LIMPIO + CONVERSIÓN)
===================================================== */


/* ========================
BASE HERO
======================== */

.hero {
  position: relative;
  padding: clamp(4rem, 8vw, 6rem) var(--pad) clamp(3rem, 6vw, 5rem);
  text-align: center;
  overflow: hidden;
}

/* Fondo principal */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at 50% 30%, rgba(13,108,242,0.18), transparent 65%),
    radial-gradient(circle at 80% 20%, rgba(124,92,255,0.12), transparent 60%);

  /* Dot mesh sutil */
  background-image:
    radial-gradient(circle at 50% 30%, rgba(13,108,242,0.18), transparent 65%),
    radial-gradient(circle at 80% 20%, rgba(124,92,255,0.12), transparent 60%),
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 32px 32px;

  z-index: -1;
}

/* Halo decorativo */
.hero::after {
  content: "";
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);

  width: 60rem;
  height: 60rem;

  background: radial-gradient(circle, rgba(13,108,242,0.06), transparent 70%);
  z-index: -2;
}


/* ========================
CONTENIDO
======================== */

.hero__content {
  max-width: 52rem;
  margin: 0 auto;
  animation: heroFadeIn 0.6s ease-out both;
  will-change: transform;
}

@keyframes heroFadeIn {
  from { transform: translateY(12px); }
  to   { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__content { animation: none; }
}


/* ========================
ELEMENTOS
======================== */

/* BADGE */
.hero__badge {
  display: inline-block;
  margin-bottom: 1.1rem;
  padding: 0.4rem 1rem;

  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: var(--color-primary);
  background: rgba(13,108,242,0.08);

  border: 1px solid var(--border-soft);
  border-radius: 999px;

  transition: var(--transition);
}

.hero__badge:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(13,108,242,0.3);
}


/* TITULO */
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  margin-bottom: 1.2rem;

}

.hero h1 span {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* DESCRIPCIÓN */
.hero__description,
.hero p {
  max-width: 40rem;
  margin: 0 auto 1.5rem;

  font-size: 1.1rem;
  line-height: 1.7;

  color: var(--text-muted);
}


/* PRUEBA SOCIAL (🔥 CLAVE) */
.hero-proof {
  display: block;
  margin-top: -0.5rem;
  margin-bottom: 1.2rem;

  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  color: var(--text-muted);
  opacity: 0.85;
}


/* CTA */
.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

/* BOTÓN PRINCIPAL MÁS POTENTE */
.hero__actions .btn--primary {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(13,108,242,0.35);
}

.hero__actions .btn--primary:hover {
  transform: scale(1.08);
}


/* TRUST */
.hero__trust {
  margin-top: 1.2rem;

  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  color: var(--text-muted);
  opacity: 0.85;
}


/* ========================
ACCESIBILIDAD
======================== */

.hero a:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(13,108,242,0.6),
    0 0 20px rgba(13,108,242,0.3);
}


/* ========================
VARIANTES
======================== */

/* HERO OSCURO */
.hero-dark-tech {
  background: radial-gradient(
    circle at 50% 30%,
    rgba(13,108,242,0.15),
    var(--bg-dark) 65%
  );
}

.hero-dark-tech::after {
  display: none;
}


/* HERO PEQUEÑO — para páginas internas */
.hero--small {
  padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
}

.hero--small .hero__content {
  max-width: 46rem;
}

.hero--small h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
}

/* HERO BLOG */
.hero--article {
  padding: 5rem var(--pad) 3rem;
}

.hero--article h1 { margin-bottom: 1rem; }
.hero--article p  { margin-bottom: 1.2rem; }


/* ========================
STATUS PAGES (success / cancel)
======================== */

.hero--status {
  min-height: 72vh;
  display: flex;
  align-items: center;
}

/* Icono circular */
.hero__status-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto 1.6rem;
  border-radius: 50%;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__status-icon--success {
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.1);
  border: 1px solid rgba(56, 217, 150, 0.3);
}

.hero__status-icon--cancel {
  color: var(--color-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
}


/* ========================
404 PAGE
======================== */

.hero__404 {
  font-size: clamp(4rem, 12vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 1rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


/* ========================
SERVICES HERO
======================== */

.services-hero {
  position: relative;
  padding: 6rem var(--pad) 5rem;
  text-align: center;
  overflow: hidden;

  background: radial-gradient(
    circle at center,
    rgba(13,108,242,0.12),
    transparent 70%
  );
}

.services-hero::after {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    circle at 50% 0%,
    rgba(13,108,242,0.16),
    transparent 55%
  );

  z-index: 0;
}

.services-hero > * {
  position: relative;
  z-index: 1;
}

.services-hero__content {
  max-width: 42rem;
  margin: 0 auto;
}

.services-hero__badge {
  display: inline-block;
  margin-bottom: 1.2rem;
  padding: 0.4rem 1rem;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  color: var(--color-primary);
  background-color: rgba(13,108,242,0.08);

  border: 1px solid var(--border-soft);
  border-radius: 999px;
}

.services-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: 1.2rem;
}

.services-hero p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2.5rem;
}

.services-hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}/* ========================
07. SECCIONES + CONTAINER
======================== */

/* Sección base */
.section {
  padding: 5rem var(--pad);
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* Variantes de fondo */
.section--alt {
  background-color: var(--bg-section-alt);
}

.section--dark {
  background: rgba(255, 255, 255, 0.018);
}

/* Seguridad: si se usan solas */
.section--alt,
.section--dark {
  padding: 5rem var(--pad);
}

/* Contenedor global */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad); /* mejora responsive */
}


/* ========================
Badges
======================== */

.badge {
  display: inline-block;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.9rem;

  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;

  border-radius: 999px;
}

/* Variantes */
.badge--blue {
  color: var(--color-blue);
  background: rgba(74, 163, 255, 0.1);
  border: 1px solid rgba(74, 163, 255, 0.25);
}

.badge--purple {
  color: var(--color-purple);
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.25);
}

.badge--green {
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.1);
  border: 1px solid rgba(56, 217, 150, 0.25);
}

.badge--amber {
  color: var(--color-amber);
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
}


/* ========================
Encabezados de sección
======================== */

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.section__desc {
  font-size: 1rem;
  color: var(--text-muted);

  max-width: 42rem;
  margin: 0.5rem auto 0;

  line-height: 1.65;
}

/* ========================
CENTRADO PROFESIONAL SECCIONES
======================== */

/* Encabezados de sección */
.section-header {
  max-width: 42rem;
  margin: 0 auto 2.5rem;
}

.section-header--center,
.section-header {
  text-align: center;
}

.section-header h2 {
  text-align: center;
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
}

.section-header p {
  text-align: center;
  margin-top: 0.5rem;
  color: var(--text-muted);
  line-height: 1.65;
}


/* Títulos grandes tipo "ELIGE TU PLAN" */
.section__title {
  text-align: center;
  margin-bottom: 2rem;
}


/* CTA */
.home-cta,
.services-cta {
  text-align: center;
}


/* Subtítulo de sección */
.section-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 42rem;
  margin: 0.5rem auto 0;
  text-align: center;
}/* =====================================================
GRID SYSTEM · LAYOUT GLOBAL
Contenedores · Grid · Columnas reutilizables
===================================================== */


/* ========================
CONTAINER GLOBAL
======================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad);
}


/* ========================
GRID BASE
======================== */

.grid {
  display: grid;
  gap: var(--gap, 1.5rem);
}


/* ========================
AUTO GRID (RESPONSIVE)
min() previene overflow en viewports estrechos:
sin él, el grid intentaría crear columnas más
anchas que el viewport.
======================== */

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: var(--gap, 1.5rem);
}

/* Fluid auto grid con prop CSS personalizable:
   style="--min: 20rem" en el elemento HTML */
.auto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 18rem)), 1fr));
  gap: var(--gap, 1.5rem);
}


/* ========================
COLUMNAS FIJAS
Usar solo cuando el número de columnas debe
ser exacto independientemente del contenido.
======================== */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap, 1.5rem);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap, 1.5rem);
}

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


/* ========================
GRID ESPECIAL (FEATURES)
======================== */

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


/* ========================
STACK — flex column
======================== */

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap, 1rem);
}


/* ========================
CLUSTER — flex row wrapping
======================== */

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap, 1rem);
  align-items: center;
}


/* ========================
CENTRADO / ALINEACIÓN
======================== */

.grid-center   { align-items: center; justify-content: center; }
.grid-between  { justify-content: space-between; }
.grid-align-center { align-items: center; }


/* ========================
GAPS UTILIDAD
======================== */

.gap-xs  { gap: 0.5rem; }
.gap-sm  { gap: 0.75rem; }
.gap-md  { gap: 1.5rem; }
.gap-lg  { gap: 2.5rem; }


/* ========================
MAX WIDTH HELPERS
======================== */

.max-sm  { max-width: 540px;  margin: 0 auto; }
.max-md  { max-width: 800px;  margin: 0 auto; }
.max-lg  { max-width: 1100px; margin: 0 auto; }


/* ========================
GRID RESPONSIVE
≤ 992px — laptop pequeña
≤ 768px — tablet/móvil
======================== */

@media (max-width: 992px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (max-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
FOOTER · MASTER LEVEL (PRO + CONVERSIÓN)
===================================================== */

/* ========================
BASE
======================== */

.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border-soft);
  padding: 4rem var(--pad) 2rem;
}


/* ========================
CTA SUPERIOR (🔥 NUEVO)
======================== */

.footer-cta {
  text-align: center;
  margin-bottom: 3rem;
}

.footer-cta h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}

.footer-cta p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-cta__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-cta__trust {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* ========================
GRID
======================== */

.footer__container {
  max-width: var(--container);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 2.5rem;
}

.footer__container > * {
  display: flex;
  flex-direction: column;
}


/* ========================
BRANDING
======================== */

.footer__logo {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--text-main);
  text-decoration: none;
}

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

.footer__logo:hover span {
  text-shadow: 0 0 12px rgba(13,108,242,0.55);
}

.footer__description {
  margin-top: 0.8rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}


/* ========================
LISTAS
======================== */

.footer h3 {
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 1rem;

  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.footer li {
  font-size: 0.9rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer a:hover {
  color: var(--color-primary);
}


/* ========================
CONTACTO
======================== */

.contact-label {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
  color: var(--text-muted);
}

.footer__contact a {
  color: var(--text-main);
}

.footer__contact a:hover {
  color: var(--color-primary);
}


/* ========================
COOKIES
======================== */

.footer__cookie-button {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

.footer__cookie-button:hover {
  color: var(--color-primary);
}


/* ========================
SOCIAL ICONS
======================== */

.footer__social {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  text-decoration: none;
  flex-shrink: 0;
  transition: color 0.22s ease,
              background 0.22s ease,
              border-color 0.22s ease,
              transform 0.22s ease,
              box-shadow 0.22s ease;
}

.social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.social-icon--linkedin:hover  { color: #0a66c2; background: rgba(10,102,194,.14); border-color: rgba(10,102,194,.35); box-shadow: 0 6px 20px rgba(10,102,194,.2); }
.social-icon--instagram:hover { color: #e1306c; background: rgba(225,48,108,.1);  border-color: rgba(225,48,108,.3);  box-shadow: 0 6px 20px rgba(225,48,108,.18); }
.social-icon--youtube:hover   { color: #ff0000; background: rgba(255,0,0,.1);     border-color: rgba(255,0,0,.28);    box-shadow: 0 6px 20px rgba(255,0,0,.15); }
.social-icon--github:hover    { color: #e6e6e6; background: rgba(230,230,230,.1); border-color: rgba(230,230,230,.2); box-shadow: 0 6px 20px rgba(255,255,255,.08); }
.social-icon--whatsapp:hover  { color: #25d366; background: rgba(37,211,102,.12); border-color: rgba(37,211,102,.32); box-shadow: 0 6px 20px rgba(37,211,102,.2); }
.social-icon--email:hover     { color: #ea4335; background: rgba(234,67,53,.1);   border-color: rgba(234,67,53,.28);  box-shadow: 0 6px 20px rgba(234,67,53,.15); }

@media (max-width: 768px) {
  .footer__social {
    justify-content: center;
  }
}


/* ========================
BOTTOM
======================== */

.footer__bottom {
  max-width: var(--container);
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);

  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
}


/* =====================================================
RESPONSIVE · MOBILE PERFECTO
===================================================== */

@media (max-width: 768px) {

  .footer {
    padding: 3rem 1rem 2rem;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
  }

  .footer__brand,
  .footer__contact,
  .footer__legal,
  .footer__links {
    width: 100%;
  }

  .footer__contact ul,
  .footer__legal ul {
    padding: 0;
  }

  .footer__contact li,
  .footer__legal li {
    margin-bottom: 0.5rem;
  }

  .footer__bottom {
    text-align: center;
  }

}/* =====================================================
BUTTONS · SISTEMA GLOBAL
Botones reutilizables · CTA · accesibilidad
===================================================== */


/* ========================
BASE BUTTON
======================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;

  padding: 0.85rem 1.6rem;

  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  border-radius: var(--radius-md);
  border: 1px solid transparent;

  cursor: pointer;
  text-decoration: none;

  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition);
}


/* ========================
PRIMARY (CTA PRINCIPAL)
======================== */

.btn--primary {
  background: linear-gradient(135deg, #0d6cf2, #1a82ff);
  color: #fff;
  border: none;
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px rgba(13, 108, 242, 0.35),
    0 0 15px rgba(13, 108, 242, 0.25);
}

.btn--primary:active {
  transform: scale(0.96);
}


/* ========================
SECONDARY
======================== */

.btn--secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  border: 1px solid var(--border-soft);
}

.btn--secondary:hover {
  transform: translateY(-2px);
  background: rgba(13, 108, 242, 0.08);
  border-color: rgba(13, 108, 242, 0.4);
}


/* ========================
OUTLINE
======================== */

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.btn--outline:hover {
  background: rgba(13, 108, 242, 0.1);
}


/* ========================
GHOST (MINIMAL)
======================== */

.btn--ghost {
  background: transparent;
  color: var(--text-main);
  border: none;
}

.btn--ghost:hover {
  color: var(--color-primary);
}


/* ========================
FULL WIDTH
======================== */

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


/* ========================
SMALL / LARGE
======================== */

.btn--sm {
  padding: 0.6rem 1.2rem;
  font-size: 0.75rem;
}

.btn--lg {
  padding: 1rem 2rem;
  font-size: 0.95rem;
}


/* ========================
ICON BUTTON
======================== */

.btn--icon {
  padding: 0.6rem;
  border-radius: 50%;
}

.btn--icon svg {
  width: 18px;
  height: 18px;
}


/* ========================
DISABLED
======================== */

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}


/* ========================
FOCUS ACCESSIBILITY
======================== */

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 108, 242, 0.6);
}


/* ========================
LOADING STATE
======================== */

.btn.is-loading {
  pointer-events: none;
  opacity: 0.7;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;

  position: absolute;
  animation: btnLoading 0.7s linear infinite;
}


/* ========================
ANIMACIÓN LOADING
======================== */

@keyframes btnLoading {
  to { transform: rotate(360deg); }
}/* =====================================================
   CARDS · PREMIUM UI
===================================================== */


/* =====================================================
   SERVICIOS WRAPPER
===================================================== */

.services {
  padding: 5rem var(--pad) 6rem;
}

.services__grid {
  max-width: var(--container);
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: 1.5rem;
}


/* =====================================================
   SERVICE CARD
===================================================== */

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);

  padding: 2.5rem 2rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  gap: 1rem;

  transition: transform 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 108, 242, 0.5);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(13, 108, 242, 0.14);
}

/* Icon */
.service-card__icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.18);
  border-radius: 14px;
  padding: 0.8rem;

  color: var(--color-primary);

  transition: background 0.3s ease, transform 0.3s ease;
}

.service-card:hover .service-card__icon {
  background: rgba(13, 108, 242, 0.18);
  transform: scale(1.08);
}

/* Heading */
.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  max-width: 280px;
}

/* Body text */
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 280px;
  margin: 0;
}

/* Link */
.service-card a {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.service-card a:hover {
  opacity: 0.75;
}


/* =====================================================
   PROCESS STEPS
===================================================== */

.process {
  padding: 5rem var(--pad);
}

.process__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.process__step {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);

  padding: 2.5rem 1.75rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;

  transition: transform 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.process__step:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 108, 242, 0.4);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(13, 108, 242, 0.1);
}

.process__number {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-primary);

  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.25);
  border-radius: 50%;

  transition: background 0.3s ease, transform 0.3s ease;
}

.process__step:hover .process__number {
  background: rgba(13, 108, 242, 0.2);
  transform: scale(1.1);
}

.process__step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.process__step p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}


/* =====================================================
   TESTIMONIALS / EXPECT CARDS
===================================================== */

.testimonials {
  padding: 5rem var(--pad);
}

.testimonials__grid {
  max-width: 960px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);

  padding: 2rem 1.75rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;

  transition: transform 0.3s ease,
              border-color 0.3s ease,
              box-shadow 0.3s ease;
}

.testimonial:hover {
  transform: translateY(-5px);
  border-color: rgba(13, 108, 242, 0.35);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.testimonial__stars {
  color: var(--color-amber);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.testimonial p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-soft, #cbd5e1);
  max-width: 280px;
  margin: 0;
}

.testimonial span {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}


/* =====================================================
   GENERIC CARD GRID
===================================================== */

.cards-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.cards-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
}

.cards-grid--5 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
}


/* =====================================================
   PRICING PLANS
===================================================== */

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;

  max-width: 1000px;
  margin: 3rem auto 0;
}

.plan {
  position: relative;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  padding: 2.5rem 2rem;

  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.008)
  );

  border: 1px solid var(--border-soft);
  border-radius: 20px;

  transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
}

.plan:hover {
  transform: translateY(-10px);
  border-color: rgba(13, 108, 242, 0.3);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.4),
    0 0 32px rgba(13, 108, 242, 0.12);
}

.plan h3 {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.plan__price {
  font-size: 3rem;
  font-weight: 900;
  margin: 0.75rem 0 0.25rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1;
}

.plan__currency {
  font-size: 1.5rem;
  font-weight: 700;
  vertical-align: super;
  margin-right: 2px;
  color: var(--text-muted);
}

.plan__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
  opacity: 0.75;
}

.plan ul {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.75rem;
  padding: 0;
  text-align: left;
  width: 100%;
}

.plan ul li {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.4;
}

.plan ul li::before {
  content: "✓";
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 900;
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.12);
  border-radius: 50%;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.05rem;
}

.plan .btn {
  width: 100%;
  margin-top: auto;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* Micro-trust bajo el botón */
.plan__microtrust {
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
  margin: 0.5rem 0 0;
  letter-spacing: 0.01em;
  line-height: 1.5;
}

/* WA dudas secundario */
.plan__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #25d366;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.plan__wa:hover {
  opacity: 1;
  color: #1db954;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.plans__note {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plans__note a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.plans__note a:hover {
  text-decoration: underline;
}

/* Featured plan */
.plan--popular {
  transform: scale(1.05);
  border-color: rgba(13, 108, 242, 0.55);
  background: linear-gradient(
    160deg,
    rgba(13, 108, 242, 0.06),
    rgba(13, 108, 242, 0.02)
  );
  box-shadow:
    0 0 0 1px rgba(13, 108, 242, 0.25),
    0 16px 48px rgba(13, 108, 242, 0.2),
    0 0 64px rgba(13, 108, 242, 0.08);
}

.plan--popular:hover {
  transform: scale(1.05) translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(13, 108, 242, 0.4),
    0 28px 64px rgba(13, 108, 242, 0.28),
    0 0 80px rgba(13, 108, 242, 0.12);
}

.plan--popular::before {
  content: "MÁS POPULAR";

  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);

  background: linear-gradient(135deg, #0d6cf2, #4aa3ff);
  color: #fff;

  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;

  padding: 0.3rem 1rem;
  border-radius: 999px;

  box-shadow: 0 4px 16px rgba(13, 108, 242, 0.5);
  white-space: nowrap;
}


/* =====================================================
   URGENCY
===================================================== */

.urgency-box {
  margin-top: 1.8rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  opacity: 0.9;
}


/* =====================================================
   AUDIENCE CARDS (¿Para quién es?)
===================================================== */

.audience__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;

  transition: border-color 0.28s ease,
              transform    0.28s ease,
              box-shadow   0.28s ease;
}

.audience-card:hover {
  border-color: rgba(13, 108, 242, 0.5);
  transform: translateY(-5px);
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.35),
    0 0 22px rgba(13, 108, 242, 0.12);
}

.audience-card__icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0.75rem;
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.25s ease;
}

.audience-card:hover .audience-card__icon {
  background: rgba(13, 108, 242, 0.18);
}

.audience-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
}

.audience-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0;
}

.audience-card__link {
  margin-top: auto;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: opacity 0.2s ease;
}

.audience-card__link:hover {
  opacity: 0.75;
}


/* =====================================================
   WHY CARDS (Por qué MasterCodeWeb — Stripe style)
===================================================== */

.why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem;

  display: flex;
  gap: 1.25rem;
  align-items: flex-start;

  transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.why-card:hover {
  border-color: rgba(13, 108, 242, 0.4);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.3),
    0 0 18px rgba(13, 108, 242, 0.1);
}

.why-card__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 0.625rem;
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  transition: background 0.25s ease;
}

.why-card:hover .why-card__icon {
  background: rgba(13, 108, 242, 0.18);
}

.why-card__body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--text-main);
  line-height: 1.3;
}

.why-card__body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}


/* =====================================================
   EXPECT CARDS (Qué puedes esperar)
===================================================== */

.expect__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.expect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  padding: 1.75rem 1.75rem 1.75rem 1.5rem;

  transition: background 0.22s ease, box-shadow 0.22s ease;
}

.expect-card:hover {
  background: rgba(13, 108, 242, 0.04);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.expect-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.expect-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}


/* =====================================================
   RESPONSIVE
===================================================== */

/* Plans grid: 3 columns on desktop, 1 on tablet/mobile.
   No auto-fit here because the featured plan (scale effect)
   needs a fixed 3-column layout on desktop. */
@media (max-width: 992px) {
  .plans {
    grid-template-columns: 1fr;
    max-width: 460px;
  }

  .plan--popular {
    transform: none;
    box-shadow: 0 0 0 2px rgba(13,108,242,0.4), 0 12px 36px rgba(13,108,242,0.18);
  }

  .plan--popular:hover { transform: translateY(-8px); }
}

/* At ≤768px: auto-fit grids handle columns automatically.
   Only override card max-width for readability centering.    */
@media (max-width: 768px) {
  .service-card,
  .testimonial,
  .audience-card {
    max-width: 540px;
    margin-inline: auto;
    padding: 1.75rem 1.5rem;
  }

  /* process__step: full width — uses left-right grid layout */
  .process__step {
    padding: 1.75rem 1.5rem;
  }

  .audience-card p,
  .service-card h3,
  .service-card p,
  .process__step h3,
  .process__step p,
  .testimonial p {
    max-width: 100%;
  }
}
/* ========================
04. BOTONES
======================== */

/* Base compartida */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.8rem;

  border: none;
  border-radius: var(--radius-md);

  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;

  text-decoration: none !important;
  cursor: pointer;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background-color var(--transition),
    border-color var(--transition),
    color var(--transition);
}


/* ========================
Botón primario
======================== */

.btn--primary {
  position: relative;
  overflow: hidden;
  z-index: 1;

  background: linear-gradient(135deg, var(--color-primary), #1a82ff);
  color: #ffffff !important;
}

/* Efecto brillo */
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;

  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25),
    rgba(255, 255, 255, 0)
  );

  transform: translateX(-100%);
  transition: transform 0.6s ease;
  z-index: -1;
}

/* Estados */
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 25px rgba(13, 108, 242, 0.45),
    0 0 18px rgba(13, 108, 242, 0.35);
}

.btn--primary:hover::before {
  transform: translateX(100%);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 5px 12px rgba(13, 108, 242, 0.35);
}

.btn--primary:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(13, 108, 242, 0.6),
    0 0 20px rgba(13, 108, 242, 0.4);
}


/* ========================
Botón secundario
======================== */

.btn--secondary {
  background-color: transparent;
  border: 1px solid var(--border-soft);
  color: var(--text-main);
}

.btn--secondary:hover {
  background-color: rgba(13, 108, 242, 0.08);
  border-color: rgba(13, 108, 242, 0.4);
  transform: translateY(-2px);
}

.btn--secondary:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 108, 242, 0.4);
}


/* ========================
Outline azul
======================== */

.btn--outline-blue {
  background-color: transparent;
  border: 1px solid rgba(74, 163, 255, 0.45);
  color: var(--color-blue);
}

.btn--outline-blue:hover {
  background-color: rgba(74, 163, 255, 0.08);
  border-color: rgba(74, 163, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74, 163, 255, 0.2);
}

.btn--outline-blue:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(74, 163, 255, 0.5);
}


/* ========================
Outline púrpura
======================== */

.btn--outline-purple {
  background-color: transparent;
  border: 1px solid rgba(124, 92, 255, 0.45);
  color: var(--color-purple);
}

.btn--outline-purple:hover {
  background-color: rgba(124, 92, 255, 0.08);
  border-color: rgba(124, 92, 255, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(124, 92, 255, 0.2);
}

.btn--outline-purple:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(124, 92, 255, 0.5);
}


/* ========================
Enlace inline
======================== */

.link {
  color: var(--color-primary);
  font-weight: 600;

  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.2em;

  transition:
    color var(--transition),
    text-decoration-color var(--transition);
}

.link:hover {
  text-decoration-color: var(--color-primary);
}

.link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13, 108, 242, 0.5);
  border-radius: 2px;
}/* =====================================================
   BREADCRUMBS
===================================================== */

.breadcrumbs {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem var(--pad) 0.5rem;

  font-size: 0.78rem;

  /* Fade-in al cargar la página */
  animation: breadcrumb-fade 0.35s ease both;
}

@keyframes breadcrumb-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Lista ───────────────────────────────────── */
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ── Items ───────────────────────────────────── */
.breadcrumbs li {
  display: flex;
  align-items: center;
  color: #9ca3af;
}

/* Separador > entre ítems (no aparece antes del primero) */
.breadcrumbs li + li::before {
  content: ">";
  margin: 0 0.45rem;
  color: #6b7280;
  font-size: 0.72rem;
  line-height: 1;
}

/* ── Página actual (último elemento, sin enlace) */
.breadcrumbs [aria-current="page"] {
  color: #6b7280;
  font-weight: 500;
}

/* ── Enlaces ─────────────────────────────────── */
.breadcrumbs a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumbs a:hover {
  color: var(--text-main);
}

/* ── Foco accesible ──────────────────────────── */
.breadcrumbs a:focus-visible {
  outline: 2px solid rgba(13, 108, 242, 0.5);
  outline-offset: 2px;
  border-radius: 2px;
}
/* ========================
10. FORMULARIOS + PRESUPUESTO
======================== */


/* ========================
FORM-GROUP (contacto + presupuesto)
======================== */

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.form-group label span[aria-hidden] {
  color: var(--color-error);
  margin-left: 2px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(13,108,242,0.12);
  outline: none;
}

.form-group select {
  cursor: pointer;
}

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

/* ── Phone group: prefix select + number input ── */
.phone-group {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.phone-group select {
  flex: 0 0 auto;
  width: auto;
  min-width: 108px;
  padding: 0.85rem 0.6rem;
  cursor: pointer;
}

.phone-group input[type="tel"] {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.form-error {
  font-size: 0.78rem;
  color: var(--color-error);
  margin-top: 0.2rem;
}

.form-note {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 0.8rem;
  min-height: 1.2rem;
}


/* ========================
CONTACT GRID (contacto.html)
======================== */

.contact__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact__form h2,
.contact__info h2,
.budget__form h2,
.budget__info h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.contact__info p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.contact__list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact__list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact__list strong {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.contact__list a,
.contact__list span {
  font-size: 0.95rem;
  color: var(--text-main);
}

.contact__list a:hover {
  color: var(--color-primary);
}

.contact__trust {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.3rem;
}

.contact__trust p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
}

@media (max-width: 768px) {
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


/* ========================
BUDGET GRID (presupuesto.html)
======================== */

.budget__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: start;
}

.budget__info h2 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.budget__info ul {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.budget__info ul li {
  font-size: 0.95rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.budget__info ul li::before {
  content: "✓";
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.1);
  border-radius: 50%;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.budget__info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.budget__info a:not(.btn) {
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .budget__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


/* ========================
SEARCH DROPDOWN
======================== */

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 220px;

  background: #111418;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);

  box-shadow: 0 12px 30px rgba(0,0,0,0.5);
  z-index: var(--z-dropdown);

  overflow: hidden;
  list-style: none;
}

.search-dropdown[hidden] {
  display: none;
}

.search-dropdown__item {
  display: flex;
  flex-direction: column;
  padding: 0.7rem 1rem;
  cursor: pointer;
  transition: background var(--transition);
  gap: 0.15rem;
}

.search-dropdown__item:hover,
.search-dropdown__item.is-active {
  background: rgba(13,108,242,0.1);
  cursor: pointer;
}

.search-dropdown__cat {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
}

.search-dropdown__title {
  font-size: 0.9rem;
  color: var(--text-main);
}

.search-dropdown__title mark {
  background: rgba(13,108,242,0.25);
  color: var(--color-blue);
  border-radius: 2px;
}

.search-dropdown__empty {
  padding: 0.8rem 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}


/* ========================
PAYMENT ERROR INLINE
======================== */

.payment-error {
  margin-top: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(239,68,68,0.1);
  border: 1px solid rgba(239,68,68,0.3);
  color: #f87171;
  font-size: 0.82rem;
  line-height: 1.5;
}


/* ========================
MAP (contacto.html)
======================== */

.map {
  margin-top: 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.map a {
  display: block;
}

.map img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
  filter: grayscale(0.35) invert(0.06) brightness(0.95);
}

@media (max-width: 640px) {
  .map img {
    height: 260px;
  }
}

/* ========================
MAP CTA — dirección + enlace
======================== */

.map-cta {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.1rem 0;
}

.map-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.map-cta__label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.25rem;
  line-height: 1;
}

.map-cta__address {
  font-size: 0.9rem;
  color: var(--text-soft);
  font-style: normal;
  margin: 0;
  line-height: 1.5;
}

.map-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  background: transparent;
  color: var(--color-primary);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(13, 108, 242, 0.35);
  border-radius: var(--radius-md);
  padding: 0.55rem 1.1rem;
  transition: background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}

.map-cta__btn:hover {
  background: rgba(13, 108, 242, 0.1);
  border-color: var(--color-primary);
  color: #fff;
}

.map-cta__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .map-cta__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.9rem;
  }

  .map-cta__btn {
    width: 100%;
    justify-content: center;
  }
}


/* ========================
Selector modo presupuesto
======================== */

.budget-mode {
  max-width: var(--container);
  margin: 0 auto 2rem;

  display: flex;
  justify-content: center;
  gap: 0.8rem;
}

.budget-mode__btn {
  padding: 0.75rem 1.4rem;

  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);

  background: rgba(255,255,255,0.02);
  color: var(--text-main);

  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  cursor: pointer;
  transition: var(--transition);
}

.budget-mode__btn:hover {
  transform: translateY(-2px);
  background: rgba(13,108,242,0.08);
}

.budget-mode__btn.is-active {
  border-color: rgba(13,108,242,0.7);
  color: var(--color-primary);
}


/* ========================
Resumen presupuesto
======================== */

.budget-summary {
  max-width: var(--container);
  margin: 2.5rem auto 0;

  padding: 1.4rem;

  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);

  background: rgba(255,255,255,0.02);
}

.budget-summary__line {
  display: flex;
  justify-content: space-between;

  font-weight: 900;
  font-size: 1.1rem;
}

#budgetTotal {
  color: var(--color-primary);
  font-size: 1.4rem;
}


/* ========================
Formulario
======================== */

.budget-form {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);

  padding: 2.5rem 2rem;
}

/* Grid */
.budget-form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

/* Label */
.budget-field label {
  display: block;
  margin-bottom: 0.5rem;

  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;

  color: var(--text-muted);
}

/* Inputs */
.budget-field input,
.budget-field textarea,
.budget-field select {
  width: 100%;

  padding: 0.9rem 1rem;

  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);

  background: rgba(255,255,255,0.025);
  color: var(--text-main);

  outline: none;
  transition: var(--transition);
}

/* Focus */
.budget-field input:focus,
.budget-field textarea:focus,
.budget-field select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(13,108,242,0.15);
}

/* Full width */
.budget-field--full {
  grid-column: 1 / -1;
}


/* ========================
Checkbox
======================== */

.budget-checkline {
  display: flex;
  gap: 0.75rem;
}

.budget-checkline input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}

.budget-checkline a {
  color: var(--color-primary);
}


/* ========================
Botón submit
======================== */

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

.budget-trust-line {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* ========================
Pago seguro
======================== */

.payment-trust--bottom {
  margin-top: 4rem;
  padding: 3rem var(--pad);
  text-align: center;
}

.payment-trust__logos {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.payment-card {
  width: 110px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: rgba(255,255,255,0.03);
  transition: var(--transition);
}

.payment-card:hover {
  transform: translateY(-5px);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.form-check span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.form-check a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* ── Honeypot (invisible para humanos, visible para bots) ── */
.form-group--hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}


/* ── Toast notifications ─────────────────────────────────── */
.mcw-toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(1rem);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md, 8px);
  font-size: 0.92rem;
  font-weight: 500;
  max-width: min(90vw, 480px);
  text-align: center;
  z-index: 9999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}

.mcw-toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mcw-toast--success {
  background: #166534;
  color: #dcfce7;
  border: 1px solid #16a34a;
}

.mcw-toast--error {
  background: #7f1d1d;
  color: #fee2e2;
  border: 1px solid #dc2626;
}

.mcw-toast--info {
  background: #1e3a5f;
  color: #dbeafe;
  border: 1px solid #2563eb;
}

.form-trust {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 0.5rem;
}
/* ========================
09. CTA (CALL TO ACTION)
======================== */

/* Bloque base CTA */
.home-cta,
.services-cta {
  padding: 5rem var(--pad);
  text-align: center;
}

/* Contenido centrado */
.home-cta__content,
.services-cta__content {
  max-width: 48rem;
  margin: 0 auto;
}


/* ========================
Fondos
======================== */

/* CTA principal (home) */
.home-cta {
  background:
    radial-gradient(circle at 50% 0%, rgba(13, 108, 242, 0.14), transparent 60%),
    linear-gradient(180deg, rgba(13, 108, 242, 0.06), rgba(124, 92, 255, 0.04));
  border-top: 1px solid rgba(13, 108, 242, 0.2);
  border-bottom: 1px solid var(--border-soft);
}

/* CTA servicios */
.services-cta {
  background: rgba(13, 108, 242, 0.04);
}


/* ========================
Texto
======================== */

.home-cta h2,
.services-cta h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.home-cta p,
.services-cta p {
  max-width: 36rem;
  margin: 0 auto 2rem;

  font-size: 1rem;
  line-height: 1.65;

  color: var(--text-muted);
}


/* ========================
Nota de conversión
======================== */

.cta-note {
  margin-top: 1.2rem;

  font-size: 0.875rem;
  line-height: 1.6;

  color: var(--text-muted);
  opacity: 0.85;
}


/* ========================
MEJORA PRO (CONVERSIÓN)
======================== */

/* Efecto hover en todo el bloque */
.home-cta:hover,
.services-cta:hover {
  background: linear-gradient(
    135deg,
    rgba(13, 108, 242, 0.12),
    rgba(13, 108, 242, 0.03)
  );
}

/* ========================
GARANTÍA (CONVERSIÓN)
======================== */

.guarantee {
  margin-top: 1rem;

  font-size: 0.85rem;
  line-height: 1.5;

  color: var(--text-muted);
  text-align: center;

  opacity: 0.9;
}


/* ========================
ACCIONES CTA (dobles botones)
======================== */

.home-cta__content .hero__actions,
.services-cta__content .hero__actions {
  justify-content: center;
  margin-top: 0;
  margin-bottom: 0;
}


/* ========================
SOCIAL CTA SECTION
======================== */

.social-cta {
  padding: 4.5rem var(--pad);
  text-align: center;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(13,108,242,0.07), transparent 65%);
  border-top: 1px solid var(--border-soft);
}

.social-cta .section-header {
  margin-bottom: 2.5rem;
}

.social-cta__links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: 600px;
  margin: 0 auto;
}

.social-cta__item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: var(--bg-card);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: border-color 0.22s ease, background 0.22s ease,
              color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.social-cta__item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-cta__item:hover { transform: translateY(-3px); }

.social-cta__item--linkedin:hover  { color: #0a66c2; border-color: rgba(10,102,194,.4);  background: rgba(10,102,194,.1);  box-shadow: 0 8px 24px rgba(10,102,194,.18); }
.social-cta__item--instagram:hover { color: #e1306c; border-color: rgba(225,48,108,.35); background: rgba(225,48,108,.09); box-shadow: 0 8px 24px rgba(225,48,108,.15); }
.social-cta__item--youtube:hover   { color: #ff3333; border-color: rgba(255,51,51,.35);  background: rgba(255,51,51,.09);  box-shadow: 0 8px 24px rgba(255,0,0,.14); }
.social-cta__item--github:hover    { color: #e0e0e0; border-color: rgba(220,220,220,.22);background: rgba(220,220,220,.07); box-shadow: 0 8px 24px rgba(255,255,255,.06); }
.social-cta__item--whatsapp:hover  { color: #25d366; border-color: rgba(37,211,102,.38); background: rgba(37,211,102,.1);  box-shadow: 0 8px 24px rgba(37,211,102,.18); }

@media (max-width: 540px) {
  .social-cta__links {
    flex-direction: column;
    align-items: center;
  }
  .social-cta__item {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}/* ========================
13. COOKIES
======================== */

/* Estado base */
#cookieBanner,
#cookieModal {
  display: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Estado visible */
#cookieBanner.is-visible,
#cookieModal.is-visible {
  display: block;
  opacity: 1;
  pointer-events: auto;
}


/* ========================
Banner cookies
======================== */

#cookieBanner {
  position: fixed;
  inset: auto 0 0;
  z-index: 9998;

  padding: 1rem var(--pad);

  background: rgba(10,10,11,0.96);
  border-top: 1px solid var(--border-soft);

  backdrop-filter: blur(8px);
  will-change: opacity;
}

.cookie-inner {
  max-width: var(--container);
  margin: 0 auto;

  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

#cookieBanner p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-muted);
}

#cookieBanner a {
  color: var(--color-primary);
  text-decoration: none;
}

#cookieBanner a:hover {
  text-decoration: underline;
}


/* Botones */

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.cookie-btn {
  padding: 0.65rem 1rem;

  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);

  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;

  background: rgba(255,255,255,0.03);
  color: var(--text-main);

  cursor: pointer;
  transition: var(--transition);
}

.cookie-btn:hover {
  transform: translateY(-2px);
  background: rgba(13,108,242,0.08);
}

.cookie-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(13,108,242,0.6);
}

/* Primario */

.cookie-btn.primary {
  border: none;
  background: linear-gradient(135deg,#0d6cf2,#1a82ff);
  color: #fff;
}

.cookie-btn.primary:hover {
  box-shadow:
    0 10px 25px rgba(13,108,242,0.4),
    0 0 18px rgba(13,108,242,0.3);
}


/* ========================
Modal cookies
======================== */

#cookieModal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  padding: var(--pad);

  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(6px);
}

/* Panel */

.modal-panel {
  max-width: 40rem;
  margin: 8vh auto 0;

  padding: 2rem 1.8rem;

  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);

  box-shadow: 0 20px 60px rgba(0,0,0,0.6);

  transform: translateY(20px);
  transition: transform 0.3s ease;
}

#cookieModal.is-visible .modal-panel {
  transform: translateY(0);
}


/* Texto */

#cookieModal h2 {
  margin-bottom: 0.9rem;
}

#cookieModal p {
  font-size: 0.95rem;
  margin-bottom: 1.2rem;
  color: var(--text-muted);
}


/* Opciones */

#cookieModal label {
  display: flex;
  align-items: center;
  gap: 0.65rem;

  margin-top: 0.75rem;

  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
}

#cookieModal label small {
  font-size: 0.8rem;
  opacity: 0.7;
}

#cookieModal input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
}/* =====================================================
   WHATSAPP FAB — Floating Action Button
   Posición fija · glassmorphism dark · minimal
   Siempre visible — sin dependencia de JS
===================================================== */

.wa-fab {
  /* Posición */
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 24px;
  z-index: var(--z-wa);

  /* Tamaño — ligeramente reducido para ceder protagonismo a la wa-card */
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex-shrink: 0;

  /* Layout interno */
  display: flex;
  align-items: center;
  justify-content: center;

  /* Fondo oscuro con toque verde, más contenido */
  background: rgba(8, 20, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(37, 211, 102, 0.22);

  /* Sombra suave — sin glow agresivo */
  box-shadow:
    0 4px 16px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(37, 211, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  color: #25d366;
  text-decoration: none;
  pointer-events: auto;
  isolation: isolate;

  will-change: transform;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease;
}

/* Hover — se activa sin exagerar */
.wa-fab:hover {
  transform: translateY(-2px);
  opacity: 1;
  box-shadow:
    0 6px 20px rgba(0, 0, 0, 0.4),
    0 0 14px rgba(37, 211, 102, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Active */
.wa-fab:active {
  transform: translateY(0);
  transition-duration: 0.1s;
}

/* Focus visible — accesibilidad teclado */
.wa-fab:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
  opacity: 1;
}

/* Responsive — móvil */
@media (max-width: 480px) {
  .wa-fab {
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    right: 18px;
    width: 44px;
    height: 44px;
  }
}


/* =====================================================
   WA-CARD — Tarjeta CTA WhatsApp premium
   Centrada · dark glass · alta conversión
===================================================== */

.wa-card-section {
  padding: 3rem 0 5rem;
  background-color: var(--bg-dark);
}

.wa-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 640px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(10, 14, 20, 0.98) 0%, rgba(13, 20, 34, 0.98) 100%);
  border: 1px solid rgba(37, 211, 102, 0.14);
  border-radius: 20px;
  padding: 2.5rem 3rem;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.025) inset,
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 120px rgba(37, 211, 102, 0.04);
}

/* Línea de luz superior centrada */
.wa-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 211, 102, 0.55), transparent);
  pointer-events: none;
}

/* Glow ambiental superior */
.wa-card::after {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(37, 211, 102, 0.06) 0%, transparent 65%);
  pointer-events: none;
}


/* ─── Badge ───────────────────────────────────────── */

.wa-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgba(37, 211, 102, 0.08);
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 2rem;
  padding: 0.32rem 0.875rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--color-wa);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.wa-card__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-wa);
  box-shadow: 0 0 6px rgba(37, 211, 102, 0.8);
  animation: wa-dot-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes wa-dot-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(37, 211, 102, 0.8); }
  50%       { opacity: 0.35; box-shadow: 0 0 3px rgba(37, 211, 102, 0.35); }
}


/* ─── Contenido ───────────────────────────────────── */

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

.wa-card__title {
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 1rem 0 0.875rem;
}

.wa-card__text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 46ch;
}


/* ─── Acción ──────────────────────────────────────── */

.wa-card__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.wa-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  background: #25d366;
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  padding: 1rem 2.25rem;
  min-height: 48px;
  border-radius: var(--radius-lg);
  box-shadow:
    0 4px 20px rgba(37, 211, 102, 0.36),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition:
    background  0.22s cubic-bezier(0.22, 1, 0.36, 1),
    transform   0.22s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow  0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.wa-card__btn svg {
  flex-shrink: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.wa-card__btn:hover {
  background: #1db954;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 10px 32px rgba(37, 211, 102, 0.46),
    0 4px 14px rgba(0, 0, 0, 0.28);
}

.wa-card__btn:hover svg {
  transform: scale(1.12);
}

.wa-card__btn:active {
  transform: translateY(-1px) scale(1);
  transition-duration: 0.1s;
}

.wa-card__btn:focus-visible {
  outline: 2px solid var(--color-wa);
  outline-offset: 3px;
}

.wa-card__note {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
  opacity: 0.5;
  letter-spacing: 0.01em;
}


/* ─── Responsive ──────────────────────────────────── */

@media (max-width: 640px) {
  .wa-card {
    padding: 2.75rem 2rem;
  }

  .wa-card__action {
    width: 100%;
  }

  .wa-card__btn {
    width: 100%;
    justify-content: center;
    padding: 1.1rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .wa-card-section {
    padding: 2rem 0 3.5rem;
  }

  .wa-card {
    padding: 2.25rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .wa-card__title {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  .wa-card__text {
    font-size: 0.95rem;
  }
}

@media (max-width: 390px) {
  .wa-card {
    padding: 2rem 1.125rem;
  }
}

@media (max-width: 360px) {
  .wa-card {
    padding: 1.75rem 1rem;
  }
}
/* =====================================================
   CLOUDFLARE TURNSTILE — estilos del widget
   Integrado en formularios de presupuesto y contacto.
===================================================== */

/* Contenedor del widget */
.cf-turnstile {
  margin: 1rem 0 0.5rem;
  min-height: 65px;
  display: flex;
  align-items: center;
}

/* El iframe que renderiza Cloudflare */
.cf-turnstile iframe {
  border-radius: 6px;
  max-width: 100%;
}

/* Estado de carga: placeholder sutil mientras carga el iframe */
.cf-turnstile:empty::after {
  content: "Cargando verificación de seguridad…";
  font-size: 0.75rem;
  color: var(--text-muted, #888);
  font-style: italic;
}

/* Mensaje de error cuando Turnstile falla */
.turnstile-error {
  font-size: 0.8rem;
  color: var(--color-error, #ef4444);
  margin-top: 0.4rem;
  display: none;
}

.turnstile-error--visible {
  display: block;
}

/* Responsive: en móvil muy estrecho forzar 100% */
@media (max-width: 360px) {
  .cf-turnstile {
    overflow: hidden;
  }
  .cf-turnstile iframe {
    width: 100% !important;
  }
}
/* =====================================================
   REVIEWS · Sistema de reseñas moderadas
   MasterCodeWeb — diseño premium oscuro
===================================================== */


/* ========================
HERO REVIEWS
======================== */

.reviews-hero {
  text-align: center;
  padding: clamp(3rem, 6vw, 5rem) var(--pad) clamp(2rem, 4vw, 3.5rem);
}

.reviews-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  padding: 0.35rem 0.9rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.08);
  border: 1px solid rgba(56, 217, 150, 0.2);
  border-radius: 999px;
}

.reviews-hero__title {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.reviews-hero__desc {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto;
  line-height: 1.65;
}

.reviews-hero__stats {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-soft);
}

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

.reviews-hero__stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.reviews-hero__stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* Estrellas display (solo lectura) */
.stars-display {
  display: inline-flex;
  gap: 0.15rem;
  color: #f59e0b;
  font-size: 1.1rem;
  line-height: 1;
}

.stars-display .star--empty {
  color: rgba(255, 255, 255, 0.15);
}

/* Estrellas grandes para el hero stat */
.stars-display--lg {
  font-size: 1.6rem;
  gap: 0.2rem;
}


/* ========================
GRID DE RESEÑAS
======================== */

.reviews-section {
  padding: 4rem var(--pad) 5rem;
}

.reviews-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Tarjeta de reseña */
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.review-card:hover {
  border-color: rgba(13, 108, 242, 0.35);
  transform: translateY(-3px);
}

.review-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.review-card__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.review-card__avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(13,108,242,0.3), rgba(124,92,255,0.3));
  border: 1px solid rgba(13, 108, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: var(--color-blue);
}

.review-card__name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.review-card__meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.review-card__service {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(13, 108, 242, 0.08);
  border: 1px solid rgba(13, 108, 242, 0.18);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.review-card__comment {
  font-size: 0.92rem;
  color: var(--text-soft);
  line-height: 1.65;
  flex: 1;
}

.review-card__comment::before {
  content: '"';
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.2rem;
}

.review-card__comment::after {
  content: '"';
  color: var(--color-primary);
  font-size: 1.4rem;
  line-height: 0;
  vertical-align: -0.3em;
  margin-left: 0.2rem;
}

.review-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
}

.review-card__date {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.review-card__verified {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-green);
}


/* ========================
EMPTY STATE
======================== */

.reviews-empty {
  max-width: 36rem;
  margin: 3rem auto;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed var(--border-soft);
  border-radius: var(--radius-xl);
}

.reviews-empty__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}

.reviews-empty__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  color: var(--text-main);
}

.reviews-empty__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Estado de carga */
.reviews-loading {
  display: flex;
  justify-content: center;
  padding: 3rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  gap: 0.75rem;
  align-items: center;
}


/* ========================
FORMULARIO DE RESEÑA
======================== */

.review-form-section {
  padding: 5rem var(--pad) 6rem;
  background: var(--bg-section-alt);
}

.review-form-wrap {
  max-width: 42rem;
  margin: 0 auto;
}

.review-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.review-form-header__title {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.review-form-header__desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Star picker interactivo */
.star-picker {
  margin-bottom: 1.5rem;
}

.star-picker__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.star-picker__stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.25rem;
}

.star-picker__stars input[type="radio"] {
  display: none;
}

.star-picker__stars label {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: color 0.1s ease, transform 0.1s ease;
  touch-action: manipulation;
  line-height: 1;
}

/* Hover: rellena esta estrella y todas las "menores" (que en DOM vienen después) */
.star-picker__stars label:hover,
.star-picker__stars label:hover ~ label {
  color: #f59e0b;
}

/* Selección */
.star-picker__stars input:checked ~ label {
  color: #f59e0b;
}

/* Escala en hover */
.star-picker__stars label:hover {
  transform: scale(1.15);
}

.star-picker__hint {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
}

/* Contador de caracteres */
.char-count {
  display: block;
  text-align: right;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

.char-count--warn {
  color: var(--color-amber);
}

/* Mensaje de éxito */
.review-success {
  display: none;
  text-align: center;
  padding: 2.5rem 2rem;
  background: rgba(56, 217, 150, 0.06);
  border: 1px solid rgba(56, 217, 150, 0.2);
  border-radius: var(--radius-xl);
  margin-top: 1.5rem;
}

.review-success.is-visible {
  display: block;
}

.review-success__icon {
  font-size: 2.5rem;
  margin-bottom: 0.8rem;
}

.review-success__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-green);
  margin-bottom: 0.5rem;
}

.review-success__text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Aviso legal bajo el formulario */
.review-form__legal {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid var(--border-primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}


/* ========================
RESPONSIVE
======================== */

@media (max-width: 640px) {
  .reviews-hero__stats {
    gap: 1.5rem;
  }

  .review-card__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .star-picker__stars label {
    font-size: 2rem;
  }
}
/* =====================================================
   HOME PAGE
===================================================== */


/* ── Home CTA section ──────────────────────────────── */

.home-cta {
  padding: 6rem var(--pad);
  text-align: center;
}

.home-cta__content {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.home-cta__content h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-cta__content > p {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 520px;
}

.home-cta__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.guarantee {
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.8;
  letter-spacing: 0.02em;
}


/* ── Stats bar ────────────────────────────────────── */
.stats-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  padding: 2rem var(--pad);
}

.stats-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border-soft);
}

.stat-item:last-child { border-right: none; }

.stat-item__value {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
}

.stat-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
}

/* Stats-bar 640px layout — handled by responsive.css */

/* ── Fail grid: force 1-col to prevent minmax(19rem) overflow ─ */
@media (max-width: 640px) {
  .fail-grid {
    grid-template-columns: 1fr;
  }
}


/* ── Why fail section ─────────────────────────────── */
.fail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
  max-width: var(--container);
  margin: 0 auto;
}

.fail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.25rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-left: 3px solid rgba(239, 68, 68, 0.45);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.fail-item:hover { border-color: rgba(239, 68, 68, 0.7); border-left-color: rgba(239, 68, 68, 0.7); }

.fail-item__num {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 900;
  color: rgba(239, 68, 68, 0.55);
  width: 1.6rem;
  text-align: center;
  margin-top: 0.05rem;
}

.fail-item__text h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.fail-item__text p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.fail__callout {
  margin-top: 2.5rem;
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(13, 108, 242, 0.05);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: var(--radius-xl);
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.fail__callout p {
  font-size: 0.97rem;
  color: var(--text-soft);
  line-height: 1.65;
}

.fail__callout strong { color: var(--color-primary); }


/* ── Performance split ─────────────────────────────── */
.perf-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}

.perf-split__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-green);
  margin-bottom: 1rem;
}

.perf-split__content h2 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.perf-split__content > p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}

.perf-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
}

.perf-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.87rem;
  color: var(--text-soft);
  line-height: 1.5;
}

.perf-facts li::before {
  content: "→";
  color: var(--color-green);
  flex-shrink: 0;
  font-weight: 700;
}

/* Desktop: stat inline-bold, detail continues naturally */
.perf-facts__stat {
  font-weight: 700;
  color: var(--text-main);
}

.perf-metrics {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.perf-metric {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.4rem 1.75rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.25s ease;
}

.perf-metric:hover { border-color: rgba(56, 217, 150, 0.3); }

.perf-metric__value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--color-green);
  line-height: 1;
  min-width: 4.5rem;
  text-align: center;
  flex-shrink: 0;
}

.perf-metric__body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.perf-metric__body p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .perf-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}


/* ── Differ cards ─────────────────────────────────── */
.differ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}

.differ-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.differ-card:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-card-hover);
}

.differ-card__check {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: rgba(56, 217, 150, 0.08);
  border: 1px solid rgba(56, 217, 150, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  font-size: 0.8rem;
  font-weight: 700;
}

.differ-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.differ-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ── Process card style ─────────────────────────────── */
.process__step {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.process__step:hover {
  border-color: var(--border-primary);
  box-shadow: var(--shadow-card-hover);
}

.process__step h3 {
  font-size: 1rem;
  font-weight: 700;
}

.process__step p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.process__time {
  font-size: 0.72rem;
  color: var(--color-green);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.process__needs {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-style: italic;
}


/* ── Expect cards ─────────────────────────────────── */
.expect__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.25rem;
  max-width: var(--container);
  margin: 0 auto;
}

.expect-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  transition: border-color 0.25s ease;
}

.expect-card:hover { border-color: var(--border-primary); }

.expect-card__icon {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: block;
}

.expect-card h3 {
  font-size: 0.97rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.expect-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}


/* ── Local trust section ──────────────────────────── */
.local-trust {
  padding: 5rem var(--pad);
}

.local-trust__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.local-trust__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.local-trust__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.local-trust__content p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.93rem;
  margin-bottom: 1.5rem;
}

.local-trust__points {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.local-point {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease;
}

.local-point:hover { border-color: var(--border-primary); }

.local-point__icon {
  flex-shrink: 0;
  color: var(--color-primary);
  margin-top: 0.15rem;
}

.local-point__body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.local-point__body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Local trust inner grid — section padding via responsive.css */
@media (max-width: 768px) {
  .local-trust__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* ── FAQ ─────────────────────────────────────────── */
.faq {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq__item[open] {
  border-color: var(--border-primary);
}

.faq__q {
  list-style: none;
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--text-main);
  user-select: none;
}

.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { display: none; }

.faq__q::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--color-primary);
  transition: transform 0.2s ease;
  line-height: 1;
}

.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
}

.faq__a {
  padding: 0 1.5rem 1.25rem;
  border-top: 1px solid var(--border-soft);
  padding-top: 1rem;
}

.faq__a p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.72;
  margin: 0;
}

.faq__a p + p { margin-top: 0.65rem; }

.faq__a a {
  color: var(--color-primary);
  text-decoration: none;
}

.faq__a a:hover { text-decoration: underline; }


/* ── CTA trust microcopy ──────────────────────────── */
.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}

.trust-row__item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.trust-row__item::before {
  content: "✔";
  color: var(--color-green);
  font-size: 0.7rem;
  font-weight: 700;
}


/* ── Process section padding ────────────────────────── */

.process {
  padding: 5rem var(--pad);
}

/* .process__grid column layout: auto-fit in cards.css.
   Only process-specific extras are defined here.      */

/* Number badge — círculo azul pequeño */
.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;

  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--color-primary);

  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.25);
  border-radius: 50%;

  transition: background 0.28s ease, transform 0.28s ease;
}

.process__step:hover .process__number {
  background: rgba(13, 108, 242, 0.2);
  transform: scale(1.1);
}


/* process__grid column layout: owned by cards.css (auto-fit).
   Section padding + step layout: owned by responsive.css.     */


/* ── Portfolio Showcase ────────────────────────────────────────── */

.portfolio__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.portfolio-card:hover {
  border-color: rgba(13, 108, 242, 0.35);
  transform: translateY(-2px);
}

.portfolio-card__preview {
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.portfolio-card__preview--clinic {
  background: linear-gradient(135deg, rgba(56, 217, 150, 0.12) 0%, rgba(13, 108, 242, 0.08) 100%);
}

.portfolio-card__preview--corporate {
  background: linear-gradient(135deg, rgba(13, 108, 242, 0.14) 0%, rgba(99, 51, 220, 0.08) 100%);
}

.portfolio-card__preview--ecommerce {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.14) 0%, rgba(239, 68, 68, 0.08) 100%);
}

.portfolio-card__browser {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 22px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  gap: 0.35rem;
}

.portfolio-card__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0.8;
}

.portfolio-card__body {
  padding: 1.25rem 1.25rem 1.5rem;
}

.portfolio-card__badges {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.portfolio-card__badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(13, 108, 242, 0.12);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

.portfolio-card__demo {
  font-size: 0.6rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.portfolio-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.portfolio-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.portfolio-card__features li::before {
  content: "✓";
  color: var(--color-green);
  margin-right: 0.4rem;
  font-weight: 700;
}

.portfolio-card__plan {
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin: 0;
}

@media (max-width: 992px) {
  .portfolio__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .portfolio__grid {
    grid-template-columns: 1fr;
  }
}
/* =====================================================
SERVICIOS PAGE
Página de servicios · conversión · SEO
===================================================== */


/* ========================
SERVICE DETAIL (página servicios.html)
======================== */

.service-detail {
  padding: 5rem var(--pad);
}

.service-detail__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.service-detail__grid--reverse {
  direction: rtl;
}

.service-detail__grid--reverse > * {
  direction: ltr;
}

.service-detail__text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-detail__text .badge {
  align-self: flex-start;
}

.service-detail__text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin: 0;
}

.service-detail__text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

.service-detail__text ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
}

.service-detail__text ul li {
  font-size: 0.95rem;
  color: var(--text-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-detail__text ul li::before {
  content: "✓";
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.1);
  border-radius: 50%;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-detail__image img {
  border-radius: var(--radius-xl);
  width: 100%;
  height: auto;
  border: 1px solid var(--border-soft);
  background: var(--bg-card);
  min-height: 220px;
  object-fit: cover;
}

@media (max-width: 768px) {
  .service-detail__grid,
  .service-detail__grid--reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 2rem;
  }
}


/* ========================
SERVICES HERO
======================== */

.services-hero {
  padding: 5rem var(--pad) 4rem;
  text-align: center;
  max-width: var(--container);
  margin: 0 auto;
}

.services-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.services-hero p {
  max-width: 42rem;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}


/* ========================
GRID SERVICIOS
======================== */

.services {
  padding: 4rem var(--pad);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}


/* ========================
CARD SERVICIO
======================== */

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2.25rem 2rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;

  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 108, 242, 0.4);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.35),
    0 0 20px rgba(13, 108, 242, 0.14);
}


/* Icono */

.service-card__icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.18);
  border-radius: 14px;
  padding: 0.8rem;

  color: var(--color-primary);
  transition: background 0.25s ease, transform 0.25s ease;
}

.service-card:hover .service-card__icon {
  background: rgba(13, 108, 242, 0.18);
  transform: scale(1.08);
}


/* Título */

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  max-width: 240px;
  margin: 0;
}


/* Descripción */

.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 260px;
  margin: 0;
}


/* Lista */

.service-card ul {
  margin-top: auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
  text-align: left;
  width: 100%;
}

.service-card li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.2rem;
  position: relative;
  line-height: 1.4;
}

.service-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.75rem;
}


/* ========================
SECCIÓN BENEFICIOS
======================== */

.services-benefits {
  padding: 4rem var(--pad);
  text-align: center;
}

.services-benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.benefit-card {
  padding: 1.75rem 1.5rem;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-soft);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.6rem;

  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.benefit-card:hover {
  border-color: rgba(13, 108, 242, 0.28);
  box-shadow: 0 8px 28px rgba(13, 108, 242, 0.08);
  transform: translateY(-3px);
}

.benefit-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.benefit-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 240px;
}


/* ========================
PROCESO
======================== */

.services-process {
  padding: 4rem var(--pad);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}

.process-step {
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: rgba(255,255,255,0.02);
}

.process-step span {
  display: block;
  font-weight: 900;
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* ========================
PARA QUIÉN
======================== */

.services-target {
  padding: 4rem var(--pad);
}

.cards-grid--5 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
}

.target-card {
  padding: 1.2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  text-align: center;
  font-size: 0.85rem;
}


/* ========================
CTA FINAL
======================== */

.services-cta {
  text-align: center;
  padding: 5rem var(--pad);
}

.services-cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

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


/* ========================
STATS BAR (social proof)
======================== */

.stats {
  padding: 2.5rem var(--pad);
  border-bottom: 1px solid var(--border-soft);
}

.stats__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1.1;
}

.stat span {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.3rem;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}


/* ========================
PRECIO ANCLA (por servicio)
======================== */

.service-detail__price {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;

  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
}

.service-detail__price strong {
  font-size: 1.1rem;
}


/* ── Stats bar (reuses home.css .stats-bar) ───────── */
/* No extra CSS needed — .stats-bar already defined in home.css */

/* ── Mobile responsive ─────────────────────────────── */

@media (max-width: 768px) {
  .services-hero {
    padding: 3.5rem var(--pad) 2.5rem;
  }

  .service-detail {
    padding: 3rem var(--pad);
  }

  .services-benefits,
  .services-process,
  .services-target {
    padding: 3rem var(--pad);
  }

  .services-cta,
  .service-includes {
    padding: 3rem var(--pad);
  }

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

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

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

  .cards-grid--5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .cards-grid--5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 2.75rem var(--pad) 2rem;
  }

  .service-detail,
  .services-benefits,
  .services-process,
  .services-target,
  .services-cta,
  .service-includes {
    padding: 2.25rem var(--pad);
  }

  .services__grid,
  .services-benefits__grid,
  .process-grid,
  .cards-grid--5 {
    grid-template-columns: 1fr;
  }

  .services-cta h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.85rem);
  }
}

@media (max-width: 390px) {
  .services-hero {
    padding: 2.25rem 1rem 1.75rem;
  }

  .service-detail,
  .services-benefits,
  .services-process,
  .services-target,
  .services-cta,
  .service-includes {
    padding: 2rem 1rem;
  }
}


/* ── Service tech tags ────────────────────────────── */
.service-detail__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.service-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(13, 108, 242, 0.08);
  border: 1px solid rgba(13, 108, 242, 0.2);
  color: var(--color-blue, #4aa3ff);
  white-space: nowrap;
}

/* ── Included in all projects ─────────────────────── */
.service-includes {
  padding: 5rem var(--pad);
}

.service-includes__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
  max-width: var(--container);
  margin: 0 auto;
}

.service-include-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  font-size: 0.87rem;
  color: var(--text-soft);
  transition: border-color 0.2s ease;
}

.service-include-item:hover { border-color: var(--border-primary); }

.service-include-item::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.08);
  border: 1px solid rgba(56, 217, 150, 0.2);
  border-radius: 50%;
}

/* =====================================================
   PRESUPUESTO PAGE
===================================================== */

/* ── Demo context card ─────────────────────────────── */

.demo-ctx {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.875rem 1.25rem;
  padding: 1rem 1.25rem;
  background: rgba(13, 108, 242, 0.06);
  border: 1px solid rgba(13, 108, 242, 0.2);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-size: 0.83rem;
}

.demo-ctx__swatches {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}

.demo-ctx__dot {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2);
}

.demo-ctx__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  flex: 1;
  min-width: 0;
}

.demo-ctx__row {
  display: flex;
  align-items: baseline;
  gap: 0.375rem;
}

.demo-ctx__label {
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
}

.demo-ctx__val {
  color: var(--color-primary, #0d6cf2);
  font-weight: 700;
}

.demo-ctx__back {
  flex-shrink: 0;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  font-size: 0.78rem;
  white-space: nowrap;
  transition: color 0.18s ease;
  margin-left: auto;
}

.demo-ctx__back:hover {
  color: var(--color-primary, #0d6cf2);
}

/* ── Quote steps (what happens after submit) ───────── */
.quote-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 1.5rem 0;
}

.quote-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-soft);
  position: relative;
}

.quote-step:last-child { border-bottom: none; }

.quote-step__num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.25);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  color: var(--color-primary);
}

.quote-step__body h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.quote-step__body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ── Budget info checklist ──────────────────────────── */
.budget__checklist {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin: 1.25rem 0;
}

.budget__checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-soft);
}

.budget__checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.3rem;
  height: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.08);
  border: 1px solid rgba(56, 217, 150, 0.2);
  border-radius: 50%;
}

/* ── Info subsection heading ────────────────────────── */
.budget__info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-top: 1.75rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

/* ── Pricing anchor ─────────────────────────────────── */
.budget__price-anchor {
  display: block;
  padding: 0.9rem 1.1rem;
  background: rgba(13, 108, 242, 0.05);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: var(--radius-lg);
  font-size: 0.87rem;
  color: var(--text-muted);
  text-decoration: none;
  margin: 1.25rem 0;
  transition: border-color 0.2s ease, background 0.2s ease;
  line-height: 1.55;
}

.budget__price-anchor:hover {
  border-color: rgba(13, 108, 242, 0.4);
  background: rgba(13, 108, 242, 0.08);
}

.budget__price-anchor strong { color: var(--color-primary); }

/* ── Alternative contacts ───────────────────────────── */
.quote-contacts {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.75rem;
}

.quote-contact-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.quote-contact-item:hover { color: var(--color-primary); }

.quote-contact-item svg { flex-shrink: 0; color: var(--color-primary); }

/* ── Budget FAQ (below the form grid) ───────────────── */
.budget-faq {
  margin-top: 4rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--border-soft);
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}

.budget-faq__header {
  text-align: center;
  margin-bottom: 2rem;
}

.budget-faq__header h2 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.budget-faq__header p {
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* ── Payment transparency note ──────────────────────── */
.quote-payment-note {
  margin: 0 0 1.25rem;
  padding: 1rem 1.2rem;
  background: rgba(13, 108, 242, 0.04);
  border: 1px solid rgba(13, 108, 242, 0.14);
  border-left: 3px solid var(--color-primary);
  border-radius: var(--radius-md);
}

.quote-payment-note strong {
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--text-main);
  display: block;
  margin-bottom: 0.2rem;
}

.quote-payment-note p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0 0 0.55rem;
  line-height: 1.5;
}

.quote-payment-note ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}

.quote-payment-note li {
  font-size: 0.82rem;
  color: var(--text-soft);
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}

.quote-payment-note li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-green);
  font-weight: 800;
  font-size: 0.72rem;
}


/* ── Mobile responsive ──────────────────────────── */

@media (max-width: 768px) {
  .budget-faq {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
  }
}

@media (max-width: 480px) {
  .budget-faq {
    margin-top: 2rem;
    padding-top: 2rem;
  }

  .budget-faq__header {
    margin-bottom: 1.25rem;
  }
}
/* =====================================================
   BLOG PAGE
===================================================== */


/* ── Hero override ─────────────────────────────────── */

.hero--blog {
  padding: 7rem var(--pad) 5.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 55% at 50% 0%,
      rgba(13, 108, 242, 0.13) 0%,
      transparent 70%);
  border-bottom: 1px solid var(--border-soft);
}

.hero--blog .hero__content {
  max-width: 680px;
  margin: 0 auto;
}

.hero--blog h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.15;
}


/* ── Featured article ──────────────────────────────── */

.blog-featured__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;

  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured__card:hover {
  border-color: rgba(13, 108, 242, 0.45);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.4),
    0 0 28px rgba(13, 108, 242, 0.12);
}

.blog-featured__image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
}

.blog-featured__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-featured__card:hover .blog-featured__image img {
  transform: scale(1.04);
}

.blog-featured__content {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  justify-content: center;
}

.blog-featured__meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.blog-featured__meta time,
.blog-featured__meta > span:not(.badge) {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.blog-featured__content h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-main);
}

.blog-featured__content > p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}


/* ── Blog listing grid ─────────────────────────────── */

.blog__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

/* Featured: full-width, horizontal layout */
.blog-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
}


/* ── Blog card ─────────────────────────────────────── */

.blog-card {
  background: linear-gradient(145deg, #0a0f1c 0%, #05070f 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
  position: relative;

  transition: transform    0.3s ease,
              border-color 0.3s ease,
              box-shadow   0.3s ease;
}

/* Stretched link: h3 anchor covers the entire card */
.blog-card__content h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* Interactive elements sit above the stretched link */
.blog-card__link,
.blog-card__image-wrap {
  position: relative;
  z-index: 2;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(13, 108, 242, 0.45);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(13, 108, 242, 0.12);
}


/* ── Image wrap ────────────────────────────────────── */

.blog-card__image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  flex-shrink: 0;
  height: 200px;
}

/* Featured: left column, fills card height */
.blog-card:first-child .blog-card__image-wrap {
  width: 44%;
  height: 100%;
  min-height: 260px;
}

.blog-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card__image-wrap img {
  transform: scale(1.06);
}

/* Bottom-fade overlay for vertical cards */
.blog-card__image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 30%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.blog-card:hover .blog-card__image-wrap::after {
  opacity: 0.9;
}

/* Featured: right-edge fade (image is left column) */
.blog-card:first-child .blog-card__image-wrap::after {
  background: linear-gradient(
    to right,
    transparent 65%,
    rgba(0, 0, 0, 0.35) 100%
  );
}


/* ── Content ───────────────────────────────────────── */

.blog-card__content {
  padding: 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  flex: 1;
}

.blog-card:first-child .blog-card__content {
  padding: 2.5rem 2.75rem;
  justify-content: center;
}


/* ── Meta ──────────────────────────────────────────── */

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.blog-card__date,
.blog-card__readtime {
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}


/* ── Title ─────────────────────────────────────────── */

.blog-card__content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--text-main);
  margin: 0;
}

.blog-card:first-child .blog-card__content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.22;
}

.blog-card__content h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.22s ease;
}

.blog-card__content h3 a:hover {
  color: var(--color-primary);
}


/* ── Description ───────────────────────────────────── */

.blog-card__content p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}


/* ── Read link — pill button ───────────────────────── */

.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 0.5rem 1.1rem;
  width: fit-content;

  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  text-decoration: none;

  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.22);
  border-radius: 999px;

  transition: background  0.22s ease,
              border-color 0.22s ease,
              gap          0.22s ease,
              box-shadow   0.22s ease;
}

.blog-card__link:hover {
  gap: 0.6rem;
  background: rgba(13, 108, 242, 0.18);
  border-color: rgba(13, 108, 242, 0.42);
  box-shadow: 0 0 18px rgba(13, 108, 242, 0.22);
}


/* ── SVG illustrations fill wrappers like img ──────── */

.blog-featured__image svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-featured__card:hover .blog-featured__image svg {
  transform: scale(1.04);
}

.blog-card__image-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card__image-wrap svg {
  transform: scale(1.06);
}


/* =====================================================
   ARTICLE PAGES (guias/*)
===================================================== */

/* Contenedor artículo */
.services--article {
  padding: 3.5rem var(--pad) 5rem;
}

/* ── Contenedor de lectura centrado ─────────────────── */
.blog-container {
  max-width: 760px;
  margin: 0 auto;
  width: 100%;
}

/* Ancho lectura — elementos que viven dentro del contenedor */
.blog-container .article-section,
.blog-container .article-index,
.blog-container .article-meta,
.blog-container .article-summary,
.blog-container .article-keypoint,
.blog-container .article-cta-inline,
.blog-container .article-trust,
.blog-container .article-cta-box,
.blog-container .article-share,
.blog-container .article-warning,
.blog-container .article-price-grid,
.blog-container .article-compare {
  max-width: 100%;
  margin-left:  0;
  margin-right: 0;
}

/* Ancho lectura — fallback sin contenedor */
.article-section,
.article-index,
.article-meta {
  max-width: 52rem;
  margin: 0 auto;
}

/* Índice */
.article-index {
  margin: 2rem auto;
  padding: 1.5rem 1.75rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.02);
}

.article-index ul {
  padding-left: 1.2rem;
  display: grid;
  gap: 0.55rem;
  list-style: disc;
}

.article-index a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.article-index a:hover {
  text-decoration: underline;
}

/* Contenido */
.article-section {
  margin-bottom: 3.5rem;
}

.article-section + .article-section {
  padding-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Meta centrada */
.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

/* Texto */
.services--article p {
  font-size: 1.02rem;
  line-height: 1.85;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

/* Listas */
.article-list,
.article-checklist {
  padding-left: 1.4rem;
  display: grid;
  gap: 0.6rem;
  list-style: disc;
}

/* Links */
.services--article a:not(.btn) {
  color: var(--color-primary);
  text-decoration: none;
}

.services--article a:not(.btn):hover {
  text-decoration: underline;
}

/* Callout */
.article-callout {
  margin-top: 1.8rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 108, 242, 0.35);
  background: rgba(13, 108, 242, 0.07);
  text-align: center;
}

/* CTA dentro artículo */
.article-cta-box {
  margin-top: 2rem;
  padding: 1.8rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 108, 242, 0.45);
  background: rgba(13, 108, 242, 0.06);
  text-align: center;
}

.article-cta-box h3 {
  font-weight: 900;
  margin-bottom: 0.8rem;
}

.article-cta-box p {
  max-width: 42rem;
  margin: 0 auto 1.2rem;
}

.article-cta-box small {
  font-size: 0.82rem;
  color: var(--text-muted);
}


/* =====================================================
   ARTICLE PREMIUM UPGRADES
===================================================== */

/* Barra de progreso de lectura */
#article-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 3px;
  width: var(--progress, 0%);
  background: linear-gradient(90deg, var(--color-primary), #4aa3ff);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* Resumen/takeaways al inicio */
.article-summary {
  max-width: 52rem;
  margin: 0 auto 2rem;
  padding: 1.5rem 1.75rem;
  background: rgba(13, 108, 242, 0.05);
  border: 1px solid rgba(13, 108, 242, 0.2);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.article-summary__title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 0.85rem;
  display: block;
}

.article-summary ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.article-summary ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  padding-left: 1.4rem;
  position: relative;
}

.article-summary ul li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
}

/* ── highlight-box / article-keypoint ──────────────── */
.article-keypoint,
.highlight-box {
  max-width: 52rem;
  margin: 2rem auto;
  padding: 1.5rem 1.75rem;
  background: rgba(13, 108, 242, 0.06);
  border: 1px solid rgba(13, 108, 242, 0.25);
  border-radius: var(--radius-xl);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.article-keypoint__icon,
.highlight-box__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: rgba(13, 108, 242, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4aa3ff;
}

.article-keypoint__text,
.highlight-box__text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  margin: 0;
}

/* ── cta-box / article-cta-inline ──────────────────── */
.article-cta-inline,
.cta-box {
  max-width: 52rem;
  margin: 2.5rem auto;
  padding: 1.75rem 2rem;
  background: var(--bg-card);
  border: 1px solid rgba(13, 108, 242, 0.28);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.article-cta-inline__text {
  flex: 1;
  min-width: 200px;
}

.article-cta-inline__text strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.article-cta-inline__text span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-cta-inline .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Bloque de confianza */
.article-trust {
  max-width: 52rem;
  margin: 2.5rem auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.article-trust__item {
  padding: 1.4rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: border-color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.article-trust__item:hover {
  border-color: rgba(13, 108, 242, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(13, 108, 242, 0.08);
}

.article-trust__number {
  display: block;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.article-trust__label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* CTA final mejorado */
.article-cta-box {
  margin-top: 3.5rem;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(13, 108, 242, 0.35);
  background:
    linear-gradient(160deg, rgba(13,108,242,0.1) 0%, rgba(13,108,242,0.03) 100%);
  text-align: center;
  box-shadow:
    0 0 0 1px rgba(13,108,242,0.06),
    0 24px 64px rgba(0,0,0,0.25);
}

.article-cta-box h3 {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  font-weight: 900;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.article-cta-box p {
  max-width: 42rem;
  margin: 0 auto 1.5rem;
  font-size: 1rem;
}

.article-cta-box__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.article-cta-box small {
  font-size: 0.78rem;
  color: var(--text-muted);
  opacity: 0.8;
}

/* H2/H3 artículo */
.services--article h2 {
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 900;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.services--article h3 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 2rem 0 0.7rem;
  letter-spacing: -0.01em;
}

/* Listas artículo mejoradas */
.article-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.article-list li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
  padding-left: 1.5rem;
  position: relative;
}

.article-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 800;
  font-size: 0.8rem;
}

/* CTA flotante */
#article-float-cta {
  position: fixed;
  bottom: -80px;
  left: 0;
  right: 0;
  z-index: 900;
  padding: 0.85rem var(--pad);
  background: rgba(8, 8, 14, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  will-change: transform;
  border-top: 1px solid rgba(13, 108, 242, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  transition: bottom 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  opacity: 0;
}

#article-float-cta.is-ready {
  pointer-events: auto;
  opacity: 1;
}

#article-float-cta.is-visible {
  bottom: 0;
}

#article-float-cta span {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: none;
}

@media (min-width: 600px) {
  #article-float-cta span { display: block; }
}

#article-float-cta .btn {
  white-space: nowrap;
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
}


/* ── Back to blog — enlace de navegación ────────────── */

.back-to-blog {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  padding: 0.35rem 0;
  margin-bottom: 1.75rem;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.back-to-blog svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.back-to-blog:hover {
  color: var(--color-primary);
}

.back-to-blog:hover svg {
  transform: translateX(-3px);
}

/* ── warning-box / article-warning ─────────────────── */
.article-warning,
.warning-box {
  max-width: 52rem;
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  background: rgba(251, 191, 36, 0.07);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-left: 4px solid #fbbf24;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.article-warning__icon,
.warning-box__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(251, 191, 36, 0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fbbf24;
}

.article-warning__text,
.warning-box__text {
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
}

.article-warning__text strong,
.warning-box__text strong {
  color: #fbbf24;
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

/* Grid de tipos de web y precios */
.article-price-grid {
  max-width: 52rem;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.article-price-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.article-price-card:hover {
  border-color: rgba(13, 108, 242, 0.45);
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(13, 108, 242, 0.1);
  transform: translateY(-5px);
}

.article-price-card__icon {
  width: 54px;
  height: 54px;
  background: rgba(13, 108, 242, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4aa3ff;
  margin-bottom: 1rem;
  transition: background 0.22s ease;
}

.article-price-card:hover .article-price-card__icon {
  background: rgba(13, 108, 242, 0.2);
}

.article-price-card__range {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--color-primary);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.article-price-card__name {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.article-price-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.58;
  margin: 0;
}

/* Comparativa dos columnas */
.article-compare {
  max-width: 52rem;
  margin: 1.5rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.article-compare__col {
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
}

.article-compare__col--bad {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.2);
}

.article-compare__col--good {
  background: rgba(13, 108, 242, 0.04);
  border-color: rgba(13, 108, 242, 0.2);
}

.article-compare__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  display: block;
}

.article-compare__col--bad  .article-compare__title { color: #ef4444; }
.article-compare__col--good .article-compare__title { color: #4aa3ff; }

.article-compare__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.article-compare__list li {
  font-size: 0.83rem;
  color: var(--text-muted);
  padding-left: 1.3rem;
  position: relative;
  line-height: 1.4;
}

.article-compare__col--bad  .article-compare__list li::before { content: "✗"; position: absolute; left: 0; color: #ef4444; font-weight: 700; }
.article-compare__col--good .article-compare__list li::before { content: "✓"; position: absolute; left: 0; color: #4aa3ff; font-weight: 700; }

/* =====================================================
   SOCIAL SECTION — componente reutilizable premium
   Uso: antes del CTA final en todos los artículos
===================================================== */

.article-share,
.social-section {
  max-width: 52rem;
  margin: 3.5rem auto;
  padding: 2.25rem 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  text-align: center;
}

/* Tagline principal */
.social-section__tagline {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin: 0 0 1.75rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

/* Grupo (follow / share) */
.social-section__group {
  margin-bottom: 0;
}

/* Sublabel de grupo */
.article-share__label,
.social-section__label,
.social-section__sublabel {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
  display: block;
}

/* Separador entre grupos */
.social-section__divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin: 1.75rem 0;
}

/* Fila de botones */
.article-share__links,
.social-section__links {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

/* Botón individual */
.article-share__btn,
.social-section__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.15rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition:
    background   0.22s ease,
    border-color 0.22s ease,
    color        0.22s ease,
    transform    0.22s ease,
    box-shadow   0.22s ease;
}

.article-share__btn svg,
.social-section__btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.article-share__btn:hover,
.social-section__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

/* Colores de marca por red social */
.article-share__btn--linkedin:hover,
.social-section__btn--linkedin:hover  {
  color: #0a66c2;
  border-color: rgba(10, 102, 194, 0.4);
  background:   rgba(10, 102, 194, 0.1);
}
.article-share__btn--github:hover,
.social-section__btn--github:hover    {
  color: #e6e6e6;
  border-color: rgba(230, 230, 230, 0.25);
  background:   rgba(230, 230, 230, 0.08);
}
.article-share__btn--instagram:hover,
.social-section__btn--instagram:hover {
  color: #e1306c;
  border-color: rgba(225, 48, 108, 0.4);
  background:   rgba(225, 48, 108, 0.08);
}
.article-share__btn--twitter:hover,
.social-section__btn--twitter:hover   {
  color: #e7e9ea;
  border-color: rgba(231, 233, 234, 0.2);
  background:   rgba(231, 233, 234, 0.07);
}
.article-share__btn--facebook:hover,
.social-section__btn--facebook:hover  {
  color: #1877f2;
  border-color: rgba(24, 119, 242, 0.4);
  background:   rgba(24, 119, 242, 0.1);
}
.article-share__btn--whatsapp:hover,
.social-section__btn--whatsapp:hover  {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.38);
  background:   rgba(37, 211, 102, 0.1);
}

/* ── info-box — bloque informativo neutral ──────────── */
.info-box {
  max-width: 52rem;
  margin: 2rem auto;
  padding: 1.25rem 1.5rem;
  background: rgba(13, 108, 242, 0.04);
  border-left: 4px solid var(--color-primary);
  border: 1px solid rgba(13, 108, 242, 0.18);
  border-left: 4px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  font-size: 0.93rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.info-box strong {
  display: block;
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* ── Hero article extras ────────────────────────────── */

.hero--article .hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.article-hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
}

.article-hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  width: 100%;
  max-width: 480px;
}

.article-hero-proof__item {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.article-hero-proof__item strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--text-main);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.2rem;
}

/* ── CTA box benefits list ──────────────────────────── */

.article-cta-box__benefits {
  list-style: none;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.75rem;
  flex-wrap: wrap;
  margin: 0 0 1.5rem;
}

.article-cta-box__benefits li {
  font-size: 0.84rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.article-cta-box__benefits li::before {
  content: "✓";
  color: #4aa3ff;
  font-weight: 900;
  font-size: 0.88rem;
}

/* ── Article compare col headers ────────────────────── */

.article-compare__col {
  padding: 1.5rem 1.5rem 1.4rem;
}

.article-compare__col--bad  { border-top: 3px solid #ef4444; }
.article-compare__col--good { border-top: 3px solid #4aa3ff; }

/* ── Responsive article premium ─────────────────────── */

@media (max-width: 600px) {
  .blog-container          { padding: 0; }
  .article-price-grid      { grid-template-columns: 1fr; }
  .article-compare         { grid-template-columns: 1fr; }
  .article-cta-inline      { flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
  .article-cta-inline .btn { width: 100%; justify-content: center; }
  .article-trust           { grid-template-columns: repeat(2, 1fr); }
  .article-hero-proof      { gap: 1rem 1.5rem; }
  .article-cta-box__benefits { gap: 0.35rem 1rem; }
  .article-cta-box         { padding: 2rem 1.5rem; }
  .services--article h2    { font-size: clamp(1.3rem, 5vw, 1.75rem); }
}

/* ── Responsive ────────────────────────────────────── */

@media (max-width: 1024px) {
  /* Featured big card */
  .blog-featured__card {
    grid-template-columns: 1fr;
  }

  .blog-featured__image {
    min-height: 260px;
  }

  /* Featured blog card: revert to vertical */
  .blog-card:first-child {
    grid-column: auto;
    flex-direction: column;
  }

  .blog-card:first-child .blog-card__image-wrap {
    width: 100%;
    height: 240px;
    min-height: unset;
  }

  .blog-card:first-child .blog-card__image-wrap::after {
    background: linear-gradient(
      to bottom,
      transparent 30%,
      rgba(0, 0, 0, 0.6) 100%
    );
  }

  .blog-card:first-child .blog-card__content {
    padding: 1.75rem 2rem;
    justify-content: flex-start;
  }

  .blog-card:first-child .blog-card__content h3 {
    font-size: 1.2rem;
  }

  /* 2-col grid collapses to 1 on tablet */
  .blog__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero--blog {
    padding: 4rem 1rem 3.5rem;
  }

  .blog-featured__content {
    padding: 2rem 1.5rem;
  }

  .blog-card__content {
    padding: 1.5rem;
  }

  .blog-card {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .services--article {
    padding: 3rem var(--pad) 4rem;
  }

  .article-share,
  .social-section {
    padding: 1.75rem 1.5rem;
    margin: 2.5rem auto;
  }
}

@media (max-width: 480px) {
  .services--article {
    padding: 2.25rem var(--pad) 3rem;
  }

  .article-share,
  .social-section {
    padding: 1.5rem 1.25rem;
    margin: 2rem auto;
  }
}
/* ========================
PÁGINA PRECIOS
======================== */

.hero--pricing {
  padding: 5rem var(--pad) 3rem;
  text-align: center;
}

.pricing-intro {
  text-align: center;
  padding: 2rem var(--pad);
}

.pricing-subtitle {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.pricing-proof {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.plans--center {
  justify-content: center;
}

/* ── Trust strip bajo los planes ── */
.plans-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  margin: 1.75rem auto 0;
  max-width: 640px;
}

.plans-trust span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}


/* ── Mantenimiento callout bajo cada plan ── */
.plan__maint {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  margin: 0.75rem 0 0.25rem;
  padding: 0.55rem 1rem;
  background: rgba(13, 108, 242, 0.06);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: 999px;
}

.plan__maint strong {
  color: var(--color-primary);
}


/* ========================
SECCIÓN MANTENIMIENTO
======================== */

.maint-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 900px) {
  .maint-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .maint-features {
    grid-template-columns: 1fr;
  }
}

.maint-feature {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.85rem;

  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.maint-feature:hover {
  border-color: rgba(13, 108, 242, 0.28);
  box-shadow: 0 8px 28px rgba(13, 108, 242, 0.08);
  transform: translateY(-3px);
}

.maint-feature__icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.18);
  color: var(--color-primary);

  transition: background 0.25s ease, transform 0.25s ease;
}

.maint-feature:hover .maint-feature__icon {
  background: rgba(13, 108, 242, 0.18);
  transform: scale(1.08);
}

.maint-feature h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.3;
}

.maint-feature p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0;
  max-width: 220px;
}

/* ── Planes de mantenimiento ── */
.maint-plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 760px) {
  .maint-plans {
    grid-template-columns: 1fr;
    max-width: 420px;
  }
}

.maint-plan {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  position: relative;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.maint-plan:hover {
  border-color: rgba(13, 108, 242, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(13, 108, 242, 0.1);
  transform: translateY(-3px);
}

.maint-plan--popular {
  border-color: rgba(13, 108, 242, 0.4);
  box-shadow: 0 0 0 1px rgba(13, 108, 242, 0.2),
              0 12px 40px rgba(13, 108, 242, 0.12);
}

.maint-plan--popular:hover {
  box-shadow: 0 0 0 1px rgba(13, 108, 242, 0.35),
              0 20px 56px rgba(13, 108, 242, 0.18);
}

.maint-plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--color-primary);
  padding: 0.28rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
}

.maint-plan__name {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.maint-plan__price {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
  letter-spacing: -0.02em;
}

.maint-plan__price span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-left: 1px;
}

.maint-plan__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.4;
}

.maint-plan ul {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: grid;
  gap: 0.5rem;
  flex: 1;
  width: 100%;
  text-align: left;
}

.maint-plan ul li {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  padding-left: 1.3rem;
  position: relative;
}

.maint-plan ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.maint-plan .btn,
.maint-plan .contratar-btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.75rem;
}

.maint-plan .payment-error {
  font-size: 0.8rem;
  color: #f87171;
  margin-top: 0.25rem;
  min-height: 0;
}

/* WA footer de mantenimiento */
.maint-footer {
  margin-top: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.maint-footer__note {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.maint-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #25d366;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(37, 211, 102, 0.25);
  border-radius: 999px;
  background: rgba(37, 211, 102, 0.06);
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.maint-footer__wa:hover {
  background: rgba(37, 211, 102, 0.12);
  border-color: rgba(37, 211, 102, 0.45);
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.15);
}


/* ========================
FAQ ACORDEÓN (precios.html)
======================== */

.faq {
  padding: 5rem var(--pad);
}

.faq .container {
  max-width: 52rem;
}

.faq .section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
}

/* Lista de items */
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

/* Card item */
.faq__item {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq__item:hover {
  border-color: rgba(13, 108, 242, 0.28);
  box-shadow: 0 0 0 1px rgba(13, 108, 242, 0.08),
              0 8px 24px rgba(13, 108, 242, 0.07);
}

.faq__item.is-open {
  border-color: rgba(13, 108, 242, 0.35);
  box-shadow: 0 0 0 1px rgba(13, 108, 242, 0.1),
              0 8px 32px rgba(13, 108, 242, 0.1);
}

/* Trigger button */
.faq__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
}

.faq__question {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.4;
  flex: 1;
}

.faq__item.is-open .faq__question {
  color: #4aa3ff;
}

/* Icono chevron */
.faq__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(13, 108, 242, 0.08);
  color: var(--text-muted);
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease, transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq__trigger:hover .faq__icon {
  background: rgba(13, 108, 242, 0.14);
  color: #4aa3ff;
}

.faq__item.is-open .faq__icon {
  background: rgba(13, 108, 242, 0.16);
  color: #4aa3ff;
  transform: rotate(180deg);
}

/* Panel animado con grid-template-rows */
.faq__body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.23, 1, 0.32, 1);
}

.faq__item.is-open .faq__body {
  grid-template-rows: 1fr;
}

.faq__answer {
  overflow: hidden;
}

.faq__answer p {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.faq__answer a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq__answer a:hover {
  color: #4aa3ff;
}

/* CTA final FAQ */
.faq-cta {
  margin-top: 2.5rem;
  padding: 2rem 1.5rem;
  text-align: center;
  background: rgba(13, 108, 242, 0.05);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: var(--radius-xl);
}

.faq-cta__text {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  line-height: 1.4;
}

.faq-cta__actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.faq-cta__actions .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

@media (max-width: 480px) {
  .faq__trigger { padding: 1rem 1.1rem; }
  .faq__answer p { padding: 0 1.1rem 1rem; }
  .faq-cta { padding: 1.5rem 1rem; }
  .faq-cta__actions { flex-direction: column; align-items: center; }
  .faq-cta__actions .btn { width: 100%; justify-content: center; }
}


/* ========================
TESTIMONIAL FORM (precios.html)
======================== */

.testimonial-form {
  max-width: 500px;
  margin: 3rem auto 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial-form h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.testimonial-form input,
.testimonial-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  transition: border-color var(--transition);
}

.testimonial-form input:focus,
.testimonial-form textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

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


/* ========================
GUÍA DE PLAN (precios.html)
======================== */

.plan-guide__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

@media (max-width: 860px) {
  .plan-guide__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.plan-guide__card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.plan-guide__card:hover {
  border-color: rgba(13, 108, 242, 0.28);
  box-shadow: 0 8px 28px rgba(13, 108, 242, 0.08);
  transform: translateY(-3px);
}

.plan-guide__card--highlight {
  border-color: rgba(13, 108, 242, 0.4);
  box-shadow: 0 0 0 1px rgba(13, 108, 242, 0.2),
              0 12px 40px rgba(13, 108, 242, 0.12);
}

.plan-guide__badge {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.plan-guide__badge--primary {
  color: var(--color-primary);
}

.plan-guide__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.35;
  margin: 0;
}

.plan-guide__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
}

.plan-guide__list li {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.45;
}

.plan-guide__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.plan-guide__cta {
  margin-top: auto;
  width: 100%;
  justify-content: center;
}


/* ========================
PAYMENT FLEXIBILITY (precios.html)
======================== */

.payment-flex {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 1.75rem;
  border: 1px solid rgba(13, 108, 242, 0.16);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.payment-flex__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 1.25rem 1.5rem;
  background: rgba(13, 108, 242, 0.03);
  border-right: 1px solid rgba(13, 108, 242, 0.12);
}

.payment-flex__item:last-child {
  border-right: none;
}

.payment-flex__label {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.1rem;
}

.payment-flex__item strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
}

.payment-flex__item span {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

@media (max-width: 600px) {
  .payment-flex {
    grid-template-columns: 1fr;
  }
  .payment-flex__item {
    border-right: none;
    border-bottom: 1px solid rgba(13, 108, 242, 0.12);
  }
  .payment-flex__item:last-child {
    border-bottom: none;
  }
}


/* ── Hero de precios — responsive ── */

@media (max-width: 768px) {
  .hero--pricing {
    padding: 3.5rem var(--pad) 2.5rem;
  }
}

@media (max-width: 480px) {
  .hero--pricing {
    padding: 2.75rem var(--pad) 2rem;
  }
}
/* =====================================================
   SOBRE NOSOTROS PAGE
   Página institucional · enterprise · conversión
===================================================== */


/* ========================
   HISTORIA · ABOUT STORY
======================== */

.about-story__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-story__text {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.about-story__text .badge {
  align-self: flex-start;
}

.about-story__text h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.about-story__text p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

/* Trust list */
.about-story__trust {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.about-trust-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--text-soft);
}

.about-trust-item svg {
  flex-shrink: 0;
  color: var(--color-green);
}


/* ========================
   VISUAL CARD (metrics mock)
======================== */

.about-visual-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
}

.about-visual-card:hover {
  box-shadow: var(--shadow-card-hover);
}

.about-visual-card__header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border-soft);
}

.about-visual-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-error);
  opacity: 0.8;
  flex-shrink: 0;
}

.about-visual-card__dot--amber { background: var(--color-amber); }
.about-visual-card__dot--green { background: var(--color-green); }

.about-visual-card__title {
  margin-left: auto;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.about-visual-card__body {
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Metric row */
.about-metric {
  display: grid;
  grid-template-columns: 7rem 1fr 2.5rem;
  align-items: center;
  gap: 0.75rem;
}

.about-metric__label {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.about-metric__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}

.about-metric__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--color-primary);
  transition: width 1s ease;
}

.about-metric__fill--green {
  background: linear-gradient(90deg, var(--color-green) 0%, #22c55e 100%);
}

.about-metric__value {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-green);
  text-align: right;
}

.about-visual-card__footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-soft);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

.about-visual-card__footer svg {
  color: var(--color-primary);
  flex-shrink: 0;
}


/* ========================
   PILARES (MISIÓN/VISIÓN/COMPROMISO)
======================== */

.about-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.about-pillar {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.about-pillar:hover {
  transform: translateY(-5px);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-card-hover);
}

.about-pillar__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-pillar__icon--blue {
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  color: var(--color-primary);
}

.about-pillar__icon--purple {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--color-purple);
}

.about-pillar__icon--green {
  background: rgba(56, 217, 150, 0.1);
  border: 1px solid rgba(56, 217, 150, 0.2);
  color: var(--color-green);
}

.about-pillar__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.about-pillar__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}


/* ========================
   VALORES
======================== */

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-primary);
  box-shadow: var(--shadow-card-hover);
}

.value-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.value-card__icon--blue {
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  color: var(--color-primary);
}

.value-card__icon--green {
  background: rgba(56, 217, 150, 0.1);
  border: 1px solid rgba(56, 217, 150, 0.2);
  color: var(--color-green);
}

.value-card__icon--amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-amber);
}

.value-card__icon--purple {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--color-purple);
}

.value-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.value-card__text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}


/* ========================
   PROCESO DE TRABAJO
======================== */

.proceso-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  position: relative;
  counter-reset: paso-counter;
}

.proceso-steps::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  left: 4%;
  right: 4%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--color-primary) 0%,
    var(--color-purple) 50%,
    var(--color-green) 100%);
  opacity: 0.25;
  z-index: 0;
}

.paso {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.paso__num {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(13, 108, 242, 0.35);
}

.paso__content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.paso__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.paso__text {
  font-size: 0.84rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}


/* ========================
   MANIFIESTO
======================== */

.manifiesto__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

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

.manifiesto__text .badge {
  align-self: flex-start;
}

.manifiesto__text h2 {
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.25;
  margin: 0;
}

.manifiesto__text p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin: 0;
}

.manifiesto__reasons {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.manifiesto-reason {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.manifiesto-reason__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.manifiesto-reason__icon--green {
  background: rgba(56, 217, 150, 0.1);
  border: 1px solid rgba(56, 217, 150, 0.2);
  color: var(--color-green);
}

.manifiesto-reason__icon--blue {
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  color: var(--color-primary);
}

.manifiesto-reason__icon--amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-amber);
}

.manifiesto-reason__icon--purple {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--color-purple);
}

.manifiesto-reason strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.3rem;
}

.manifiesto-reason p {
  font-size: 0.87rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}


/* ========================
   TECH STACK
======================== */

.tech-categories {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.tech-cat__title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
  opacity: 0.8;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
}

.tech-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
  transition:
    border-color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.tech-item:hover {
  border-color: var(--border-primary);
  background: rgba(13, 108, 242, 0.04);
  transform: translateY(-2px);
}

.tech-item svg {
  flex-shrink: 0;
  color: var(--color-primary);
  opacity: 0.8;
}


/* ========================
   LIBRERÍAS Y HERRAMIENTAS MODERNAS
======================== */

.libs-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.libs-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.libs-badge:hover {
  border-color: var(--border-primary);
  background: rgba(13, 108, 242, 0.05);
  color: var(--color-primary);
}


/* ========================
   CARACTERÍSTICAS DEL SERVICIO
======================== */

.about-proof {
  padding: 2rem 0;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.about-proof__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.75rem;
}

.about-proof__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: clamp(1rem, 2vw, 1.4rem) clamp(0.5rem, 1.5vw, 0.875rem);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  transition:
    border-color var(--transition),
    background   var(--transition),
    transform    var(--transition);
}

.about-proof__card:hover {
  border-color: var(--border-primary);
  background: rgba(13, 108, 242, 0.04);
  transform: translateY(-2px);
}

.about-proof__icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.about-proof__icon--blue {
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  color: var(--color-primary);
}

.about-proof__icon--green {
  background: rgba(56, 217, 150, 0.1);
  border: 1px solid rgba(56, 217, 150, 0.2);
  color: var(--color-green);
}

.about-proof__icon--amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-amber);
}

.about-proof__icon--purple {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--color-purple);
}

.about-proof__value {
  font-size: clamp(0.88rem, 1.4vw, 1rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.about-proof__label {
  font-size: clamp(0.68rem, 1vw, 0.76rem);
  color: var(--text-muted);
  line-height: 1.4;
}


/* ========================
   COSTES DE UNA WEB
======================== */

.costes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.coste-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  display: flex;
  gap: 1.1rem;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.coste-card--required {
  border-color: rgba(13, 108, 242, 0.2);
}

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

.coste-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.coste-card__icon--blue {
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  color: var(--color-primary);
}

.coste-card__icon--green {
  background: rgba(56, 217, 150, 0.1);
  border: 1px solid rgba(56, 217, 150, 0.2);
  color: var(--color-green);
}

.coste-card__icon--amber {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.2);
  color: var(--color-amber);
}

.coste-card__icon--purple {
  background: rgba(124, 92, 255, 0.1);
  border: 1px solid rgba(124, 92, 255, 0.2);
  color: var(--color-purple);
}

.coste-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.coste-card__tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  background: rgba(13, 108, 242, 0.08);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  align-self: flex-start;
}

.coste-card__tag--optional {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-soft);
}

.coste-card__tag--included {
  color: var(--color-green);
  background: rgba(56, 217, 150, 0.08);
  border-color: rgba(56, 217, 150, 0.2);
}

.coste-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0.25rem 0 0;
}

.coste-card__price {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.coste-card__desc {
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.costes-nota {
  background: rgba(13, 108, 242, 0.05);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.costes-nota p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
}

.costes-nota strong {
  color: var(--text-soft);
}


/* ========================
   RESPONSIVE
======================== */

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

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

  .proceso-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .proceso-steps::before {
    display: none;
  }
}

@media (max-width: 768px) {

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

  .costes-nota {
    flex-direction: column;
    text-align: center;
  }

  .about-story__grid,
  .manifiesto__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .about-pillars__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .values-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .proceso-steps {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .paso {
    flex-direction: row;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .paso:last-child {
    border-bottom: none;
  }

  .paso__num {
    width: 2.75rem;
    height: 2.75rem;
    font-size: 0.78rem;
    flex-shrink: 0;
  }

  .about-visual-card {
    max-width: 440px;
    margin: 0 auto;
  }

  .about-metric {
    grid-template-columns: 6.5rem 1fr 2rem;
  }

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

@media (max-width: 640px) {
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

@media (max-width: 640px) {
  .about-proof__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }

  .about-proof__card {
    padding: 1rem 0.625rem;
  }
}

@media (max-width: 390px) {
  .about-proof__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .about-proof__card {
    padding: 0.875rem 0.5rem;
  }
}

@media (max-width: 360px) {
  .about-proof__grid {
    grid-template-columns: 1fr;
  }
}

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

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

  .about-metric {
    grid-template-columns: 5.5rem 1fr 2rem;
  }
}
/* =====================================================
   PORTFOLIO — Demos y proyectos conceptuales
   MasterCodeWeb · css/pages/portfolio.css
===================================================== */


/* ─── FILTRO DE CATEGORÍAS ───────────────────── */

.portfolio-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}

.portfolio-filter__btn {
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  border: 1px solid var(--border-soft);
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}

.portfolio-filter__btn:hover {
  border-color: rgba(13, 108, 242, 0.5);
  color: var(--text-main);
}

.portfolio-filter__btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.portfolio-filter__btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}


/* ─── AVISO DE DEMOS ─────────────────────────── */

.portfolio-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  background: rgba(13, 108, 242, 0.05);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: var(--radius-lg);
  padding: 0.875rem 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}

.portfolio-notice svg {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--color-primary);
  opacity: 0.7;
}

.portfolio-notice p {
  font-size: 0.825rem;
  line-height: 1.6;
  margin: 0;
}


/* ─── GRID DE PROYECTOS ──────────────────────── */

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}


/* ─── TARJETA ────────────────────────────────── */

.portfolio-card {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.portfolio-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 108, 242, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.portfolio-card--hidden {
  opacity: 0.1;
  filter: grayscale(1);
  pointer-events: none;
  transform: none !important;
}


/* ─── PREVIEW (CSS ART) ──────────────────────── */

.portfolio-card__preview {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}

/* Barra de navegador */
.pf-chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 28px;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.75rem;
  z-index: 2;
}

.pf-chrome__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pf-chrome__dot:nth-child(1) { background: #ff5f57; }
.pf-chrome__dot:nth-child(2) { background: #ffbd2e; }
.pf-chrome__dot:nth-child(3) { background: #28ca41; }

.pf-chrome__url {
  flex: 1;
  height: 15px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  margin-left: 0.375rem;
}

/* Fondo de gradiente */
.portfolio-card__bg {
  position: absolute;
  inset: 0;
  padding: 2.25rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.portfolio-card__bg--amber    { background: linear-gradient(135deg, #1a1200 0%, #2a1c00 60%, #1a1200 100%); }
.portfolio-card__bg--blue     { background: linear-gradient(135deg, #000d1a 0%, #001d3d 60%, #000d1a 100%); }
.portfolio-card__bg--green    { background: linear-gradient(135deg, #001409 0%, #002714 60%, #001409 100%); }
.portfolio-card__bg--orange   { background: linear-gradient(135deg, #180900 0%, #2a1000 60%, #180900 100%); }
.portfolio-card__bg--purple   { background: linear-gradient(135deg, #0c0016 0%, #18002e 60%, #0c0016 100%); }
.portfolio-card__bg--teal     { background: linear-gradient(135deg, #001416 0%, #002529 60%, #001416 100%); }
.portfolio-card__bg--gold     { background: linear-gradient(135deg, #130e00 0%, #221700 60%, #130e00 100%); }
.portfolio-card__bg--navy     { background: linear-gradient(135deg, #060810 0%, #0d1525 60%, #060810 100%); }
.portfolio-card__bg--concrete { background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 60%, #0d0d0d 100%); }
.portfolio-card__bg--warm     { background: linear-gradient(135deg, #120700 0%, #1f0f00 60%, #120700 100%); }

/* Elementos UI simulados */
.pf-mock-nav {
  height: 7px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  width: 75%;
}

.pf-mock-hero {
  height: 42px;
  border-radius: 6px;
  margin-bottom: 0.25rem;
}

.pf-mock-hero--amber    { background: linear-gradient(90deg, rgba(245, 158, 11, 0.45), rgba(245, 158, 11, 0.12)); }
.pf-mock-hero--blue     { background: linear-gradient(90deg, rgba(13, 108, 242, 0.45), rgba(13, 108, 242, 0.12)); }
.pf-mock-hero--green    { background: linear-gradient(90deg, rgba(56, 217, 150, 0.45), rgba(56, 217, 150, 0.12)); }
.pf-mock-hero--orange   { background: linear-gradient(90deg, rgba(249, 115, 22, 0.45), rgba(249, 115, 22, 0.12)); }
.pf-mock-hero--purple   { background: linear-gradient(90deg, rgba(124, 92, 255, 0.45), rgba(124, 92, 255, 0.12)); }
.pf-mock-hero--teal     { background: linear-gradient(90deg, rgba(20, 184, 166, 0.45), rgba(20, 184, 166, 0.12)); }
.pf-mock-hero--gold     { background: linear-gradient(90deg, rgba(201, 162, 39, 0.45), rgba(201, 162, 39, 0.12)); }
.pf-mock-hero--navy     { background: linear-gradient(90deg, rgba(96, 165, 250, 0.35), rgba(96, 165, 250, 0.08)); }
.pf-mock-hero--concrete { background: linear-gradient(90deg, rgba(249, 115, 22, 0.45), rgba(249, 115, 22, 0.12)); }
.pf-mock-hero--warm     { background: linear-gradient(90deg, rgba(245, 158, 11, 0.5),  rgba(249, 115, 22, 0.15)); }

.pf-mock-cards {
  display: flex;
  gap: 0.375rem;
}

.pf-mock-card {
  flex: 1;
  height: 26px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.pf-mock-lines {
  display: flex;
  flex-direction: column;
  gap: 0.275rem;
}

.pf-mock-line {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
}

.pf-mock-line:last-child { width: 58%; }


/* ─── CUERPO DE LA TARJETA ───────────────────── */

.portfolio-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.portfolio-card__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.875rem;
}

.portfolio-stack__tag {
  font-size: 0.665rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 0.25rem;
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  color: var(--color-primary);
}

.portfolio-stack__tag--green  { background: rgba(56, 217, 150, 0.1);  border-color: rgba(56, 217, 150, 0.2);  color: var(--color-green); }
.portfolio-stack__tag--amber  { background: rgba(245, 158, 11, 0.1);  border-color: rgba(245, 158, 11, 0.2);  color: var(--color-amber); }
.portfolio-stack__tag--purple { background: rgba(124, 92, 255, 0.1);  border-color: rgba(124, 92, 255, 0.2);  color: var(--color-purple); }

.portfolio-card__title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 0.4rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.portfolio-card__desc {
  font-size: 0.865rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin: 0 0 1rem;
}

.portfolio-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.portfolio-card__footer {
  margin-top: auto;
  border-top: 1px solid var(--border-soft);
  padding-top: 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.portfolio-card__disclaimer {
  font-size: 0.695rem;
  color: var(--text-muted);
  opacity: 0.5;
  line-height: 1.55;
  font-style: italic;
}

.portfolio-card__demo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-primary);
  font-size: 0.825rem;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.portfolio-card__demo-link:hover {
  opacity: 0.8;
  gap: 0.625rem;
}

.portfolio-card__demo-link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ─── AGRUPACIÓN POR SECTOR ─────────────────── */

.portfolio-sector {
  margin-bottom: 3rem;
}

.portfolio-sector--hidden {
  display: none;
}

.portfolio-sector__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
}

.portfolio-sector__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
  margin: 0;
}

.portfolio-sector__link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.8;
  transition: opacity 0.2s ease, gap 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.portfolio-sector__link:hover {
  opacity: 1;
  gap: 0.5rem;
}

.portfolio-sector__link:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ─── SECCIÓN ANÁLISIS ───────────────────────── */

.analisis-section {
  background: var(--bg-card);
}

.analisis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.analisis-card {
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color var(--transition), background var(--transition);
}

.analisis-card:hover {
  border-color: rgba(13, 108, 242, 0.2);
  background: rgba(13, 108, 242, 0.03);
}

.analisis-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md, 0.5rem);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.375rem;
  flex-shrink: 0;
}

.analisis-card__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
}

.analisis-card__text {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}


/* ─── SECCIÓN HONESTIDAD ─────────────────────── */

.honesty-section {
  background: var(--bg-dark);
}

.honesty-card {
  max-width: 740px;
  margin: 0 auto;
  background: rgba(13, 108, 242, 0.04);
  border: 1px solid rgba(13, 108, 242, 0.15);
  border-radius: var(--radius-xl);
  padding: 2.5rem 3rem;
  text-align: center;
  position: relative;
}

.honesty-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(13, 108, 242, 0.5), transparent);
  pointer-events: none;
}

.honesty-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(13, 108, 242, 0.1);
  border: 1px solid rgba(13, 108, 242, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--color-primary);
}

.honesty-card__title {
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 800;
  color: var(--text-main);
  margin: 0 0 1rem;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.honesty-card__text {
  font-size: 0.975rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin: 0 0 0.875rem;
}

.honesty-card__text:last-of-type {
  margin-bottom: 0;
}

.honesty-card__list {
  list-style: none;
  padding: 0;
  margin: 1.5rem auto 1.5rem;
  max-width: 460px;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  text-align: left;
}

.honesty-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.honesty-card__list li svg {
  flex-shrink: 0;
  margin-top: 0.1rem;
  color: var(--color-green);
}


/* ─── RESPONSIVE ─────────────────────────────── */

@media (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .portfolio-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.25rem;
    margin-left: -0.25rem;
    margin-right: -0.25rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .portfolio-filter::-webkit-scrollbar {
    display: none;
  }

  .portfolio-filter__btn {
    flex-shrink: 0;
  }

  .honesty-card {
    padding: 2rem 1.5rem;
  }
}

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

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

  .honesty-card {
    padding: 1.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }

  .portfolio-card__preview {
    height: 160px;
  }

  .portfolio-notice {
    padding: 0.75rem 1rem;
  }
}
/* =====================================================
   DEMOS — Shared utilities for demo/conceptual pages
   MasterCodeWeb · css/pages/demos.css
===================================================== */

/* ─── DEMO DISCLAIMER BANNER ─────────────────── */

.demo-banner {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(13, 108, 242, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.demo-banner__text {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Inter', -apple-system, sans-serif;
  line-height: 1.4;
  flex: 1;
  min-width: 0;
}

.demo-banner__text strong {
  color: #fff;
  font-weight: 700;
}

.demo-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  text-decoration: none;
  padding: 0.3rem 0.875rem;
  border-radius: 2rem;
  font-size: 0.76rem;
  font-weight: 600;
  white-space: nowrap;
  font-family: 'Inter', -apple-system, sans-serif;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.demo-back:hover {
  background: rgba(255, 255, 255, 0.28);
}

.demo-back:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 768px) {
  /* Keep banner as single row — never stack to column (stacking breaks sticky header top values) */
  .demo-banner {
    flex-wrap: nowrap;
    gap: 0.625rem;
  }
  .demo-banner__text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

@media (max-width: 540px) {
  .demo-banner {
    padding: 0.5rem 0.875rem;
    gap: 0.5rem;
  }
  .demo-banner__text {
    font-size: 0.72rem;
  }
  .demo-back {
    padding: 0.25rem 0.625rem;
    font-size: 0.7rem;
  }
}

/* ─── GLOBAL MOBILE PROTECTION ───────────────────── */

/* Prevent horizontal scroll on all demo pages */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Contain content inside preview wrapper */
#demoPreviewWrap {
  overflow-x: hidden;
}

/* Images never exceed their container */
#demoPreviewWrap img,
#demoPreviewWrap video {
  max-width: 100%;
  height: auto;
}

/* Forms and inputs never overflow */
#demoPreviewWrap input,
#demoPreviewWrap textarea,
#demoPreviewWrap select,
#demoPreviewWrap button {
  max-width: 100%;
  box-sizing: border-box;
}

/* ─── DEMO CONTROLS PANEL ───────────────────────── */

/* Smooth color transitions when switching palette */
html.dcp-changing * {
  transition:
    background-color 280ms ease,
    border-color 280ms ease,
    color 280ms ease,
    box-shadow 280ms ease !important;
}

.demo-controls-panel {
  background: #06060e;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 4vw, 2rem);
  font-family: 'Inter', -apple-system, sans-serif;
}

/* ─── Card ──────────────────────────────────────── */

.dcp__card {
  max-width: 60rem;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: clamp(1.25rem, 3vw, 2rem);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ─── Head ──────────────────────────────────────── */

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

.dcp__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--demo-primary, #0d6cf2);
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dcp__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

/* ─── Controls row ──────────────────────────────── */

.dcp__controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.25rem;
  align-items: center;
}

/* ─── Block ─────────────────────────────────────── */

.dcp__block {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.dcp__block-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.32);
  margin: 0;
}

/* ─── Carousel ──────────────────────────────────── */

.dcp__carousel {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dcp__carousel-center {
  flex: 1;
  min-width: 0;
}

.dcp__carousel-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--demo-primary, #0d6cf2) inset, 0 0 10px -4px var(--demo-primary, #0d6cf2);
}

.dcp__carousel-strip {
  display: flex;
  height: 4px;
  width: 100%;
  pointer-events: none;
}

.dcp__strip-seg {
  flex: 1;
  display: block;
  font-style: normal;
}

.dcp__carousel-body {
  padding: 0.5rem 0.75rem 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.dcp__carousel-dots {
  display: flex;
  gap: 3px;
  flex-shrink: 0;
}

.dcp__dot {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
  font-style: normal;
}

.dcp__carousel-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dcp__pal-counter {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

/* ─── Nav buttons ───────────────────────────────── */

.dcp__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  min-width: 36px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  flex-shrink: 0;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.dcp__nav:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dcp__nav:focus-visible {
  outline: 2px solid var(--demo-primary, #0d6cf2);
  outline-offset: 2px;
}

/* ─── Screen-reader live region ─────────────────── */

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

/* ─── Viewport segmented control ───────────────── */

.dcp__vp-seg {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.dcp__vp-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  min-height: 36px;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.dcp__vp-tab:last-child {
  border-right: none;
}

.dcp__vp-tab:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.75);
}

.dcp__vp-tab--active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.dcp__vp-tab:focus-visible {
  outline: 2px solid var(--demo-primary, #0d6cf2);
  outline-offset: -2px;
}

/* ─── Divider ───────────────────────────────────── */

.dcp__hr {
  border: none;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0;
}

/* ─── Footer / CTA ──────────────────────────────── */

.dcp__foot {
  display: flex;
  justify-content: flex-end;
}

.dcp__foot-ctas {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.dcp__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  min-height: 44px;
  background: var(--demo-primary, #0d6cf2);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: filter 0.18s ease, transform 0.18s ease;
}

.dcp__cta:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

.dcp__cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.dcp__wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  min-height: 44px;
  background: rgba(37, 211, 102, 0.1);
  border: 1px solid rgba(37, 211, 102, 0.3);
  color: #25d366;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.dcp__wa:hover {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}

.dcp__wa:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 3px;
}

/* ─── Viewport preview wrap — frame + transition ─── */

#demoPreviewWrap {
  border: 1px solid transparent;
  transition:
    max-width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

body[data-demo-vp="mobile"] #demoPreviewWrap {
  max-width: 390px;
  margin-inline: auto;
  overflow-x: hidden;
  border-radius: 1.75rem;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 0 0 5px rgba(255, 255, 255, 0.025),
    0 48px 120px rgba(0, 0, 0, 0.75),
    0 8px 32px rgba(0, 0, 0, 0.5);
}

body[data-demo-vp="tablet"] #demoPreviewWrap {
  max-width: 768px;
  margin-inline: auto;
  overflow-x: hidden;
  border-radius: 1rem;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.02),
    0 32px 80px rgba(0, 0, 0, 0.6);
}

/* ═══════════════════════════════════════════════════
   VIEWPORT PREVIEW SIMULATION
   Replicates the layout changes that @media queries
   trigger at real viewport widths. Needed because
   #demoPreviewWrap's max-width doesn't fire the
   demos' media queries — those respond to actual
   browser viewport width, not container width.
   ─────────────────────────────────────────────────
   mobile  ≈  390px  → replicates ≤1024 + ≤768 + ≤640 + ≤480px rules
   tablet  ≈  768px  → replicates ≤1024 + ≤768px rules only
═══════════════════════════════════════════════════ */

/* ── Shared: hide all demo navs in mobile / tablet ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .r-nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .d-nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .g-nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .e-nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .header__nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .im-nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-nav,
body[data-demo-vp="mobile"] #demoPreviewWrap .az-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .r-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .d-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .g-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .e-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .header__nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .im-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .bf-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .cn-nav,
body[data-demo-vp="tablet"] #demoPreviewWrap .az-nav { display: none; }

/* ── Restaurante Málaga — Tablet (≤768px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .r-about__grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .r-grid-3,
body[data-demo-vp="tablet"] #demoPreviewWrap .r-info__grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .r-footer__inner { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .r-footer__bottom { flex-direction: column; }
body[data-demo-vp="tablet"] #demoPreviewWrap .r-section { padding: 3rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .r-hero__inner { padding: 3.5rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .r-about__visual { height: 260px; }

/* ── Restaurante Málaga — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .r-about__grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .r-grid-3,
body[data-demo-vp="mobile"] #demoPreviewWrap .r-info__grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .r-footer__inner,
body[data-demo-vp="mobile"] #demoPreviewWrap .r-form-row { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .r-footer__bottom { flex-direction: column; }
body[data-demo-vp="mobile"] #demoPreviewWrap .r-section { padding: 2.25rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .r-hero__inner { padding: 3rem 1rem; text-align: center; }
body[data-demo-vp="mobile"] #demoPreviewWrap .r-hero__sub { margin-inline: auto; }
body[data-demo-vp="mobile"] #demoPreviewWrap .r-hero__actions { flex-direction: column; align-items: stretch; }
body[data-demo-vp="mobile"] #demoPreviewWrap .r-hero__actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; }
body[data-demo-vp="mobile"] #demoPreviewWrap .r-about__visual { height: 200px; }

/* ── Clínica Dental — Tablet (≤768px / ≤1024px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .d-hero__inner { grid-template-columns: 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .d-grid-4 { grid-template-columns: repeat(2, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .d-why__grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .d-footer__inner { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .d-section { padding: 3rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .d-hero { padding: 3.5rem 1.25rem 3rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .d-hero__inner { gap: 2rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .d-hero__visual { height: 240px; }

/* ── Clínica Dental — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .d-grid-4,
body[data-demo-vp="mobile"] #demoPreviewWrap .d-hero__inner,
body[data-demo-vp="mobile"] #demoPreviewWrap .d-why__grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .d-footer__inner,
body[data-demo-vp="mobile"] #demoPreviewWrap .d-form-row { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .d-section { padding: 2.25rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .d-hero { padding: 2.5rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .d-form { padding: 1.75rem 1.25rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .d-hero__visual { height: 180px; }
body[data-demo-vp="mobile"] #demoPreviewWrap .d-hero__sub { margin-inline: auto; }
body[data-demo-vp="mobile"] #demoPreviewWrap .d-hero__actions { flex-direction: column; align-items: stretch; }
body[data-demo-vp="mobile"] #demoPreviewWrap .d-hero__actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; }
body[data-demo-vp="mobile"] #demoPreviewWrap .d-hero__stats { gap: 1.25rem; }

/* ── Tienda Gourmet — Tablet (≤768px / ≤1024px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .g-products { grid-template-columns: repeat(2, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .g-cats__grid { grid-template-columns: repeat(3, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .g-hero__inner,
body[data-demo-vp="tablet"] #demoPreviewWrap .g-story__grid { grid-template-columns: 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .g-footer__inner { grid-template-columns: 1fr 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .g-section { padding: 3.5rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .g-section__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .g-hero__inner { padding: 3.5rem 1.25rem; gap: 2.5rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .g-hero__visual { height: 220px; }
body[data-demo-vp="tablet"] #demoPreviewWrap .g-hero__actions { flex-direction: column; align-items: flex-start; }

/* ── Tienda Gourmet — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .g-products,
body[data-demo-vp="mobile"] #demoPreviewWrap .g-cats__grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .g-hero__inner,
body[data-demo-vp="mobile"] #demoPreviewWrap .g-story__grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .g-footer__inner { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .g-section { padding: 2.5rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .g-section__header { flex-direction: column; align-items: flex-start; gap: 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .g-hero__inner { padding: 3rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .g-hero__sub { max-width: 100%; }
body[data-demo-vp="mobile"] #demoPreviewWrap .g-hero__actions { flex-direction: column; align-items: stretch; }
body[data-demo-vp="mobile"] #demoPreviewWrap .g-hero__actions a { display: flex; align-items: center; justify-content: center; min-height: 48px; }
body[data-demo-vp="mobile"] #demoPreviewWrap .g-news__form { flex-direction: column; }
body[data-demo-vp="mobile"] #demoPreviewWrap .g-news__input,
body[data-demo-vp="mobile"] #demoPreviewWrap .g-news__btn { width: 100%; }

/* ── Electricista Málaga — Tablet (≤768px / ≤1024px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .e-services { grid-template-columns: repeat(2, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .e-zones__grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .e-footer__inner { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .e-section { padding: 3rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .e-hero { padding: 3.5rem 1.25rem 3rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .e-hero__trust { flex-direction: column; gap: 0.875rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .e-emergency { margin: 0; border-radius: 0; }
body[data-demo-vp="tablet"] #demoPreviewWrap .e-zones__list { columns: 1; }

/* ── Electricista Málaga — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .e-services,
body[data-demo-vp="mobile"] #demoPreviewWrap .e-zones__grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .e-footer__inner,
body[data-demo-vp="mobile"] #demoPreviewWrap .e-form-row { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .e-section { padding: 2.25rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .e-hero { padding: 3rem 1rem 2.5rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .e-hero__trust { flex-direction: column; gap: 0.875rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .e-hero__actions { flex-direction: column; align-items: stretch; }
body[data-demo-vp="mobile"] #demoPreviewWrap .btn-call,
body[data-demo-vp="mobile"] #demoPreviewWrap .btn-quote { display: flex; width: 100%; justify-content: center; align-items: center; min-height: 48px; }
body[data-demo-vp="mobile"] #demoPreviewWrap .e-emergency { margin: 0; border-radius: 0; }
body[data-demo-vp="mobile"] #demoPreviewWrap .e-zones__list { columns: 1; }

/* ── Landing SaaS — Tablet (≤768px / ≤900px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .hero__grid { grid-template-columns: 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .hero__visual { display: none; }
body[data-demo-vp="tablet"] #demoPreviewWrap .features-grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .pricing-grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .testimonials-grid { grid-template-columns: 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .footer__grid { grid-template-columns: 1fr 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .hero { padding: 3.5rem 1.25rem 4rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .features-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .how-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .pricing-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .testimonials-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .cta-section { padding: 3rem 1.25rem; }

/* ── Landing SaaS — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .hero__grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .features-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .steps-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .pricing-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .testimonials-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .footer__grid { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .hero__visual { display: none; }
body[data-demo-vp="mobile"] #demoPreviewWrap .steps-grid::before { display: none; }
body[data-demo-vp="mobile"] #demoPreviewWrap .hero { padding: 3rem 1rem 3.5rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .hero__actions { flex-direction: column; align-items: stretch; }
body[data-demo-vp="mobile"] #demoPreviewWrap .btn-primary,
body[data-demo-vp="mobile"] #demoPreviewWrap .btn-secondary { display: flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; }
body[data-demo-vp="mobile"] #demoPreviewWrap .features-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .how-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .pricing-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .testimonials-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .cta-section { padding: 2.5rem 1rem; }

/* ── Centro Deportivo — Tablet (≤768px / ≤900px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .classes-grid { grid-template-columns: repeat(2, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .facilities-inner,
body[data-demo-vp="tablet"] #demoPreviewWrap .signup-inner,
body[data-demo-vp="tablet"] #demoPreviewWrap .form-row { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .hero__content { max-width: 100%; }
body[data-demo-vp="tablet"] #demoPreviewWrap .hero__figure,
body[data-demo-vp="tablet"] #demoPreviewWrap .hero__bg-right { display: none; }
body[data-demo-vp="tablet"] #demoPreviewWrap .classes-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .facilities-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .schedule-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .testimonials-section,
body[data-demo-vp="tablet"] #demoPreviewWrap .signup-section { padding: 3rem 1.25rem; }

/* ── Centro Deportivo — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .classes-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .facilities-inner,
body[data-demo-vp="mobile"] #demoPreviewWrap .signup-inner,
body[data-demo-vp="mobile"] #demoPreviewWrap .form-row { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .hero__content { max-width: 100%; }
body[data-demo-vp="mobile"] #demoPreviewWrap .hero__figure,
body[data-demo-vp="mobile"] #demoPreviewWrap .hero__bg-right { display: none; }
body[data-demo-vp="mobile"] #demoPreviewWrap .hero__stats { gap: 0.875rem; flex-wrap: wrap; }
body[data-demo-vp="mobile"] #demoPreviewWrap .btn-primary,
body[data-demo-vp="mobile"] #demoPreviewWrap .btn-ghost { display: flex; justify-content: center; align-items: center; min-height: 48px; width: 100%; }
body[data-demo-vp="mobile"] #demoPreviewWrap .classes-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .facilities-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .schedule-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .testimonials-section,
body[data-demo-vp="mobile"] #demoPreviewWrap .signup-section { padding: 2.5rem 1rem; }

/* ── Inmobiliaria — Tablet (≤768px / ≤1024px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .im-grid-3,
body[data-demo-vp="tablet"] #demoPreviewWrap .im-servicios-grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .im-footer__grid { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .im-why-grid { grid-template-columns: 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .im-section { padding: 3rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .im-hero__inner { padding: 3.5rem 1.25rem; }

/* ── Inmobiliaria — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .im-grid-3,
body[data-demo-vp="mobile"] #demoPreviewWrap .im-servicios-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .im-why-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .im-form-row,
body[data-demo-vp="mobile"] #demoPreviewWrap .im-footer__grid { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .im-section { padding: 2.25rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .im-hero__inner { padding: 3rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .im-hero__actions { flex-direction: column; align-items: flex-start; }
body[data-demo-vp="mobile"] #demoPreviewWrap .im-hero__stats { gap: 1.25rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .im-form-wrap { padding: 1.75rem 1.1rem; }

/* ── Bufete Legal — Tablet (≤768px / ≤1024px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .bf-areas,
body[data-demo-vp="tablet"] #demoPreviewWrap .bf-footer-grid { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .bf-about-grid { grid-template-columns: 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .bf-section { padding: 3rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .bf-hero { padding: 3.5rem 1.25rem 3rem; }

/* ── Bufete Legal — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .bf-areas,
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-process,
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-about-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-form-row,
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-footer-grid { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .bf-section { padding: 2.25rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-hero { padding: 3rem 1rem 2.5rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-hero__actions { justify-content: center; flex-direction: column; align-items: center; }
body[data-demo-vp="mobile"] #demoPreviewWrap .bf-hero__stats { gap: 1.25rem; flex-wrap: wrap; }

/* ── Construcción — Tablet (≤768px / ≤1024px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .cn-services-grid { grid-template-columns: repeat(2, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .cn-projects-grid,
body[data-demo-vp="tablet"] #demoPreviewWrap .cn-footer__grid { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .cn-proceso-grid { grid-template-columns: repeat(2, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .cn-section { padding: 3rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .cn-hero { padding: 3.5rem 1.25rem 3rem; }

/* ── Construcción — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .cn-services-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-projects-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-proceso-grid,
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-footer__grid { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .cn-section { padding: 2.25rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-hero { padding: 3rem 1rem 2.5rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-hero__actions { flex-direction: column; align-items: stretch; }
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-hero__stats { gap: 1.25rem; flex-wrap: wrap; }
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-form-row { grid-template-columns: 1fr; }
body[data-demo-vp="mobile"] #demoPreviewWrap .cn-footer__bottom { flex-direction: column; text-align: center; }

/* ── Amazon Afiliados — Tablet (≤768px / ≤1024px) ── */

body[data-demo-vp="tablet"] #demoPreviewWrap .az-cats { grid-template-columns: repeat(2, 1fr); }
body[data-demo-vp="tablet"] #demoPreviewWrap .az-comparativa { grid-template-columns: 1fr 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .az-guides { grid-template-columns: 1fr 1fr; }
body[data-demo-vp="tablet"] #demoPreviewWrap .az-footer__grid { grid-template-columns: 1fr; }

body[data-demo-vp="tablet"] #demoPreviewWrap .az-section { padding: 3rem 1.25rem; }
body[data-demo-vp="tablet"] #demoPreviewWrap .az-hero { padding: 3.5rem 1.25rem 3rem; }

/* ── Amazon Afiliados — Mobile (≤390px) ── */

body[data-demo-vp="mobile"] #demoPreviewWrap .az-cats,
body[data-demo-vp="mobile"] #demoPreviewWrap .az-comparativa,
body[data-demo-vp="mobile"] #demoPreviewWrap .az-guides,
body[data-demo-vp="mobile"] #demoPreviewWrap .az-footer__grid { grid-template-columns: 1fr; }

body[data-demo-vp="mobile"] #demoPreviewWrap .az-section { padding: 2.25rem 1rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .az-hero { padding: 3rem 1rem 2.5rem; }
body[data-demo-vp="mobile"] #demoPreviewWrap .az-hero__actions { flex-direction: column; align-items: flex-start; }

/* ─── Responsive ─────────────────────────────────── */

@media (max-width: 640px) {
  .dcp__controls { grid-template-columns: 1fr; gap: 1rem; }
  .dcp__vp-seg { width: 100%; }
  .dcp__vp-tab { flex: 1; justify-content: center; }
  .dcp__foot { justify-content: stretch; }
  .dcp__foot-ctas { width: 100%; }
  .dcp__cta, .dcp__wa { flex: 1; justify-content: center; }
}

@media (max-width: 480px) {
  .dcp__head { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
  .dcp__nav { width: 40px; height: 40px; min-width: 40px; }
  .dcp__carousel-name { font-size: 0.75rem; }
}
/* =====================================================
HELPERS · UTILIDADES GLOBALES
Clases rápidas · layout · texto · spacing
===================================================== */


/* ========================
TEXT ALIGN
======================== */

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


/* ========================
DISPLAY
======================== */

.hidden { display: none !important; }
.block  { display: block; }
.inline { display: inline-block; }


/* ========================
MARGIN AUTO
======================== */

.mx-auto { margin-left: auto; margin-right: auto; }


/* ========================
SPACING (MARGIN)
======================== */

.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 2rem; }

.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 2rem; }


/* ========================
SPACING (PADDING)
======================== */

.p-sm { padding: 0.5rem; }
.p-md { padding: 1rem; }
.p-lg { padding: 2rem; }


/* ========================
WIDTH
======================== */

.w-full { width: 100%; }


/* ========================
FLEX UTILITIES
======================== */

.flex { display: flex; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.flex-column {
  display: flex;
  flex-direction: column;
}


/* ========================
POSITION
======================== */

.relative { position: relative; }
.absolute { position: absolute; }


/* ========================
OVERFLOW
======================== */

.overflow-hidden { overflow: hidden; }


/* ========================
CURSOR
======================== */

.cursor-pointer { cursor: pointer; }/* =====================================================
ANIMATIONS · MICROINTERACCIONES
Animaciones suaves · UX · reveal effects
===================================================== */


/* ========================
FADE IN
======================== */

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

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


/* ========================
FADE UP (SCROLL)
======================== */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  will-change: opacity, transform;
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Stagger delays para grids */
.reveal:nth-child(1) { transition-delay: 0ms; }
.reveal:nth-child(2) { transition-delay: 80ms; }
.reveal:nth-child(3) { transition-delay: 160ms; }
.reveal:nth-child(4) { transition-delay: 240ms; }
.reveal:nth-child(5) { transition-delay: 320ms; }

/* Respeta preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* ========================
HOVER LIFT
======================== */

.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
}


/* ========================
SCALE HOVER
======================== */

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}


/* ========================
PULSE (CTA)
======================== */

.pulse {
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.06); }
  100% { transform: scale(1); }
}


/* ========================
SPINNER (LOADING)
======================== */

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}/* ============================================================
   RESPONSIVE SYSTEM — MASTERCODEWEB
   Single source of truth for all breakpoint overrides.
   Component files keep desktop-first base styles only.

   Breakpoints:
   ≤ 1200px   desktop-md
   ≤  992px   tablet-l
   ≤  768px   tablet / large phone  ← primary mobile pivot
   ≤  640px   phone-l
   ≤  480px   phone
   ≤  390px   phone-sm (iPhone 14/15 standard)
   ≤  360px   phone-xs (smallest common Android)
   ≥ 1440px   desktop-xl
   ≥ 1920px   4K / ultra-wide
============================================================ */


/* ──────────────────────────────────────────────────────────
   GLOBAL MOBILE PROTECTION
   Applied once, not per-breakpoint.
────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
  }
}


/* ──────────────────────────────────────────────────────────
   ≤ 768px — TABLET / LARGE PHONE
   Major layout pivot. All section padding, hero, grids.
────────────────────────────────────────────────────────── */

@media (max-width: 768px) {

  /* ── Container ─────────────────────────────────────── */
  .container {
    padding: 0 1.25rem;
  }

  /* ── Sections ──────────────────────────────────────── */
  .section,
  .section--alt,
  .section--dark,
  .services,
  .home-cta,
  .testimonials,
  .process,
  .local-trust,
  .social-cta {
    padding: 3rem 1.25rem;
  }

  .section-header,
  .section__header {
    margin-bottom: 1.75rem;
  }

  .section-header h2 {
    font-size: clamp(1.5rem, 5vw, 1.95rem);
  }

  /* ── Hero ──────────────────────────────────────────── */
  .hero {
    padding: 3.5rem 1.25rem 2.5rem;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 7.5vw, 2.6rem);
    line-height: 1.1;
  }

  .hero__description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero__badge {
    white-space: normal;
    text-align: center;
    max-width: 280px;
    line-height: 1.4;
  }

  .hero__trust {
    font-size: 0.72rem;
    line-height: 1.65;
    letter-spacing: 0.07em;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  /* Remove desktop scale — full-width buttons don't scale */
  .hero__actions .btn--primary {
    transform: none;
    box-shadow: 0 6px 24px rgba(13, 108, 242, 0.4);
  }

  .hero__actions .btn,
  .home-cta__content .btn {
    width: 100%;
    max-width: 340px;
  }

  /* ── Touch targets: enforce 44px minimum ───────────── */
  .btn {
    min-height: 44px;
  }

  .faq__q {
    min-height: 44px;
  }

  .social-cta__item {
    min-height: 44px;
  }

  /* ── Process steps ─────────────────────────────────────── */
  /* process__grid columns: auto-fit in cards.css handles this */

  /* Grid layout: number badge left, time+title right, body full-width */
  .process__step {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    column-gap: 1rem;
    row-gap: 0;
    padding: 1.4rem 1.5rem;
    align-items: start;
    text-align: left;
  }

  .process__number {
    grid-column: 1;
    grid-row: 1;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 0.75rem;
    margin-top: 0.1rem;
  }

  .process__time {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
    padding-top: 0.25rem;
  }

  .process__step h3 {
    grid-column: 2;
    grid-row: 2;
    margin: 0.2rem 0 0;
    font-size: 0.97rem;
  }

  .process__step p {
    grid-column: 1 / 3;
    grid-row: 3;
    padding-top: 0.75rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-soft);
    width: 100%;
  }

  .process__needs {
    grid-column: 1 / 3;
    grid-row: 4;
    padding-top: 0.35rem;
    width: 100%;
  }

  /* ── Perf split ────────────────────────────────────── */
  .perf-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* ── Perf facts — card layout on mobile ─────────────── */
  .perf-facts {
    gap: 0.75rem;
  }

  .perf-facts li {
    display: block;
    padding: 0.9rem 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-left: 3px solid var(--color-green);
    border-radius: var(--radius-md);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-soft);
  }

  .perf-facts li::before {
    display: none;
  }

  .perf-facts__stat {
    display: block;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.35;
    margin-bottom: 0.2rem;
  }

  .perf-facts__detail {
    display: block;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.55;
  }

  /* ── FAQ ───────────────────────────────────────────── */
  .faq__q {
    padding: 1.05rem 1.35rem;
    font-size: 0.91rem;
  }

  .faq__a {
    padding: 0 1.35rem 1.1rem;
    padding-top: 0.9rem;
  }

  /* ── Forms ─────────────────────────────────────────── */
  .budget-form__grid {
    grid-template-columns: 1fr;
  }

  .phone-group {
    flex-wrap: wrap;
  }

  .phone-group select {
    flex: 0 0 auto;
    min-width: 96px;
  }

  /* ── Toast ─────────────────────────────────────────── */
  .mcw-toast {
    bottom: 5.5rem;
  }

  /* ── Footer: clearance for fixed wa-fab ────────────── */
  .footer {
    padding-bottom: 5rem;
  }

}


/* ──────────────────────────────────────────────────────────
   ≤ 640px — PHONE (LARGE)
   Stats grid, fail-grid overflow fix, portfolio 1-col.
────────────────────────────────────────────────────────── */

@media (max-width: 640px) {

  /* ── Stats bar: 2 × 2 grid ─────────────────────────── */
  .stats-bar {
    padding: 1.5rem 1rem;
  }

  .stats-bar__inner {
    gap: 0;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
    width: 50%;
    padding: 1rem 0.75rem;
  }

  .stat-item:nth-child(odd) {
    border-right: 1px solid var(--border-soft);
  }

  .stat-item:last-child:nth-child(odd) {
    border-right: none;
    width: 100%;
  }

  .stat-item:last-child {
    border-bottom: none;
  }

  /* ── Fail grid: force 1-col to prevent overflow ─────── */
  /* minmax(19rem, 1fr) overflows at < ~380px — fix here   */
  .fail-grid {
    grid-template-columns: 1fr;
  }

  /* ── Portfolio: 1-col at 640px ─────────────────────── */
  .portfolio__grid {
    grid-template-columns: 1fr;
  }

  .portfolio-card__preview {
    height: 140px;
  }

}


/* ──────────────────────────────────────────────────────────
   ≤ 480px — PHONE
   Compact vertical rhythm, card density, full-width CTAs.
────────────────────────────────────────────────────────── */

@media (max-width: 480px) {

  /* ── Sections ──────────────────────────────────────── */
  .section,
  .section--alt,
  .section--dark,
  .home-cta,
  .process,
  .social-cta,
  .testimonials,
  .services,
  .local-trust {
    padding: 2.25rem 1.25rem;
  }

  .section-header,
  .section__header {
    margin-bottom: 1.25rem;
  }

  .section-header h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
  }

  /* ── Hero ──────────────────────────────────────────── */
  .hero {
    padding: 2.75rem 1.25rem 2rem;
  }

  .hero__badge {
    max-width: 220px;
    font-size: 0.63rem;
    padding: 0.3rem 0.8rem;
    letter-spacing: 0.1em;
  }

  .hero__trust {
    font-size: 0.67rem;
    letter-spacing: 0.05em;
  }

  /* ── Stats ─────────────────────────────────────────── */
  .stat-item {
    padding: 0.9rem 0.65rem;
  }

  .stat-item__value {
    font-size: 1.25rem;
  }

  .stat-item__label {
    font-size: 0.68rem;
  }

  /* ── Performance metrics ───────────────────────────── */
  .perf-metric {
    padding: 1rem 1.25rem;
    gap: 1rem;
  }

  .perf-metric__value {
    font-size: 1.6rem;
    min-width: 3.5rem;
  }

  /* ── Process steps ─────────────────────────────────── */
  .process__step {
    padding: 1.2rem 1.25rem;
    column-gap: 0.875rem;
  }

  .process__needs {
    font-size: 0.71rem;
  }

  /* ── Cards: audience, service ──────────────────────── */
  .audience-card,
  .service-card {
    padding: 1.5rem 1.25rem;
    max-width: 100%;
  }

  .fail-item {
    padding: 1.1rem 1.25rem;
  }

  /* ── Differ / expect cards ─────────────────────────── */
  .differ-card,
  .expect-card {
    padding: 1.4rem 1.25rem;
  }

  /* ── Fail callout ──────────────────────────────────── */
  .fail__callout {
    padding: 1.25rem 1rem;
    margin-top: 1.5rem;
  }

  /* ── Trust row: stack vertically ───────────────────── */
  .trust-row {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
  }

  /* ── Buttons: full-width at 480px ──────────────────── */
  .hero__actions .btn,
  .home-cta__content .btn {
    max-width: 100%;
    font-size: 0.9rem;
    padding: 0.85rem 1.4rem;
  }

  /* ── Portfolio cards ───────────────────────────────── */
  .portfolio-card__body {
    padding: 1rem;
  }

  .portfolio-card__preview {
    height: 125px;
  }

  /* ── Social CTA ────────────────────────────────────── */
  .social-cta__links {
    flex-direction: column;
    align-items: center;
  }

  .social-cta__item {
    width: 100%;
    max-width: 300px;
    justify-content: center;
    padding: 0.85rem 1.25rem;
  }

  /* ── FAQ ───────────────────────────────────────────── */
  .faq__q {
    padding: 0.95rem 1.1rem;
    font-size: 0.88rem;
  }

  .faq__a {
    padding: 0 1.1rem 1rem;
    padding-top: 0.85rem;
  }

}


/* ──────────────────────────────────────────────────────────
   ≤ 390px — PHONE SM (iPhone 14/15 standard)
   Tighter layout, reduced headings, vertical perf metrics.
────────────────────────────────────────────────────────── */

@media (max-width: 390px) {

  /* ── Container ─────────────────────────────────────── */
  .container {
    padding: 0 1rem;
  }

  /* ── Sections ──────────────────────────────────────── */
  .section,
  .section--alt,
  .section--dark,
  .home-cta,
  .process,
  .social-cta,
  .testimonials,
  .services,
  .local-trust {
    padding: 2rem 1rem;
  }

  /* ── Typography ────────────────────────────────────── */
  .hero h1 {
    font-size: clamp(1.75rem, 8.5vw, 2.1rem);
  }

  .hero__description {
    font-size: 0.95rem;
  }

  .section-header h2 {
    font-size: clamp(1.35rem, 5.5vw, 1.65rem);
  }

  /* ── Hero ──────────────────────────────────────────── */
  .hero {
    padding: 2.25rem 1rem 1.75rem;
  }

  /* ── Stats ─────────────────────────────────────────── */
  .stats-bar {
    padding: 1.25rem 0.75rem;
  }

  .stat-item {
    padding: 0.75rem 0.5rem;
  }

  .stat-item__value {
    font-size: 1.15rem;
  }

  .stat-item__label {
    font-size: 0.65rem;
  }

  /* ── Perf metrics: stack value over body ───────────── */
  .perf-metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
  }

  .perf-metric__value {
    font-size: 1.8rem;
    min-width: auto;
  }

  /* ── Process steps ─────────────────────────────────── */
  .process__step {
    padding: 1rem 1rem;
    column-gap: 0.75rem;
  }

  .process__step h3 {
    font-size: 0.91rem;
  }

  .process__step p {
    font-size: 0.84rem;
  }

  /* ── Perf facts ────────────────────────────────────── */
  .perf-facts li {
    padding: 0.8rem 0.875rem;
  }

  .perf-facts__stat {
    font-size: 0.9rem;
  }

  .perf-facts__detail {
    font-size: 0.8rem;
  }

  /* ── Fail items ────────────────────────────────────── */
  .fail-item {
    padding: 1rem;
  }

  /* ── Local trust: tighter gap ──────────────────────── */
  .local-trust__inner {
    gap: 1.5rem;
  }

}


/* ──────────────────────────────────────────────────────────
   ≤ 360px — PHONE XS (smallest common)
   Minimal padding, most compact layout possible.
────────────────────────────────────────────────────────── */

@media (max-width: 360px) {

  /* ── Container ─────────────────────────────────────── */
  .container {
    padding: 0 0.875rem;
  }

  /* ── Sections ──────────────────────────────────────── */
  .section,
  .section--alt,
  .section--dark,
  .home-cta,
  .process,
  .social-cta,
  .testimonials,
  .services,
  .local-trust {
    padding: 1.75rem 0.875rem;
  }

  /* ── Hero ──────────────────────────────────────────── */
  .hero {
    padding: 2rem 0.875rem 1.5rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 8.5vw, 2rem);
  }

  .hero__trust {
    font-size: 0.64rem;
    letter-spacing: 0.04em;
  }

  /* ── Typography ────────────────────────────────────── */
  .section-header h2 {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
  }

  /* ── Process steps ─────────────────────────────────── */
  .process__step {
    padding: 0.9rem 0.875rem;
    column-gap: 0.625rem;
  }

  .process__number {
    width: 2rem;
    height: 2rem;
    font-size: 0.7rem;
  }

  /* ── Perf facts ────────────────────────────────────── */
  .perf-facts li {
    padding: 0.75rem 0.875rem;
  }

}


/* ──────────────────────────────────────────────────────────
   ≥ 1440px — DESKTOP XL
────────────────────────────────────────────────────────── */

@media (min-width: 1440px) {

  body {
    font-size: 1.05rem;
  }

  .hero {
    padding: 7rem 2rem;
  }

}


/* ──────────────────────────────────────────────────────────
   ≥ 1920px — 4K / ULTRA-WIDE
────────────────────────────────────────────────────────── */

@media (min-width: 1920px) {

  body {
    font-size: 1.1rem;
  }

  .container {
    max-width: 90rem;
  }

}
