/*
Theme Name: CocaMed Custom
Theme URI: https://localhost-0.tailc79045.ts.net/hospital
Author: Tu Nombre
Description: Tema exclusivo para CocaMed Hospital Center (Versión Video Split).
Version: 12.0
*/

/* --- 1. ESTILOS GENERALES --- */
body { font-family: 'Segoe UI', sans-serif; margin: 0; padding: 0; color: #444; background-color: #fdfdfd; overflow-x: hidden; }
* { box-sizing: border-box; }

/* --- 2. CABECERA Y MENÚ --- */
header {
    background-color: #fff; border-bottom: 4px solid #00a651; padding: 15px 0;
    position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header-container { width: 90%; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.logo h2 { margin: 0; color: #003366; font-size: 24px; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; gap: 10px; }
.logo span { color: #00a651; font-size: 28px; }
nav.desktop-menu ul { list-style: none; display: flex; gap: 25px; margin: 0; padding: 0; }
nav.desktop-menu a { color: #003366; text-decoration: none; font-weight: 600; font-size: 15px; text-transform: uppercase; transition: 0.3s; }
nav.desktop-menu a:hover { color: #00a651; }
.btn-urgencia { background: #d32f2f; color: white; padding: 8px 20px; border-radius: 5px; text-decoration: none; font-weight: bold; font-size: 14px; display: flex; align-items: center; gap: 5px; }

/* Menú Móvil */
.hamburger { display: none; font-size: 28px; color: #003366; cursor: pointer; }
.mobile-menu { position: fixed; top: 0; left: -100%; width: 80%; max-width: 300px; height: 100vh; background: #003366; z-index: 2000; transition: 0.4s ease; padding: 20px; box-shadow: 5px 0 15px rgba(0,0,0,0.3); display: flex; flex-direction: column; }
.mobile-menu.active { left: 0; }
.mobile-menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 15px; }
.mobile-menu h3 { color: white; margin: 0; }
.close-btn { color: white; font-size: 30px; cursor: pointer; }
.mobile-menu a { color: white; text-decoration: none; font-size: 18px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.05); display: block; transition: 0.2s; }
.mobile-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1500; display: none; backdrop-filter: blur(3px); }
.mobile-overlay.active { display: block; }

/* --- 3. PORTADA CON CARRUSEL --- */
.hero { position: relative; height: 600px; display: flex; align-items: center; justify-content: center; color: white; text-align: center; overflow: hidden; }
.hero-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; }
.hero-slide { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0; transition: opacity 1s ease-in-out; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 51, 102, 0.6); z-index: 2; }
.hero-content { position: relative; z-index: 3; padding: 20px; }
.hero h1 { font-size: 50px; margin: 15px 0; font-weight: 800; line-height: 1.1; text-shadow: 0 2px 10px rgba(0,0,0,0.3); }
.hero p { font-size: 22px; font-weight: 300; margin-bottom: 30px; text-shadow: 0 2px 5px rgba(0,0,0,0.3); }
.btn-cita { background: #00a651; color: white; padding: 15px 35px; text-decoration: none; font-weight: bold; border-radius: 50px; font-size: 18px; transition: transform 0.2s; display: inline-block; border:none; cursor: pointer; }
.btn-cita:hover { transform: scale(1.05); background: #008c44; }
.slider-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 60px; height: 60px; background: rgba(255, 255, 255, 0.15); backdrop-filter: blur(5px); border: 1px solid rgba(255, 255, 255, 0.3); color: white; font-size: 20px; border-radius: 50%; cursor: pointer; z-index: 10; display: flex; align-items: center; justify-content: center; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.slider-arrow:hover { background: #00a651; border-color: #00a651; color: white; transform: translateY(-50%) scale(1.15); box-shadow: 0 0 25px rgba(0, 166, 81, 0.6); }
.slider-arrow:active { transform: translateY(-50%) scale(0.95); }
.prev { left: 30px; }
.next { right: 30px; }

/* --- 5.1 LAYOUT ESPECIALIDADES + VIDEO (NUEVO) --- */
.container { width: 90%; max-width: 1200px; margin: 60px auto; }
.titulo-seccion { text-align: center; color: #003366; font-size: 35px; margin-bottom: 40px; font-weight: 700; }

.split-layout {
    display: flex;
    gap: 50px; /* Espacio entre las especialidades y el video */
    align-items: flex-start;
}

/* Columna Izquierda: Especialidades */
.col-especialidades {
    flex: 1; /* Ocupa el 50% o el espacio disponible */
}

/* REJILLA DE 2x2 (NUEVO) */
.servicios-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 Columnas */
    gap: 20px;
}

/* Tarjetas más pequeñas para el 2x2 */
.servicio-box-mini {
    background: white; border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0; transition: all 0.3s ease;
    cursor: pointer;
    aspect-ratio: 1 / 1; /* Cuadradas */
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    padding: 15px; text-align: center;
}
.servicio-box-mini:hover { background-color: #00a651; transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0, 166, 81, 0.2); border-color: #00a651; }
.servicio-box-mini i { font-size: 40px; margin-bottom: 10px; transition: color 0.3s; color: #00a651; }
.servicio-box-mini h4 { margin: 0; font-size: 16px; color: #003366; transition: color 0.3s; }
.servicio-box-mini:hover i, .servicio-box-mini:hover h4 { color: white !important; }


/* Columna Derecha: Video */
.col-video {
    flex: 1; /* Ocupa el otro 50% */
    display: flex; flex-direction: column; justify-content: center;
}

.video-frame {
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 3px solid #003366; /* Marco azul elegante */
    background: black;
    height: fit-content;
}

/* --- 5.2 MEDICOS --- */
.medico-card { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); transition: 0.3s; text-align: left; }
.medico-img { height: 280px; background-size: cover; background-position: center; }
.medico-info { padding: 25px; }
.servicios { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; } /* Para médicos sigue siendo 3 */

/* --- 6. MODAL --- */
.oculto { display: none !important; }
.btn-toggle { background: transparent; border: 2px solid #00a651; color: #00a651; padding: 10px 25px; border-radius: 50px; font-weight: bold; cursor: pointer; margin-top: 30px; font-size: 14px; display: inline-block; width: 100%; }
.btn-toggle:hover { background: #00a651; color: white; }
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 30, 60, 0.9); z-index: 3000; display: none; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: opacity 0.3s ease; }
.modal-overlay.mostrar { display: flex; opacity: 1; }
.modal-content { background: white; width: 95%; max-width: 1100px; height: 85vh; border-radius: 20px; overflow: hidden; display: flex; box-shadow: 0 50px 100px rgba(0,0,0,0.5); opacity: 0; transform: scale(0.7); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.modal-overlay.mostrar .modal-content { opacity: 1; transform: scale(1); }
.modal-img { width: 55%; background-size: contain; background-repeat: no-repeat; background-position: center; background-color: #f4f6f9; }
.modal-info { width: 45%; padding: 50px; position: relative; overflow-y: auto; display: flex; flex-direction: column; justify-content: center; }
.btn-cerrar { position: absolute; top: 15px; right: 25px; font-size: 40px; cursor: pointer; color: #999; transition: 0.2s; line-height: 1; }
.btn-cerrar:hover { color: #d32f2f; transform: rotate(90deg); }

/* --- 8. FOOTER MIXTO --- */
.social-card { display: flex; flex-direction: column; justify-content: space-between; border-radius: 20px; padding: 20px; color: white; text-decoration: none; position: relative; overflow: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); box-shadow: 0 10px 20px rgba(0,0,0,0.2); width: 100%; max-width: 320px; height: 180px; margin: 0 auto; }
.map-container { width: 100%; height: 180px; border-radius: 20px; overflow: hidden; border: 2px solid #00a651; box-shadow: 0 5px 15px rgba(0,0,0,0.2); }
.fb-card { background: linear-gradient(135deg, #1877F2, #0d5cb8); }
.fb-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(24, 119, 242, 0.4); }
.ig-card { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.ig-card:hover { transform: translateY(-5px) scale(1.02); box-shadow: 0 15px 30px rgba(220, 39, 67, 0.4); }
.card-header { display: flex; align-items: center; gap: 10px; margin-bottom: 5px; }
.card-header i { font-size: 28px; }
.card-header span { font-weight: bold; font-size: 16px; }
.card-content h3 { margin: 0; font-size: 18px; font-weight: normal; opacity: 0.9; }
.card-content p { margin: 2px 0 0 0; font-size: 12px; opacity: 0.8; }
.fake-button { background: white; color: #333; padding: 8px 20px; border-radius: 30px; font-size: 12px; font-weight: bold; display: inline-block; box-shadow: 0 5px 15px rgba(0,0,0,0.1); margin-top: 15px; }
.bg-icon { position: absolute; bottom: -20px; right: -20px; font-size: 120px; opacity: 0.1; transform: rotate(-20deg); transition: 0.4s; }
.social-card:hover .bg-icon { transform: rotate(0deg) scale(1.1); opacity: 0.15; }

/* --- 7. RESPONSIVE --- */
@media (max-width: 900px) {
    nav.desktop-menu, .btn-urgencia.desktop-only { display: none; }
    .hamburger { display: block; }
    .hero h1 { font-size: 35px; }
    .hero p { font-size: 18px; }
    
    /* En celular, dividir en columna vertical */
    .split-layout { flex-direction: column; }
    
    .servicios { grid-template-columns: 1fr; gap: 30px; }
    .servicios-grid-2x2 { gap: 15px; } /* Mantenemos 2 columnas en movil para iconos pequeños, o 1 si prefieres */
    
    .modal-content { flex-direction: column; height: 95vh; }
    .modal-img { width: 100%; height: 300px; flex-shrink: 0; }
    .modal-info { width: 100%; padding: 25px; justify-content: flex-start; }
    footer .container > div { flex-direction: column; }
    .slider-arrow { width: 45px; height: 45px; font-size: 16px; }
    .prev { left: 10px; }
    .next { right: 10px; }
    .social-card, .map-container { max-width: 100%; }
}
/* --- CAMBIOS DEL JEFE (Fosforescente y Tamaños) --- */

/* 1. Color Verde Fosforescente (LimeGreen brillante) */
:root {
    --primary-color: #32CD32 !important; /* Verde Lima Brillante */
    --secondary-color: #00FF7F !important; /* Verde Primavera */
}

/* Forzar el color en botones y bordes */
.btn-emergencia, .btn-primary, .agendar-cita-btn {
    background-color: #32CD32 !important; /* Color fosforescente */
    color: #fff !important;
    font-weight: bold;
    box-shadow: 0 0 10px rgba(50, 205, 50, 0.5); /* Resplandor */
}

.btn-emergencia:hover {
    background-color: #2eb82e !important;
    transform: scale(1.05);
}

/* Color de los títulos y líneas */
h2.titulo-seccion, h3 {
    color: #32CD32 !important;
}

/* Línea verde del header */
header {
    border-bottom: 3px solid #32CD32 !important;
}

/* 2. Iconos de Especialidades MÁS GRANDES */
.servicio-box i {
    font-size: 4rem !important; /* Antes era mas pequeño (ej. 2.5rem) */
    color: #32CD32 !important;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.servicio-box:hover i {
    transform: scale(1.2); /* Efecto zoom al pasar el mouse */
}

/* 3. Ajuste del Logo para que no se vea texto feo */
.logo-container img {
    vertical-align: middle;
    transition: transform 0.3s;
}
.logo-container:hover img {
    transform: rotate(-5deg) scale(1.1);
}
