/* ======================================= */
/* 1. Base y Variables */
/* ======================================= */
:root {
    --color-primary: #D9534F; /* Rojo de Emergencia */
    --color-secondary: #007bff; /* Azul de Información */
    --color-text: #333;
    --color-background: #f8f9fa;
    --color-white: #fff;
    --padding-base: 1.5rem;
    --color-header-default: #1A3650; /* Nuevo: Azul Marino Oscuro Institucional */
    --color-neon-cian: #00FFFF; 
    --transition-speed: 0.5s;
    --logo-font-size: 4rem;
    
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
/* NUEVO: Clase para prevenir el scroll al abrir el menú móvil */
body.no-scroll {
    overflow: hidden;
}
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
}

.content-wrapper {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 var(--padding-base);
}

/* ======================================= */
/* 2. ENCABEZADO Y NAVEGACIÓN (HEADER/NAV) */
/* ======================================= */

.main-header {
    background-color: var(--color-header-default);
    color: var(--color-white);
    padding: 1rem 0;
    transition: background-color var(--transition-speed) ease-in-out;
    height: auto; /* Asegura que la altura se ajuste al contenido interno */
    min-height: 100px;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0.5rem;
    display: flex; 
    justify-content: space-between; /* LOGO IZQUIERDA | NAV DERECHA */
    align-items: center; 
}

/* --- LOGO ESTILOS --- */
.logo-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    position: relative;
    display: inline-block;
}

.logo-container {
    position: relative;
    display: inline-block;
}

/* FIX: Aumentar el tamaño del logo */
.logo-text {
    font-size: var(--logo-font-size); 
    font-weight: 300;
    text-transform: uppercase;
    position: relative; 
    z-index: 2; /* Texto por encima del SVG */
    line-height: 1;
}

.logo-temario {
    color: #CCC;
    margin-right: 0.5rem;
}

.logo-tes {
    color: var(--color-neon-cian);
    font-weight: 900;
    /* Efecto Neón */
    text-shadow: 
        0 0 5px var(--color-neon-cian),
        0 0 10px var(--color-neon-cian),
        0 0 15px rgba(0, 255, 255, 0.5);
}

.logo-slogan {
    font-size: 1rem;
    color: #AAA;
    margin-top: 0.2rem;
}

/* FIX: Ajustar el SVG para que sea visible y cruce */
.logo-ecg {
    position: absolute;
    top: 55%; 
    left: 45%;
    transform: translate(-50%, -50%);
    width: 70%; 
    height: 120%;
    overflow: visible;
    z-index: 1; 
    
    stroke: var(--color-neon-cian);
    fill: none;
    /* PROPIEDAD PARA EL GROSOR */
    stroke-width: 2px; 
    filter: drop-shadow(0 0 5px var(--color-neon-cian)) 
            drop-shadow(0 0 10px rgba(0, 255, 255, 0.4));
    opacity: 0.8; 
}
/* --- ANIMACIÓN DEL MOVIMIENTO (Implementación del Codepen) --- */

.logo-ecg polyline {
    /* Calcula o estima la longitud del trazo de la onda */
    stroke-dasharray: 200; 
    stroke-dashoffset: 200; 
    
    /* Aplica la animación */
    animation: drawECG 1.5s linear infinite; /* 1.5s para un pulso rápido y continuo */
}

/* Keyframes para la animación de 'dibujo' del SVG */
@keyframes drawECG {
    0% {
        stroke-dashoffset: 200;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

/* --- NAVEGACIÓN - ESTILO CODEPEN/ICONO --- */
.main-nav ul {
    list-style: none;
    display: flex;
    align-items: center; 
    height: auto;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin: 0 0.5rem;
    transition: 0.5s;
    height: auto; 
}

.main-nav li a {
    padding: 0.5rem 1rem;
    display: flex;
    flex-direction: column; 
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-white);
}

.main-nav li a i {
    font-size: 2.5rem; 
    transition: 0.5s;
    line-height: 1; 
}

.main-nav li a .title {
    /* Corregido: Usar max-height para el hover */
    max-height: 0; 
    padding-top: 0; 
    height: auto; 
    opacity: 0;
    transition: all 0.5s ease-in-out;
    overflow: hidden;
    color: var(--color-neon-cian);
}

/* EFECTO HOVER: Revelar Título y Cambio de Icono */
.main-nav li a:hover i {
    transform: scale(1.1); 
    color: var(--color-neon-cian); 
}

.main-nav li a:hover .title {
    opacity: 1;
    max-height: 50px;

    margin-top: 0;
}

/* ======================================= */
/* 3. CONTENIDO PRINCIPAL */
/* ======================================= */

/* Hero Search */
.hero-search {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.hero-search input {
    width: 80%;
    max-width: 600px;
    padding: 1rem;
    margin-top: 1rem;
    font-size: 1.1rem;
    border: 2px solid #ccc;
    border-radius: 50px;
    transition: border-color 0.3s;
}

.hero-search input:focus {
    border-color: var(--color-primary);
    outline: none;
}

/* Cards Grid */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--padding-base);
}

