@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Manrope:wght@400;500;600;700&display=swap');

body {
    font-family: Manrope, sans-serif;
    background: #f9f9f9;
    color: #333;
    padding: 20px;
    margin: 0;
}

h1 {
    text-align: center;
    margin-bottom: 20px;
}

/* Contenedor centrado */
#grid-container {
    width: 100%;
    max-width: none;
    margin: 0 auto;
    padding: 0 clamp(6px, 1vw, 16px);
}

#grid {
    margin: 0 auto;
    width: 100%;
}

/* 3 columnas por defecto */
.grid-item {
    width: 33.333%;
    float: left;
    box-sizing: border-box;
    padding: 7px;
    position: relative; /* Para el corazón */
}

.like-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 0 5px rgba(0,0,0,0.5);
    user-select: none;
}

.like-btn.liked {
    color: #e74c3c;
}

.like-btn.is-loading,
.popup-like-icon.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

.grid-item img,
.grid-item video {
    width: 100%;
    display: block;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.08);
}

/* Botones de descarga */
.descargas {
    text-align: center;
    background: #fff;
    padding: 4px;
     justify-content: center;
    border-radius: 0 0 4px 4px;
    margin-top: 3px;
}

.descargas a {
    margin: 0 5px;
    text-decoration: none;
    color: #007BFF;
}

.descargas a:hover {
    text-decoration: underline;
}

@media (min-width: 1024px) {
    body:not(.index-page) {
        padding-left: 8px;
        padding-right: 8px;
    }

    #grid-container {
        padding: 0 4px;
    }

    .grid-item {
        padding: 10px;
    }
}

@media(max-width:767px){
    body:not(.index-page) {
        padding-left: 10px;
        padding-right: 10px;
    }

    #grid-container {
        padding: 0 2px;
    }

    .grid-item {
        width: 33.333%;
        padding: 4px;
    }
}

/* =============================== */
/* SECCIÓN HERO PORTADA */
/* =============================== */

.hero {
    width: 100%;
    height: 100vh; /* ocupa toda la altura de la pantalla */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4); /* oscurece un poco la imagen */
}

.hero-content {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: capitalize;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

#scroll-down {
    background: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    color: #fff;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

#scroll-down:hover {
    background: #fff;
    color: #000;
}

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

@media(max-width:767px){
    .hero h1 {
        font-size: 2rem;
    }
    #scroll-down {
        padding: 10px;
        font-size: 1.2rem;
    }
}

/* ❤️ Corazón dentro del popup GLightbox */
.popup-like-container {
    text-align: center;
    margin-top: 10px;
}

.popup-like-icon {
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    color: #fff6f0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
    transition: transform .3s;
}

.popup-like-icon.liked {
    color: #ff4d57;
    transform: scale(1.16);
}

.popup-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.popup-downloads {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 8px;
    max-width: min(92vw, 760px);
}

