@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: 1200px;
    margin: 50px auto;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    /* más flexible */
    gap: 30px;
    padding: 20px 0;
}

.card {
    position: relative;
    width: 100%;
    /* ocupar todo el ancho disponible */
    max-width: 500px;
    /* límite en pantallas grandes */
    min-height: 300px;
    background-image: url('./img/fondo-tarjeta.png');
    background-size: cover;
    /* mejor ajuste */
    background-position: center;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    padding: 15px;
    color: white;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.card-header {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    margin-bottom: 5px;

}

.year {
    color: #967526;
    font-size: 20px;
    font-weight: 600;
}

.profile-section {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
    position: relative;

}

.profile-info {
    width: 90%;
    margin-top: 25px;
    text-align: right;
    max-width: calc(100% - 130px);
}

.name {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--primaryaltern-color);
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

.role {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 5px;
    line-height: 1;
}

.photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 5px solid #dec85cd8;
    object-fit: cover;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    flex-shrink: 0;
    position: absolute;
    right: 0;
    top: 0;
}

.title-section {
    margin-bottom: 0;
}

.title-label {
    font-size: 14px;
    color: var(--primaryaltern-color);
}

.title-text {
    font-size: 16px;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
    margin-bottom: 15px;
}

.group-details {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: row;
}

.details-section {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0;
}

.detail-row {
    display: flex;
    gap: 0;
    align-items: center;
    color: var(--primaryaltern-color);
}

.detail-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    opacity: 0.9;

}

.detail-label {
    font-size: 15px;
    min-width: 140px;
    color: #E0E6ED;
    font-weight: 600;
    line-height: 0.5;
    margin-left: 10px;
    color: var(--primaryaltern-color);
}

.detail-value {
    font-size: 15px;
    font-weight: 500;
    margin-left: 5px;
    color: #4e4e4e;
    line-height: 0.5;
}

.action-buttons {
    display: flex;
    gap: 15px;
    align-items: end;
    justify-content: flex-start;
    align-items: center;
    margin-top: 10px;

}

.btn {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--secondary-color);
    font-weight: 500;
}

.btn-video {
    background: #ffffff;
    color: var(--primaryaltern-color);
}

.btn-video:hover {
    transform: scale(1.1);
    color: #065c14;
    border-radius: 50px;
    background: #ffffff;
    box-shadow: 20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
}

.btn-pdf {
    background: #ffffff;
    color: var(--primaryaltern-color);
}

.btn-pdf:hover {
    transform: scale(1.1);
    color: #065c14;
    border-radius: 50px;
    background: #ffffff;
    box-shadow: 20px 20px 60px #bebebe,
        -20px -20px 60px #ffffff;
}

.btn-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
}

.close-btn:hover {
    color: #FFD700;
}

/* Responsive Design */
/* 🔹 Ajustes en tablets */
@media (max-width: 768px) {
    .cards-grid {
        grid-template-columns: 1fr;
        /* solo 1 columna */
        gap: 20px;
    }

    .card {
        max-width: 100%;
        min-height: auto;
        /* altura automática */
    }

    .profile-section {
        flex-direction: column;
        text-align: center;
        position: relative;
        /* corregir solapamiento */
    }

    .photo {
        position: relative;
        /* quitar absolute */
        margin: 0 auto;
        /* centrar */
        top: unset;
        right: unset;
    }

    .profile-info {
        margin-top: 10px;
        max-width: 100%;
        /* evitar que corte textos */
        text-align: center;
    }

    .action-buttons {
        justify-content: center;
        margin-top: 15px;
    }
}

/* 🔹 Ajustes en móviles */
@media (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    body {
        padding: 10px;
    }

    .card {
        min-height: 280px;
        padding: 12px;
    }

    .year{
        width: 100%;
        text-align: center;
    }

    .name {
        font-size: 18px;
    }

    .role {
        font-size: 14px;
    }

    .photo {
        width: 150px;
        height: 150px;
        right: 0;
        top: 0;
    }

    .profile-section{
        justify-content: center;
    }

     .detail-row {
        display: flex;
        align-items: center;
        margin-bottom: 8px;
        font-size: 14px;
        gap: 2px;
    }

    .detail-label {
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 12px;
        line-height: 1.2;
        flex-shrink: 0;
        width: auto;
        min-width: 0;
        max-width: 80px;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .detail-value {
        padding: 2px 6px;
        border-radius: 3px;
        font-size: 13px;
        line-height: 1;
        flex: 1;
        width: auto;
        min-width: 0;
    }
}









.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;
    }
}