/* ===== Tokens ===== */
:root { 
  --ink: #190b3d;
  --purple-deep: #26124f;
  --purple: #3f1c8c;
  --violet: #5b35d6;
  --iris: #4f6df0;
  --blue-deep: #27409e;
  --magenta: #ff1f9c;
  --magenta-soft: #ff5cc0;
  --sun: #f6d35d;
  --paper: #fdfbf7;
  --paper-dim: #f3eefc;
  --ink-soft: #5b5277;
  --orange: #e08e3d;
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --shadow-lg: 0 30px 60px -20px rgba(25,11,61,.45);
  --shadow-sm: 0 14px 30px -14px rgba(25,11,61,.35);
  --ff-display: 'Anton', sans-serif;
  --ff-body: 'Poppins', sans-serif;
  --nav-h: 78px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-display); font-weight: 400; letter-spacing: .5px; }

section { 
  scroll-margin-top: var(--nav-h); 
}

:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: var(--sun); margin: 0 0 14px;
}
.eyebrow-dark { color: var(--magenta); }
.chevrons { letter-spacing: 1px; font-weight: 800; color: var(--magenta-soft); }
.eyebrow-dark .chevrons { color: var(--magenta); }
.center-content { justify-content: center; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary { background: linear-gradient(135deg, var(--magenta), var(--magenta-soft)); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 0 20px 40px -14px rgba(255,31,156,.55); }

/* ULTRA LIGERO: Sin blur ni transformaciones extrañas */
.btn-ghost { 
  background: rgba(255,255,255,.15); 
  color: #fff; 
  border-color: rgba(255,255,255,.45); 
}
.btn-ghost:hover { background: rgba(255,255,255,.25); }
.btn svg { width: 18px; height: 18px; }

/* ===== Nav ===== */
/* ULTRA LIGERO: Fondo 98% opaco, cero blur, cero aceleración forzada */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 50;
  display: flex; align-items: center;
  background: rgba(25, 11, 61, 0.98); 
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav-inner {
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; }

.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(25, 11, 61, 0.45);
}

.brand-text { 
  display: flex; flex-direction: column; line-height: 1.15; 
  color: #fff !important; font-weight: 700; font-size: 15px; 
  white-space: nowrap; 
}
.brand-text small { color: var(--sun); font-weight: 600; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { color: rgba(255,255,255,.85); font-weight: 600; font-size: 14.5px; position: relative; padding: 6px 2px; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -4px; width: 0; height: 2px; background: var(--sun); transition: width .25s ease; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: #fff; }
.nav-cta {
  background: var(--sun); color: var(--ink); font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 999px; transition: transform .2s ease;
}
.nav-cta:hover { transform: translateY(-2px); }

/* ===== Botón Menú Móvil (Hamburguesa) ===== */
.nav-toggle { 
  display: none; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center;
  gap: 5px; 
  width: 44px; 
  height: 44px; 
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.1); 
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  cursor: pointer; 
  transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-toggle:hover, .nav-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.nav-toggle span { 
  display: block; 
  width: 100%; 
  height: 2.5px; 
  background: #fff; 
  border-radius: 2px; 
  transition: transform .25s ease, opacity .25s ease, background .25s ease; 
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
.nav-toggle[aria-expanded="true"] span { background: var(--sun); }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 60px) 28px 100px;
  display: flex; align-items: center;
  background: linear-gradient(150deg, var(--purple-deep) 0%, var(--purple) 32%, var(--violet) 55%, var(--iris) 78%, var(--blue-deep) 100%);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%);
}

.hero-glow { 
  position: absolute; 
  border-radius: 50%; 
  pointer-events: none; 
}
.glow-a { 
  width: 520px; 
  height: 520px; 
  background: radial-gradient(circle, rgba(255,31,156,.35) 0%, rgba(255,31,156,0) 65%); 
  top: -120px; 
  right: -80px; 
}
.glow-b { 
  width: 480px; 
  height: 480px; 
  background: radial-gradient(circle, rgba(79,109,240,.35) 0%, rgba(79,109,240,0) 65%); 
  bottom: -160px; 
  left: -120px; 
}

.hero-horizon {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.06) 49%, transparent 68%);
}

