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

@font-face {
    font-family: 'Riesling';
    src: url('../fonts/riesling.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Nunito';
    src: url('../fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-weight: 200 900;
    font-style: normal;
}

:root {
    /* === Color Palette === */
    --color-primary: #9F985C;
    --color-text-dark: #2e3e24;
    --color-white: white;
    --color-accent-yellow: #F4B147;
    --color-green-light: #eef2e9;
    --color-yellow-light: #fdf8e7;
    --color-text-yellow-dark: #8C6529;
    --color-green-dark-legible: #1a2e01;

    /* === Spacing === */
    --spacing-sm: 10px;
    --spacing-md: 20px;
    --spacing-lg: 40px;
    --spacing-xl: 60px;
    --spacing-xxl: 80px;

    /* === Shared UI tokens === */
    --radius-card: 12px;
    --blur-standard: 8px;
    --section-padding: 50px 20px;

    /* === M3 Elevation (tone-based) === */
    --md-elevation-1: 0 1px 3px 1px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.2);
    --md-elevation-2: 0 2px 6px 2px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.2);
    --md-elevation-3: 0 4px 8px 3px rgba(0, 0, 0, 0.12), 0 1px 3px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #000000;
    color: var(--color-text-dark);
}

p {
    font-family: 'Nunito', sans-serif;
}

button {
    font-family: 'Nunito', sans-serif;
}

html.modal-open,
body.modal-open {
    overflow: hidden;
}

h1,
h2,
h3 {
    font-family: 'Georgia', serif;
    color: var(--color-primary);
}

.hidden {
    display: none !important;
}

.invitation-container {
    background-color: var(--color-primary);
    overflow-x: hidden;
    user-select: none;
}

