/* === ACADEMY BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: #FAF2E0;
    color: #333;
    line-height: 1.6;
}

/* === HEADER (compact) === */
.academy-header {
    background: #524594;
    padding: 0.6rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
}
.academy-nav {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.logout-link {
    color: rgba(250,242,224,0.7);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.2s;
}
.logout-link:hover {
    color: #FAF2E0;
}
.academy-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #FAF2E0;
    font-size: 1rem;
}
.academy-logo-img {
    height: 32px;
    width: auto;
}

/* === LOGIN VIEW === */
.login-info-sections {
    background: #fff;
    padding: 3rem 2rem;
}
.login-info-sections .container {
    max-width: 950px;
    margin: 0 auto;
}

.login-view {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 950px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(82,69,148,0.12);
}

/* Left promo */
.login-promo {
    background: linear-gradient(135deg, #524594 0%, #3d3470 100%);
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.promo-banner {
    text-align: center;
    color: #FAF2E0;
}
.promo-logo {
    width: 60px;
    margin-bottom: 1.5rem;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.promo-tag {
    display: inline-block;
    background: rgba(235,229,84,0.2);
    color: #EBE554;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.promo-banner h2 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}
.promo-level {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1.5rem;
}
.promo-date {
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}
.promo-date-label {
    display: block;
    font-size: 0.7rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.promo-date-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 700;
    color: #EBE554;
    margin-top: 0.3rem;
}
.promo-cta-text {
    font-size: 0.75rem;
    opacity: 0.7;
    font-style: italic;
}

/* Right form */
.login-form-area {
    padding: 3rem 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-card {
    width: 100%;
    max-width: 340px;
}
.login-card h1 {
    color: #524594;
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
}
.login-subtitle {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 2rem;
}
.form-group {
    margin-bottom: 1.2rem;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.4rem;
}
.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus {
    border-color: #524594;
}
.login-error {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-bottom: 0.8rem;
}
.login-btn {
    width: 100%;
    padding: 0.9rem;
    background: #524594;
    color: #FAF2E0;
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.login-btn:hover {
    background: #3d3470;
    transform: translateY(-1px);
}

/* === DASHBOARD VIEW === */
.dashboard-view {
    padding: 0;
}
.dashboard-container {
    max-width: 100%;
    display: flex;
    min-height: calc(100vh - 50px);
}

/* Welcome */
.dashboard-welcome {
    margin-bottom: 2rem;
}
.dashboard-welcome h1 {
    font-size: 2rem;
    color: #524594;
}
.welcome-subtitle {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.3rem;
}

/* Dashboard Grid */
.dashboard-main {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 80%;
}

/* Sidebar Panel (always open on desktop, left side) */
.sidebar-drawer {
    width: 20%;
    background: #fff;
    border-right: 1px solid #e8e8e8;
    padding: 2rem 1rem;
    overflow-y: auto;
    position: sticky;
    top: 50px;
    height: calc(100vh - 50px);
    order: -1;
}
.drawer-toggle {
    display: none;
}
.drawer-content {
    transform: none;
    width: 100%;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
}
.drawer-title {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

/* Level items */
.drawer-level {
    margin-bottom: 0.3rem;
}
.drawer-level-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.82rem;
    transition: background 0.2s;
}
.drawer-level-header:hover {
    background: #f8f6ff;
}
.drawer-level-icon {
    font-size: 0.6rem;
    color: #888;
    flex-shrink: 0;
    width: 12px;
}
.drawer-level-label {
    flex: 1;
    font-weight: 500;
    color: #333;
}
.drawer-level-badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
}
.drawer-level-active .drawer-level-label {
    color: #524594;
}

/* Module list inside Level 1 */
.drawer-level-modules {
    padding-left: 1.4rem;
    margin-top: 0.2rem;
}
.drawer-module {
    font-size: 0.78rem;
    color: #555;
    padding: 0.4rem 0.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 0.1rem;
}
.drawer-module:hover {
    background: #f0edfa;
    color: #524594;
}
.drawer-module.active {
    background: #524594;
    color: #fff;
}

/* Level detail (locked levels) */
.drawer-level-detail {
    padding: 0.6rem 0.5rem 0.6rem 1.6rem;
    font-size: 0.78rem;
    color: #555;
}
.drawer-level-detail .locked-pricing {
    margin-bottom: 0.4rem;
}
.drawer-level-detail .detail-desc {
    margin-bottom: 0.3rem;
}
.drawer-level-detail .detail-method {
    color: #888;
    font-size: 0.72rem;
    margin-bottom: 0.4rem;
}
.drawer-level-detail .locked-contact {
    font-size: 0.78rem;
}
.drawer-level-detail .locked-contact a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}
.drawer-level-detail .locked-contact a:hover {
    text-decoration: underline;
}

/* Module detail card (right panel) */
.module-detail-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}
.module-detail-card h2 {
    color: #524594;
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

/* Module Cards */
.module-card {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border: 2px solid transparent;
    transition: border-color 0.2s;
}
.module-enabled {
    border-color: #27ae60;
}

/* Module Header */
.module-header {
    margin-bottom: 1rem;
}
.module-status-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.module-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
}
.badge-enabled {
    background: #e8f8f0;
    color: #27ae60;
}
.badge-locked {
    background: #f5f5f5;
    color: #999;
}
.badge-milestone {
    background: #fdf9e0;
    color: #b8a800;
}
.module-level {
    display: block;
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}
.module-card h2 {
    color: #524594;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}
.module-subtitle {
    color: #666;
    font-size: 0.9rem;
}

/* Payment Dropdown */
.module-payment-trigger {
    position: relative;
    cursor: pointer;
}
.payment-info-icon {
    font-size: 1rem;
}
.payment-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    min-width: 220px;
    z-index: 10;
    font-size: 0.85rem;
    color: #555;
}
.payment-dropdown.show {
    display: block;
}
.payment-dropdown p {
    margin-bottom: 0.3rem;
}

/* On desktop, show on hover too */
@media (hover: hover) {
    .module-payment-trigger:hover .payment-dropdown {
        display: block;
    }
}

/* Module Details */
.module-details {
    margin-bottom: 1.5rem;
}
.module-meta {
    margin-bottom: 1rem;
}
.meta-item {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: #555;
}
.module-methodology h4 {
    font-size: 0.9rem;
    color: #524594;
    margin-bottom: 0.4rem;
}
.module-methodology ul {
    list-style: none;
    padding: 0;
}
.module-methodology li {
    font-size: 0.85rem;
    color: #666;
    padding: 0.2rem 0;
    padding-left: 1.2rem;
    position: relative;
}
.module-methodology li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #524594;
}

/* Video */
.module-video {
    margin-bottom: 1.5rem;
}
.module-video h3 {
    font-size: 1rem;
    color: #524594;
    margin-bottom: 0.8rem;
}
.module-video video {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

/* Access Notice */
.module-access-notice {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: #f0edfa;
    border-radius: 10px;
    padding: 1rem 1.2rem;
}
.notice-icon {
    font-size: 1.3rem;
}
.module-access-notice p {
    font-size: 0.9rem;
    color: #524594;
}

/* Locked Module Info */
.module-locked-info {
    margin-top: 1.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
}
.locked-pricing {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.price-old {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through;
}
.price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: #524594;
}
.price-label {
    font-size: 0.8rem;
    color: #888;
}
.locked-contact {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: #666;
}
.locked-contact a {
    color: #25D366;
    font-weight: 600;
    text-decoration: none;
}
.locked-contact a:hover {
    text-decoration: underline;
}

/* Milestone */
.milestone-info {
    margin-top: 0.8rem;
}
.milestone-info p {
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 0.5rem;
}
.milestone-cost {
    font-size: 0.85rem;
    color: #888;
}
.milestone-progress {
    margin-top: 1rem;
}
.progress-bar {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: #524594;
    border-radius: 4px;
    transition: width 0.3s;
}
.progress-label {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.4rem;
    display: block;
}

/* === INFO SECTION === */
.info-section {
    margin: 2.5rem 0;
}
.info-section h2 {
    color: #524594;
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    text-align: center;
}
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.info-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}
.info-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.6rem;
}
.info-card h4 {
    color: #524594;
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
}
.info-card p {
    font-size: 0.85rem;
    color: #666;
}

/* Methodology */
.methodology-section {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}
.methodology-subtitle {
    text-align: center;
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.methodology-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}
.methodology-item {
    text-align: center;
    padding: 1rem;
}
.methodology-pct {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: #524594;
}
.methodology-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.3rem;
}
.methodology-item p {
    font-size: 0.8rem;
    color: #666;
}

