/***************************/
/*  ESTRUCTURA MODERNA     */
/*  Actualización Visual   */
/*  Noviembre 2025         */
/***************************/


/***************************/
/*   FUENTES TIPOGRÁFICAS  */
/***************************/

/* Source Sans Pro - Regular (400) */
@font-face {
  font-family: 'Source';
  src: url('../fonts/SourceSansPro-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Source Sans Pro - Bold (700) */
@font-face {
  font-family: 'Source-B';
  src: url('../fonts/SourceSansPro-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}


/***************************/
/*  OCULTAR HEADER VIEJO  */
/***************************/

/* Ocultar el header superior duplicado (logo grande) */
.container-fluid.cabecera {
  display: none;
}


/***************************/
/*     NUEVA PALETA       */
/***************************/

:root {
  /* Colores principales */
  --color-primary: #0ea5e9;        /* Azul moderno (antes #01ace4) */
  --color-primary-dark: #0284c7;   /* Azul oscuro */
  --color-primary-light: #7dd3fc;  /* Azul claro */
  
  /* Secundarios */
  --color-secondary: #06b6d4;      /* Cyan */
  --color-success: #10b981;        /* Verde moderno (antes #00cf3e) */
  --color-warning: #f59e0b;        /* Naranja moderno (antes #ff9a02) */
  --color-danger: #ef4444;         /* Rojo */
  
  /* Grises modernos */
  --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;
  
  /* Fondos */
  --bg-light: #f8fafc;
  --bg-blue-light: #eff6ff;
  
  /* Sombras */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.15);
  
  /* Bordes */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 12px;
  --border-radius-xl: 16px;
  
  /* Espaciados */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
}


/***************************/
/*       TIPOGRAFÍA        */
/***************************/

body {
  font-family: "Source", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  overflow-x: hidden;
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 16px;
}

h1 {
  font-family: "Source-B" !important;
  text-align: center !important;
  color: var(--gray-800);
  font-size: 2.5rem;
  margin-bottom: var(--spacing-lg);
  line-height: 1.2;
  /* Eliminado: text-shadow anticuado */
}

h2 {
  font-family: "Source-B" !important;
  text-align: center !important;
  color: var(--gray-700);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  line-height: 1.3;
  /* Eliminado: text-shadow anticuado */
}

h3 {
  margin-top: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  font-family: "Source-B" !important;
  text-align: center !important;
  color: var(--color-primary);
  font-size: 1.5rem;
  line-height: 1.4;
}

h4 {
  font-family: "Source-B" !important;
  color: var(--gray-700);
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
}

h5 {
  font-family: "Source" !important;
  color: var(--gray-600);
  font-size: 1.1rem;
  font-weight: 600;
}

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.7;
}


/***************************/
/*    CLASES ÚTILES        */
/***************************/

.text-center {
  text-align: center;
}

.green {
  color: var(--color-success) !important;
}

.orange {
  color: var(--color-warning) !important;
}

.grey {
  color: var(--gray-500);
}

.azul {
  color: var(--color-primary) !important;
}

.italic {
  font-style: italic;
}


/***************************/
/*    FONDOS Y BORDES      */
/***************************/

.fondo-azul-claro {
  background-color: var(--bg-blue-light);
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
}

.borde {
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-md);
  /* Añadimos sombra sutil en lugar de borde duro */
  box-shadow: var(--shadow-sm);
}

.borde-vert {
  border-left: 2px solid var(--color-primary);
  border-right: 2px solid var(--color-primary);
  padding-left: var(--spacing-md);
  padding-right: var(--spacing-md);
}

output {
  text-align: center;
  width: 370px;
  height: 230px;
  padding: var(--spacing-md);
  margin-left: calc(50% - 185px);
  border: none;
  background-color: var(--bg-blue-light);
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
}


/***************************/
/*    TARJETAS MODERNAS    */
/***************************/

.card-modern {
  background: #ffffff;
  border: none;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s ease;
}

.card-modern:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card-modern-title {
  font-family: "Source-B" !important;
  color: var(--gray-800);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  border-bottom: 3px solid var(--color-primary);
  padding-bottom: var(--spacing-xs);
}


/***************************/
/*    BOTONES MODERNOS     */
/***************************/

.btn-modern {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-modern-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(14, 165, 233, 0.3);
}

.btn-modern-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
  color: #ffffff;
}

.btn-modern-secondary {
  background: var(--gray-100);
  color: var(--gray-700);
  border: 1px solid var(--gray-300);
}

.btn-modern-secondary:hover {
  background: var(--gray-200);
  transform: translateY(-2px);
}

.btn-modern-success {
  background: var(--color-success);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-modern-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}


/***************************/
/*    CONTENEDORES         */
/***************************/

.container-modern {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-lg);
}

.section-modern {
  padding: var(--spacing-xl) 0;
}

.section-modern-alt {
  background: var(--bg-light);
  padding: var(--spacing-xl) 0;
}


