/* main.css generado por concatenación de módulos — evita cadenas de @import que bloquean el render (Core Web Vitals) */
/* ==========================================================================
   STRELLA ESTUDIO — 01. VARIABLES
   Sistema de diseño. Ningún valor de color, tipografía o espaciado se
   escribe fuera de este archivo en el resto del proyecto.
   ========================================================================== */

:root {

  /* ---- Color ------------------------------------------------------- */
  --color-primary: #2563EB;
  --color-primary-hover: #1D4ED8;
  --color-primary-light: #DBEAFE;

  --color-bg: #FFFFFF;
  --color-bg-secondary: #F8FAFC;

  --color-text: #0F172A;
  --color-text-secondary: #64748B;

  --color-border: #E2E8F0;

  --color-white: #FFFFFF;
  --color-overlay: rgba(15, 23, 42, 0.65);

  /* Estados (derivados, uso puntual: focus visible, error de formulario) */
  --color-focus-ring: rgba(37, 99, 235, 0.35);
  --color-error: #DC2626;

  /* ---- Tipografía ---------------------------------------------------- */
  --font-heading: 'Sora', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  /* Escala tipográfica — mobile first, ajustada en 16-responsive.css */
  --fs-hero: clamp(2.375rem, 6vw + 1rem, 4.5rem);   /* 38px → 72px */
  --fs-h1: clamp(2rem, 4vw + 1rem, 3.25rem);
  --fs-h2: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  --fs-h3: clamp(1.25rem, 1.5vw + 1rem, 1.75rem);
  --fs-lead: clamp(1.125rem, 1vw + 1rem, 1.375rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-caption: 0.75rem;

  --lh-tight: 1.1;
  --lh-heading: 1.2;
  --lh-body: 1.6;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --ls-tight: -0.02em;
  --ls-normal: 0;
  --ls-wide: 0.04em;

  /* ---- Layout / Grid --------------------------------------------------- */
  --container-max: 1280px;
  --container-padding: 24px;
  --grid-columns: 12;
  --grid-gap: 24px;

  /* ---- Espaciado — múltiplos de 8px ------------------------------------ */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-8: 64px;
  --space-10: 80px;
  --space-12: 96px;
  --space-16: 128px;
  --space-20: 160px;

  /* Espaciado fluido para secciones de alto impacto (hero, CTA final) */
  --space-section: clamp(64px, 10vw, 160px);
  --space-section-sm: clamp(48px, 6vw, 96px);

  /* ---- Radios ------------------------------------------------------- */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* ---- Sombras (sutiles, nunca exageradas) ------------------------- */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.08);
  --shadow-focus: 0 0 0 3px var(--color-focus-ring);

  /* ---- Transiciones / Motion ----------------------------------------- */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --duration-fast: 200ms;
  --duration-base: 300ms;
  --duration-slow: 500ms;

  /* ---- Z-index (escala controlada) ------------------------------------ */
  --z-navbar: 100;
  --z-popup: 200;
  --z-sticky-cta: 150;
  --z-modal: 300;

  /* ---- Breakpoints (referencia — usados como comentario, ver 16-responsive.css) */
  /* mobile: 360px | mobile-l: 430px | tablet-sm: 768px | tablet: 1024px | notebook: 1280px | desktop: 1440px */
}

/* Respeta la preferencia de movimiento reducido del sistema operativo */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}
/* ==========================================================================
   STRELLA ESTUDIO — 02. RESET
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-heading);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

p {
  color: var(--color-text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
}

ul, ol {
  list-style: none;
}

/* ---- Accesibilidad: foco visible siempre, WCAG 2.2 -------------------- */
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Oculta visualmente sin quitar del árbol de 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;
}

/* Salto de contenido — primer elemento tabulable de la página */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  overflow: hidden;
  width: 1px;
  height: 1px;
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  z-index: var(--z-modal);
}

.skip-link:focus {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  white-space: normal;
}
/* ==========================================================================
   STRELLA ESTUDIO — 03. LAYOUT
   Container, grid de 12 columnas, utilidades estructurales.
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), 1fr);
  gap: var(--grid-gap);
}

/* Utilidades de columna — solo las que el proyecto usa realmente */
.col-4  { grid-column: span 4; }
.col-6  { grid-column: span 6; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.section {
  padding-block: var(--space-section);
}

.section--tight {
  padding-block: var(--space-section-sm);
}

.section--alt {
  background-color: var(--color-bg-secondary);
}

.section__header {
  max-width: 720px;
  margin-bottom: var(--space-8);
}

.section__header--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary);
}

