/* ============================================
   ESTILOS COMUNES T2 - DINÁMICA
   Segundo Trimestre - Segundo Medio
   ============================================ */

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding: 0;
    padding-top: 100px;
    padding-bottom: 200px;
    color: #333;
    line-height: 1.6;
    margin: 0;
    background: #f5f5f5;
}

/* Contenedor Principal */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    padding-top: 10px;
}

/* Tarjeta Principal */
.main-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 40px;
    margin-bottom: 30px;
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Títulos */
h1 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2rem;
    margin: 40px 0 20px 0;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    margin: 30px 0 15px 0;
    font-weight: 600;
}

/* Párrafos */
p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1em;
    color: #555;
    transition: all 0.3s ease;
    cursor: default;
}

p:hover {
    transform: translateX(5px);
    padding-left: 10px;
    color: #333;
}

strong {
    font-weight: 600;
}

/* Enlaces */
a {
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 8px;
    margin: 5px 0;
}

a:hover {
    transform: translateX(10px) translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Cajas de Objetivo */
.objetivo-box {
    padding: 25px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

/* Secciones de Contenido */
.seccion-contenido {
    margin: 30px 0;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.seccion-contenido:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Tarjetas de Contenido (incorporadas en el archivo principal) */
.contenido-tarjeta {
    margin: 30px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
    transition: all 0.3s ease;
}

.contenido-tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contenido-tarjeta h2 {
    margin-top: 0;
    margin-bottom: 20px;
}

.contenido-tarjeta img {
    margin: 20px auto;
    display: block;
}

.contenido-tarjeta table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.contenido-tarjeta table td,
.contenido-tarjeta table th {
    padding: 10px;
    border: 1px solid #ddd;
}

.contenido-tarjeta table th {
    background: #f8f9fa;
    font-weight: 600;
}

/* Tarjetas de Actividades */
/* Grid para actividades */
.grid-actividades {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .grid-actividades {
        grid-template-columns: 1fr;
    }
}

.actividad-tarjeta {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-left: 5px solid;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 240px;
    height: 100%;
    box-sizing: border-box;
    overflow: visible;
}

.actividad-tarjeta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.actividad-tarjeta h3 {
    margin: 0;
    font-size: 1.3rem;
    white-space: nowrap;
}

.actividad-tarjeta p {
    margin: 0;
    color: #666;
    font-size: 0.95em;
    line-height: 1.6;
    flex-grow: 1;
    overflow: visible;
    word-wrap: break-word;
}

.actividad-tarjeta .btn-actividad {
    display: block;
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    color: white;
    margin-top: auto;
    box-sizing: border-box;
}

.actividad-tarjeta .btn-actividad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Lista de Enlaces */
.lista-enlaces {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.lista-enlaces li {
    margin: 15px 0;
    padding: 15px 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    padding-left: 50px;
}

.lista-enlaces li::before {
    content: '→';
    position: absolute;
    left: 20px;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.lista-enlaces li:hover {
    transform: translateX(10px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lista-enlaces li:hover::before {
    transform: translateX(5px);
}

/* Imágenes */
img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    display: block;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s ease;
    cursor: pointer;
}

img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    filter: brightness(1.05);
}

/* Menú Superior */
.menu-superior {
    background: linear-gradient(135deg, #4a90e2 0%, #52c9dc 100%) !important;
    padding: 20px 0 !important;
    border-radius: 0 0 12px 12px !important;
    margin: 20px auto 30px auto !important;
    max-width: 1200px !important;
    width: calc(100% - 40px) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    position: fixed !important;
    top: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) translateY(0) !important;
    z-index: 1000 !important;
    box-sizing: border-box !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    min-height: 60px !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
}

.menu-superior.oculto {
    transform: translateX(-50%) translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.menu-superior .menu-izquierda,
.menu-superior .menu-derecha {
    flex: 1;
    min-width: 0;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.menu-superior .menu-izquierda {
    justify-content: flex-start;
}

.menu-superior .menu-derecha {
    justify-content: flex-end;
}

.titulo-curso {
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.separador {
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
}

.menu-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.1);
}

.menu-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

.nav-boton {
    background: white;
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.nav-boton:hover {
    background: #f8f9fa;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Menú Inferior */
.menu-inferior {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 20px 0 !important;
    margin: 30px 0 0 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-shadow: none !important;
    position: relative !important;
    box-sizing: border-box !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
    visibility: visible !important;
}

.menu-inferior .subseccion-info {
    display: none !important;
}

.subseccion-info {
    text-align: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(74, 144, 226, 0.2);
}

.subseccion-titulo {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #1e3a8a;
}

.subseccion-descripcion {
    font-size: 0.95rem;
    color: #475569;
    margin: 0;
    font-style: italic;
}

.navegacion-subsecciones {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    flex-wrap: wrap !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-subseccion {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    padding: 15px 25px !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid #e3f2fd !important;
    background: white !important;
    color: white !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.btn-subseccion:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2);
    border-color: #4a90e2;
    color: white !important;
    background: white !important;
}

.btn-anterior {
    justify-content: flex-start;
}

.btn-siguiente {
    justify-content: flex-end;
}

.btn-subseccion .icono {
    font-size: 2rem;
    transition: transform 0.3s ease;
    color: white;
}

.btn-anterior:hover .icono {
    transform: translateX(-5px);
}

.btn-siguiente:hover .icono {
    transform: translateX(5px);
}

.btn-subseccion .texto {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.btn-subseccion .label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn-subseccion .titulo {
    font-size: 1.05rem;
    font-weight: 600;
    color: white;
}

.btn-anterior .texto {
    align-items: flex-start;
    text-align: left;
}

.btn-siguiente .texto {
    align-items: flex-end;
    text-align: right;
}

/* Modales */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 20px;
    width: 90%;
    max-width: 800px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
    position: relative;
    max-height: 80vh;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    padding: 20px;
    border-radius: 20px 20px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-header h2 {
    color: white;
    margin: 0;
    font-size: 1.5rem;
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

/* Borde animado alrededor del modal */
.modal-content::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 20px;
    background-size: 300% 300%;
    animation: rotateBorder 3s linear infinite;
    z-index: -1;
    opacity: 0.8;
}

.modal-content::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: white;
    z-index: -1;
}

@keyframes rotateBorder {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-content:hover {
    transform: translateY(-5px);
}

.close,
.close-btn {
    color: #1f2937 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 10;
    float: none;
}

.close:hover,
.close-btn:hover {
    background: rgba(31, 41, 55, 0.95) !important;
    color: white !important;
    transform: rotate(90deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Estilos para preguntas en actividades */
.pregunta-actividad {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #28a745;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
}

.pregunta-actividad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.15);
}

.pregunta-texto-act {
    flex: 1;
    font-size: 1.05rem;
    color: #1e293b;
    line-height: 1.6;
    font-weight: 500;
}

.btn-ver-desarrollo {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-ver-desarrollo:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ============================================
   PALETA AZUL - Unidad 1 (Dinámica)
   ============================================ */
body.paleta-azul {
    background: linear-gradient(135deg, #4a90e2 0%, #52c9dc 100%);
}

body.paleta-azul h1 {
    color: #1e3a8a;
}

body.paleta-azul h2 {
    color: #4a90e2;
}

body.paleta-azul h3 {
    color: #2c5aa0;
}

body.paleta-azul strong {
    color: #2c5aa0;
}

body.paleta-azul a {
    color: #4a90e2;
    background: rgba(74, 144, 226, 0.1);
}

body.paleta-azul a:hover {
    background: rgba(74, 144, 226, 0.2);
    color: #1e3a8a;
}

body.paleta-azul .objetivo-box {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left-color: #4a90e2;
}

body.paleta-azul .lista-enlaces li {
    border-left: 4px solid #4a90e2;
}

body.paleta-azul .lista-enlaces li::before {
    color: #4a90e2;
}

body.paleta-azul .seccion-contenido {
    border-left: 4px solid #4a90e2;
}

body.paleta-azul .modal-content::before {
    background: linear-gradient(45deg, #4a90e2, #52c9dc, #48c9b0, #a8e063, #4a90e2);
}

body.paleta-azul .close:hover {
    color: #4a90e2;
}

/* Tarjetas de contenido - Paleta Azul */
body.paleta-azul .contenido-tarjeta {
    border-left-color: #4a90e2;
}

body.paleta-azul .contenido-tarjeta.color-1 {
    border-left-color: #4a90e2;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

body.paleta-azul .contenido-tarjeta.color-2 {
    border-left-color: #1e3a8a;
    background: linear-gradient(135deg, #bbdefb 0%, #ffffff 100%);
}

body.paleta-azul .contenido-tarjeta.color-3 {
    border-left-color: #52c9dc;
    background: linear-gradient(135deg, #b3e5fc 0%, #ffffff 100%);
}

body.paleta-azul .contenido-tarjeta.color-4 {
    border-left-color: #2c5aa0;
    background: linear-gradient(135deg, #90caf9 0%, #ffffff 100%);
}

body.paleta-azul .contenido-tarjeta.color-5 {
    border-left-color: #48c9b0;
    background: linear-gradient(135deg, #b2dfdb 0%, #ffffff 100%);
}

/* Tarjetas de actividades - Paleta Azul */
body.paleta-azul .actividad-tarjeta {
    border-left-color: #4a90e2;
    background: linear-gradient(135deg, #e3f2fd 0%, #ffffff 100%);
}

body.paleta-azul .actividad-tarjeta .btn-actividad {
    background: linear-gradient(135deg, #4a90e2 0%, #52c9dc 100%);
}

body.paleta-azul .actividad-tarjeta .btn-actividad:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #4a90e2 100%);
}

/* Menús - Paleta Azul */
body.paleta-azul .menu-superior {
    background: linear-gradient(135deg, #4a90e2 0%, #52c9dc 100%) !important;
}

body.paleta-azul .nav-boton {
    color: white !important;
    background: #4a90e2 !important;
}

body.paleta-azul .nav-boton:hover {
    background: #1e3a8a !important;
    color: white !important;
}

body.paleta-azul .nav-boton:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
}

body.paleta-azul .menu-inferior {
    border: 2px solid #4a90e2 !important;
    box-shadow: 0 -4px 12px rgba(74, 144, 226, 0.1) !important;
}

body.paleta-azul .subseccion-info {
    border-bottom-color: rgba(74, 144, 226, 0.2);
}

body.paleta-azul .subseccion-titulo {
    color: #1e3a8a;
}

body.paleta-azul .btn-subseccion {
    border-color: #e3f2fd !important;
    background: #4a90e2 !important;
    color: white !important;
}

body.paleta-azul .btn-subseccion:hover {
    border-color: #4a90e2 !important;
    box-shadow: 0 8px 20px rgba(74, 144, 226, 0.2) !important;
    color: white !important;
}

body.paleta-azul .btn-subseccion .icono {
    color: white !important;
}

body.paleta-azul .btn-subseccion .titulo {
    color: white !important;
}

body.paleta-azul .btn-subseccion .label {
    color: white !important;
}

/* Modales con diferentes colores - Paleta Azul */
body.paleta-azul .modal-color-1 .modal-content::before {
    background: linear-gradient(45deg, #4a90e2, #52c9dc, #48c9b0, #a8e063, #4a90e2);
}

body.paleta-azul .modal-color-2 .modal-content::before {
    background: linear-gradient(45deg, #1e3a8a, #2c5aa0, #4a90e2, #5dade2, #1e3a8a);
}

body.paleta-azul .modal-color-3 .modal-content::before {
    background: linear-gradient(45deg, #52c9dc, #48c9b0, #26a69a, #4a90e2, #52c9dc);
}

body.paleta-azul .modal-color-4 .modal-content::before {
    background: linear-gradient(45deg, #2c5aa0, #4a90e2, #52c9dc, #90caf9, #2c5aa0);
}

body.paleta-azul .modal-color-5 .modal-content::before {
    background: linear-gradient(45deg, #1e3a8a, #4a90e2, #52c9dc, #48c9b0, #1e3a8a);
}

/* ============================================
   PALETA VERDE - Unidad 2 (Fuerza de Roce)
   ============================================ */
body.paleta-verde {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

body.paleta-verde h1 {
    color: #1e7e34;
}

body.paleta-verde h2 {
    color: #28a745;
}

body.paleta-verde h3 {
    color: #20c997;
}

body.paleta-verde strong {
    color: #1e7e34;
}

/* Excepciones para selección múltiple - no aplicar color verde */
body.paleta-verde .pregunta-sm strong,
body.paleta-verde .opcion-sm {
    color: #1f2937 !important;
}

body.paleta-verde .pregunta-header h3 {
    color: #1e293b !important;
}

body.paleta-verde a {
    color: #28a745;
    background: rgba(40, 167, 69, 0.1);
}

body.paleta-verde a:hover {
    background: rgba(40, 167, 69, 0.2);
    color: #1e7e34;
}

body.paleta-verde .objetivo-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-left-color: #28a745;
}

body.paleta-verde .lista-enlaces li {
    border-left: 4px solid #28a745;
}

body.paleta-verde .lista-enlaces li::before {
    color: #28a745;
}

body.paleta-verde .seccion-contenido {
    border-left: 4px solid #28a745;
}

body.paleta-verde .modal-content::before {
    background: linear-gradient(45deg, #28a745, #20c997, #6ee7b7, #34d399, #28a745);
}

body.paleta-verde .close:hover {
    color: #28a745;
}

/* Tarjetas de contenido - Paleta Verde */
body.paleta-verde .contenido-tarjeta {
    border-left-color: #28a745;
}

body.paleta-verde .contenido-tarjeta.color-1 {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

body.paleta-verde .contenido-tarjeta.color-2 {
    border-left-color: #1e7e34;
    background: linear-gradient(135deg, #c8e6c9 0%, #ffffff 100%);
}

body.paleta-verde .contenido-tarjeta.color-3 {
    border-left-color: #20c997;
    background: linear-gradient(135deg, #b2f5ea 0%, #ffffff 100%);
}

/* Tarjetas de actividades - Paleta Verde */
body.paleta-verde .actividad-tarjeta {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
}

body.paleta-verde .actividad-tarjeta .btn-actividad {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
}

body.paleta-verde .actividad-tarjeta .btn-actividad:hover {
    background: linear-gradient(135deg, #1e7e34 0%, #28a745 100%);
}

/* Menús - Paleta Verde */
body.paleta-verde .menu-superior {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
}

body.paleta-verde .nav-boton {
    color: white !important;
    background: #28a745 !important;
}

body.paleta-verde .nav-boton:hover {
    background: #1e7e34 !important;
    color: white !important;
}

body.paleta-verde .menu-inferior {
    border: 2px solid #28a745 !important;
    box-shadow: 0 -4px 12px rgba(40, 167, 69, 0.1) !important;
}

body.paleta-verde .subseccion-info {
    border-bottom-color: rgba(40, 167, 69, 0.2);
}

body.paleta-verde .subseccion-titulo {
    color: #1e7e34;
}

body.paleta-verde .btn-subseccion {
    border-color: #e8f5e9 !important;
    background: #28a745 !important;
    color: white !important;
}

body.paleta-verde .btn-subseccion:hover {
    border-color: #28a745 !important;
    box-shadow: 0 8px 20px rgba(40, 167, 69, 0.2) !important;
    color: white !important;
}

body.paleta-verde .btn-subseccion .icono {
    color: white !important;
}

body.paleta-verde .btn-subseccion .titulo {
    color: white !important;
}

body.paleta-verde .btn-subseccion .label {
    color: white !important;
}

/* Modales con diferentes colores - Paleta Verde */
body.paleta-verde .modal-color-1 .modal-content::before {
    background: linear-gradient(45deg, #28a745, #20c997, #6ee7b7, #34d399, #28a745);
}

body.paleta-verde .modal-color-2 .modal-content::before {
    background: linear-gradient(45deg, #1e7e34, #28a745, #20c997, #6ee7b7, #1e7e34);
}

body.paleta-verde .modal-color-3 .modal-content::before {
    background: linear-gradient(45deg, #20c997, #6ee7b7, #34d399, #28a745, #20c997);
}

body.paleta-verde .modal-color-4 .modal-content::before {
    background: linear-gradient(45deg, #28a745, #6ee7b7, #34d399, #20c997, #28a745);
}

/* Asegurar que los estilos de selección múltiple no sean afectados por la paleta */
body.paleta-verde .opcion-sm {
    color: #1f2937 !important;
    background: white !important;
}

body.paleta-verde .opcion-sm:hover {
    background: #f3f4f6 !important;
    border-color: #2563eb !important;
}

body.paleta-verde .opcion-sm.opcion-seleccionada {
    background: #dbeafe !important;
    border-color: #2563eb !important;
    color: #1e40af !important;
}

body.paleta-verde .pregunta-sm {
    background: #f8f9fa !important;
    border-left-color: #2563eb !important;
}

body.paleta-verde .pregunta-header h3 {
    color: #1e293b !important;
}

/* ============================================
   PALETA NARANJA - Unidad 3 (Momentum)
   ============================================ */
body.paleta-naranja {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

body.paleta-naranja h1 {
    color: #d97706;
}

body.paleta-naranja h2 {
    color: #f59e0b;
}

body.paleta-naranja h3 {
    color: #f97316;
}

body.paleta-naranja strong {
    color: #d97706;
}

body.paleta-naranja a {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

body.paleta-naranja a:hover {
    background: rgba(245, 158, 11, 0.2);
    color: #d97706;
}

body.paleta-naranja .objetivo-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-left-color: #f59e0b;
}

body.paleta-naranja .lista-enlaces li {
    border-left: 4px solid #f59e0b;
}

body.paleta-naranja .lista-enlaces li::before {
    color: #f59e0b;
}

body.paleta-naranja .seccion-contenido {
    border-left: 4px solid #f59e0b;
}

body.paleta-naranja .modal-content::before {
    background: linear-gradient(45deg, #f59e0b, #f97316, #fb923c, #fbbf24, #f59e0b);
}

body.paleta-naranja .close:hover {
    color: #f59e0b;
}

/* Tarjetas de contenido - Paleta Naranja */
body.paleta-naranja .contenido-tarjeta {
    border-left-color: #f59e0b;
}

body.paleta-naranja .contenido-tarjeta.color-1 {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
}

body.paleta-naranja .contenido-tarjeta.color-2 {
    border-left-color: #d97706;
    background: linear-gradient(135deg, #ffe0b2 0%, #ffffff 100%);
}

body.paleta-naranja .contenido-tarjeta.color-3 {
    border-left-color: #f97316;
    background: linear-gradient(135deg, #ffe4cc 0%, #ffffff 100%);
}

/* Tarjetas de actividades - Paleta Naranja */
body.paleta-naranja .actividad-tarjeta {
    border-left-color: #f59e0b;
    background: linear-gradient(135deg, #fff3e0 0%, #ffffff 100%);
}

body.paleta-naranja .actividad-tarjeta .btn-actividad {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}

body.paleta-naranja .actividad-tarjeta .btn-actividad:hover {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

/* Menús - Paleta Naranja */
body.paleta-naranja .menu-superior {
    background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%) !important;
}

body.paleta-naranja .nav-boton {
    color: white !important;
    background: #f59e0b !important;
}

body.paleta-naranja .nav-boton:hover {
    background: #d97706 !important;
    color: white !important;
}

body.paleta-naranja .menu-inferior {
    border: 2px solid #f59e0b !important;
    box-shadow: 0 -4px 12px rgba(245, 158, 11, 0.1) !important;
}

body.paleta-naranja .subseccion-info {
    border-bottom-color: rgba(245, 158, 11, 0.2);
}

body.paleta-naranja .subseccion-titulo {
    color: #d97706;
}

body.paleta-naranja .btn-subseccion {
    border-color: #fff3e0 !important;
    background: #f59e0b !important;
    color: white !important;
}

body.paleta-naranja .btn-subseccion:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 8px 20px rgba(245, 158, 11, 0.2) !important;
    color: white !important;
}

body.paleta-naranja .btn-subseccion .icono {
    color: white !important;
}

body.paleta-naranja .btn-subseccion .titulo {
    color: white !important;
}

body.paleta-naranja .btn-subseccion .label {
    color: white !important;
}

/* Modales con diferentes colores - Paleta Naranja */
body.paleta-naranja .modal-color-1 .modal-content::before {
    background: linear-gradient(45deg, #f59e0b, #f97316, #fb923c, #fbbf24, #f59e0b);
}

body.paleta-naranja .modal-color-2 .modal-content::before {
    background: linear-gradient(45deg, #d97706, #f59e0b, #f97316, #fb923c, #d97706);
}

body.paleta-naranja .modal-color-3 .modal-content::before {
    background: linear-gradient(45deg, #f97316, #fb923c, #fbbf24, #f59e0b, #f97316);
}

body.paleta-naranja .modal-color-4 .modal-content::before {
    background: linear-gradient(45deg, #f59e0b, #fbbf24, #fb923c, #f97316, #f59e0b);
}

/* ============================================
   ESTILOS PARA SELECCIÓN MÚLTIPLE
   ============================================ */
.pregunta-sm {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    border-left: 4px solid #2563eb;
}

.pregunta-header h3 {
    margin: 0 0 15px 0;
    color: #1e293b;
    font-size: 1.1em;
}

.opciones-sm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.opcion-sm {
    padding: 15px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 1em;
    transition: all 0.3s ease;
    color: #1f2937 !important;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.opcion-sm:hover {
    background: #f3f4f6;
    border-color: #2563eb;
}

.opcion-sm.opcion-seleccionada {
    background: #dbeafe;
    border-color: #2563eb;
    font-weight: 600;
    color: #1e40af !important;
}

.feedback-sm {
    margin-top: 15px;
}

@media (max-width: 768px) {
    .opciones-sm {
        grid-template-columns: 1fr;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .main-card {
        padding: 20px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
    }
}

