@import url("https://fonts.googleapis.com/css?family=Titillium Web");

/* assets/css/styles.css */
:root {
  --primary-color: #549db4;
  --primaryaltern-color: #38778a;
  --secondary-color: #b50018;
  --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;
}
@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: 14px;
        /* 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);
}

/* Main container */
.main-container {
  padding-top: 50px;
  max-width: 1500px;
  margin: 0 auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

/* Descripción mejorada */
.description-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  border-radius: 20px;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.description-card p {
  font-size: 1.1rem;
  text-align: center;
  color: var(--gray-700);
  line-height: 1.5;
}

/* Cards de redes mejoradas */
.networks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 2rem;
  justify-content: center;
}

.network-card {
  position: relative;
  height: 330px;
  border-radius: 50px;
  background: #e0e0e0;
  box-shadow: 20px 20px 60px #818181, -20px -20px 60px #ffffff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
}

.card-image {
  height: 480px;
  overflow: hidden;
  position: relative;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.network-card:hover .card-image img {
  transform: scale(1.05);
}

.network-card h3 {
  font-size: 1.2rem;
  font-weight: normal;
}

.network-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
  background-size: 110px;
}

.card-content {
  position: relative;
  z-index: 1;
  padding: 1.5rem;
  height: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.479);
}

.card-title {
  font-size: 1.4rem;
  font-weight: 600;
  padding: 10px;
  color: #ffffff;
  text-align: center;
  height: 100px;
  background-color: var(--primary-color);
}

.card-description {
  color: #ffffff;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
  flex-grow: 1;
}

.button-container {
  display: flex;
  justify-content: center;
  margin-top: auto;
}