.visually-hidden-mobile {
  display: none;
}

/* Flex helpers puntuales (evitar utilidades genéricas tipo Tailwind-lite) */
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stack {
  display: flex;
  flex-direction: column;
}
/* ==========================================================================
   STRELLA ESTUDIO — 04. COMPONENTES
   Elementos reutilizables: botones, cards, badges, inputs, tags.
   ========================================================================== */

/* ---- Botones ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 16px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: transform var(--duration-fast) var(--ease-out),
              background-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
  will-change: transform;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background-color: var(--color-primary-hover);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  border-color: var(--color-text);
}

.btn--sm {
  padding: 12px 22px;
  font-size: var(--fs-small);
}

/* Botón magnético — el desplazamiento real lo aplica main.js vía --mx/--my */
.btn--magnetic {
  transform: translate(var(--mx, 0), var(--my, 0));
}

/* ---- Cards ------------------------------------------------------------ */
.card {
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  transition: transform var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

/* ---- Badge / tag -------------------------------------------------------- */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
  color: var(--color-primary-hover);
  font-size: var(--fs-caption);
  font-weight: var(--fw-medium);
}

.tag--outline {
  background-color: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

/* ---- Inputs -------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  text-align: left;
}

.field label {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}

.field input {
  height: 52px;
  padding-inline: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-secondary);
  transition: border-color var(--duration-fast) var(--ease-standard),
              box-shadow var(--duration-fast) var(--ease-standard);
}

.field input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-focus);
  background-color: var(--color-white);
}

.field input:invalid[data-touched="true"] {
  border-color: var(--color-error);
}

.field__error {
  font-size: var(--fs-caption);
  color: var(--color-error);
  min-height: 1em;
}

/* ---- Counter (métrica animada) ---------------------------------------- */
.counter {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  color: var(--color-text);
  letter-spacing: var(--ls-tight);
}

/* ---- Reveal on scroll (animado vía IntersectionObserver en main.js) --- */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
/* ==========================================================================
   STRELLA ESTUDIO — 05. HEADER / NAVBAR
   ========================================================================== */

.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: var(--z-navbar);
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              backdrop-filter var(--duration-base) var(--ease-standard);
}

.navbar.is-scrolled {
  background-color: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
}

.navbar__logo span {
  color: var(--color-primary);
}

.navbar__links {
  display: none;
  align-items: center;
  gap: var(--space-6);
}

.navbar__links a {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
  color: var(--color-text-secondary);
  position: relative;
  transition: color var(--duration-fast) var(--ease-standard);
}

.navbar__links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background-color: var(--color-primary);
  transition: width var(--duration-fast) var(--ease-standard);
}

.navbar__links a:hover {
  color: var(--color-text);
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* ---- Menú mobile -------------------------------------------------------- */
.navbar__toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
}

.navbar__toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--color-text);
  border-radius: var(--radius-full);
  transition: transform var(--duration-fast) var(--ease-standard),
              opacity var(--duration-fast) var(--ease-standard);
}

.navbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.navbar__mobile {
  position: fixed;
  inset: 80px 0 0 0;
  background-color: var(--color-white);
  z-index: calc(var(--z-navbar) - 1);
  padding: var(--space-6) var(--container-padding);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}

.navbar__mobile.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.navbar__mobile a {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-medium);
  color: var(--color-text);
}
/* ==========================================================================
   STRELLA ESTUDIO — 06. HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.hero__eyebrow {
  margin-bottom: var(--space-3);
}

.hero__title {
  font-size: var(--fs-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
  max-width: 16ch;
}

.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}

.hero__subtitle {
  margin-top: var(--space-3);
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
  max-width: 46ch;
  line-height: var(--lh-body);
}

.hero__actions {
  margin-top: var(--space-5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.hero__meta {
  margin-top: var(--space-8);
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__meta-value {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
}

.hero__meta-label {
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

/* ---- Mockup: notebook + teléfono superpuestos --------------------------- */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.mockup-notebook {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 16 / 10;
  background-color: var(--color-text);
  border-radius: var(--radius-lg);
  padding: 14px 14px 28px;
  box-shadow: var(--shadow-lg);
  transform: translateY(0);
  animation: float 6s ease-in-out infinite;
}

.mockup-notebook__screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mockup-notebook__bar {
  height: 28px;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 6px;
  padding-inline: 12px;
  border-bottom: 1px solid var(--color-border);
}

.mockup-notebook__bar span {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
}

