/*========================================
  VARIABLES & TIPOGRAFÍA
========================================*/
:root {
  --accent-1: #ff7a45;
  --accent-2: #5ec2ff;
  --accent-3: #7b61ff;
  --accent-glow: rgba(94, 194, 255, 0.25);
  --text: #1a1a2e;
  --text-light: #4b5563;
  --text-muted: #6b7280;
  --bg: #fbfdff;
  --surface: #ffffff;
  --surface-alt: #f8faff;
  --border: rgba(123, 97, 255, 0.12);
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 4px 12px rgba(12, 18, 40, 0.06);
  --shadow-md: 0 10px 30px rgba(12, 18, 40, 0.1);
  --shadow-lg: 0 20px 50px rgba(12, 18, 40, 0.14);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --container: 1200px;
  --gap: 24px;
  --section-padding: 80px;
}

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

html {
  scroll-behavior: smooth;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

/*========================================
  LAYOUT & CONTAINER
========================================*/
.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  padding-inline: 1rem;
}

/*========================================
  TYPOGRAPHY
========================================*/
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 2.5rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 2.2rem); }
h3 { font-size: clamp(1.5rem, 4vw, 1.8rem); }

p {
  color: var(--text-light);
  font-size: 1rem;
}

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

/*========================================
  BUTTONS
========================================*/
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border: none;
  border-radius: var(--radius-md);
  box-shadow: 0 8px 25px rgba(94, 194, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, #ff9a6b, #7b61ff);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.btn:hover::before {
  opacity: 1;
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(94, 194, 255, 0.4);
}

/* ================= HEADER ================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand h1 {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
}

.brand .tag {
  font-size: 0.8rem;
  color: var(--muted);
}

/* NAV */
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: #1e293b;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-2);
  transition: 0.3s;
  transform: translateX(-50%);
}

.nav-links a:hover::after {
  width: 100%;
}

/* ============= HAMBURGUESA ============= */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background: var(--accent-3);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}
.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/*========================================
  HERO
========================================*/
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(rgba(11, 16, 34, 0.4), rgba(11, 16, 34, 0.6)), url('../images/pagina.png') center/cover no-repeat;
  color: white;
  text-align: center;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, rgba(123, 97, 255, 0.2), rgba(94, 194, 255, 0.1));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.hero-sub {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.95;
  font-weight: 500;
  color:#eef4ff
}

/*========================================
  WHY SECTION - SLIDER CON FLECHAS VISIBLES EN TODOS LOS DISPOSITIVOS
========================================*/
.why-section {
  padding: var(--section-padding) 0;
  background: var(--surface);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-1));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 3rem;
}

.compare-box {
  position: relative;
  max-width: 800px;
  height: 480px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: white;
}

