:root {
    --primary: #081ff7;
    --primary-light: #4859ff;
    --primary-dark: #0012b3;
    --text-main: #1a1a2e;
    --text-muted: #475569;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --border-radius: 20px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- Layout --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 100px 0;
    position: relative;
}

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

/* --- Liquid Background --- */
.liquid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    filter: blur(70px);
    opacity: 0.68;
}

/* Scoped to liquid-bg — evita conflicto con .glass-blobs .blob de la authority section */
.liquid-bg .blob {
    position: absolute;
    border-radius: 50%;
    will-change: transform;
}

.liquid-bg .blob-1 {
    width: 560px;
    height: 560px;
    top: -80px;
    right: -80px;
    background: radial-gradient(circle, #4859ff 0%, #2233e8 60%, transparent 100%);
    animation: lb-float-1 28s ease-in-out infinite alternate;
}

.liquid-bg .blob-2 {
    width: 440px;
    height: 440px;
    bottom: -60px;
    left: -60px;
    background: radial-gradient(circle, #081ff7 0%, #0c2ae8 50%, transparent 100%);
    animation: lb-float-2 34s ease-in-out infinite alternate-reverse;
    animation-delay: -8s;
}

.liquid-bg .blob-3 {
    width: 360px;
    height: 360px;
    top: 35%;
    right: 28%;
    background: radial-gradient(circle, #a5b4fc 0%, #818cf8 50%, transparent 100%);
    animation: lb-float-3 22s ease-in-out infinite alternate;
    animation-delay: -14s;
}

.liquid-bg .blob-4 {
    width: 300px;
    height: 300px;
    top: 60%;
    left: 35%;
    background: radial-gradient(circle, #2dd4bf 0%, #0ea5e9 60%, transparent 100%);
    animation: lb-float-1 30s ease-in-out infinite alternate-reverse;
    animation-delay: -5s;
    opacity: 0.6;
}

@keyframes lb-float-1 {
    0%   { transform: translate(0, 0) scale(1); }
    40%  { transform: translate(70px, -60px) scale(1.08); }
    100% { transform: translate(-30px, 40px) scale(0.94); }
}

@keyframes lb-float-2 {
    0%   { transform: translate(0, 0) scale(1); }
    50%  { transform: translate(-80px, -50px) scale(1.1); }
    100% { transform: translate(40px, 30px) scale(0.92); }
}

@keyframes lb-float-3 {
    0%   { transform: translate(0, 0) scale(1); }
    35%  { transform: translate(50px, 70px) scale(1.06); }
    70%  { transform: translate(-40px, -30px) scale(0.96); }
    100% { transform: translate(20px, 50px) scale(1.02); }
}

/* Retro-compat: si algún .blob no está dentro de .liquid-bg ni .glass-blobs */
.blob {
    position: absolute;
    border-radius: 50%;
}

/* --- Glassmorphism --- */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

.glass-dark {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

/* --- Navbar v38 (liquid glass, sin separadores, gotita animada) --- */
nav {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 94%;
    max-width: 1160px;
    z-index: 1000;
    border-radius: 100px;
    padding: 0;
    min-height: 68px;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.38);
    backdrop-filter: blur(52px) saturate(200%) brightness(1.04);
    -webkit-backdrop-filter: blur(52px) saturate(200%) brightness(1.04);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.22) inset,
        0 1px 0 rgba(255, 255, 255, 0.6) inset,
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.24, 0, 0.38, 1);
    overflow: hidden;
}

nav::before {
    content: none;
}

nav.scrolled {
    top: 8px;
    min-height: 60px;
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(60px) saturate(220%) brightness(1.05);
    -webkit-backdrop-filter: blur(60px) saturate(220%) brightness(1.05);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.3) inset,
        0 1px 0 rgba(255, 255, 255, 0.75) inset,
        0 12px 40px rgba(0, 0, 0, 0.10),
        0 2px 8px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.80);
}

/* Dynamic State for Dark Sections */
nav.nav-on-dark {
    background: rgba(6, 8, 22, 0.62);
    backdrop-filter: blur(52px) saturate(180%);
    -webkit-backdrop-filter: blur(52px) saturate(180%);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 0 0 0.5px rgba(255, 255, 255, 0.06) inset,
        0 1px 0 rgba(255, 255, 255, 0.10) inset,
        0 8px 40px rgba(0, 0, 0, 0.35);
}

nav.nav-on-dark .nav-links a {
    color: rgba(255, 255, 255, 0.9);
}

nav.nav-on-dark .nav-links a:hover {
    color: #2dd4bf;
}

nav.nav-on-dark .logo-large img {
    filter: brightness(0) invert(1);
}

nav.nav-on-dark .logo-large:hover img {
    filter: brightness(0) invert(1) scale(1.05);
}

nav.nav-on-dark .nav-cta .btn-primary {
    background: #fff;
    color: #081ff7;
}

nav.nav-on-dark .mobile-menu-btn span {
    background: white;
}

/* Mobile fix */

.container-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.logo img {
    height: 35px;
    width: auto;
}

/* Logo brand zone */
.logo-large {
    display: flex;
    align-items: center;
    padding: 0 1.75rem 0 2rem;
    min-height: 68px;
    flex-shrink: 0;
}

.logo-large img {
    height: 32px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.logo-large:hover img {
    transform: scale(1.04);
    filter: drop-shadow(0 0 8px rgba(45, 212, 191, 0.4));
}

/* no border-right en dark — eliminado en v38 */

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.75rem;
    padding: 0 2rem;
    flex: 1;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    position: relative;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--primary);
    background: rgba(8, 31, 247, 0.06);
    border-radius: 100px;
    padding: 0.28rem 0.65rem;
    margin: -0.28rem -0.65rem;
}

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

.nav-links a.nav-active {
    color: var(--primary);
    font-weight: 700;
}

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

nav.nav-on-dark .nav-links a::after {
    background: rgba(255, 255, 255, 0.7);
}

/* Nav separator line — visual zone between links and CTA */
.nav-separator {
    width: 1px;
    height: 22px;
    background: rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
    margin-right: 0.75rem;
    border-radius: 1px;
}

nav.nav-on-dark .nav-separator {
    background: rgba(255, 255, 255, 0.1);
}

/* Nav CTA — pill to match nav container, gradient for brand identity */
.nav-cta {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    padding-right: 0.6rem;
}

