:root {
  --primary: #ec774b;
  --success: #6fc191;
  --info: #74cee4;
  --purple: #c489ce;
  --warning: #edbf47;
  --orange: #ec774b;
  --dark: #302f3b;
  --light: #f8f9fa;
  --gray-100: #f0f1f3;
  --gray-200: #e2e3e8;
  --gray-500: #8a8b95;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --shadow: 0 4px 24px rgba(48, 47, 59, 0.08);
  --shadow-lg: 0 8px 40px rgba(48, 47, 59, 0.12);
  --shadow-hover: 0 12px 48px rgba(48, 47, 59, 0.16);
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  /* Evita que iOS agrande el texto al girar el teléfono a horizontal */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  line-height: 1.7;
  overflow-x: hidden;
  background: #fff;
  -webkit-tap-highlight-color: rgba(236, 119, 75, 0.15);
}

/* Ningún medio se sale del ancho de su contenedor en pantallas pequeñas */
img, svg, video, canvas {
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: break-word;
}

.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: clamp(1.5rem, 1.15rem + 1.55vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto 3rem;
}

.badge-label {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ======================== NAVBAR ======================== */
.navbar {
  padding: 12px 0;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  z-index: 1050;
}

.navbar.scrolled {
  padding: 8px 0;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 2px 20px rgba(48, 47, 59, 0.06);
}

.navbar-brand img {
  height: 44px;
  /* Sin width:auto el atributo width="550" del SVG deja aire a los lados
     y empuja el menú fuera del contenedor en pantallas medianas. */
  width: auto;
  transition: var(--transition);
}

.navbar.scrolled .navbar-brand img {
  height: 38px;
}

.navbar-nav .nav-link {
  font-weight: 500;
  font-size: 0.925rem;
  color: var(--dark);
  padding: 8px 16px !important;
  transition: var(--transition);
  position: relative;
}

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

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 16px;
  right: 16px;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
  border-radius: 2px;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  transform: scaleX(1);
}

.btn-cta {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.925rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta:hover {
  background: #d4633a;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 119, 75, 0.35);
}

.btn-cta-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.925rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-outline:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 119, 75, 0.35);
}

.btn-cta-white {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-white:hover {
  background: #f0f0f0;
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn-cta-dark {
  background: var(--dark);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-cta-dark:hover {
  background: #242330;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(48, 47, 59, 0.35);
}

/* ======================== HERO SLIDER (OFERTAS) ======================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  /* svh = alto visible real en móviles (descuenta la barra del navegador) */
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 55%, #e4e9f0 100%);
  overflow: hidden;
  padding: 110px 0 70px;
}

/* Soft theme glows that animate with the active slide */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
  transition: background 0.6s ease;
  z-index: 0;
}

.hero-glow-1 {
  top: -160px;
  right: -120px;
  width: 520px;
  height: 520px;
  background: var(--theme, var(--info));
}

.hero-glow-2 {
  bottom: -180px;
  left: -140px;
  width: 460px;
  height: 460px;
  background: var(--primary);
  opacity: 0.18;
}

.hero-swiper {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 8px;
}

.offer-slide {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  min-height: 62vh;
  padding: 10px 0;
}

.offer-content {
  position: relative;
  z-index: 2;
}

.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  background: var(--theme-soft, rgba(116, 206, 228, 0.12));
  color: var(--theme, var(--info));
}

.offer-content h1 {
  font-size: clamp(1.75rem, 1.1rem + 2.75vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 0.9rem;
  color: var(--dark);
}

.offer-content h1 span {
  color: var(--theme, var(--primary));
}

.offer-content p {
  font-size: 1.1rem;
  color: var(--gray-500);
  max-width: 540px;
  margin-bottom: 1.25rem;
  line-height: 1.7;
}

.offer-price {
  display: inline-flex;
  align-items: baseline;
  max-width: 100%;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--gray-200);
  margin-bottom: 1rem;
}

.offer-price-from {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-price-amount {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
  color: var(--theme, var(--primary));
}

.offer-price-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-500);
}

.offer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.4rem;
}

.offer-pills span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dark);
  padding: 5px 14px;
  border-radius: 50px;
  background: var(--theme-soft, rgba(116, 206, 228, 0.12));
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Themed buttons follow the active offer color
   Both share an identical box model (2px border + line-height:1)
   so the solid and outline buttons render at the exact same height. */
.offer-slide .btn-cta,
.offer-slide .btn-cta-outline {
  padding: 12px 26px;
  border: 2px solid transparent;
  line-height: 1;
}
.offer-slide .btn-cta {
  background: var(--theme, var(--primary));
}
.offer-slide .btn-cta:hover {
  background: var(--theme, var(--primary));
  filter: brightness(0.92);
  box-shadow: 0 8px 24px var(--theme-glow, rgba(236, 119, 75, 0.35));
}
.offer-slide .btn-cta-outline {
  color: var(--theme, var(--primary));
  border-color: var(--theme, var(--primary));
}
.offer-slide .btn-cta-outline:hover {
  background: var(--theme, var(--primary));
  color: #fff;
  box-shadow: 0 8px 24px var(--theme-glow, rgba(236, 119, 75, 0.35));
}

/* Offer visual card */
.offer-visual {
  position: relative;
  z-index: 2;
}