.topic-card, .highlight-card {
    background-color: var(--color-white);
    padding: var(--padding-base);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.topic-card h3, .highlight-card h3 {
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
    
}

.btn.primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn.primary:hover {
    background-color: #c9302c; /* Rojo más oscuro */
}

.btn.secondary {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.btn.secondary:hover {
    background-color: #0056b3; /* Azul más oscuro */
}

/* ======================================= */
/* 4. PIE DE PÁGINA */
/* ======================================= */
.main-footer {
    background-color: var(--color-text);
    color: #AAA;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.main-footer a {
    color: var(--color-neon-cian);
    text-decoration: none;
}

.main-footer a:hover {
    text-decoration: underline;
}

/* ======================================= */
/* 5. RESPONSIVIDAD */
/* ======================================= */
@media (max-width: 768px) {
    /* Header/Nav */
    .main-header {
        display: none; /* Ocultar el header completo */
    }
    
    .menu-toggle {
        display: block !important; /* Mostrar el botón de hamburguesa */
        position: fixed;
        top: 15px;
        right: 15px;
        z-index: 1001;
        background-color: var(--color-header-default); 
        color: var(--color-neon-cian); 
        border: 2px solid var(--color-neon-cian);
        border-radius: 5px;
        padding: 10px 15px;
        font-size: 1.5em;
        cursor: pointer;
        box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    }
    .header-content {
        flex-direction: column; 
        text-align: center;
        align-items: flex-start; /* Logo a la izquierda en móvil */
    }

    .main-nav ul {
        justify-content: flex-start; 
        overflow-x: auto; /* Scroll si la nav es muy larga */
        width: 100%;
        padding-bottom: 10px;
    }

    .logo-group {
        align-items: center;
        margin-bottom: 1rem;
        width: 100%;
    }
    
    .logo-slogan {
        padding-left: 0;
    }
    
    .hero-search {
        padding: 2rem 1rem;
    }
}
/* ======================================= */
/* 3. NAVEGACIÓN MÓVIL (HAMBURGER / OVERLAY) */
/* ======================================= */

.menu-toggle, .mobile-overlay {
    display: none; /* Oculto por defecto en escritorio */
}

/* --- HAMBURGER BUTTON --- */
.menu-toggle {
    transition: 0.3s;
}

/* --- OVERLAY MENU (Pantalla Completa) --- */
.mobile-overlay {
    height: 100%;
    width: 100%;
    position: fixed;
    z-index: 1000; 
    background-color: var(--color-header-default); 
    overflow-y: auto;
    transition: all 0.5s ease-in-out;
    top: 0;
    left: 0;
    opacity: 0; 
    visibility: hidden; 
    transform: scale(0.95); 
}

/* Estado activo */
.mobile-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.mobile-overlay .close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: var(--color-neon-cian);
    border: none;
    background: none;
    cursor: pointer;
    z-index: 1001;
    padding: 10px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    list-style: none;
    padding: 20px;
}

.mobile-nav-list li {
    margin: 15px 0;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.mobile-nav-list li a {
    text-decoration: none;
    color: var(--color-white);
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.mobile-nav-list li a i {
    margin-right: 15px;
    font-size: 3em; 
}

.mobile-nav-list li a .title {
    font-size: 1.5em; 
    font-weight: bold;
    color: var(--color-white);
    /* Siempre visible en móvil */
    opacity: 1;
    height: auto; 
}

.mobile-nav-list li a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: var(--color-neon-cian);
}
.mobile-nav-list li a:hover i {
    color: var(--color-neon-cian);
}
/* ======================================= */
/* 6. ESTILOS DE PÁGINA: TEMARIO (MODULOS) */
/* ======================================= */

.page-header {
    text-align: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--color-primary);
    font-size: 2.5rem;
}

.subtitle {
    color: var(--color-text);
    font-style: italic;
}

/* Reutilizamos cards-container como base para el grid */
.module-grid {
    gap: 20px;
}

.module-card {
    /* Basado en topic-card */
    background-color: var(--color-white);
    padding: var(--padding-base);
    border-left: 5px solid var(--color-secondary); /* Borde azul para destacar */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.module-info {
    margin-bottom: 1rem;
}

.module-number {
    display: block;
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--color-secondary); /* Azul para el número */
    margin-bottom: 0.5rem;
}

.module-card h3 {
    font-size: 1.4rem;
    color: var(--color-text);
}

/* Estilos de Estado del Módulo */
.module-status {
    margin: 1rem 0;
}

.status-tag {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: bold;
}

.status-tag i {
    margin-right: 5px;
}

.completed {
    background-color: #d4edda;
    color: #155724; /* Verde */
}

.in-progress {
    background-color: #fff3cd;
    color: #856404; /* Amarillo */
}

.pending {
    background-color: #f8d7da;
    color: #721c24; /* Rojo/Rosado */
}
/* --- Estilo especial para Módulos Transversales (MT) --- */
.transversal-module {
    background-color: #ffe6e6; /* Fondo rojo/rosado claro */
    border-left-color: var(--color-primary); /* Borde rojo de emergencia */
    /* Usamos box-shadow para que destaquen sin ser demasiado agresivos */
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.1); 
}

