﻿/*
    UNIDAD DE TRANSFORMACIÓN DIGITAL E INFORMÁTICA
    TRANSFORMACIÓN DIGITAL DE LA RAMA JUDICIAL
    SISTEMA DE DISEÑO DIGITAL V 1.0
*/


@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

html, body {
    font-family: 'Montserrat', sans-serif !important;
    background-color: var(--color-base-white) !important;
    /*color: var(--color-base-white) !important;*/
}

:root {
    --font-family-montserrat: 'Montserrat', sans-serif;
    /* Paleta de colores principales */
    --color-primary-1000: #12223F;
    --color-primary-900: #182D54;
    --color-primary-800: #274A8A;
    --color-primary-700: #305CAB;
    --color-primary-600: #3D6EC8;
    --color-primary-500: #5D86D1;
    --color-primary-400: #7D9EDA;
    --color-primary-300: #9EB7E4;
    --color-primary-200: #BECFED;
    --color-primary-100: #DFE7F6;
    --color-secondary-1000: #194A22;
    --color-secondary-900: #23652F;
    --color-secondary-800: #2C803C;
    --color-secondary-700: #369B48;
    --color-secondary-600: #3FB755;
    --color-secondary-500: #56C56A;
    --color-secondary-400: #8DD89B;
    --color-secondary-300: #AAE2B4;
    --color-secondary-200: #C6EBCD;
    --color-secondary-100: #E3F5E6;
    --color-neutrals-1000: #151314;
    --color-neutrals-900: #2B2829;
    --color-neutrals-800: #433E3F;
    --color-neutrals-700: #5A5555;
    --color-neutrals-600: #726C6C;
    --color-neutrals-500: #898384;
    --color-neutrals-400: #9F9C9C;
    --color-neutrals-300: #B5B3B3;
    --color-neutrals-200: #CCCBCB;
    --color-neutrals-100: #E3E3E3;
    --color-base-black: #0A0A0B;
    --color-base-white: #FAFAFA;
    /* Paleta de colores de estados */
    --color-success-300: #39A44C;
    --color-success-200: #A0DEAC;
    --color-success-100: #D0EFD5;
    --color-warning-300: #BC8301;
    --color-warning-200: #FDB611;
    --color-warning-100: #FFE7B1;
    --color-error-300: #971C15;
    --color-error-200: #CC1C12;
    --color-error-100: #F0D6D5;
    --color-info-300: var(--color-primary-800);
    --color-info-200: var(--color-primary-400);
    --color-info-100: var(--color-primary-100);
    /* Otros colores */
    --color-card-title: #4991f2;
    /* Tamaños de fuente*/
    --fontsize-header-lg: 40px;
    --fontsize-header-md: 36px;
    --fontsize-header-sm: 32px;
    --fontsize-title-lg: 28px;
    --fontsize-title-md: 24px;
    --fontsize-title-sm: 20px;
    /* Altura de línea*/
    --lineheight-header-lg: 46px;
    --lineheight-header-md: 40px;
    --lineheight-header-sm: 36px;
    --lineheight-title-lg: 32px;
    --lineheight-title-md: 28px;
    --lineheight-title-sm: 24px;
    /* Logos Rama Judicial*/
    /* Parámetros cabecera principal*/
    --altura-banner-lg: 100px;
    --altura-banner-md: 60px;
    --altura-banner-sm: 20px;
    --z-index-header: 1000;
    --z-index-header-sec: 1010;
    /* Parámetros toolbar vertical izquierdo*/
    --ancho-toolbar-vertical-lg: 70px;
    /* Parámetros cabecera secundaria*/
    --altura-banner-sec-lg: 100px;
    /* Sombras */
    --sombra: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12);
    --mud-palette-primary: var(--color-card-title);
    --mud-palette-primary-text: var(--color-neutrals-100);
}

.layout {
    display: flex;
    flex-direction: column;
    height: 100vh; /* Usa toda la altura de la ventana */
    overflow: hidden; /* Evita scroll general */
}

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--altura-banner-lg);
    background-color: var(--color-primary-800);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: var(--z-index-header);
}

.img-main-header-td {
    height: 72px;
    padding-right: 20px;
}

.img-main-header-csj {
    height: 60px;
    padding-left: 20px;
}

