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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* LOGIN PAGE */
.login-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.login-box h1 {
    color: #667eea;
    margin-bottom: 5px;
    font-size: 28px;
}

.login-box h2 {
    color: #666;
    font-size: 16px;
    margin-bottom: 30px;
    font-weight: normal;
}

.login-hint {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    font-size: 12px;
    color: #999;
    text-align: center;
}

/* ADMIN LAYOUT */
.admin-container {
    display: flex;
    min-height: 100vh;
}

.admin-nav {
    width: 250px;
    background: #2c3e50;
    color: white;
    padding: 20px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
}

.nav-header h2 {
    margin-bottom: 30px;
    font-size: 20px;
    color: #667eea;
}

.nav-menu {
    list-style: none;
}

.nav-menu li {
    margin-bottom: 10px;
}

.nav-menu a {
    color: #bbb;
    text-decoration: none;
    display: block;
    padding: 12px 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: #667eea;
    color: white;
}

.admin-main {
    margin-left: 250px;
    flex: 1;
    padding: 30px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.admin-header h1 {
    color: #2c3e50;
}

/* PLANES GRID */
.planes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.plan-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

.plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.plan-header h3 {
    color: #2c3e50;
    font-size: 18px;
}

.plan-badge {
    background: #667eea;
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
}

.plan-price {
    font-size: 24px;
    color: #667eea;
    font-weight: bold;
    margin-bottom: 10px;
}

.plan-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

.plan-features {
    margin-bottom: 15px;
}

.plan-features h4 {
    color: #2c3e50;
    font-size: 14px;
    margin-bottom: 8px;
}

.plan-features ul {
    list-style: none;
    padding-left: 0;
}

.plan-features li {
    color: #666;
    font-size: 13px;
    padding: 5px 0;
    padding-left: 20px;
    position: relative;
}

.plan-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #667eea;
    font-weight: bold;
}

.plan-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.plan-actions button {
    flex: 1;
}

/* FORMS */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 30px;
}

/* BUTTONS */
.btn-primary,
.btn-secondary,
.btn-edit,
.btn-delete {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-primary {
    background: #667eea;
    color: white;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-primary.btn-block {
    width: 100%;
}

.btn-secondary {
    background: #ddd;
    color: #333;
}

.btn-secondary:hover {
    background: #ccc;
}

.btn-edit {
    background: #27ae60;
    color: white;
    flex: 1;
}

.btn-edit:hover {
    background: #229954;
}

.btn-delete {
    background: #e74c3c;
    color: white;
    flex: 1;
}

.btn-delete:hover {
    background: #c0392b;
}

/* MODAL */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
    color: #2c3e50;
    margin-bottom: 20px;
}

.close {
    float: right;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #000;
}

/* ALERTS */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    font-size: 14px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

        @media (max-width: 768px) {
    .admin-nav {
        width: 100%;
        height: auto;
        position: relative;
        padding: 15px;
    }

    .admin-main {
        margin-left: 0;
        padding: 15px;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .planes-grid {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav-menu li {
        margin-bottom: 0;
    }

    .nav-menu a {
        padding: 8px 12px;
        font-size: 13px;
    }
}



/* CONFIGURACIÓN */
.config-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.config-form {
    max-width: 600px;
}

.config-section {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid #eee;
}

.config-section:last-child {
    border-bottom: none;
}

.config-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 18px;
}

.section-help {
    color: #999;
    font-size: 13px;
    margin-bottom: 15px;
}

.form-group small {
    display: block;
    color: #999;
    font-size: 12px;
    margin-top: 5px;
}
