/* ========================= */
/* Home */
/* ========================= */

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 56px;
    align-items: center;
    padding: 48px 0 72px;
}

.home-hero h1 {
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    margin: 0 0 20px;
    max-width: 16em;
}

.home-hero-lead {
    color: var(--muted);
    font-size: 1.12rem;
    line-height: 1.65;
    max-width: 36em;
    margin: 0;
}

.home-hero .hero-actions {
    margin-top: 30px;
}

.home-hero-note {
    margin: 16px 0 0;
    color: var(--muted-dark);
    font-size: 0.85rem;
}

.trial-box {
    margin-top: 28px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-md);
    background: var(--bg-soft);
}

.trial-box p {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 0.92rem;
}

.trial-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.trial-links a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.trial-links a:hover {
    color: var(--accent);
}

/* Marco tipo ventana de consola para capturas y vídeo del producto */
.console-frame {
    margin: 0;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: #0a0f11;
    overflow: hidden;
}

.console-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.console-frame video,
.console-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: top;
}

.console-frame img.img-natural {
    aspect-ratio: auto;
}

/* Módulos */
.module-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.module-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--card);
    overflow: hidden;
}

.module-card img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-bottom: 1px solid var(--border);
    background: #0a0f11;
}

.module-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    flex: 1;
}

.module-card h3 {
    margin: 4px 0 0;
    font-size: 1.6rem;
}

.module-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.module-card h3 a::after {
    content: " →";
    color: var(--muted-dark);
}

.module-card:hover h3 a::after {
    color: var(--accent);
}

.module-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.module-card .module-price {
    margin-top: auto;
    padding-top: 6px;
    color: var(--data);
    font-weight: 600;
}

.module-card img.img-top {
    object-position: top;
}

.module-card-wide {
    grid-column: 1 / -1;
    flex-direction: row;
}

.module-card-wide img {
    width: 50%;
    border-bottom: 0;
    border-right: 1px solid var(--border);
}

.module-card-wide .module-card-body {
    justify-content: center;
}

@media (max-width: 960px) {
    .module-card-wide {
        flex-direction: column;
    }

    .module-card-wide img {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }
}

/* Para quién es */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.audience-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 26px;
    background: var(--card);
}

.audience-card h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
}

.audience-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.65;
}

/* Cómo funciona */
.steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    counter-reset: none;
}

.steps li {
    border-top: 2px solid var(--border-strong);
    padding-top: 18px;
}

.step-num {
    color: var(--accent);
    font-size: 0.9rem;
}

.steps h3 {
    margin: 8px 0 8px;
    font-size: 1.35rem;
}

.steps p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

/* Packs */
.pack-list {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.pack-row {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) auto;
    gap: 20px;
    align-items: center;
    padding: 18px 22px;
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border-top: 1px solid var(--border);
}

.pack-row:first-child {
    border-top: 0;
}

.pack-row:hover {
    background: var(--card-strong);
}

.pack-row-featured {
    box-shadow: inset 3px 0 0 var(--accent);
}

.pack-name {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.3rem;
}

.pack-price {
    color: var(--text);
    font-weight: 600;
    white-space: nowrap;
}

.pack-price s {
    color: var(--muted-dark);
    font-weight: 500;
    margin-right: 6px;
}

/* Sección clara tipo papel de carta */
.paper-section {
    background: var(--paper);
    color: var(--ink);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    margin: 30px 0;
}

.paper-section .eyebrow {
    color: var(--ink-muted);
}

.paper-section .section-heading p,
.paper-links {
    color: var(--ink-muted);
}

.paper-section a {
    color: #1d5a8a;
}

.paper-section .review-card {
    background: #fffdf8;
    border: 1px solid #ddd6c6;
    color: var(--ink);
    box-shadow: none;
}

.paper-section .review-comment {
    color: var(--ink);
}

.paper-section .review-author {
    color: var(--ink);
}

.paper-section .review-date {
    color: var(--ink-muted);
}

.paper-links {
    margin: 28px 0 0;
}

/* Llamada final */
.cta-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    background: var(--card);
}

.cta-band h2 {
    margin: 0 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.cta-band p {
    margin: 0;
    color: var(--muted);
}

.cta-band .hero-actions {
    margin-top: 0;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 30px;
}

@media (max-width: 960px) {
    .home-hero,
    .module-grid,
    .audience-grid,
    .steps,
    .cta-band {
        grid-template-columns: 1fr;
    }

    .home-hero {
        gap: 32px;
        padding-top: 16px;
    }

    .pack-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .paper-section {
        padding: 36px 20px;
    }
}

/* Piezas que siguen usando otras páginas (test, planes, inglés) */
.home-product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.home-product-card,
.home-cta-band {
    border: 1px solid var(--border);
    background: var(--card);
}

.home-product-card {
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.home-product-card .card-button {
    margin-top: auto;
}

.home-product-card h3 {
    font-size: 1.8rem;
    margin: 0 0 12px;
}

.home-product-card p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0 0 22px;
}

.home-cta-band {
    border-radius: var(--radius-lg);
    padding: 36px;
}

.home-cta-band p {
    color: var(--muted);
    line-height: 1.7;
    margin: 0;
}

.price-pill {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    width: fit-content;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    color: var(--data);
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 18px;
}

.price-pill span {
    color: var(--muted-dark);
    font-size: 0.82rem;
}

.eyebrow-blue {
    color: var(--muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-weight: 500;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
}

/* ==========================================================================
   Fullscreen Toggle Button & Containers styling
   ========================================================================== */
.fullscreen-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f8fafc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    margin-top: 0; /* Override any general button margins */
}

.fullscreen-toggle-btn:hover {
    transform: scale(1.1);
    background: rgba(15, 23, 42, 0.85);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: none;
}

.fullscreen-toggle-btn:active {
    transform: scale(0.95);
}

/* Container modifications */
.pdea-frame-wrapper {
    position: relative;
}

/* Ensure the iframe fills wrapper in fullscreen */
.pdea-frame-wrapper:fullscreen {
    width: 100vw !important;
    height: 100vh !important;
    max-height: none !important;
    border-radius: 0 !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.pdea-frame-wrapper:fullscreen iframe {
    border-radius: 0 !important;
}

/* Style for English runner when in fullscreen */
#english-runner-app:fullscreen {
    background: var(--bg) !important;
    padding: 40px 20px !important;
    overflow-y: auto !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100vw !important;
    height: 100vh !important;
}

#english-runner-app:fullscreen .runner-container {
    width: 100%;
    max-width: 900px;
    margin: auto !important;
    padding-bottom: 40px;
}

#english-runner-app {
    position: relative;
}

#english-runner-app .fullscreen-toggle-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

#english-runner-app:fullscreen .fullscreen-toggle-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
}

/* ==========================================================================
   PASSWORD EYE TOGGLE AND COMPLEXITY STYLES
   ========================================================================== */
.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper input {
    width: 100% !important;
    padding-right: 45px !important;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted-dark);
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--accent);
}

.password-requirements {
    font-size: 0.82rem;
    color: var(--muted-dark);
    margin-top: 6px;
    margin-bottom: 12px;
    line-height: 1.4;
}