.mockup-notebook__content {
  flex: 1;
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.mockup-notebook__content .bar {
  height: 10px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
}

.mockup-notebook__content .bar--primary {
  background-color: var(--color-primary-light);
  width: 40%;
}

.mockup-phone {
  position: absolute;
  bottom: -10%;
  right: -4%;
  width: 22%;
  aspect-ratio: 9 / 19;
  background-color: var(--color-text);
  border-radius: 20px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
  animation-delay: -3s;
}

.mockup-phone__screen {
  width: 100%;
  height: 100%;
  background-color: var(--color-white);
  border-radius: 14px;
  overflow: hidden;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-phone__screen .dot {
  width: 20px;
  height: 20px;
  border-radius: var(--radius-full);
  background-color: var(--color-primary-light);
}

.mockup-phone__screen .bar {
  height: 6px;
  border-radius: var(--radius-full);
  background-color: var(--color-border);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .mockup-notebook, .mockup-phone {
    animation: none;
  }
}

/* Scroll cue */
.hero__scroll-cue {
  position: absolute;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.hero__scroll-cue span {
  width: 1px;
  height: 32px;
  background-color: var(--color-border);
  position: relative;
  overflow: hidden;
}

.hero__scroll-cue span::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-primary);
  animation: scroll-cue 2s ease-in-out infinite;
}

@keyframes scroll-cue {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}
/* ==========================================================================
   STRELLA ESTUDIO — 07. SECCIONES
   Beneficios · Servicios · Proceso · Portfolio · Productos digitales ·
   Tecnología · FAQ · CTA final · Footer
   ========================================================================== */

/* ---------------------------------------------------------------------- */
/* PAGE HERO — encabezado reducido para páginas internas                   */
/* ---------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(80px + var(--space-8));
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--color-border);
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-3);
}

.page-hero__breadcrumb a {
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-standard);
}

.page-hero__breadcrumb a:hover {
  color: var(--color-primary);
}

.page-hero__title {
  font-size: var(--fs-h1);
  max-width: 20ch;
}

.page-hero__subtitle {
  margin-top: var(--space-2);
  font-size: var(--fs-lead);
  color: var(--color-text-secondary);
  max-width: 56ch;
}

/* ---------------------------------------------------------------------- */
/* TEASER — vista previa de sección en el home, con link a página propia   */
/* ---------------------------------------------------------------------- */
.teaser__footer {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-heading);
  font-weight: var(--fw-medium);
  color: var(--color-primary);
}

.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform var(--duration-fast) var(--ease-standard);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ---------------------------------------------------------------------- */
/* BENEFICIOS — cards asimétricas                                          */
/* ---------------------------------------------------------------------- */
.beneficios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.beneficio-card {
  padding: var(--space-5);
}

.beneficio-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-3);
  color: var(--color-primary-hover);
}

.beneficio-card__icon svg {
  width: 22px;
  height: 22px;
}

.beneficio-card h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-1);
}

.beneficio-card p {
  font-size: var(--fs-small);
}

/* Asimetría: la primera y la cuarta card ocupan más espacio en desktop,
   ver 16-responsive.css */
.beneficio-card--wide {
  background-color: var(--color-text);
  color: var(--color-white);
}

.beneficio-card--wide h3,
.beneficio-card--wide p {
  color: var(--color-white);
}

.beneficio-card--wide .beneficio-card__icon {
  background-color: rgba(255,255,255,0.1);
  color: var(--color-white);
}

/* ---------------------------------------------------------------------- */
/* SERVICIOS — tres columnas, la del medio destacada                       */
/* ---------------------------------------------------------------------- */
.servicios__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  align-items: start;
}

.servicio-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.servicio-card__nombre {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-1);
}

.servicio-card__precio {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  font-weight: var(--fw-bold);
  margin-block: var(--space-2);
}

.servicio-card__precio span {
  font-size: var(--fs-small);
  font-weight: var(--fw-regular);
  color: var(--color-text-secondary);
}

.servicio-card__lista {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  margin-block: var(--space-4);
  flex: 1;
}

.servicio-card__lista li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-1);
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
}

.servicio-card__lista svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  color: var(--color-primary);
}

.servicio-card--featured {
  background-color: var(--color-text);
  border-color: var(--color-text);
  transform: scale(1);
  position: relative;
}

.servicio-card--featured .servicio-card__nombre,
.servicio-card--featured .servicio-card__precio,
.servicio-card--featured .servicio-card__lista li {
  color: var(--color-white);
}

.servicio-card--featured .servicio-card__precio span {
  color: rgba(255,255,255,0.6);
}

