/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: var(--font-family-primary);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    width: 100%;
    position: relative;
    letter-spacing: -0.5px;
}

/* Dark overlay for background image legibility */
body.theme-dark::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    pointer-events: none;
    z-index: -2;
}

/* Grid pattern overlay */
body.theme-dark::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.4;
    pointer-events: none;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(60px, 60px);
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-heading);
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    letter-spacing: -0.5px;
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* ===== SKIP LINK ===== */
.skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    z-index: var(--z-tooltip);
    text-decoration: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 150ms ease, transform 150ms ease;
}

.skip-link:focus {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* ===== HEADER / NAVBAR ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 7, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: var(--z-fixed);
    transition: all var(--transition-base);
}

.header.scrolled {
    box-shadow: var(--shadow-md);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.nav__logo-img {
    height: 52px;
    width: auto;
    display: block;
}

.nav__menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.nav__link {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    color: var(--muted);
    transition: color var(--transition-base);
    position: relative;
}

.nav__link:hover,
.nav__link.active {
    color: var(--text);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__cta {
    margin-left: var(--spacing-md);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.nav__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    transition: all var(--transition-base);
    border-radius: 2px;
}

.nav__toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.nav__toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav__toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn--primary {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    border-color: transparent;
}

.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 51, 153, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--secondary:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.btn--outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn--outline:hover {
    background: var(--surface);
    border-color: var(--primary);
}

.btn--large {
    padding: 16px 32px;
    font-size: var(--font-size-base);
}

.btn--full {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 70px;
    overflow: hidden;
}

.hero__background {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero__shapes {
    position: absolute;
    inset: 0;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

.shape--1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape--2 {
    width: 300px;
    height: 300px;
    background: var(--primary-2);
    bottom: -50px;
    right: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.shape--3 {
    width: 250px;
    height: 250px;
    background: rgba(157, 108, 255, 0.5);
    top: 50%;
    right: 20%;
    animation: float 18s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

.hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: center;
}

.hero__text {
    padding-top: 32px;
}

.hero__title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-family: 'Fredoka', sans-serif !important;
    font-weight: 900;
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.hero__title--highlight {
    display: block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.hero__subcopy {
    font-size: var(--font-size-base);
    color: var(--muted);
    margin-bottom: var(--spacing-xl);
    line-height: 1.6;
}

.hero__cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-2xl);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    gap: var(--spacing-2xl);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat__number {
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    font-family: var(--font-family-heading);
}

.stat__label {
    font-size: var(--font-size-sm);
    color: var(--muted);
}

/* Hero Visual */
.hero__image {
    position: relative;
}

.hero-visual {
    position: relative;
    width: 100%;
    max-width: 620px;
    margin: 0 auto;
}

/* Hero image (hero-elio.png) */
.hero-visual--image {
    display: block;
}
.hero-visual--image .hero-visual__frame {
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 340px;
    transform: translateY(-24px);
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    background: transparent;
    border: none;
    padding: 0;
}
.hero-visual__img {
    width: 132%;
    height: 132%;
    margin: -16% auto 0;
    transform: translateY(-10px);
    object-fit: contain;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .hero-visual__img {
        width: 100%;
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        transform: none;
    }
    .hero-visual--image .hero-visual__frame {
        min-height: 220px;
        max-width: 100%;
    }
    .hero-visual {
        max-width: 100%;
    }
}

.hero-visual__orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-1 {
    width: 200px;
    height: 200px;
    background: var(--primary);
    top: -50px;
    left: -50px;
}

.orb-2 {
    width: 150px;
    height: 150px;
    background: var(--primary-2);
    bottom: -30px;
    right: -30px;
    animation-delay: 1s;
}

.orb-3 {
    width: 120px;
    height: 120px;
    background: rgba(157, 108, 255, 0.5);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.hero-visual__chat {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-xl);
    backdrop-filter: blur(20px);
    z-index: 2;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border);
}

.chat-header__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.avatar-dot {
    width: 12px;
    height: 12px;
    background: #22c55e;
    border-radius: 50%;
    position: absolute;
    bottom: -2px;
    right: -2px;
    border: 2px solid var(--surface);
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.chat-header__name {
    font-weight: var(--font-weight-semibold);
    color: var(--text);
}

.chat-header__status {
    font-size: var(--font-size-sm);
    color: var(--muted);
}

.chat-messages {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.chat-message {
    display: flex;
}

.chat-message--bot {
    justify-content: flex-start;
}

.chat-message--user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 75%;
    padding: 12px 16px;
    border-radius: var(--border-radius-lg);
    font-size: var(--font-size-sm);
    line-height: 1.5;
}

.chat-bubble--bot {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-bubble--user {
    background: var(--gradient-primary);
    color: var(--color-text-white);
    border-bottom-right-radius: 4px;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    background: var(--muted);
    border-radius: 50%;
    animation: typing 1.4s ease-in-out infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.7;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* ===== SECTIONS ===== */
section {
    padding: var(--spacing-3xl) 0;
}

.section__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-3xl);
}

.section__title {
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.section__description {
    font-size: var(--font-size-lg);
    color: var(--muted);
    line-height: 1.7;
}

/* ===== SOCIAL PROOF ===== */
.social-proof {
    background: var(--surface);
    padding: var(--spacing-2xl) 0;
}

.social-proof__label {
    text-align: center;
    font-size: var(--font-size-lg);
    color: var(--text);
    margin-bottom: var(--spacing-sm);
    font-weight: var(--font-weight-semibold);
}

.social-proof__description {
    text-align: center;
    font-size: var(--font-size-base);
    color: var(--muted);
    margin-bottom: var(--spacing-xl);
}

.social-proof__stats {
    display: flex;
    justify-content: center;
    gap: var(--spacing-3xl);
    flex-wrap: wrap;
}

.social-proof__stat {
    text-align: center;
}

.social-proof__stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--primary);
    margin-bottom: var(--spacing-xs);
}

.social-proof__stat-label {
    font-size: var(--font-size-sm);
    color: var(--muted);
}

/* ===== HOW IT WORKS ===== */
.how-it-works__steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.step-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 20px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    box-shadow: var(--glow);
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.step-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: radial-gradient(240px 120px at 30% 0%, rgba(157, 108, 255, 0.22), transparent 55%),
                radial-gradient(260px 140px at 80% 20%, rgba(102, 51, 153, 0.18), transparent 60%);
    opacity: 0.9;
    pointer-events: none;
    z-index: 0;
}

.step-card > * {
    position: relative;
    z-index: 1;
}

.step-card__title {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.step-card__description {
    color: rgba(255, 255, 255, 0.92);
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    line-height: 1.6;
}

.step-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 14px;
}

.step-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--stroke2);
    background: var(--panel2);
}

.step-card__number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    margin: 0 auto var(--spacing-lg);
}

.step-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.step-card__description {
    line-height: 1.6;
}

/* ===== USE CASES ===== */
.use-cases {
    background: var(--surface);
}

.use-cases__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.use-case-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    text-align: center;
    transition: all var(--transition-base);
}

.use-case-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.use-case-card__icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.use-case-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.use-case-card__description {
    color: var(--muted);
    line-height: 1.6;
}

/* ===== FEATURES ===== */
.features__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.feature-card__icon {
    width: 55px !important;
    height: 55px !important;
    max-width: 55px !important;
    max-height: 55px !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto 15px auto !important;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    color: var(--color-text-white);
}

.feature-card__icon svg,
.feature-card__icon img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}

.feature-card__title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-md);
}

.feature-card__description {
    color: var(--muted);
    line-height: 1.6;
}

/* ===== PRICING ===== */
.pricing {
    background: var(--surface);
}

.pricing__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-3xl);
}

.pricing__toggle-label {
    font-size: var(--font-size-sm);
    color: var(--muted);
}

.pricing__toggle-switch {
    position: relative;
    width: 50px;
    height: 28px;
    background: var(--border);
    border-radius: 20px;
    cursor: pointer;
    transition: background var(--transition-base);
}

.pricing__toggle-switch.annual {
    background: var(--primary);
}

.pricing__toggle-slider {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    transition: transform var(--transition-base);
}

.pricing__toggle-switch.annual .pricing__toggle-slider {
    transform: translateX(22px);
}

.pricing__toggle-badge {
    background: var(--primary);
    color: white;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    margin-left: 4px;
}

.pricing__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.automation-home__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--spacing-lg);
}

.automation-home__card {
    position: relative;
    border-radius: var(--border-radius-xl);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.05), 0 16px 48px rgba(0, 0, 0, 0.45);
    padding: var(--spacing-xl);
    transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.automation-home__card:hover {
    transform: translateY(-3px);
    border-color: rgba(157, 108, 255, 0.55);
    box-shadow: 0 0 0 1px rgba(157, 108, 255, 0.24), 0 20px 56px rgba(0, 0, 0, 0.52);
}

.automation-home__icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid rgba(157, 108, 255, 0.35);
    background: rgba(102, 51, 153, 0.16);
    color: rgba(255, 255, 255, 0.92);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-md);
}

.automation-home__card h3 {
    color: var(--text);
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
}

.automation-home__card ul {
    display: grid;
    gap: var(--spacing-sm);
    color: var(--muted);
    line-height: 1.6;
}