.popup-downloads a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #fff7ee;
    background: rgba(24, 24, 24, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: 999px;
    padding: 10px 16px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.popup-downloads a::before {
    content: '↓';
    font-size: 1rem;
    line-height: 1;
    opacity: 0.9;
    transform: translateY(-1px);
}

.popup-downloads a:hover {
    transform: translateY(-1px);
    background: rgba(34, 34, 34, 0.86);
    border-color: rgba(255, 255, 255, 0.74);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.gslide-title {
    display: none !important;
}

.glightbox-clean .gclose,
.glightbox-clean .gprev,
.glightbox-clean .gnext,
.gclose,
.gprev,
.gnext {
    width: 3.25rem;
    height: 3.25rem;
    min-width: 3.25rem;
    min-height: 3.25rem;
}

.glightbox-clean .gclose svg,
.glightbox-clean .gprev svg,
.glightbox-clean .gnext svg,
.gclose svg,
.gprev svg,
.gnext svg {
    width: 2rem;
    height: 2rem;
}

@media (max-width: 640px) {
    .popup-like-icon {
        font-size: 40px;
    }

    .popup-downloads {
        gap: 8px;
        width: 100%;
        max-width: min(96vw, 520px);
    }

    .popup-downloads a {
        font-size: 0.88rem;
        padding: 9px 14px;
        min-height: 40px;
    }
}

.ui-feedback {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%) translateY(12px);
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    background: rgba(20, 20, 20, 0.88);
    color: #fff;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.9rem;
    z-index: 9999;
    pointer-events: none;
}

.ui-feedback.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.ui-feedback.error {
    background: rgba(153, 27, 27, 0.9);
}

.ui-feedback.success {
    background: rgba(20, 20, 20, 0.88);
}

/* =============================== */
/* HOME INDEX */
/* =============================== */

body.index-page {
    --bg: #f4f1eb;
    --ink: #1f1f1d;
    --muted: #69665f;
    --card: rgba(255, 255, 255, 0.7);
    --line: rgba(63, 57, 49, 0.12);
    --accent: #6d533a;
    background:
        radial-gradient(circle at 12% 12%, rgba(130, 98, 68, 0.12), transparent 30%),
        radial-gradient(circle at 82% 18%, rgba(64, 80, 96, 0.1), transparent 34%),
        linear-gradient(165deg, #f6f3ee 0%, #f1eee8 45%, #ece8e1 100%);
    color: var(--ink);
    min-height: 100vh;
    padding: 0;
}

.index-shell {
    width: 100%;
    margin: 0 auto;
    padding: 48px clamp(16px, 3vw, 40px) 72px;
}

.album-grid-shell {
    width: 100%;
    padding: 0 clamp(14px, 2.4vw, 28px);
}

.index-header {
    text-align: center;
    margin-bottom: clamp(18px, 2.4vw, 36px);
}

.index-kicker {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--muted);
}

body.index-page h1 {
    margin: 10px 0 10px;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4.8vw, 4.2rem);
    letter-spacing: 0.02em;
    color: var(--ink);
    text-transform: capitalize;
}

.index-subtitle {
    max-width: 680px;
    margin: 0 auto;
    color: var(--muted);
    font-size: clamp(0.9rem, 1.15vw, 1.05rem);
    line-height: 1.62;
}

.social-promo {
    margin-top: clamp(14px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.social-promo-title {
    margin: 0;
    color: var(--muted, #69665f);
    font-size: clamp(0.68rem, 0.9vw, 0.8rem);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    text-decoration: none;
    color: var(--ink, #1f1f1d);
    border: 1px solid rgba(93, 71, 50, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.64);
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: clamp(0.66rem, 0.9vw, 0.78rem);
    letter-spacing: 0.04em;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.album-social-promo {
    margin: 18px auto 10px;
    padding: 0 14px;
}

.social-link svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    opacity: 0.88;
}

.social-link:hover {
    transform: translateY(-1px);
    border-color: rgba(93, 71, 50, 0.42);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 6px 14px rgba(35, 26, 19, 0.12);
}

.social-link[href*="facebook.com"]:hover {
    color: #1877f2;
    border-color: rgba(24, 119, 242, 0.5);
    box-shadow: 0 6px 16px rgba(24, 119, 242, 0.22);
}

.social-link[href*="instagram.com"]:hover {
    color: #e1306c;
    border-color: rgba(225, 48, 108, 0.52);
    box-shadow: 0 6px 16px rgba(225, 48, 108, 0.22);
}

.social-link[href*="tiktok.com"]:hover {
    color: #111111;
    border-color: rgba(0, 0, 0, 0.48);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(14px, 1.8vw, 22px);
}

.album-card {
    min-width: 0;
    border: 1px solid var(--line);
    background: var(--card);
    backdrop-filter: blur(3px);
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 12px 34px rgba(40, 31, 22, 0.10);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background-color 0.35s ease;
}

.album-card:hover {
    transform: translateY(-8px);
    border-color: rgba(91, 67, 45, 0.42);
    box-shadow: 0 18px 42px rgba(35, 26, 19, 0.16);
    background: rgba(255, 255, 255, 0.82);
}

.album-card-link {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    height: 100%;
}

.album-cover-wrap {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(160deg, #d7cec3, #bca58f);
}

.album-cover-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 34%;
    background: linear-gradient(180deg, rgba(15, 12, 9, 0) 0%, rgba(15, 12, 9, 0.16) 100%);
    pointer-events: none;
}

.album-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-cover-fallback {
    background:
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.45), transparent 32%),
        linear-gradient(145deg, #a18264, #6f5a49);
}

.album-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: clamp(12px, 1.2vw, 18px) clamp(14px, 1.5vw, 20px) clamp(14px, 1.4vw, 20px);
}

.album-body h2 {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.1rem, 1.75vw, 1.55rem);
    letter-spacing: 0.005em;
    text-transform: capitalize;
    line-height: 1.05;
}

.album-meta {
    margin: 4px 0 12px;
    font-size: clamp(0.72rem, 0.95vw, 0.86rem);
    color: var(--muted);
}

.album-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(93, 71, 50, 0.35);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: clamp(0.66rem, 0.9vw, 0.78rem);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.58);
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.album-card:hover .album-cta {
    background: #6d533a;
    color: #fefbf6;
    border-color: #6d533a;
    box-shadow: 0 8px 16px rgba(109, 83, 58, 0.20);
    transform: translateY(-1px);
}

