/* === TALLERES - INCINE THEME === */
html {
  -webkit-print-color-adjust: exact;
}

* {
  box-sizing: border-box;
  -webkit-print-color-adjust: exact;
}

html, body {
  margin: 0;
  padding: 0;
}

@media only screen {
  body {
    margin: 0 auto;
    max-width: 900px;
  }
}

body {
  line-height: 1.6;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Helvetica, "Apple Color Emoji", Arial, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
}

a, a.visited {
  color: inherit;
  text-decoration: underline;
}

/* --- Tema Oscuro INCINE --- */
:root {
  --incine-bg-primary: #0a0a0a;
  --incine-bg-secondary: #121212;
  --incine-bg-card: #1a1a1a;
  --incine-text-primary: #ffffff;
  --incine-text-secondary: #e5e5e5;
  --incine-text-muted: #a3a3a3;
  --incine-border-primary: #2a2a2a;
  --incine-border-secondary: #404040;
  --incine-accent: #f59e0b;
  --incine-accent-hover: #fbbf24;
}

body {
  background: var(--incine-bg-primary);
  color: var(--incine-text-secondary);
  padding: 0 20px 40px;
}

a, a:visited {
  color: var(--incine-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--incine-accent-hover);
  text-decoration: underline;
}

/* --- Encabezado y Portada --- */
.page-cover-image {
  display: block;
  object-fit: cover;
  width: calc(100% + 40px);
  max-height: 35vh;
  margin: 0 -20px;
  border-radius: 0;
  filter: brightness(0.85) contrast(1.05);
}

.page-header-icon {
  display: flex;
  justify-content: center;
  margin: -50px 0 20px;
  position: relative;
  z-index: 2;
}

.page-header-icon img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 5px solid var(--incine-bg-primary);
  background: var(--incine-bg-primary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.page-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 20px 0 30px;
  letter-spacing: -0.5px;
  color: var(--incine-text-primary);
  line-height: 1.3;
  padding: 0 10px;
}

/* --- Tipografía --- */
h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 16px;
  letter-spacing: -0.3px;
  color: var(--incine-text-primary);
}

h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 20px 0 12px;
  letter-spacing: -0.2px;
  color: var(--incine-text-primary);
  line-height: 1.5;
}

p {
  margin: 0 0 12px 0;
  line-height: 1.7;
  color: var(--incine-text-secondary);
  font-size: 15px;
}

p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--incine-text-primary);
  font-weight: 600;
}

/* --- Layout y Secciones --- */
.page-body {
  margin-top: 20px;
}

section {
  margin: 24px 0;
}

.intro-section {
  margin-bottom: 28px;
}

.column-list {
  display: flex;
  gap: 24px;
  margin: 24px 0;
  align-items: flex-start;
}

.column {
  padding: 0;
}

.column:first-child {
  flex: 1;
}

.column:last-child {
  flex: 0 0 auto;
}

/* --- Botones CTA --- */
.cta-top {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 10, 0.98);
  backdrop-filter: blur(12px);
  padding: 12px 20px;
  margin: 0 -20px 20px;
  border-bottom: 1px solid var(--incine-border-secondary);
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-bottom {
  margin: 32px 0 20px;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 10px;
  border: 1px solid var(--incine-border-secondary);
  background: linear-gradient(135deg, #1a1a1a, #151515);
  color: var(--incine-text-primary);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cta-btn:hover {
  background: linear-gradient(135deg, #222, #1a1a1a);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border-color: var(--incine-accent);
  text-decoration: none;
}

.cta-btn--alt {
  background: transparent;
  border-color: var(--incine-accent);
  color: var(--incine-accent);
}

.cta-btn--alt:hover {
  background: rgba(245, 158, 11, 0.1);
  color: var(--incine-accent-hover);
}

/* --- Componentes --- */
hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--incine-border-secondary), transparent);
  margin: 28px 0;
  opacity: 0.6;
}

.callout {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12), rgba(245, 158, 11, 0.06));
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 10px;
  padding: 20px;
  margin: 24px 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.callout-icon {
  font-size: 1.5em;
  line-height: 1;
  flex-shrink: 0;
}

.callout-content {
  flex: 1;
}