.automation-home__card li {
    position: relative;
    padding-left: 16px;
}

.automation-home__card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(157, 108, 255, 0.9);
    box-shadow: 0 0 8px rgba(157, 108, 255, 0.5);
}

.automation-home__cta {
    margin-top: var(--spacing-2xl);
    display: flex;
    gap: var(--spacing-md);
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 860px) {
    .automation-home__grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    border-color: var(--primary);
    border-width: 2px;
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: white;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
}

.pricing-card__header {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.pricing-card__title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-xs);
}

.pricing-card__description {
    color: var(--muted);
    font-size: var(--font-size-sm);
}

.pricing-card__price {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: var(--font-weight-bold);
    color: var(--text);
    font-family: var(--font-family-heading);
}

.pricing-card__currency {
    font-size: var(--font-size-xl);
    color: var(--muted);
}

.pricing-card__period {
    color: var(--muted);
    font-size: var(--font-size-sm);
}

.pricing-card__features {
    margin-bottom: var(--spacing-xl);
}

.pricing-card__feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.pricing-card__feature svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ===== FAQ ===== */
.faq__list {
    max-width: 800px;
    margin: 0 auto;
}

.faq__item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq__item.active {
    border-color: var(--primary);
}

.faq__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg);
    text-align: left;
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    cursor: pointer;
    transition: all var(--transition-base);
}

.faq__question:hover {
    color: var(--primary);
}

.faq__question svg {
    transition: transform var(--transition-base);
    flex-shrink: 0;
}

.faq__item.active .faq__question svg {
    transform: rotate(180deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow);
}

.faq__item.active .faq__answer {
    max-height: 500px;
}

.faq__answer p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--muted);
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer__content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    color: var(--text);
    margin-bottom: var(--spacing-md);
}

