/* ==========================================================================
   ESTILOS ESPECÍFICOS PARA LA PÁGINA "INTERACTIVE"
   Misma paleta gris oscura que index.html (styles.css)
   ========================================================================== */

:root {
    --bg-interactive: #2c3138;
    --bg-install: #23282e;
    --bg-card-int: #363d47;
    --text-main-int: #e8eaed;
    --text-muted-int: #9aa3af;

    --green-brand: #34d399;
    --green-glow: #6ee7b7;
    --green-accent: #a3e635;
    --purple-btn: #8b5cf6;
    --border-color-int: #4b5563;
    --smartscreen-red: #e53935;
    --smartscreen-red-deep: #c62828;
    --community-box-bg: #363d47;
    --tag-bg: rgba(255, 255, 255, 0.08);
    --tag-fg: rgba(255, 255, 255, 0.92);
    --tag-border: rgba(255, 255, 255, 0.12);
    --hero-image-border: rgba(52, 211, 153, 0.25);
}

/* Tema claro = misma base (coherente con la landing) */
[data-theme="light"] {
    --bg-interactive: #2c3138;
    --bg-install: #23282e;
    --bg-card-int: #363d47;
    --text-main-int: #e8eaed;
    --text-muted-int: #9aa3af;
    --green-brand: #34d399;
    --green-glow: #6ee7b7;
    --green-accent: #a3e635;
    --purple-btn: #8b5cf6;
    --border-color-int: #4b5563;
    --community-box-bg: #363d47;
    --tag-bg: rgba(255, 255, 255, 0.08);
    --tag-fg: rgba(255, 255, 255, 0.92);
    --tag-border: rgba(255, 255, 255, 0.12);
    --hero-image-border: rgba(52, 211, 153, 0.25);
}

html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-interactive);
    color: var(--text-main-int);
    line-height: 1.6;
}

a {
    color: var(--text-main-int);
    text-decoration: none;
}

/* Efecto de texto brillante */
.text-green-glow {
    color: var(--green-glow);
    text-shadow: 0 0 18px rgba(52, 211, 153, 0.4);
}

/* --- Navegación --- */
.nav-interactive {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(44, 49, 56, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color-int);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.logo-interactive {
    font-size: 20px;
    font-weight: 800;
    color: var(--green-brand);
}

.nav-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-icon {
    background: var(--purple-btn);
    color: white;
    border: none;
    border-radius: 8px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lang-select {
    background: var(--bg-card-int);
    color: var(--text-main-int);
    border: 1px solid var(--border-color-int);
    padding: 8px 15px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
}

/* --- Hero Section --- */
.hero-interactive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 50px;
    align-items: center;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero-content p {
    color: var(--text-muted-int);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 90%;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.btn-purple {
    background: var(--purple-btn);
    color: white;
    padding: 15px 30px;
    border-radius: 50px;
    border: none;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-main-int);
    padding: 15px 30px;
    border-radius: 50px;
    border: 1px solid var(--border-color-int);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
}

.user-stats {
    display: flex;
    align-items: center;
    gap: 15px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--bg-interactive);
    margin-left: -10px;
}

.avatars img:first-child { margin-left: 0; }

.user-stats span {
    color: var(--text-muted-int);
    font-size: 14px;
}

/* --- Hero Image --- */
.hero-image {
    position: relative;
    background: var(--bg-card-int);
    border: 1px solid var(--hero-image-border);
    border-radius: 20px;
    padding: 40px 32px 48px;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image__media {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 360px;
}

.hero-image__media img {
    max-width: 100%;
    width: auto;
    height: auto;
    max-height: min(520px, 68vh);
    object-fit: contain;
    display: block;
}

/* --- Fácil Instalación --- */
.installation-section {
    position: relative;
    margin: 100px 0;
    padding: 72px 24px 88px;
    background: radial-gradient(ellipse 80% 60% at 15% 40%, rgba(52, 211, 153, 0.07) 0%, transparent 55%),
                radial-gradient(ellipse 50% 40% at 90% 80%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
                linear-gradient(180deg, var(--bg-interactive) 0%, var(--bg-install) 45%, var(--bg-interactive) 100%);
    overflow: hidden;
}

.installation-section__inner {
    max-width: 1120px;
    margin: 0 auto;
}

.installation-section__title {
    text-align: center;
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main-int);
    margin-bottom: 28px;
}

.installation-section__title-accent {
    color: var(--green-accent);
    text-shadow: 0 0 20px rgba(163, 230, 53, 0.35), 0 0 40px rgba(163, 230, 53, 0.15);
}

.installation-disclaimer {
    max-width: 920px;
    margin: 0 auto 48px;
    padding: 18px 22px 18px 24px;
    background: rgba(54, 61, 71, 0.92);
    border-left: 4px solid var(--green-accent);
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.installation-disclaimer p {
    color: var(--text-muted-int);
    font-size: 15px;
    line-height: 1.65;
    margin: 0;
}

.installation-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(32px, 5vw, 56px);
    align-items: start;
}

.installation-copy {
    position: relative;
    padding: 8px 8px 8px 0;
    z-index: 1;
}

.installation-copy::before {
    content: "";
    position: absolute;
    left: -8%;
    top: 50%;
    transform: translateY(-50%);
    width: min(420px, 90vw);
    height: min(420px, 90vw);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.1) 0%, transparent 68%);
    pointer-events: none;
    z-index: -1;
}

