/* =========================================
   RESET GENERAL
========================================= */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =========================================
   BODY
========================================= */
body {
    font-family: 'Times New Roman', Times, serif;
    background: rgb(254, 235, 212);
    color: #333;
    line-height: 1.6;
    padding-bottom: 50px;
    font-size: 24px;
}

/* =========================================
   HEADER
========================================= */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgb(255, 153, 0), rgb(163, 58, 58));
    padding: 20px;
    color: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    border-bottom: 3px solid orange;
    position: relative;
    flex-wrap: wrap;
}

.logo {
    width: 100%;
    max-width: 120px;
    height: auto;
}

.titulo-principal {
    font-size: 32px;
    font-family: Georgia, 'Times New Roman', Times, serif;
    color: white;
    line-height: 1.2;
    flex: 1;
    text-align: left;
}

/* =========================================
   BOTÓN HAMBURGUESA
========================================= */
.menu-toggle {
    display: block;
    font-size: 30px;
    cursor: pointer;
    color: white;
    position: absolute;
    right: 20px;
    top: 20px;
    z-index: 1001;
}

/* =========================================
   MENÚ FLOTANTE
========================================= */
nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 15px;
    width: 210px;
    min-width: 210px;
    background: rgba(163, 58, 58, 0.95);
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 10px 0;
}

nav.active {
    display: block;
}

nav ul {
    list-style: none;
    display: block;
    padding: 5px 0;
}

nav ul li {
    display: block;
}

nav ul li a {
    display: block;
    padding: 9px 12px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s;
}

nav ul li a:hover {
    background-color: #ffb300;
    color: #4b0082;
    box-shadow: 0 0 10px #9d00ff;
}

/* =========================================
   SECCIÓN TALLERES
========================================= */
.talleres {
    padding: 20px;
}

.titulo-seccion {
    text-align: center;
    font-size: 2em;
    margin-bottom: 20px;
    color: #3f0076;
}

.subtitulo-categoria {
    margin-top: 30px;
    font-size: 1.5em;
    color: #cc0000;
    border-bottom: 2px solid #ccc;
    padding-bottom: 5px;
    text-align: center;
}

/* =========================================
   CONTENEDOR TARJETAS
========================================= */
.contenedor-talleres {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    background-color: rgb(254, 235, 212);
    padding: 20px;
    margin-bottom: 30px;
    gap: 20px;
}

/* =========================================
   TARJETAS
========================================= */
.tarjeta-taller {
    background-color: #fffcf8;
    border: 2px solid #b20404;
    border-radius: 10px;
    padding: 15px;
    width: 300px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.tarjeta-taller h4 {
    margin-bottom: 10px;
    color: #333;
    text-align: center;
    font-size: 24px;
}

.tarjeta-taller p {
    margin: 5px 0;
    font-size: 20px;
}

/* =========================================
   BOTONES CATEGORÍAS
========================================= */
.categoria {
    margin-bottom: 30px;
}

.boton-categoria {
    background-color: #8b1e3f;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    width: fit-content;
    margin: 0 auto 20px auto;
    display: block;
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.boton-categoria:hover {
    background-color: #be3961;
    transform: scale(1.04);
}

/* =========================================
   FLECHA
========================================= */
.flecha {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.categoria.oculta .flecha {
    transform: rotate(-90deg);
}

.categoria.oculta .contenedor-talleres {
    display: none;
}

/* =========================================
   FOOTER
========================================= */
footer {
    text-align: center;
    font-size: 13px;
    margin-top: 40px;
    padding: 15px 0;
    color: #333;
}

footer a {
    color: #333;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* =========================================
   RESPONSIVE CELULAR
========================================= */
@media (max-width: 768px) {

    body {
        font-size: 18px;
    }

    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        max-width: 100px;
        margin-bottom: 10px;
    }

    .titulo-principal {
        font-size: 22px;
    }

    .menu-toggle {
        top: 15px;
        right: 15px;
        font-size: 26px;
    }

    nav {
        width: 210px;
        min-width: 210px;
        right: 10px;
        top: 60px;
    }

    nav ul li a {
        font-size: 20px;
    }

    .contenedor-talleres {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .tarjeta-taller {
        width: 90%;
        max-width: 350px;
    }

    .titulo-seccion {
        font-size: 1.5em;
    }

    .subtitulo-categoria {
        font-size: 1.2em;
    }

    .boton-categoria {
        width: 90%;
        font-size: 18px;
    }

    .tarjeta-taller p {
        font-size: 18px;
    }
}

/* =========================================
   RESPONSIVE TABLET
========================================= */
@media (min-width: 769px) and (max-width: 1024px) {

    .tarjeta-taller {
        width: 45%;
    }

    .titulo-principal {
        font-size: 26px;
    }
}