/***************************/
/*    IMÁGENES MODERNAS    */
/***************************/

img {
  max-width: 100%;
  height: auto;
  border-radius: var(--border-radius-sm);
}

.img-modern {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.img-modern:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}


/***************************/
/*    ESPACIADOS           */
/***************************/

.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }

.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }

.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }


/***************************/
/*    ENLACES MODERNOS     */
/***************************/

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}


/***************************/
/*    LISTAS               */
/***************************/

ul, ol {
  line-height: 1.8;
  margin-bottom: var(--spacing-md);
}

li {
  margin-bottom: var(--spacing-xs);
}


/***************************/
/*    DIVISORES            */
/***************************/

hr {
  border: none;
  border-top: 2px solid var(--gray-200);
  margin: var(--spacing-lg) 0;
}


/***************************/
/*    BADGES Y ETIQUETAS   */
/***************************/

.badge-modern {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--border-radius-xl);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}

.badge-modern-primary {
  background: var(--color-primary);
  color: #ffffff;
}

.badge-modern-success {
  background: var(--color-success);
  color: #ffffff;
}

.badge-modern-warning {
  background: var(--color-warning);
  color: #ffffff;
}


/***************************/
/*    ALERTAS MODERNAS     */
/***************************/

.alert-modern {
  padding: var(--spacing-md);
  border-radius: var(--border-radius-md);
  margin-bottom: var(--spacing-md);
  border-left: 4px solid;
}

.alert-modern-info {
  background: var(--bg-blue-light);
  border-left-color: var(--color-primary);
  color: var(--gray-700);
}

.alert-modern-success {
  background: #f0fdf4;
  border-left-color: var(--color-success);
  color: var(--gray-700);
}

.alert-modern-warning {
  background: #fffbeb;
  border-left-color: var(--color-warning);
  color: var(--gray-700);
}

.alert-modern-danger {
  background: #fef2f2;
  border-left-color: var(--color-danger);
  color: var(--gray-700);
}


/***************************/
/*    RESPONSIVE           */
/***************************/

@media screen and (max-width: 768px) {
  
  body {
    font-size: 15px;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.35rem;
  }
  
  .container-modern {
    padding: var(--spacing-sm);
  }
  
  .section-modern,
  .section-modern-alt {
    padding: var(--spacing-lg) 0;
  }
  
  .card-modern {
    padding: var(--spacing-md);
  }
}


/***************************/
/*    ANIMACIONES          */
/***************************/

.fade-in {
  animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-up {
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/***************************/
/* ITEMS DE CONTENIDO      */
/***************************/

/* Enlaces de artículos sin subrayado */
.inicio a {
  text-decoration: none;
  color: inherit;
}

.inicio a:hover {
  text-decoration: none;
}

/* Article (item completo) con hover */
.inicio article.row {
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.inicio article.row:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

/* Punto azul en línea con el título */
.inicio article.row .punto {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  vertical-align: middle;
  display: inline-block;
}

/* Título del item más grande y en línea con el punto */
.inicio article.row .titulo {
  font-size: 1.35rem !important;
  color: var(--gray-800) !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  margin-bottom: var(--spacing-sm) !important;
  padding-left: 0 !important;
  display: block;
}

/* Contenido del artículo */
.inicio article.row .articulo {
  color: var(--gray-600);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Destacar labels (Lugar, Fecha, Descripción) en azul */
.inicio article.row .articulo b {
  color: var(--color-primary);
  font-weight: 600;
}

/* Párrafos dentro del artículo */
.inicio article.row .articulo p {
  margin-bottom: var(--spacing-xs);
}

/* Imágenes dentro de items con bordes redondeados y zoom */
.inicio article.row .imagen {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}

.inicio article.row:hover .imagen {
  transform: scale(1.05);
}

/***************************/
/* SECCIÓN AGENDA          */
/***************************/

.inicio .seccion-agenda {
  margin-bottom: var(--spacing-xl);
}

/* Header de la sección agenda (icono + título) */
.inicio .agenda-header {
  display: flex;
  align-items: center;
  text-decoration: none;
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  margin-bottom: var(--spacing-md);
}

.inicio .agenda-header:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  text-decoration: none;
}

.inicio .agenda-icon {
  width: 40px;
  height: 40px;
  margin-right: var(--spacing-md);
  transition: transform 0.3s ease;
}

.inicio .agenda-header:hover .agenda-icon {
  transform: scale(1.1);
}

.inicio .agenda-title {
  font-size: 1.35rem;
  color: var(--gray-800);
  font-weight: 700;
}

/* Cards de agenda */
.inicio .agenda-item {
  text-decoration: none;
  color: inherit;
  display: block;
}

.inicio .agenda-card {
  padding: var(--spacing-md);
  background: white;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--color-primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  height: 100%;
}

.inicio .agenda-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-left-width: 6px;
}

.inicio .agenda-fecha {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: var(--spacing-xs);
}

.inicio .agenda-titulo {
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}
