﻿html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background: linear-gradient(to bottom right, #a8edea, #fed6e3);
    align-items: stretch;
    overflow-x: hidden;
    overflow-y: auto;
}

.main-container {
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
    padding-bottom: 4rem;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* Landing: sin sidebar ni topbar */
.main-container.no-sidebar {
    margin-left: 0 !important;
    margin-top: 0 !important;
}

/* Footer siempre al final */
footer {
    flex-shrink: 0;
    margin-top: 1rem;
    padding: 8px 0;
    text-align: center;
    color: #444;
    background: #f8f9fb;
    width: 100%;
    border-top: 1px solid #ddd;
    font-size: 12px;
}

footer a {
    color: #555;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
    color: #0073e6;
}

/* ===============================
   Botón global — SOLO para .btn explícitos
   =============================== */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: filter 0.15s, background 0.15s;
}

.btn-primary {
    background-color: #5FBCBC;
    color: #ffffff;
    border: 2px solid #B6DADB;
    padding: 8px 20px;
    box-shadow: 0 2px 5px rgba(128, 128, 128, 0.3);
}

.btn-primary:hover {
    filter: brightness(1.08);
}

.btn-outline {
    background: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 20px;
}

.btn-outline:hover {
    background: #f5f5f5;
}

/* Reset para botones inline (tablas, acciones, etc.)
   Excluye: .btn, .onb-btn, paginación, sidebar, topbar, modales, SweetAlert, toast */
button:not(.btn):not(.onb-btn):not(.page-btn):not(.toggle-button):not(.user-menu-btn):not(.modal-close):not(.toast-close):not([class*="swal2"]):not(.edit-button):not(.save-button):not(.cancel-button):not(.remove-photo-btn) {
    background: none;
    border: none;
    box-shadow: none;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    display: inline;
    border-radius: 0;
    cursor: pointer;
}

.label {
    font-size: 0.8rem;
    font-weight: bold;
    color: gray;
    margin: 0;
}

#errorMessage {
    min-height: 3.5rem;
    width: 100%;
    color: red;
    margin-top: 8px;
    text-align: center;
}

.plan-warning {
    background: #fff3f3;
    border: 1px solid #cc0000;
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #8b0000;
}

    .plan-warning .warn-text {
        font-weight: 600;
    }

    .plan-warning .warn-link {
        color: #0064ff;
        font-weight: 700;
        text-decoration: underline;
    }

button.disabled-plan-btn {
    opacity: 0.5;
    cursor: not-allowed !important;
    pointer-events: none;
}

    button.disabled-plan-btn:hover {
        filter: none;
    }

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 980px) {
    .main-container {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .main-container {
        margin-left: 0 !important;
        padding: 0 8px;
        margin-top: 1rem;
    }
}

/* ===============================
   Texto descriptivo global
   ═══════════════════════════════
   Reemplaza TODOS los inline #888
   =============================== */
.section-description {
    color: #2c2c2c;
    font-size: 14px;
    line-height: 1.5;
    margin: 4px 0 16px;
    font-weight: 400;
}

.section-description a {
    color: #5FBCBC;
    text-decoration: none;
    font-weight: 500;
}

.section-description a:hover {
    text-decoration: underline;
}

/* ═══ FIX GLOBAL: Eliminar textos grises invisibles ═══
   Sobreescribe inline styles de color:#888 en <p> descriptivos.
   Usa !important porque los estilos inline tienen prioridad máxima. */
p[style*="color:#888"],
p[style*="color: #888"],
span[style*="color:#888"],
span[style*="color: #888"] {
    color: #2c2c2c !important;
}

p[style*="font-size:13px"],
p[style*="font-size: 13px"] {
    font-size: 14px !important;
    color: #2c2c2c !important;
}
