@import url("https://fonts.googleapis.com/css?family=Titillium Web");

/* assets/css/styles.css */
:root {
    --primary-color: #549db4;
    --primaryaltern-color: #38778a;
    --secondary-color: #b50018;
    --secondaryaltern-color: #ce6339;
    --accent-color: #ffffff;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --info-color: #1b8af1;
    --error-color: #ef4444;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --white: #ffffff;
    --black: #000;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
        0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --border-radius: 0.5rem;
    --transition: all 0.3s ease;

    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --black: #000;
    --gradient-primary: linear-gradient(135deg, #2b78b5 0%, #1d9ae9 100%);
    --gradient-secondary: linear-gradient(135deg, #ce6339 0%, #b50018 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-image: url("../../../assets/img/hero-bg-light.webp");
    font-family: "Titillium Web", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    margin: 0;
    padding-top: 70px;
    background-size: cover;

    /* Centra la imagen */
    background-position: center center;

    /* Evita que la imagen se repita */
    background-repeat: no-repeat;

    /* Fija la imagen para que no se mueva al hacer scroll */
    background-attachment: fixed;

    /* Asegura que el fondo cubra todo el viewport */
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.664);
    /* Capa blanca semitransparente */
    z-index: -1;
    pointer-events: none;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-left span {
    color: white;
}

@media (max-width: 768px) {
    .header-left span {
        font-size: 20px;
        /* Reducir tamaño de fuente */
        line-height: 1.2;
        /* O si prefieres ocultarlo completamente: */
        /* display: none; */
    }
}

/* Para pantallas muy pequeñas (móviles) */
@media (max-width: 480px) {
    .header-left span {
        font-size: 12px;
        /* O texto más corto: */
        /* content: "Concurso Innovación"; */
    }
}


.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--white);
    font-size: 1.25rem;
    font-weight: normal;
}

.logo img {
    height: 50px;
    /* Ajusta la altura según el tamaño de tu logotipo */
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.932));
}

