/* Estilo base con tema oscuro y menú hamburguesa */
:root {
    --bg: #1e1e2e;
    /* Color de fondo tipo Dracula */
    --text: #f8f8f2;
    /* Color de texto principal */
    --accent: #bd93f9;
    /* Color de acento para títulos */
    --menu-bg: #282a36;
    /* Fondo del menú */
    --menu-width: 250px;
    /* Ancho del menú lateral */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, sans-serif;
    line-height: 1.6;
}

/* Botón hamburguesa */
.hamburger {
    position: fixed;
    top: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    padding: 8px;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    margin: 6px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Animación del botón cuando está activo */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menú lateral */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--menu-width);
    background: var(--menu-bg);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 90;
    padding: 80px 20px 20px;
}

.sidebar.open {
    transform: translateX(0);
}

/* Enlaces del menú */
.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar a {
    color: var(--text);
    text-decoration: none;
    padding: 10px;
    border-radius: 6px;
    transition: 0.2s;
}

.sidebar a:hover {
    background: var(--accent);
    color: var(--menu-bg);
}

/* Overlay (fondo oscuro cuando el menú está abierto) */
.overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
    z-index: 80;
}

.overlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Contenido principal */
main {
    padding: 80px 20px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

main {
    text-align: center;
    padding: 60px 20px;
}


.qr-img {
  width: 150px;
  height: 150px;
  margin-top: 10px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.2);
  transition: transform 0.2s ease;
}

.qr-img:hover {
  transform: scale(1.05);
}


/* Grid de tarjetas */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 1rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Estilo de las tarjetas */
.card {
    background: var(--menu-bg);
    border-radius: 12px;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.2);
}

.card-emoji {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-align: center;
}

.card-title {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.card-description {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    text-align: center;
}

/* Búsqueda */
.search-container {
    margin: 0 auto 2rem;
    max-width: 600px;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--menu-bg);
    color: var(--text);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Utilidad accesible (solo para lectores de pantalla) */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Estilos específicos para la sección de programación */
.prog-cards {
    margin-top: 50px;
    /* separación de 50px debajo del h1 */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 0 1rem 3rem;
}

.prog-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
    border-radius: 12px;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.04);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    text-align: center;
}

.prog-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.prog-card .card-emoji {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.prog-card .card-title {
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.prog-card .card-description {
    color: var(--text);
    opacity: 0.95;
    font-size: 0.98rem;
    line-height: 1.5;
}

/* Zigzag decorativo */
.zigzag {
    width: 100%;
    height: 32px;
    margin-top: 12px;
    overflow: hidden;
}

.zigzag svg {
    display: block;
    width: 100%;
    height: 32px;
}

/* Reduce motion respect */
@media (prefers-reduced-motion: reduce) {

    .prog-card,
    .card,
    .hamburger span {
        transition: none !important;
    }

}