.servicio-card--featured .servicio-card__lista svg {
  color: var(--color-primary-light);
}

.servicio-card--featured:hover {
  transform: translateY(-4px);
}

.servicio-card__badge {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.servicio-card--featured .btn--primary {
  background-color: var(--color-white);
  color: var(--color-text);
}

.servicio-card--featured .btn--primary:hover {
  background-color: var(--color-primary-light);
}

/* ---------------------------------------------------------------------- */
/* PROCESO — timeline horizontal                                           */
/* ---------------------------------------------------------------------- */
.proceso__timeline {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  position: relative;
}

.proceso-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.proceso-item__index {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  color: var(--color-primary-light);
  flex-shrink: 0;
  width: 48px;
}

.proceso-item__body h3 {
  font-size: var(--fs-h3);
  margin-bottom: 4px;
}

.proceso-item__body p {
  font-size: var(--fs-small);
}

/* ---------------------------------------------------------------------- */
/* PORTFOLIO — cards enormes con hover                                     */
/* ---------------------------------------------------------------------- */
.portfolio__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.portfolio-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 4 / 3;
  background-color: var(--color-bg-secondary);
}

.portfolio-card__media {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--color-primary-light), var(--color-bg-secondary));
  transition: transform var(--duration-slow) var(--ease-out);
}

.portfolio-card:hover .portfolio-card__media {
  transform: scale(1.04);
}

.portfolio-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-4);
  background: linear-gradient(to top, rgba(15,23,42,0.82), rgba(15,23,42,0) 55%);
  color: var(--color-white);
}

.portfolio-card__tags {
  display: flex;
  gap: 6px;
  margin-bottom: var(--space-2);
  flex-wrap: wrap;
}

.portfolio-card__tags .tag {
  background-color: rgba(255,255,255,0.15);
  color: var(--color-white);
}

.portfolio-card__title {
  font-size: var(--fs-h3);
  color: var(--color-white);
}

.portfolio-card__result {
  font-size: var(--fs-small);
  color: rgba(255,255,255,0.8);
  margin-top: 4px;
}

/* ---------------------------------------------------------------------- */
/* PRODUCTOS DIGITALES                                                     */
/* ---------------------------------------------------------------------- */
.productos__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.producto-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.producto-card__mockup {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.producto-card__mockup svg {
  width: 40%;
  color: var(--color-primary);
}

.producto-card h3 {
  font-size: var(--fs-h3);
}

.producto-card p {
  font-size: var(--fs-small);
}

/* ---------------------------------------------------------------------- */
/* TECNOLOGÍA — marquee de logos/tags                                      */
/* ---------------------------------------------------------------------- */
.tecnologia__grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
}

.tecnologia__grid .tag {
  font-size: var(--fs-small);
  padding: 10px 20px;
}

/* ---------------------------------------------------------------------- */
/* FAQ — acordeón                                                          */
/* ---------------------------------------------------------------------- */
.faq__list {
  max-width: 780px;
  margin-inline: auto;
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-3);
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--fs-lead);
  font-weight: var(--fw-medium);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  position: relative;
}

.faq-item__icon::before,
.faq-item__icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  background-color: var(--color-text);
  transition: transform var(--duration-fast) var(--ease-standard);
}

.faq-item__icon::before {
  width: 14px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.faq-item__icon::after {
  width: 2px;
  height: 14px;
  transform: translate(-50%, -50%);
}

.faq-item[data-open="true"] .faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--duration-base) var(--ease-standard);
}

.faq-item[data-open="true"] .faq-item__answer {
  grid-template-rows: 1fr;
}

.faq-item__answer-inner {
  overflow: hidden;
}

.faq-item__answer p {
  padding-bottom: var(--space-3);
  font-size: var(--fs-body);
  max-width: 62ch;
}

/* ---------------------------------------------------------------------- */
/* CTA FINAL — pantalla completa, gran impacto                             */
/* ---------------------------------------------------------------------- */
.cta-final {
  background-color: var(--color-text);
  color: var(--color-white);
  text-align: center;
  padding-block: var(--space-section);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(37,99,235,0.35), transparent 60%);
  pointer-events: none;
}

.cta-final__title {
  font-size: var(--fs-hero);
  color: var(--color-white);
  max-width: 18ch;
  margin-inline: auto;
  position: relative;
}

.cta-final__subtitle {
  margin-top: var(--space-3);
  color: rgba(255,255,255,0.7);
  max-width: 50ch;
  margin-inline: auto;
  font-size: var(--fs-lead);
  position: relative;
}

