
:root {
    --azul-medethic: #0077b6; /* El azul definido de logo */
    --azul-vibrante: #00b4d8; /* Un azul más claro para efecto degradado */
    --texto-oscuro: #1e293b;  /* Un gris casi negro para lectura */
    --gris-fondo: #f1f5f9;    /* Gris muy claro para el fondo de la página */
    --gris-oscuro: #666;      /* Gris medio para textos secundarios */
}

.lab-img { background-image: url('assets/LaboratorioEC.png'); }
.medico-img { background-image: url('assets/MedicosEC.png'); }
.visitador-img { background-image: url('assets/VisitadorEC.png'); }

.bg-light { background-color: #f0f4f8; }

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #0077b6; /* Azul médico */
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Imagenes se desproporcionan al salir y volver a cargar */
/* Blindaje para las tarjetas de perfiles */
.perfil-img {
    width: 100%;       /* Ocupa todo el ancho de la tarjeta */
    height: 200px;     /* Altura fija para que todas sean iguales */
    object-fit: cover; /* Recorta la imagen para que llene el espacio sin deformarse */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #eee; /* Un borde sutil para definir la imagen */

}
/* Ajuste del Logo en la esquina */
.logo-img {
    height: 50px; /* Ajuste según tamaño */
    width: auto;
    display: block;
}
/* Hero Section */
.hero {
    height: 30vh;
    background: linear-gradient(135deg, rgba(0,119,182,0.9), rgba(0,180,216,0.8)), url('hero-hospital.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    font-size: larger;
    padding: 0 10%
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2); /* Sombra sutil para mayor legibilidad */
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.95;
    line-height: 1.5;
}

.perfiles-container {
    display: flex;
    justify-content: space-around;
    padding: 50px 5%;
    gap: 20px;
    flex-wrap: wrap; /* Para que sea responsivo en móviles */
}

.perfiles-containerReg {
    display: grid;
    grid-template-columns: 45% 1fr;
    justify-content: space-around;
    padding: 50px 10%;
    gap: 20px;
    flex-wrap: wrap;
}

.perfil-card {
    background: white;
    flex: 10;
    min-width: 300px;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}
.perfil-cardReg {
    background: white;
    flex: 10;
    min-width: 300px;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.btn-outline {
    border: 2px solid #0077b6;
    color: #0077b6;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.btn-outline-muro {
    border: 2px solid #0077b6;
    color: #0077b6;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
}

.main-footer {
    background-color: var(--texto-oscuro);
    color: white;
    padding: 40px 5% 20px;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 30px;
}

.logo-footer {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--azul-vibrante);
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    margin-left: 20px;
    font-size: 0.9rem;
}

.footer-links a:hover { color: white; }

.footer-bottom {
    text-align: center;
    padding-top: 5px;
    font-size: 0.9rem;
    color: #94a3b8;
}

.form-box h2 { color: var(--azul-medethic); margin-bottom: 10px; }

.form-box p { color: var(--gris-oscuro); margin-bottom: 10px; font-size: 12px; }

.input-group {
    text-align: left;
    margin-bottom: 0px;
}

.input-group label {
    display: block;
    font-weight: 300;
    margin-bottom: 0px;
    color: var(--texto-oscuro);
}

.input-group input, .input-group select {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 1px;
    outline-color: var(--azul-medethic);
}




/* ============= Barrido de depuración ========================== */

/* Navegación */

/* Reset Global de Imágenes */
/* Ajuste para cambio de color fluido, transición suave */
a, button, .perfil-card {
    transition: all 0.3s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--gris-fondo);
    color: var(--texto-oscuro);
    margin: 0;
    font-family: sans-serif;
}

.btn-primary {
    background-color: #0077b6;
    color: white !important;
    padding: 10px 20px;
    border-radius: 5px;
}


.form-contenedor {
    display: flex;
    gap: 25px;
    margin-top: 30px;
}

.col-35 {
    flex: 0 0 35%;
}

.col-65 {
    flex: 0 0 65%;
}

/* Estilos opcionales para inputs */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    font-weight: 600;
    display: block;
    margin-bottom: 6px;
}

.form-group input, 
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .form-contenedor {
        flex-direction: column;
    }
    .col-35, .col-65 {
        flex: 0 0 100%;
    }
}



.perfil-card:hover {
    transform: translateY(-10px);
}

.perfil-img {
    height: 250px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
}
.perfil-imgReg {
    height: 300px;
    background-color: #e0e0e0;
    margin-bottom: 20px;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
}


.perfil-card h2 {
    color: #0077b6;
    margin-bottom: 15px;
}

.perfil-card p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
    color: #322929;
}