.footer__description {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.footer__social {
    display: flex;
    gap: var(--spacing-md);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    color: var(--muted);
    transition: all var(--transition-base);
}

.footer__social-link:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.footer__title {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--spacing-md);
    color: var(--text);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__link {
    color: var(--muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-base);
}

.footer__link:hover {
    color: var(--primary);
}

.footer__bottom {
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer__copyright {
    color: var(--muted);
    font-size: var(--font-size-sm);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero__content {
        grid-template-columns: 1fr;
        gap: var(--spacing-2xl);
    }
    
    .hero__image {
        order: -1;
    }
    
    .footer__content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg-primary);
        flex-direction: column;
        align-items: flex-start;
        padding: var(--spacing-xl);
        padding-top: 80px !important;
        transition: left var(--transition-base);
        overflow-y: auto;
    }
    
    .nav__menu.show-menu {
        left: 0;
    }

    /* Ocultar la vieja X (hamburguesa) cuando el menú está abierto; solo se ve el botón cerrar del panel */
    .nav__menu.show-menu + .nav__toggle {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }

    .menu-close-btn {
        position: absolute !important;
        top: 16px !important;
        right: 16px !important;
        width: 40px !important;
        height: 40px !important;
        background-color: rgba(255, 255, 255, 0.1) !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        padding: 0 !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        z-index: 1002 !important;
    }

    .menu-close-btn::before,
    .menu-close-btn::after {
        content: '' !important;
        position: absolute !important;
        height: 2px !important;
        width: 24px !important;
        background-color: #ffffff !important;
        top: 50% !important;
        left: 50% !important;
        border-radius: 1px !important;
    }

    .menu-close-btn::before {
        transform: translate(-50%, -50%) rotate(45deg) !important;
    }

    .menu-close-btn::after {
        transform: translate(-50%, -50%) rotate(-45deg) !important;
    }

    .menu-close-btn:hover::before,
    .menu-close-btn:hover::after {
        background-color: rgba(255, 255, 255, 0.7) !important;
    }

    .nav__list {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        gap: var(--spacing-md);
    }
    
    .nav__cta {
        margin-left: 0;
        margin-top: var(--spacing-md);
        width: 100%;
    }
    
    .nav__toggle {
        display: flex;
    }
    
    .nav__logo-img {
        height: 40px;
        max-width: 100%;
    }
    
    /* Bajar el bloque entero (logo + título) hacia el centro; sin huecos entre ellos */
    .hero {
        min-height: auto;
        padding: 200px 0 var(--spacing-3xl);
    }
    
    .hero__content {
        gap: 0;
    }
    
    .hero__image {
        padding-top: 0;
        margin-top: 0;
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero__image .hero-visual,
    .hero__image .hero-visual__frame {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero__text {
        padding-top: 40px !important;
        margin-top: 0 !important;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 40px 24px 28px;
        border-radius: 20px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
        box-sizing: border-box !important;
    }
    
    /* Pegar tarjeta al logo: margen negativo elimina cualquier hueco */
    .hero .container .hero__content .hero__text {
        margin-top: -32px !important;
    }
    
    .hero__title {
        margin-top: 0;
        padding-top: 0;
        margin-bottom: 0;
        font-size: clamp(1.75rem, 6vw, 2.5rem);
    }
    
    .hero__description {
        font-size: var(--font-size-base);
    }
    
    .hero__subcopy {
        font-size: var(--font-size-sm);
    }
    
    .hero__cta {
        flex-direction: column;
    }
    
    .hero__cta .btn {
        width: 100%;
    }
    
    .hero__stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .section__header {
        max-width: 100%;
        padding: 0 var(--spacing-sm);
    }
    
    .section__title {
        font-size: clamp(1.5rem, 4vw, 2rem);
    }
    
    .section__description {
        font-size: var(--font-size-base);
    }
    
    .social-proof__stats {
        flex-wrap: wrap;
        justify-content: center;
        gap: var(--spacing-xl);
    }
    
    .how-it-works__steps,
    .use-cases__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .step-card,
    .use-case-card {
        padding: var(--spacing-lg);
        min-width: 0;
    }
    
    .step-image-wrap {
        margin-bottom: var(--spacing-md);
    }
    
    .step-image {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 140px;
        object-fit: cover;
    }
    
    .step-card__title,
    .use-case-card__title {
        font-size: var(--font-size-lg);
    }
    
    .step-card__description,
    .use-case-card__description {
        font-size: var(--font-size-sm);
    }
    
    .footer__content {
        grid-template-columns: 1fr;
    }
    
    .pricing__grid,
    .features__grid,
    .use-cases__grid,
    .how-it-works__steps {
        grid-template-columns: 1fr;
    }

    /* Sección Características móvil: ocultar icono actual y dejar recuadro listo para imagen nueva */
    .features .container {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    .features__grid {
        display: flex !important;
        flex-direction: column !important;
    }

    /* Ocultar la imagen/icono actual SOLO en móvil */
    .feature-card img,
    .feature-card__icon {
        display: none !important;
    }

    /* Recuadro: centrado absoluto y contenedor flex listo para la nueva imagen */
    .feature-card {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 90% !important;
        max-width: 340px !important;
        margin: 0 auto 30px !important;
        padding: 30px 15px !important;
        box-sizing: border-box !important;
    }

    /* Centrado del texto */
    .feature-card h3,
    .feature-card p,
    .feature-card__title,
    .feature-card__description {
        text-align: center !important;
        width: 100% !important;
        margin: 0 0 10px 0 !important;
    }

    .feature-card__description:last-child,
    .feature-card p:last-child {
        margin-bottom: 0 !important;
    }

    /* caracteristicas.html: ocultar imágenes en móvil, recuadros centrados y diseño compacto */
    .esconder-en-movil {
        display: none !important;
    }

    .fx-section {
        padding-top: 30px !important;
        padding-bottom: 30px !important;
    }

    .fx-example {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 85% !important;
        max-width: 350px !important;
        margin: 0 auto 15px auto !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
        overflow: hidden !important;
        padding: 20px 15px 15px 15px !important;
        height: auto !important;
        min-height: 0 !important;
    }

    .fx-example__copy h3,
    .fx-example__copy p {
        margin-bottom: 5px !important;
    }

    .fx-example__copy ul,
    .fx-example__copy p,
    .fx-example__copy li {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }

    .fx-example .fx-media {
        min-height: 0 !important;
        height: auto !important;
    }

    .fx-example .fx-placeholder {
        min-height: 0 !important;
        height: auto !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .fx-example__img-wrap {
        width: 92% !important;
        height: 160px !important;
        min-height: 160px !important;
        margin: 10px auto !important;
        padding: 0 !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    .img-movil-optimizada {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    /* Ocultar el tercer bloque (Seguridad / Actualización y auditoría) en móvil */
    .fx-section:has(.fx-control) {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        overflow: hidden !important;
    }

    /* CTA section (index) - mobile */
    .elio-cta-section {
        padding: 56px 0 28px;
    }
    
    .elio-cta-section .container {
        max-width: 100%;
        padding-left: var(--container-padding);
        padding-right: var(--container-padding);
    }
    
    .elio-cta-card {
        min-height: 320px;
    }
    
    .elio-cta-content {
        min-height: 320px;
        padding: 40px 20px;
    }
    
    .elio-cta-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        margin-bottom: 24px;
    }
    
    .elio-cta-button {
        padding: 12px 20px;
        font-size: var(--font-size-sm);
    }
    
    .faq__list {
        max-width: 100%;
    }
    
    .faq__question {
        padding: var(--spacing-md);
        font-size: var(--font-size-sm);
    }
    
    .faq__question span {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .automation-home__card {
        padding: var(--spacing-lg);
        min-width: 0;
    }
    
    /* Sección social-proof: fondo de página visible, contenedor tipo tarjeta 90% centrado */
    .social-proof {
        padding: var(--spacing-2xl) 0;
        background: transparent;
    }
    
    .social-proof .container {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
        padding: 28px 24px;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: 20px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-md);
    }
    
    section {
        padding: var(--spacing-2xl) 0;
    }
    
    .hero__title {
        font-size: 1.5rem;
        line-height: 1.2;
    }
    
    .hero-visual--image .hero-visual__frame {
        min-height: 180px;
    }
    
    .hero-visual__img {
        max-width: 100%;
    }
    
    .hero__description {
        font-size: var(--font-size-sm);
    }
    
    .section__title {
        font-size: 1.35rem;
    }
    
    .section__description {
        font-size: var(--font-size-sm);
    }
    
    .social-proof__stats {
        flex-direction: column;
        gap: var(--spacing-lg);
    }
    
    .social-proof__stat-number {
        font-size: var(--font-size-xl);
    }
    
    .step-card,
    .use-case-card {
        padding: var(--spacing-md);
    }
    
    .step-image {
        min-height: 120px;
    }
    
    .footer__section {
        text-align: center;
    }
    
    .footer__social {
        justify-content: center;
    }
    
    /* CTA section - pantallas muy pequeñas */
    .elio-cta-section {
        padding: 40px 0 24px;
    }
    
    .elio-cta-content {
        padding: 32px 16px;
        min-height: 280px;
    }
    
    .elio-cta-card {
        min-height: 280px;
    }
    
    .elio-cta-title {
        font-size: 1.35rem;
        margin-bottom: 20px;
    }
    
    .hero {
        padding: 180px 0 var(--spacing-3xl);
    }
    
    .hero__content {
        gap: 0;
    }
    
    .hero__image {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero__image .hero-visual,
    .hero__image .hero-visual__frame {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
    
    .hero__text {
        max-width: 92%;
        padding: 16px 20px 24px;
        padding-top: 0 !important;
        margin-top: 0 !important;
    }
    
    .hero .container .hero__content .hero__text {
        margin-top: -32px !important;
    }
    
    .social-proof .container {
        max-width: 92%;
        padding: 24px 20px;
    }
}

/* ===== HOW IT WORKS PAGE STYLES ===== */

.how-page {
    max-width: var(--container-width);
    margin: 0 auto;
}

/* Hero Section */
.how-hero {
    margin-bottom: var(--spacing-3xl);
}

.how-hero__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.how-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: var(--font-weight-bold);
    color: var(--text);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
    letter-spacing: var(--letter-tight);
}

.how-hero__lead {
    font-size: var(--font-size-lg);
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
}

.how-hero__lead strong {
    color: var(--text);
    font-weight: var(--font-weight-semibold);
}

.how-hero__cta {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-lg);
}

.how-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.how-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
    background: rgba(102, 51, 153, 0.12);
    border: 1px solid rgba(102, 51, 153, 0.2);
    color: var(--text);
}

/* Visual Mock */
.how-hero__visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.how-mock {
    width: 100%;
    max-width: 500px;
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    background: var(--surface);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.how-mock__top {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 12px 16px;
    background: rgba(102, 51, 153, 0.05);
    border-bottom: 1px solid var(--border);
}

.how-mock__top .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.how-mock__top .dot.d1 {
    background: #ef4444;
}

.how-mock__top .dot.d2 {
    background: #f59e0b;
}

.how-mock__top .dot.d3 {
    background: #22c55e;
}

.how-mock__label {
    flex: 1;
    font-size: var(--font-size-sm);
    color: var(--muted);
    text-align: center;
}

.how-mock__body {
    padding: var(--spacing-lg);
}

.how-mock__img {
    margin-bottom: var(--spacing-md);
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: var(--border-radius-md);
}

.how-mock__img .how-mock__diagram-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: rgba(102, 51, 153, 0.08);
    border: 1px dashed var(--border);
    border-radius: var(--border-radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    font-size: var(--font-size-sm);
}

.img-placeholder small {
    display: block;
    margin-top: var(--spacing-xs);
    font-size: var(--font-size-sm);
    opacity: 0.7;
}

.how-mock__mini {
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

.mini-row {
    display: flex;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
}

.mini-row .pill {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: var(--font-size-sm);
    background: rgba(102, 51, 153, 0.1);
    border: 1px solid rgba(102, 51, 153, 0.2);
    color: var(--text);
}

.mini-text {
    font-size: var(--font-size-sm);
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Steps Section */
.how-steps {
    margin-bottom: var(--spacing-3xl);
}

.how-section-head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-2xl);
}

.how-h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: var(--font-weight-bold);
    color: var(--text);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
    letter-spacing: var(--letter-tight);
}

.how-sub {
    font-size: var(--font-size-base);
    color: var(--muted);
    line-height: 1.6;
}

.how-steps__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

/* Micro-animaciones: entrada suave y glow al hover (como-funciona) */
@keyframes howCardFadeIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes howCardGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(102, 51, 153, 0.28), var(--shadow-lg);
        transform: translateY(-4px);
    }
    50% {
        box-shadow: 0 0 28px rgba(157, 108, 255, 0.4), var(--shadow-lg);
        transform: translateY(-4px);
    }
}

.how-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    position: relative;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    animation: howCardFadeIn 0.5s ease-out both;
}

.how-card:nth-child(1) { animation-delay: 0.05s; }
.how-card:nth-child(2) { animation-delay: 0.12s; }
.how-card:nth-child(3) { animation-delay: 0.19s; }
.how-card:nth-child(4) { animation-delay: 0.26s; }

.how-card:hover {
    transform: translateY(-4px);
    border-color: rgba(157, 108, 255, 0.55);
    animation: howCardGlow 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .how-card {
        animation: none;
    }
    .how-card:hover {
        animation: none;
        box-shadow: var(--shadow-lg);
    }
}

.how-card__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.how-card__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.how-card__text {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.how-card__hint {
    font-size: var(--font-size-sm);
    color: var(--muted);
    font-style: italic;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

/* Diagram Section */
.how-diagram {
    margin-bottom: var(--spacing-3xl);
}

.how-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-xl);
}

.flow-col {
    flex: 1;
    min-width: 180px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
}

.flow-col--glow {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: none;
}

.flow-title {
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.flow-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.flow-list li {
    font-size: var(--font-size-sm);
    color: var(--muted);
}

.flow-arrow {
    font-size: var(--font-size-2xl);
    color: var(--primary);
    font-weight: var(--font-weight-bold);
}

.how-note {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-md);
    color: var(--muted);
    font-size: var(--font-size-sm);
}

.how-note strong {
    color: var(--text);
}

/* Examples Section */
.how-examples {
    margin-bottom: var(--spacing-3xl);
}

.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.example {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    transition: all var(--transition-base);
}

.example:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.example__title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.example__text {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.example__img {
    margin-top: var(--spacing-md);
    overflow: hidden;
    border-radius: var(--border-radius-md);
    aspect-ratio: 16/9;
}

.example__img-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* CTA Section */
.how-cta {
    margin-top: var(--spacing-3xl);
}

.how-cta__box {
    background: linear-gradient(145deg, rgba(102, 51, 153, 0.5) 0%, rgba(50, 25, 80, 0.65) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    padding: var(--spacing-3xl);
    text-align: center;
}

.how-cta__box .how-h2,
.how-cta__box .how-sub {
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.how-cta__box .how-sub {
    color: rgba(255, 255, 255, 0.92);
}

.how-cta__actions {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}

@media (min-width: 768px) {
    .how-hero__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--spacing-3xl);
    }
    
    .how-flow {
        flex-wrap: nowrap;
    }
    
    .flow-arrow {
        font-size: var(--font-size-3xl);
    }
}

@media (max-width: 767px) {
    .how-flow {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .how-cta__box {
        padding: var(--spacing-xl);
    }
}

/* Security Section */
.how-security {
    margin-bottom: var(--spacing-3xl);
}

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-xl);
}

.security-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    padding: var(--spacing-xl);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    animation: howCardFadeIn 0.5s ease-out both;
}

.security-card:nth-child(1) { animation-delay: 0.08s; }
.security-card:nth-child(2) { animation-delay: 0.16s; }
.security-card:nth-child(3) { animation-delay: 0.24s; }

.security-card:hover {
    transform: translateY(-4px);
    border-color: rgba(157, 108, 255, 0.55);
    box-shadow: 0 0 24px rgba(102, 51, 153, 0.3), var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .security-card {
        animation: none;
    }
}

.security-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.security-text {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
}

.security-tag {
    font-size: var(--font-size-sm);
    color: var(--muted);
    font-style: italic;
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border);
}

/* Integrations Section */
.how-integrations {
    margin-bottom: var(--spacing-3xl);
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--spacing-md);
}