.callout p {
  margin: 0 0 8px 0;
  color: var(--incine-text-primary);
}

.callout p:last-child {
  margin-bottom: 0;
}

.image {
  margin: 16px 0;
  text-align: center;
}

.image img {
  border-radius: 10px;
  border: 1px solid var(--incine-border-primary);
  transition: transform 0.2s ease;
  max-width: 100%;
  height: auto;
  display: inline-block;
}

/* Estilos específicos para imágenes del taller con tamaño fijo */
.image img[src*="TALLER_("] ,
.image img[src*="TALLER2.png"] ,
.image img[src*="TALLER_45_"] ,
.image img[src*="17.png"] ,
.image img[src*="001.png"] ,
.image img[src*="002.png"] ,
.image img[src*="image.png"] ,
.image img[src*="ChatGPT_Image"] {
  max-width: 400px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.image img:hover {
  transform: scale(1.01);
}

/* Estilos adicionales para imágenes específicas */
.profesor-card .image img[src*="kamus_web.png"],
.profesor-card .image img[src*="WhatsApp_Image"] {
  max-width: 192px;
  width: auto;
  height: auto;
}

/* Asegurar que las imágenes de portada no sean demasiado grandes en móviles */
@media (max-width: 768px) {
  .image img[src*="TALLER_("] ,
  .image img[src*="TALLER2.png"] ,
  .image img[src*="TALLER_45_"] ,
  .image img[src*="17.png"] ,
  .image img[src*="001.png"] ,
  .image img[src*="002.png"] ,
  .image img[src*="image.png"] ,
  .image img[src*="ChatGPT_Image"] {
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .image img[src*="TALLER_("] ,
  .image img[src*="TALLER2.png"] ,
  .image img[src*="TALLER_45_"] ,
  .image img[src*="17.png"] ,
  .image img[src*="001.png"] ,
  .image img[src*="002.png"] ,
  .image img[src*="image.png"] ,
  .image img[src*="ChatGPT_Image"] {
    max-width: 250px;
  }
}

mark {
  background-color: rgba(245, 158, 11, 0.25);
  color: var(--incine-text-primary);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

/* --- Horarios --- */
.schedule {
  margin: 16px 0;
}

.schedule p {
  margin: 8px 0;
  padding-left: 0;
}

/* --- Profesores --- */
.profesor-card {
  margin-bottom: 20px;
  padding: 20px;
  background: var(--incine-bg-card);
  border: 1px solid var(--incine-border-primary);
  border-radius: 12px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profesor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--incine-border-secondary);
}

.profesor-card p {
  margin: 6px 0;
}

.profesor-card .image {
  margin: 12px 0;
}

.profesor-card .image img {
  border-radius: 50%;
  border: 3px solid var(--incine-border-secondary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.profesor-card strong {
  font-size: 16px;
  color: var(--incine-text-primary);
  display: block;
  margin-bottom: 8px;
}

/* Alineación mejorada para sección de profesores */
.column-list:has(.profesor-card) {
  gap: 20px;
}

.column-list:has(.profesor-card) .column {
  flex: 1;
  min-width: 0;
}

/* --- Responsividad --- */
@media (max-width: 768px) {
  body {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .page-cover-image {
    margin: 0 -16px;
    width: calc(100% + 32px);
  }
  
  .column-list {
    flex-direction: column;
    gap: 20px;
  }
  
  .column {
    width: 100% !important;
  }
  
  .cta-top {
    margin: 0 -16px 16px;
    padding: 10px 16px;
  }
  
  .page-header-icon img {
    width: 80px;
    height: 80px;
  }
}

@media (max-width: 640px) {
  .callout {
    padding: 16px;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 24px;
    margin: 16px 0 24px;
  }
  
  h2 {
    font-size: 20px;
  }
  
  h3 {
    font-size: 17px;
  }
  
  p {
    font-size: 14px;
  }
  
  .cta-btn {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .profesor-card {
    padding: 16px;
  }
  
  .profesor-card strong {
    font-size: 15px;
  }
}

/* Estilos para la fecha destacada */
.fecha-destacada {
    text-align: center;
    font-size: 1.8em; /* Ajusta este valor para hacerla más grande o más pequeña */
    margin-top: 1em;
    margin-bottom: 1em;
}