.header-right .btn-primary {
    background: #549db4;
    border: 1px solid rgb(255, 255, 255);
    color: var(--white);
    padding: 0.625rem 1.25rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-right .btn-primary:hover {
    background: #daedf3;
    transform: translateY(-1px);
    color: var(--black);
}

@media (max-width: 480px) {
    .btn-primary span {
        display: none;
    }

    /* O si el texto está directamente en el botón sin span */
    .btn-primary {
        font-size: 0;
    }

    .btn-primary i {
        font-size: 16px;
        /* Restaurar tamaño del ícono */
    }
}


.container {
    max-width: 1400px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

.header-practicas {
    width: 90%;
    text-align: center;
    line-height: 1;
    margin-top: 20px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-practicas h1 {
    color: #2c3e50;
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.header-practicas p {
    color: #7f8c8d;
    font-size: 1.2em;
}

.years {
    display: flex;
    width: 100%;
    justify-content: center;

}

.year-tabs {
    width: 50%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.year-tab {
    width: 7rem;
    background: var(--accent-color);
    color: var(--primary-color);
    border: solid 1px var(--primary-color);
    padding: 12px 25px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.year-tab:hover {
    background-color: var(--primaryaltern-color);
    color: white;
}

.year-tab.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 6px 20px rgba(60, 183, 231, 0.644);
    border: solid 1px white;
}

.year-content {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.year-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.projects-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.project-card {
    margin-left: 20px;
    max-width: 450px;
    
    border-radius: 15px;
    padding: 15px 15px 5px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.308),
        inset 0 0 0 1px rgba(255, 255, 255, 0.39);
    transition: all 0.3s ease;
    backdrop-filter: blur(12px) saturate(160%);
    display: flex;
    flex-direction: column;
    min-height: 400px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

/* Pseudoelemento para el efecto de vidrio */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgb(255, 255, 255);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    z-index: -1;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.project-header>div:first-child {
    width: 100%;
}

.project-title {
    width: 100%;
    font-size: 1em;
    font-weight: 600;
    color: var(--primaryaltern-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.category-title,
.subcategory-title {
    font-size: 0.9rem;
    color: #000;
    font-weight: 500;
}



.project-code {
    width: 150px;
    height: 30px;
    background: #f7e3d8;
    color: #8b4d09;
    padding: 5px 5px 5px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: 500;
    right: 5px;
}

.project-info {
    display: grid;
    gap: 0;
    margin-bottom: 5px;
    flex: 1;
}

.info-row {
    display: flex;
    align-items: center;   /* Centra verticalmente */
    justify-content: space-between; /* Deja label a la izq. y value a la der. */
    margin: 6px 0;
    font-size: 14px;
}

.info-label {
    display: flex;
    align-items: center;
    font-weight: bold;
    color: #333;
    gap: 6px;  /* Espacio entre icono y texto */
}

.info-label img {
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.info-value {
    color: #555;
    font-weight: normal;
}

.condition-badge {
    padding: 6px 15px;
    border-radius: 10px;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.condition-postulante {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.condition-finalista {
    background: linear-gradient(45deg, #f39c12, #e67e22);
    color: white;
}

.condition-ganador {
    background: #e5f6d2;
    color: #34422d;
    border: solid 1px #708f62;
    font-weight: 600;
    animation: pulse 2s infinite;
}


@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(39, 174, 96, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(39, 174, 96, 0);
    }
}

.team-button {
    background: #fde567;
    color: var(--secondary-color);
    border: none;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.team-button i {
    font-size: 20px;
}

.team-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(134, 134, 134, 0.3);
}

.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    border-top: 1px solid #dfdfdf;
    height: auto;
    flex-shrink: 0;
}

.project-actions i {
    font-size: 40px;

}

.download-button {
    color: var(--secondary-color);
    text-decoration: none;
    padding: 3px 9px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.download-button i {
    font-size: 18px;
}

.download-button:hover {
    border: solid 1px #d3d3d3;
    transform: scale(1.05);
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 6px 6px 20px #9d9d9d,
        -16px -16px 14px #ffffff;
}


.download-files {
    display: flex;
    flex-direction: row;
    align-items: end;
    gap: 10px;
}

.category-tag {
    background: #dcf3ff;
    color: var(--primaryaltern-color);
    padding: 2px 12px;
    border-radius: 3px;
    font-size: 0.8em;
    border-left: solid 3px var(--primary-color);
}

.subcategory-tag {
    background: #f7e3d8;
    color: #8b4d09;
    padding: 2px 12px;
    border-radius: 3px;
    font-size: 0.8em;
    border-left: solid 3px #814402;

}

/* Modal para mostrar equipo docente */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    margin: 15% auto;
    padding: 30px;
    border-radius: 20px;
    width: 80%;
    max-width: 500px;
    position: relative;
    animation: modalSlideIn 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #e74c3c;
}

.modal h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.teacher-list {
    list-style: none;
}

.teacher-item {
    padding: 10px;
    margin: 5px 0;
    background: linear-gradient(45deg, #ecf0f1, #d5dbdb);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.teacher-item i {
    color: #3498db;
}

.search-filter {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0);
    padding: 0;
    border-radius: 15px;
    margin-bottom: 20px;

}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    border-color: #3498db;
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-header {
        flex-direction: column;
        gap: 10px;
    }

    .year-tabs {
        flex-direction: column;
        align-items: center;
    }
}






/* Contenedor de notificaciones */
.download-icon {
    font-size: 18px;
    color: #10b981;
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #c7c7c7;
    border-top: 2px solid #28a745;
    border-radius: 50%;
    animation: spin 1s linear infinite;

}

@keyframes rotacionContinua {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.notification-container {
    position: fixed;
    top: 20px;
    right: 50%;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 400px;
    height: 100px;
}

/* Notificación individual */
.notification {
    background: white;
    border-radius: 8px;
    padding: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    border-left: 4px solid #3498db;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

/* Tipos de notificación */
.notification-success {
    border-left-color: #27ae60;
    background: linear-gradient(135deg, #f0fff4, #ffffff);
}

.notification-error {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #fee, #fff);
}

.notification-warning {
    border-left-color: #f39c12;
    background: linear-gradient(135deg, #fef5e7, #fff);
}

.notification-info {
    border-left-color: #3498db;
    background: linear-gradient(135deg, #e3f2fd, #fff);
}

.notification-loading {
    border-left-color: #6c757d;
}

/* Contenido de la notificación */
.notification-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    color: #27ae60;
}

.notification-error .notification-icon {
    color: #e74c3c;
}

.notification-warning .notification-icon {
    color: #f39c12;
}

.notification-info .notification-icon {
    color: #3498db;
}

.notification-loading .notification-icon {
    animation: spin 1s linear infinite;
    color: #6c757d;
}

.notification-message {
    flex: 1;
    color: #2d3748;
    font-size: 14px;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #718096;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    flex-shrink: 0;
}

.notification-close:hover {
    color: #2d3748;
}

/* Barra de progreso para notificaciones de carga */
.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #3498db, #27ae60);
    animation: progressBar 3s linear infinite;
    border-radius: 0 0 8px 8px;
}

@keyframes progressBar {
    0% {
        width: 0%;
    }

    100% {
        width: 100%;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .notification-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification {
        padding: 12px;
    }

    .notification-message {
        font-size: 13px;
    }
}




/*- ------ ESTILOS PARA LAIGHTBOX  ------*/
.video-lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    position: relative;
    margin: 5% auto;
    width: 90%;
    max-width: 800px;
    background: rgb(0, 0, 0);
    border-radius: 15px;
    overflow: hidden;
    animation: lightboxSlideIn 0.3s ease;
}

@keyframes lightboxSlideIn {
    from {
        transform: scale(0.7);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-header {
    background: linear-gradient(45deg, #2c3e50, #34495e);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lightbox-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.lightbox-video {
    width: 100%;
    height: 450px;
    background: #000;
}

.lightbox-controls {
    padding: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.lightbox-btn {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lightbox-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.lightbox-btn.download {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}