@media (max-width: 420px) {
    body.index-page h1 {
        font-size: 1.55rem;
    }

    .index-subtitle {
        font-size: 0.76rem;
    }

    .album-body {
        padding: 6px 8px 9px;
    }

    .album-body h2 {
        font-size: 0.78rem;
    }

    .album-meta {
        font-size: 0.54rem;
    }

    .album-cta {
        padding: 5px 9px;
        font-size: 0.52rem;
    }
}

@media (min-width: 421px) and (max-width: 767px) {
    .index-shell {
        padding: 24px 0 36px;
    }

    .album-grid-shell {
        padding: 0 12px;
    }

    .index-header {
        margin-bottom: 18px;
    }

    .index-kicker {
        font-size: 0.66rem;
        letter-spacing: 0.18em;
    }

    body.index-page h1 {
        font-size: 1.75rem;
        margin: 8px 0 8px;
    }

    .index-subtitle {
        font-size: 0.8rem;
        line-height: 1.45;
    }

    .album-grid {
        gap: 10px;
    }

    .album-cover-wrap {
        aspect-ratio: 1 / 1;
    }

    .album-body {
        padding: 7px 9px 10px;
    }

    .album-body h2 {
        font-size: 0.84rem;
    }

    .album-meta {
        margin: 3px 0 8px;
        font-size: 0.6rem;
        line-height: 1.2;
    }

    .album-cta {
        padding: 6px 10px;
        font-size: 0.56rem;
        letter-spacing: 0.11em;
    }
}

@media (min-width: 768px) and (max-width: 1199px) {
    .index-shell {
        padding-top: 42px;
        padding-bottom: 64px;
    }

    .index-header {
        margin-bottom: 28px;
    }

    .index-kicker {
        font-size: 0.74rem;
    }

    body.index-page h1 {
        font-size: clamp(2.3rem, 4vw, 3.5rem);
    }

    .index-subtitle {
        font-size: 0.98rem;
        line-height: 1.58;
    }

    .social-link {
        padding: 9px 14px;
        font-size: 0.7rem;
    }

    .album-grid-shell {
        padding: 0 clamp(18px, 2.4vw, 34px);
    }

    .album-grid {
        gap: 16px;
    }

    .album-body {
        padding: 12px 14px 16px;
    }

    .album-body h2 {
        font-size: 1.05rem;
    }

    .album-meta {
        font-size: 0.72rem;
        margin: 4px 0 10px;
    }

    .album-cta {
        padding: 7px 12px;
        font-size: 0.62rem;
        letter-spacing: 0.12em;
    }
}