.transversal-module:hover {
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.15);
}

.transversal-module .mt-label {
    color: var(--color-primary); /* Número del módulo en rojo */
}

.transversal-module .status-tag {
    background-color: #fce3e3; /* Etiqueta de estado en rojo claro */
    color: #a71818;
}

/* Estilo para el Proyecto Intermodular (MT06) - Más destacado */
.mt-project {
    background-color: #fff3cd; /* Amarillo de advertencia */
    border-left-color: var(--color-tertiary);
}

.mt-project .mt-label {
    color: var(--color-tertiary); /* Amarillo fuerte */
}

/* Estilo para Módulo Optativo (MT07) */
.mt-optativo {
    background-color: #eaf6ff; /* Azul suave */
    border-left-color: var(--color-neon-cian);
}

.mt-optativo .mt-label {
    color: var(--color-neon-cian);
}

/* ======================================= */
/* 7. ESTILOS DE PÁGINA: DETALLE DE MÓDULO */
/* ======================================= */

/* Layout Principal de Dos Columnas (Escritorio) */
.module-detail-layout {
    display: flex;
    gap: 3rem; /* Espacio entre el índice y el contenido */
    align-items: flex-start; /* Asegura que ambos empiecen arriba */
}

/* --- Barra Lateral (Índice Fijo) --- */
.toc-sidebar {
    position: sticky; /* Fija la barra al scroll */
    top: 120px; /* Distancia desde la parte superior (debajo del header) */
    width: 250px;
    flex-shrink: 0; /* Evita que se encoja */
    padding: 20px;
    border-radius: 8px;
    background-color: var(--color-white);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.toc-sidebar h2 {
    font-size: 1.1rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--color-background);
    padding-bottom: 5px;
}

.toc-sidebar ul {
    list-style: none;
    padding: 0;
}

.toc-sidebar li {
    margin-bottom: 10px;
}

.toc-sidebar a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.95rem;
    transition: color 0.3s;
    display: block;
    padding: 3px 0;
}

.toc-sidebar a:hover {
    color: var(--color-secondary);
    font-weight: bold;
}

.toc-sidebar a i {
    margin-right: 8px;
    color: #AAA;
}

.back-btn {
    margin-top: 2rem;
    width: 100%;
    justify-content: center;
}

/* --- Contenido del Módulo --- */
.module-content {
    flex-grow: 1; /* Permite que el contenido ocupe el espacio restante */
    max-width: 800px; /* Limitar el ancho de lectura */
}

.module-title-header {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #CCC;
    margin-bottom: 2rem;
}

.module-content h1 {
    color: var(--color-header-default);
    font-size: 2rem;
}