.nav-toolbar {
    position: fixed;
    top: var(--altura-banner-lg);
    left: 0;
    width: var(--ancho-toolbar-vertical-lg);
    height: calc(100vh - var(--altura-banner-lg));
    background-color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 8px 0;
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.1);
    z-index: var(--z-index-header);
    overflow-y: auto;
}

    .nav-toolbar.expandido {
        width: 280px;
        transition: width 0.3s;
        padding-left: 10px;
    }

.nav-text {
    margin-left: 10px;
    white-space: nowrap;
    font-size: 15px;
    color: var(--color-neutrals-400);
    transition: color 0.3s;
}

.nav-toolbar-top, .nav-toolbar-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.nav-button.selected .nav-text,
.nav-text.selected-text {
    color: white; /* Texto blanco cuando fondo es azul */
}

.nav-button {
    background-color: transparent;
    border: none;
    margin: 2px 0;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: flex-start; /* para que el texto quede a la derecha del icono */
    padding-left: 10px;
    align-items: center;
    border-radius: 4px;
    transition: width 0.3s, background-color 0.3s, transform 0.2s;
}

    .nav-button img {
        pointer-events: none;
    }

    .nav-button:hover {
        transform: scale(1.2);
    }

    .nav-button.selected {
        background-color: var(--color-card-title)
    }

        .nav-button.selected img {
            filter: brightness(100%);
        }

.toggle-arrow {
    transition: transform 0.3s ease;
}

    .toggle-arrow.rotated {
        transform: rotate(180deg);
    }
.main-content {
    /*margin-left: 70px;
        padding: 20px;
        height: calc(100% - var(--altura-banner-lg));
        overflow-y: auto;*/
    margin-top: calc(var(--altura-banner-lg) + var(--altura-banner-sec-lg));
    margin-left: var(--ancho-toolbar-vertical-lg);
    height: calc(100vh - var(--altura-banner-lg) - var(--altura-banner-sec-lg));
    overflow-y: auto; /* Habilita scroll solo aquí */
    padding: 20px;
}

