/* 1. CONFIGURACIÓN GENERAL */

* {

    margin: 0;

    padding: 0;

    box-sizing: border-box;

}



body {

    font-family: 'Segoe UI', Arial, sans-serif;

    line-height: 1.6;

    color: #dbc1a7;

    background-color: #110915;

    display: flex;              /* ← CLAVE: Alinea menú y contenido lado a lado */

    align-items: stretch;

}



a {

    color: #cfa3eb;

    text-decoration: none;

    transition: 0.3s;

}



a:hover {

    color: #CCFF00;

}



/* =============================================

   PANEL LATERAL FIJO (NUEVO)

   ============================================= */

.side-panel {

    width: 260px;

    min-width: 260px;

    height: 100vh;

    position: fixed;

    left: 0;

    top: 0;

    background-color: #180d1e;

    border-right: 1px solid #361d40;

    padding: 20px;

    overflow-y: auto;

    z-index: 100;

}



.side-panel h3 {

    color: #d3c2f9;

    margin-bottom: 15px;

    padding-bottom: 10px;

    border-bottom: 1px solid #361d40;

}



.side-panel ul {

    list-style: none;

    padding: 0;

}



.side-panel ul li {

    margin-bottom: 8px;

}



.side-panel ul li a {

    color: #dbc1a7;

    font-size: 0.9rem;

    display: block;

    padding: 8px 10px;

    border-radius: 5px;

    transition: 0.3s;

}



.side-panel ul li a:hover {

    background-color: #361d40;

    color: #CCFF00;

}



.side-panel hr {

    border: none;

    border-top: 1px solid #361d40;

    margin: 10px 0;

}



/* =============================================

   CONTENIDO PRINCIPAL (DESPUÉS DEL MENÚ)

   ============================================= */

.main-content {

    margin-left: 260px;

    padding: 20px;

    width: calc(100% - 260px);

    min-height: 100vh;

}



/* 2. ENCABEZADO */

header {

    background-color: #180d1e;

    padding: 3rem 1rem;

    text-align: center;

    border-bottom: 1px solid #361d40;

}



header h1 {

    color: #d3c2f9;

    font-size: 2.5rem;

    margin-bottom: 1rem;

}



header nav ul {

    list-style: none;

    display: flex;

    justify-content: center;

    gap: 20px;

    flex-wrap: wrap;

}



header nav ul li a {

    font-weight: bold;

    text-transform: uppercase;

    font-size: 0.9rem;

    padding: 5px 10px;

    border-right: 1px solid #660e4c;

}



header nav ul li a:last-child {

    border-right: none;

}



/* 3. CONTENIDO PRINCIPAL */

main {

    max-width: 1200px;

    margin: 2rem auto;

    padding: 0 1rem;

}



.hero {

    text-align: center;

    margin-bottom: 3rem;

}



/* ★ ÚNICO CAMBIO: Añadido :not([class]) para no afectar imágenes con clase */

.hero img:not([class]) {

    width: 100%;

    max-width: 800px;

    border-radius: 10px;

    border: 1px solid #361d40;

}



.hero h2 {

    color: #dbb4e0;

}



/* 4. SECCIÓN DE VÍDEOS */

.videos-section {

    margin-top: 4rem;

    text-align: center;

    padding: 2rem;

    background: #180d1e;

    border-radius: 10px;

}



/* 5. PIE DE PÁGINA */

footer {

    text-align: center;

    padding: 3rem 1rem;

    background-color: #000;

    margin-top: 4rem;

    border-top: 1px solid #3d234d;

    font-size: 0.8rem;

}



/* 6. RESPONSIVE */

@media (max-width: 768px) {

    body {

        flex-direction: column;

    }



    .side-panel {

        position: relative;

        width: 100%;

        height: auto;

    }



    .main-content {

        margin-left: 0;

        width: 100%;

    }



    header h1 { font-size: 1.8rem; }

    header nav ul { flex-direction: column; align-items: center; }

    header nav ul li a { border-right: none; border-bottom: 1px solid #361d40; width: 100%; text-align: center; }

}



/* 7. GIF Y RELOJ */

.seccion-dinamica {

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 40px 0;

    text-align: center;

    margin-top: 30px;

}



.gif-ojo {

    width: 185px;

    height: 185px;

    border-radius: 50%;

    object-fit: cover;

    border: 2px solid #ccc;

}



#reloj {

    font-size: 3rem;

    font-family: 'Courier New', Courier, monospace;

    color: #00d4ff;

    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);

}



/* 8. CONTENEDORES Y GRIDS GENERALES */

