/*primary color*/
.bg-cream {
    background-color: #cfcfcf;
}
.logo{
    margin: 10px;

}
.logo2{
 width: 50%;

}
.pdf{
  
    width: 100%;
    height: 600px;
  }

  .pdf2{
  
    width: 100%;
    height: 500px;
  }
/*font*/
body {
    font-family: 'Poppins', sans-serif;
}

.bg-yellow-500 {
    background-color: #F48C06;
}
.text-yellow-500 {
    color: #F48C06;
}
.floating { 
    animation-name: floating; 
    animation-duration: 3s; 
    animation-iteration-count: infinite; 
    animation-timing-function: ease-in-out;
} 
@keyframes floating { 
    0% { transform: translate(0, 0px); } 
    50% { transform: translate(0, 8px); } 
    100% { transform: translate(0, -0px); }  
} 
.floating-4 { 
    animation-name: floating; 
    animation-duration: 4s; 
    animation-iteration-count: infinite; 
    animation-timing-function: ease-in-out;
} 
@keyframes floating-4 { 
    0% { transform: translate(0, 0px); } 
    50% { transform: translate(0, 8px); } 
    100% { transform: translate(0, -0px); }  
}
.text-darken {
    color: #2F327D;
}

.whatsapp {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 45px;
    z-index: 100;
}

.enca{
    width: 100%;
    height: 500px;
}

.imgbanner{
    width: 80%;
}

/* Estilos adicionales para el Portal de Conocimiento */

/* Colores adicionales */
.bg-brown-50 { background-color: #efebe9; }
.text-brown-600 { color: #6d4c41; }

.bg-teal-50 { background-color: #e0f2f1; }
.text-teal-600 { color: #00897b; }

.bg-orange-50 { background-color: #fff3e0; }
.text-orange-600 { color: #f57c00; }

/* Efectos de hover para tarjetas */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Animación para filtros activos */
.filter-active {
    animation: pulse-active 2s infinite;
}

@keyframes pulse-active {
    0% {
        box-shadow: 0 0 0 0 rgba(244, 140, 6, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(244, 140, 6, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(244, 140, 6, 0);
    }
}

/* Estilos para transiciones Alpine */
[x-cloak] {
    display: none !important;
}

/* Mejoras de responsividad */
@media (max-width: 768px) {
    .curso-card {
        margin-bottom: 1rem;
    }
    
    .filter-buttons {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .filter-buttons button {
        flex-shrink: 0;
    }
}

/* Estilos adicionales para el Portal de Conocimiento - Catálogo */

/* Colores adicionales */
.bg-teal-100 { background-color: #ccfbf1; }
.text-teal-800 { color: #115e59; }

.bg-indigo-100 { background-color: #e0e7ff; }
.text-indigo-800 { color: #3730a3; }

.bg-orange-100 { background-color: #ffedd5; }
.text-orange-800 { color: #9a3412; }

/* Animación para filtros activos */
.filter-active {
    position: relative;
    overflow: hidden;
}

.filter-active::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 25%, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.1) 50%, transparent 50%, transparent 75%, rgba(255,255,255,0.1) 75%);
    background-size: 20px 20px;
    animation: shine 2s infinite linear;
    pointer-events: none;
}

@keyframes shine {
    0% { background-position: -20px 0; }
    100% { background-position: 20px 0; }
}

/* Transiciones para elementos Alpine */
[x-cloak] {
    display: none !important;
}

.transition-collapse {
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* Mejoras para tablas */
table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: #fef3c7;
}

/* Efectos hover mejorados */
.hover-lift {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.15);
}

/* Estilos para niveles */
.nivel-basico {
    background-color: #d1fae5;
    color: #065f46;
}

.nivel-intermedio {
    background-color: #fef3c7;
    color: #92400e;
}

.nivel-avanzado {
    background-color: #fee2e2;
    color: #991b1b;
}

/* Scrollbar personalizado */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #F48C06;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #d17a05;
}

/* Efectos de gradiente */
.gradient-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Responsividad mejorada */
@media (max-width: 768px) {
    .catalogo-grid {
        grid-template-columns: 1fr !important;
    }
    
    .cartilla-header {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .cartilla-header > div:first-child {
        margin-bottom: 1rem;
    }
    
    .filtros-container {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.75rem;
        margin-bottom: -0.75rem;
    }
    
    .filtro-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Animaciones de entrada */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-in-up {
    animation: slideInUp 0.5s ease-out;
}

/* Mejoras para accesibilidad */
:focus {
    outline: 2px solid #F48C06;
    outline-offset: 2px;
}

/* Estilos para botones de copiar */
.copy-btn:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

/* Sombra para tarjetas de recursos */
.recurso-card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.recurso-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    border-color: #F48C06;
}

/* Estilos para el Portal de Conocimiento */

/* Transiciones */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Efectos hover */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -10px rgba(0, 0, 0, 0.15);
}

/* Animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.3s ease-out;
}

/* Colores adicionales */
.bg-teal-100 { background-color: #ccfbf1; }
.text-teal-800 { color: #115e59; }

.bg-indigo-100 { background-color: #e0e7ff; }
.text-indigo-800 { color: #3730a3; }

.bg-orange-100 { background-color: #ffedd5; }
.text-orange-800 { color: #9a3412; }

/* Estados de filtros activos */
.filter-active {
    position: relative;
    z-index: 10;
    box-shadow: 0 0 0 2px rgba(244, 140, 6, 0.2);
}

/* Mejoras de accesibilidad */
:focus-visible {
    outline: 2px solid #F48C06;
    outline-offset: 2px;
    border-radius: 0.25rem;
}

/* Scrollbar personalizado */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: #F48C06;
    border-radius: 4px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: #d17a05;
}

/* Responsividad mejorada */
@media (max-width: 768px) {
    .mobile-stack {
        flex-direction: column;
    }
    
    .mobile-full-width {
        width: 100%;
    }
    
    .mobile-text-center {
        text-align: center;
    }
}

/* Estilos para la tabla */
table tbody tr {
    transition: background-color 0.2s ease;
}

table tbody tr:hover {
    background-color: #fef3c7;
}

/* Efectos para botones de copiar */
.copy-btn {
    transition: all 0.2s ease;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

/* Gradientes sutiles */
.gradient-yellow {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.gradient-blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.gradient-green {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
}

/* Mejoras de sombras */
.shadow-soft {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.shadow-medium {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.shadow-hard {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Animación para elementos que aparecen */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease-out;
}