﻿/* =========================================
   HISTORIAL DE PUBLICACIONES
========================================= */

.history-pubs-section {
    position: relative;
    min-height: 100vh;
    padding: 115px 0 130px;
    background: #f4f1ef;
    color: #30231f;
}

.history-pubs-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* =========================================
   ENCABEZADO
========================================= */

.history-pubs-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 60px;
    padding-bottom: 25px;
    border-bottom: 1px solid rgba(48, 35, 31, .17);
}

.history-pubs-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

    .history-pubs-eyebrow span:first-child,
    .history-pubs-eyebrow span:last-child {
        width: 34px;
        height: 1px;
        background: #b68a3f;
    }

    .history-pubs-eyebrow span:nth-child(2) {
        color: #9a732f;
        font-family: "DM Sans", Arial, sans-serif;
        font-size: .67rem;
        font-weight: 600;
        letter-spacing: 3.5px;
        text-transform: uppercase;
    }

.history-pubs-header h1 {
    margin: 0;
    color: #30231f;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    font-weight: 600;
    line-height: .92;
}

    .history-pubs-header h1 em {
        color: #a47b34;
        font-weight: 400;
    }

.history-pubs-count {
    padding-bottom: 8px;
    color: #786c66;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .63rem;
    font-weight: 600;
    letter-spacing: 2.3px;
    text-transform: uppercase;
}

/* =========================================
   LISTA
========================================= */

.history-pubs-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* =========================================
   TARJETA
========================================= */

.history-pub-card {
    display: grid;
    grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
    min-height: 315px;
    background: #fff;
    border: 1px solid rgba(48, 35, 31, .1);
    box-shadow: 0 10px 30px rgba(48, 35, 31, .07);
    overflow: hidden;
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

    .history-pub-card:hover {
        transform: translateY(-4px);
        border-color: rgba(182, 138, 63, .45);
        box-shadow: 0 18px 42px rgba(48, 35, 31, .13);
    }

/* =========================================
   MULTIMEDIA
========================================= */

.history-pub-media {
    position: relative;
    min-height: 315px;
    background: #3d2a23;
    overflow: hidden;
}

.history-pub-img,
.history-pub-video {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 315px;
    object-fit: cover;
}

.history-pub-img {
    transition: transform .4s ease, opacity .4s ease;
}

.history-pub-card:hover .history-pub-img {
    transform: scale(1.025);
    opacity: .92;
}

/* =========================================
   TARJETAS DE REDES
========================================= */

.history-social-card {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 315px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: linear-gradient( 135deg, #34241f, #4a3229 );
    color: #d5ab4e;
    text-decoration: none;
    transition: background-color .25s ease;
}

    .history-social-card:hover {
        background: linear-gradient( 135deg, #3c2923, #55382d );
    }

.history-social-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    border: 1px solid rgba(213, 171, 78, .65);
    font-family: Georgia, serif;
    font-size: 2.2rem;
    font-weight: 600;
    transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}

.history-social-card:hover .history-social-icon {
    color: #ffffff;
    background: rgba(213, 171, 78, .08);
}

.history-social-badge {
    padding: 6px 12px;
    background: #d5ab4e;
    color: #30231f;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* =========================================
   CONTENIDO
========================================= */

.history-pub-body {
    display: flex;
    flex-direction: column;
    padding: 42px 44px 35px;
}

.history-pub-date {
    display: block;
    margin-bottom: 20px;
    color: #9a732f;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.history-pub-body h2 {
    margin: 0 0 17px;
    color: #30231f;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 3.3vw, 3rem);
    font-weight: 600;
    line-height: 1.04;
}

.history-pub-body p {
    margin: 0 0 26px;
    color: #776b66;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .87rem;
    line-height: 1.8;
}

/* =========================================
   PIE
========================================= */

.history-pub-footer {
    margin-top: auto;
    padding-top: 21px;
    border-top: 1px solid rgba(48, 35, 31, .12);
}

.history-pub-link {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: #3b2a23;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-decoration: none;
    text-transform: uppercase;
    transition: color .2s ease;
}

    .history-pub-link svg {
        width: 17px;
        height: 17px;
        transition: transform .22s ease;
    }

    .history-pub-link:hover {
        color: #a17a36;
    }

        .history-pub-link:hover svg {
            transform: translateX(5px);
        }

/* =========================================
   VACÍO
========================================= */

.history-pubs-empty {
    padding: 70px 25px;
    background: #fff;
    border: 1px solid rgba(48, 35, 31, .12);
    color: #847872;
    font-family: "DM Sans", Arial, sans-serif;
    font-size: .8rem;
    letter-spacing: 1.5px;
    text-align: center;
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 850px) {

    .history-pub-card {
        grid-template-columns: 1fr;
    }

    .history-pub-media,
    .history-pub-img,
    .history-pub-video,
    .history-social-card {
        min-height: 310px;
        height: 310px;
    }
}

@media (max-width: 600px) {

    .history-pubs-section {
        padding: 80px 0 95px;
    }

    .history-pubs-container {
        width: min(100% - 30px, 1120px);
    }

    .history-pubs-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 42px;
    }

    .history-pubs-count {
        padding-bottom: 0;
    }

    .history-pubs-list {
        gap: 22px;
    }

    .history-pub-media,
    .history-pub-img,
    .history-pub-video,
    .history-social-card {
        min-height: 235px;
        height: 235px;
    }

    .history-pub-body {
        padding: 29px 23px 27px;
    }

        .history-pub-body h2 {
            font-size: 2rem;
        }
}

.history-instagram-icon {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.history-social-card,
.history-social-card:hover,
.history-social-card:focus,
.history-social-card:active,
.history-social-card:visited {
    color: #ffffff;
    text-decoration: none;
    outline: none;
}

    .history-social-card:hover .history-social-icon,
    .history-social-card:focus .history-social-icon {
        color: #ffffff;
        border-color: #d5ab4e;
    }

    .history-social-card:hover .history-instagram-icon,
    .history-social-card:focus .history-instagram-icon {
        stroke: #ffffff;
    }

    .history-social-card:focus-visible {
        outline: 2px solid #d5ab4e;
        outline-offset: 4px;
    }