.installation-copy p {
    color: var(--text-muted-int);
    margin-bottom: 1.25rem;
    font-size: 16px;
    line-height: 1.8;
    max-width: 34em;
}

.installation-copy p:last-child {
    margin-bottom: 0;
}

.installation-copy strong {
    font-weight: 600;
    color: var(--text-main-int);
}

.installation-visual {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.smartscreen-stack {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 360px;
    margin: 0 auto;
}

.smartscreen-deco {
    position: absolute;
    right: -12px;
    bottom: 0;
    width: 220px;
    height: 200px;
    background: linear-gradient(145deg, #ff5252 0%, var(--smartscreen-red-deep) 100%);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    z-index: 0;
    overflow: hidden;
}

.smartscreen-deco__star {
    position: absolute;
    color: rgba(255, 255, 255, 0.45);
    font-size: 14px;
    top: 24%;
    left: 18%;
}

.smartscreen-deco__star--2 {
    top: 55%;
    left: 72%;
    font-size: 11px;
    opacity: 0.7;
}

.smartscreen-deco__star--3 {
    top: 12%;
    left: 58%;
    font-size: 9px;
    opacity: 0.5;
}

.smartscreen-deco__swirl {
    position: absolute;
    bottom: 12px;
    left: 12px;
    width: 100px;
    height: 70px;
    opacity: 0.5;
}

.smartscreen {
    position: absolute;
    width: 100%;
    max-width: 340px;
    font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.2);
    background: #ececec;
}

.smartscreen--expanded {
    left: 0;
    bottom: 8px;
    z-index: 1;
}

.smartscreen--initial {
    right: 0;
    top: 0;
    z-index: 2;
}

.smartscreen__titlebar {
    background: linear-gradient(180deg, var(--smartscreen-red) 0%, var(--smartscreen-red-deep) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 14px;
    letter-spacing: 0.01em;
}

.smartscreen__body {
    padding: 14px 16px 12px;
    font-size: 12px;
    line-height: 1.45;
    color: #1a1a1a;
    background: #f3f3f3;
}

.smartscreen__body p {
    margin: 0 0 10px;
}

.smartscreen__lead {
    margin-bottom: 12px !important;
}

.smartscreen__meta {
    font-size: 11.5px;
    margin-bottom: 6px !important;
}

.smartscreen__label {
    font-weight: 600;
}

.smartscreen__link {
    color: #0067c0;
    text-decoration: underline;
    font-size: 12px;
}

.smartscreen__footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    padding: 10px 12px 12px;
    background: #e8e8e8;
    border-top: 1px solid #d0d0d0;
}

.smartscreen__footer--single {
    justify-content: flex-end;
}

.smartscreen__btn {
    font-family: inherit;
    font-size: 12px;
    padding: 6px 16px;
    border-radius: 2px;
    border: 1px solid #adadad;
    cursor: default;
    background: #fff;
    color: #1a1a1a;
}

.smartscreen__btn--primary {
    border-color: #adadad;
    font-weight: 600;
}

.smartscreen__btn--secondary {
    background: #e1e1e1;
}

.smartscreen__btn--solo {
    min-width: 88px;
}

.section-title {
    text-align: center;
    font-size: 40px;
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted-int);
    margin-bottom: 60px;
}

