/* =========================================================
   ARCHIVO DEFINITIVO: talleres.css
   RUTA DE DESTINO: /public_html/assets/css/talleres.css
   VERSIÓN: 6 — ENCUADRE DE PORTADA ADMINISTRABLE

   Se conservan los degradados. Encuadre inicial: 50% / 48%.
========================================================= */

/* =========================================================
   VARIABLES GENERALES
========================================================= */

:root {
    --azul-cefil: #149bd7;
    --azul-cefil-oscuro: #163b79;
    --azul-texto: #153a70;
    --celeste-suave: #eaf7fc;
    --gris-fondo: #f5f7f9;
    --gris-texto: #5c6878;
    --gris-borde: #e3e8ed;
    --blanco: #ffffff;
}

/* =========================================================
   CONFIGURACIÓN GENERAL
========================================================= */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--azul-texto);
    background: var(--blanco);
    font-family: Arial, Helvetica, sans-serif;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

/* =========================================================
   PORTADA GENERAL DE TALLERES
========================================================= */

.talleres-hero {
    position: relative;
    display: flex;
    width: 100%;
    height: 420px;
    min-height: 420px;
    align-items: flex-end;
    overflow: hidden;
    margin-top: 82px;
    padding: 70px 5% 58px;

    /* =====================================================
       DEGRADADO DE COMPUTADORA
       Oscuro detrás del texto y suave sobre la fotografía
    ===================================================== */

    background:
        linear-gradient(
            105deg,
            rgba(12, 54, 105, 0.90) 0%,
            rgba(17, 105, 160, 0.62) 48%,
            rgba(20, 155, 215, 0.12) 100%
        ),
        var(--talleres-portada-imagen, url("../img/hero1.jpg")) var(--talleres-portada-pos-x, 50%) var(--talleres-portada-pos-y, 48%) / cover no-repeat;
}

/* =========================================================
   TEXTO DE LA PORTADA
========================================================= */

.talleres-hero-contenido {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--blanco);
}

.talleres-etiqueta {
    display: inline-block;
    margin-bottom: 13px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.2px;
}

.talleres-hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(38px, 5vw, 64px);
    line-height: 0.98;
    letter-spacing: -2px;
}

.talleres-hero p {
    max-width: 650px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
    line-height: 1.55;
}

/* =========================================================
   CONTENEDOR DEL LISTADO
========================================================= */

.talleres-listado {
    width: min(1180px, 90%);
    margin: 0 auto;
    padding: 70px 0 76px;
}

/* =========================================================
   ENCABEZADO DEL LISTADO
========================================================= */

.talleres-encabezado {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 34px;
}

.talleres-encabezado span {
    display: block;
    margin-bottom: 9px;
    color: var(--azul-cefil);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.talleres-encabezado h2 {
    margin: 0;
    color: var(--azul-cefil-oscuro);
    font-size: clamp(30px, 3.5vw, 45px);
    line-height: 1.05;
    letter-spacing: -1.3px;
}

.talleres-encabezado > p {
    margin: 0 0 3px;
    color: var(--gris-texto);
    font-size: 16px;
    line-height: 1.65;
}

/* =========================================================
   GRILLA DE TALLERES
========================================================= */

.talleres-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

/* =========================================================
   TARJETAS DE TALLERES
========================================================= */

.taller-card {
    display: flex;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--gris-borde);
    border-radius: 5px;
    background: var(--blanco);
    box-shadow: 0 12px 34px rgba(17, 55, 92, 0.07);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.taller-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(17, 55, 92, 0.14);
}

/* =========================================================
   IMAGEN DE LA TARJETA
========================================================= */

.taller-card-imagen {
    position: relative;
    display: block;
    height: 235px;
    overflow: hidden;
    background: #dfe7ec;
}

.taller-card-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

.taller-card:hover .taller-card-imagen img {
    transform: scale(1.045);
}

/* =========================================================
   ESTADO DEL TALLER
========================================================= */