.module-meta, .reading-time {
    font-size: 0.9rem;
    color: #666;
}

.unit-section {
    padding: 2rem 0;
    border-bottom: 1px dashed #DDD;
}

.unit-title {
    color: var(--color-primary);
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.protocols-summary {

    height: 30%;
    background-color: #eaf6ff;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--color-secondary);
}
#protocolos>p {
    padding-bottom: 15%;
    
}
/* ======================================= */
/* 7. ESTILOS DE PÁGINA: DETALLE DE MÓDULO (Ampliación) */
/* ======================================= */

.subsection-title {
    font-size: 1.4rem;
    color: var(--color-secondary); /* Azul para subtítulos */
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    border-left: 4px solid var(--color-secondary);
    padding-left: 10px;
}

/* --- Listas Clave (Checklists, Secuencias) --- */
.emergency-list, .key-points-list {
    list-style: none;
    padding-left: 0;
}

.emergency-list li {
    background-color: #ffe6e6; /* Fondo rojo claro */
    border-left: 5px solid var(--color-primary); /* Borde rojo de emergencia */
    padding: 10px 15px;
    margin-bottom: 8px;
    border-radius: 4px;
    font-weight: 500;
}

.key-points-list li {
    background-color: #eaf6ff; /* Fondo azul claro */
    border-left: 5px solid var(--color-neon-cian); /* Borde cian */
    padding: 8px 15px;
    margin-bottom: 5px;
    border-radius: 4px;
    font-weight: 400;
}

/* --- Cajas de Notas/Advertencias --- */
.note-box {
    padding: 15px;
    border-radius: 6px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.note-box i {
    font-size: 1.5rem;
    margin-right: 15px;
}

.info {
    background-color: #f0f8ff;
    border: 1px solid var(--color-secondary);
    color: #0056b3;
}

.warning {
    background-color: #fff8e1;
    border: 1px solid var(--color-tertiary);
    color: #856404;
}

/* --- Responsive para Móviles --- */
@media (max-width: 992px) {
    /* Desactivar el layout de dos columnas en pantallas pequeñas */
    .module-detail-layout {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    /* Mostrar la tabla de contenidos al inicio, pero ya no fija */
    .toc-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 1rem;
    }
}
/* ======================================= */
/* 8. ESTILOS DE PÁGINA: PROTOCOLOS */
/* ======================================= */

/* --- Barra de Búsqueda de Protocolos --- */
.protocol-search-area {
    display: flex;
    gap: 10px;
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
}

#protocol-quick-search {
    flex-grow: 1;
    padding: 0.8rem 1rem;
    font-size: 1rem;
    border: 2px solid #EEE;
    border-radius: 6px;
    transition: border-color 0.3s;
}

#protocol-quick-search:focus {
    border-color: var(--color-primary);
    outline: none;
}

.search-btn {
    padding: 0.8rem 1.5rem;
    white-space: nowrap; /* Evita que el texto se rompa */
}

/* --- Tarjetas de Categoría de Protocolo --- */
.protocol-categories {
    gap: 25px;
}

.protocol-category-card {
    background-color: var(--color-white);
    padding: var(--padding-base);
    border-top: 5px solid var(--color-secondary); /* Borde azul institucional */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.protocol-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category-icon {
    color: var(--color-primary); /* Rojo de emergencia */
    margin-bottom: 0.8rem;
}

.category-info h3 {
    font-size: 1.5rem;
    color: var(--color-header-default);
    margin-bottom: 0.5rem;
}

.category-info p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 1rem;
    min-height: 40px; /* Asegura que la altura de la tarjeta sea similar */
}

.protocol-count {
    display: block;
    margin: 1rem 0;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-secondary);
}
/* CSS BOTONES PROTOCOLOS  */