.cta-final__actions {
  margin-top: var(--space-6);
  display: flex;
  justify-content: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  position: relative;
}

.cta-final .btn--secondary {
  border-color: rgba(255,255,255,0.24);
  color: var(--color-white);
}

.cta-final .btn--secondary:hover {
  border-color: var(--color-white);
}

/* ---------------------------------------------------------------------- */
/* FOOTER — minimalista                                                    */
/* ---------------------------------------------------------------------- */
.footer {
  padding-block: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  margin-bottom: var(--space-6);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
}

.footer__logo span {
  color: var(--color-primary);
}

.footer__tagline {
  font-size: var(--fs-small);
  margin-top: var(--space-1);
  max-width: 32ch;
}

.footer__col h4 {
  font-size: var(--fs-caption);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2);
  font-weight: var(--fw-semibold);
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.footer__col a {
  font-size: var(--fs-small);
  color: var(--color-text-secondary);
  transition: color var(--duration-fast) var(--ease-standard);
}

.footer__col a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  font-size: var(--fs-caption);
  color: var(--color-text-secondary);
}

.footer__social {
  display: flex;
  gap: var(--space-2);
}

.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--duration-fast) var(--ease-standard),
              color var(--duration-fast) var(--ease-standard);
}

.footer__social a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------------- */
/* STICKY CTA — mobile                                                     */
/* ---------------------------------------------------------------------- */
.sticky-cta {
  position: fixed;
  left: var(--space-2);
  right: var(--space-2);
  bottom: var(--space-2);
  z-index: var(--z-sticky-cta);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 10px 10px 10px 20px;
  box-shadow: var(--shadow-lg);
  transform: translateY(120%);
  transition: transform var(--duration-base) var(--ease-out);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta__text {
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}

.sticky-cta__btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: #25D366;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  animation: pulse-soft 2.4s ease-in-out infinite;
}

.sticky-cta__btn svg {
  width: 20px;
  height: 20px;
}

@keyframes pulse-soft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta__btn { animation: none; }
}

/* ---------------------------------------------------------------------- */
/* POPUP — auditoría gratis                                                */
/* ---------------------------------------------------------------------- */
.popup-overlay {
  position: fixed;
  inset: 0;
  background-color: var(--color-overlay);
  z-index: var(--z-popup);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-base) var(--ease-standard);
}

.popup-overlay.is-active {
    display: flex;
  opacity: 1;
  pointer-events: auto;
}

.popup {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  max-width: 440px;
  width: 100%;
  position: relative;
  transform: scale(0.96);
  transition: transform var(--duration-base) var(--ease-out);
}

.popup-overlay.is-visible .popup {
  transform: scale(1);
}

.popup__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
}

.popup__close:hover {
  background-color: var(--color-bg-secondary);
  color: var(--color-text);
}

.popup h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-1);
  padding-right: var(--space-4);
}

.popup p {
  font-size: var(--fs-small);
  margin-bottom: var(--space-4);
}

.popup form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
/* ==========================================================================
   STRELLA ESTUDIO — 16. RESPONSIVE
   Mobile first. Breakpoints: 430 / 768 / 1024 / 1280 / 1440
   Este archivo se carga último: tiene la última palabra sin !important.
   ========================================================================== */

/* ---- 430px — Mobile grande ---------------------------------------------- */
@media (min-width: 430px) {
  .hero__actions .btn { flex: none; }
}

