/* Reset + Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  }
  
  /* Colors */
  :root {
    --primary: #0d47a1;   /* dark blue */
    --secondary: #1976d2; /* lighter blue */
    --text: #333;
    --bg: #fff;
    --light-gray: #f4f4f4;
  }
  
  /* Header */
  .navbar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: var(--bg);
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 10;
  }
  
  .logo {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
    flex: 0 0 auto;
  }

  .logo:hover {
    color: var(--secondary);
  }

  .nav-buttons-center {
    display: flex;
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav-buttons-center .btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
  }

  .nav-buttons {
    display: flex;
    gap: 1rem;
  }

  .nav-buttons .btn {
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
  }
  
  .btn.primary {
    background: var(--primary);
    color: #fff;
  }
  
  .btn.secondary {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
  }

  .btn-landing {
    display: inline-block;
    padding: 0.5rem 1rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    background: var(--primary);
    color: #fff;
    margin-top: 1rem;
    text-align: center;
  }

  .btn-landing:hover {
    background: var(--secondary);
  }

  /* Sections */
  .block {
    padding: 4rem 2rem;
  }
  
  .container {
    max-width: 1100px;
    margin: 0 auto;
  }
  
  .intro {
    background: var(--light-gray);
    text-align: center;
  }
  
  .intro h1 {
    color: var(--primary);
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .intro p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 1rem;
  }
  
  /* Collections block */
  .collections {
    background: var(--bg);
  }
  
  .collections h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary);
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
  }

  .grid-two {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
  }

  @media (max-width: 768px) {
    .grid-two {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
  }

  .card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  
  .card:hover {
    transform: translateY(-5px);
  }
  
  .card p {
    margin-bottom: 0.5rem;
  }

  .card .subtitle {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  /* Legal block */
  .legal {
    background: var(--primary);
    color: #fff;
    text-align: center;
  }
  
  .legal h2 {
    margin-bottom: 1rem;
  }
  
  .legal p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .footer-link {
    color: #fff;
    text-decoration: none;
    font-weight: normal;
  }

  .footer-link:hover {
    text-decoration: underline;
  }

  /* Side Panel */
  .side-panel {
    position: fixed;
    top: 0;
    right: -450px;
    width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.3);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
  }

  .side-panel.active {
    right: 0;
  }

  .panel-header {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
  }

  .panel-header h3 {
    margin: 0;
    font-size: 1.2rem;
  }

  .close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .close-btn:hover {
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
  }

  .panel-content {
    padding: 2rem;
  }

  .panel-content h2 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
  }

  .panel-content p {
    margin-bottom: 1rem;
    line-height: 1.6;
  }

  .panel-content .btn {
    margin-top: 1rem;
    display: inline-block;
  }

  .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .tag {
    background: var(--light-gray);
    color: var(--text);
    padding: 0.3rem 0.7rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #ddd;
  }

  /* Overlay */
  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
  }

  .overlay.active {
    display: block;
  }

  @media (max-width: 768px) {
    .side-panel {
      width: 100%;
      right: -100%;
    }
  }

  /* Modal de solicitud de eliminación */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 1rem;
  }

  .modal-content {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
  }

  .modal-header {
    background: var(--primary);
    color: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 10px 10px 0 0;
  }

  .modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
  }

  .modal-header .close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .modal-header .close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
  }

  .modal-body {
    padding: 2rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text);
    font-weight: 500;
  }

  .form-group label small {
    font-weight: normal;
    color: #666;
    font-size: 0.9rem;
  }

  .form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 150px;
  }

  .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13, 71, 161, 0.1);
  }

  .char-counter {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #666;
  }

  .char-counter span {
    font-weight: bold;
    color: #dc3545;
  }

  .error-message {
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 6px;
    color: #c33;
    font-size: 0.9rem;
  }

  .modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
  }

  .modal-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
  }

  .modal-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
  }

  .modal-actions .btn.secondary {
    background: transparent;
    border: 1px solid #ccc;
    color: var(--text);
  }

  .modal-actions .btn.secondary:hover:not(:disabled) {
    background: #f5f5f5;
  }

  .modal-actions .btn.primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
  }

  @media (max-width: 768px) {
    .modal-content {
      max-width: 100%;
      margin: 0;
      border-radius: 0;
      max-height: 100vh;
    }

    .modal-header {
      border-radius: 0;
    }
  }

  /* Toast Container */
  .toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
  }

  .toast {
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 0.95rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
    pointer-events: auto;
    cursor: pointer;
  }

  .toast.show {
    opacity: 1;
    transform: translateX(0);
  }

  .toast-success {
    background: #28a745;
    color: white;
    border-left: 4px solid #1e7e34;
  }

  .toast-error {
    background: #dc3545;
    color: white;
    border-left: 4px solid #c82333;
  }

  .toast-info {
    background: #17a2b8;
    color: white;
    border-left: 4px solid #138496;
  }

  .toast-warning {
    background: #ffc107;
    color: #212529;
    border-left: 4px solid #e0a800;
  }

  .toast:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  }

  @media (max-width: 768px) {
    .toast-container {
      top: 10px;
      right: 10px;
      left: 10px;
    }

    .toast {
      min-width: auto;
      max-width: 100%;
    }
  }

  /* Login page */