/* --- Características Destacadas --- */
.features-section {
    max-width: 1200px;
    margin: 100px auto;
    padding: 0 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.feature-card {
    background: var(--bg-card-int);
    border: 1px solid var(--border-color-int);
    border-radius: 12px;
    padding: 30px;
}

.icon-box {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 20px;
}

.icon-box.blue { background: #1a237e; }
.icon-box.orange { background: #e65100; }
.icon-box.purple-icon { background: #4a148c; }
.icon-box.yellow { background: #f57f17; }

.feature-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.feature-card p {
    color: var(--text-muted-int);
    font-size: 14px;
}

/* --- Planes (pricing) --- */
.pricing-section {
    max-width: 1220px;
    margin: 80px auto 0;
    padding: 0 24px 40px;
}

.pricing-section__inner {
    width: 100%;
}

.pricing-section__title {
    text-align: center;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-main-int);
    margin-bottom: 12px;
}

.pricing-section__subtitle {
    text-align: center;
    color: var(--text-muted-int);
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.55;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.pricing-card {
    position: relative;
    background: var(--bg-card-int);
    border: 1px solid var(--border-color-int);
    border-radius: 14px;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pricing-card--free {
    border-color: rgba(96, 165, 250, 0.35);
}

.pricing-card--premium {
    border-color: rgba(251, 191, 36, 0.45);
    box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.2), 0 12px 40px rgba(0, 0, 0, 0.35);
}

.pricing-card--agency {
    border-color: rgba(52, 211, 153, 0.45);
    background: linear-gradient(165deg, rgba(52, 211, 153, 0.08) 0%, var(--bg-card-int) 45%);
}

.pricing-card__badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 6px 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
    color: #1a1408;
}

.pricing-card__badge--gratis {
    background: linear-gradient(135deg, #66bb6a 0%, #43a047 100%);
    color: #0d1f12;
    box-shadow: 0 2px 10px rgba(67, 160, 71, 0.35);
}

.pricing-card__name {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text-main-int);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.pricing-card__name--gold {
    color: #fbbf24;
    text-shadow: 0 0 18px rgba(251, 191, 36, 0.25);
}

.pricing-card__name--agency {
    color: var(--green-brand);
}

.pricing-card__tagline {
    font-size: 13px;
    color: var(--text-muted-int);
    line-height: 1.45;
    margin-bottom: 20px;
    min-height: 2.8em;
}

.pricing-card__agency-highlight {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--green-accent);
    line-height: 1.4;
    margin-bottom: 14px;
    text-shadow: 0 0 20px rgba(163, 230, 53, 0.2);
}

.pricing-card__agency-text {
    font-size: 15px;
    color: var(--text-muted-int);
    line-height: 1.65;
    margin-bottom: 16px;
}

.pricing-card__list-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--green-brand);
    margin-bottom: 10px;
}

.pricing-card__list--agency {
    margin-bottom: 0;
    flex: 1;
}

.pricing-card__price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main-int);
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.pricing-card__price--premium {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 4px;
}

.pricing-card__period {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted-int);
}

