:root {
    /* Fallbacks para cuando este layout se usa sin el tema del panel */
    --teacher-saas-primary: #4f46e5;
    --teacher-saas-bg: #ffffff;
    --teacher-saas-card: #f8faff;
    --teacher-saas-text: #111827;
    --teacher-saas-muted: #6b7280;
    /* Aliases de theme que el layout comercial no setea */
    --theme-primary: #4f46e5;
    --theme-background: #ffffff;
    --theme-tertiary: #f8faff;
    --theme-on-background: #111827;
    --theme-quaternary: #111827;
    --theme-quaternary-rgb: 17, 24, 39;
    --theme-text-muted: #6b7280;
    --theme-shadow-1: 0 4px 16px rgba(15, 23, 42, 0.08);
}

.teacher-saas-body {
    background-color: #fff;
    color: #111827;
    font-family: var(--theme-font-body, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif);
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

:where(
    .teacher-saas-body p,
    .teacher-saas-body span,
    .teacher-saas-body li,
    .teacher-saas-body a,
    .teacher-saas-body label,
    .teacher-saas-body small,
    .teacher-saas-body button,
    .teacher-saas-body input,
    .teacher-saas-body select,
    .teacher-saas-body textarea,
    .teacher-saas-body .form-text,
    .teacher-saas-body .form-label,
    .teacher-saas-body .btn,
    .teacher-saas-body .text-muted
) {
    font-family: var(--theme-font-body, inherit);
}

.teacher-saas-body h1,
.teacher-saas-body .display-1,
.teacher-saas-body .display-2,
.teacher-saas-body .display-3,
.teacher-saas-body .display-4,
.teacher-saas-body .display-5,
.teacher-saas-body .display-6 {
    font-family: var(--theme-font-heading-primary, "Playfair Display", Georgia, "Times New Roman", serif);
}

.teacher-saas-body h2,
.teacher-saas-body h3,
.teacher-saas-body h4,
.teacher-saas-body h5,
.teacher-saas-body h6 {
    font-family: var(--theme-font-heading-secondary, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif);
}

/* ===== NAVBAR ===== */

.teacher-saas-nav {
    background: linear-gradient(90deg, #4f46e5, #6d28d9);
    color: #fff;
}

.teacher-saas-logo {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
    text-decoration: none;
}


.teacher-saas-navbar a.teacher-saas-logo {
    background: #fff;
    border-radius: 8px;
    padding: 4px 10px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}

.teacher-saas-navbar .nav-link {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}

.teacher-saas-navbar .nav-link:hover,
.teacher-saas-navbar .nav-link:focus,
.teacher-saas-navbar .nav-link.active {
    color: #fff;
}

.teacher-saas-navbar .dropdown-menu {
    border-radius: 12px;
    border: 1px solid #ddd6fe;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
}

.teacher-saas-navbar .dropdown-item.active,
.teacher-saas-navbar .dropdown-item:active {
    background-color: #eef2ff;
    color: #312e81;
}

.teacher-saas-nav-primary {
    font-weight: 700;
}

/* ===== LAYOUT SHELL ===== */

.teacher-saas-main {
    flex: 1;
}

.teacher-saas-footer {
    background-color: #111827;
    color: #f9fafb;
}

/* ===== HERO ===== */

.teacher-saas-hero {
    background: linear-gradient(160deg, #f0edff 0%, #f7f5ff 45%, #ffffff 100%);
    padding: 80px 0 60px;
}

.teacher-saas-hero-centered {
    position: relative;
    overflow: hidden;
    padding: 90px 0 72px;
}

/* Blobs decorativos de fondo */
.teacher-saas-hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: 0;
}

.teacher-saas-hero-blob-1 {
    width: 420px;
    height: 420px;
    background: rgba(109, 40, 217, 0.1);
    top: -120px;
    right: -80px;
}

.teacher-saas-hero-blob-2 {
    width: 300px;
    height: 300px;
    background: rgba(79, 70, 229, 0.08);
    bottom: -80px;
    left: -60px;
}

/* Chips de features */
.teacher-saas-hero-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.teacher-saas-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background-color: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    padding: 5px 14px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #4f46e5;
    white-space: nowrap;
}

/* Nota de fricción cero */
.teacher-saas-hero-disclaimer {
    font-size: 0.82rem;
    color: #9ca3af;
    margin-bottom: 0;
}

/* ===== SECTIONS ===== */

.teacher-saas-section {
    padding: 60px 0;
}

.teacher-saas-section-soft {
    background-color: #f8faff;
}

/* ===== CARDS GENÉRICAS ===== */

.teacher-saas-card {
    background-color: #fff;
    border: 1px solid #ddd6fe;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.1);
}

.teacher-saas-auth .teacher-saas-card {
    border: 1px solid #eef2ff;
}

.teacher-saas-auth .divider {
    font-size: 0.85rem;
    color: #6b7280;
    position: relative;
}

.teacher-saas-auth .divider::before,
.teacher-saas-auth .divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background-color: rgba(17, 24, 39, 0.15);
}