.container {

    padding: 2rem;

    max-width: 1000px;

    margin: 0 auto;

}



.specialties-info {

    padding: 1rem;

    margin-bottom: 2rem;

}



/* 9. CLÍNICAS (Estilo fijo) */

.clinic-list {

    display: flex;

    flex-direction: column;

    gap: 1.5rem;

}



.clinic-card {

    padding: 1.5rem;

    border-left: 4px solid #d3c2f9;

    background-color: #180d1e !important;

    border-radius: 10px !important;

    border: 1px solid #d3c2f9 !important;

}



.clinic-card h3 { color: #d3c2f9 !important; }

.clinic-card p { color: #dbc1a7 !important; }



/* 10. ORGANIZACIÓN */

.unidades-grid {

    display: grid !important;

    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;

    gap: 2rem !important;

}



.unidad-card {

    background-color: #180d1e !important;

    border: 1px solid #d3c2f9 !important;

    border-radius: 10px !important;

    padding: 20px !important;

}



.unidad-card h3 { color: #d3c2f9 !important; }

.unidad-card p, .unidad-card li, .unidad-card strong { color: #dbc1a7 !important; }



/* 11. CONTACTO */

section.contacto-canales {

    padding: 50px 20px !important;

    background-color: #110915 !important;

}



section.contacto-canales .canal-card {

    background-color: #180d1e !important;

    border: 2px solid #d3c2f9 !important;

    border-radius: 15px !important;

    padding: 30px !important;

    text-align: center !important;

}



/* 12. EFECTO HOVER DOCTORES */

.doctor-grid {

    display: grid;

    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

    gap: 1.5rem;

    margin-bottom: 3rem;

}



.doctor-card-hover {

    position: relative;

    text-align: center;

    padding: 25px 15px;

    background-color: #180d1e;

    border: 1px solid #d3c2f9;

    border-radius: 10px;

    cursor: pointer;

    transition: transform 0.3s ease;

}



.doctor-card-hover:hover {

    transform: translateY(-5px);

}



.doctor-name {

    color: #d3c2f9 !important;

    font-size: 1.2rem;

    margin: 0;

}



.doctor-photo-overlay {

    position: absolute;

    top: 0;

    left: 50%;

    transform: translateX(-50%) translateY(0);

    width: 110px;

    height: 110px;

    opacity: 0;

    transition: all 0.4s ease;

    pointer-events: none;

    z-index: 10;

}



.img-hover {

    width: 100%;

    height: 100%;

    object-fit: cover !important;

    border-radius: 50%;

    border: 3px solid #d3c2f9;

}



.doctor-card-hover:hover .doctor-photo-overlay {

    opacity: 1;

    transform: translateX(-50%) translateY(-15px);

}



/* 13. SERVICIOS Y TARJETAS */

.servicios-grid {

    display: grid !important;

    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;

    gap: 25px !important;

    margin-top: 20px !important;

}



.card {

    background: #180d1e !important;

    border: 1px solid #d3c2f9 !important;

    border-radius: 10px !important;

    padding: 20px !important;

    color: #dbc1a7 !important;

}



.main-content h2 {

    color: #d3c2f9 !important;

    border-bottom: 2px solid #d3c2f9 !important;

    display: inline-block;

    padding-bottom: 10px;

}



/* 14. IMÁGENES EN TARJETAS */

.card img {

    width: 100% !important;

    max-height: 200px !important;

    object-fit: cover !important;

    border-radius: 8px;

    margin-bottom: 15px;

    display: block;

}



.card img[src*="Degenearcion-Macular"] {

    object-fit: contain !important;

    background: #f8f8f8;

}



/* 15. ACERCA DE NOSOTROS */

.acerca-nosotros {

    line-height: 1.8;

}



.acerca-nosotros p {

    margin-bottom: 1rem;

    color: #dbc1a7;

}



.desarrollador {

    margin-top: 20px;

    font-style: italic;

    color: #cfa3eb;

    text-align: right;

}



/* 16. LOGO ESPECIALISTA (NUEVO) */

.logo-especialista {

    width: 150px; /* Ajusta este número para cambiar el tamaño */

    height: auto;

    border-radius: 50%; /* Si quieres que sea redonda, si no, borra esta línea */

    margin-bottom: 15px;

}



/* ★ NUEVO: SUBTÍTULO CLÍNICA EN MENORCA */

.subtitulo-clinica {

    color: #d3c2f9;       /* Mismo color que el h1 */

    font-size: 1.3em;

    text-align: center;

    margin-top: -10px;

    margin-bottom: 15px;

}