.login-block {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 70px); /* minus navbar height */
  background: var(--light-gray);
  padding: 2rem;
}

.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 1.5rem;
  color: var(--primary);
}

.login-card form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card label {
  text-align: left;
  font-weight: 500;
  color: var(--text);
}

.login-card input {
  padding: 0.7rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.login-card button {
  margin-top: 1rem;
  width: 100%;
}

.login-options {
  margin-top: 1.5rem;
  display: flex;
  justify-content: space-between;
}

.login-options a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
}

.login-options a:hover {
  text-decoration: underline;
}

/* Optional separation */
.login-card form label[for="apellido"],
.login-card form label[for="fecha"] {
  margin-top: 0.5rem;
  color: #555;
  font-style: italic;
}

/* Map container */
.map-container {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
  border: 2px solid var(--primary);
  border-radius: 8px;
  overflow: hidden;
}

svg {
  width: 100%;
  display: block;
}

.marker {
  fill: var(--secondary);
  cursor: pointer;
  transition: fill 0.2s;
}

.marker:hover {
  fill: var(--primary);
}

/* Popup panels */
.popup {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100%;
  background: #fff;
  border-left: 2px solid var(--primary);
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  padding: 1.5rem;
  transition: right 0.3s ease;
  z-index: 20;
}

.popup:target {
  right: 0;
}

.popup h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.popup a.close {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
}

.popup a.close:hover {
  text-decoration: underline;
}

#map {
  height: calc(100vh - 70px); /* full viewport minus navbar */
  width: 100%;
}
.popup-content {
  font-size: 0.9rem;
  line-height: 1.4;
}
.popup-content h3 {
  margin-bottom: 0.3rem;
  color: var(--primary);
}
.hechos-block {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hechos-block h2 {
  color: var(--primary);
  margin-bottom: 1rem;
  text-align: center;
}

/* Filter bar */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filters select,
.filters input {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.toggle {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.toggle a {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  border: 1px solid var(--primary);
  color: var(--primary);
}

.toggle a.active, .toggle a:hover {
  background: var(--primary);
  color: white;
}

/* Hechos grid */
.hechos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.hecho-card {
  background: #fff;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.hecho-card:hover {
  transform: translateY(-5px);
}

.hecho-card h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
}

.hecho-card p {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.hecho-card a {
  text-decoration: none;
  color: var(--primary);
  font-weight: bold;
}

.ver-detalles-link {
  color: var(--primary);
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin-top: 0.5rem;
}

.ver-detalles-link:hover {
  text-decoration: underline;
}

/* Details panel */
.details-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 400px;
  height: 100%;
  background: #fff;
  border-left: 2px solid var(--primary);
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  padding: 1.5rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 30;
}

.details-panel:target {
  right: 0;
}

.details-panel h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.details-panel p {
  margin-bottom: 1rem;
}

.details-panel label {
  font-weight: bold;
  display: block;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
}

.details-panel textarea {
  width: 100%;
  height: 100px;
  resize: none;
  padding: 0.5rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 0.9rem;
}

.details-panel button {
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  cursor: pointer;
}

.details-panel a.close {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
}

.colecciones-block {
  padding: 3rem 2rem;
  background: var(--light-gray);
}

.colecciones-block h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary);
}

.colecciones-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.coleccion-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s;
}

.coleccion-card:hover {
  transform: translateY(-5px);
}

.coleccion-card h3 {
  margin-bottom: 0.5rem;
  color: var(--secondary);
}