/* Presenter */
.presenter-section {
    text-align: center;
    padding: 1.5rem 0;
    color: #555;
    font-size: 0.95rem;
}

/* Convenios */
.convenios-section {
    text-align: center;
    background: #f0edfa;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 2rem;
}
.convenios-section p {
    font-size: 0.9rem;
    color: #524594;
}
.convenios-section a {
    color: #524594;
    font-weight: 600;
    text-decoration: underline;
}

/* === FOOTER === */
.academy-footer {
    background: #524594;
    color: #FAF2E0;
    padding: 1.5rem 2rem;
    text-align: center;
}
.academy-footer p {
    font-size: 0.8rem;
    opacity: 0.8;
}
.footer-mission {
    margin-top: 0.8rem;
    font-size: 0.75rem;
    opacity: 0.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
    }
    .login-promo {
        padding: 2rem 1.5rem;
    }
    .promo-banner h2 {
        font-size: 1.2rem;
    }
    .login-form-area {
        padding: 2rem 1.5rem;
    }
    .dashboard-container {
        flex-direction: column;
    }
    .dashboard-main {
        max-width: 100%;
        padding: 1.5rem;
    }
    .dashboard-welcome h1 {
        font-size: 1.5rem;
    }
    .sidebar-drawer {
        width: 100%;
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding: 1.5rem;
        order: -1;
    }
    .module-card {
        padding: 1.5rem;
    }
    .info-grid,
    .methodology-grid {
        grid-template-columns: 1fr;
    }
    .payment-dropdown {
        left: auto;
        right: 0;
    }
}