.card-button {
  background: var(--primaryaltern-color);
  border: none;
  color: #ffffff;
  padding: 0.7rem 1.4rem;
  font-size: 1rem;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.card-button:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .container {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .network-card {
    height: auto;
  }
}

/* Secciones de detalle */
.detail-section {
  display: none;
  margin-bottom: 4rem;
  animation: fadeInUp 0.6s ease;
}

.detail-section.active {
  display: block;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.detail-header {
  background: var(--primaryaltern-color);
  color: rgb(255, 255, 255);
  padding: 1rem;
  border-radius: 20px 20px 0 0;
  text-align: center;
}

.detail-title {
  font-size: 2rem;
  font-weight: 600;
}

.coordinator-name {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Navegación interna */
.section-nav {
  background: white;
  padding: 1rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.nav-link {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.5rem 1.5rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid var(--primaryaltern-color);
}

.nav-link:hover,
.nav-link.active {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Tabla mejorada */
.table-container {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table .th-principal {
  background: var(--primary-color);
  color: white;
  padding: 0.3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: normal;
}

.table th {
  background: var(--primaryaltern-color);
  color: white;
  padding: 0.5rem;
  text-align: left;
  font-weight: 500;
}

.table td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.table td .span-sede {
  background-color: #d2e0f4;
  color: rgb(21, 54, 124);
  font-size: 12px;
  padding-left: 10px;
  padding-right: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
  border-radius: 3px;
  margin-left: 3px;
}

.table tbody tr:nth-child(odd) {
  background: var(--gray-50);
}

.table tbody tr:hover {
  background: var(--gray-100);
  transform: scale(1.01);
  transition: all 0.2s ease;
}

/* Secciones de actividades */
.activity-section {
  display: none;
  margin-bottom: 3rem;
}

.activity-section.active {
  display: block;
  animation: fadeInUp 0.6s ease;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #e5ffe2ef;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: dashed 2px #2a8b37a2;
  text-align: justify;
}

.section-icon {
  font-size: 2.5rem;
  color: var(--secondary-color);
}

.icon-file {
  font-size: 2rem;
  color: var(--secondary-color);
}

.section-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.section-info p {
  color: var(--gray-600);
  line-height: 1.6;
}

/* Subsecciones con pestañas */
.subsection-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.tab-button {
  background: white;
  border: 2px solid var(--primary-color);
  color: var(--gray-700);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tab-button:hover,
.tab-button.active {
  background: var(--gradient-primary);
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Galerías mejoradas */
.media-gallery {
  display: none;
  background: white;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.media-gallery.active {
  display: block;
  animation: fadeInUp 0.6s ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.media-item {
  border-radius: 15px;
  padding: 2px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(41, 167, 240, 0.075);
  transition: all 0.3s ease;
  cursor: pointer;
  border: dashed 3px #10882a86;
  max-height: 250px;
}

.media-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.media-item img,
.media-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}

/* Indicador de video */
.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  pointer-events: none;
  opacity: 0.9;
}

.media-item .video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.media-placeholder {
  width: 100%;
  height: 200px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 500;
}

/* Botón de regreso */
.back-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(37, 99, 235, 0.3);
  transition: all 0.3s ease;
  z-index: 100;
}

.back-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
  .main-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .networks-grid {
    grid-template-columns: 1fr;
  }

  .nav-links {
    flex-direction: column;
  }

  .subsection-tabs {
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .detail-title {
    font-size: 1.5rem;
  }
}

/* Efectos adicionales */
.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.05);
  }

  100% {
    transform: scale(1);
  }
}

/*ESTILOS PARA EL LIGHTBOX DE IMAGENES*/

/* Estilos básicos para la página */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.media-item {
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.media-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.media-item img,
.media-item video {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

/* Indicador de video */
.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  pointer-events: none;
}

/* Estilos del Modal/Lightbox */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.753);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.8);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-overlay.active .lightbox-content {
  transform: scale(1);
}

/* Estilos específicos para pantalla completa */
.lightbox-content:fullscreen {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Webkit (Chrome, Safari) */
.lightbox-content:-webkit-full-screen {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Firefox */
.lightbox-content:-moz-full-screen {
  max-width: 100vw;
  max-height: 100vh;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  background: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-media {
  max-width: 100%;
  max-height: 80vh;
  display: block;
}

.lightbox-video {
  width: 100%;
  max-height: 80vh;
  position: relative;
  /* Cambiar a relative para mejor control */
  z-index: 1000;
  /* Z-index menor que los controles */
}

.lightbox-info {
  padding: 15px;
  background: white;
  width: 100%;
  box-sizing: border-box;
}

/* Ocultar información en pantalla completa */
.lightbox-content:fullscreen .lightbox-info,
.lightbox-content:-webkit-full-screen .lightbox-info,
.lightbox-content:-moz-full-screen .lightbox-info {
  display: none;
}

.lightbox-title {
  margin: 0 0 5px 0;
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.lightbox-description {
  margin: 0 0 10px 0;
  color: #666;
  font-size: 14px;
}

.media-type {
  display: inline-block;
  background: #007bff;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.media-type.video {
  background: #28a745;
}

/* Botones de control */
.lightbox-controls {
  position: absolute;
  top: 15px;
  right: 15px;
  display: flex;
  gap: 10px;
  z-index: 1001;
  /* Asegurar que estén sobre el video */
}

.lightbox-btn {
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s ease;
  z-index: 1002;
  /* Z-index alto para estar sobre el video */
  pointer-events: auto;
  /* Asegurar que sean clickeables */
}

.lightbox-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  transition: background-color 0.3s ease;
  z-index: 1002;
  /* Z-index alto para estar sobre el video */
  pointer-events: auto;
  /* Asegurar que sean clickeables */
}

.nav-btn:hover {
  background: rgba(0, 0, 0, 0.9);
}

.prev-btn {
  left: 20px;
}

.next-btn {
  right: 20px;
}

/* Controles de video personalizados */
.video-controls {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  background: rgba(0, 0, 0, 0.8);
  padding: 10px;
  border-radius: 25px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1002;
  /* Z-index alto para estar sobre el video */
  pointer-events: auto;
  /* Asegurar que sean clickeables */
}

.lightbox-content:hover .video-controls {
  opacity: 1;
}

.video-btn {
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 18px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  z-index: 1003;
  /* Z-index alto para los botones de video */
  pointer-events: auto;
  /* Asegurar que sean clickeables */
}

.video-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Indicador de carga */
.loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
}

/* Controles visibles en pantalla completa */
.lightbox-content:fullscreen .lightbox-controls,
.lightbox-content:-webkit-full-screen .lightbox-controls,
.lightbox-content:-moz-full-screen .lightbox-controls {
  top: 20px;
  right: 20px;
  z-index: 1003;
}

.lightbox-content:fullscreen .nav-btn,
.lightbox-content:-webkit-full-screen .nav-btn,
.lightbox-content:-moz-full-screen .nav-btn {
  z-index: 1003;
}

/* Contador de elementos */
.media-counter {
  position: absolute;
  bottom: 10px;
  right: 5px;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 20px;
  font-size: 12px;
  z-index: 1002;
  pointer-events: none;
}

.lightbox-content:fullscreen .media-counter,
.lightbox-content:-webkit-full-screen .media-counter,
.lightbox-content:-moz-full-screen .media-counter {
  bottom: 30px;
  z-index: 1003;
  background: rgba(0, 0, 0, 0.9);
}

/* Responsive */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95vw;
    max-height: 95vh;
  }

  .nav-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .prev-btn {
    left: 10px;
  }

  .next-btn {
    right: 10px;
  }

  .video-controls {
    bottom: 60px;
    padding: 8px;
  }

  .video-btn {
    font-size: 16px;
    padding: 4px 8px;
  }
}

/* Título de la página */
h1 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
}

/* Progress bar para videos */
.video-progress {
  position: absolute;
  bottom: 80px;
  left: 20px;
  right: 20px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  z-index: 1002;
  /* Z-index alto para estar sobre el video */
  pointer-events: auto;
  /* Asegurar que sea clickeable */
}

.video-progress-bar {
  height: 100%;
  background: #007bff;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
  pointer-events: none;
  /* La barra no debe interferir con los clics */
}

/* ESTILOS PARA EL LISTADO DE DOCUMENTOS*/

.container {
  max-width: 1200px;
  margin: 0 auto;
}

h1 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 300;
}

/* Card Container */
.file-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.file-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* Card Header */
.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 20px 25px;
  border-bottom: none;
}

