/* css/style.css - Estética Piel Lujosa */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f8f5f2 0%, #f0e9e4 100%);
    min-height: 100vh;
}

/* ========== LOGIN ========== */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.login-container {
    background: #ffffff;
    padding: 35px 30px;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

.logo {
    max-width: 220px;
    width: 100%;
    height: auto;
    margin-bottom: 15px;
}

.login-container h2 {
    margin-bottom: 25px;
    color: #1a1a1a;
    font-size: 1.5rem;
    font-weight: 600;
}

.form-group {
    margin-bottom: 18px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 15px;
    border: 1.5px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #c41e3a;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15);
}

.btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.btn:hover {
    background: linear-gradient(135deg, #a01830 0%, #6b0000 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.3);
}

.error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ffcdd2;
}

.success {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #c8e6c9;
}

/* ========== NAVBAR ========== */
.navbar {
    background: #1a1a1a;
    color: white;
    padding: 0 25px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
}

.navbar-brand span {
    color: #c41e3a;
}

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 5px;
    align-items: center;
}

.navbar-menu > li {
    position: relative;
}

.navbar-menu > li > a {
    color: #eee;
    text-decoration: none;
    padding: 18px 16px;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.navbar-menu > li > a:hover {
    color: #c41e3a;
}

/* Dropdown */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2a2a2a;
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    z-index: 1001;
}

.dropdown-content a {
    color: #eee;
    padding: 13px 20px;
    text-decoration: none;
    display: block;
    font-size: 0.92rem;
    transition: background 0.2s;
    border-bottom: 1px solid #3a3a3a;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background: #c41e3a;
    color: white;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.user-info {
    color: #ccc;
    font-size: 0.9rem;
    margin-right: 15px;
}

.user-info strong {
    color: #fff;
}

.logout-link {
    color: #c41e3a !important;
    font-weight: 600;
}

/* ========== CONTENIDO PRINCIPAL ========== */
.main-content {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.welcome-box {
    background: white;
    padding: 40px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    text-align: center;
}

.welcome-box h1 {
    color: #1a1a1a;
    margin-bottom: 10px;
    font-size: 1.8rem;
}

.welcome-box .rol {
    color: #c41e3a;
    font-weight: 600;
    margin-bottom: 15px;
}

.welcome-box p {
    color: #666;
    line-height: 1.6;
}

/* ========== FORMULARIOS DE CARGA ========== */
.form-container {
    background: white;
    padding: 35px 30px;
    border-radius: 14px;
    box-shadow: 0 6px 25px rgba(0,0,0,0.08);
    max-width: 700px;
    margin: 0 auto;
}

.form-container h2 {
    color: #1a1a1a;
    margin-bottom: 25px;
    font-size: 1.5rem;
    border-bottom: 2px solid #c41e3a;
    padding-bottom: 10px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
}

.form-row .form-group {
    flex: 1;
}

.btn-guardar {
    background: linear-gradient(135deg, #c41e3a 0%, #8b0000 100%);
    color: white;
    border: none;
    padding: 13px 30px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-guardar:hover {
    background: linear-gradient(135deg, #a01830 0%, #6b0000 100%);
    transform: translateY(-1px);
}

.btn-volver {
    display: inline-block;
    margin-top: 15px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
}

.btn-volver:hover {
    color: #c41e3a;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        height: auto;
        padding: 12px 15px;
        gap: 10px;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .navbar-menu > li > a {
        padding: 10px 12px;
        font-size: 0.9rem;
    }

    .dropdown-content {
        position: static;
        display: none;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
    }

    .dropdown:hover .dropdown-content,
    .dropdown.active .dropdown-content {
        display: block;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .main-content {
        margin: 25px auto;
    }

    .welcome-box {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 25px 20px;
    }

    .logo {
        max-width: 180px;
    }

    .form-container {
        padding: 25px 18px;
    }
}

/* ========== PROMOCIONES ========== */