/* Login links */
.login-links {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
}
.login-links a {
    font-size: 0.8rem;
    color: #524594;
    text-decoration: none;
}
.login-links a:hover {
    text-decoration: underline;
}

/* Modal overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
    overflow-y: auto;
}
.modal-content {
    background: #fff;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.modal-close:hover {
    color: #333;
}

/* Register modal */
.register-modal h2 {
    color: #524594;
    font-size: 1.4rem;
    margin-bottom: 0.2rem;
}
.register-subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.register-section-title {
    font-size: 0.9rem;
    color: #524594;
    margin-bottom: 0.8rem;
    font-weight: 600;
}
.register-divider {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 1.5rem 0;
}

/* Payment tabs */
.payment-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}
.payment-tab {
    flex: 1;
    padding: 0.6rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: border-color 0.2s;
}
.payment-tab.active {
    border-color: #524594;
    background: #f8f6ff;
}
.pse-tab-icon {
    height: 16px;
    width: auto;
}

/* Card input */
.card-input-row {
    position: relative;
}
.card-input-row input {
    width: 100%;
    padding: 0.8rem 1rem;
    padding-right: 3.5rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
}
.card-input-row input:focus {
    border-color: #524594;
}
.card-brand {
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 700;
    color: #524594;
    background: #f0edfa;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

/* Form row (side by side) */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

/* Register modal form-group inputs */
.register-modal .form-group {
    margin-bottom: 1rem;
}
.register-modal .form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #555;
    margin-bottom: 0.3rem;
}
.register-modal .form-group input,
.register-modal .form-group select {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.register-modal .form-group input:focus,
.register-modal .form-group select:focus {
    border-color: #524594;
}

/* PSE */
.pse-header {
    text-align: center;
    margin-bottom: 1rem;
}
.pse-logo {
    height: 40px;
    margin-bottom: 0.5rem;
}
.pse-header p {
    font-size: 0.8rem;
    color: #666;
}

/* Register submit */
.register-submit {
    width: 100%;
    margin-top: 1rem;
}
.register-error {
    color: #e74c3c;
    font-size: 0.85rem;
    text-align: center;
    margin-top: 0.8rem;
}

/* Register success */
.register-success {
    text-align: center;
    padding: 2rem 0;
}
.success-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}
.register-success h3 {
    color: #27ae60;
    margin-bottom: 0.5rem;
}
.register-success p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Promo register button */
.promo-register-btn {
    display: inline-block;
    margin-top: 1.2rem;
    padding: 0.7rem 1.8rem;
    background: #EBE554;
    color: #524594;
    border: none;
    border-radius: 25px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.promo-register-btn:hover {
    background: #d9d340;
    transform: translateY(-1px);
}

/* Drawer enroll button */
.drawer-enroll-btn {
    display: block;
    width: 100%;
    margin-top: 0.6rem;
    padding: 0.5rem;
    background: #524594;
    color: #FAF2E0;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}
.drawer-enroll-btn:hover {
    background: #3d3470;
}

/* === PROMO CODE BANNER === */
.promo-code-banner {
    background: linear-gradient(135deg, #f0edfa 0%, #e8e4f8 100%);
    border: 2px dashed #524594;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.promo-code-banner.promo-applied {
    background: linear-gradient(135deg, #e8f8f0 0%, #d4f5e4 100%);
    border-color: #27ae60;
}
.promo-code-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}
.promo-code-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #524594;
    margin-bottom: 0.8rem;
}
.promo-applied .promo-code-title {
    color: #27ae60;
}
.promo-code-input-row {
    display: flex;
    gap: 0.5rem;
    max-width: 320px;
    margin: 0 auto;
}
.promo-code-input-row input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 2px solid #e8e8e8;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 1px;
}
.promo-code-input-row input:focus {
    border-color: #524594;
}
.promo-code-input-row input:disabled {
    background: #f5f5f5;
    color: #888;
}
.promo-code-apply-btn {
    padding: 0.6rem 1rem;
    background: #524594;
    color: #FAF2E0;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    white-space: nowrap;
}
.promo-code-apply-btn:hover {
    background: #3d3470;
}
.promo-code-apply-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.promo-code-message {
    font-size: 0.8rem;
    margin-top: 0.6rem;
    font-weight: 500;
}
.promo-code-message.promo-success {
    color: #27ae60;
}
.promo-code-message.promo-error {
    color: #e74c3c;
}
.promo-code-message.promo-loading {
    color: #524594;
    font-style: italic;
}

/* Price strikethrough after promo */
.price-striked {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85em;
}
.price-discounted {
    color: #27ae60;
    font-weight: 700;
    font-size: 1.1em;
}

/* === PHONE INPUT === */
.phone-input-row {
    display: flex;
    gap: 0.5rem;
}
.phone-country-select {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #fff;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    padding: 0 0.6rem;
    min-width: 90px;
}
.phone-country-select:focus-within {
    border-color: #524594;
}
.country-flag {
    font-size: 1.1rem;
}
.phone-country-select select {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.85rem;
    outline: none;
    padding: 0.6rem 0;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
}
.phone-input-row input[type="tel"] {
    flex: 1;
    padding: 0.7rem 0.8rem;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}
.phone-input-row input[type="tel"]:focus {
    border-color: #524594;
}

/* === MERCADOPAGO PANEL === */
.mp-redirect-info {
    text-align: center;
    padding: 1rem 0;
}
.mp-logo-row {
    margin-bottom: 1rem;
}
.mp-logo {
    height: 32px;
    width: auto;
}
.mp-redirect-info > p {
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.8rem;
}
.mp-methods-list {
    list-style: none;
    padding: 0;
    text-align: left;
    max-width: 280px;
    margin: 0 auto 1rem;
}
.mp-methods-list li {
    font-size: 0.83rem;
    color: #555;
    padding: 0.35rem 0;
}
.mp-note {
    font-size: 0.78rem;
    color: #888;
    font-style: italic;
}

/* === LOADING SPINNER === */
.register-loading,
.registro-card .spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 2rem 0;
}
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e8e8e8;
    border-top-color: #524594;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.register-loading p {
    font-size: 0.9rem;
    color: #666;
}

