/* ============ Versión 2: curvas, movimiento y teléfono realista ============ */
:root { --radius: 28px; --panel: clamp(28px, 4vw, 56px); --spring: cubic-bezier(.2, .8, .2, 1.35); }

/* Paneles curvos */
.hero { border-radius: 0 0 var(--panel) var(--panel); }
.dark.try, .dark.story, .light.alt { margin-inline: clamp(8px, 1.6vw, 22px); border-radius: var(--panel); }
.dark.contact { border-radius: var(--panel) var(--panel) 0 0; }
.statement + .light.alt { padding-top: clamp(52px, 6.5vw, 92px); margin-top: clamp(20px, 3vw, 40px); }
.light.alt + .light { padding-top: clamp(52px, 6.5vw, 92px); }

/* Subrayado curvo en palabras clave */
.swoosh {
  white-space: nowrap; padding-bottom: .16em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 18' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g'%3E%3Cstop stop-color='%2319d3ff'/%3E%3Cstop offset='.5' stop-color='%230a5bff'/%3E%3Cstop offset='1' stop-color='%23c63df5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath d='M4 12 C 70 2, 160 2, 296 10' fill='none' stroke='url(%23g)' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .34em;
}

/* Botones con vida */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .28s var(--spring), box-shadow .28s ease, background-position .5s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-130%); transition: transform .7s ease;
}
.btn:hover { transform: translateY(-5px) scale(1.035); }
.btn:hover::after { transform: translateX(130%); }
.btn:active { transform: translateY(1px) scale(.96); transition-duration: .08s; }
.btn-primary { background-size: 180% 100%; background-position: 0 0; }
.btn-primary:hover { background-position: 100% 0; box-shadow: 0 20px 50px rgba(138, 29, 242, .6), 0 0 0 1px rgba(255, 255, 255, .18) inset; }
.btn-dark:hover, .btn-light:hover { box-shadow: 0 18px 40px rgba(10, 16, 60, .35); }
.btn-ghost:hover { box-shadow: 0 16px 40px rgba(25, 211, 255, .22); border-color: rgba(255, 255, 255, .6); }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: -1;
  background: rgba(255, 255, 255, .5); transform: scale(0); animation: ripple .65s ease-out forwards;
}
.btn-light .ripple, .tab:not(.is-active) .ripple { background: rgba(10, 91, 255, .25); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

.nav-links a { position: relative; padding: 6px 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }
.brand-mark { transition: transform .5s var(--spring); }
.brand:hover .brand-mark { transform: rotate(-14deg) scale(1.1); }

.tab { position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--spring), box-shadow .25s, background .2s, color .2s, border-color .2s; }
.tab:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 30, 90, .14); }
.tab:active { transform: scale(.95); }
.tab.is-active { background: var(--grad); border-color: transparent; box-shadow: 0 10px 26px rgba(42, 18, 217, .35); }

/* Tarjetas que se levantan y se inclinan con el cursor */
.step, .feature, .social, .logo-card, .compare-col {
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease, opacity .8s ease;
  will-change: transform;
}
.step:hover, .feature:hover, .logo-card:hover, .compare-col:hover {
  box-shadow: 0 30px 60px rgba(20, 30, 90, .16); border-color: rgba(10, 91, 255, .35);
}
.step-num { border-radius: 50%; transition: transform .45s var(--spring); }
.step:hover .step-num { transform: scale(1.15) rotate(-8deg); }
.feature-icon { transition: transform .45s var(--spring); transform-origin: left center; }
.feature:hover .feature-icon { transform: scale(1.25) rotate(-6deg); }
.logo-card { border-radius: var(--radius); }
.card-form { border-radius: 32px; }
.card-form input[type="text"], .card-form input[type="tel"], .card-form textarea, .card-form select { border-radius: 16px; }