.hero-inner {
  position: relative; z-index: 2; max-width: 800px; margin: 0 auto; width: 100%;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-title {
  font-size: clamp(46px, 8vw, 96px); line-height: 1.02; color: #fff;
  text-shadow: 0 14px 40px rgba(0,0,0,.25);
}
.hero-title .accent { color: var(--magenta-soft); }
.hero-quote {
  margin: 26px auto 34px; max-width: 540px; color: var(--sun); font-weight: 700; font-style: italic;
  font-size: clamp(17px, 2vw, 21px); line-height: 1.45;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero-trust li {
  color: rgba(255,255,255,.85); font-size: 13px; font-weight: 600; letter-spacing: .5px;
  display: flex; align-items: center; gap: 8px;
}
.hero-trust li::before { content: '✓'; color: var(--sun); font-weight: 800; }

.scroll-cue {
  position: absolute; left: 50%;
  bottom: 55px; 
  transform: translateX(-50%); z-index: 2;
  width: 30px; height: 30px; border-bottom: 3px solid var(--sun); border-right: 3px solid var(--sun);
  transform: translateX(-50%) rotate(45deg); animation: bounce 2s ease-in-out infinite;
}
@keyframes bounce { 0%, 100% { margin-top: 0; } 50% { margin-top: 10px; } }

/* ===== Tarjetas con Flyers ===== */
/* ULTRA LIGERO: Cero will-change, cero translateZ */
.features-section { padding: 90px 28px 40px; max-width: 1180px; margin: 0 auto; }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px;
}

.feature-card {
  display: flex; align-items: center; gap: 20px; background: #fff;
  padding: 20px; border-radius: var(--r-md);
  border: 1.5px solid #ece6f7;
  transition: transform .3s ease, box-shadow .3s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); border-color: transparent; }

.flyer-card img {
  width: 120px; height: auto; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
  box-shadow: 0 6px 14px -6px rgba(25,11,61,.3);
}
.feature-text h3 { font-size: 22px; color: var(--ink); margin-bottom: 8px; }
.feature-text p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

/* ===== Carousels con Flechas ===== */
.services { padding: 60px 28px 60px; max-width: 1180px; margin: 0 auto; }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(32px, 5vw, 46px); color: var(--ink); }
.section-sub { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }

.carousel-container {
  position: relative; display: flex; align-items: center;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: #fff; color: var(--violet); border: 1.5px solid #ece6f7;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, transform .2s, border-color .2s, opacity .3s, visibility .3s;
}
.carousel-btn:hover {
  background: var(--violet); color: #fff; border-color: var(--violet);
  transform: translateY(-50%) scale(1.08);
}
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

.prev-btn { left: -20px; }
.next-btn { right: -20px; }

/* ULTRA LIGERO: Scroll nativo sin force de GPU */
.pricing-carousel, .reviews-carousel {
  display: flex; gap: 20px; overflow-x: auto;
  padding: 15px 5px; margin: 0 auto; width: 100%;
  scroll-snap-type: x mandatory; 
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; -ms-overflow-style: none;
}
.pricing-carousel::-webkit-scrollbar, .reviews-carousel::-webkit-scrollbar { display: none; }

/* Tarjetas de Precios */
.menu-card {
  flex: 0 0 min(100%, 340px); scroll-snap-align: center;
  background: #fff; border: 1.5px solid #ece6f7; border-radius: var(--r-md); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease;
}
.menu-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.menu-card-head { padding: 30px 20px; text-align: center; }
.menu-card-head h3 { font-size: 26px; margin-bottom: 6px; font-family: var(--ff-display); letter-spacing: .5px; }
.menu-card-head p { font-size: 13.5px; opacity: .9; margin: 0; font-weight: 600; }

.menu-list { padding: 10px 24px 20px; margin: 0; flex-grow: 1; }
.menu-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 0; border-bottom: 1px dashed #e4dcf5;
}
.menu-list li:last-child { border-bottom: none; }
.menu-list li span { color: var(--ink-soft); font-weight: 600; font-size: 14.5px; }
.menu-list li strong { color: var(--ink); font-weight: 800; font-size: 16px; }
.menu-card-foot { padding: 0 24px 30px; }