/*    @charset "UTF-8";
 */@import url(https://fonts.googleapis.com/css?family=Oswald:400,700);
@import url(https://fonts.googleapis.com/css?family=Nunito:400,700);
/* :root {
  background: -webkit-linear-gradient(top, #222838 0%, #131621 100%);
  height: 100vh;
} */

.botones-protocolos {
  width: 334px;
  margin: 0 auto;
  position: absolute;
  top: 50%;
  left: 0;
  text-align: center;
  right: 0;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}

/* body
{
  background:#333;
} 
a {
  color: white;
  text-decoration: none;
}

h1, h2 {
  color: white;
  font-family: 'Oswald', sans-serif;
  font-weight: normal;
}

h2 {
  font-size: 14px;
  margin-bottom: 30px;
  color: #24E2B8;
}*/

.one, .two, .three, .four, .five {
  border: none;
  border-radius: 4px;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.48);
  overflow: hidden;
  padding: 20px 50px 20px 70px;
  margin-bottom: 20px;
  font-size: 20px;
  position: relative;
  color: white;
  outline: none;
  cursor: pointer;
  width: 100%;
  -webkit-transition: background-position .7s,box-shadow .4s;
  transition: background-position .7s,box-shadow .4s;
  background-size: 110%;
  font-family: 'Oswald', sans-serif;
}
.one:hover, .two:hover, .three:hover, .four:hover, .five:hover {
  background-position: 0% 30%;
}
.one:hover:after, .two:hover:after, .three:hover:after, .four:hover:after, .five:hover:after {
  right: -40px;
  -webkit-transition: right .4s,-webkit-transform 30s .2s linear;
  transition: right .4s,-webkit-transform 30s .2s linear;
  transition: right .4s,transform 30s .2s linear;
  transition: right .4s,transform 30s .2s linear,-webkit-transform 30s .2s linear;
}
.one:before, .two:before, .three:before, .four:before, .five:before, .one:after, .two:after, .three:after, .four:after, .five:after {
  font-family: FontAwesome;
  display: block;
  position: absolute;
}
.one:before, .two:before, .three:before, .four:before, .five:before {
  -webkit-transition: all 1s;
  transition: all 1s;
  font-size: 30px;
  left: 25px;
  top: 19px;
}
.one:after, .two:after, .three:after, .four:after, .five:after {
  -webkit-transition: right .4s, -webkit-transform .2s;
  transition: right .4s, -webkit-transform .2s;
  transition: right .4s, transform .2s;
  transition: right .4s, transform .2s, -webkit-transform .2s;
  font-size: 100px;
  opacity: .3;
  right: -120px;
  top: -17px;
}

.one {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 10px 0px #782CDA;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#782CDA), to(rgba(126, 94, 162, 0.51))), url("http://gearnuke.com/wp-content/uploads/2015/11/1280x720-cuU.jpg");
  background-image: linear-gradient(to bottom, #782CDA, rgba(126, 94, 162, 0.51)), url("http://gearnuke.com/wp-content/uploads/2015/11/1280x720-cuU.jpg");
}
.one:hover {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 30px 0px #782CDA;
}
.one:hover:after {
  -webkit-transform: scale(1);
          transform: scale(1);
}
.one:hover:before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}
.one:after, .one:before {
  content: "";
}
.one b {
  color: #DDA6FF;
  font-weight: 700;
}

.two {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 10px 0px #E48A3C;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#E48A3C), to(rgba(222, 135, 61, 0.24))), url("http://www.eatweartravel.com/wp-content/uploads/2015/04/i-love-shopping_1920x1200_83206.jpg");
  background-image: linear-gradient(to bottom, #E48A3C, rgba(222, 135, 61, 0.24)), url("http://www.eatweartravel.com/wp-content/uploads/2015/04/i-love-shopping_1920x1200_83206.jpg");
}
.two:hover {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 30px 0px #E48A3C;
}
.two:hover:after {
  -webkit-transform: scale(1);
          transform: scale(1);
}
.two:hover:before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}
.two:after, .two:before {
  content: "";
}
.two b {
  color: #FFD9B4;
  font-weight: 700;
}

.three {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 10px 0px #36C176;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#36C176), to(rgba(86, 202, 139, 0.18))), url("http://blog.teamthinklabs.com/wp-content/uploads/2012/09/codepen-460x253.png");
  background-image: linear-gradient(to bottom, #36C176, rgba(86, 202, 139, 0.18)), url("http://blog.teamthinklabs.com/wp-content/uploads/2012/09/codepen-460x253.png");
}
.three:hover {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 30px 0px #36C176;
}
.three:hover:after {
  -webkit-transform: scale(1);
          transform: scale(1);
}
.three:hover:before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}
.three:after, .three:before {
  content: "";
}
.three b {
  color: #63FFAC;
  font-weight: 700;
}

.four {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 10px 0px #33E7EA;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#33E7EA), to(rgba(161, 245, 245, 0.24))), url("https://cdn2.itpro.co.uk/sites/itpro/files/server_room.jpg");
  background-image: linear-gradient(to bottom, #33E7EA, rgba(161, 245, 245, 0.24)), url("https://cdn2.itpro.co.uk/sites/itpro/files/server_room.jpg");
}
.four:hover {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 30px 0px #33E7EA;
}
.four:hover:after {
  -webkit-transform: rotate(3000deg);
          transform: rotate(3000deg);
}
.four:hover:before {
  -webkit-transform: rotate(360deg);
          transform: rotate(360deg);
}
.four:after, .four:before {
  content: "";
}
.four b {
  color: #1CF4FF;
  font-weight: 700;
}

.five {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 10px 0px #DE3964;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#DE3964), to(rgba(154, 40, 87, 0.24))), url("http://nightlifeassociates.com/wp-content/uploads/2014/03/hakkasan-nightclub_tiesto-smalls.jpg");
  background-image: linear-gradient(to bottom, #DE3964, rgba(154, 40, 87, 0.24)), url("http://nightlifeassociates.com/wp-content/uploads/2014/03/hakkasan-nightclub_tiesto-smalls.jpg");
}
.five:hover {
  box-shadow: 0px 0px 0px 2px rgba(255, 255, 255, 0.16) inset, 0px 0px 30px 0px #DE3964;
}
.five:hover:after {
  -webkit-transform: scale(1);
          transform: scale(1);
}
.five:hover:before {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}
.five:after, .five:before {
  content: "";
}
.five b {
  color: #F764FF;
  font-weight: 700;
}

/* Responsive para la barra de búsqueda */
@media (max-width: 600px) {
    .protocol-search-area {
        flex-direction: column;
    }
    .search-btn {
        width: 100%;
    }
}

/* ======================================= */
/* 9. ESTILOS DE PÁGINA: CASOS CLÍNICOS */
/* ======================================= */

/* --- Panel de Filtros --- */
.case-filters-panel {
    background-color: var(--color-header-default); /* Fondo oscuro para contraste */
    color: var(--color-white);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.case-filters-panel h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-neon-cian); /* Color neón para resaltar el título */
}

.filters-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Permite que los filtros se ajusten en móvil */
    align-items: center;
}

.filter-select {
    padding: 0.7rem 1rem;
    border-radius: 5px;
    border: none;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 1rem;
    min-width: 180px;
}

.filter-apply-btn {
    flex-grow: 1;
    max-width: 200px;
}

/* --- Tarjetas de Casos --- */
.cases-grid {
    gap: 30px;
}

.case-card {
    /* Basado en topic-card */
    background-color: var(--color-white);
    padding: var(--padding-base);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s, box-shadow 0.3s;
    border-left: 5px solid #CCC; /* Borde por defecto */
}

.case-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.case-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

/* Etiquetas de Dificultad Dinámica */
.case-tag {
    font-size: 0.8rem;
    font-weight: bold;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    text-transform: uppercase;
}

.basica {
    background-color: #d4edda;
    color: #155724; /* Verde */
}

.media {
    background-color: #fff3cd;
    color: #856404; /* Amarillo */
}

.avanzada {
    background-color: #f8d7da;
    color: #721c24; /* Rojo */
}

.case-time {
    font-size: 0.9rem;
    color: #666;
}

.case-card h3 {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 0.8rem;
}

.case-stats {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: var(--color-header-default);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px dashed #EEE;
}

.start-btn {
    width: 100%;
    margin-top: 1.5rem;
}

/* Responsive para Filtros */
@media (max-width: 768px) {
    .filters-group {
        flex-direction: column;
    }
    .filter-select {
        width: 100%;
        min-width: unset;
    }
}

/* ======================================= */
/* 10. ESTILOS DE PÁGINA: RECURSOS */
/* ======================================= */

.resource-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--color-header-default);
    margin-bottom: 1.5rem;
    padding-bottom: 5px;
    border-bottom: 3px solid var(--color-primary); /* Línea de color de emergencia */
}