.integration-tile {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-lg);
    text-align: center;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.integration-tile:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.integration-tile span {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-medium);
    color: var(--text);
    margin-bottom: var(--spacing-xs);
}

.integration-tile small {
    font-size: var(--font-size-sm);
    color: var(--muted);
    font-style: italic;
}

.integration-logo-wrap {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px auto;
    border-radius: 16px;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
    padding: 6px;
    box-sizing: border-box;
}

.integration-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.integration-logo--light {
    background: transparent;
    mix-blend-mode: screen;
    filter: brightness(1.05) contrast(1.1);
}

.integration-logo-wrap .logo--meta {
    transform: scale(1.12);
    transform-origin: center;
}

.integration-logo-wrap .logo--google-sheets {
    transform: scale(1.15);
    transform-origin: center;
}

.integration-tile span {
    margin-top: 0;
}

/* Gallery Section */
.how-gallery {
    margin-bottom: var(--spacing-3xl);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-xl);
}

.gallery-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.gallery-card .img-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    margin: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
}

.gallery-card__img-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
}

.gallery-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-title {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    margin: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-family-heading);
}

.gallery-text {
    color: var(--muted);
    line-height: 1.6;
    margin: 0 var(--spacing-lg) var(--spacing-lg);
}

/* FAQ Section */
.how-faq {
    margin-bottom: var(--spacing-3xl);
}

.faq-box {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--border-radius-lg);
    margin-bottom: var(--spacing-md);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--spacing-lg);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
    color: var(--text);
    cursor: pointer;
    list-style: none;
    position: relative;
    transition: all var(--transition-base);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    position: absolute;
    right: var(--spacing-lg);
    top: 50%;
    transform: translateY(-50%);
    font-size: var(--font-size-xl);
    color: var(--primary);
    transition: transform var(--transition-base);
}

.faq-item[open] summary::after {
    content: '−';
}

.faq-item summary:hover {
    color: var(--primary);
}

.faq-item p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 767px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== FEATURES PAGE ===== */

.features-hero {
  padding: 80px 0 40px;
}

.features-title {
  font-size: 48px;
  color: #fff;
  margin-bottom: 16px;
}

.features-desc {
  max-width: 620px;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
}

.features-cta {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

/* GRID */
.features-grid {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 20px;
}

.feature-card h3 {
  color: #fff;
  margin-bottom: 8px;
}

.feature-card p {
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

/* VISUAL */
.features-visual {
  margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.visual-image {
  height: 260px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}

/* ADVANCED */
.features-advanced {
  margin-top: 80px;
}

.advanced-head {
  margin-bottom: 24px;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.advanced-item {
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px;
  background: rgba(255,255,255,0.02);
}

.advanced-item h4 {
  color: #fff;
  margin-bottom: 6px;
}

.advanced-item p {
  color: rgba(255,255,255,0.7);
}

/* FINAL CTA */
.features-final-cta {
  margin-top: 100px;
  text-align: center;
}

.features-final-cta h2 {
  color: #fff;
  font-size: 32px;
}

.features-final-cta p {
  color: rgba(255,255,255,0.7);
  margin: 12px 0 24px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: 1fr 1fr; }
  .features-visual { grid-template-columns: 1fr; }
  .advanced-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .features-grid { grid-template-columns: 1fr; }
}

/* Button styles for features page */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  background: var(--gradient-primary);
  color: var(--color-text-white);
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 51, 153, 0.4);
}

.btn-primary.big {
  padding: 16px 32px;
  font-size: var(--font-size-base);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--border-radius-md);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: all var(--transition-base);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface);
  border-color: var(--primary);
}

.visual-text h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-heading);
  letter-spacing: var(--letter-tight);
}

.visual-text p {
  color: var(--muted);
  line-height: 1.7;
}

.advanced-head h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--text);
  margin-bottom: var(--spacing-md);
  font-family: var(--font-family-heading);
  letter-spacing: var(--letter-tight);
}

.advanced-head p {
  color: var(--muted);
  line-height: 1.6;
}

/* ===== PREMIUM DARK LAYERING ===== */

:root {
  --dark-bg: #05060a;
  --panel: rgba(255,255,255,.035);
  --panel2: rgba(255,255,255,.055);
  --stroke: rgba(255,255,255,.09);
  --stroke2: rgba(255,255,255,.14);
  --text-dim: rgba(255,255,255,.72);
  --text-dimmer: rgba(255,255,255,.55);
  --glow: 0 0 0 1px var(--stroke), 0 18px 60px rgba(0,0,0,.55);
}

body.theme-dark {
  background-color: #05060a;
  background-image: url('../assets/images/elio-bg-futurista.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
}

@media (max-width: 768px) {
  body.theme-dark {
    background-color: transparent !important;
    background-image: none !important;
    background-size: auto !important;
    position: relative;
    z-index: 1;
    min-height: 100vh;
  }
  /* Capa fija del tamaño del viewport (100vh) para evitar zoom/estirado en scroll */
  body.theme-dark::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    background-image: linear-gradient(rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.35)),
                      url('../assets/images/elio-bg-futurista-mobile.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    pointer-events: none;
  }
}

.features-desc,
.feature-card p,
.advanced-item p,
.features-final-cta p {
  color: var(--text-dim);
}

/* HERO: más "presence" */
.features-title {
  letter-spacing: -0.04em;
  text-shadow: 0 10px 50px rgba(122,63,224,.25);
}

.features-cta .btn-primary,
.features-final-cta .btn-primary {
  box-shadow: 0 10px 40px rgba(122,63,224,.25);
}

/* Cards: borde "glass" + hover premium */
.feature-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--glow);
  overflow: hidden;
  transform: translateY(0);
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.feature-card::before {
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(240px 120px at 30% 0%, rgba(157,108,255,.22), transparent 55%),
              radial-gradient(260px 140px at 80% 20%, rgba(102,51,153,.18), transparent 60%);
  opacity:.9;
  pointer-events:none;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--stroke2);
  background: var(--panel2);
}

/* Títulos y texto de cards */
.feature-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.feature-card p {
  position: relative;
  z-index: 1;
}

/* Visual block: que se vea como "mockup" aunque sea placeholder */
.visual-image {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  box-shadow: var(--glow);
  overflow: hidden;
}

.visual-image::before {
  content:"";
  position:absolute;
  width: 520px;
  height: 520px;
  top: -260px;
  left: -220px;
  background: radial-gradient(circle, rgba(157,108,255,.20), transparent 65%);
  filter: blur(0px);
}

.visual-image::after {
  content:"";
  position:absolute;
  inset:0;
  background: radial-gradient(240px 180px at 70% 30%, rgba(122,63,224,.18), transparent 60%);
  pointer-events:none;
}

/* Advanced items más elegantes */
.advanced-item {
  background: var(--panel);
  border: 1px solid var(--stroke);
  box-shadow: var(--glow);
  transition: transform .25s ease, border-color .25s ease;
}

.advanced-item:hover {
  transform: translateY(-3px);
  border-color: var(--stroke2);
}

/* CTA final con "panel" */
.features-final-cta {
  margin-top: 90px;
  padding: 44px 18px;
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: radial-gradient(700px 260px at 50% 0%, rgba(122,63,224,.22), transparent 70%),
              rgba(255,255,255,.02);
  box-shadow: var(--glow);
}

/* Feature Icons */
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(157,108,255,.22), rgba(102,51,153,.10));
  border: 1px solid rgba(255,255,255,.10);
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
  font-size: 20px;
}

/* Mockup */
.mockup {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.25);
}

.mockup-top {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  opacity: .9;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.mockup-body {
  padding: 26px;
  color: rgba(255,255,255,.7);
}

.mockup-body p {
  font-weight: 600;
  color: #fff;
  margin-bottom: 6px;
}

.mockup-body small {
  color: rgba(255,255,255,.55);
}

/* ===== FEATURES (RECOMENDADO) ===== */

.fx-hero { padding: 86px 0 36px; }

.fx-hero__badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.78);
  margin-bottom: 14px;
  font-weight: 600;
}

.fx-hero__title{
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  color:#fff;
}

.fx-hero__desc{
  max-width: 820px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}

.fx-hero__chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top: 18px; }

.fx-chip{
  padding:8px 12px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.70);
  font-size: 14px;
}

.fx-hero__cta{ margin-top: 22px; display:flex; gap:12px; flex-wrap:wrap; }

/* Sections */
.fx-section{ padding: 64px 0; }

.fx-head{ margin-bottom: 22px; }

.fx-h2{
  font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.35rem);
  color:#fff;
  letter-spacing:-0.03em;
  margin-bottom: 10px;
}

.fx-p{ color: rgba(255,255,255,.72); max-width: 860px; line-height: 1.75; }

/* Grid */
.fx-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px){ .fx-grid{ grid-template-columns: repeat(2, 1fr);} }

@media (max-width: 620px){ .fx-grid{ grid-template-columns: 1fr;} }

.fx-card{
  position: relative;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
  overflow:hidden;
  transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.fx-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(240px 120px at 30% 0%, rgba(157,108,255,.22), transparent 55%),
              radial-gradient(260px 140px at 80% 20%, rgba(102,51,153,.18), transparent 60%);
  opacity:.9;
  pointer-events:none;
}