.secondary-header {
    position: fixed;
    top: var(--altura-banner-lg); /* Justo debajo del banner principal */
    /*left: var(--ancho-toolbar-vertical-lg); */
    width: 100%;
    height: var(--altura-banner-sec-lg);
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
    box-shadow: 0 2px 0px rgba(0, 0, 0, 0.1);
    z-index: var(--z-index-header-sec);
}

    /* Imagen dentro del banner secundario */
    .secondary-header .img-sec-header-logo {
        height: 100%;
        padding-left: var(--ancho-toolbar-vertical-lg);
    }

    /* Contenedor para usuario autenticado */
    .secondary-header .user-content {
        flex-grow: 1;
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

.okbutton {
    font-family: var(--font-family-montserrat) !important;
    color: var(--color-primary-800) !important;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
    background-color: var(--color-secondary-500) !important;
    border-radius: 4px !important;
    font-weight: bold !important;
    padding-left: 20px !important;
    padding-bottom: 9px !important;
    padding-top: 9px !important;
    padding-right: 20px !important;
    max-height: 50px;
    min-width: 150px;
    border-width: 0px;
    height: 40px;
    margin-right: 4px
}

.infobutton {
    font-family: var(--font-family-montserrat) !important;
    color: var(--color-base-white) !important;
    box-shadow: 0 3px 1px -2px rgba(0, 0, 0, .2), 0 2px 2px 0 rgba(0, 0, 0, .14), 0 1px 5px 0 rgba(0, 0, 0, .12);
    background-color: var(--color-primary-600) !important;
    font-weight: bold;
    border-radius: 4px !important;
    font-weight: bold;
    padding-left: 20px !important;
    padding-bottom: 9px !important;
    padding-top: 9px !important;
    padding-right: 20px !important;
    max-height: 50px;
    min-width: 150px;
    height: 40px;
    margin-right: 4px
}

.card-container {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten en múltiples filas */
    gap: 20px; /* Espacio entre tarjetas */
    justify-content: flex-start; /* Alineación horizontal */
    align-content: flex-start; /* Alineación vertical */
    padding: 10px;
}

.card-disabled {
    background-color: var(--color-base-white);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s; /* Transiciones suaves */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
}
.card-header-disabled {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    gap: 20px; /* Espacio entre el ícono y el título */
}
.card-title-disabled {
    color: var(--color--neutrals-600);
    font-size: 1.1rem;
    margin: 0;
    transition: color 0.3s;
    font-weight: bolder;
}

.card-content-disabled {
    color: var(--color-neutrals-600);
    margin: 10px 0 0 0;
    transition: color 0.3s;
}

/* Tarjeta general */
.card {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s; /* Transiciones suaves */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
}

/* Encabezado de la tarjeta */
.card-header {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    gap: 20px; /* Espacio entre el ícono y el título */
}

/* Estilo del ícono */
.card-icon {
    width: 24px;
    height: 24px;
    transition: filter 0.3s; /* Transición para el color del ícono */
}

/* Título de la tarjeta */
.card-title {
    color: var(--color-card-title);
    font-size: 1.1rem;
    margin: 0;
    transition: color 0.3s;
    font-weight: bolder;
}

/* Contenido de la tarjeta */
.card-content{
    color: var(--color-base-black);
    margin: 10px 0 0 0;
    transition: color 0.3s;
}

/* Efecto Hover */
.card:hover {
    background-color: var(--color-primary-500);
}

    .card:hover .card-title,
    .card:hover .card-content p {
        color: white; /* Texto y título blancos */
    }

    .card:hover .card-icon {
        filter: brightness(0) invert(1); /* Ícono blanco usando filtro */
        stroke: var(--color-card-title) !important;
    }


card-container-2 {
    display: flex;
    flex-wrap: wrap; /* Permite que las tarjetas se ajusten en múltiples filas */
    gap: 20px; /* Espacio entre tarjetas */
    justify-content: flex-start; /* Alineación horizontal */
    align-content: flex-start; /* Alineación vertical */
    padding: 10px;
}
/* Tarjeta general */
.card-2 {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    transition: background-color 0.3s, color 0.3s; /* Transiciones suaves */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex: 1 1 300px;
}

/* Encabezado de la tarjeta */
.card-header-2 {
    display: flex;
    align-items: center;
    background-color: rgba(0, 0, 0, 0);
    gap: 20px; /* Espacio entre el ícono y el título */
    border-bottom: 1px solid rgba(0, 0, 0, .125);
    padding-bottom: 10px;
}

/* Estilo del ícono */
.card-icon-2 {
    width: 24px;
    height: 24px;
    transition: filter 0.3s; /* Transición para el color del ícono */
}

/* Título de la tarjeta */
.card-title-2 {
    color: var(--color-card-title) !important;
    font-size: var(--lineheight-title-sm) !important;
    margin: 0;
    transition: color 0.3s;
    font-weight: bolder;
}

/* Contenido de la tarjeta */
.card-content-2 {
    color: var(--mud-palette-text-primary);
    margin: 20px 0 0 0;
    transition: color 0.3s;
}


/* Overlay oscuro del modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

/* Estilo del modal */
.modal {
    display: block !important;
    position: relative;
    background: white;
    border-radius: 8px;
    width: 450px;
    max-width: 90%;
    height: 300px;
    max-height: 650px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow-y: auto; /* Scroll vertical si el contenido excede la altura máxima */
}


/* Header del modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 10px;
}

    .modal-header h5 {
        margin: 0;
    }

/* Botón de cerrar */
.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Cuerpo del modal */
.modal-body {
    /*max-height: 300px;*/
    overflow-y: auto;
}

/* Estilo para los ítems */
.modal-item {
    padding: 10px;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.2s, border-color 0.2s;
}

    .modal-item:hover {
        background-color: #f0f0f0;
        border-color: var(--color-primary-500);
    }


.custom-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--color-neutrals-300);
}

    .custom-table th,
    .custom-table td {
        border: 1px solid var(--color-neutrals-300);
        padding: 8px;
        text-align: left;
    }

    .custom-table th {
        background-color: var(--color-neutrals-100);
        font-weight: bold;
    }


.mud-typography-body1 {
    font-size: var(--mud-typography-body1-size);
    font-family: var(--font-family-montserrat) !important;
    font-weight: var(--mud-typography-body1-weight);
    line-height: var(--mud-typography-body1-lineheight);
    letter-spacing: var(--mud-typography-body1-letterspacing);
    text-transform: var(--mud-typography-body1-text-transform);
}