.section-title i {
    margin-right: 10px;
    color: var(--color-primary);
}

.resource-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.resource-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background-color: var(--color-white);
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--color-secondary); /* Indicador de Recurso */
    transition: background-color 0.3s;
}

.resource-item:hover {
    background-color: #f0f7ff; /* Tono azul claro al pasar el ratón */
}

.item-info {
    flex-grow: 1;
    padding-right: 20px;
}

.item-info h3 {
    font-size: 1.2rem;
    color: var(--color-text);
    margin-bottom: 5px;
}

.item-info p {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.file-meta {
    font-size: 0.8rem;
    color: var(--color-primary);
    font-weight: bold;
}

.file-meta i {
    margin-right: 5px;
}

/* Diferenciación visual para enlaces externos */
.external-link {
    border-left-color: var(--color-primary); /* Rojo para enlaces externos */
}

.download-btn {
    flex-shrink: 0;
    min-width: 120px;
}

.link-btn {
    /* Usar color primario (rojo) para acceder a enlaces externos */
    flex-shrink: 0;
    min-width: 120px;
}

/* Responsive para la lista de recursos */
@media (max-width: 768px) {
    .resource-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }
    .item-info {
        padding-right: 0;
        margin-bottom: 1rem;
    }
    .download-btn, .link-btn {
        width: 100%;
    }
}