.fx-card:hover{
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.05);
}

.fx-ico{
  width:44px;height:44px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background: linear-gradient(135deg, rgba(157,108,255,.22), rgba(102,51,153,.10));
  border:1px solid rgba(255,255,255,.10);
  margin-bottom: 12px;
  position: relative; z-index:1;
  font-size: 20px;
}

.fx-card h3{ color:#fff; margin-bottom: 8px; position:relative; z-index:1; }

.fx-card p{ color: rgba(255,255,255,.72); line-height: 1.65; position:relative; z-index:1; }

.fx-tag{
  margin-top: 12px;
  display:inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.60);
  font-size: 13px;
  position:relative; z-index:1;
}

/* Split */
.fx-split{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px){ .fx-split{ grid-template-columns: 1fr; } }

.fx-bullets{ margin-top: 14px; display:grid; gap: 10px; }

.fx-bullet{ display:flex; gap:10px; color: rgba(255,255,255,.72); }

.fx-bullet span{
  width:22px;height:22px;border-radius:999px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color:#fff;
}

/* Mock */
.fx-mock{
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

.fx-mock__top{
  display:flex; align-items:center; gap:8px;
  padding: 12px 14px;
  background: rgba(255,255,255,.04);
  border-bottom:1px solid rgba(255,255,255,.08);
}

.fx-mock__title{ margin-left: 10px; color: rgba(255,255,255,.78); font-weight: 600; font-size: 13px; }

.fx-mock__body{ padding: 18px; }

.fx-mock__row{ display:flex; align-items:center; gap: 10px; margin-bottom: 12px; }

.fx-pill{
  padding: 8px 10px;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  color: rgba(255,255,255,.70);
  font-size: 13px;
  min-width: 96px;
  text-align:center;
}

.fx-line{
  height: 10px; flex: 1;
  border-radius: 999px;
  border:1px solid rgba(255,255,255,.10);
  background: linear-gradient(90deg, rgba(157,108,255,.18), rgba(102,51,153,.10));
}

.fx-mock__hint{
  margin-top: 16px;
  color: rgba(255,255,255,.60);
  line-height: 1.6;
}

.fx-mock__hint code{
  color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.25);
  border:1px solid rgba(255,255,255,.10);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Examples */
.fx-examples{ display:grid; gap: 18px; }

.fx-example{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

@media (max-width: 860px){ .fx-example{ grid-template-columns: 1fr; } }

.fx-example__copy h3{ color:#fff; margin-bottom: 8px; }

.fx-example__copy p{ color: rgba(255,255,255,.72); line-height: 1.7; }

.fx-example__copy ul{ margin-top: 10px; display:grid; gap: 6px; color: rgba(255,255,255,.72); }

.fx-media{ display:flex; }

.fx-placeholder{
  width:100%;
  min-height: 240px;
  border-radius: 18px;
  border:1px dashed rgba(255,255,255,.20);
  background: radial-gradient(260px 140px at 30% 20%, rgba(157,108,255,.14), transparent 60%),
              rgba(0,0,0,.20);
  display:flex; align-items:center; justify-content:center;
  color: rgba(255,255,255,.62);
  text-align: center;
  padding: var(--spacing-lg);
}

.fx-placeholder.tall{ min-height: 360px; }

.fx-placeholder .fx-example__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 88%;
  max-height: 88%;
  margin: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* Panel derecho "Actualización de precios": recuadro ajustado a la imagen */
.fx-media:has(.fx-placeholder .fx-example__img) {
  justify-content: flex-end;
  align-items: flex-start;
}
.fx-placeholder:has(.fx-example__img) {
  position: relative;
  overflow: hidden;
  width: fit-content;
  height: fit-content;
  max-width: none;
  min-height: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}
.fx-example__img-wrap {
  position: relative;
  overflow: hidden;
  width: 372px;
  height: 232px;
  max-width: 100%;
  border-radius: 18px;
}
.fx-placeholder:has(.fx-example__img) .fx-example__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.fx-example__img--contain {
  object-fit: contain;
  width: 100%;
  height: 100%;
  object-position: center;
}

/* Panel derecho "Seguridad, permisos y gobernanza": tamaño original (width 100%, min-height 360px) */
.fx-control .fx-media {
  justify-content: stretch;
}
.fx-control .fx-placeholder.fx-placeholder--audit {
  width: 100%;
  min-height: 360px;
  height: 360px;
}
.fx-control .fx-placeholder--audit .fx-example__img-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: hidden !important;
}
.fx-control .fx-placeholder--audit .fx-example__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: inherit;
}

.img-seguridad-cover {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
  display: block !important;
}

.img-cover-total {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
  display: block !important;
}

.fx-example__img-wrap:has(.img-cover-total) {
  padding: 0 !important;
  overflow: hidden !important;
}

.fx-placeholder code{
  color: rgba(255,255,255,.80);
  background: rgba(0,0,0,.22);
  border:1px solid rgba(255,255,255,.10);
  padding: 2px 6px;
  border-radius: 8px;
}

/* Control */
.fx-control{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px){ .fx-control{ grid-template-columns: 1fr; } }

.fx-control__grid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 620px){ .fx-control__grid{ grid-template-columns: 1fr; } }

.fx-mini{
  padding: 14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
}

.fx-mini h4{ color:#fff; margin-bottom: 6px; }

.fx-mini p{ color: rgba(255,255,255,.72); line-height: 1.65; }

/* Final CTA */
.fx-final{
  margin: 86px 0 30px;
  padding: 46px 18px;
  text-align:center;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(700px 260px at 50% 0%, rgba(122,63,224,.22), transparent 70%),
              rgba(255,255,255,.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

.fx-final h2{ color:#fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }

.fx-final p{ color: rgba(255,255,255,.72); margin: 10px 0 22px; line-height: 1.7; }

/* Para imágenes reales */
.fx-img{
  width:100%;
  height:100%;
  min-height:240px;
  object-fit:cover;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
}

/* ===== PRICING (RECOMENDADO) ===== */

.px-hero{
  padding: 86px 0 34px;
  position: relative;
  --hero-parallax-x: 0px;
  --hero-parallax-y: 0px;
}

.px-hero__fx{
  position: absolute;
  inset: -12px -16px -8px -16px;
  pointer-events: none;
  transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0);
  transition: transform .22s ease-out;
  will-change: transform;
  z-index: 0;
}

.px-hero__portal{
  position: absolute;
  left: 50%;
  top: 34%;
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(157,108,255,.22), rgba(102,51,153,.06) 58%, transparent 72%);
  filter: blur(14px);
  opacity: .52;
  animation: pxPortalPulse 4.2s ease-in-out infinite;
  will-change: transform, opacity, filter;
}

.px-hero__sparkle{
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(214,191,255,.75);
  box-shadow: 0 0 10px rgba(102,51,153,.45);
  opacity: 0;
  animation: pxSparkleFade 5s ease-in-out infinite;
  will-change: opacity, transform;
}

.px-hero__sparkle:nth-child(2){ top: 16%; left: 12%; animation-delay: .2s; }
.px-hero__sparkle:nth-child(3){ top: 24%; left: 28%; animation-delay: .8s; }
.px-hero__sparkle:nth-child(4){ top: 13%; left: 50%; animation-delay: 1.2s; }
.px-hero__sparkle:nth-child(5){ top: 20%; right: 22%; animation-delay: 1.8s; }
.px-hero__sparkle:nth-child(6){ top: 31%; right: 10%; animation-delay: 2.2s; }
.px-hero__sparkle:nth-child(7){ top: 49%; left: 18%; animation-delay: 2.8s; }
.px-hero__sparkle:nth-child(8){ top: 55%; left: 41%; animation-delay: 3.4s; }
.px-hero__sparkle:nth-child(9){ top: 52%; right: 28%; animation-delay: 4s; }
.px-hero__sparkle:nth-child(10){ top: 64%; right: 14%; animation-delay: 4.4s; }
.px-hero__sparkle:nth-child(11){ bottom: 20%; left: 24%; animation-delay: 4.8s; }
.px-hero__sparkle:nth-child(12){ bottom: 16%; left: 56%; animation-delay: 5.2s; }
.px-hero__sparkle:nth-child(13){ bottom: 24%; right: 18%; animation-delay: 5.6s; }

.px-hero__badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.78);
  margin-bottom: 14px;
  font-weight: 600;
}

.px-hero__title{
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  color:#fff;
  position: relative;
  z-index: 1;
}