.card-subtitle {
  margin: 5px 0 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

/* Table Styles */
.file-table-container {
  overflow-x: auto;
  max-height: 400px;
  overflow-y: auto;
}

.file-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.file-table thead {
  background: var(--primaryaltern-color);

  position: sticky;
  top: 0;
  z-index: 10;
}

.file-table th {
  padding: 15px 20px;
  text-align: left;
  font-weight: normal;
  color: #495057;
  border-bottom: 2px solid #e9ecef;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #ffffff;
}

.file-table .th-tipo {
  width: 100px;
}

.file-table tbody tr {
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #e9ecef;
}

.file-table tbody tr:hover {
  background-color: #f8f9fa;
}

.file-table tbody tr:last-child {
  border-bottom: none;
}

.file-table td {
  padding: 15px 20px;
  vertical-align: middle;
}

/* File Type Icons */
.file-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: white;
  font-size: 14px;
  font-weight: bold;
  margin-right: 10px;
}

.file-icon.pdf {
  background: #dc3545;
}

.file-icon.doc {
  background: #2b579a;
}

.file-icon.docx {
  background: #2b579a;
}

.file-icon.xls {
  background: #107c41;
}

.file-icon.xlsx {
  background: #107c41;
}

.file-icon.ppt {
  background: #d24726;
}

.file-icon.pptx {
  background: #d24726;
}

.file-icon.txt {
  background: #6c757d;
}

.file-icon.zip {
  background: #6f42c1;
}

.file-icon.rar {
  background: #6f42c1;
}

.file-icon.jpg,
.file-icon.jpeg,
.file-icon.png,
.file-icon.gif {
  background: #fd7e14;
}

.file-icon.mp4,
.file-icon.avi,
.file-icon.mov {
  background: #e83e8c;
}

.file-icon.mp3,
.file-icon.wav {
  background: #20c997;
}

.file-icon.default {
  background: #6c757d;
}

/* File Type Column */
.file-type {
  display: flex;
  align-items: center;
  font-weight: 500;
}

.file-extension {
  text-transform: uppercase;
  font-size: 11px;
  margin-left: 5px;
  opacity: 0.8;
}

/* File Description */
.file-description {
  color: #495057;
  font-size: 1.2rem;
}

.file-name {
  font-weight: 500;
  color: #2c3e50;
}

.file-size {
  font-size: 0.8rem;
  color: #868e96;
  margin-top: 2px;
}

/* Download Button */
.download-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  border: none;
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.download-btn:hover {
  background: linear-gradient(135deg, #218838, #1abc9c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.download-btn:active {
  transform: translateY(0);
}

.download-icon {
  font-size: 16px;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #6c757d;
}

.empty-state-icon {
  font-size: 48px;
  margin-bottom: 15px;
  opacity: 0.5;
}

/* Card Footer */
.card-footer {
  background: #f8f9fa;
  padding: 15px 25px;
  border-top: 1px solid #e9ecef;
  font-size: 0.85rem;
  color: #6c757d;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .file-table th,
  .file-table td {
    padding: 10px 15px;
  }

  .card-header {
    padding: 15px 20px;
  }

  .card-title {
    font-size: 1.3rem;
  }

  .file-icon {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .download-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
}

@media (max-width: 576px) {
  .file-table th:nth-child(2),
  .file-table td:nth-child(2) {
    display: none;
  }

  h1 {
    font-size: 2rem;
  }
}

/* Loading Animation */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid #28a745;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Status indicators */
.file-status {
  font-size: 0.8rem;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

.status-available {
  background: #d4edda;
  color: #155724;
}

.status-processing {
  background: #fff3cd;
  color: #856404;
}

.status-error {
  background: #f8d7da;
  color: #721c24;
}