.offer-card {
  position: relative;
  background: linear-gradient(150deg, var(--dark) 0%, #3a3949 100%);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  overflow: hidden;
  max-width: 440px;
  margin: 0 auto;
  /* Downward-only soft shadow (negative spread keeps horizontal reach ~14px)
     so it never gets clipped by the slider's overflow:hidden at the edges. */
  box-shadow: 0 26px 34px -20px rgba(48, 47, 59, 0.4);
}

.offer-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--theme, var(--info));
  opacity: 0.22;
  filter: blur(20px);
}

.offer-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
  background: var(--theme, var(--info));
  box-shadow: 0 10px 26px var(--theme-glow, rgba(116, 206, 228, 0.4));
  margin-bottom: 22px;
  position: relative;
}

.offer-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
}

.offer-card-stats div {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
}

.offer-card-stats strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.offer-card-stats span {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.offer-card-bars {
  height: 90px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 18px;
  position: relative;
}

.offer-card-bars i {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: var(--theme, var(--info));
  opacity: 0.85;
}
.offer-card-bars i:nth-child(even) { opacity: 0.5; }

.offer-card-browser {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}
.offer-card-browser .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.offer-card-browser .dot:first-child { background: var(--theme, var(--info)); }

.offer-card-lines {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
}
.offer-card-lines i {
  height: 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  display: block;
}
.offer-card-lines i:first-child { background: var(--theme, var(--info)); opacity: 0.7; }

.offer-card-topics,
.offer-card-apps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
}
.offer-card-topics span,
.offer-card-apps span {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 10px 14px;
}
.offer-card-topics span i,
.offer-card-apps span i { color: var(--theme, var(--info)); }

.offer-card-swatches {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  position: relative;
}
.offer-card-swatches i {
  flex: 1;
  height: 44px;
  border-radius: 10px;
}

.offer-card-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--theme, var(--info));
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--theme-line, rgba(116, 206, 228, 0.3));
  border-radius: 50px;
  padding: 6px 16px;
  position: relative;
}