.pricing-card__list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
    flex: 1;
}

.pricing-card__list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--text-main-int);
    line-height: 1.45;
}

.pricing-card__list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green-brand);
    font-weight: 700;
    font-size: 13px;
}

.pricing-card__footer {
    margin-top: auto;
    padding-top: 8px;
}

.pricing-card__note {
    display: block;
    width: 100%;
    text-align: center;
    padding: 12px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-color-int);
    color: var(--text-muted-int);
    font-size: 13px;
    font-weight: 600;
}

.pricing-card__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-align: center;
    transition: opacity 0.2s ease, transform 0.15s ease;
}

.pricing-card__cta:hover {
    opacity: 0.92;
}

.pricing-card__cta--subscribe {
    background: linear-gradient(180deg, #38bdf8 0%, #0ea5e9 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.35);
}

.pricing-card__cta--subscribe:hover {
    color: #fff;
}

.pricing-card__cta-icon {
    font-size: 1.1em;
}

/* --- Comunidad y Contacto --- */
.community-section {
    max-width: 1000px;
    margin: 100px auto;
    padding: 0 50px;
    margin-bottom: 100px;
}

.community-box {
    background: var(--community-box-bg);
    border: 1px solid var(--border-color-int);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
}

.community-box h2 {
    font-size: 32px;
    margin-bottom: 15px;
}

.community-box > p {
    color: var(--text-muted-int);
    margin-bottom: 40px;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px 20px;
    margin-bottom: 40px;
}

.btn-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    min-width: 200px;
    max-width: 100%;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(75, 85, 99, 0.55);
    color: var(--text-main-int);
    font-weight: 700;
    text-align: left;
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-contact--discord {
    border-color: #5865F2;
}

.btn-contact--discord:hover {
    background: rgba(88, 101, 242, 0.14);
    border-color: #7289da;
    box-shadow: 0 0 0 1px rgba(88, 101, 242, 0.35);
}

.btn-contact--discord .btn-contact__icon {
    color: #5865F2;
}

.btn-contact--tiktok {
    border-color: #00f2ea;
}

.btn-contact--tiktok:hover {
    background: rgba(0, 242, 234, 0.1);
    border-color: #5ffbf5;
    box-shadow: 0 0 0 1px rgba(0, 242, 234, 0.35);
}

.btn-contact__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.btn-contact__svg {
    display: block;
    width: 32px;
    height: 32px;
}

.btn-contact__label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    line-height: 1.2;
}

.btn-contact__line {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.btn-contact__platform {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.contact-info {
    text-align: left;
    max-width: 600px;
    margin: 0 auto;
}

.contact-info p {
    margin-bottom: 15px;
    color: var(--text-main-int);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tag {
    background: var(--tag-bg);
    padding: 6px 12px;
    border-radius: 999px;
    font-family: ui-monospace, monospace;
    font-size: 13px;
    color: var(--tag-fg);
    border: 1px solid var(--tag-border);
}

/* --- Responsivo --- */
@media (max-width: 900px) {
    .hero-interactive {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-buttons, .user-stats {
        justify-content: center;
    }
    
    .installation-grid {
        grid-template-columns: 1fr;
    }

    .smartscreen-stack {
        display: flex;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        height: auto;
        min-height: 0;
        max-width: 400px;
        padding-bottom: 0;
    }

    .smartscreen {
        position: relative;
        max-width: none;
        left: auto;
        right: auto;
        top: auto;
        bottom: auto;
    }

    .smartscreen--initial {
        order: 1;
        z-index: 2;
    }

    .smartscreen--expanded {
        order: 2;
        z-index: 1;
    }

    .smartscreen-deco {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-buttons {
        flex-direction: column;
    }
}

@media (max-width: 1100px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 440px;
        margin: 0 auto;
    }
}

@media (max-width: 600px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .hero-content h1 {
        font-size: 40px;
    }
}
