/* === TIPOGRAFÍA Y CONTENEDOR PRINCIPAL === */
.container {
    font-family: 'Nunito', sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: flex-start;
    margin: 100px auto;
    padding: 20px;
    max-width: 1200px;
    width: 100%;
    gap: 20px;
    height: auto;
    box-sizing: border-box;
    overflow-x: hidden;
    flex-direction: row;
}

/* === SIDEBAR ESCRITORIO === */
.sidebar {
    width: 280px;
    background-color: #349B7D;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.sidebar h3 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 22px;
}

.menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu li {
    margin: 10px 0;
}

.menu li a {
    display: block;
    padding: 10px;
    background-color: #1c5344;
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.menu li a:hover {
    background-color: #F8AE00;
}

.menu .disabled {
    text-align: center;
    color: #ccc;
    font-style: italic;
}

/* === IMAGEN DE PERFIL (GENERAL) === */
.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    display: block;
    border: 5px solid #349B7D;
}

/* === CONTENIDO PRINCIPAL === */
.main-content {
    background-color: white;
    flex: 1;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
}

.content-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* === DETALLES DEL CLIENTE (FICHA) === */
.client-details {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.profile-section {
    background-color: #f9f9f9;
    padding: 20px 25px;
    border-left: 6px solid #349B7D;
    border-radius: 12px;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.profile-section:hover {
    transform: scale(1.01);
}

.profile-section h3 {
    font-size: 20px;
    color: #349B7D;
    margin-bottom: 15px;
    border-bottom: 2px solid #349B7D;
    padding-bottom: 5px;
}

.profile-section p {
    margin: 10px 0;
    font-size: 16px;
    color: #333;
}

.profile-section p strong {
    color: #222;
}

/* === LISTAS DE SERVICIOS === */
.client-services ul,
.custom-services ul,
.service-duration-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.client-services li,
.custom-services li,
.service-duration-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    box-shadow: 1px 1px 6px rgba(0, 0, 0, 0.03);
}

.service-duration-item p {
    margin: 5px 0;
    font-size: 15px;
}

/* === MENSAJES DE ALERTA === */
.alert {
    padding: 15px;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

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

/* === PLAN NUTRICIONAL === */
.client-nutrition-plan {
    position: relative;
    padding-top: 10px;
}

.client-nutrition-plan::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(52, 155, 125, 0.3);
    border-radius: 12px 12px 0 0;
    padding: 5px 0;
}

.client-nutrition-plan a {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background-color: #349B7D;
    color: white;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s;
}

.client-nutrition-plan a:hover {
    background-color: #2b7d66;
}

/* === BOTÓN DE EDITAR PERFIL === */
.edit-profile {
    text-align: center;
    margin-top: 20px;
}

.btn-edit {
    background-color: #F8AE00;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.btn-edit:hover {
    background-color: #d19000;
}

/* === FORMULARIO DE PAGO === */
.payment-form {
    margin-top: 20px;
    background-color: #f2fefc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #d2f4ec;
}

.payment-form .form-group {
    margin-bottom: 15px;
}

.payment-form select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
}

.price-display {
    margin: 15px 0;
    font-size: 18px;
    color: #349B7D;
    font-weight: bold;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.btn-pay,
.btn-whatsapp {
    flex: 1;
    padding: 12px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-pay {
    background-color: #349B7D;
}

.btn-pay:hover {
    background-color: #28735f;
}

.btn-whatsapp {
    background-color: #25D366;
}

.btn-whatsapp:hover {
    background-color: #1ebe5a;
}

/* === MENSAJE VACÍO DE PAQUETES === */
.empty-message {
    font-style: italic;
    color: #777;
    margin-top: 10px;
    text-align: center;
}

/* === SIDEBAR MÓVIL (OCULTO EN ESCRITORIO) === */
.mobile-sidebar {
    display: none;
}

/* === MODO RESPONSIVE: MÓVIL === */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        padding-bottom: 70px;
    }

    .sidebar {
        display: none;
    }

    .mobile-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        background-color: #349B7D;
        border-top-left-radius: 12px;
        border-top-right-radius: 12px;
        z-index: 999;
        display: flex;
        justify-content: space-around;
        padding: 10px 0;
    }

    .menu-mobile {
        display: flex;
        justify-content: space-around;
        width: 100%;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .menu-mobile li a {
        color: white;
        font-size: 24px;
        text-decoration: none;
        padding: 10px;
        display: inline-block;
        transition: background-color 0.3s;
        border-radius: 8px;
    }

    .menu-mobile li a:hover {
        background-color: #F8AE00;
    }

    .menu-mobile .disabled {
        color: #ccc;
        font-size: 24px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }
}