.taller-card-estado {
    position: absolute;
    left: 16px;
    bottom: 16px;
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 7px 11px;
    border-radius: 3px;
    color: var(--azul-cefil-oscuro);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.12);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.45px;
    text-transform: uppercase;
}

/* =========================================================
   CONTENIDO DE LA TARJETA
========================================================= */

.taller-card-contenido {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 24px 23px 22px;
}

.taller-card h3 {
    margin: 0 0 17px;
    color: var(--azul-cefil-oscuro);
    font-size: 22px;
    line-height: 1.16;
    letter-spacing: -0.4px;
}

.taller-card h3 a {
    text-decoration: none;
}

.taller-card h3 a:hover {
    color: var(--azul-cefil);
}

/* =========================================================
   DATOS DEL TALLER
========================================================= */

.taller-card-datos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 17px;
    padding: 14px 0;
    border-top: 1px solid var(--gris-borde);
    border-bottom: 1px solid var(--gris-borde);
}

.taller-card-datos p {
    margin: 0;
    color: var(--azul-texto);
    font-size: 13px;
    line-height: 1.4;
}

.taller-card-datos span {
    display: block;
    margin-bottom: 4px;
    color: var(--gris-texto);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* =========================================================
   DESCRIPCIÓN DEL TALLER
========================================================= */

.taller-card-descripcion {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 22px;
    color: var(--gris-texto);
    font-size: 14px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* =========================================================
   ENLACE DE LA TARJETA
========================================================= */

.taller-card-enlace {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: var(--azul-cefil-oscuro);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.taller-card-enlace span {
    color: var(--azul-cefil);
    font-size: 19px;
    transition: transform 0.2s ease;
}

.taller-card-enlace:hover span {
    transform: translateX(4px);
}

/* =========================================================
   PAGINACIÓN
========================================================= */

.talleres-paginacion {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 44px;
}

.talleres-paginacion span,
.talleres-paginacion a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gris-borde);
    border-radius: 50%;
    color: var(--azul-cefil-oscuro);
    background: var(--blanco);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.talleres-paginacion .pagina-activa {
    border-color: var(--azul-cefil);
    color: var(--blanco);
    background: var(--azul-cefil);
}

/* =========================================================
   TABLETS Y PANTALLAS INTERMEDIAS
========================================================= */

@media (max-width: 980px) {

    .talleres-hero {
        height: 360px;
        min-height: 360px;
        margin-top: 76px;
    }

    .talleres-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .talleres-encabezado {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .talleres-encabezado > p {
        max-width: 650px;
    }
}

/* =========================================================
   CELULARES
========================================================= */

@media (max-width: 680px) {

    .talleres-hero {
        height: 300px;
        min-height: 300px;
        margin-top: 72px;
        padding: 45px 6% 38px;

        /* =================================================
           DEGRADADO DE CELULAR
           Un poco más oscuro para asegurar la lectura
        ================================================= */

        background:
            linear-gradient(
                105deg,
                rgba(12, 54, 105, 0.92) 0%,
                rgba(17, 105, 160, 0.70) 62%,
                rgba(20, 155, 215, 0.24) 100%
            ),
            var(--talleres-portada-imagen, url("../img/hero1.jpg")) var(--talleres-portada-pos-x, 50%) var(--talleres-portada-pos-y, 48%) / cover no-repeat;
    }

    .talleres-hero h1 {
        letter-spacing: -1.3px;
    }

    .talleres-hero p {
        margin-top: 16px;
        font-size: 16px;
    }

    .talleres-listado {
        width: 88%;
        padding: 52px 0 60px;
    }

    .talleres-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .taller-card-imagen {
        height: 245px;
    }

    .talleres-encabezado {
        margin-bottom: 27px;
    }
}

/* =========================================================
   CELULARES PEQUEÑOS
========================================================= */

@media (max-width: 420px) {

    .taller-card-imagen {
        height: 220px;
    }

    .taller-card-contenido {
        padding: 21px 19px 20px;
    }

    .taller-card-datos {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}