/* === CARD FAILED STATE === */
.register-card-failed {
    text-align: center;
    padding: 2rem 0;
}
.register-card-failed h3 {
    color: #f57c00;
    margin-bottom: 0.5rem;
}
.register-card-failed p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}
.mp-fallback-link {
    display: inline-block;
    text-decoration: none;
    margin-bottom: 0.8rem;
}
.mp-fallback-note {
    font-size: 0.78rem;
    color: #888;
    font-style: italic;
}

/* === PAYMENT PENDING BANNER === */
.payment-pending-banner {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border: 2px solid #f57c00;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}
.pending-banner-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}
.pending-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}
.pending-text {
    flex: 1;
}
.pending-text strong {
    color: #e65100;
    font-size: 0.95rem;
    display: block;
    margin-bottom: 0.2rem;
}
.pending-text p {
    font-size: 0.82rem;
    color: #555;
    margin: 0;
}
.pending-pay-btn {
    padding: 0.6rem 1.2rem;
    background: #f57c00;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}
.pending-pay-btn:hover {
    background: #e65100;
}

@media (max-width: 768px) {
    .pending-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 0.8rem;
    }
}

/* === REGISTRO EXITOSO PAGE === */
.registro-exitoso-section {
    min-height: calc(100vh - 50px - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
}
.registro-card {
    background: #fff;
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 550px;
    width: 100%;
    box-shadow: 0 10px 40px rgba(82,69,148,0.12);
    text-align: center;
}
.registro-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 1rem;
}
.registro-card h1 {
    color: #524594;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.registro-card h2 {
    color: #524594;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}
.registro-name {
    font-size: 1.1rem;
    color: #333;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.registro-details {
    text-align: left;
    background: #f8f6ff;
    border-radius: 12px;
    padding: 1.2rem;
    margin-bottom: 1.5rem;
}
.registro-detail-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #ece8f8;
}
.registro-detail-item:last-child {
    border-bottom: none;
}
.detail-label {
    font-size: 0.82rem;
    color: #888;
}
.detail-value {
    font-size: 0.82rem;
    color: #333;
    font-weight: 500;
    text-align: right;
}
.registro-email-notice {
    font-size: 0.85rem;
    color: #555;
    background: #e8f8f0;
    border-radius: 8px;
    padding: 0.8rem;
    margin-bottom: 1.5rem;
}
.registro-continue-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}
.registro-support {
    font-size: 0.85rem;
    color: #666;
    margin-top: 1rem;
}
.registro-support a {
    color: #524594;
    font-weight: 600;
    text-decoration: none;
}
.registro-support a:hover {
    text-decoration: underline;
}