.price-cta {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center; width: 100%;
  background: var(--paper-dim); color: var(--violet); font-weight: 700; font-size: 14px;
  padding: 14px 0; border-radius: 999px; transition: background .25s ease, color .25s ease;
}
.price-cta:hover { background: var(--violet); color: #fff; }
.price-cta svg { width: 18px; height: 18px; }

/* ===== Referencias ===== */
.reviews-section { padding: 40px 28px 100px; max-width: 1180px; margin: 0 auto; }
.ref-img {
  flex: 0 0 260px; height: 440px; object-fit: cover; border-radius: var(--r-md);
  scroll-snap-align: center; border: 1.5px solid #ece6f7; box-shadow: var(--shadow-sm);
}

/* ===== Contact ===== */
.contact {
  position: relative; overflow: hidden; padding: 120px 28px 130px;
  background: linear-gradient(150deg, var(--blue-deep) 0%, var(--violet) 45%, var(--purple-deep) 100%);
  clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 100%);
}
.contact-card { position: relative; z-index: 2; max-width: 680px; margin: 0 auto; text-align: center; color: #fff; }
.contact-card h2 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 14px; color: #fff; }
.contact-card p { color: rgba(255,255,255,.82); font-size: 15.5px; line-height: 1.6; max-width: 480px; margin: 0 auto 36px; }
.contact-buttons { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.contact-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 16px 30px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: #fff; box-shadow: var(--shadow-sm); transition: transform .25s ease;
}
.contact-btn:hover { transform: translateY(-4px); }
.contact-btn svg { width: 20px; height: 20px; }
.contact-btn.whatsapp { background: #25d366; }
.contact-btn.messenger { background: linear-gradient(135deg, #00b2ff, #5b3fde, #ff1f9c); }

/* ===== Floating buttons ===== */
.floating-contact { position: fixed; right: 22px; bottom: 24px; z-index: 60; display: flex; flex-direction: column; gap: 14px; }
.float-btn {
  position: relative; width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 14px 30px -10px rgba(25,11,61,.55); opacity: 0; transform: translateY(20px) scale(.7);
  animation: pop .5s ease forwards;
}
.float-btn svg { width: 26px; height: 26px; }
.float-whatsapp { background: #25d366; animation-delay: .3s; }
.float-messenger { background: linear-gradient(135deg, #00b2ff, #5b3fde, #ff1f9c); animation-delay: .5s; }

.float-whatsapp::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pop { to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
.tooltip {
  position: absolute; right: 68px; top: 50%; transform: translateY(-50%) translateX(8px);
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 8px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.float-btn:hover .tooltip, .float-btn:focus-visible .tooltip { opacity: 1; transform: translateY(-50%) translateX(0); }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 50px 28px 26px; position: relative; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--magenta), var(--sun));
}
.footer-inner {
  max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { margin: 2px 0 0; font-size: 12.5px; color: var(--sun); letter-spacing: 1px; text-transform: uppercase; }
.footer-copy { text-align: center; font-size: 12.5px; margin: 22px 0 0; color: rgba(255,255,255,.5); }

/* ===== Reveal on scroll (Desactivado para máxima estabilidad) ===== */
/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
  will-change: opacity, transform;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
/* ===== Responsive ===== */
@media (max-width: 1220px) {
  .prev-btn { left: 0px; }
  .next-btn { right: 0px; }
}
@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  /* ===== Cascada (stagger) para grupos de tarjetas ===== */
.features-grid .reveal:nth-child(1) { transition-delay: 0s; }
.features-grid .reveal:nth-child(2) { transition-delay: .12s; }
.features-grid .reveal:nth-child(3) { transition-delay: .24s; }
.features-grid .reveal:nth-child(4) { transition-delay: .36s; }
.features-grid .reveal:nth-child(5) { transition-delay: .48s; }
.features-grid .reveal:nth-child(6) { transition-delay: .6s; }

.pricing-carousel .reveal:nth-child(1) { transition-delay: 0s; }
.pricing-carousel .reveal:nth-child(2) { transition-delay: .12s; }
.pricing-carousel .reveal:nth-child(3) { transition-delay: .24s; }
.pricing-carousel .reveal:nth-child(4) { transition-delay: .36s; }

.reviews-carousel .reveal:nth-child(1) { transition-delay: 0s; }
.reviews-carousel .reveal:nth-child(2) { transition-delay: .12s; }
.reviews-carousel .reveal:nth-child(3) { transition-delay: .24s; }
.reviews-carousel .reveal:nth-child(4) { transition-delay: .36s; }
.reviews-carousel .reveal:nth-child(5) { transition-delay: .48s; }

@media (prefers-reduced-motion: reduce) {
  .features-grid .reveal,
  .pricing-carousel .reveal,
  .reviews-carousel .reveal {
    transition-delay: 0s !important;
  }
}
  
  .nav-links {
    position: fixed; 
    top: var(--nav-h); 
    right: 0;
    height: calc(100vh - var(--nav-h)); 
    width: min(78vw, 320px);
    
    flex-direction: column; 
    align-items: flex-start; 
    gap: 26px; 
    padding: 40px 30px;
    background: var(--ink); 
    transform: translateX(100%); 
    transition: transform .35s ease;
    
    overflow-y: auto; 
  }
  
  .nav-links.open { transform: translateX(0); }
  .nav-cta { order: 5; }
  .contact { clip-path: polygon(0 6%, 100% 0, 100% 100%, 0 100%); }
}

@media (max-width: 520px) {
  .hero { padding-bottom: 140px; }
  .hero-title { font-size: clamp(40px, 12vw, 56px); }
  .feature-card.flyer-card { flex-direction: column; text-align: center; }
  .flyer-card img { width: 160px; } 
  
  .brand-text { font-size: 13.5px !important; }
  .brand-text small { font-size: 9.5px; }
}
