/* ===========================
   COMMON HEADER STYLES
   =========================== */

header {
    background-color: var(--red);
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo-header {
    height: 80px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-header img {
    height: 80px;
    display: block;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-family: 'SkPrimo', sans-serif;
    font-weight: normal;
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: -1px;
    margin-top: 10px;
}

/* Mobile Header Behavior */
@media (max-width: 768px) {
    header {
        height: 60px;
        padding: 0 15px;
    }

    .logo-header {
        height: 60px;
    }

    .logo-header img {
        height: 50px;
    }

    /* Standard header link hidden on mobile header typically */
    .contact-link {
        display: none;
    }

    /* Small contact button next to logo for non-index pages */
    .contact-link-mini {
        display: inline-block !important;
        background-color: var(--white);
        color: var(--black);
        padding: 4px 10px;
        font-family: 'SkPrimo', sans-serif;
        font-size: 14px;
        text-decoration: none;
        border: 1px solid var(--black);
        text-transform: uppercase;
        border-radius: 2px;
        box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2);
        rotate: 2deg;
    }
}

.contact-link-mini {
    display: none;
}

/* ===========================
   SHARED PAGE STYLES
   =========================== */

:root {
    --red: #ff0000;
    --black: #000000;
    --yellow: #FAD126;
    --white: #ffffff;
}

@font-face {
    font-family: 'SkPrimo';
    src: url('skprimo-regular-trial.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-color: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.4;
    min-height: 100vh;
}

h1 {
    font-family: 'SkPrimo', sans-serif;
    font-size: 48px;
    font-weight: normal;
    color: var(--yellow);
    text-transform: uppercase;
    display: inline-block;
    background-color: var(--black);
    padding: 15px 20px 0;
    border: 3px solid var(--white);
    margin-bottom: 0;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    gap: 20px;
}

.volver-btn {
    font-family: 'SkPrimo', sans-serif;
    font-size: 24px;
    color: var(--yellow);
    text-transform: uppercase;
    text-decoration: none;
    background-color: var(--black);
    padding: 10px 20px 0;
    border: 2px solid var(--white);
    transform: rotate(2deg);
    transition: transform 0.2s, background-color 0.2s;
    white-space: nowrap;
}

.volver-btn:hover {
    background-color: var(--white);
    color: var(--black);
    transform: rotate(0deg) scale(1.05);
}

@media (max-width: 768px) {
    .page-header {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    h1 {
        font-size: 32px;
        transform: none !important;
        display: block;
        text-align: center;
        padding: 10px 15px 0;
    }

    .volver-btn {
        font-size: 18px;
        order: -1;
        /* Always above the title */
        transform: rotate(-1deg);
        padding: 5px 20px 0;
    }
}

/* ===========================
   LOADING OVERLAY
   =========================== */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 9999;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(250, 209, 38, 0.1);
    border-top: 5px solid var(--yellow);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 25px;
    box-shadow: 0 0 20px rgba(250, 209, 38, 0.2);
}

.loading-text {
    font-family: 'Inter', sans-serif;
    color: var(--yellow);
    font-size: 24px;
    text-transform: uppercase;
    max-width: 400px;
    letter-spacing: 1px;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

/* ===========================
   INSTAGRAM BANNER
   =========================== */
.ig-banner {
    display: none;
    background: linear-gradient(90deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: white;
    padding: 12px 20px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    position: sticky;
    top: 80px;
    /* Below standard header */
    z-index: 95;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out;
}

@media (max-width: 768px) {
    .ig-banner {
        top: 60px;
        font-size: 13px;
    }
}

.ig-banner b {
    color: #fff;
    text-decoration: underline;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}