.px-hero__desc{
  max-width: 880px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.px-hero__cta{ margin-top: 22px; display:flex; gap:12px; flex-wrap:wrap; }

.px-hero__chips{
  margin-top: 14px;
  display:flex;
  flex-wrap:wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.px-hero__chip{
  display:inline-flex;
  align-items:center;
  padding: 8px 12px;
  border-radius: 999px;
  border:1px solid rgba(157,108,255,.35);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 600;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  will-change: transform;
}

.px-hero__chip:hover{
  transform: translateY(-3px);
  border-color: rgba(157,108,255,.62);
  box-shadow: 0 10px 24px rgba(102,51,153,.2);
}

.px-note{
  margin-top: 16px;
  color: rgba(255,255,255,.55);
  font-size: 13px;
}

.px-hero__cta{
  position: relative;
  z-index: 1;
}

.px-hero__ctaPrimary{
  position: relative;
  overflow: hidden;
  transition: box-shadow .25s ease, transform .25s ease;
}

.px-hero__ctaPrimary::after{
  content: "";
  position: absolute;
  top: -130%;
  left: -34%;
  width: 42%;
  height: 320%;
  transform: rotate(22deg);
  background: linear-gradient(to right, transparent, rgba(255,255,255,.2), transparent);
  opacity: 0;
  pointer-events: none;
}

.px-hero__ctaPrimary:hover{
  box-shadow: 0 12px 32px rgba(102,51,153,.32);
}

.px-hero__ctaPrimary:hover::after{
  opacity: 1;
  animation: pxHeroShine 1s ease;
}

.px-hero [data-hero-reveal]{
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .5s ease, transform .5s ease;
  will-change: opacity, transform;
}

.px-hero [data-chip-reveal]{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .45s ease, transform .45s ease;
}

.px-hero.is-visible [data-hero-reveal]{
  opacity: 1;
  transform: translateY(0);
}

.px-hero.is-visible .px-hero__desc{ transition-delay: .1s; }
.px-hero.is-visible .px-hero__chips{ transition-delay: .2s; }
.px-hero.is-visible .px-hero__cta{ transition-delay: .28s; }

.px-hero.is-visible [data-chip-reveal]:nth-child(1){ opacity: 1; transform: translateY(0); transition-delay: .24s; }
.px-hero.is-visible [data-chip-reveal]:nth-child(2){ opacity: 1; transform: translateY(0); transition-delay: .32s; }
.px-hero.is-visible [data-chip-reveal]:nth-child(3){ opacity: 1; transform: translateY(0); transition-delay: .4s; }

.px-hero.is-visible .px-hero__ctaPrimary{
  animation: pxHeroButtonIn .45s ease .3s both;
}

@keyframes pxPortalPulse{
  0%,100%{ opacity:.46; filter: blur(13px); transform: translate(-50%, -50%) scale(.98); }
  50%{ opacity:.62; filter: blur(16px); transform: translate(-50%, -50%) scale(1.03); }
}

@keyframes pxSparkleFade{
  0%,100%{ opacity: 0; transform: translateY(0) scale(.9); }
  50%{ opacity: .65; transform: translateY(-5px) scale(1.05); }
}

@keyframes pxHeroButtonIn{
  from{ opacity:0; transform: scale(.98); }
  to{ opacity:1; transform: scale(1); }
}

@keyframes pxHeroShine{
  from{ left: -34%; }
  to{ left: 132%; }
}

.px-section{ padding: 64px 0; }

.px-head{ margin-bottom: 22px; }

.px-h2{
  font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.35rem);
  color:#fff;
  letter-spacing:-0.03em;
  margin-bottom: 10px;
}

.px-p{ color: rgba(255,255,255,.72); max-width: 920px; line-height: 1.75; }

/* Pricing quiz wizard */
.px-quiz{
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 24px;
  border:1px solid rgba(102,51,153,.45);
  background: radial-gradient(560px 300px at 10% -10%, rgba(157,108,255,.22), transparent 58%),
              linear-gradient(145deg, rgba(18,16,24,.9), rgba(10,9,14,.86));
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 28px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 26px 70px rgba(0,0,0,.62);
  position: relative;
  overflow: hidden;
}

.px-quiz::before{
  content:"";
  position:absolute;
  inset:-1px;
  pointer-events:none;
  background: radial-gradient(500px 210px at 85% 10%, rgba(102,51,153,.18), transparent 65%);
}

.px-quiz > *{ position: relative; z-index:1; }

.px-quiz__progressBar{
  width:100%;
  height:12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.10);
}

.px-quiz__progressFill{
  width:33.333%;
  height:100%;
  background: linear-gradient(90deg, rgba(157,108,255,1), rgba(102,51,153,1));
  box-shadow: 0 0 18px rgba(102,51,153,.6);
  transition: width .3s ease;
}