.teacher-saas-auth .divider::before { left: 0; }
.teacher-saas-auth .divider::after  { right: 0; }

/* ===== VISUAL MOCKUP (HERO HOME) ===== */

.teacher-saas-hero-visual {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ddd6fe;
    box-shadow: 0 16px 40px rgba(79, 70, 229, 0.13);
    overflow: hidden;
}

.teacher-saas-hero-visual-header {
    background: linear-gradient(90deg, #4f46e5, #6d28d9);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.teacher-saas-hero-visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    flex-shrink: 0;
}

.teacher-saas-hero-visual-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.teacher-saas-hero-visual-body {
    padding: 20px;
}

.teacher-saas-hero-visual-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0ff;
    font-size: 0.875rem;
    color: #374151;
}

.teacher-saas-hero-visual-row:last-of-type {
    border-bottom: none;
}

.teacher-saas-hero-visual-divider {
    height: 1px;
    background: #eef2ff;
    margin: 12px 0;
}

.teacher-saas-hero-visual-stat-row {
    display: flex;
    justify-content: space-around;
    padding: 6px 0 2px;
}

.teacher-saas-hero-visual-stat {
    text-align: center;
}

.teacher-saas-hero-visual-stat-number {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #4f46e5;
}

.teacher-saas-hero-visual-stat-label {
    font-size: 0.72rem;
    color: #6b7280;
}

.teacher-saas-hero-visual-row > span:first-of-type {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.teacher-saas-hero-visual-status {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    border-radius: 999px;
    padding: 2px 8px;
}

.teacher-saas-hero-visual-stat-number i {
    font-size: 0.85rem;
    color: #f59e0b;
}

/* Toggle del reenvío de verificación (Register) */
.teacher-saas-resend-toggle {
    cursor: pointer;
}

.teacher-saas-resend-toggle:hover {
    color: #4f46e5 !important;
}

/* ===== PROOF BADGES ===== */

.teacher-saas-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.95rem;
}

/* ===== FRANJA DE VALOR ===== */

.teacher-saas-value-strip {
    background-color: #fff;
    border-top: 1px solid #eef2ff;
    border-bottom: 1px solid #eef2ff;
    padding: 56px 0;
}

/* ===== FEATURE CARDS ===== */

.teacher-saas-feature {
    background-color: #fff;
    border: 1px solid #e8ecff;
    border-radius: 14px;
    padding: 22px;
    height: 100%;
    position: relative;
}

.teacher-saas-feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background-color: #eef2ff;
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    margin-bottom: 14px;
    flex-shrink: 0;
}

/* ===== STEPS ===== */

.teacher-saas-step {
    background-color: #fff;
    border-radius: 16px;
    padding: 24px;
    height: 100%;
    border: 1px solid #eef2ff;
}

.teacher-saas-step-number {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: #eef2ff;
    color: #4f46e5;
    font-weight: 700;
    margin-bottom: 12px;
}

/* ===== PRICING CARDS ===== */