/* Per-theme color variables on the slide */
.offer-slide[data-theme="info"]    { --theme: #74cee4; --theme-soft: rgba(116,206,228,0.14); --theme-glow: rgba(116,206,228,0.4); --theme-line: rgba(116,206,228,0.3); }
.offer-slide[data-theme="primary"] { --theme: #ec774b; --theme-soft: rgba(236,119,75,0.14);  --theme-glow: rgba(236,119,75,0.4);  --theme-line: rgba(236,119,75,0.3); }
.offer-slide[data-theme="warning"] { --theme: #edbf47; --theme-soft: rgba(237,191,71,0.16);  --theme-glow: rgba(237,191,71,0.4);  --theme-line: rgba(237,191,71,0.35); }
.offer-slide[data-theme="purple"]  { --theme: #c489ce; --theme-soft: rgba(196,137,206,0.16); --theme-glow: rgba(196,137,206,0.4); --theme-line: rgba(196,137,206,0.35); }
.offer-slide[data-theme="success"] { --theme: #6fc191; --theme-soft: rgba(111,193,145,0.16); --theme-glow: rgba(111,193,145,0.4); --theme-line: rgba(111,193,145,0.35); }

/* Slider controls — arrows + pagination in one centered row below the slide */
.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 32px;
}

.hero-swiper-pagination {
  position: static !important;
  width: auto !important;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.hero-swiper-pagination .swiper-pagination-bullet {
  width: 28px;
  height: 5px;
  border-radius: 4px;
  background: var(--gray-500);
  opacity: 0.3;
  transition: var(--transition);
}
.hero-swiper-pagination .swiper-pagination-bullet-active {
  width: 44px;
  opacity: 1;
  background: var(--theme, var(--primary));
}

.hero-swiper-prev,
.hero-swiper-next {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}
.hero-swiper-prev:hover,
.hero-swiper-next:hover {
  background: var(--theme, var(--primary));
  color: #fff;
  border-color: transparent;
  transform: scale(1.08);
}

.mockup-container {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}

.mockup-laptop {
  width: 100%;
  background: var(--dark);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 3;
}

.mockup-laptop .screen {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  aspect-ratio: 16 / 10;
  display: flex;
  flex-direction: column;
}

.mockup-laptop .screen-header {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.05);
  gap: 6px;
}

.mockup-laptop .screen-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.mockup-laptop .screen-dot.red { background: #ff5f57; }
.mockup-laptop .screen-dot.yellow { background: #febc2e; }
.mockup-laptop .screen-dot.green { background: #28c840; }

.mockup-laptop .screen-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 16px;
}

.mockup-dash-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mockup-dash-logo {
  font-size: 0.75rem;
  color: var(--info);
  font-weight: 700;
  letter-spacing: 0.05em;
}

.mockup-dash-nav {
  display: flex;
  gap: 8px;
}

.mockup-dash-nav span {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.mockup-dash-nav span:first-child {
  background: var(--info);
}

.mockup-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.mockup-stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 10px 8px;
  text-align: center;
}

.mockup-stat .stat-number {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.mockup-stat .stat-label {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mockup-stat:nth-child(1) .stat-number { color: var(--info); }
.mockup-stat:nth-child(2) .stat-number { color: var(--success); }
.mockup-stat:nth-child(3) .stat-number { color: var(--warning); }

.mockup-chart {
  flex: 1;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
}

.mockup-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 10px;
  transition: height 0.6s ease;
}

.mockup-tablet {
  position: absolute;
  right: -30px;
  bottom: 20px;
  width: 140px;
  background: var(--dark);
  border-radius: 10px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 4;
  animation: float 3s ease-in-out infinite;
}

.mockup-tablet .tablet-screen {
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 6px;
  padding: 10px;
  aspect-ratio: 3 / 4;
}

.mockup-tablet .tablet-item {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  padding: 6px 8px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-tablet .tablet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mockup-tablet .tablet-line {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.mockup-phone {
  position: absolute;
  left: -20px;
  bottom: -10px;
  width: 90px;
  background: var(--dark);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-lg);
  z-index: 5;
  animation: float 3s ease-in-out infinite 1.5s;
}

.mockup-phone .phone-screen {
  background: linear-gradient(180deg, var(--primary), #d4633a);
  border-radius: 10px;
  padding: 8px;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.mockup-phone .phone-icon {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
}

.mockup-phone .phone-line {
  width: 80%;
  height: 3px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
}

.mockup-phone .phone-line.short {
  width: 50%;
}

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

/* ======================== ABOUT ======================== */
.about-section {
  background: #fff;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--gray-500);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}

.feature-card .icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.feature-card h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

/* ======================== SERVICES ======================== */
.services-section {
  background: var(--gray-100);
}

.service-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  height: 100%;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  opacity: 0;
  transition: var(--transition);
}

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

.service-card:hover::before {
  opacity: 1;
}

.service-card::before {
  background: var(--card-color, var(--primary));
}

.service-card[data-color]::before {
  background: attr(data-color);
}

.service-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 20px;
}

.service-card h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 0.925rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.service-card ul li {
  font-size: 0.875rem;
  color: var(--gray-500);
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.service-card ul li i {
  color: var(--success);
  font-size: 0.75rem;
}

.service-price {
  font-size: 0.9rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px !important;
}

.service-price strong {
  font-size: 1.1rem;
}

.service-card .btn-service {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.service-card .btn-service:hover {
  gap: 10px;
  opacity: 0.8;
}

/* ======================== SCHOOLARYX ======================== */
.schoolaryx-section {
  background: var(--dark);
  position: relative;
  overflow: hidden;
}

.schoolaryx-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(116, 206, 228, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(237, 191, 71, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.schoolaryx-section .section-title {
  color: #fff;
}

.schoolaryx-section .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.schoolaryx-badge {
  background: rgba(116, 206, 228, 0.15);
  color: var(--info);
}

.sx-logo {
  display: block;
  height: 60px;
  width: auto;
  margin: 0 auto 16px;
}

.schoolaryx-desc {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.module-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  height: 100%;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.module-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(116, 206, 228, 0.25);
  transform: translateY(-4px);
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 20px;
}

.module-card h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.module-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.module-card ul li {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-card ul li i {
  font-size: 0.7rem;
}

.module-card:nth-child(1) .module-icon {
  background: rgba(116, 206, 228, 0.15);
  color: var(--info);
}
.module-card:nth-child(1) ul li i { color: var(--info); }

.module-card:nth-child(2) .module-icon {
  background: rgba(237, 191, 71, 0.15);
  color: var(--warning);
}
.module-card:nth-child(2) ul li i { color: var(--warning); }

.module-card:nth-child(3) .module-icon {
  background: rgba(196, 137, 206, 0.15);
  color: var(--purple);
}
.module-card:nth-child(3) ul li i { color: var(--purple); }

/* SchoolaryX Pricing */
.schoolaryx-pricing {
  margin: 0 auto;
}

.sx-price-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: var(--transition);
}

.sx-price-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--info);
  transform: translateY(-4px);
}

.sx-price-icon {
  font-size: 1.5rem;
  color: var(--info);
  margin-bottom: 12px;
}

.sx-price-amount {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 4px;
}

.sx-price-label {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.5);
}

/* SchoolaryX Laptop Mockup */
.schoolaryx-mockup {
  margin-top: 60px;
  position: relative;
}

.laptop-frame {
  max-width: 900px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 16px 16px 0 0;
  padding: 14px 14px 0;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.4);
}

.laptop-screen {
  background: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 100%);
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  /* Columna flexible: el dashboard ocupa lo que sobre tras la barra superior,
     sin depender de una altura fija que se desborda en pantallas pequeñas. */
  display: flex;
  flex-direction: column;
}

.laptop-topbar {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.03);
  gap: 8px;
}

.laptop-topbar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.laptop-topbar .dot.r { background: #ff5f57; }
.laptop-topbar .dot.y { background: #febc2e; }
.laptop-topbar .dot.g { background: #28c840; }

.laptop-topbar .url-bar {
  flex: 1;
  min-width: 0;
  margin-left: 12px;
  height: 24px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0 12px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  /* La URL se recorta con puntos suspensivos en vez de estirar la barra */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 24px;
}

.laptop-dashboard {
  display: grid;
  grid-template-columns: 180px 1fr;
  flex: 1;
  min-height: 0;
}

.laptop-sidebar {
  background: rgba(255, 255, 255, 0.03);
  padding: 16px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.laptop-sidebar .sidebar-brand {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--info);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.laptop-sidebar .sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 2px;
}

.laptop-sidebar .sidebar-item.active {
  background: rgba(116, 206, 228, 0.12);
  color: var(--info);
}

.laptop-sidebar .sidebar-item i {
  font-size: 0.8rem;
  width: 16px;
  text-align: center;
}

.laptop-main {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.laptop-main .main-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

.laptop-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.laptop-stat-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
  padding: 12px 10px;
  text-align: center;
}

.laptop-stat-card .num {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.laptop-stat-card .lbl {
  font-size: 0.55rem;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.laptop-stat-card:nth-child(1) .num { color: var(--info); }
.laptop-stat-card:nth-child(2) .num { color: var(--success); }
.laptop-stat-card:nth-child(3) .num { color: var(--warning); }
.laptop-stat-card:nth-child(4) .num { color: var(--purple); }

.laptop-chart-area {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.laptop-chart-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  min-height: 8px;
}

.laptop-base {
  max-width: 960px;
  margin: 0 auto;
  height: 14px;
  background: linear-gradient(180deg, #2a2a3e, #1a1a2e);
  border-radius: 0 0 4px 4px;
}

.laptop-stand {
  max-width: 200px;
  margin: 0 auto;
  height: 30px;
  background: linear-gradient(180deg, #1a1a2e, #121220);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0% 100%);
}

/* ======================== PRICING ======================== */
.pricing-section {
  background: #fff;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  height: 100%;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

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

.pricing-card.popular {
  border-color: var(--warning);
  box-shadow: 0 8px 40px rgba(237, 191, 71, 0.2);
}

.pricing-card.popular:hover {
  box-shadow: 0 12px 48px rgba(237, 191, 71, 0.3);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--warning);
  color: var(--dark);
  padding: 4px 20px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-card .plan-name {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.pricing-card .plan-price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.pricing-card .plan-price span {
  font-size: 1rem;
  font-weight: 600;
  opacity: 0.7;
}

.pricing-card .plan-desc {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 24px;
  min-height: 42px;
}

.pricing-card .plan-divider {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin: 0 auto 24px;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
  flex: 1;
}

.pricing-card ul li {
  font-size: 0.875rem;
  color: var(--gray-500);
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.pricing-card ul li i {
  color: var(--success);
  margin-top: 3px;
  flex-shrink: 0;
}

.pricing-card .btn-plan {
  display: block;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid var(--gray-200);
  color: var(--dark);
  background: #fff;
}

.pricing-card .btn-plan:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pricing-card.popular .btn-plan {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.pricing-card.popular .btn-plan:hover {
  background: #d4633a;
  border-color: #d4633a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 119, 75, 0.35);
}

/* ======================== ADDITIONAL SERVICES ======================== */
.additional-section {
  background: var(--gray-100);
}

.additional-badge {
  background: rgba(111, 193, 145, 0.12);
  color: var(--success);
}

.additional-section .section-subtitle {
  max-width: 800px;
}

.addon-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  transition: var(--transition);
  height: 100%;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow);
}

.addon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--gray-200);
}

.addon-card .addon-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.25rem;
}

.addon-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.addon-card p {
  color: var(--gray-500);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 0;
}

.additional-note {
  max-width: 1100px;
  margin: 36px auto 0;
  color: var(--gray-500);
  text-align: center;
  font-size: 0.95rem;
}

/* ======================== COUNTERS ======================== */
.counters-section {
  background: linear-gradient(135deg, var(--dark) 0%, #3d3c4e 100%);
  padding: 60px 0;
}

.counter-item {
  text-align: center;
  padding: 20px;
}

.counter-item .counter-number {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}

.counter-item .counter-label {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ======================== TESTIMONIALS ======================== */
.testimonials-section {
  background: #fff;
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: var(--warning);
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.8;
}

.testimonial-card .author {
  font-weight: 600;
  font-size: 0.925rem;
  color: var(--primary);
}

.testimonial-card .author-role {
  font-size: 0.825rem;
  color: var(--gray-500);
}

.swiper-pagination-bullet {
  background: var(--gray-500);
  opacity: 0.3;
}

.swiper-pagination-bullet-active {
  background: var(--primary);
  opacity: 1;
}

/* ======================== CTA ======================== */
.cta-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section .section-title {
  color: #fff;
}

.cta-section .section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ======================== CONTACT ======================== */
.contact-section {
  background: var(--gray-100);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 24px;
}

.contact-info .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}

.contact-info .contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(236, 119, 75, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-info .contact-item h6 {
  font-size: 0.925rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info .contact-item p {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-bottom: 0;
}

.contact-form-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: var(--shadow);
}

.contact-form-card h4 {
  font-size: 1.25rem;
  margin-bottom: 24px;
}

.form-floating {
  margin-bottom: 16px;
}

.form-floating .form-control,
.form-floating .form-select {
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  font-size: 0.925rem;
  transition: var(--transition);
}

.form-floating .form-control:focus,
.form-floating .form-select:focus {
  border-color: var(--primary);
}

/* ponytail: !important porque Bootstrap define la sombra de foco/validación con mayor especificidad */
.form-control,
.form-select,
.select2-container--default .select2-selection--single,
.select2-container--default .select2-search__field {
  box-shadow: none !important;
}

.form-floating label {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.input-icon .form-control {
  padding-left: 3rem;
}

.input-icon > label {
  padding-left: 3rem;
}

.input-field-icon {
  position: absolute;
  top: 18px;
  left: 16px;
  z-index: 4;
  color: var(--gray-500);
  font-size: 1rem;
  line-height: 1;
  pointer-events: none;
  transition: color 0.2s ease;
}

.input-icon:focus-within .input-field-icon,
.select-field:focus-within .input-field-icon {
  color: var(--primary);
}

.was-validated .form-control[required]:valid ~ .input-field-icon {
  color: var(--success);
}

.was-validated .form-control:invalid ~ .input-field-icon {
  color: #dc3545;
}

.was-validated .form-control:not([required]):valid {
  border-color: var(--gray-200);
  background-image: none;
}

.btn-submit {
  width: 100%;
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: #d4633a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 119, 75, 0.35);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-alert {
  display: none;
  margin-top: 16px;
  border-radius: 12px;
  font-size: 0.9rem;
}

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

.footer-main {
  padding: 60px 0 40px;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 16px;
}

.footer h6 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.875rem;
  transition: var(--transition);
}

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

.footer-contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

.footer-contact li i {
  color: var(--primary);
  font-size: 0.9rem;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px 0;
  background: rgba(0, 0, 0, 0.12);
}

.footer-bottom-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

@media (max-width: 767.98px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* ======================== BACK TO TOP ======================== */
.back-to-top {
  position: fixed;
  /* --floating-offset lo fija main.js con el alto del aviso de cookies para
     que el botón no quede encima de él en pantallas pequeñas. */
  bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--floating-offset, 6px));
  right: calc(30px + env(safe-area-inset-right, 0px));
  width: 46px;
  height: 46px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(236, 119, 75, 0.4);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(236, 119, 75, 0.5);
}

/* ======================== LOGO WHITE ======================== */
.logo-white {
  filter: brightness(0) invert(1);
  height: 40px;
}

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

/* --- Portátiles pequeños y tablet horizontal: la barra completa aún cabe,
       pero necesita compactarse para no desbordar el contenedor. --- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .navbar-brand img {
    height: 38px;
  }

  .navbar-nav .nav-link {
    padding: 8px 10px !important;
    font-size: 0.875rem;
  }

  .navbar-nav .nav-link::after {
    left: 10px;
    right: 10px;
  }

  .navbar-nav.me-3 {
    margin-right: 0.5rem !important;
  }

  .navbar .btn-cta {
    padding: 9px 16px;
    font-size: 0.875rem;
  }

  /* La columna del hero es más estrecha aquí: el titular no debe crecer tanto */
  .offer-content h1 {
    font-size: 2.55rem;
  }
}

@media (max-width: 1199.98px) {
  .laptop-dashboard {
    grid-template-columns: 140px 1fr;
  }
}

/* Los 5 planes en una sola fila quedan estrechos en esta franja */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .pricing-card {
    padding: 30px 20px;
  }

  .pricing-card .plan-price {
    font-size: 2.15rem;
  }
}

/* --- Tablet (y móvil): menú colapsado --- */
@media (max-width: 991.98px) {
  .section-padding {
    padding: 72px 0;
  }

  /* Menú desplegable: tarjeta blanca, con scroll propio si no cabe */
  .navbar-collapse {
    background: #fff;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    margin-top: 10px;
    box-shadow: var(--shadow-lg);
    max-height: calc(100vh - 120px);
    max-height: calc(100svh - 120px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .navbar-nav.me-3 {
    margin-right: 0 !important;
    margin-bottom: 10px;
  }

  /* Áreas táctiles cómodas en lugar del subrayado de escritorio */
  .navbar-nav .nav-link {
    padding: 12px 14px !important;
    font-size: 1rem;
    border-radius: 10px;
  }

  .navbar-nav .nav-link::after {
    display: none;
  }

  .navbar-nav .nav-link:hover,
  .navbar-nav .nav-link.active {
    background: rgba(236, 119, 75, 0.08);
  }

  .navbar .btn-cta {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }

  .navbar-toggler {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
  }

  .navbar-toggler:focus {
    box-shadow: none;
  }

  /* La navbar es sticky y ya ocupa su espacio: no hace falta reservarle 110px */
  .hero-section {
    min-height: auto;
    padding: 56px 0 52px;
  }

  .offer-slide {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
    min-height: auto;
  }

  .offer-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .offer-pills,
  .hero-buttons {
    justify-content: center;
  }

  .offer-visual {
    order: -1;
  }

  .offer-card {
    margin: 0 auto;
  }

  .laptop-dashboard {
    grid-template-columns: 1fr;
  }

  .laptop-sidebar {
    display: none;
  }

  /* 16px evita que iOS haga zoom automático al enfocar un campo */
  .form-control,
  .form-select,
  .form-floating .form-control,
  .form-floating .form-select,
  .select2-container--default .select2-selection--single .select2-selection__rendered,
  .select2-container--default .select2-search--dropdown .select2-search__field,
  .select2-results__option {
    font-size: 16px;
  }

  .form-floating label {
    font-size: 0.95rem;
  }

  /* Enlaces del pie con altura táctil suficiente */
  .footer-links a,
  .footer-legal a {
    display: inline-block;
    padding: 5px 0;
  }
}

/* --- Móvil --- */
@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

  .hero-section {
    padding: 44px 0 44px;
  }

  /* Los halos difuminados grandes son costosos de renderizar en móvil */
  .hero-glow-1 {
    top: -110px;
    right: -90px;
    width: 320px;
    height: 320px;
    filter: blur(70px);
  }

  .hero-glow-2 {
    bottom: -120px;
    left: -90px;
    width: 300px;
    height: 300px;
    filter: blur(70px);
  }

  .offer-content p {
    font-size: 1rem;
  }

  .contact-form-card {
    padding: 28px 20px;
  }

  .counter-item {
    padding: 14px 8px;
  }

  .counter-item .counter-number {
    font-size: 2rem;
  }

  .counter-item .counter-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
  }

  .pricing-card {
    padding: 28px 20px;
  }

  .service-card,
  .module-card,
  .addon-card,
  .testimonial-card {
    padding: 26px 20px;
  }

  .testimonial-card blockquote {
    font-size: 1rem;
  }

  /* El "laptop" necesita una pantalla más alta para que quepa el dashboard */
  .schoolaryx-mockup {
    margin-top: 40px;
  }

  .laptop-frame {
    padding: 10px 10px 0;
    border-radius: 12px 12px 0 0;
  }

  .laptop-screen {
    aspect-ratio: 4 / 3;
  }

  .laptop-topbar {
    padding: 8px 12px;
    gap: 6px;
  }

  .laptop-topbar .dot {
    width: 8px;
    height: 8px;
  }

  .laptop-topbar .url-bar {
    height: 20px;
    line-height: 20px;
    margin-left: 8px;
    font-size: 0.6rem;
  }

  .laptop-main {
    padding: 10px 12px;
    gap: 8px;
  }

  .laptop-main .main-title {
    font-size: 0.8rem;
  }

  .laptop-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .laptop-stat-card {
    padding: 7px 6px;
  }

  .laptop-stat-card .num {
    font-size: 0.95rem;
  }

  .laptop-stat-card .lbl {
    font-size: 0.5rem;
  }

  .laptop-chart-area {
    padding: 8px;
    gap: 4px;
    min-height: 40px;
  }

  .laptop-base {
    height: 10px;
  }

  .laptop-stand {
    height: 22px;
    max-width: 150px;
  }
}

@media (max-width: 575.98px) {
  /* Un poco más de aire lateral, respetando el notch en horizontal */
  .container,
  .container-fluid {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .section-subtitle {
    margin-bottom: 2.25rem;
  }

  /* El precio del hero no cabe en una línea: la unidad pasa abajo */
  .offer-price {
    flex-wrap: wrap;
    justify-content: center;
    padding: 12px 18px;
  }

  .offer-price-unit {
    flex: 1 0 100%;
    text-align: center;
  }

  .offer-card {
    padding: 26px 22px;
  }

  .offer-card-stats {
    gap: 8px;
  }

  .offer-card-stats div {
    padding: 10px 4px;
  }

  .offer-card-stats strong {
    font-size: 1.15rem;
  }

  /* Botones apilados a todo el ancho: el objetivo táctil recomendado */
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn-cta,
  .hero-buttons .btn-cta-outline,
  .cta-buttons .btn-cta-white,
  .cta-buttons .btn-cta-dark {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .laptop-screen {
    aspect-ratio: 5 / 4;
  }

  .sx-logo {
    height: 46px;
  }

  .schoolaryx-section .section-subtitle {
    margin-bottom: 1.5rem;
  }

  .footer-main {
    padding: 48px 0 32px;
  }
}

/* Móvil en horizontal: el hero a pantalla completa dejaría el texto fuera */
@media (max-width: 991.98px) and (max-height: 520px) and (orientation: landscape) {
  .hero-section {
    padding: 36px 0 36px;
  }

  .navbar-collapse {
    max-height: calc(100vh - 90px);
    max-height: calc(100svh - 90px);
  }
}

/* ======================== SPINNER ======================== */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
  border-width: 0.15em;
}

/* ======================== PRELOADER ======================== */
.preloader {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--gray-200);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ======================== ENTERPRISE POLISH ======================== */
:root {
  --gray-100: #f5f6f8;
  --gray-200: #dfe2e7;
  --gray-500: #62636e;
  --radius: 0.875rem;
  --radius-lg: 1.125rem;
  --shadow: 0 10px 30px rgba(48, 47, 59, 0.07);
  --shadow-lg: 0 18px 50px rgba(48, 47, 59, 0.11);
  --shadow-hover: 0 18px 44px rgba(48, 47, 59, 0.13);
  --transition: all 0.2s ease;
}

body {
  font-size: 1rem;
  letter-spacing: -0.005em;
}

.section-title {
  color: var(--dark);
  letter-spacing: -0.035em;
}

.section-subtitle {
  line-height: 1.75;
}

.navbar {
  border-bottom-color: rgba(48, 47, 59, 0.08);
  box-shadow: 0 1px 0 rgba(48, 47, 59, 0.03);
}

.hero-section {
  background:
    linear-gradient(rgba(48, 47, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 47, 59, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fbfbfc 0%, #f3f5f7 58%, #eceff3 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.offer-price,
.feature-card,
.service-card,
.pricing-card,
.addon-card,
.testimonial-card,
.contact-form-card {
  border-color: var(--gray-200);
  box-shadow: var(--shadow);
}

.feature-card:hover,
.service-card:hover,
.pricing-card:hover {
  transform: translateY(-3px);
}

.btn-cta,
.btn-cta-outline,
.btn-cta-white,
.btn-cta-dark,
.btn-submit,
.pricing-card .btn-plan {
  border-radius: 10px;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(236, 119, 75, 0.24);
  outline-offset: 2px;
}

/* ponytail: campos sin outline — el borde naranja al enfocar ya es la señal de foco */
input:focus-visible,
textarea:focus-visible,
.select2-container--default.select2-container--focus .select2-selection--single {
  outline: none;
}

.btn-cta,
.btn-cta-outline,
.btn-cta-white,
.btn-cta-dark,
.btn-submit,
.btn-plan,
.navbar-toggler,
.select2-selection,
.select2-results__option {
  cursor: pointer;
}

/* Select2 */
.form-field {
  margin-bottom: 16px;
}

.select-field {
  position: relative;
}

.select-field > .input-field-icon {
  top: auto;
  bottom: 21px;
}

.form-field > label {
  display: block;
  margin: 0 0 8px 2px;
  color: var(--dark);
  font-size: 0.85rem;
  font-weight: 600;
}

.select-field .form-select {
  width: 100%;
}

.select2-container--default .select2-selection--single {
  height: 58px;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
  border-color: #c9ccd2;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--primary);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 56px;
  padding: 0 52px 0 46px;
  color: var(--dark);
  font-size: 0.925rem;
  line-height: 56px;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--gray-500);
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 16px;
  right: 12px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--dark);
}

.select2-dropdown {
  margin-top: 6px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  z-index: 1060;
}

.select2-search--dropdown {
  padding: 10px;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  color: var(--dark);
  outline: none;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--primary);
}

.select2-results__option {
  padding: 10px 14px;
  color: var(--dark);
  font-size: 0.9rem;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable,
.select2-container--default .select2-results__option--selected {
  background: rgba(236, 119, 75, 0.12);
  color: var(--dark);
}

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

/* ======================== PRIVACY & COOKIE NOTICE ======================== */
.privacy-page {
  background: var(--gray-100);
}

.privacy-hero {
  padding: 132px 0 64px;
  background:
    radial-gradient(circle at 85% 10%, rgba(116, 206, 228, 0.22), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f5f6f8 100%);
  border-bottom: 1px solid var(--gray-200);
}

.privacy-hero .badge-label {
  color: var(--primary);
  background: rgba(236, 119, 75, 0.12);
}

.privacy-hero h1 {
  max-width: 780px;
  margin-bottom: 16px;
  color: var(--dark);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.045em;
}

.privacy-hero p {
  max-width: 720px;
  margin: 0;
  color: var(--gray-500);
  font-size: 1.08rem;
}

.privacy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 24px;
  color: var(--gray-500);
  font-size: 0.875rem;
  font-weight: 600;
}

.privacy-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.privacy-meta i {
  color: var(--primary);
}

.privacy-content {
  padding: 64px 0 100px;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.privacy-toc {
  position: sticky;
  top: 96px;
  padding: 22px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.privacy-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--dark);
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.privacy-toc a {
  display: block;
  padding: 7px 0;
  color: var(--gray-500);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s ease;
}

.privacy-toc a:hover,
.privacy-toc a:focus-visible {
  color: var(--primary);
}

.privacy-document {
  padding: 48px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.privacy-section {
  scroll-margin-top: 100px;
}

.privacy-section + .privacy-section {
  margin-top: 42px;
  padding-top: 42px;
  border-top: 1px solid var(--gray-200);
}

.privacy-section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--dark);
  font-size: 1.45rem;
  letter-spacing: -0.02em;
}

.privacy-section h2 i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 10px;
  color: var(--primary);
  background: rgba(236, 119, 75, 0.1);
  font-size: 1rem;
}

.privacy-section p,
.privacy-section li {
  color: var(--gray-500);
  font-size: 0.96rem;
  line-height: 1.8;
}

.privacy-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

.privacy-section li + li {
  margin-top: 8px;
}

.privacy-section a {
  color: #b94f2c;
  font-weight: 600;
}

.privacy-callout {
  display: flex;
  gap: 14px;
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid rgba(116, 206, 228, 0.45);
  border-radius: 12px;
  background: rgba(116, 206, 228, 0.1);
}

.privacy-callout i {
  flex: 0 0 auto;
  color: #28798e;
  font-size: 1.15rem;
}

.privacy-callout p {
  margin: 0;
  color: var(--dark);
}

/* .site-toast (confirmación de envío) comparte la apariencia del aviso de cookies. */
.cookie-notice,
.site-toast {
  position: fixed;
  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 24px;
  z-index: 1080;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  width: min(920px, calc(100% - 48px));
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  background: rgba(48, 47, 59, 0.97);
  box-shadow: 0 20px 60px rgba(24, 23, 31, 0.3);
  backdrop-filter: blur(14px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-notice.is-hidden,
.site-toast.is-hidden {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}

/* Va sobre el aviso de cookies y sin la tercera columna del botón. */
.site-toast {
  z-index: 1090;
  grid-template-columns: auto minmax(0, 1fr);
}

.site-toast .cookie-notice-icon {
  background: var(--success);
  color: #fff;
}

.cookie-notice-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--dark);
  background: var(--info);
  font-size: 1.2rem;
}

.cookie-notice-copy strong {
  display: block;
  margin-bottom: 2px;
  font-size: 0.95rem;
}

.cookie-notice-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.55;
}

.cookie-notice-copy a {
  color: var(--info);
  font-weight: 600;
}

.cookie-notice-button {
  padding: 10px 18px;
  border: 0;
  border-radius: 9px;
  color: #fff;
  background: var(--primary);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cookie-notice-button:hover {
  background: #d4633a;
}

@media (max-width: 991.98px) {
  .privacy-layout { grid-template-columns: 1fr; gap: 28px; }
  .privacy-toc { position: static; }
  /* En tablet el índice ocupa menos alto repartido en dos columnas */
  .privacy-toc a { padding: 9px 0; }
  .privacy-toc-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
  }
  .privacy-hero p { font-size: 1rem; }
  .privacy-section h2 { font-size: 1.25rem; }
  /* La navbar deja de superponerse al colapsar: sobra el espacio superior */
  .privacy-hero { padding: 76px 0 52px; }
}

@media (max-width: 575.98px) {
  .privacy-hero { padding: 56px 0 44px; }
  .privacy-content { padding: 36px 0 72px; }
  .privacy-document { padding: 26px 18px; }
  .privacy-toc { padding: 18px; }
  .privacy-toc-links { grid-template-columns: 1fr; }
  .privacy-section + .privacy-section { margin-top: 32px; padding-top: 32px; }
  .privacy-section h2 { gap: 10px; font-size: 1.15rem; }
  .privacy-section h2 i { width: 32px; height: 32px; flex-basis: 32px; font-size: 0.9rem; }
  .privacy-callout { padding: 16px; }
  .cookie-notice,
  .site-toast {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    left: 12px;
    grid-template-columns: auto minmax(0, 1fr);
    width: calc(100% - 24px);
    padding: 16px;
  }
  .cookie-notice-button { grid-column: 1 / -1; width: 100%; padding: 12px 18px; }
}

/* ======================== MAINTENANCE ======================== */
.maintenance-page {
  background: var(--gray-100);
}

.maintenance-section {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 96px 0;
  overflow: hidden;
  background:
    linear-gradient(rgba(48, 47, 59, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 47, 59, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #fbfbfc 0%, #f1f4f6 100%);
  background-size: 32px 32px, 32px 32px, auto;
}

.maintenance-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.maintenance-glow-one {
  top: -120px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(116, 206, 228, 0.28);
}

.maintenance-glow-two {
  bottom: -140px;
  left: -100px;
  width: 380px;
  height: 380px;
  background: rgba(236, 119, 75, 0.18);
}

.maintenance-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  align-items: center;
  gap: 56px;
  padding: 64px;
  border: 1px solid var(--gray-200);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(12px);
}

.maintenance-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 7px 14px;
  border-radius: 8px;
  color: #b94f2c;
  background: rgba(236, 119, 75, 0.12);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.maintenance-copy h1 {
  margin-bottom: 16px;
  color: var(--dark);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.045em;
}

.maintenance-copy > p {
  max-width: 640px;
  margin-bottom: 28px;
  color: var(--gray-500);
  font-size: 1.05rem;
  line-height: 1.8;
}

.maintenance-status {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 540px;
  margin-bottom: 30px;
  padding: 16px 18px;
  border: 1px solid rgba(111, 193, 145, 0.35);
  border-radius: 12px;
  background: rgba(111, 193, 145, 0.09);
}

.maintenance-status-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(111, 193, 145, 0.14);
}

.maintenance-status strong,
.maintenance-status span {
  display: block;
}

.maintenance-status strong {
  margin-bottom: 2px;
  color: var(--dark);
  font-size: 0.9rem;
}

.maintenance-status span {
  color: var(--gray-500);
  font-size: 0.82rem;
}

.maintenance-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.maintenance-actions .btn-cta,
.maintenance-actions .btn-cta-outline {
  min-height: 48px;
  padding: 12px 22px;
}

.maintenance-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 340px;
}

.maintenance-visual-ring {
  position: absolute;
  border: 1px solid rgba(116, 206, 228, 0.32);
  border-radius: 50%;
}

.ring-large {
  width: 320px;
  height: 320px;
}

.ring-small {
  width: 245px;
  height: 245px;
  border-color: rgba(236, 119, 75, 0.26);
}

.maintenance-tool-card {
  position: relative;
  z-index: 1;
  width: min(260px, 80%);
  padding: 30px 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--dark), #403f50);
  box-shadow: 0 24px 50px rgba(48, 47, 59, 0.25);
  text-align: center;
}

.maintenance-tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  border-radius: 18px;
  color: var(--dark);
  background: var(--info);
  box-shadow: 0 12px 30px rgba(116, 206, 228, 0.3);
  font-size: 2rem;
}

.maintenance-tool-card > span {
  display: block;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 600;
}

.maintenance-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
}

.maintenance-progress i {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--info));
}

@media (max-width: 991.98px) {
  .maintenance-section { padding: 72px 0; }
  .maintenance-card { grid-template-columns: 1fr; padding: 44px; text-align: center; }
  .maintenance-copy > p,
  .maintenance-status { margin-right: auto; margin-left: auto; }
  .maintenance-actions { justify-content: center; }
  .maintenance-visual { min-height: 300px; }
}

@media (max-width: 575.98px) {
  .maintenance-section { padding: 48px 0; }
  .maintenance-card { gap: 32px; padding: 32px 20px; border-radius: 18px; }
  .maintenance-copy h1 { font-size: 2.2rem; }
  .maintenance-actions { flex-direction: column; }
  .maintenance-actions .btn-cta,
  .maintenance-actions .btn-cta-outline { justify-content: center; width: 100%; }
  .maintenance-visual { min-height: 250px; }
  .ring-large { width: 250px; height: 250px; }
  .ring-small { width: 190px; height: 190px; }
}

/* ======================== CTA SCHOOLARYX ======================== */
.btn-demo-sx {
  background: var(--info);
  max-width: 100%;
  padding: 14px 32px;
  font-size: 1.05rem;
  text-align: center;
}

.btn-demo-sx:hover {
  background: #56bcd5;
}

@media (max-width: 575.98px) {
  .btn-demo-sx {
    width: 100%;
    max-width: 340px;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.95rem;
  }
}

/* ======================== AJUSTES FINALES MÓVIL ======================== */
/* El desplegable de Select2 se posiciona en el body: se limita aparte. */
.select2-container {
  max-width: 100%;
}

@media (max-width: 575.98px) {
  .select2-dropdown {
    max-width: calc(100vw - 32px);
  }

  /* Los sliders responden al gesto horizontal sin bloquear el scroll vertical */
  .hero-swiper,
  .testimonials-swiper {
    touch-action: pan-y;
  }

  .hero-controls {
    margin-top: 24px;
    gap: 12px;
  }

  .back-to-top {
    right: calc(16px + env(safe-area-inset-right, 0px));
  }
}
