/* =========================================================
   PÁGINA TALLERES
   ========================================================= */

.talleres-page {
    width: 100%;
    background: #f4f6f8;
    color: var(--azul-marino);
}


/* =========================================================
   HERO
   ========================================================= */

.talleres-hero {
    min-height: 360px;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 42px 30px;

    background:
        linear-gradient(
            rgba(223, 232, 235, 0.55),
            rgba(223, 232, 235, 0.55)
        ),
        url("../assets/img/talleres/talleres-fondo.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border-bottom: 3px solid var(--verde);
}


.talleres-hero-card {
    width: min(620px, 100%);

    padding: 34px 40px;

    background: rgba(255, 255, 255, 0.96);

    border: 1px solid #e2e6ea;
    border-radius: 18px;

    text-align: center;

    box-shadow: 0 12px 28px rgba(31, 46, 94, 0.13);
}


.talleres-hero-card h1 {
    margin: 0 0 14px;

    color: var(--azul-marino);

    font-size: 32px;
    font-weight: 800;
}


.talleres-hero-card p {
    margin: 0;

    color: #6d7078;

    font-size: 13px;
    line-height: 1.6;
}


.talleres-hero-buttons {
    margin-top: 24px;

    display: flex;
    justify-content: center;
    gap: 14px;
}


.talleres-button {
    min-width: 150px;

    padding: 10px 22px;

    border: none;
    border-radius: 999px;

    font-family: var(--fuente);
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}


.talleres-button:hover {
    transform: translateY(-2px);
}


.talleres-button-primary {
    background: var(--verde);
    color: var(--blanco);

    box-shadow: 0 6px 14px rgba(90, 188, 85, 0.22);
}


.talleres-button-secondary {
    background: var(--azul-marino);
    color: var(--blanco);

    box-shadow: 0 6px 14px rgba(31, 46, 94, 0.18);
}


/* =========================================================
   FILTROS
   ========================================================= */

.talleres-filters {
    width: calc(100% - 80px);
    max-width: 1380px;

    margin: 30px auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}


.talleres-filters-label {
    font-size: 12px;
    font-weight: 700;
}


.talleres-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}


.talleres-filter {
    min-width: 86px;

    padding: 7px 16px;

    background: var(--blanco);
    color: var(--azul-marino);

    border: 1px solid #d7dde2;
    border-radius: 999px;

    font-family: var(--fuente);
    font-size: 11px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease;
}


.talleres-filter:hover,
.talleres-filter.active {
    background: var(--verde);
    color: var(--blanco);

    border-color: var(--verde);
}


/* =========================================================
   SECCIÓN DE TALLERES
   ========================================================= */

.talleres-section {
    width: calc(100% - 80px);
    max-width: 1450px;

    margin: 0 auto 45px;
    padding: 34px 38px 42px;

    background: var(--blanco);

    border: 1px solid #dfe5e9;
    border-radius: 22px;

    box-shadow: 0 10px 28px rgba(31, 46, 94, 0.06);
}


.talleres-section-heading {
    margin-bottom: 30px;

    text-align: center;
}


.talleres-section-heading h2 {
    margin: 0 0 8px;

    color: var(--azul-marino);

    font-size: 30px;
    font-weight: 800;
}


.talleres-section-heading p {
    margin: 0;

    color: #74777d;

    font-size: 12px;
}


/* =========================================================
   GRID
   ========================================================= */

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

    gap: 26px;
}


/* =========================================================
   TARJETA
   ========================================================= */