.teacher-saas-pricing-card {
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 28px;
    background-color: #fff;
    height: 100%;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.teacher-saas-pricing-highlight {
    border-color: #4f46e5;
    box-shadow: 0 14px 32px rgba(79, 70, 229, 0.16);
}

.teacher-saas-price {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.teacher-saas-price span {
    font-size: 0.95rem;
    font-weight: 500;
    color: #6b7280;
}

.teacher-saas-trial-badge {
    background-color: #dcfce7;
    color: #15803d;
    font-size: 0.72rem;
    font-weight: 700;
}

/* ===== COMPARE TABLE ===== */

.teacher-saas-compare-table {
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
}

.teacher-saas-compare-table th,
.teacher-saas-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid #eef2ff;
    font-size: 0.92rem;
}

.teacher-saas-compare-table thead th {
    background-color: #f8faff;
    border-bottom: 1px solid #ddd6fe;
    font-weight: 700;
}

.teacher-saas-compare-table tbody tr:last-child td {
    border-bottom: none;
}

.teacher-saas-compare-table .teacher-saas-compare-pro {
    background-color: #eef2ff;
}

.teacher-saas-compare-table thead .teacher-saas-compare-pro {
    background-color: #e0e7ff;
    color: #312e81;
}

.teacher-saas-compare-yes {
    color: #16a34a;
}

.teacher-saas-compare-no {
    color: #9ca3af;
}

/* ===== ADD-ONS ===== */

.teacher-saas-addon-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #111827;
}

.teacher-saas-addon-price span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
}

/* ===== FAQ ===== */

.teacher-saas-faq .accordion-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e6e8f0;
    margin-bottom: 12px;
}

.teacher-saas-faq .accordion-button:not(.collapsed) {
    background-color: #eef2ff;
    color: #312e81;
}

/* ===== CTA BANNER ===== */

.teacher-saas-cta {
    background-color: #eef2ff;
}

/* ===== PRO CALLOUT ===== */

.teacher-saas-pro-callout {
    background: linear-gradient(90deg, #4f46e5, #6d28d9);
    color: #fff;
    border-radius: 12px;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.teacher-saas-pro-callout p {
    margin-bottom: 0;
    font-size: 0.95rem;
}

.teacher-saas-pro-callout .btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== ORDENA SECTION ===== */

.teacher-saas-ordena-inner {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e8ecff;
    padding: 36px 40px;
}

/* ===== QUIÉNES SOMOS ===== */

.teacher-saas-quienes {
    border-left: 4px solid #4f46e5;
    padding-left: 24px;
}

/* ===== PERSONA CARDS (Funcionalidades) ===== */

.teacher-saas-persona-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e8ecff;
    border-radius: 14px;
    height: 100%;
}

.teacher-saas-persona-icon {
    font-size: 1.4rem;
    color: #4f46e5;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== MISC ===== */

.teacher-saas-plan {
    background-color: #f4f5ff;
    border-radius: 12px;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.teacher-saas-icon {
    font-size: 2.5rem;
    color: #4f46e5;
}

.teacher-saas-slug-status {
    font-size: 0.85rem;
    margin-top: 6px;
    color: #6b7280;
}

.teacher-saas-slug-status.is-available {
    color: #16a34a;
    font-weight: 600;
}

.teacher-saas-slug-status.is-unavailable {
    color: #dc2626;
    font-weight: 600;
}

.teacher-saas-slug-status.is-checking {
    color: #6b7280;
    font-style: italic;
}

.teacher-saas-summary {
    background-color: rgba(17, 24, 39, 0.04);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.teacher-saas-primary-cta {
    min-width: 210px;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.25);
}

/* ===== RESPONSIVE ===== */

@media (max-width: 991px) {
    .teacher-saas-hero {
        padding-top: 50px;
    }

    .teacher-saas-proof {
        gap: 10px;
        font-size: 0.9rem;
    }

    .teacher-saas-navbar .navbar-collapse {
        margin-top: 14px;
        background-color: rgba(30, 27, 75, 0.5);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 12px;
        padding: 12px;
    }

    .teacher-saas-ordena-inner {
        padding: 24px 20px;
    }
}

.teacher-saas-footer-heading {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 12px;
}

.teacher-saas-footer-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.teacher-saas-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 28px;
    padding-top: 16px;
}

.teacher-saas-footer-links a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
}

.teacher-saas-footer-links a:hover,
.teacher-saas-footer-links a:focus {
    color: #fff;
    text-decoration: underline;
}

.teacher-saas-contact-card {
    position: sticky;
    top: 24px;
}

.teacher-saas-contact-mail {
    color: #312e81;
    font-weight: 600;
    text-decoration: none;
}

.teacher-saas-contact-mail:hover,
.teacher-saas-contact-mail:focus {
    text-decoration: underline;
}

.teacher-saas-legal-card {
    max-width: 940px;
    margin: 0 auto;
}

.teacher-saas-legal-card p,
.teacher-saas-legal-card li {
    color: #4b5563;
}