.btn-outline:hover {
    background: #0077b6;
    color: white;
}
/* Clinicos */
.feed-container {
    display: grid;
    grid-template-columns: 250px 1fr; /* Columna fija para filtros y el resto para el muro */
    gap: 30px;
    padding: 40px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.sidebar {
    background: white;
    padding: 20px;
    border-radius: 8px;
    height: fit-content;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.sidebar h3 { color: var(--azul-medethic); margin-bottom: 15px; }

.sidebar ul { list-style: none; }

.sidebar a {
    text-decoration: none;
    color: #666;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    transition: 0.3s;
}

.sidebar a.active, .sidebar a:hover {
    color: var(--azul-medethic); font-weight: bold; }

/* Tarjetas del Muro */
.post-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    border-left: 5px solid var(--azul-medethic);
}

.post-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.tag {
    background: #e0f2fe;
    color: var(--azul-medethic);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.tag-study { background: #dcfce7; color: #166534; } /* Verde para estudios */

.post-card h2 { margin-bottom: 10px; font-size: 1.4rem; color: var(--texto-oscuro); }

.post-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.btn-read {
    background: none;
    border: 1px solid var(--azul-medethic);
    color: var(--azul-medethic);
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}
/* Estilos específicos para el Registro */

.form-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    padding: 20px;
}

.form-box {
    background: white;
    padding: 1px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 119, 182, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.btn-full {
    width: 100%;
    background-color: var(--azul-medethic);
    color: white;
    padding: 14px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-full:hover { background-color: var(--azul-vibrante); }

.form-footer { margin-top: 20px; font-size: 0.8rem !important; }

/* --- ESTILOS SOBRE NOSOTROS --- */

.about-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 60px 20px;
}

.about-hero {
    text-align: center;
    margin-bottom: 80px;
}

.about-hero h1 {
    font-size: 3rem;
    color: var(--azul-medethic);
    margin-bottom: 20px;
}

.about-hero p {
    font-size: 1.3rem;
    color: #64748b;
    max-width: 700px;
    margin: 0 auto;
}

/* Pilares con Flexbox */
.pilares {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 80px;
    flex-wrap: wrap;
}

.pilar-item {
    flex: 1;
    min-width: 280px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.pilar-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.pilar-item h3 {
    color: var(--azul-medethic);
    margin-bottom: 15px;
}

/* Sección de texto narrativo */
.about-text {
    background: white;
    padding: 50px;
    border-radius: 15px;
    line-height: 1.8;
}

.about-text h2 {
    color: var(--azul-medethic);
    margin-bottom: 25px;
}

.about-text p {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: #475569;
}


/* Layout del Muro */
.muro-layout {
    display: grid;
    grid-template-columns: 220px 1fr 300px;
    gap: 25px;
    max-width: 1400px;
    margin: 30px auto;
    padding: 0 20px;
}

/* Sidebar de Filtros */
.filter-list { list-style: none; margin-top: 15px; }
.filter-list li {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    margin-bottom: 5px;
}
.filter-list li.active { background: var(--azul-medethic); color: white; }

/* Tarjetas de Post */
.post-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.post-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #64748b; margin-bottom: 15px; }

/* Estilo de Publicidad (Patrocinado) */
.sponsored {
    border: 1px solid #e2e8f0;
    background: #f8fafc; /* Fondo ligeramente diferente para diferenciarlo */
}

.sponsored-label {
    color: var(--azul-medethic);
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.75rem;
}

.sponsored-content { display: flex; gap: 20px; align-items: center; }
.ad-banner { width: 120px; height: 120px; border-radius: 8px; object-fit: cover; }

/* Widget Lateral */
.widget {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.ad-square {
    height: 250px;
    background: #e2e8f0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    color: #64748b;
    border: 2px dashed #cbd5e1;
}
#formularioLaboratorio .btn-submit {
    background-color: #2c3e50; /* Un azul más oscuro/corporativo */
}

/* Estilos Generales del Contenedor de Registro */
.registro-container {
    max-width: 500px;
    margin: 40px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.registro-header {
    text-align: center;
    margin-bottom: 25px;
}

.registro-header h2 {
    color: #2c3e50; /* Azul oscuro corporativo */
    margin-bottom: 10px;
}

.registro-header p {
    color: #666;
    font-size: 0.9em;
}

/* Estilos de los Grupos de Entrada */
.input-group {
    margin-bottom: 15px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 0.85em;
}

.input-group input, 
.input-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box; /* Evita que el input se salga del contenedor */
}

.input-group input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52,152,219,0.3);
}

.input-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.75em;
}

/* Botón de Envío */
.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #2c3e50; /* Color distintivo para Laboratorios */
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-top: 10px;
}

.btn-submit:hover {
    background-color: #1a252f;
}

/* Estilo específico para el campo de archivo */
input[type="file"] {
    padding: 8px;
    background: #f8f9fa;
    cursor: pointer;
}