.px-quiz__progressMeta{
  margin-top: 12px;
  color: rgba(255,255,255,.84);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.px-quiz__step{ display:none; margin-top: 16px; }
.px-quiz__step.is-active{ display:block; }
.px-quiz__form.is-hidden{ display:none; }

.px-quiz__stepTitle{
  color:#fff;
  font-size: 1.2rem;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.px-quiz__stepGrid{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 16px;
}

.px-quiz__panel{
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px;
}

.px-quiz__field + .px-quiz__field{ margin-top: 12px; }

.px-quiz__label{
  display:block;
  color: rgba(255,255,255,.9);
  font-weight: 700;
  margin-bottom: 8px;
}

.px-quiz__input{
  width:100%;
  border-radius: 12px;
  border:1px solid rgba(102,51,153,.5);
  background: rgba(0,0,0,.33);
  color:#fff;
  padding: 11px 12px;
  outline:none;
}

.px-quiz__input::placeholder{ color: rgba(255,255,255,.45); }
.px-quiz__input:focus{
  border-color: rgba(157,108,255,.92);
  box-shadow: 0 0 0 3px rgba(102,51,153,.25);
}

.px-quiz__tiles{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.px-quiz__tile{
  position: relative;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.9);
  font-weight: 700;
  cursor:pointer;
  transition: all .2s ease;
}

.px-quiz__tile input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.px-quiz__tile:has(input:checked){
  border-color: rgba(157,108,255,.9);
  background: rgba(102,51,153,.28);
  box-shadow: 0 0 0 2px rgba(102,51,153,.25);
}

.px-quiz__tile:focus-within{
  border-color: rgba(157,108,255,.9);
  box-shadow: 0 0 0 3px rgba(102,51,153,.25);
}

.px-quiz__chipsGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.px-quiz__chip{
  position: relative;
  display:flex;
  align-items:center;
  gap:10px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.92);
  font-weight: 600;
  cursor:pointer;
}

.px-quiz__chip input{
  position:absolute;
  opacity:0;
  pointer-events:none;
}

.px-quiz__chip:has(input:checked){
  border-color: rgba(157,108,255,.9);
  background: rgba(102,51,153,.28);
  box-shadow: 0 0 0 2px rgba(102,51,153,.22);
}

.px-quiz__chipIcon{
  width: 24px;
  height: 24px;
  border-radius: 8px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size: 11px;
  color: rgba(255,255,255,.86);
}

.px-quiz__error{
  min-height: 20px;
  margin-top: 14px;
  color: #fca5a5;
  font-size: 14px;
}

.px-quiz__actions{
  margin-top: 10px;
  display:flex;
  justify-content: space-between;
  gap: 12px;
}

.px-quiz__actions .btn-primary,
.px-quiz__actions .btn-ghost{
  min-width: 180px;
}

.px-quiz__result{
  margin-top: 20px;
  border-radius: 18px;
  border:1px solid rgba(157,108,255,.45);
  background: rgba(102,51,153,.14);
  padding: 18px;
}

.px-quiz__result.is-hidden{ display:none; }

.px-quiz__recLabel{
  display: block;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(157,108,255,.5);
  background: rgba(157,108,255,.22);
  color: #fff;
  font-weight: 600;
  line-height: 1.6;
  white-space: normal;
  margin-bottom: 4px;
}

.px-quiz__resultBlock{
  margin-top: 10px;
  color: rgba(255,255,255,.88);
  line-height: 1.6;
}

.px-quiz__nextSteps{
  margin-top: 12px;
  padding-left: 18px;
  color: rgba(255,255,255,.84);
  line-height: 1.6;
}

.px-quiz__resultActions{
  margin-top: 14px;
  display:flex;
  gap: 10px;
  flex-wrap:wrap;
}

@media (max-width: 900px){
  .px-quiz{ padding: 18px; }
  .px-quiz__stepGrid{ grid-template-columns: 1fr; }
}

@media (max-width: 620px){
  .px-hero__cta{ flex-direction: column; align-items: flex-start; }
  .px-hero__sparkle{ width: 3px; height: 3px; opacity: .5; }
  .px-hero__portal{ width: 180px; height: 180px; opacity: .44; }
  .px-hero__chip:hover{ transform: translateY(-2px); }
  .px-quiz__tiles{ grid-template-columns: 1fr; }
  .px-quiz__chipsGrid{ grid-template-columns: 1fr; }
  .px-quiz__actions{ flex-direction: column-reverse; }
  .px-quiz__actions .btn-primary,
  .px-quiz__actions .btn-ghost{ width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce){
  .px-hero__fx,
  .px-hero__portal,
  .px-hero__sparkle,
  .px-hero [data-hero-reveal],
  .px-hero [data-chip-reveal],
  .px-hero__ctaPrimary,
  .px-hero__ctaPrimary::after{
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
  .px-hero [data-hero-reveal],
  .px-hero [data-chip-reveal]{
    opacity: 1 !important;
  }
}

/* Plans grid */
.px-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 980px){ .px-grid{ grid-template-columns: repeat(2, 1fr);} }

@media (max-width: 620px){ .px-grid{ grid-template-columns: 1fr;} }

.px-card{
  position: relative;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
  overflow:hidden;
}

.px-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(260px 140px at 30% 0%, rgba(157,108,255,.22), transparent 55%),
              radial-gradient(280px 160px at 80% 20%, rgba(102,51,153,.18), transparent 60%);
  opacity:.85;
  pointer-events:none;
}

.px-card > *{ position:relative; z-index:1; }

.px-card.featured{
  border-color: rgba(157,108,255,.35);
  background: rgba(157,108,255,.06);
}

.px-ribbon{
  position:absolute;
  top:14px; right:14px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(157,108,255,.16);
  border:1px solid rgba(157,108,255,.35);
  color:#fff;
  font-weight: 700;
  font-size: 12px;
  z-index:2;
}

.px-plan{ color:#fff; font-weight: 800; font-size: 16px; }

.px-price{ margin-top: 10px; display:flex; align-items: baseline; gap:8px; }

.px-from{ color: rgba(255,255,255,.55); font-size: 13px; }

.px-amount{ color:#fff; font-size: 38px; letter-spacing:-0.04em; font-weight: 900; }

.px-per{ color: rgba(255,255,255,.60); font-size: 14px; }

.px-desc{ margin-top: 10px; color: rgba(255,255,255,.72); line-height: 1.65; }

.px-list{ margin-top: 14px; display:grid; gap: 8px; color: rgba(255,255,255,.72); line-height: 1.55; }

.px-actions{ margin-top: 16px; }

.w-full{ width: 100%; display:inline-flex; justify-content:center; }

.px-small{ margin-top: 12px; color: rgba(255,255,255,.55); font-size: 13px; }

/* Compare table */
.px-table{
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  overflow:hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

.px-row{
  display:grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.px-row:first-child{ border-top:none; }

.px-row > div{
  padding: 14px 14px;
  color: rgba(255,255,255,.72);
}

.px-row--head > div{
  color:#fff;
  font-weight: 800;
  background: rgba(255,255,255,.04);
}

.px-k{ color:#fff !important; font-weight: 700; }

@media (max-width: 780px){
  .px-row{ grid-template-columns: 1.2fr .9fr .9fr .9fr; }
}

@media (max-width: 620px){
  .px-table{ overflow:auto; }
  .px-row{ min-width: 680px; }
}

/* Addons */
.px-addons__grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

@media (max-width: 780px){ .px-addons__grid{ grid-template-columns: 1fr; } }

.px-addon{
  padding: 18px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

.px-addon h3{ color:#fff; margin-bottom: 8px; }

.px-addon p{ color: rgba(255,255,255,.72); line-height: 1.65; }

.px-addon__tag{
  margin-top: 12px;
  display:inline-block;
  padding: 8px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.20);
  color: rgba(255,255,255,.60);
  font-size: 13px;
}

/* FAQ */
.px-faq__grid{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

@media (max-width: 780px){ .px-faq__grid{ grid-template-columns: 1fr; } }

.px-q{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 14px 16px;
}

.px-q summary{
  cursor:pointer;
  color:#fff;
  font-weight: 800;
  list-style:none;
}

.px-q summary::-webkit-details-marker{ display:none; }

.px-q__question{
  color:#fff;
  font-weight: 800;
}

.px-a{
  margin-top: 10px;
  color: rgba(255,255,255,.72);
  line-height: 1.65;
}

/* Final CTA */
.px-final{
  margin: 86px 0 30px;
  padding: 46px 18px;
  text-align:center;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.10);
  background: radial-gradient(700px 260px at 50% 0%, rgba(122,63,224,.22), transparent 70%),
              rgba(255,255,255,.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

.px-final h2{ color:#fff; font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); }

.px-final p{ color: rgba(255,255,255,.72); margin: 10px 0 22px; line-height: 1.7; }

/* ===== CONTACTO ===== */

.cx-hero{ padding: 86px 0 30px; }

.cx-hero__badge{
  display:inline-flex; gap:8px; align-items:center;
  padding:8px 12px; border-radius:999px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  color: rgba(255,255,255,.78);
  margin-bottom: 14px;
  font-weight: 600;
}

.cx-hero__title{
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 12px;
  color:#fff;
}

.cx-hero__desc{
  max-width: 920px;
  color: rgba(255,255,255,.72);
  line-height: 1.75;
}

.cx-section{ padding: 56px 0 80px; }

.cx-grid{
  display:grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  align-items:start;
}

@media (max-width: 980px){ .cx-grid{ grid-template-columns: 1fr; } }

.cx-card{
  border-radius: 20px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 18px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
  position: relative;
  overflow:hidden;
}

.cx-card::before{
  content:"";
  position:absolute;
  inset:-1px;
  background: radial-gradient(360px 180px at 20% 0%, rgba(157,108,255,.20), transparent 60%),
              radial-gradient(360px 220px at 90% 30%, rgba(102,51,153,.14), transparent 65%);
  opacity:.85;
  pointer-events:none;
}

.cx-card > *{ position:relative; z-index:1; }

.cx-h2{ color:#fff; letter-spacing:-0.03em; margin-bottom: 6px; }

.cx-p{ color: rgba(255,255,255,.72); line-height: 1.65; margin-bottom: 16px; }

.cx-success{
  margin-top: 0;
  border-radius: 18px;
  border: 1px solid rgba(157,108,255,.45);
  background: rgba(102,51,153,.14);
  padding: 20px 24px;
  text-align: center;
}
.cx-success.is-hidden{ display: none; }
.cx-success__text{
  color: #fff;
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
  font-weight: 500;
}

.cx-form{ display:grid; gap: 12px; }
.cx-form.is-hidden{ display: none; }

.cx-row{ display:grid; gap: 8px; }

.cx-two{ grid-template-columns: 1fr 1fr; gap: 12px; }

@media (max-width: 620px){ .cx-two{ grid-template-columns: 1fr; } }

.cx-label{
  color: rgba(255,255,255,.75);
  font-weight: 700;
  font-size: 13px;
}

.cx-input{
  width: 100%;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.22);
  color:#fff;
  padding: 12px 12px;
  outline:none;
}

.cx-input::placeholder{ color: rgba(255,255,255,.45); }

.cx-input:focus{
  border-color: rgba(157,108,255,.45);
  box-shadow: 0 0 0 3px rgba(157,108,255,.14);
}

.cx-select{ appearance:none; }

.cx-textarea{ resize: vertical; min-height: 140px; }

.cx-check{ margin-top: 2px; }

.cx-check__label{
  color: rgba(255,255,255,.70);
  font-size: 13px;
  display:flex;
  gap: 10px;
  align-items:flex-start;
}

.cx-check__label input{ margin-top: 3px; }

.cx-actions{ margin-top: 8px; display:grid; gap: 10px; }

.cx-small{ color: rgba(255,255,255,.55); font-size: 12.5px; line-height: 1.55; }

.cx-side{ display:grid; gap: 14px; }

.cx-side__card{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

.cx-side__title{ color:#fff; font-weight: 900; margin-bottom: 10px; letter-spacing:-0.02em; }

.cx-steps{ display:grid; gap: 10px; padding-left: 0; margin: 0; list-style:none; color: rgba(255,255,255,.72); }

.cx-dot{
  width: 8px; height: 8px; border-radius: 999px;
  display:inline-block;
  background: rgba(157,108,255,.90);
  box-shadow: 0 0 0 3px rgba(157,108,255,.18);
  margin-right: 10px;
}

.cx-steps li{ display:flex; align-items:flex-start; gap: 0; line-height: 1.55; }

.cx-direct{ display:grid; gap: 10px; }

.cx-direct__row{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.cx-direct__k{ color: rgba(255,255,255,.60); font-size: 13px; font-weight: 700; }

.cx-direct__v{ color: rgba(255,255,255,.86); font-size: 13px; font-weight: 700; }

.cx-tip{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border:1px solid rgba(157,108,255,.22);
  background: rgba(157,108,255,.08);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.55;
}

.cx-side__cta{
  border-radius: 18px;
  border:1px solid rgba(255,255,255,.10);
  background: radial-gradient(520px 200px at 30% 0%, rgba(157,108,255,.20), transparent 70%),
              rgba(255,255,255,.02);
  padding: 16px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 18px 60px rgba(0,0,0,.55);
}

.cx-side__ctaTitle{ color:#fff; font-weight: 900; margin-bottom: 6px; }

.cx-side__cta p{ color: rgba(255,255,255,.72); line-height: 1.6; margin: 0 0 12px; }

/* ===== FUTURISTA: GLASSMORPHISM & GLOW ===== */

/* Glass class para cards y panels */
.glass {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid transparent;
  border-radius: 20px;
  overflow: hidden;
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: var(--glass-border-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
}

.fx-placeholder:has(.fx-example__img) {
  overflow: hidden;
}

.glass > * {
  position: relative;
  z-index: 1;
}

/* Aplicar glass a cards existentes */
.feature-card,
.fx-card,
.px-card,
.cx-card,
.cx-side__card,
.advanced-item,
.fx-mini,
.px-addon,
.px-q,
.fx-example,
.fx-mock,
.fx-placeholder,
.fx-final,
.px-final,
.cx-side__cta,
.features-final-cta {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid transparent;
  overflow: hidden;
}

.feature-card::after,
.fx-card::after,
.px-card::after,
.cx-card::after,
.cx-side__card::after,
.advanced-item::after,
.fx-mini::after,
.px-addon::after,
.px-q::after,
.fx-example::after,
.fx-mock::after,
.fx-placeholder::after,
.fx-final::after,
.px-final::after,
.cx-side__cta::after,
.features-final-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  background: var(--glass-border-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: 0;
  border-radius: inherit;
}

/* Hover premium con glow */
.feature-card:hover,
.fx-card:hover,
.px-card:hover,
.cx-card:hover,
.advanced-item:hover,
.fx-example:hover,
.px-addon:hover {
  box-shadow: var(--glow-purple);
  transform: translateY(-4px) scale(1.01);
  border-color: rgba(157, 108, 255, 0.5);
}

/* Botones con gradiente morado */
.btn--primary,
.btn-primary,
button.btn--primary,
a.btn--primary {
  background: linear-gradient(135deg, rgba(157, 108, 255, 0.95), rgba(122, 63, 224, 0.95));
  border: 1px solid rgba(157, 108, 255, 0.4);
  box-shadow: 0 4px 20px rgba(157, 108, 255, 0.3), var(--glow-subtle);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn--primary::before,
.btn-primary::before,
button.btn--primary::before,
a.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(167, 139, 250, 1), rgba(139, 92, 246, 1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn--primary:hover,
.btn-primary:hover,
button.btn--primary:hover,
a.btn--primary:hover {
  box-shadow: 0 8px 30px rgba(157, 108, 255, 0.4), var(--glow-purple);
  transform: translateY(-2px);
  border-color: rgba(157, 108, 255, 0.6);
}

.btn--primary:hover::before,
.btn-primary:hover::before,
button.btn--primary:hover::before,
a.btn--primary:hover::before {
  opacity: 1;
}

/* Glow sutil en elementos clave */
.hero__title,
.fx-hero__title,
.px-hero__title,
.cx-hero__title,
.features-title {
  text-shadow: 0 0 30px rgba(157, 108, 255, 0.3), 0 0 60px rgba(122, 63, 224, 0.15);
}

/* Header con glass */
.header {
  background: rgba(7, 7, 11, 0.6);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-bottom: 1px solid rgba(157, 108, 255, 0.2);
}

/* Ajustes de glow en elementos específicos */
.fx-ico,
.feature-icon {
  box-shadow: var(--glow-subtle);
}

.fx-ico:hover,
.feature-icon:hover {
  box-shadow: var(--glow-purple);
  transform: scale(1.1);
}

/* Smooth transitions */
.feature-card,
.fx-card,
.px-card,
.cx-card,
.advanced-item,
.fx-example,
.px-addon,
.btn--primary,
.btn-primary {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== CONTRAST / LEGIBILITY OVER IMAGE BACKGROUND ===== */
.how-diagram .how-h2,
.how-diagram .how-sub,
.how-diagram .flow-title,
.how-diagram .flow-list li,
.how-diagram .how-note,
.how-diagram .how-note strong {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.fx-hero__badge,
.fx-hero__title,
.fx-hero__desc {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.fx-h2,
.fx-p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.px-head .px-h2,
.px-head .px-p {
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.7);
}

.px-table {
  background: rgba(0, 0, 0, 0.55);
}

.px-row > div,
.px-row--head > div {
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.px-row--head > div {
  background: rgba(0, 0, 0, 0.35);
}

/* ===== Voice widget (Llamada con IA) ===== */
.voice-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
}

.voice-widget__btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #663399, #9D6CFF);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(102, 51, 153, 0.5), 0 0 40px rgba(157, 108, 255, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  animation: voice-widget-pulse 2s ease-in-out infinite;
}

.voice-widget__btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(102, 51, 153, 0.6), 0 0 50px rgba(157, 108, 255, 0.4);
}

.voice-widget__btn .voice-widget__btn-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #fff;
}

@keyframes voice-widget-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(102, 51, 153, 0.5), 0 0 40px rgba(157, 108, 255, 0.3); }
  50% { box-shadow: 0 4px 24px rgba(102, 51, 153, 0.65), 0 0 55px rgba(157, 108, 255, 0.45); }
}

.voice-widget__modal {
  position: absolute;
  bottom: 76px;
  right: 0;
  width: 320px;
  display: none;
  flex-direction: column;
  background: rgba(20, 18, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(157, 108, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
}

.voice-widget__modal.is-open {
  display: flex;
}

.voice-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(157, 108, 255, 0.2);
}

.voice-widget__title {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.voice-widget__close {
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  line-height: 1 !important;
  padding: 0 !important;
  margin: 0 !important;
  margin-top: -2px !important;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.9);
  font-size: 1.4rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}

.voice-widget__close *,
.voice-widget__close span,
.voice-widget__close i,
.voice-widget__close svg {
  margin: 0 !important;
  padding: 0 !important;
  display: block;
}

.voice-widget__close:hover {
  background: rgba(255,255,255,0.15);
}

.voice-widget__body {
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-widget__circle-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.voice-widget__wave {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid rgba(157, 108, 255, 0.4);
  animation: none;
  opacity: 0;
  pointer-events: none;
}

.voice-widget__circle-wrap.llamada-activa .voice-widget__wave {
  animation: voice-widget-wave 2.5s ease-out infinite;
  opacity: 1;
}

.voice-widget__circle-wrap.llamada-activa .voice-widget__wave--1 { animation-delay: 0s; }
.voice-widget__circle-wrap.llamada-activa .voice-widget__wave--2 { animation-delay: 0.5s; }
.voice-widget__circle-wrap.llamada-activa .voice-widget__wave--3 { animation-delay: 1s; }
.voice-widget__circle-wrap.llamada-activa .voice-widget__wave--4 { animation-delay: 1.5s; }

@keyframes voice-widget-wave {
  0% {
    transform: scale(0.4);
    opacity: 0.9;
    border-color: rgba(157, 108, 255, 0.5);
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
    border-color: rgba(157, 108, 255, 0.15);
  }
}

.voice-widget__circle {
  position: relative;
  z-index: 2;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(102, 51, 153, 0.5), rgba(157, 108, 255, 0.35));
  border: 2px solid rgba(157, 108, 255, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: inset 0 2px 12px rgba(255,255,255,0.1), 0 4px 20px rgba(102, 51, 153, 0.3);
  padding: 0;
  overflow: hidden;
}

.voice-widget__circle .modal-robot-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transform: scale(1.2);
}

.voice-widget__footer {
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(157, 108, 255, 0.2);
}

.voice-widget__end {
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #663399, #9D6CFF);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.25s;
}

.voice-widget__end:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.voice-widget__end.voice-widget__end--active {
  background: linear-gradient(180deg, #dc3545, #c82333);
}

.voice-widget__send {
  width: 100%;
  margin-top: 8px;
  padding: 10px 16px;
  border: 2px solid rgba(157, 108, 255, 0.6);
  border-radius: 12px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, background 0.2s;
}

.voice-widget__send:hover:not(:disabled) {
  background: rgba(157, 108, 255, 0.2);
}

.voice-widget__send:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.voice-widget__hint {
  margin: 10px 0 0;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  text-align: center;
}

/* ===== Voice widget: bottom sheet en móvil (< 768px) ===== */
@media (max-width: 767px) {
  .voice-widget {
    bottom: 16px;
    right: 16px;
  }

  .voice-widget__btn {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
  }

  .voice-widget__btn .voice-widget__btn-icon {
    width: 24px;
    height: 24px;
  }

  .voice-widget__modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    top: auto;
    border-radius: 20px 20px 0 0;
    padding: 12px 16px  max(12px, env(safe-area-inset-bottom));
    display: none;
    flex-direction: column;
    gap: 0;
  }

  .voice-widget__modal.is-open {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "avatar header header"
      "avatar hint   hint"
      "button button button";
    align-items: center;
  }

  .voice-widget__header {
    grid-area: header;
    padding: 0 0 0 8px;
    border-bottom: none;
    align-items: center;
    justify-content: space-between;
  }

  .voice-widget__body {
    grid-area: avatar;
    padding: 0;
    align-self: stretch;
    display: flex;
    align-items: center;
  }

  .voice-widget__circle-wrap {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }

  .voice-widget__circle {
    width: 44px;
    height: 44px;
  }

  .voice-widget__circle .modal-robot-img {
    transform: scale(1);
  }

  .voice-widget__footer {
    display: contents;
    padding: 0;
    border-top: none;
  }

  .voice-widget__hint {
    grid-area: hint;
    margin: 0;
    padding-left: 8px;
    text-align: left;
    font-size: 0.7rem;
    line-height: 1.3;
  }

  .voice-widget__end {
    grid-area: button;
    margin-top: 10px;
    padding: 14px 16px;
    border-radius: 12px;
    min-height: 48px;
  }

  .voice-widget__title {
    font-size: 0.9rem;
  }

  .voice-widget__close {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1 !important;
    border: none !important;
    cursor: pointer !important;
  }

  .voice-widget__close *,
  .voice-widget__close span,
  .voice-widget__close i {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    line-height: 0.8 !important;
  }
}