.hero-section {
    position: relative;
    height: 100vh;
    background-image: url('../assets/fotos/portada-01.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 40% 63%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: var(--color-white);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.40);
}

.content {
    width: 100%;
    position: relative;
    top: -15vh;
    z-index: 10;
    padding: 20px;
}

.content h1:not(.hero-date) {
    font-family: 'Calligraphy', sans-serif;
    font-size: clamp(2.5em, 15vw, 5em);
    margin-bottom: 10px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-date {
    font-family: 'Riesling', sans-serif;
    font-size: 2.6em;
    margin-top: 5px;
    color: white;
    text-align: center;
    width: 100%;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.65);
}

.court-section {
    position: relative;
    padding: 80px 40px;
    height: 30vh;
    display: flex;
    align-items: center;
    color: white;
}

.court-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.bridesmaids-section {
    background:
        radial-gradient(ellipse at 20% 80%, rgba(140, 101, 41, 0.7) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(244, 177, 71, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(168, 127, 50, 0.4) 0%, transparent 70%),
        linear-gradient(160deg, #5c461b 0%, #5a4220 40%, #765930 100%);
}

.groomsmen-section {
    background:
        radial-gradient(ellipse at 25% 75%, rgba(60, 96, 48, 0.6) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 25%, rgba(159, 152, 92, 0.35) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(26, 46, 1, 0.5) 0%, transparent 65%),
        linear-gradient(160deg, #273515 0%, #394d2d 45%, #233414 100%);
}

.bridesmaids-section::before,
.groomsmen-section::before {
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.court-content {
    position: center;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin-top: -10vh;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.bridesmaids-section .court-content h2 {
    font-size: 4em;
}

.groomsmen-section .court-content h2 {
    font-size: 4em;
}

.bridesmaids-title,
.groomsmen-title {
    font-size: 4em;
    color: var(--color-white);
    text-shadow: 0px 0px 12px rgba(0, 0, 0, 0.9);
    margin-top: 0;
    margin-bottom: 20px;
}

.bridesmaids-title {
    font-family: 'Calligraphy', sans-serif;
}

.bridesmaids-description,
.groomsmen-description {
    max-width: 600px;
    font-size: 1.2em;
    line-height: 1.8;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 1);
    color: var(--color-white);
}

.court-btn-wrapper {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.collapsible-list {
    background-color: #f0f0f0;
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 600ms cubic-bezier(0.2, 0, 0, 1),
        padding 600ms cubic-bezier(0.2, 0, 0, 1);
    will-change: max-height, padding;
    transform: translateZ(0);
    transform-style: preserve-3d;
    contain: layout;
}

.bridesmaids-section+.collapsible-list {
    background-color: var(--color-yellow-light);
}

.groomsmen-section+.collapsible-list {
    background-color: var(--color-green-light);
}

.collapsible-list.active {
    padding: 40px 20px 60px 20px;
}

.list-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.list-title {
    font-size: 2em;
    margin-top: 0;
    margin-bottom: 35px;
    text-shadow: 2px 1px 5px rgba(0, 0, 0, 0.3);
}

.bridesmaids-section+.collapsible-list .list-title {
    display: none;
}

.bridesmaids-section+.collapsible-list.active {
    padding: 50px 20px;
}

.groomsmen-section+.collapsible-list .list-title {
    color: var(--color-text-dark);
}

.names-grid {
    gap: 30px;
    display: grid;
    grid-template-columns: repeat(4, 140px);
    justify-content: center;
    align-items: flex-start;
    transform-style: preserve-3d;
    padding: 5px;
}

#groomsmen-list .names-grid {
    grid-template-columns: repeat(3, 140px);
}

.person {
    width: 140px !important;
    height: 170px !important;
    box-sizing: border-box !important;
    padding: 10px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--md-elevation-2);
    border-radius: 18px;
    transform: translate3d(0, 0, 0) perspective(1000px);
    backface-visibility: hidden;
    filter: blur(0);
    will-change: transform;
    contain: content;
}

.person-photo {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    transform: translate3d(0, 0, 0) perspective(1000px);
    backface-visibility: hidden;
    filter: blur(0);
}

.person-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
}

.person p {
    font-family: 'Nunito', sans-serif;
    font-size: 14px;
    color: var(--color-text-dark);
    line-height: 1.2;
    margin-top: auto;
    margin-bottom: auto;
    white-space: nowrap;
    overflow: visible;
    width: 100%;
    transform: translate3d(0, 0, 0) perspective(1000px);
    backface-visibility: hidden;
    filter: blur(0);
}

#bridesmaids-list .person p {
    color: var(--color-text-yellow-dark);
}

.details-section {
    position: relative;
    padding: 60px 20px;
    text-align: center;
    background-image: url('../assets/fotos/detalles.webp');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: 100% 20%;
    background-color: rgba(0, 0, 0, 0.2);
    background-blend-mode: overlay;
    color: var(--color-green-dark-legible);
}

.vertical-spacer {
    height: 200px;
}

.info-blocks {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.block {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    flex: 1 1 30%;
    max-width: 380px;
    padding: 20px;
    border-radius: 28px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    min-height: 200px;
}

.block p i {
    margin-left: 12px;
    color: var(--color-green-dark-legible);
}

.block h3 {
    font-size: 1.8em;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    color: var(--color-green-dark-legible);
}

.secondary-link {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    text-decoration: none;
    font-weight: bold;
    border: 1px solid;
    padding: 0 10px;
    border-radius: 28px;
    height: 40px;
    box-sizing: border-box;
    box-shadow: var(--md-elevation-1);
    will-change: transform, box-shadow;
    transition:
        transform 0.2s cubic-bezier(0.2, 0, 0, 1),
        box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1),
        background-color 0.2s cubic-bezier(0.2, 0, 0, 1),
        color 0.2s cubic-bezier(0.2, 0, 0, 1),
        border-color 0.2s cubic-bezier(0.2, 0, 0, 1);
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background-color: transparent;
    cursor: pointer;
    width: 100%;
}

.block .secondary-link {
    color: var(--color-green-dark-legible);
    border-color: var(--color-green-dark-legible);
}

.btn-court-bottom {
    height: auto;
    min-height: 40px;
    min-width: 250px;
    width: auto;
    padding: 0 20px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: var(--color-white);
    border: none;
    box-shadow: var(--md-elevation-1);
    will-change: transform, box-shadow;
    transition:
        transform 0.2s cubic-bezier(0.2, 0, 0, 1),
        box-shadow 0.2s cubic-bezier(0.2, 0, 0, 1),
        background-color 0.2s cubic-bezier(0.2, 0, 0, 1),
        color 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.bridesmaids-section .btn-court-bottom {
    color: var(--color-text-yellow-dark);
}

.groomsmen-section .btn-court-bottom {
    color: var(--color-text-dark);
}

.bridesmaids-section .btn-court-bottom:active {
    background-color: var(--color-text-yellow-dark);
    color: var(--color-white);
    box-shadow: var(--md-elevation-1);
    transform: scale(0.97);
}

.groomsmen-section .btn-court-bottom:active {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    box-shadow: var(--md-elevation-1);
    transform: scale(0.97);
}

@media (hover: hover) {
    .bridesmaids-section .btn-court-bottom:hover {
        background-color: var(--color-text-yellow-dark);
        color: var(--color-white);
        box-shadow: var(--md-elevation-2);
        transform: translateY(-1px);
    }

    .groomsmen-section .btn-court-bottom:hover {
        background-color: var(--color-text-dark);
        color: var(--color-white);
        box-shadow: var(--md-elevation-2);
        transform: translateY(-1px);
    }

    .secondary-link:hover {
        background-color: var(--color-secundario);
        color: var(--color-white);
        box-shadow: var(--md-elevation-2);
        transform: translateY(-1px);
    }

    .block .secondary-link:hover {
        background-color: var(--color-green-dark-legible);
        color: var(--color-white);
        box-shadow: var(--md-elevation-2);
        transform: translateY(-1px);
    }

    .contributions-section .secondary-link:hover {
        background-color: var(--color-text-dark);
        color: var(--color-white);
        box-shadow: var(--md-elevation-2);
        transform: translateY(-1px);
    }
}

/* IMPORTANT CLOSING OF HOVER MEDIA QUERY */


.schedule-section {
    padding: 50px 20px 80px 20px;
    position: relative;
    background-image: url('../assets/fotos/horario.webp');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    background-color: rgba(0, 0, 0, 0.2);
    background-blend-mode: multiply;
}

.schedule-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
    margin-bottom: 60px;
    text-align: center;
}

.schedule-title i {
    font-size: 4em;
    color: var(--color-white);
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 1);
}

.schedule-date {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.5rem;
    margin-top: 15px;
    letter-spacing: 2px;
    background-color: rgba(255, 255, 255, 0.85);
    padding: 8px 20px;
    border-radius: 28px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: var(--color-green-dark-legible);
}

.timeline-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--color-white);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-content {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 28px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.timeline-content h3 {
    margin-top: 0;
    color: var(--color-green-dark-legible);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.timeline-time {
    font-size: 1.1rem;
    font-weight: bold;
    opacity: 0.9;
}

.timeline-event {
    font-size: 1.2rem;
    font-weight: normal;
}

.timeline-content p {
    font-size: 1rem;
    line-height: 1.5;
}

.timeline-event i {
    width: 25px;
    height: 25px;
    margin-left: 8px;
    text-align: center;
}

/* === Contributions Section (unified card + gift) === */
.contributions-section {
    padding: var(--section-padding);
    padding-bottom: var(--spacing-xxl);
    text-align: center;
    background: linear-gradient(180deg, var(--color-yellow-light) 0%, var(--color-green-light) 100%);
}

/* VIP: solid background (no gradient, ticket info hidden) */
.contributions-section.is-vip {
    background: var(--color-green-light);
}

.contributions-title {
    font-size: 4em;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-yellow-dark);
}

.contributions-gift-title {
    font-size: 4em;
    margin-top: 0;
    margin-bottom: var(--spacing-md);
    color: var(--color-text-dark);
}

.contributions-description {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
    font-size: 1.1em;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.card-pricing {
    max-width: 600px;
    margin: 0 auto var(--spacing-lg) auto;
    padding: 25px;
    background-color: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(var(--blur-standard));
    -webkit-backdrop-filter: blur(var(--blur-standard));
    border-radius: 28px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.card-pricing .contributions-description {
    margin-bottom: var(--spacing-sm);
    color: var(--color-text-yellow-dark);
}

.card-pricing .disclaimer-text {
    color: var(--color-text-yellow-dark);
}

.bank-data {
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(var(--blur-standard));
    -webkit-backdrop-filter: blur(var(--blur-standard));
    border-radius: 28px;
    padding: 25px;
    max-width: 450px;
    margin: 0 auto;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bank-data h4 {
    margin-top: 0;
    font-size: 1.5em;
    font-family: 'Nunito', sans-serif;
    color: var(--color-text-dark);
}

.bank-data p {
    line-height: 1.7;
    word-wrap: break-word;
    color: var(--color-text-dark);
}

.copy-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.contributions-section .secondary-link {
    color: var(--color-text-dark);
    border-color: var(--color-text-dark);
}

.disclaimer-text {
    margin-top: 25px;
    font-size: 0.9em;
    font-style: italic;
    opacity: 0.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    color: var(--color-text-dark);
}

.gallery-section {
    position: relative;
    padding: 50px 20px 60px 20px;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
    /* Important to clip the blur */
}

.gallery-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/fotos/album/01.webp'), url('../assets/fotos/album/20.webp'), url('../assets/fotos/album/41.webp');
    background-position: top center, center center, bottom center;
    background-size: 100% 40%;
    background-repeat: no-repeat;
    filter: blur(20px);
    transform: scale(1.1);
    /* Prevent white edges due to blur */
    z-index: 0;
    will-change: transform;
    transform: scale(1.1) translateZ(0);
}

.gallery-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 0;
}

.gallery-title,
.gallery-footer-text,
.gallery-grid {
    position: relative;
    z-index: 1;
}

.gallery-title {
    font-family: 'Nunito', sans-serif;
    font-weight: 400;
    font-size: 2.7em;
    color: var(--color-white);
    text-shadow: 0px 2px 5px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    margin-bottom: 10px;
}

.gallery-footer-text {
    font-family: 'Nunito', sans-serif;
    font-weight: 300;
    font-size: 1.0em;
    color: var(--color-white);
    text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.5);
    margin-top: 30px;
    margin-bottom: -30px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 50px;
    grid-auto-flow: dense;
    gap: 15px;
    max-width: 1100px;
    margin: 50px auto 0px;
}

/* === Gallery AOS Wrapper (grid child, owns AOS animation) === */
.gallery-aos-wrapper {
    width: 100%;
    height: 100%;
}

/* Vertical ~3:4 */
.gallery-aos-wrapper.vertical {
    grid-row: span 6;
    grid-column: span 1;
}

/* Horizontal ~4:3 */
.gallery-aos-wrapper.horizontal {
    grid-column: span 2;
    grid-row: span 4;
}

.gallery-aos-wrapper.span-2 {
    grid-column: span 2 !important;
}

/* Fill remaining space at the end */
.gallery-aos-wrapper:last-child {
    grid-column-end: -1;
}

/* === Gallery Item Container (interactive, no AOS conflict) === */
.gallery-item-container {
    position: relative;
    border-radius: 12px;
    box-shadow: 0 0px 10px rgba(0, 0, 0, 0.9);
    overflow: hidden;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
}

.gallery-item-container:hover {
    z-index: 2;
}

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

/* Overlay styles */
.photo-info {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: 90%;
    max-width: 280px;
    transform: translate3d(0, 20px, 0) perspective(1000px);
    background-color: rgba(255, 255, 255, 0.9);
    padding: 6px 14px;
    border-radius: 40px;
    box-shadow: var(--md-elevation-2);
    opacity: 0;
    transition: transform 500ms cubic-bezier(0.2, 0, 0, 1),
        opacity 500ms cubic-bezier(0.2, 0, 0, 1);
    pointer-events: none;
    white-space: normal;
    z-index: 3;
    text-align: center;
    box-sizing: border-box;
    backface-visibility: hidden;
    transform-style: preserve-3d;
    will-change: transform, opacity;
    contain: layout;
    filter: blur(0);
    outline: 1px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.photo-date {
    color: var(--color-text-dark);
    font-family: 'Nunito', sans-serif;
    font-size: clamp(0.7rem, 2vw, 0.85rem);
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Horizontal photos need narrower overlay to match vertical size */
.gallery-aos-wrapper.horizontal .photo-info,
.gallery-aos-wrapper.span-2 .photo-info {
    width: calc(50% - 20px);
}

/* Hover state (Desktop) */
@media (hover: hover) {
    .gallery-item-container:hover .photo-info {
        opacity: 1;
        transform: translate3d(0, 0, 0) perspective(1000px);
    }
}

/* Active state (Mobile/Click) */
.gallery-item-container.active .photo-info {
    opacity: 1;
    transform: translate3d(0, 0, 0) perspective(1000px);
}

/* Tap Hint Animation */
@media (max-width: 768px) {
    @keyframes tapGesture {
        0% {
            transform: scale(1);
            opacity: 0.9;
        }

        50% {
            transform: scale(0.85);
            opacity: 0.5;
        }

        100% {
            transform: scale(1);
            opacity: 0.9;
        }
    }

    @keyframes ripple {

        0%,
        45% {
            transform: scale(0.1);
            opacity: 0;
        }

        50% {
            transform: scale(0.1);
            opacity: 1;
        }

        100% {
            transform: scale(1.5);
            opacity: 0;
        }
    }

    .bridesmaids-section .court-content h2 {
        font-size: 3em;
    }

    .gallery-item-container.hint-animation::before {
        content: '';
        position: absolute;
        bottom: 37px;
        right: 24px;
        width: 30px;
        height: 30px;
        background: rgba(255, 255, 255, 0.7);
        border-radius: 50%;
        animation: ripple 1.5s infinite linear;
        z-index: 5;
        pointer-events: none;
        box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    }

    .gallery-item-container.hint-animation::after {
        content: '\f0a6';
        /* fa-hand-pointer */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        bottom: 15px;
        right: 15px;
        transform: none;
        font-size: 40px;
        color: rgba(255, 255, 255, 0.9);
        animation: tapGesture 1.5s infinite ease-in-out;
        pointer-events: none;
        z-index: 10;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
        filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.5));
    }
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 25px 20px;
    background-color: var(--color-green-light);
}

.footer-names {
    font-family: 'Calligraphy', sans-serif;
    font-size: clamp(1em, 15vw, 2.2em);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
    color: var(--color-text-dark);
    margin: 0;
}

.footer-svg {
    width: 45px;
    height: auto;
    opacity: 0.8;
}

.icon-left {
    transform: scaleX(-1);
}

.scroll-link {
    text-decoration: none;
    color: inherit;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    color: var(--color-white);
    font-size: 1.5em;
    cursor: pointer;
}

.scroll-indicator i {
    display: block;
    margin-top: -10px;
    animation: bounce 2s infinite;
}

.scroll-indicator i:nth-child(2) {
    animation-delay: 0.2s;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-6px);
    }

    60% {
        transform: translateY(-3px);
    }
}

