/* ========================================= */
/* --- 7. MESA DE REGALOS PAGE ------------- */
/* ========================================= */

@font-face {
    font-family: 'Seasons';
    src: url('../fonts/Theseasons-reg.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'WeddingRegular';
    src: url('../fonts/MinionPro-Regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'WeddingCursive';
    src: url('../fonts/Runethia.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-bg-exterior: #2c2c2c;
    --color-bg-interior: #f9f9f9;
    --color-text-main: #000000;
    --color-accent: #6a704c;
    --color-light: #f8f8f8;
    --max-invitation-width: 18.29cm;
    --font-season: 'Seasons', normal;
    --font-serif: 'WeddingRegular', serif;
    --font-script: 'WeddingCursive', cursive;
}

/* Overrides the global body background for this specific page */
.regalos-body {
    background-color: var(--color-bg-exterior); 
    background-image: none;
}

.regalos-wrapper {
    position: relative; /* REQUIRED for the absolute overlay to work */
    width: 100%;
    max-width: clamp(320px, 100vw, var(--max-invitation-width)); 
    margin: 0 auto; 
    background-color: #f3efe9; 
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4); 
    display: block; 
    
    /* Removed min-height and background-image properties so the HTML image dictates height */
}

/* The new physical image that controls the page height */
.regalos-bg-img {
    width: 100%;
    height: auto;
    display: block;
}

.regalos-content {
    /* Locks the content precisely over the image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    
    /* Padding-top pushes the title down past the couple's faces */
    padding: 60% 15% 48% 15%;
    
    text-align: center;
    color: var(--color-accent);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.regalos-buttons {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(10px, 1vw, 25px); 
    width: 100%;
    height: 100%;
}


.store-btn-img {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-block;
    transition: transform 0.2s ease, opacity 0.2s ease;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 10;
    background-color: transparent;
    border: none;
}


@media (max-width: 820px) {
    /* Slightly more padding on mobile to push past the taller crop */
    .regalos-content {
        padding: 55% 5% 0% 5%; 
    }

    .regalos-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: clamp(5px, 1vw, 25px); 
        margin-bottom: 12%;
        width: 100%;
    }

    .store-btn-link {
        width: clamp(40px, 25%, 260px); 
        display: inline-block;
        transition: transform 0.2s ease, opacity 0.2s ease;
        cursor: pointer;
    }

    .store-btn-link:hover {
        transform: scale(1.03);
        opacity: 0.9;
    }

    .store-btn-img {
        width: 100%;
        height: auto;
        display: block;
    }

    .bank-details {
        font-family: var(--font-serif);
        font-size: clamp(.5rem, 2.8vw, 1.4rem);
        line-height: 0.2;
        width: clamp(260px, 85%, 400px);
        margin-top: -9%;
    }
}