.mud-table-root .mud-table-head .mud-table-cell {
    color: var(--color-base-black);
    font-weight: 500;
    line-height: 1.5rem;
    font-weight: bold !important;
    background-color: var(--color-neutrals-100) !important;
}

.mud-data-grid .mud-table-cell.sticky-left, .mud-data-grid .mud-table-cell.sticky-right {
    position: sticky;
    background-color: var(--color-neutrals-100) !important;
    z-index: 1;
}

.mud-breadcrumbs {
    font-weight: bolder !important;
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 auto;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 16px 12px;
}

label {
    font-weight: bold;
    display: inline-block;
}

.search-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 600px;
}

.input-button-container {
    display: flex;
    gap: 8px;
}

input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 4px !important;
    font-size: 16px !important;
    padding-left: 8px;
}

@media (max-width: 400px) {
    .infobutton {
        width: 100%; /* Para que ocupe todo el ancho en pantallas pequeñas */
    }
    .okbutton {
        width: 100%; /* Para que ocupe todo el ancho en pantallas pequeñas */
    }
}

@media (max-width: 520px) {
    .input-button-container {
        flex-direction: column;
    }

}

.mud-table-cell {
    padding: 8px !important;
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #007bff;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.chat-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
    max-width: 900px;
    margin: auto;
    font-family: Arial, sans-serif;
}

.chat-comment {
    width: 85%;
    display: flex;
    flex-direction: column;
}

    .chat-comment.left {
        align-self: flex-start;
        text-align: left;
    }

    .chat-comment.right {
        align-self: flex-end;
        text-align: right;
    }

.chat-bubble {
    border-radius: 12px;
    padding: 10px 16px;
    background-color: var(--color-neutrals-200);
}

.chat-comment.right .chat-bubble {
    background-color: var(--color-primary-200);
}

.chat-date {
    text-align: center;
    font-size: 0.8em;
    margin-bottom: 8px;
}

.chat-header {
    font-size: 0.85em;
    margin-bottom: 8px;
    color: inherit;
}

.chat-message {
    background-color: var(--color-base-white);
    color: black;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 1em;
    word-wrap: break-word;
    max-width: 100%;
    white-space: pre-wrap;
}

@media (max-width: 800px) {
    .info-layout {
        flex-direction: column-reverse;
    }
}

.mud-tooltip, .mud-popover, .mud-tooltip .mud-paper, .mud-popover .mud-paper {
    box-shadow: none !important;
    border: none !important;
}

    .mud-elevation-8,
    .mud-tooltip .mud-paper,
    .mud-popover .mud-paper {
        box-shadow: 0px 0.5px 1px rgba(0,0,0,0.05) !important;
    }

.mud-theme-primary {
    color: var(--color-neutrals-100) !important;
    background-color: var(--color-card-title) !important;
}

.mud-picker-calendar .mud-day {
    color: var(--color-neutrals-700) !important;
    width: 36px;
    height: 36px;
    margin: 0 2px;
    padding: 0;
    font-size: .75rem;
    font-weight: 500;
}

.mud-input {
    position: relative;
    color: var(--color-neutrals-700) !important;
    cursor: text;
    display: inline-flex;
    box-sizing: border-box;
    align-items: center;
    color-scheme: var(--mud-native-html-color-scheme);
    line-height: 1.1876em;
}

.mud-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    flex: 0 1 auto;
    align-items: center;
    list-style: none;
    margin: 0;
    padding-left: 0px !important;
    padding-top: 0px !important;
    padding-bottom: 16px !important;
}

.card-icon {
    width: 40px;
    height: 40px;
    stroke: var(--color-card-title) !important;
}

.icon-svg {
    stroke: var(--color-primary-400);
    transition: color 0.3s ease-in-out;
}

    .icon-svg:hover {
        stroke: var(--color-primary-700);
    }

.icon-svg-main {
    stroke: var(--color-secondary-400);
    transition: color 0.3s ease-in-out;
}

    .icon-svg-main:hover {
        stroke: var(--color-secondary-700);
    }