#countdown-timer {
    position: fixed;
    top: 0;
    right: 0;
    background-color: rgba(30, 30, 30, 0.5);
    color: var(--color-white);
    padding: 10px 18px;
    border-radius: 0 0 0 24px;
    z-index: 1000;
    display: flex;
    gap: 12px;
    font-family: 'Nunito', sans-serif;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

#countdown-timer.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.countdown-block {
    text-align: center;
    line-height: 1.2;
}

.countdown-block span {
    display: block;
}

.countdown-block span:first-child {
    font-size: 1.2em;
    font-weight: 400;
}

.countdown-label {
    font-size: 0.7em;
    text-transform: uppercase;
    opacity: 0.8;
    font-weight: 300;
    letter-spacing: 0.5px;
}

.secondary-link,
.btn-court-bottom,
.form-modal-close-btn {
    -webkit-tap-highlight-color: transparent;
}

.block .secondary-link:active {
    background-color: var(--color-green-dark-legible);
    color: var(--color-white);
    box-shadow: var(--md-elevation-1);
    transform: scale(0.97);
}

.contributions-section .secondary-link:active {
    background-color: var(--color-text-dark);
    color: var(--color-white);
    box-shadow: var(--md-elevation-1);
    transform: scale(0.97);
}


/* --- MODAL Styles --- */
.form-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.form-modal-overlay.modal-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.form-modal-content {
    position: relative;
    background-color: transparent;
    width: 95%;
    height: 90%;
    border-radius: 28px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.form-modal-overlay.modal-visible .form-modal-content {
    transform: scale(1);
}

.form-modal-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    padding-bottom: 3px;
    z-index: 10;
    transition: background-color 0.2s;
}