.nav-cta .btn-primary {
    border-radius: 100px;
    padding: 0.58rem 1.35rem;
    font-size: 0.87rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, #1a2ffa 0%, #081ff7 55%, #0012c8 100%);
    box-shadow: 0 3px 12px rgba(8, 31, 247, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    border: none;
    transition: box-shadow 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.nav-cta .btn-primary:hover {
    background: linear-gradient(135deg, #2a3fff 0%, #1828f5 55%, #0616c8 100%);
    box-shadow: 0 6px 20px rgba(8, 31, 247, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

nav.nav-on-dark .nav-cta .btn-primary {
    background: #fff;
    color: #081ff7;
    box-shadow: 0 3px 12px rgba(255, 255, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

nav.nav-on-dark .nav-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -5px rgba(8, 31, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px -5px rgba(8, 31, 247, 0.4);
    background: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.btn-outline:hover {
    background: rgba(8, 31, 247, 0.05);
    transform: translateY(-3px);
}

.btn.lg {
    padding: 1.1rem 2.5rem;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
#hero {
    padding-top: 180px;
    padding-bottom: 80px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-block;
    background: rgba(8, 31, 247, 0.1);
    color: #0616b3; /* Darker blue for AAA contrast on light blue bg */
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 1.5rem;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

h1 span {
    color: var(--primary);
    position: relative;
    z-index: 1;
}

h1 span::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 15px;
    background: rgba(8, 31, 247, 0.1);
    z-index: -1;
    border-radius: 5px;
}

#hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* --- Product Window (Hero) v45 --- */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-window {
    width: 100%;
    max-width: 430px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow:
        0 2px 4px rgba(0,0,0,0.04),
        0 12px 40px rgba(0,0,0,0.12),
        0 32px 80px rgba(0,0,0,0.10);
    overflow: hidden;
}

.pw-topbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 11px 14px;
    background: rgba(0, 0, 0, 0.025);
    border-bottom: 1px solid rgba(0, 0, 0, 0.055);
}

.pw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.pw-r { background: #ff5f56; }
.pw-y { background: #ffbd2e; }
.pw-g { background: #27c93f; }

.pw-app-name {
    font-size: 0.65rem;
    color: #64748b;
    margin-left: auto;
    font-family: monospace;
}

.pw-body {
    padding: 1.75rem;
    min-height: 300px;
    position: relative;
    background: #ffffff;
}

/* --- Panels --- */
.pw-panel {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

/* Panel A: in-flow, drives window height */
.pw-panel-a {
    animation: pw-anim-a 14s ease-in-out infinite;
}

/* Panel B: absolute over Panel A, doesn't affect height */
.pw-panel-b {
    position: absolute;
    inset: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    opacity: 0;
    animation: pw-anim-b 14s ease-in-out infinite;
}

/* Panel C: team status — absolute over Panel A */
.pw-panel-c {
    position: absolute;
    inset: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    opacity: 0;
    animation: pw-anim-c 14s ease-in-out infinite;
}

@keyframes pw-anim-a {
    0%, 26%   { opacity: 1; }
    35%, 100% { opacity: 0; }
}

@keyframes pw-anim-b {
    0%, 33%   { opacity: 0; transform: translateY(6px); }
    42%, 60%  { opacity: 1; transform: none; }
    69%, 100% { opacity: 0; transform: translateY(-4px); }
}

@keyframes pw-anim-c {
    0%, 66%   { opacity: 0; transform: translateY(6px); }
    75%, 94%  { opacity: 1; transform: none; }
    99%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* --- Panel C: team list --- */
.pw-team-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pw-team-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #1e293b;
}

.pw-team-badge {
    font-size: 0.65rem;
    font-weight: 700;
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.1);
    padding: 0.18rem 0.55rem;
    border-radius: 100px;
}

.pw-team-list {
    display: flex;
    flex-direction: column;
    gap: 0.52rem;
}

.pw-team-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.pw-sdot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pw-sdot-on  { background: #2dd4bf; }
.pw-sdot-off { background: #e2e8f0; }

.pw-tname {
    font-size: 0.8rem;
    color: #1e293b;
    flex: 1;
}

.pw-row-off .pw-tname { color: #94a3b8; }

.pw-ttime {
    font-size: 0.72rem;
    font-weight: 600;
    color: #64748b;
    font-family: monospace;
    letter-spacing: 0.02em;
}

.pw-row-off .pw-ttime { color: #cbd5e1; }

.pw-team-foot {
    font-size: 0.65rem;
    color: #64748b;
    text-align: center;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.04);
    margin-top: auto;
}

/* --- Panel A content --- */
.pw-emp-row {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 0.9rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pw-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

.pw-emp-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.12rem;
}

.pw-emp-name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #1e293b;
}

.pw-emp-dept {
    font-size: 0.68rem;
    color: #64748b;
}

.pw-now {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    font-family: monospace;
    letter-spacing: 0.02em;
}

.pw-btn-fichar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.8rem 1.4rem;
    background: linear-gradient(135deg, #081ff7 0%, #0616b3 100%);
    color: white;
    border: none;
    border-radius: 100px;
    font-size: 0.88rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    cursor: default;
    box-shadow: 0 6px 20px rgba(8, 31, 247, 0.25);
    width: 100%;
}

.pw-hint {
    font-size: 0.68rem;
    color: #94a3b8;
    text-align: center;
}

/* --- Panel B content --- */
.pw-ok-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    background: #2dd4bf;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px rgba(45, 212, 191, 0.12);
}

.pw-ok-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e293b;
}

.pw-ok-time {
    font-size: 0.73rem;
    color: #94a3b8;
}

.pw-ok-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.3rem;
    padding: 0.5rem 1rem;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    width: 100%;
}

.pw-ok-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.08rem;
}

.pw-ok-stat strong {
    font-size: 1.05rem;
    font-weight: 900;
    color: #1e293b;
    line-height: 1;
}

.pw-ok-stat span {
    font-size: 0.62rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pw-ok-sep {
    width: 1px;
    height: 22px;
    background: rgba(0, 0, 0, 0.07);
    flex-shrink: 0;
}

/* --- Cursor dot --- */
.pw-cursor {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 3px rgba(8, 31, 247, 0.18);
    pointer-events: none;
    z-index: 20;
    /* Positioned at approximate center of the button */
    top: 122px;
    left: calc(50% - 5px);
    animation: pw-cursor-move 14s ease-in-out infinite;
}

.pw-cursor::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(8, 31, 247, 0.15);
    animation: pw-cursor-click 14s ease-in-out infinite;
}

@keyframes pw-cursor-move {
    0%,  3%  { opacity: 0; transform: translate(75px, 52px); }
    11%      { opacity: 1; transform: translate(75px, 52px); }
    23%      { opacity: 1; transform: translate(0, 0); }
    25%      { opacity: 1; transform: translate(0, 0) scale(0.6); }
    30%      { opacity: 0; transform: translate(0, 0); }
    31%, 99% { opacity: 0; transform: translate(75px, 52px); }
    100%     { opacity: 0; transform: translate(75px, 52px); }
}

@keyframes pw-cursor-click {
    0%, 21%, 31%, 100% { transform: scale(0); opacity: 0; }
    25%, 27%           { transform: scale(3.5); opacity: 1; }
}

/* --- Features Section (Large Cards) --- */
.features-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card-lg {
    position: relative;
    border-radius: 40px;
    padding: 4rem 3rem;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    min-height: 450px;
}

.card-bg-liquid {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(8, 31, 247, 0.05) 0%, transparent 60%);
    z-index: 1;
    transition: var(--transition);
}

.blue-shift {
    background: radial-gradient(circle, rgba(72, 89, 255, 0.08) 0%, transparent 60%);
}

.purple-shift {
    background: radial-gradient(circle, rgba(168, 85, 247, 0.08) 0%, transparent 60%);
}

.gold-shift {
    background: radial-gradient(circle, rgba(234, 179, 8, 0.08) 0%, transparent 60%);
}

.mix-shift {
    background: linear-gradient(135deg, rgba(8, 31, 247, 0.05), rgba(168, 85, 247, 0.05));
}

.full-width-card {
    grid-column: 1 / -1;
    min-height: 350px !important;
}

.text-center-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-card-lg:hover {
    transform: translateY(-20px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.1);
}

.feature-card-lg:hover .card-bg-liquid {
    transform: translate(-10%, 10%) scale(1.1);
    background: radial-gradient(circle, rgba(8, 31, 247, 0.1) 0%, transparent 60%);
}

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

.visual-anim-lg {
    width: 80px;
    height: 80px;
    margin-bottom: 2.5rem;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.feature-card-lg h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--primary);
}

.feature-card-lg .summary {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.feature-card-lg .details {
    max-height: 0;
    opacity: 0;
    transition: var(--transition);
    overflow: hidden;
}

.feature-card-lg:hover .details {
    max-height: 400px;
    opacity: 1;
    margin-top: 1.5rem;
}

.mt-2 {
    margin-top: 2rem;
}

/* Novelty Animations for new cards */
.wallet-anim .bill {
    width: 35px;
    height: 20px;
    border: 3px solid #8b5cf6;
    border-radius: 4px;
    position: relative;
}

.wallet-anim .coin {
    width: 12px;
    height: 12px;
    border: 3px solid #f59e0b;
    border-radius: 50%;
    position: absolute;
    top: 10px;
    right: -5px;
    animation: bounce-coin 2s infinite;
}

@keyframes bounce-coin {
    50% {
        transform: translateY(-5px);
    }
}

.doc-anim .paper {
    width: 30px;
    height: 40px;
    border: 3px solid #f59e0b;
    border-radius: 4px;
    position: relative;
}

.doc-anim .pen {
    width: 3px;
    height: 15px;
    background: #6b7280;
    position: absolute;
    bottom: 5px;
    right: 0;
    transform: rotate(-45deg);
    animation: write 3s infinite;
}

@keyframes write {

    0%,
    100% {
        transform: rotate(-45deg) translate(0, 0);
    }

    50% {
        transform: rotate(-45deg) translate(2px, 2px);
    }
}

.target-anim .target {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.target-anim .target::after {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

.target-anim .arrow {
    width: 25px;
    height: 3px;
    background: #d00;
    position: absolute;
    top: 10px;
    right: 0;
    transform: rotate(45deg);
    animation: hit 2s infinite;
}

@keyframes hit {
    0% {
        opacity: 0;
        transform: translate(20px, -20px);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0);
    }
}

.feature-card-lg .details ul {
    list-style: none;
    padding-left: 0;
}

.feature-card-lg .details li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-card-lg .details li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* --- Compliance Banner & Footer Enhancements --- */
#compliance-banner {
    padding: 3rem 0;
    margin-bottom: -50px;
    position: relative;
    z-index: 10;
    border-radius: 0;
    border-left: none;
    border-right: none;
}

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

.wrap {
    flex-wrap: wrap;
}

.compliance-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.compliance-text h3 span {
    color: var(--primary);
}

.compliance-logos {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.badge-legal {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.7;
}

.eu-flag-svg {
    width: 40px;
    height: auto;
    border-radius: 4px;
}

.legal-disclaimer {
    margin-top: 2rem;
    font-size: 0.9rem;
    opacity: 0.6;
}

/* --- EU Impact Section (Floating High-Impact UI) --- */
.eu-impact-section-white {
    background: #fff;
    padding: 160px 0;
    position: relative;
    overflow: hidden;
}

.impact-grid-symmetric {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

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

.risk-badge-float {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #d00;
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.pulse-red {
    width: 10px;
    height: 10px;
    background: #d00;
    border-radius: 50%;
    position: relative;
    margin-right: 4px;
    /* Ensure no overlap with text */
    flex-shrink: 0;
}

.pulse-red::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-red-rings 2s infinite cubic-bezier(0.24, 0, 0.38, 1);
    z-index: -1;
    will-change: transform, opacity;
}

@keyframes pulse-red-rings {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    100% {
        transform: scale(3.5);
        opacity: 0;
    }
}

.impact-headline-float {
    font-size: 5rem;
    line-height: 1;
    font-weight: 900;
    margin-bottom: 4rem;
    color: #111;
    letter-spacing: -0.025em;
}

.highlight-ley {
    color: #d00;
    position: relative;
    display: inline-block;
}

.highlight-ley::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: rgba(221, 0, 0, 0.1);
    z-index: -1;
}

.floating-risk-meter {
    margin-top: 5rem;
    max-width: 500px;
}

.risk-flex-float {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.risk-label-float {
    font-size: 1.2rem;
    font-weight: 700;
    opacity: 0.6;
}

.risk-val-huge {
    font-size: 7rem;
    font-weight: 950;
    color: #d00;
    line-height: 0.8;
    letter-spacing: -0.04em;
}

.floating-progress-bar {
    height: 35px;
    background: #f5f5f5;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
}

.bar-fill-vivid {
    height: 100%;
    width: 94%;
    background: linear-gradient(90deg, #ffcc00, #d00, #ff0000);
    border-radius: 100px;
    animation: risk-fill-vivid 3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes risk-fill-vivid {
    from {
        width: 0;
    }
}

.bar-shimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    animation: bar-glow 2s infinite linear;
}

@keyframes bar-glow {
    from {
        transform: translateX(-100%);
    }

    to {
        transform: translateX(100%);
    }
}

.impact-consequences {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.fine-card {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem;
    border-radius: 40px;
    background: #ffffff;
    border: 1px solid #eee;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.fine-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
    border-color: #d00;
}

.fine-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 1.8rem;
    font-weight: 800;
    flex-shrink: 0;
}

.fine-card.warning .fine-icon {
    background: rgba(255, 204, 0, 0.1);
    color: #003399;
}

.fine-card.danger .fine-icon {
    background: rgba(221, 0, 0, 0.1);
    color: #d00;
}

.fine-card.shield .fine-icon {
    background: rgba(8, 31, 247, 0.05);
    color: #4859ff;
}

.fine-info h4 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.fine-info p {
    font-size: 1.1rem;
    opacity: 0.6;
    line-height: 1.5;
}

/* --- Solutions Vibrant Blue Grid (Senior Redesign) --- */
.solutions-vibrant {
    background: #020617;
    /* Deep Navy */
    padding: 160px 0;
    position: relative;
    overflow: hidden;
}

.vibrant-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.vibrant-bg-elements .blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: flow-vibrant 20s infinite ease-in-out;
}

.vibrant-bg-elements .blob-1 {
    width: 600px;
    height: 600px;
    background: #081ff7;
    top: -100px;
    left: -100px;
}

.vibrant-bg-elements .blob-2 {
    width: 500px;
    height: 500px;
    background: #4859ff;
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.vibrant-bg-elements .blob-3 {
    width: 400px;
    height: 400px;
    background: #2dd4bf;
    top: 40%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes flow-vibrant {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(60px, -80px) scale(1.1);
    }

    66% {
        transform: translate(-40px, 40px) scale(0.9);
    }
}

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

.showcase-header-vibrant {
    text-align: center;
    margin-bottom: 6rem;
}

.badge-vibrant {
    background: rgba(45, 212, 191, 0.12);
    color: #0f766e; /* Darker teal for WCAG compliance on light backgrounds */
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* Badge-vibrant on dark section backgrounds — override for legibility */
.solutions-vibrant .badge-vibrant,
.sector-dark .badge-vibrant,
.personalizacion-section .badge-vibrant,
.authority-section .badge-vibrant {
    color: #2dd4bf;
    background: rgba(45, 212, 191, 0.15);
    border: 1px solid rgba(45, 212, 191, 0.22);
}

.text-white-shadow {
    font-size: 4rem;
    color: white;
    margin-top: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-white-dim {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85); /* Increased opacity for readability */
    max-width: 600px;
    margin: 1rem auto;
}

.grid-solutions-6 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.card-vibrant {
    padding: 3.5rem;
    border-radius: 40px;
    transition: all 0.5s cubic-bezier(0.24, 0, 0.38, 1);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-ultra {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.card-vibrant:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: #4859ff;
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(8, 31, 247, 0.2);
}

.card-icon-v {
    width: 60px;
    height: 60px;
    color: #4859ff;
    margin-bottom: 2rem;
    transition: transform 0.5s ease;
}

.card-vibrant:hover .card-icon-v {
    transform: rotateY(180deg);
    color: #2dd4bf;
}

.card-vibrant h3 {
    font-size: 1.6rem;
    color: white;
    margin-bottom: 1rem;
    font-weight: 800;
}

.card-vibrant p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

@media (max-width: 968px) {
    .grid-solutions-6 {
        grid-template-columns: 1fr;
    }

    .text-white-shadow {
        font-size: 3rem;
    }
}

/* --- Contact Section (Ultra Deep Glass) --- */
.contact-section {
    padding: 160px 0;
    background: #ffffff;
    position: relative;
    border-top: 1px solid #eee;
}

.contact-grid.glass-ultra-deep {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.05);
    border-radius: 60px;
    padding: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 4rem;
}

.contact-header h2 {
    font-size: 3.5rem;
    margin-top: 1.5rem;
    font-weight: 900;
}

.contact-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin: 1rem auto;
}

.premium-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: 0.5px;
    margin-left: 5px;
}

.premium-form input,
.premium-form textarea {
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    background: #f1f5f9;
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.premium-form input:focus,
.premium-form textarea:focus {
    background: #fff;
    border-color: #4859ff;
    box-shadow: 0 10px 30px rgba(72, 89, 255, 0.1);
    outline: none;
}

.premium-form textarea {
    min-height: 150px;
    resize: none;
}

@media (max-width: 768px) {
    .contact-grid.glass-ultra-deep {
        padding: 3rem;
        border-radius: 30px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-group.full-width {
        grid-column: span 1;
    }

    .contact-header h2 {
        font-size: 2.5rem;
    }
}

.icon-premium.center {
    margin: 0 auto 2rem;
}

.module-badges-dark {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.module-badges-dark span {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
}

@media (max-width: 968px) {
    .showcase-modules-dark {
        grid-template-columns: 1fr;
    }

    .module-dark {
        grid-column: 1 / -1 !important;
    }
}

/* --- Benefits --- */
.bg-alt {
    background-color: var(--bg-light);
}

.info-split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 5rem;
    align-items: center;
}

.info-image {
    position: relative;
}

.liquid-shape {
    width: 450px;
    height: 450px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.impact-stat {
    text-align: center;
    color: white;
}

.impact-stat .number {
    font-size: 5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.impact-stat .label {
    font-size: 1.2rem;
    opacity: 0.9;
}

.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
    font-weight: 600;
}

.check-list li::before {
    content: 'OK';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
}

/* --- CTA Section --- */
.cta-box {
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(8, 31, 247, 0.05));
}

.cta-box h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.cta-box p {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    opacity: 0.8;
}

#waitlist-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 18px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#waitlist-form input {
    flex: 1;
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
}

/* --- Authority & Compliance Hub (Final Polish) --- */
.authority-section {
    padding: 100px 0;
    background: linear-gradient(180deg, #020617 0%, #06031a 50%, #0a0424 100%);
    position: relative;
    color: white;
    border-top: 1px solid rgba(72, 89, 255, 0.12);
    overflow: hidden;
    /* Contain the blobs */
}

/* --- Glass Blobs Background --- */
.glass-blobs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
}

.glass-blobs .blob {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.20;
}

.glass-blobs .blob-1 {
    background: #4859ff;
    top: -100px;
    left: -100px;
    animation: float-slow-1 25s ease-in-out infinite alternate;
}

.glass-blobs .blob-2 {
    background: #a855f7;
    bottom: -150px;
    right: -50px;
    animation: float-slow-2 30s ease-in-out infinite alternate-reverse;
}

.glass-blobs .blob-3 {
    background: #06b6d4;
    top: 40%;
    left: 60%;
    animation: float-slow-3 28s ease-in-out infinite alternate;
}

@keyframes float-slow-1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(120px, 80px) scale(1.1);
    }
}

@keyframes float-slow-2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-100px, -60px) scale(1.2);
    }
}

@keyframes float-slow-3 {
    0% {
        transform: translate(0, 0) scale(1.1);
    }

    100% {
        transform: translate(60px, -100px) scale(0.9);
    }
}

.authority-header {
    margin-bottom: 5rem;
    text-align: center;
}

.authority-header h3 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.authority-header p {
    font-size: 1.1rem;
    opacity: 0.75;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.badge-grid-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    max-width: 1200px;
    margin: 4rem auto 0;
}

.badge-legal-premium {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(72, 89, 255, 0.22);
    padding: 3.5rem 2.5rem;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    min-width: 240px;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.badge-legal-premium:hover {
    background: rgba(72, 89, 255, 0.07);
    transform: translateY(-8px);
    border-color: rgba(45, 212, 191, 0.45);
    box-shadow: 0 20px 60px rgba(72, 89, 255, 0.18), 0 0 0 1px rgba(45, 212, 191, 0.15);
}

.badge-icon-lg {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.badge-legal-premium span {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 2px;
    opacity: 0.72;
}

/* --- Premium Footer (Flex Resilience) --- */
footer {
    background: #000;
    color: white;
    padding: 100px 0 60px;
}

.footer-main-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 5rem;
}

.footer-brand {
    flex: 1.5;
    min-width: 250px;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 2rem;
    filter: brightness(0) invert(1);
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.footer-description {
    opacity: 0.65;
    line-height: 1.7;
    font-size: 0.95rem;
}

.footer-col h4 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #fff;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 1.2rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.footer-col ul li a:hover {
    color: #4859ff;
    padding-left: 5px;
    opacity: 1;
}


.footer-legal-hub {
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.6;
}

.legal-text-sm {
    max-width: 700px;
}

.legal-text-sm strong {
    color: #fff;
}

@media (max-width: 768px) {
    .footer-main-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-legal-hub {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 968px) {
    .badge-grid-legal {
        gap: 1rem;
    }

    .badge-legal-premium {
        width: calc(50% - 1rem);
        padding: 1.5rem;
    }
}

/* --- Mobile --- */
.mobile-menu-btn {
    display: none;
    width: 30px;
    height: 30px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2.5px;
    background: #1a1a2e;
    border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 968px) {
    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(2, 6, 23, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1);
        z-index: 10000;
        pointer-events: none;
    }

    .nav-separator {
        display: none;
    }

    /* Reset logo zone padding for compact mobile nav */
    .logo-large {
        min-height: 56px;
        border-right: none;
        padding: 0 1.5rem;
    }

    /* Reset nav-links desktop padding for fullscreen overlay */
    .nav-links {
        padding: 0;
    }

    body.mobile-menu-active .nav-cta {
        opacity: 0;
        pointer-events: none;
    }


    body.mobile-menu-active {
        overflow: hidden;
    }

    body.mobile-menu-active .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .nav-links li {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
        transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    }

    body.mobile-menu-active .nav-links li {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    body.mobile-menu-active .nav-links li:nth-child(1) { transition-delay: 0.1s; }
    body.mobile-menu-active .nav-links li:nth-child(2) { transition-delay: 0.2s; }
    body.mobile-menu-active .nav-links li:nth-child(3) { transition-delay: 0.3s; }
    body.mobile-menu-active .nav-links li:nth-child(4) { transition-delay: 0.4s; }

    .nav-links li a {
        font-size: 2.2rem;
        font-weight: 800;
        color: rgba(255, 255, 255, 0.9);
        transition: color 0.2s ease, transform 0.2s ease;
        letter-spacing: -0.5px;
    }

    .nav-links li a:hover {
        color: #2dd4bf;
    }

    .nav-links li a:active {
        transform: scale(0.95);
        opacity: 0.7;
    }

    .mobile-menu-btn {
        display: flex;
    }

    body.mobile-menu-active .mobile-menu-btn span:nth-child(1) {
        transform: translateY(8.5px) rotate(45deg);
    }
    body.mobile-menu-active .mobile-menu-btn span:nth-child(2) {
        opacity: 0;
        transform: translateX(-10px);
    }
    body.mobile-menu-active .mobile-menu-btn span:nth-child(3) {
        transform: translateY(-8.5px) rotate(-45deg);
    }

    .nav-on-dark:not(.scrolled) .mobile-menu-btn span {
        background: white;
    }

    body.mobile-menu-active .mobile-menu-btn span {
        background: rgba(255, 255, 255, 0.9) !important;
    }
}


/* --- Legal Page Aesthetics --- */
.legal-body {
    background: #f8fafc;
    color: #1e293b;
    padding-top: 120px;
    line-height: 1.8;
}

.legal-header-hero {
    background: linear-gradient(135deg, #020617 0%, #081ff7 100%);
    padding: 100px 0 60px;
    color: white;
    text-align: center;
}

.legal-header-hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #fff;
}

.legal-container {
    max-width: 800px;
    margin: 60px auto;
    padding: 0 2rem;
}

.legal-card {
    background: white;
    padding: 4rem;
    border-radius: 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.legal-card h2 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 2.5rem 0 1rem;
    color: #020617;
}

.legal-card p {
    margin-bottom: 1.5rem;
    color: #475569;
    font-size: 1.1rem;
}

.legal-card ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.legal-card ul li {
    margin-bottom: 1rem;
    color: #475569;
}

@media (max-width: 768px) {
    .legal-card {
        padding: 2rem;
    }

    .legal-header-hero h1 {
        font-size: 2rem;
    }
}

/* --- Form Enhancements (Captcha & Consent) --- */
.form-compliance {
    margin-top: 2rem;
    align-items: center;
}

.captcha-group {
    flex: 1;
}

.captcha-wrapper input {
    width: 100%;
    padding: 1.2rem;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: #020617;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
}

.captcha-wrapper input:focus {
    background: #fff;
    border-color: #4859ff;
    box-shadow: 0 10px 30px rgba(72, 89, 255, 0.1);
}

.consent-group {
    flex: 2;
}

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 35px;
    margin-bottom: 0;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: 0.8;
    user-select: none;
    line-height: 1.4;
}

.checkbox-container a {
    color: #4859ff;
    text-decoration: none;
}

.checkbox-container a:hover {
    text-decoration: underline;
}

.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 24px;
    width: 24px;
    background: #f1f5f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.checkbox-container:hover input~.checkmark {
    background: rgba(255, 255, 255, 0.1);
}

.checkbox-container input:checked~.checkmark {
    background: #4859ff;
    border-color: #4859ff;
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.checkbox-container input:checked~.checkmark:after {
    display: block;
}

.checkbox-container .checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* --- Success Popup (To Guapa Animation) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 4rem 3rem;
    border-radius: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    transform: scale(0.7) translateY(50px);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.circle-draw {
    stroke: #2dd4bf;
    stroke-width: 2;
    stroke-dasharray: 160;
    stroke-dashoffset: 160;
    animation: draw 0.8s ease-out forwards 0.4s;
}

.check-draw {
    stroke: #2dd4bf;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: draw 0.5s ease-out forwards 1.2s;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

.popup-content h2,
.popup-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.popup-content p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.form-submit {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
    width: 100%;
}

.btn-massive {
    padding: 1.5rem 5rem;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(72, 89, 255, 0.25);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-massive:hover {
    transform: translateY(-5px) scale(1.03);
    box-shadow: 0 20px 50px rgba(72, 89, 255, 0.4);
    background: #5a6aff;
}

/* --- Logo Marquee v49 --- */
.logo-marquee-section {
    padding: 52px 0;
    background: linear-gradient(180deg, #ffffff 0%, #f5f7ff 100%);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.marquee-eyebrow {
    text-align: center;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.5;
    margin-bottom: 2.2rem;
}

/* Dos grupos idénticos lado a lado, cada uno min-width:100%.
   Ambos se animan juntos: cuando grupo-1 sale por la izquierda,
   grupo-2 ocupa exactamente su lugar. El reset es invisible porque
   el contenido de ambos grupos es idéntico. */
.marquee-wrapper {
    display: flex;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 0 40px;
    width: max-content;
    animation: marquee-left 22s linear infinite;
}

.marquee-wrapper:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-track img {
    display: block;
    width: auto;
    flex-shrink: 0;
    opacity: 0.52;
    filter: grayscale(0.3);
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.marquee-track img:hover {
    opacity: 0.82;
    filter: grayscale(0);
}

@keyframes marquee-left {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

@media (max-width: 768px) {
    .logo-marquee-section { padding: 40px 0; }
}

/* --- iPhone LiquidGlass Notification --- */
.liquid-toast {
    position: fixed;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30000;
    width: 90%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 28px;
    padding: 1rem 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
    opacity: 0;
}

.liquid-toast.active {
    top: 30px;
    opacity: 1;
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast-icon.success {
    background: #2dd4bf;
    box-shadow: 0 0 20px rgba(45, 212, 191, 0.4);
}

.toast-icon.error {
    background: #f87171;
    box-shadow: 0 0 20px rgba(248, 113, 113, 0.4);
}

.toast-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
    stroke-width: 3;
}

.toast-text h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.toast-text p {
    margin: 0;
    font-size: 0.9rem;
    color: #4b5563;
}

@keyframes toast-shake {
    0%, 100% { transform: translateX(-50%); }
    25% { transform: translateX(-52%); }
    75% { transform: translateX(-48%); }
}

.liquid-toast.error-shake {
    animation: toast-shake 0.3s ease-in-out 2;
}

/* --- Final Mobile & SEO Optimizations --- */
@media screen and (max-width: 768px) {
    .client-carousel {
        display: none !important;
    }

    .hero-content h1 {
        font-size: 2.2rem !important;
        line-height: 1.1;
    }

    .container {
        padding: 0 1.25rem !important;
    }

    .hero-grid {
        grid-template-columns: 1fr !important;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-visual {
        display: none !important;
    }

    .features-grid {
        grid-template-columns: 1fr !important;
    }

    .contact-grid.glass-ultra-deep {
        padding: 2rem 1.5rem !important;
    }

    .footer-main-grid {
        flex-direction: column !important;
        text-align: center;
        gap: 3rem;
    }

    .footer-brand {
        align-items: center;
        display: flex;
        flex-direction: column;
    }
}

/* ============================================================
   REDESIGN v32 — Nuevas secciones
   ============================================================ */

/* --- Fine-info h3 fix (normalize heading size in fine cards) --- */
.fine-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

/* --- text-gradient (Compliance Hub) --- */
.text-gradient {
    background: linear-gradient(135deg, #4859ff, #2dd4bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Hero trust row --- */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
}

.trust-item svg {
    color: var(--primary);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-trust {
        justify-content: center;
    }
}

/* --- Carousel label --- */
.carousel-label {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.6;
}

/* --- Section header center (shared utility) --- */
.section-header-center {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header-center h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-top: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.section-header-center h2 span {
    color: var(--primary);
}

.section-header-center p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* ==============================
   Para Quién Section
   ============================== */
.para-quien-section {
    padding: 120px 0;
    background: #fff;
}

.pq-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pq-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 32px;
    padding: 3rem 2.5rem;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.pq-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(8, 31, 247, 0.1);
    border-color: rgba(8, 31, 247, 0.2);
}

.pq-card-accent {
    border-color: var(--primary);
    border-width: 2px;
    background: linear-gradient(180deg, rgba(8, 31, 247, 0.02) 0%, #fff 100%);
    position: relative;
}

.pq-card-accent::before {
    content: 'Más solicitado';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.pq-icon {
    width: 52px;
    height: 52px;
    background: rgba(8, 31, 247, 0.07);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.pq-icon svg {
    width: 26px;
    height: 26px;
}

.pq-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    margin: 0;
}

.pq-card > p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

.pq-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    flex: 1;
}

.pq-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 600;
    padding-left: 1.4rem;
    position: relative;
}

.pq-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 800;
}

.pq-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    margin-top: auto;
    transition: var(--transition);
}

.pq-link:hover {
    transform: translateX(4px);
}

.pq-free-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(34, 197, 94, 0.09);
    color: #15803d;
    border: 1px solid rgba(34, 197, 94, 0.22);
    border-radius: 20px;
    padding: 3px 10px 3px 8px;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    margin-bottom: 0.75rem;
}

.pq-free-tag::before {
    content: 'OK';
    font-size: 0.75rem;
}

@media (max-width: 968px) {
    .pq-grid {
        grid-template-columns: 1fr;
    }

    .pq-card-accent {
        order: -1;
    }
}

/* ==============================
   Sector Sections (Franquicias / Gestorías)
   ============================== */
.sector-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.sector-dark {
    background: #020617;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.sector-light {
    background: #f8fafc;
}

.sector-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: center;
}

.sector-grid-reverse {
    grid-template-columns: 0.9fr 1.1fr;
}

.sector-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sector-content > p {
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Dark sector content (franquicias) */
.sector-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.sector-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.sector-list-icon {
    width: 32px;
    height: 32px;
    background: rgba(45, 212, 191, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4bf;
    flex-shrink: 0;
    margin-top: 2px;
}

.sector-list-icon svg {
    width: 16px;
    height: 16px;
}

.sector-list li strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.3rem;
}

.sector-list li span {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.5;
}

/* Light sector content (gestorías) */
.sector-content-light {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sector-content-light h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-main);
}

.sector-content-light h2 span {
    color: var(--primary);
}

.sector-content-light > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.sector-list-light {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.sector-list-light li {
    display: flex;
    align-items: flex-start;
    gap: 1.2rem;
}

.sector-list-icon-blue {
    width: 32px;
    height: 32px;
    background: rgba(8, 31, 247, 0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.sector-list-icon-blue svg {
    width: 16px;
    height: 16px;
}

.sector-list-light li strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.3rem;
}

.sector-list-light li span {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Sector Visual (Franquicias) --- */
.sector-visual {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sector-stat-card {
    border-radius: 32px;
    padding: 3.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-num {
    font-size: 5rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -3px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    line-height: 1.5;
}

.sector-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sector-badge-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    font-weight: 700;
    transition: var(--transition);
}

.sector-badge-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(72, 89, 255, 0.4);
}

.sector-badge-item svg {
    color: #4859ff;
    flex-shrink: 0;
}

/* --- btn-white-outline --- */
.btn-white-outline {
    background: transparent;
    color: white;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
    border: none;
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* --- Gestorías visual block --- */
.gestorias-visual-block {
    border-radius: 28px;
    padding: 2rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
}

.gv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.gv-badge {
    background: rgba(8, 31, 247, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.5px;
}

.gv-total {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.gv-clients {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.gv-client {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: 0.3s;
}

.gv-client:hover {
    border-color: rgba(8, 31, 247, 0.1);
    background: rgba(8, 31, 247, 0.02);
}

.gv-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.green-dot {
    background: #22c55e;
    box-shadow: 0 0 6px rgba(34, 197, 94, 0.5);
}

.yellow-dot {
    background: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.4);
}

.gv-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
    flex: 1;
}

.gv-count {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
}

.gv-client-more {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    padding: 0.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.gv-client-more:hover {
    opacity: 0.7;
}

.gv-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
}

.gv-stat {
    font-size: 0.8rem;
    font-weight: 700;
    color: #22c55e;
    display: flex;
    align-items: center;
    gap: 6px;
}

.gv-stat::before {
    content: '●';
    font-size: 0.6rem;
}

.gv-export-btn {
    background: var(--primary);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.gv-export-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* --- Responsive sector sections --- */
@media (max-width: 968px) {
    .sector-grid,
    .sector-grid-reverse {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .sector-content h2,
    .sector-content-light h2 {
        font-size: 2.2rem;
    }
}

/* ==============================
   Benefits Grid
   ============================== */
.beneficios-section {
    background: var(--bg-light);
    padding: 120px 0;
}

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.benefit-item {
    background: #fff;
    border-radius: 28px;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.benefit-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(8, 31, 247, 0.08);
    border-color: rgba(8, 31, 247, 0.12);
}

.benefit-num {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -2px;
    flex-shrink: 0;
    min-width: 100px;
}

.benefit-text {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.benefit-text strong {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.3;
}

.benefit-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-num {
        font-size: 2.5rem;
        min-width: 80px;
    }
}

/* ==============================
   Personalización Section
   ============================== */
.personalizacion-section {
    background: #020617;
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.pers-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 6rem;
    align-items: start;
}

.pers-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pers-content > p {
    font-size: 1.1rem;
    line-height: 1.7;
}

.pers-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 0.5rem;
}

.pers-feature {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.pers-icon {
    width: 44px;
    height: 44px;
    background: rgba(72, 89, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4859ff;
    flex-shrink: 0;
}

.pers-feature strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.4rem;
}

.pers-feature p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

/* --- Sectors grid (right column) --- */
.pers-sectors {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 4rem;
}

.pers-sector-title {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.58);
}

.pers-sector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.pers-sector-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 1rem 1.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition);
}

.pers-sector-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(72, 89, 255, 0.3);
    color: white;
    transform: translateX(4px);
}

@media (max-width: 968px) {
    .pers-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .pers-sectors {
        padding-top: 0;
    }
}

/* ==============================
   Footer h3 fix (footer uses h3 but had h4 style)
   ============================== */
.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: #fff;
}

/* ==============================
   Mobile tweaks for new sections
   ============================== */
@media (max-width: 768px) {
    .para-quien-section {
        padding: 80px 0;
    }

    .section-header-center h2 {
        font-size: 2.2rem;
    }

    .section-header-center {
        margin-bottom: 3rem;
    }

    .sector-section {
        padding: 80px 0;
    }

    .beneficios-section {
        padding: 80px 0;
    }

    .personalizacion-section {
        padding: 80px 0;
    }

    .pers-sector-grid {
        grid-template-columns: 1fr;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
}

/* ========================================
   v33 — Global Typography + Interaction
   ======================================== */

h1 { letter-spacing: -0.03em; }
h2 { letter-spacing: -0.02em; }

.btn:active {
    transform: scale(0.97);
}

.btn:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* ========================================
   v33 — Stagger Animations
   ======================================== */

.pq-grid .pq-card,
.grid-solutions-6 .card-vibrant,
.benefits-grid .benefit-item {
    transition-delay: calc(var(--stagger-i, 0) * 80ms);
}

/* ========================================
   v33 — FAQ Section
   ======================================== */

#faq {
    background: var(--bg-light);
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 16px rgba(8, 31, 247, 0.07);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    gap: 1rem;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: var(--primary);
    transition: transform 0.25s ease;
}

.faq-item.open .faq-question .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.25s ease;
    padding: 0 1.5rem;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 1.5rem 1.2rem;
}

.faq-answer p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 768px) {
    .faq-question {
        font-size: 0.95rem;
        padding: 1rem 1.2rem;
    }
}

/* ============================================================
   v36 — Liquid glass nav, hero orbs, section rhythm, motion
   ============================================================ */

/* --- Hero ambient orbs (CSS-only floating ambient particles) --- */
#hero {
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.hero-orb-1 {
    width: 600px;
    height: 600px;
    top: -160px;
    right: -120px;
    background: radial-gradient(circle at 40% 40%, rgba(72, 89, 255, 0.22) 0%, rgba(8, 31, 247, 0.08) 50%, transparent 70%);
    filter: blur(72px);
    animation: orb-float-1 18s ease-in-out infinite;
}

.hero-orb-2 {
    width: 420px;
    height: 420px;
    bottom: -80px;
    left: -80px;
    background: radial-gradient(circle at 60% 55%, rgba(45, 212, 191, 0.18) 0%, rgba(45, 212, 191, 0.05) 55%, transparent 75%);
    filter: blur(56px);
    animation: orb-float-2 22s ease-in-out infinite;
}

.hero-orb-3 {
    width: 260px;
    height: 260px;
    top: 28%;
    left: 42%;
    background: radial-gradient(circle at 50% 50%, rgba(8, 31, 247, 0.12) 0%, transparent 65%);
    filter: blur(40px);
    animation: orb-float-3 14s ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%       { transform: translate(-30px, 25px) scale(1.04); }
    66%       { transform: translate(20px, -15px) scale(0.97); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    40%       { transform: translate(25px, -30px) scale(1.05); }
    70%       { transform: translate(-15px, 15px) scale(0.96); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%       { transform: translate(18px, -22px) scale(1.1); opacity: 1; }
}

/* --- Para quién — subtle blue tint to differentiate from pure white --- */
#para-quien {
    background: #f0f5ff;
}

/* --- Benefit numbers — counter animation support --- */
.benefit-num {
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.benefit-num.counting {
    color: var(--primary);
}

/* --- Nav active link — dark section override --- */
nav.nav-on-dark .nav-links a.nav-active {
    color: #2dd4bf;
}

nav.nav-on-dark .nav-links a.nav-active::after {
    background: #2dd4bf;
    width: 100%;
}

nav.nav-on-dark .nav-links a:hover {
    background: rgba(45, 212, 191, 0.08);
    color: #2dd4bf;
    border-radius: 100px;
    padding: 0.28rem 0.65rem;
    margin: -0.28rem -0.65rem;
}

/* --- Mobile: nav-active still works on dark overlay --- */
@media (max-width: 968px) {
    .nav-links a.nav-active {
        color: #2dd4bf !important;
    }

    .hero-orb-1 { width: 300px; height: 300px; top: -60px; right: -40px; }
    .hero-orb-2 { width: 220px; height: 220px; }
    .hero-orb-3 { display: none; }
}

/* ============================================================
   v38 — Gotita líquida real, blob bug fix, nav sin líneas
   ============================================================ */

/* --- Gotita: nodo de luz que flota despacio por el glass --- */
.nav-shimmer {
    position: absolute;
    top: 50%;
    left: 18%;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    transform: translateY(-50%);
    background: radial-gradient(circle at 40% 38%,
        rgba(255, 255, 255, 0.36) 0%,
        rgba(255, 255, 255, 0.14) 35%,
        transparent 70%
    );
    filter: blur(3px);
    animation: nav-drop-float 16s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

@keyframes nav-drop-float {
    0%   { left: 14%;  opacity: 0.55; transform: translateY(-50%) scale(1); }
    15%  { opacity: 0.75; }
    40%  { left: 52%;  opacity: 0.60; transform: translateY(-52%) scale(0.88); }
    65%  { left: 74%;  opacity: 0.45; transform: translateY(-48%) scale(0.95); }
    80%  { opacity: 0.65; }
    100% { left: 14%;  opacity: 0.55; transform: translateY(-50%) scale(1); }
}

nav.nav-on-dark .nav-shimmer {
    background: radial-gradient(circle at 40% 38%,
        rgba(45, 212, 191, 0.22) 0%,
        rgba(45, 212, 191, 0.08) 40%,
        transparent 70%
    );
    mix-blend-mode: screen;
}

/* --- Sector item layout with SVG icon --- */
.pers-sector-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}

.pers-sector-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: rgba(45, 212, 191, 0.7);
    transition: color 0.2s ease;
}

.pers-sector-item:hover svg {
    color: #2dd4bf;
}

/* --- HR card icon SVG sizing --- */
.hr-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hr-icon svg {
    width: 20px;
    height: 20px;
}

/* --- Sim check SVG sizing --- */
.sim-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sim-check svg {
    width: 16px;
    height: 16px;
}

/* --- Compliance section blob opacity boost for visibility --- */
.authority-section .glass-blobs .blob {
    opacity: 0.20;
}

/* --- Authority section badge icon color to match new accent --- */
.authority-section .badge-icon-lg svg {
    color: rgba(138, 120, 255, 0.9);
}

.authority-section .badge-legal-premium:hover .badge-icon-lg svg {
    color: #2dd4bf;
}

/* --- Mobile: nav shimmer hidden (not relevant on touch) --- */
@media (max-width: 968px) {
    .nav-shimmer { display: none; }
}

/* ============================================================
   v58 — Pricing Section
   ============================================================ */

.pricing-section {
    background: var(--bg-light);
    padding: 120px 0;
}

.pricing-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.75rem auto 0;
    line-height: 1.65;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
}

.pricing-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 28px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.pricing-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(8, 31, 247, 0.07);
    border-color: rgba(8, 31, 247, 0.12);
}

.pricing-card-featured {
    background: var(--primary);
    border-color: transparent;
    box-shadow:
        0 4px 16px rgba(8, 31, 247, 0.15),
        0 20px 60px rgba(8, 31, 247, 0.25);
    transform: scale(1.03);
}

.pricing-card-featured:hover {
    transform: scale(1.03) translateY(-6px);
    box-shadow:
        0 8px 24px rgba(8, 31, 247, 0.2),
        0 30px 70px rgba(8, 31, 247, 0.32);
    border-color: transparent;
}

.pricing-featured-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: #2dd4bf;
    color: #020617;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 0.32rem 1.1rem;
    border-radius: 0 0 12px 12px;
}

.pricing-card-header {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

.pricing-card-featured .pricing-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.plan-name {
    display: block;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.pricing-card-featured .plan-name {
    color: rgba(255, 255, 255, 0.7);
}

.plan-price {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1rem;
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-main);
    line-height: 1.1;
}

.price-amount strong {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-main);
}

.price-free {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: #16a34a;
}

.pricing-card-featured .price-amount,
.pricing-card-featured .price-amount strong {
    color: white;
}

.price-period {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

.pricing-card-featured .price-period {
    color: rgba(255, 255, 255, 0.65);
}

.plan-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.pricing-card-featured .plan-desc {
    color: rgba(255, 255, 255, 0.7);
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
    margin-bottom: 2rem;
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.93rem;
    color: var(--text-main);
    font-weight: 500;
    line-height: 1.4;
}

.plan-features li svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 0.18rem;
}

.pricing-card-featured .plan-features li {
    color: rgba(255, 255, 255, 0.88);
}

.pricing-card-featured .plan-features li svg {
    color: #2dd4bf;
}

.plan-cta {
    display: block;
    text-align: center;
    margin-bottom: 0.75rem;
}

.pricing-card-featured .plan-cta.btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.25);
}

.pricing-card-featured .plan-cta.btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.plan-note {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0;
}

.pricing-card-featured .plan-note {
    color: rgba(255, 255, 255, 0.45);
}

.pricing-guarantee {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.2rem 2rem;
    background: rgba(8, 31, 247, 0.04);
    border: 1px solid rgba(8, 31, 247, 0.1);
    border-radius: 100px;
    max-width: 680px;
    margin: 3.5rem auto 0;
}

.pricing-guarantee svg {
    color: var(--primary);
    flex-shrink: 0;
}

.pricing-guarantee span {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-main);
}

@media (max-width: 1100px) {
    .pricing-grid {
        gap: 1.5rem;
    }
    .pricing-card {
        padding: 2rem;
    }
}

@media (max-width: 968px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-card-featured {
        transform: none;
    }

    .pricing-card-featured:hover {
        transform: translateY(-6px);
    }

    .pricing-section {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .pricing-guarantee {
        flex-direction: column;
        text-align: center;
        border-radius: 20px;
        padding: 1.2rem 1.5rem;
    }

    .pricing-guarantee span {
        font-size: 0.82rem;
    }
}

/* ============================================================
   v58 — Footer Socials
   ============================================================ */

.footer-socials {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: var(--transition);
}

.footer-social-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.footer-social-link:focus-visible {
    outline: 2px solid #2dd4bf;
    outline-offset: 3px;
}

/* ============================================================
   v58 — Mobile fix: contact section padding en tablet
   ============================================================ */

@media (max-width: 1024px) and (min-width: 769px) {
    .contact-section {
        padding: 100px 0;
    }

    .contact-grid.glass-ultra-deep {
        padding: 4rem;
        border-radius: 40px;
    }
}

@media (max-width: 480px) {
    .contact-section {
        padding: 60px 0;
    }

    .contact-grid.glass-ultra-deep {
        padding: 2rem 1.5rem;
        border-radius: 24px;
    }

    .contact-header h2 {
        font-size: 2rem;
    }
}

/* ============================================================
   v58 — Nav mobile: Precios y FAQ links legibles en overlay
   ============================================================ */

@media (max-width: 968px) {
    .nav-links {
        gap: 1.25rem;
    }
}

/* ============================================================
   v58 — Pricing card: prevent animation flicker on stagger
   ============================================================ */

.pricing-card {
    will-change: transform;
}

/* ============================================================
   v58 — Skip to main content (a11y)
   ============================================================ */

.skip-link {
    position: absolute;
    top: -100px;
    left: 1rem;
    background: var(--primary);
    color: white;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    z-index: 9999;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 1rem;
}

/* ============================================================
   v58 — Better focus rings globally
   ============================================================ */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.faq-question:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: -3px;
    border-radius: 12px;
}

/* ============================================================
   v58 — Smooth scroll only when user doesn't prefer reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .liquid-bg .blob,
    .hero-orb,
    .nav-shimmer,
    .glass-blobs .blob {
        animation: none;
    }

    .reveal {
        transition: none !important;
    }
}
/* ============================================================
   F20 — VISUAL AUDIT FIXES (2026-05-15)
   ============================================================ */
/* B25 — Botón "Ver funcionalidades" no se trunca en mobile */
.btn.lg {
    white-space: nowrap;
}
@media (max-width: 480px) {
    .btn.lg {
        font-size: 0.95rem;
        padding: 0.9rem 1.4rem;
        white-space: nowrap;
    }
}


/* ============================================================
   F21 — AUDIT VISUAL POST-F20 (2026-05-15)
   N-BUG-02 · Pricing cards overflow en mobile 390px
   N-BUG-03 · badge-legal-premium span (Cifrado SSL / Soberania)
              opacity 0.72 sobre gradiente purpura -> bajo contraste
   ============================================================ */

/* N-BUG-03 — subir opacidad y peso del texto en badges legal */
.badge-legal-premium span {
    opacity: 0.95;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

/* N-BUG-02 — pricing cards en mobile no deben hacer overflow horizontal */
@media (max-width: 480px) {
    .pricing-card,
    .pricing-card-featured {
        overflow: hidden;
        word-break: break-word;
        max-width: 100%;
    }
    .pricing-card .plan-features li,
    .pricing-card-featured .plan-features li {
        white-space: normal;
        overflow-wrap: break-word;
        word-break: break-word;
    }
    .pricing-card .price-amount,
    .pricing-card-featured .price-amount,
    .pricing-card .price-period {
        white-space: normal;
    }
}