.coleccion-card p {
  flex-grow: 1;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.coleccion-card .btn {
  text-align: center;
  padding: 0.5rem;
  display: block;
}

body {
  display: flex;
  flex-direction: column; /* Stack vertically */
  min-height: 100vh;
  background: var(--light-gray);
}

.main-container {
  display: flex;       /* This makes Sidebar and Content sit side-by-side */
  flex: 1;             /* This makes it fill the remaining height of the screen */
  width: 100%;
}

/* Sidebar */
.sidebar {
  width: 240px;
  background: var(--primary);
  color: white;
  padding: 2rem 1rem;
  /* Remove any height or position properties if present */
  flex-shrink: 0; /* Prevents sidebar from squishing */
}

.sidebar h2 {
  margin-bottom: 2rem;
  font-size: 1.3rem;
}

.sidebar a {
  display: block;
  padding: 0.6rem 1rem;
  margin-bottom: 0.5rem;
  color: white;
  text-decoration: none;
  border-radius: 6px;
}

.sidebar a:hover,
.sidebar a.active {
  background: var(--secondary);
}

/* Content */
.content {
  flex: 1;
  padding: 2rem;
  overflow-y: auto;
}

.content section {
  display: none;
}

.content section:target {
  display: block;
}

/* Default view */
.content section:first-of-type {
  display: block;
}

/* Cards */
.summary-grid, .colecciones-grid, .hechos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.summary-card, .coleccion-card, .hecho-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.summary-card h3,
.coleccion-card h3,
.hecho-card h3 {
  color: var(--primary);
  margin-bottom: 0.8rem;
}

.summary-card ul {
  font-size: 0.9rem;
  line-height: 1.4;
  margin-left: 1rem;
}

.coleccion-card p,
.hecho-card p {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

button, .btn {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: white;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover, .btn:hover {
  background: var(--secondary);
}

/* Panels for forms */
.panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 450px;
  height: 100%;
  background: #fff;
  border-left: 2px solid var(--primary);
  box-shadow: -2px 0 8px rgba(0,0,0,0.3);
  padding: 1.5rem;
  transition: right 0.3s ease;
  overflow-y: auto;
  z-index: 30;
}

.panel:target {
  right: 0;
}

.panel h3 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.panel label {
  display: block;
  font-weight: bold;
  margin-top: 1rem;
  margin-bottom: 0.3rem;
}

.panel input, .panel textarea, .panel select {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.panel textarea {
  resize: vertical;
  height: 100px;
}

.panel a.close {
  display: inline-block;
  margin-top: 1rem;
  color: var(--secondary);
  text-decoration: none;
  font-weight: bold;
}

.conditional-section {
  display: none; /* Oculto por defecto */
  border-top: 1px solid #eee;
  padding-top: 15px;
}


/* Estilos para cards de landing dinámicas */
.card .subtitle {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.5rem;
}

.card .btn-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive header */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
  }

  .logo {
    width: 100%;
    text-align: center;
  }

  .nav-buttons-center {
    position: static;
    transform: none;
    width: 100%;
    justify-content: center;
  }

  .nav-buttons {
    width: 100%;
    justify-content: center;
  }
}

.card .btn-link:hover {
  color: var(--secondary);
  text-decoration: underline;
}

.no-data {
  text-align: center;
  padding: 3rem 1rem;
  color: #666;
}

.no-data p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* Switch toggle para modo de navegación */
.modo-switch-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.modo-switch-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0;
}

.modo-text {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}

/* The switch - the box around the slider */
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 26px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

/* The slider */
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary);
  transition: 0.4s;
  border-radius: 26px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--secondary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

input:focus + .slider {
  box-shadow: 0 0 1px var(--primary);
}

@media (max-width: 768px) {
  .modo-switch-container {
    width: 100%;
    justify-content: center;
  }
}

/* Switch de modo fijo fuera de filtros */
.modo-switch-fixed {
  display: flex;
  justify-content: flex-end;
  padding: 1rem;
  margin-bottom: 1rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.modo-switch-fixed form {
  display: inline-block;
}

/* Paginación */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  margin: 1rem 0;
}

.pagination .btn {
  min-width: 120px;
  text-align: center;
}

.page-indicator {
  font-size: 1rem;
  color: var(--text);
  padding: 0 1rem;
}

.page-indicator strong {
  color: var(--primary);
  font-size: 1.2rem;
}

@media (max-width: 768px) {
  .modo-switch-fixed {
    justify-content: center;
  }

  .pagination {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .pagination .btn {
    min-width: 100px;
    font-size: 0.9rem;
  }
}
.criterio-box {
  background: #f9f9f9;
  padding: 1rem;
  margin-bottom: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
}

/* Carrusel de multimedia */
.multimedia-carousel {
  margin-top: 15px;
  position: relative;
}

.carousel-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  background: #f9f9f9;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.carousel-slides {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  position: relative;
}

.carousel-item-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  cursor: pointer;
  border-radius: 8px;
}

.carousel-item-video {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}

.carousel-item-video video {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.carousel-item-audio {
  width: 100%;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.carousel-item-audio audio {
  width: 100%;
  max-width: 500px;
}

.carousel-item-file {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
}

.file-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--primary);
  padding: 30px;
  border: 2px dashed var(--primary);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.file-link:hover {
  background: rgba(13, 71, 161, 0.05);
  border-color: var(--secondary);
}

.carousel-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #666;
  font-size: 0.9rem;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  color: var(--primary);
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
  left: 15px;
}

.carousel-next {
  right: 15px;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 15px;
  background: #f9f9f9;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator:hover {
  background: #999;
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: var(--primary);
  width: 12px;
  height: 12px;
}