/* ---- 768px — Tablet pequeña ---------------------------------------------- */
@media (min-width: 768px) {
  .container { padding-inline: var(--space-5); }

  .navbar__links { display: flex; }
  .navbar__toggle { display: none; }
  .navbar__mobile background-color:#OF172a   ;{ display: none; } 

  .hero__grid { grid-template-columns: 1fr; }
  .hero__meta { gap: var(--space-8); }

  .beneficios__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicios__grid { grid-template-columns: 1fr; }

  .proceso__timeline {
    grid-template-columns: repeat(3, 1fr);
  }

  .portfolio__grid { grid-template-columns: repeat(2, 1fr); }

  .productos__grid { grid-template-columns: repeat(2, 1fr); }

  .footer__top {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

/* ---- 1024px — Tablet ------------------------------------------------------ */
@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 0.9fr;
  }

  .hero__title { max-width: 14ch; }

  .beneficios__grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .beneficio-card:nth-child(1) { grid-column: span 4; }
  .beneficio-card:nth-child(2) { grid-column: span 2; }
  .beneficio-card:nth-child(3) { grid-column: span 2; }
  .beneficio-card:nth-child(4) { grid-column: span 4; }
  .beneficio-card:nth-child(5) { grid-column: span 3; }
  .beneficio-card:nth-child(6) { grid-column: span 3; }

  .servicios__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .servicio-card--featured {
    transform: scale(1.04);
  }

  .servicio-card--featured:hover {
    transform: scale(1.04) translateY(-4px);
  }

  .proceso__timeline {
    grid-template-columns: repeat(5, 1fr);
  }

  .proceso-item {
    flex-direction: column;
    gap: var(--space-2);
  }

  .proceso-item__index {
    width: auto;
  }

  .portfolio__grid { grid-template-columns: repeat(3, 1fr); }
  .portfolio-card:first-child {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
  }

  .productos__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---- 1280px — Notebook ---------------------------------------------------- */
@media (min-width: 1280px) {
  .visually-hidden-mobile { display: initial; }
}

/* ---- 1440px — Desktop ------------------------------------------------------ */
@media (min-width: 1440px) {
  .hero__title { max-width: 16ch; }
}
/* Posicionamiento fijo del widget en la esquina inferior derecha */
.floating-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  z-index: 9999;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.3s ease;
  border: none;
  color: #fff;
}

.floating-btn:hover {
  transform: translateY(-5px);
}

.floating-btn svg {
  width: 28px;
  height: 28px;
}

.floating-btn--wpp {
  background-color: #25D366; /* Color de WhatsApp */
}

