:root {
    --color-primary: #00bcff;
    --color-secondary: #1253a2;
    --color-accent: #f2b500;
    --color-light: #c5efff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c5efff 100%);
    min-height: 100vh;
    padding-bottom: 50px;
}

/* Header */
.main-header {
    background: white;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 25px 0;
    margin-bottom: 40px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.logo-text h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--color-secondary);
    margin: 0;
    line-height: 1.2;
}

.logo-text p {
    color: #6c757d;
    font-size: 14px;
    margin: 5px 0 0 0;
}

.header-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.btn-header {
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid;
}

.btn-header-primary {
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    color: white;
    border-color: var(--color-primary);
}

.btn-header-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 188, 255, 0.4);
    color: white;
}

.btn-header-outline {
    background: white;
    color: var(--color-secondary);
    border-color: var(--color-light);
}

.btn-header-outline:hover {
    background: var(--color-light);
    border-color: var(--color-primary);
    color: var(--color-secondary);
    transform: translateY(-2px);
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--color-secondary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-subtitle {
    color: #6c757d;
    font-size: 16px;
    margin-bottom: 30px;
}

/* Form Styles */
.form-section-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-secondary);
    margin-top: 30px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-label {
    font-weight: 600;
    color: var(--color-secondary);
    margin-bottom: 8px;
}

.form-control,
.form-select {
    border: 2px solid var(--color-light);
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 188, 255, 0.1);
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
}

.btn-submit {
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 188, 255, 0.4);
}

.btn-submit:active {
    transform: translateY(-1px);
}

/* Alert Styles */
.custom-alert {
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: none;
    display: flex;
    align-items: start;
    gap: 15px;
}

.custom-alert.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.custom-alert.alert-info {
    background: var(--color-light);
    color: var(--color-secondary);
}

.custom-alert.alert-success {
    background: #d4edda;
    color: #155724;
}

/* Badge */
.custom-badge {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.badge-primary {
    background: var(--color-light);
    color: var(--color-secondary);
}

.badge-warning {
    background: #fff3cd;
    color: #856404;
}

.badge-success {
    background: #d4edda;
    color: #155724;
}

.badge-secondary {
    background: #e9ecef;
    color: #495057;
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 30px 20px;
    color: var(--color-secondary);
    margin-top: 50px;
}

.main-footer p {
    margin: 5px 0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }

    .header-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-header {
        width: 100%;
        justify-content: center;
    }

    .content-card {
        padding: 25px;
    }

    .page-title {
        font-size: 24px;
    }

    .form-section-title {
        font-size: 18px;
    }
}

/* Character Counter */
.char-counter {
    font-size: 13px;
    color: #6c757d;
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.char-counter.near-limit {
    color: var(--color-accent);
}

.char-counter.at-limit {
    color: #dc3545;
}

/* Botón menú móvil */
.mobile-menu-btn {
    display: none;
    background: var(--color-primary);
    border: none;
    color: white;
    font-size: 28px;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.mobile-menu-btn:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.mobile-menu-btn:active {
    transform: scale(0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .main-header {
        padding: 15px 0;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .header-buttons {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 999;
        flex-direction: column;
        padding: 80px 20px 20px;
        justify-content: flex-start !important;
        gap: 15px;
        overflow-y: auto;
    }

    .header-buttons.mobile-open {
        display: flex;
        animation: slideInRight 0.3s ease;
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .header-buttons .btn-header {
        width: 100%;
        justify-content: center;
    }

    .logo-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .logo-img {
        width: 60px;
        height: 60px;
    }

    .logo-text h1 {
        font-size: 20px;
    }

    .logo-text p {
        font-size: 12px;
    }

    .content-card {
        padding: 25px;
    }

    .page-title {
        font-size: 24px;
    }

    .form-section-title {
        font-size: 18px;
    }
}