/* Teléfono */
.phone {
  position: relative; width: min(330px, 100%); padding: 11px; border-radius: 54px;
  background: linear-gradient(145deg, #4a4e73 0%, #0b0c1f 38%, #1a1c3a 70%, #3c4066 100%);
  border: 1px solid rgba(255, 255, 255, .28);
  box-shadow: inset 0 0 0 2px #05061a, inset 0 0 8px rgba(255, 255, 255, .22),
    0 50px 100px rgba(4, 6, 40, .7), 0 0 90px rgba(42, 18, 217, .35);
}
.phone-lg { width: min(370px, 100%); }
.phone-on-light { box-shadow: inset 0 0 0 2px #05061a, inset 0 0 8px rgba(255, 255, 255, .22), 0 50px 90px rgba(20, 30, 90, .32); }
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 3px; background: linear-gradient(#55597f, #1c1e3d);
}
.phone::before { left: -4px; top: 120px; height: 34px; box-shadow: 0 52px 0 #3a3d60, 0 104px 0 #3a3d60; }
.phone::after { right: -4px; top: 170px; height: 84px; }
.screen { border-radius: 44px; overflow: hidden; display: flex; flex-direction: column; background: #080a22; position: relative; }
.phone-status {
  display: flex; justify-content: space-between; align-items: center; position: relative;
  padding: 13px 26px 7px; background: #101336; color: #fff; font-size: .8rem; font-weight: 650; letter-spacing: .01em;
}
.island { position: absolute; left: 50%; top: 9px; margin-left: -46px; width: 92px; height: 26px; border-radius: 20px; background: #000; }
.island::after { content: ""; position: absolute; right: 12px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2b3a7a, #05061a 70%); }
.status-icons { display: flex; align-items: center; gap: 6px; }
.sig {
  width: 16px; height: 11px;
  background:
    linear-gradient(to top, #fff 40%, transparent 0) 0 0 / 3px 100% no-repeat,
    linear-gradient(to top, #fff 60%, transparent 0) 4.3px 0 / 3px 100% no-repeat,
    linear-gradient(to top, #fff 80%, transparent 0) 8.6px 0 / 3px 100% no-repeat,
    linear-gradient(#fff, #fff) 13px 0 / 3px 100% no-repeat;
}
.bat { width: 23px; height: 11px; border: 1.5px solid rgba(255, 255, 255, .9); border-radius: 4px; position: relative; }
.bat::before { content: ""; position: absolute; left: 1.5px; top: 1.5px; bottom: 1.5px; width: 13px; border-radius: 1.5px; background: #fff; }
.bat::after { content: ""; position: absolute; right: -4px; top: 3px; width: 2px; height: 4px; border-radius: 0 2px 2px 0; background: rgba(255, 255, 255, .9); }
.phone .phone-top, .phone .chat, .phone .chat-input { border-radius: 0; }
.phone .chat { scrollbar-width: none; -ms-overflow-style: none; scroll-behavior: smooth; }
.phone .chat::-webkit-scrollbar { display: none; }
.home-bar { height: 24px; display: grid; place-items: center; background: #080a22; }
.home-bar::after { content: ""; width: 116px; height: 5px; border-radius: 5px; background: rgba(255, 255, 255, .55); }
.msg { border-radius: 20px; }

/* Hoy / con Aura AI */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 36px; }
.compare-col { padding: 34px 30px; border-radius: 32px; background: #fff; border: 1px solid var(--line); }
.compare-col h3 { font-size: 1.5rem; margin-bottom: 20px; }
.compare-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.compare-col li { position: relative; padding-left: 36px; font-size: 1.05rem; }
.compare-col li::before {
  position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.before, .before h3 { color: var(--ink-soft); }
.before li::before { content: "✕"; background: #e9ebf5; color: #7a809f; }
.after { background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 24px 60px rgba(42, 18, 217, .14); }
.after li::before { content: "✓"; background: var(--grad); color: #fff; }

.stat { margin: 26px 0 0; padding: 34px 30px; border-radius: 32px; background: var(--night); color: #fff; display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: center; overflow: hidden; position: relative; }
.stat::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: var(--violet); filter: blur(100px); opacity: .5; }
.stat-num { font-size: clamp(3rem, 8vw, 5.6rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; position: relative; }
.stat figcaption { position: relative; }
.stat figcaption p { font-size: clamp(1.1rem, 2vw, 1.45rem); line-height: 1.35; }
.stat cite { display: block; margin-top: 10px; font-size: .85rem; font-style: normal; color: rgba(255, 255, 255, .6); }

.calc { margin-top: 26px; padding: 34px 30px; border-radius: 32px; background: #fff; border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 60px); align-items: center; }
.calc-copy p { color: var(--ink-soft); }
.calc-line { margin-top: 12px; font-size: 1.05rem; }
.calc-line strong { color: var(--ink); font-size: 1.3rem; }
.calc input[type="range"] { width: 100%; margin-top: 22px; height: 10px; border-radius: 10px; appearance: none; -webkit-appearance: none; background: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet)); cursor: pointer; }
.calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); box-shadow: 0 6px 16px rgba(10, 91, 255, .4); transition: transform .2s var(--spring); }
.calc input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
.calc input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.calc-result { text-align: center; padding: 26px 20px; border-radius: 26px; background: var(--paper-alt); }
.calc-hours { font-size: clamp(2.6rem, 6vw, 4rem); font-weight: 750; letter-spacing: -.03em; line-height: 1; background: linear-gradient(100deg, var(--blue), var(--violet), var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.calc-sub { color: var(--ink-soft); margin-top: 8px; }
.calc-days { margin: 14px 0 20px; }

/* Preguntas frecuentes */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 12px; margin-top: 30px; }
.faq details { border: 1px solid var(--line); border-radius: 24px; background: var(--paper-alt); transition: box-shadow .3s, border-color .3s, transform .3s var(--spring); }
.faq details:hover { transform: translateY(-2px); border-color: rgba(10, 91, 255, .35); box-shadow: 0 16px 36px rgba(20, 30, 90, .1); }
.faq details[open] { background: #fff; box-shadow: 0 20px 44px rgba(20, 30, 90, .12); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-weight: 650; font-size: 1.1rem; position: relative; border-radius: 24px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; width: 32px; height: 32px; margin-top: -16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.3rem; font-weight: 500; transition: transform .35s var(--spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); animation: pop .35s ease both; }

/* Botón flotante de WhatsApp */
.wa {
  position: fixed; right: clamp(14px, 2.5vw, 28px); bottom: clamp(14px, 2.5vw, 28px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px 13px 16px; border-radius: 999px;
  background: #1fa855; color: #fff; font-weight: 650; text-decoration: none;
  box-shadow: 0 14px 34px rgba(18, 120, 60, .45);
  transition: transform .28s var(--spring), box-shadow .28s ease;
}
.wa:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 22px 46px rgba(18, 120, 60, .55); }
.wa:active { transform: scale(.95); }
.wa::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #1fa855;
  animation: wa-pulse 2.6s ease-out infinite; pointer-events: none;
}
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.35, 1.7); opacity: 0; } }

@media (max-width: 900px) {
  .wa span { display: none; }
  .wa { padding: 15px; }
  .compare, .calc, .stat { grid-template-columns: 1fr; }
  .phone::before, .phone::after { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after, .tab, .step, .feature, .social, .logo-card, .compare-col, .faq details { transition: none; }
  .ripple { display: none; }
}