.floating-btn--bot {
  background-color: #0f172a; /* Color de tu marca (o el que prefieras para la IA) */
} 
/* --- CHATBOT NATIVO STRELLA --- */
.chatbot-window {
  position: fixed;
  bottom: 90px; /* Por encima de los botones flotantes */
  right: 20px;
  width: 350px;
  max-width: calc(100% - 40px);
  background: #f8fafc;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 9999;
  border: 1px solid rgba(0,0,0,0.05);
  
  /* Estado inactivo por defecto */
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chatbot-window.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.chatbot-header {
  background: #0f172a; /* Color Pizarra */
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.chatbot-avatar {
  width: 40px;
  height: 40px;
  background: #2563eb; /* Azul STRELLA */
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.4);
}

.chatbot-title h4 { margin: 0; font-size: 1rem; font-weight: 600; color: #fff;}
.chatbot-title p { margin: 0; font-size: 0.8rem; color: #94a3b8; }

.chatbot-close {
  margin-left: auto;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.3s;
  padding: 0;
}
.chatbot-close:hover { opacity: 1; }

.chatbot-body {
  padding: 20px;
  height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Scrollbar minimalista para el chat */
.chatbot-body::-webkit-scrollbar { width: 6px; }
.chatbot-body::-webkit-scrollbar-track { background: transparent; }
.chatbot-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }

.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  line-height: 1.4;
  animation: fadeInChat 0.3s ease forwards;
  opacity: 0;
}

@keyframes fadeInChat {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-msg--bot {
  background: #fff;
  color: #334155;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
}

.chat-msg--user {
  background: #2563eb;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

/* Botones de Opciones del Chat */
.chat-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 5px;
  animation: fadeInChat 0.5s ease forwards;
}

.chat-btn {
  background: #fff;
  border: 1px solid #2563eb;
  color: #2563eb;
  padding: 10px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  font-family: inherit;
}
.chat-btn:hover { background: #2563eb; color: #fff; }

.chat-btn--action {
  background: #25D366; /* Verde WhatsApp */
  border-color: #25D366;
  color: #fff;
  text-align: center;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.chat-btn--action:hover { background: #1ebc5a; border-color: #1ebc5a;}
/* --- ANIMACIÓN "ESCRIBIENDO..." --- */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 14px 18px;
  align-items: center;
  width: fit-content;
}
.chat-typing .dot {
  width: 6px;
  height: 6px;
  background: #94a3b8;
  border-radius: 50%;
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.chat-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing .dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* --- NOTIFICACIÓN EN EL BOTÓN FLOTANTE (15 Segundos) --- */
.floating-btn--bot {
  position: relative;
}
.floating-btn--bot.has-notification::after {
  content: '';
  position: absolute;
  top: 0px;
  right: 0px;
  width: 12px;
  height: 12px;
  background-color: #ef4444; /* Rojo de alerta */
  border: 2px solid #fff;
  border-radius: 50%;
  animation: latidoNotificacion 2s infinite;
}

@keyframes latidoNotificacion {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}
/* ============================== WIDGET Y CHATBOT ============================== */

/* Botones Flotantes */
.floating-widget {
  position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 15px; z-index: 9999;
}
.floating-btn {
  width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 20px rgba(0,0,0,0.15); cursor: pointer; transition: transform 0.3s ease; border: none; color: #fff; position: relative;
}
.floating-btn:hover { transform: translateY(-5px); }
.floating-btn svg { width: 28px; height: 28px; }
.floating-btn--wpp { background-color: #25D366; }
.floating-btn--bot { background-color: #0f172a; }

/* Notificación Punto Rojo */
.floating-btn--bot.has-notification::after {
  content: ''; position: absolute; top: 0px; right: 0px; width: 12px; height: 12px;
  background-color: #ef4444; border: 2px solid #fff; border-radius: 50%;
  animation: latidoNotificacion 2s infinite;
}
@keyframes latidoNotificacion {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Ventana del Chatbot */
.chatbot-window {
  position: fixed; bottom: 90px; right: 20px; width: 350px; max-width: calc(100% - 40px);
  background: #f8fafc; border-radius: 16px; box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  display: flex; flex-direction: column; overflow: hidden; z-index: 9999;
  border: 1px solid rgba(0,0,0,0.05); opacity: 0; pointer-events: none;
  transform: translateY(20px); transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.chatbot-window.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.chatbot-header { background: #0f172a; color: #fff; padding: 15px 20px; display: flex; align-items: center; gap: 12px; }
.chatbot-avatar { width: 40px; height: 40px; background: #2563eb; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; }
.chatbot-title h4 { margin: 0; font-size: 1rem; font-weight: 600; color: #fff; }
.chatbot-title p { margin: 0; font-size: 0.8rem; color: #94a3b8; }
.chatbot-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.8rem; cursor: pointer; padding: 0; opacity: 0.7; }
.chatbot-close:hover { opacity: 1; }

/* Cuerpo y Mensajes */
.chatbot-body { padding: 20px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 15px; }
.chatbot-body::-webkit-scrollbar { width: 6px; }
.chatbot-body::-webkit-scrollbar-track { background: transparent; }
.chatbot-body::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
.chat-msg { max-width: 85%; padding: 12px 16px; border-radius: 12px; font-size: 0.95rem; line-height: 1.4; animation: fadeInChat 0.3s ease forwards; opacity: 0; }
@keyframes fadeInChat { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.chat-msg--bot { background: #fff; color: #334155; align-self: flex-start; border-bottom-left-radius: 4px; border: 1px solid #e2e8f0; }
.chat-msg--user { background: #2563eb; color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }

/* Opciones y Animación Escribiendo */
.chat-options { display: flex; flex-direction: column; gap: 8px; margin-top: 5px; animation: fadeInChat 0.5s ease forwards; }
.chat-btn { background: #fff; border: 1px solid #2563eb; color: #2563eb; padding: 10px 15px; border-radius: 20px; font-size: 0.9rem; font-weight: 500; cursor: pointer; text-align: left; transition: all 0.2s; font-family: inherit; }
.chat-btn:hover { background: #2563eb; color: #fff; }
.chat-btn--action { background: #25D366; border-color: #25D366; color: #fff; text-align: center; font-weight: 600; display: flex; justify-content: center; }
.chat-btn--action:hover { background: #1ebc5a; border-color: #1ebc5a;}

.chat-typing { display: flex; gap: 4px; padding: 14px 18px; align-items: center; width: fit-content; }
.chat-typing .dot { width: 6px; height: 6px; background: #94a3b8; border-radius: 50%; animation: typingBounce 1.4s infinite ease-in-out both; }
.chat-typing .dot:nth-child(1) { animation-delay: -0.32s; }
.chat-typing .dot:nth-child(2) { animation-delay: -0.16s; }
@keyframes typingBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); } }ç
/* --- CHECK DE SEGURIDAD PARA EL POPUP DE LOS 5 SEGUNDOS --- */
.popup-overlay {
  display: none; /* Por defecto está oculto */
  opacity: 0;
  transition: opacity 0.3s ease;
}
.popup-overlay.is-active {
  display: flex !important; /* Forza a que se muestre */
  opacity: 1;
}

/* --- EL TOOLTIP DEL ROBOT (MICRO-INTERACCIÓN) --- */
.floating-btn--bot {
  position: relative; /* Asegura que el tooltip se posicione respecto al botón */
}

.bot-tooltip {
  position: absolute;
  right: 115%; /* Lo empuja hacia la izquierda del botón */
  top: 50%;
  
  /* Arranca escondido y corrido hacia la derecha (metido atrás del botón) */
  transform: translateY(-50%) translateX(15px);
  opacity: 0;
  pointer-events: none;
  
  background: #ffffff;
  color: #0f172a;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border: 1px solid #e2e8f0;
  
  /* Transición con efecto "rebote" */
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Cuando el JS le agrega esta clase, el tooltip se asoma */
.bot-tooltip.is-visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
}

/* Animación de saludo del robot */
.robot-wave {
  display: inline-block;
  transform-origin: bottom center;
  animation: waveRobot 2s infinite;
  margin-right: 4px;
}

@keyframes waveRobot {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-20deg); }
  75% { transform: rotate(20deg); }
}
/* --- BANNER DE IMPACTO: ASÍ SERÍA TU WEB --- */
.banner-impacto-card {
  background: #0f172a; /* Fondo Pizarra STRELLA */
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  position: relative;
}

/* Caja de previsualización izquierda */
.banner-preview-box {
  background: #1e293b;
  border-radius: 12px;
  padding: 15px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.banner-mockup-body {
  background: #ffffff;
  padding: 25px;
  border-radius: 8px;
  color: #0f172a;
  margin-top: 10px;
}

.banner-mockup-body h4 {
  margin: 10px 0 5px 0;
  font-size: 1.1rem;
  color: #0f172a;
}

.banner-mockup-body p {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 15px;
}

.banner-mini-badge {
  background: #eff6ff;
  color: #2563eb;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  border: 1px dashed #bfdbfe;
}

/* Adaptabilidad para celulares (Se pone en una sola columna) */
@media (max-width: 900px) {
  .banner-impacto-card {
    grid-template-columns: 1fr;
    padding: 25px;
    gap: 25px;
  }
}
/* ============================== DROPDOWN MENU ============================== */
.nav-dropdown {
  position: relative;
  display: inline-block;
  height: 100%; /* Para que el área activa coincida con la navbar */
}

.nav-dropdown__toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown__arrow {
  font-size: 0.7em;
  transition: transform 0.3s ease;
}

/* El menú oculto por defecto */
.nav-dropdown__menu {
  position: absolute;
  top: 100%; /* Se ubica justo debajo de la palabra Servicios */
  left: -10px; /* Alineación fina */
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  min-width: 220px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 12px 0;
  list-style: none;
  border: 1px solid rgba(0,0,0,0.05);
  
  /* Animación inicial */
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

/* Cuando pasas el mouse sobre el contenedor, mostramos el menú */
.nav-dropdown:hover .nav-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Giramos la flechita */
.nav-dropdown:hover .nav-dropdown__arrow {
  transform: rotate(180deg);
}

/* Estilo de los enlaces internos */
.nav-dropdown__menu li a {
  display: block;
  padding: 10px 24px;
  color: #334155;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, padding-left 0.2s;
}

.nav-dropdown__menu li a:hover {
  background-color: #f8fafc;
  color: #2563eb; /* Azul STRELLA */
  padding-left: 30px; /* Efecto sutil de desplazamiento al pasar el mouse */
}
/* =======================================================
     CORRECCIÓN DEFINITIVA MENÚ MOBILE
     ======================================================= */
  .navbar__mobile {
    position: fixed;
    top: 70px; /* Ajustá este valor si tu barra superior es más alta o baja */
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: #ffffff !important; /* Fondo 100% sólido. Evita que se mezcle el texto */
    z-index: 9999;
    display: flex;
    flex-direction: column;
    padding: 10px 20px 80px 20px; /* Espacio extra abajo para que no quede apretado */
    
    /* LA CLAVE: Permite scrollear DENTRO del menú si la pantalla del celu es chica */
    overflow-y: auto !important; 
    
    /* Animación de entrada por defecto (se ajustará con la clase is-open) */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
  }

  .navbar__mobile.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  /* Estética más limpia y separada para los links */
  .navbar__mobile a {
    padding: 15px 20px;
    font-size: 1.1rem;
    color: #1e293b;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid #f1f5f9; /* Agrega una línea sutil entre opciones */
  }

  /* Para que los links con sangría (los sub-servicios) se vean ordenados */
  .navbar__mobile a[style*="padding-left"] {
    font-size: 1rem;
    color: #475569;
  }

  /* Formato para el botón de CTA dentro del menú */
  .navbar__mobile .btn {
    margin-top: 25px !important;
    text-align: center;
    border-bottom: none;
    width: 100%;
    border-radius: 12px;
  }