.compare-panel {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: 1rem;
  transition: clip-path 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.panel-nosotros {
  background: linear-gradient(135deg, #f8faff 0%, #eef4ff 100%);
  z-index: 1;
}

.panel-otros {
  background: linear-gradient(135deg, #fff8f5 0%, #fff0eb 100%);
  z-index: 2;
  clip-path: inset(0 50% 0 0);
}

.panel-header h4 {
  font-size: 1.6rem;
  font-weight: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 0 0 1rem 0;
}

.badge {
  font-size: 0.75rem;
  font-weight: 900;
  padding: 6px 14px;
  border-radius: 50px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.badge.premium {
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  color: white;
  box-shadow: 0 4px 15px rgba(123, 97, 255, 0.3);
}

.badge.basic {
  background: #ffe0d6;
  color: #d45d5d;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  font-weight: 600;
  font-size: 1rem;
  max-width: 85%;
  margin: 0;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  animation: fadeUp 0.6s ease-out forwards;
  opacity: 0;
  transform: translateY(10px);
}

.feature-list li:nth-child(1) { animation-delay: 0.1s; }
.feature-list li:nth-child(2) { animation-delay: 0.2s; }
.feature-list li:nth-child(3) { animation-delay: 0.3s; }
.feature-list li:nth-child(4) { animation-delay: 0.4s; }
.feature-list li:nth-child(5) { animation-delay: 0.5s; }
.feature-list li:nth-child(6) { animation-delay: 0.6s; }
.feature-list li:nth-child(7) { animation-delay: 0.7s; }

.icon { width: 22px; height: 22px; flex-shrink: 0; }
.icon.check { color: #4caf50; }
.icon.cross { color: #ff6b6b; }

/* ================= SLIDER + FLECHAS LATERALES (AHORA 100% SÓLIDAS Y VISIBLES EN MÓVIL) ================= */
.compare-slider {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 70px;
  cursor: ew-resize;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

/* Flechas laterales ← → */
.compare-slider::before,
.compare-slider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 44px;
  height: 74px;
  background: white;                    /* Fondo 100% sólido */
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: bold;
  color: var(--accent-1);
  opacity: 0.85;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 12;
  transform: translateY(-50%);
}

.compare-slider::before {
  content: '←';
  left: -90px;         /* Un poco más cerca en móvil también */
}

.compare-slider::after {
  content: '→';
  right: -90px;
}

.compare-slider:hover::before,
.compare-slider:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 12px 40px rgba(0,0,0,0.2);
}

/* NUEVO: Ocultar flechas una vez movido el slider (aunque sea un poquito) */
.compare-slider.moved::before,
.compare-slider.moved::after {
  opacity: 0;
  transform: translateY(-50%) scale(0.8);
}

.slider-track {
  position: relative;
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 5px;
  background: linear-gradient(to bottom, var(--accent-3), var(--accent-2));
  border-radius: 3px;
  transform: translateX(-50%);
  box-shadow: 0 0 20px var(--accent-glow);
}

.slider-thumb {
  width: 60px;
  height: 60px;
  background: white;
  border: 4px solid var(--accent-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 122, 69, 0.35);
  transition: all 0.3s ease;
  z-index: 11;
}

.slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 15px 40px rgba(255, 122, 69, 0.45);
}

.drag-icon {
  width: 22px;
  height: 22px;
  color: var(--accent-1);
}

.slider-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 16px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  font-weight: 600;
}

.compare-slider:hover .slider-hint {
  opacity: 1;
}

/*========================================
  DIVIDER / SERVICIOS / FOOTER (sin cambios)
========================================*/
.decor-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin: 3rem 0;
}

.divider-svg {
  width: 100%;
  height: 100px;
  filter: drop-shadow(0 10px 30px rgba(94, 194, 255, 0.15));
}

.services-section {
  padding: var(--section-padding) 0;
  background: linear-gradient(180deg, var(--bg), #f0f4ff);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--gap);
  margin-top: 2.5rem;
}

.service-btn {
  background: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}

.service-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--accent-3), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-btn:hover::before { transform: scaleX(1); }
.service-btn:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.service-icon {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(123, 97, 255, 0.15), rgba(94, 194, 255, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.service-btn:hover .service-icon {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
}

.service-icon svg {
  width: 42px; height: 42px;
  color: var(--accent-3);
  transition: var(--transition);
}

.service-btn:hover .service-icon svg {
  color: white;
  transform: scale(1.15);
}

.service-btn span {
  font-weight: 700;
  color: var(--text);
  font-size: 1.1rem;
}

.site-footer {
  width: 100%;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 3rem 1rem 1.5rem;
}

.footer-container {
  width: min(100%, var(--container));
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-container h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--text); }
.footer-container p, .footer-container a { color: var(--text-muted); font-size: 0.95rem; transition: color 0.3s ease; }
.footer-container a:hover { color: var(--accent-2); }

.footer-bottom {
  width: min(100%, var(--container));
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.875rem;
}

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/*========================================
  RESPONSIVE
========================================*/
@media (max-width: 768px) {
  :root { --section-padding: 60px; }

  .nav-toggle { display: flex; position: absolute; right: 1rem; top: 1.5rem; }
  .nav-links { 
    position: absolute; top: 100%; left: 0; right: 0;
    background: white; flex-direction: column; padding: 1rem;
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    display: none; border: 1px solid var(--border); margin-top: 1rem;
  }
  .nav-links.show { display: flex; }

  .hero { padding: 80px 0 60px; }

  /* Flechas más cerca en pantallas medianas */
  .compare-slider::before  { left: -70px; }
  .compare-slider::after   { right: -70px; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
  .service-btn { padding: 1.5rem; min-height: 150px; }
  .service-icon { width: 70px; height: 70px; }

  /* Flechas aún más cerca en móviles para que quepan bien */
  .compare-slider::before  { left: -60px; width: 40px; height: 66px; font-size: 28px; }
  .compare-slider::after   { right: -60px; width: 40px; height: 66px; font-size: 28px; }
}