.form-modal-close-btn:hover {
    background: rgba(0, 0, 0, 0.4);
}

.form-modal-iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    transition: background-color 0.1s, color 0.1s;
}

/* --- BLOCKING UNWANTED INTERACTIONS --- */
img {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    pointer-events: none;
}

a,
button,
.btn-court-bottom,
.secondary-link {
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
    user-select: none;
    -webkit-user-select: none;
}

@media (max-width: 768px) {
    .hero-section {
        height: 92vh;
    }

    .content {
        position: static;
    }

    .content h1:first-child {
        font-size: 4em;
    }

    .content h1:not(.hero-date) {
        font-size: clamp(2.5em, 12vw, 5em);
    }

    .hero-date {
        font-size: clamp(1.5em, 8vw, 5em);
    }

    .court-section {
        height: 40vh;
    }

    .names-grid,
    #groomsmen-list .names-grid {
        display: grid !important;
        grid-template-columns: 140px 140px !important;
        justify-content: center !important;
        justify-items: center;
        column-gap: 20px !important;
        row-gap: 30px !important;
        padding: 5px;
    }

    /* Person card adjustments for mobile */
    .person {
        width: 140px !important;
        height: 170px !important;
    }

    .person p {
        white-space: normal;
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .details-section {
        background-image: url('../assets/fotos/detalles_celu.webp');
        background-position: center;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 20px;
    }

    .vertical-spacer {
        display: none;
    }

    .info-blocks {
        flex-direction: column;
        gap: 20px;
    }

    .block {
        flex-basis: 100%;
        max-width: 90%;
        margin: 0 auto;
    }

    .schedule-title {
        font-size: 1.5em;
    }

    .timeline-container::after {
        left: 30px;
    }

    .timeline-item,
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        width: 100%;
        padding-left: 70px;
        padding-right: 15px;
        left: 0;
    }

    .timeline-time {
        font-size: clamp(0.7rem, 4.7vw, 2rem);
    }

    .timeline-event {
        font-size: clamp(0.7rem, 5vw, 2.1rem);
        font-weight: normal;
    }

    .timeline-content p {
        font-size: clamp(0.7rem, 4vw, 1.9rem);
        line-height: 1.5;
    }

    .gallery-section {
        padding-top: 30px;
        padding-bottom: 40px;
        background-image: none;
        /* Clear container background */
    }

    .gallery-section::before {
        background-image: url('../assets/fotos/album/01.webp'), url('../assets/fotos/album/10.webp'), url('../assets/fotos/album/20.webp'), url('../assets/fotos/album/30.webp'), url('../assets/fotos/album/35.webp'), url('../assets/fotos/album/41.webp');
        background-position: center 0%, center 20%, center 40%, center 60%, center 80%, center 100%;
        background-size: auto 30%;
        background-repeat: no-repeat;
        filter: blur(20px);
        /* Reset unused properties */
        background-color: transparent;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .gallery-title {
        font-size: 1.8em;
    }

    .gallery-footer-text {
        margin-bottom: -10px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: auto;
        gap: 10px;
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .gallery-item {
        width: 100%;
        height: 100%;
        max-width: none;
        margin: 0;
        aspect-ratio: auto !important;
    }

    .gallery-aos-wrapper.horizontal {
        grid-column: span 2;
        grid-row: auto;
        aspect-ratio: 4/3;
    }

    .gallery-aos-wrapper.vertical {
        grid-row: auto;
        grid-column: span 1;
        aspect-ratio: 3/4;
    }

    .gallery-item:last-child:nth-child(odd) {
        grid-column: span 2;
    }

    .footer-names {
        font-size: clamp(1em, 8vw, 2.2em);
    }

    .footer-svg {
        width: clamp(25px, 8vw, 45px);
    }

    #countdown-timer {
        top: 0;
        right: 0;
        gap: 8px;
        padding: 8px 12px;
        border-radius: 0 0 0 24px;
    }

    .countdown-block span:first-child {
        font-size: 1.2em;
        font-weight: 400;
    }

    .countdown-label {
        font-size: 0.7em;
        font-weight: 300;
        letter-spacing: 0.5px;
    }

    .form-modal-content {
        width: 92%;
        height: 95%;
    }

    .form-modal-close-btn {
        padding-bottom: 0px;
    }

    .photo-date {
        font-size: 10px !important;
    }

    .photo-date .js-format-date {
        white-space: nowrap;
    }
}