.icon-label {
    font-size: 10px;
    margin-top: 2px;
    text-align: left;
    color: var(--color-primary-400);
    display: flex;
}

    .icon-label:hover {
        color: var(--color-primary-700);
    }




/*   Estilos para Interfaz de Ayuda*/
.tutorials-container {
    padding: 12px;
}


.filters-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

    .filter-btn:hover {
        border-color: var(--color-primary-500);
        color: #667eea;
    }

    .filter-btn.active {
        background: var(--color-primary-500);
        border-color: var(--color-primary-300);
        color: var(--color-base-white);
    }

.section {
    margin-bottom: 30px;
}

.section-title {
    margin-top: 20px;
    margin-bottom: 15px;
    color: var(--color-primary-800);
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: var(--lineheight-title-sm) !important;
    font-weight: bolder;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.video-card, .pdf-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

    .video-card:hover, .pdf-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    }

.video-thumbnail {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
}

    .video-thumbnail:hover {
        transform: scale(1.02);
    }

    .video-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: brightness 0.3s ease;
    }

    .video-thumbnail:hover img {
        brightness: 0.8;
    }

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.7);
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
}

.play-triangle {
    width: 0;
    height: 0;
    border-left: 16px solid white;
    border-top: 12px solid transparent;
    border-bottom: 12px solid transparent;
    margin-left: 4px; /* Centrar visualmente el triángulo */
}

.video-thumbnail:hover .play-overlay {
    background: rgba(73, 145, 242, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.video-thumbnail:hover .play-triangle {
    border-left-color: white;
    transform: scale(1.1);
}

.duration-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.pdf-preview {
    position: relative;
    height: 200px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    background: #f8f9fa;
}

    .pdf-preview:hover {
        transform: scale(1.02);
    }

    .pdf-preview img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: brightness 0.3s ease;
    }

    .pdf-preview:hover img {
        brightness: 0.9;
    }

.pdf-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(73, 145, 242, 0.9);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(2px);
    opacity: 0;
}

.pdf-preview:hover .pdf-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(238, 90, 36, 0.3);
}

.pdf-icon-small {
    font-size: 24px;
}

.pdf-icon {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    font-size: 60px;
}

.h-card-content {
    padding: 20px;
}

.h-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--color-primary-900);
    line-height: 1.1;
}

.h-card-description {
    color: var(--color-primary-900);
    line-height: 1.4;
    margin-bottom: 15px;
}

.h-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.difficulty {
    padding: 4px 12px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.8rem;
}

    .difficulty.principiante {
        background: #d4edda;
        color: #155724;
    }

    .difficulty.intermedio {
        background: #fff3cd;
        color: #856404;
    }

    .difficulty.avanzado {
        background: #f8d7da;
        color: #721c24;
    }

.views, .file-size, .pages {
    color: #666;
}

.watch-btn {
    width: 100%;
    padding: 12px;
    background: var(--color-primary-600);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .watch-btn:hover {
        background: var(--color-card-title);
        transform: translateY(-2px);
    }

.h-card-actions {
    display: flex;
    gap: 10px;
}

.download-btn, .preview-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn {
    background: #28a745;
    color: white;
}

    .download-btn:hover {
        background: #218838;
        transform: translateY(-2px);
    }

.preview-btn {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #e0e0e0;
}

    .preview-btn:hover {
        background: #e9ecef;
        transform: translateY(-2px);
    }

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.video-modal {
    background: white;
    border-radius: 15px;
    max-width: 90%;
    max-height: 90%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

.pdf-modal {
    background: white;
    border-radius: 15px;
    max-width: 100%;
    max-height: 100%;
    width: 95%;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

    .modal-header h3 {
        margin: 0;
        color: #333;
    }

.download-btn-modal {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

    .download-btn-modal:hover {
        background: #218838;
    }

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
}

    .close-btn:hover {
        color: #333;
    }

.video-container {
    width: 800px;
    height: 450px;
    max-width: 100%;
}

.pdf-container {
    width: 100%;
    height: 600px;
    max-width: 100%;
}

    .video-container iframe,
    .pdf-container iframe {
        width: 100%;
        height: 100%;
    }


@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }

    .filters-section {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
    }

    .filter-buttons {
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .video-container {
        width: 100%;
        height: 300px;
    }
}