/* ======================================= */
/* 11. ESTILOS DE PÁGINA: COMUNIDAD */
/* ======================================= */

/* --- Tarjetas de Interacción Social --- */
.community-links {
    gap: 25px;
    margin-bottom: 3rem;
}

.interaction-card {
    text-align: center;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.interaction-card:hover {
    transform: translateY(-5px);
}

.interaction-card i {
    margin-bottom: 1rem;
    transition: color 0.3s;
}

.interaction-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Colores temáticos para las tarjetas */
.discord {
    background-color: #7289da10; /* Fondo sutil de Discord */
    border-top: 5px solid #7289da;
}
.discord i {
    color: #7289da;
}

.forum {
    background-color: #fff3cd; /* Fondo sutil de Alerta */
    border-top: 5px solid var(--color-primary);
}
.forum i {
    color: var(--color-primary);
}

.contribute {
    background-color: #d4edda; /* Fondo sutil de Éxito */
    border-top: 5px solid var(--color-secondary);
}
.contribute i {
    color: var(--color-secondary);
}

.interaction-card p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

/* --- Sección de Preguntas Frecuentes (FAQ) --- */
.faq-section {
    padding: 2rem 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-header-default);
    background: #f7f7f7;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: #eeeeee;
}

.faq-question i {
    transition: transform 0.3s;
}

/* Estilo para la pregunta abierta (se añade con JS) */
.faq-item.active .faq-question {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 1.5rem;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 200px; /* Suficientemente grande para el contenido */
    padding: 1.5rem;
    padding-top: 0;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: #444;
}

/* ======================================= */
/* 7. ESTILOS PARA LA PÁGINA DE CONTACTO */
/* ======================================= */

.contact-container {
    display: flex;
    flex-wrap: wrap; /* Permite que los elementos se apilen en móvil */
    gap: 3rem;
    padding-top: 2rem;
}

/* El formulario y la info se reparten el espacio */
.contact-form,
.contact-info {
    flex: 1 1 45%; /* Crece y se reduce, con una base del 45% */
    background-color: var(--color-white); /* Fondo blanco, si quieres el efecto glass, ajusta aquí */
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-info {
    background-color: var(--color-background); /* Ligeramente diferente para distinguirlo */
    border: 1px solid #eee;
}

/* Estilos del Formulario */
.form-group {
    margin-bottom: 1.5rem;
}

.contact-form label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-header-default);
    font-size: 0.95rem;
}

.contact-form label i {
    margin-right: 8px;
    color: var(--color-primary);
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="subject"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 5px rgba(var(--color-primary), 0.3);
}

.contact-form textarea {
    resize: vertical;
}

/* Información de Contacto Adicional */
.contact-info h2 {
    color: var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.contact-info ul {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info li i {
    margin-right: 10px;
    color: var(--color-secondary);
}

/* Enlaces Sociales */
.social-links {
    margin-top: 2rem;
    border-top: 1px dashed #ccc;
    padding-top: 1.5rem;
}

.social-links a {
    color: var(--color-header-default);
    font-size: 2rem;
    margin-right: 15px;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--color-primary);
}

/* Media Query: Apilar en móvil */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
}