.taller-card {
    overflow: hidden;

    display: flex;
    flex-direction: column;

    background: var(--blanco);

    border: 1px solid #dce2e6;
    border-radius: 15px;

    box-shadow: 0 7px 18px rgba(31, 46, 94, 0.07);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


.taller-card:hover {
    transform: translateY(-4px);

    box-shadow: 0 12px 24px rgba(31, 46, 94, 0.13);
}


/* Espacio reservado para foto */
.taller-card-image {
    position: relative;

    height: 220px;

    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #dfe7eb;

    border-bottom: 5px solid var(--verde);
}

.taller-card-image img {
    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;
}

.taller-image-placeholder {
    color: #8da0aa;

    font-size: 12px;
}


/* Estado del taller */
.taller-status {
    position: absolute;
    top: 14px;
    left: 14px;

    padding: 7px 13px;

    background: var(--verde);
    color: var(--blanco);

    border-radius: 999px;

    font-size: 10px;
    font-weight: 700;
}


.taller-card-content {
    flex: 1;

    display: flex;
    flex-direction: column;

    padding: 22px 22px 20px;
}


.taller-card-content h3 {
    margin: 0 0 12px;

    color: var(--azul-marino);

    font-size: 17px;
    font-weight: 800;

    text-align: center;
}


.taller-description {
    min-height: 62px;

    margin: 0 0 17px;

    color: #6c7077;

    font-size: 12px;
    line-height: 1.55;

    text-align: center;
}


.taller-info {
    margin-top: auto;
    padding-top: 14px;

    border-top: 1px solid #edf0f2;
}


.taller-info p {
    margin: 4px 0;

    color: #70747a;

    font-size: 11px;
}


.taller-info strong {
    color: var(--azul-marino);

    font-weight: 700;
}


.taller-card-button {
    width: 100%;

    margin-top: 18px;
    padding: 10px 14px;

    background: var(--azul-marino);
    color: var(--blanco);

    border: none;
    border-radius: 999px;

    font-family: var(--fuente);
    font-size: 11px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.taller-card-button:hover {
    background: var(--verde);

    transform: translateY(-1px);
}


/* Si no existen talleres */
.talleres-empty {
    padding: 35px 20px;

    text-align: center;

    color: #777b80;

    font-size: 13px;
}


/* =========================================================
   FORMULARIO
   ========================================================= */

.talleres-form-section {
    width: calc(100% - 80px);
    max-width: 1180px;

    margin: 0 auto 55px;
    padding: 36px 42px 40px;

    background: var(--azul-marino);
    color: var(--blanco);

    border-top: 4px solid var(--verde);
    border-radius: 22px;

    box-shadow: 0 12px 30px rgba(31, 46, 94, 0.16);
}


.talleres-form-heading {
    margin-bottom: 28px;

    text-align: center;
}


.talleres-form-heading h2 {
    margin: 0 0 8px;

    font-size: 27px;
    font-weight: 800;
}


.talleres-form-heading p {
    margin: 0;

    color: rgba(255, 255, 255, 0.8);

    font-size: 12px;
}


.talleres-form {
    max-width: 940px;

    margin: 0 auto;
}


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

    gap: 18px 22px;
}


.talleres-form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.talleres-form-field label {
    color: var(--blanco);

    font-size: 11px;
    font-weight: 700;
}


.talleres-form-field input,
.talleres-form-field select,
.talleres-form-field textarea {
    width: 100%;

    padding: 11px 13px;

    background: var(--blanco);
    color: var(--azul-marino);

    border: 2px solid transparent;
    border-radius: 8px;

    outline: none;

    font-family: var(--fuente);
    font-size: 12px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.talleres-form-field input:focus,
.talleres-form-field select:focus,
.talleres-form-field textarea:focus {
    border-color: var(--verde);

    box-shadow: 0 0 0 3px rgba(90, 188, 85, 0.18);
}


.talleres-form-message {
    grid-column: 1 / -1;
}


.talleres-form-field textarea {
    min-height: 90px;

    resize: vertical;
}


.talleres-submit {
    display: block;

    min-width: 170px;

    margin: 28px auto 0;
    padding: 11px 26px;

    background: var(--verde);
    color: var(--blanco);

    border: none;
    border-radius: 999px;

    font-family: var(--fuente);
    font-size: 12px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.14);

    transition:
        transform 0.2s ease,
        filter 0.2s ease;
}


.talleres-submit:hover {
    transform: translateY(-2px);

    filter: brightness(1.06);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

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

}


@media (max-width: 768px) {

    .talleres-hero {
        min-height: 280px;

        padding: 32px 18px;
    }


    .talleres-hero-card {
        padding: 28px 22px;
    }


    .talleres-hero-card h1 {
        font-size: 27px;
    }


    .talleres-filters {
        width: calc(100% - 36px);

        flex-direction: column;

        gap: 12px;
    }


    .talleres-section,
    .talleres-form-section {
        width: calc(100% - 36px);

        padding-left: 24px;
        padding-right: 24px;
    }


    .talleres-form-grid {
        grid-template-columns: 1fr;
    }


    .talleres-form-message {
        grid-column: auto;
    }

}


@media (max-width: 560px) {

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


    .talleres-hero-buttons {
        flex-direction: column;

        align-items: center;
    }


    .talleres-button {
        width: min(240px, 100%);
    }


    .talleres-section,
    .talleres-form-section {
        width: calc(100% - 28px);

        border-radius: 16px;
    }


    .taller-card-image {
        height: 180px;
    }

}