/* ---------------------------------------------------------
   FONDO GENERAL
--------------------------------------------------------- */
/* Fondo general con la imagen original */
body {
    background: url('https://ceadalivium.com/wp-content/uploads/2022/04/clinica-cead-alivium.webp')
                center/cover no-repeat;
    background-attachment: scroll;   /* antes estaba fixed: eso pegaba la página */
    transition: background-color 0.2s ease, color 0.2s ease;
    backdrop-filter: none;           /* quitamos el blur pesado */
}
/* ---------------------------------------------------------
   CONTENEDOR PRINCIPAL
--------------------------------------------------------- */
.main-container {
    background: #ffffffd2;
    border-radius: 20px;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
}

/* ---------------------------------------------------------
   IMÁGENES
--------------------------------------------------------- */
img {
    max-width: 100%;
    height: auto;
}

/* ---------------------------------------------------------
   LOGO Y TÍTULOS
--------------------------------------------------------- */
.logo-cead {
    width: 110px;
}

.title {
    font-weight: 700;
    color: #204e91;
    text-shadow: 0px 2px 6px #00000020;
    text-transform: uppercase;
}

.subtitle {
    color: #555;
    font-size: 0.95rem;
}

/* ---------------------------------------------------------
   TARJETAS / SECCIONES
--------------------------------------------------------- */
.section-title {
    background: #204e91;
    color: white;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-card {
    border-radius: 15px;
    border: none;
}

/* ---------------------------------------------------------
   BOTONES GENERALES
--------------------------------------------------------- */
.btn-cead {
    background: #0bbdf7;
    color: white;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.2s;
    border: none;
}

.btn-cead:hover {
    background: #009dd8;
    transform: scale(1.05);
    color: #fff;
}

/* Dropdown full width */
.dropdown-menu-full {
    width: 100%;
}

/* ---------------------------------------------------------
   BOTONES FLOTANTES — OPTIMIZADOS
--------------------------------------------------------- */
.floating-btn,
.floating-btn-2 {
    position: fixed;
    right: 25px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #204e91;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
    cursor: pointer;
    transition: 0.2s;
    font-size: 25px;
    border: none;
    z-index: 9999;
}


.floating-btn {
    bottom: 30px;
}

.floating-btn-2 {
    bottom: 110px;
}


.floating-btn:hover,
.floating-btn-2:hover {
    transform: scale(1.12);
}

/* ---------------------------------------------------------
   TABLAS
--------------------------------------------------------- */
.table thead th {
    background-color: #f2f6ff;
}

/* Scroll suave para tabla de contactos */
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

/* ---------------------------------------------------------
   MODO OSCURO
--------------------------------------------------------- */
body.dark-mode {
    background: #0f172a;
    color: #e5e7eb;
}

body.dark-mode .main-container {
    background: #0b1220f0;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.6);
}

body.dark-mode .section-title {
    background: #020617;
}

body.dark-mode .section-card {
    background: #020617;
    color: #e5e7eb;
}

body.dark-mode .btn-cead {
    background: #0369a1;
}

body.dark-mode .btn-cead:hover {
    background: #0284c7;
}

body.dark-mode .subtitle {
    color: #9ca3af;
}

body.dark-mode .form-control,
body.dark-mode .form-select,
body.dark-mode .input-group-text {
    background-color: #020617;
    color: #e5e7eb;
    border-color: #1f2937;
}

body.dark-mode .table {
    color: #e5e7eb;
}

body.dark-mode .table thead th {
    background-color: #020617;
}

body.dark-mode .modal-content {
    background-color: #020617;
    color: #e5e7eb;
}

/* ---------------------------------------------------------
   RESPONSIVO
--------------------------------------------------------- */
@media (max-width: 768px) {
    .main-container {
        margin-top: 1.5rem !important;
        margin-bottom: 1.5rem !important;
        padding: 1.5rem !important;
    }
}

/* ---------------------------------------------------------
   MAPA (MODAL)
--------------------------------------------------------- */
.map-container {
    height: 70vh !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
}

.map-container iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

@media (max-width: 768px) {
    .map-container {
        height: 60vh !important;
    }
}

/* FIX para que el iframe de mapa no se aplaste */
.modal-body {
    display: block !important;
}

/* ---------------------------------------------------------
   FIX: MODALES QUE SALEN ABAJO
--------------------------------------------------------- */
.modal-dialog {
    margin: 0 auto !important;
    margin-top: 5vh !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .modal-dialog {
        margin-top: 2vh !important;
    }
}