@media (min-width: 1200px) and (max-width: 1999px) {
    .index-shell {
        padding-top: 54px;
        padding-bottom: 78px;
    }

    .index-header {
        margin-bottom: 34px;
    }

    .index-kicker {
        font-size: 0.82rem;
    }

    body.index-page h1 {
        font-size: clamp(3rem, 4vw, 4.4rem);
    }

    .index-subtitle {
        font-size: 1.06rem;
        line-height: 1.66;
    }

    .social-link {
        padding: 9px 15px;
        font-size: 0.74rem;
    }

    .album-grid-shell {
        padding: 0 clamp(22px, 2vw, 40px);
    }

    .album-grid {
        gap: 20px;
    }

    .album-card {
        border-radius: 24px;
    }

    .album-body {
        padding: 18px 20px 22px;
    }

    .album-body h2 {
        font-size: 1.34rem;
        line-height: 1.04;
    }

    .album-meta {
        margin: 5px 0 14px;
        font-size: 0.84rem;
    }

    .album-cta {
        padding: 9px 16px;
        font-size: 0.72rem;
        letter-spacing: 0.14em;
    }
}

@media (min-width: 2000px) {
    .index-shell {
        padding-top: 64px;
        padding-bottom: 92px;
    }

    .index-header {
        margin-bottom: 40px;
    }

    .index-kicker {
        font-size: 0.88rem;
        letter-spacing: 0.24em;
    }

    body.index-page h1 {
        font-size: clamp(3.5rem, 3.8vw, 5rem);
    }

    .index-subtitle {
        font-size: 1.16rem;
        line-height: 1.72;
        max-width: 760px;
    }

    .social-promo {
        margin-top: 28px;
    }

    .social-link {
        padding: 11px 18px;
        font-size: 0.8rem;
        gap: 8px;
    }

    .social-link svg {
        width: 1.08rem;
        height: 1.08rem;
    }

    .album-grid-shell {
        padding: 0 clamp(30px, 2.2vw, 56px);
    }

    .album-grid {
        gap: 24px;
    }

    .album-card {
        border-radius: 28px;
    }

    .album-body {
        padding: 22px 24px 26px;
        gap: 6px;
    }

    .album-body h2 {
        font-size: 1.62rem;
        line-height: 1.02;
    }

    .album-meta {
        margin: 6px 0 16px;
        font-size: 0.96rem;
    }

    .album-cta {
        padding: 11px 20px;
        font-size: 0.82rem;
        letter-spacing: 0.16em;
    }
}

/* Controles de Paginación */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    margin: 40px auto;
}

.pagination-btn {
    background: linear-gradient(135deg, #5f4a3b 0%, #8b6f47 100%);
    color: #fefbf6;
    border: 2px solid #5f4a3b;
    padding: 10px 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: Manrope, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 156px;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #4a3a2a 0%, #6d533a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(95, 74, 59, 0.3);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.pagination-btn .arrow {
    font-size: 1.2em;
    display: inline-flex;
    align-items: center;
}

.pagination-dots {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.pagination-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.pagination-dot:hover {
    background: #999;
    transform: scale(1.2);
}

.pagination-dot.active {
    background: #5f4a3b;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 0 3px rgba(95, 74, 59, 0.3);
}

@media (min-width: 1024px) {
    .pagination-controls {
        justify-content: space-between;
        gap: 28px;
        max-width: none;
        padding: 0 10px;
    }

    .pagination-btn {
        min-width: 190px;
        padding: 14px 24px;
        font-size: 2.7rem;
        border-radius: 999px;
        box-shadow: 0 10px 24px rgba(95, 74, 59, 0.18);
    }

    .pagination-btn .arrow {
        font-size: 1.3em;
    }

    .pagination-dots {
        gap: 10px;
        flex: 1 1 auto;
    }

    .pagination-dot {
        width: 11px;
        height: 11px;
    }

    .pagination-dot.active {
        width: 13px;
        height: 13px;
    }
}

@media (max-width: 640px) {
    .pagination-controls {
        justify-content: center;
        gap: 12px;
    }

    .pagination-btn {
        min-width: 0;
        flex: 1 1 auto;
        padding: 8px 12px;
        font-size: 1.2rem;
    }

    .pagination-dots {
        gap: 6px;
    }

    .pagination-dot {
        width: 8px;
        height: 8px;
    }

    .pagination-dot.active {
        width: 10px;
        height: 10px;
    }
}
