:root {
    --primary-color: #4361ee;
    --primary-dark: #3a0ca3;
    --secondary-color: #f72585;
    --text-color: #2b2d42;
    --text-light: #8d99ae;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    color: var(--text-color);
}

.main-wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- Login & Register Styles --- */
.register-container {
    background: var(--white);
    padding: 50px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 700px;
    position: relative;
    overflow: hidden;
}

.register-container.login-mode {
    max-width: 450px;
}

/* Decoración superior */
.register-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.register-header {
    text-align: center;
    margin-bottom: 40px;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: rgba(67, 97, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary-color);
    font-size: 28px;
}

.register-header h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: var(--text-color);
}

.register-header p {
    margin: 10px 0 0;
    color: var(--text-light);
    font-size: 15px;
}

.form-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--primary-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-grid.three-col {
    grid-template-columns: 1fr 1fr 1fr;
}

.input-group {
    margin-bottom: 0; /* Controlado por el grid */
}

.input-group.full-width {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 16px;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #edf2f7;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    transition: var(--transition);
    background-color: #fcfcfc;
    box-sizing: border-box;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.input-wrapper input:focus + i {
    color: var(--primary-color);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.register-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #edf2f7;
}

.register-footer p {
    margin: 0;
    color: var(--text-light);
    font-size: 14px;
}

.register-footer a, .actions a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.register-footer a:hover, .actions a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .register-container {
        padding: 30px 20px;
    }

    .form-grid, .form-grid.three-col {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .input-group.full-width {
        margin-bottom: 15px;
    }
}

/* Alertas */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert.error {
    background-color: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
}

.alert.success {
    background-color: #f0fff4;
    color: #38a169;
    border: 1px solid #c6f6d5;
}

/* --- Dashboard Styles --- */
.dashboard-wrapper {
    display: flex;
    min-height: 100vh;
    background-color: #f0f2f5;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--white);
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-header {
    padding: 25px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
    overflow-y: auto;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    border-left: 4px solid transparent;
}

.sidebar-nav li a:hover, .sidebar-nav li.active a {
    background-color: #f8f9fa;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #f0f0f0;
}

.btn-logout-sidebar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #e74c3c;
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s;
}

.btn-logout-sidebar:hover {
    color: #c0392b;
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 260px;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    height: 70px;
    background: var(--white);
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.toggle-sidebar {
    font-size: 20px;
    color: var(--text-light);
    cursor: pointer;
}

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

.user-info {
    text-align: right;
}

.user-name {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

.user-role {
    display: block;
    font-size: 12px;
    color: var(--text-light);
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: #e0e7ff;
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Content */
.content-container {
    padding: 30px;
    flex: 1;
}

.page-header {
    margin-bottom: 30px;
}

.page-header h1 {
    font-size: 24px;
    margin: 0 0 5px;
    color: var(--text-color);
}

.page-header p {
    margin: 0;
    color: var(--text-light);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-icon.blue { background: #e0e7ff; color: #4361ee; }
.stat-icon.green { background: #dcfce7; color: #27ae60; }
.stat-icon.orange { background: #ffedd5; color: #f39c12; }
.stat-icon.purple { background: #f3e8ff; color: #8e44ad; }

.stat-details h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
}

.stat-details p {
    margin: 5px 0 0;
    color: var(--text-light);
    font-size: 14px;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 25px;
}

.content-card {
    background: var(--white);
    border-radius: 15px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #f0f0f0;
}

.card-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.card-body {
    padding: 25px;
}

/* Activity List */
.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f9f9f9;
}

.activity-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.activity-info h4 {
    margin: 0 0 5px;
    font-size: 15px;
    font-weight: 500;
}

.activity-info span {
    font-size: 12px;
    color: var(--text-light);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.action-btn {
    width: 100%;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    border-radius: 10px;
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
}

.action-btn i {
    color: var(--primary-color);
}

.action-btn:hover {
    background: #e0e7ff;
    color: var(--primary-color);
}

/* Mobile */
@media (max-width: 992px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
}

/* --- Pricing Styles --- */
.pricing-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.pricing-header {
    margin-bottom: 50px;
}

.pricing-header h2 {
    font-size: 36px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.pricing-header .back-link {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px;
}

.pricing-card {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}

.card-header h3 {
    font-size: 24px;
    color: var(--text-color);
    margin-bottom: 20px;
}

.pack-icon-placeholder {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.card-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    color: var(--primary-dark);
    margin-bottom: 5px;
}

.card-price .currency {
    font-size: 24px;
    font-weight: 600;
    margin-right: 5px;
}

.card-price .amount {
    font-size: 48px;
    font-weight: 700;
}

.card-price .period {
    font-size: 16px;
    color: var(--text-light);
    margin-left: 5px;
}

.card-price-year {
    font-size: 14px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.card-features {
    text-align: left;
    margin-bottom: 30px;
    flex-grow: 1;
}

.feature-item {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-item i {
    color: #27ae60;
}

.btn-select {
    width: 100%;
    padding: 12px;
    background: var(--white);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: auto;
}

.btn-select:hover {
    background: var(--primary-color);
    color: var(--white);
}

/* Destacar una tarjeta si se desea */
.pricing-card.featured {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
}
