:root {
    /* Color Palette */
    --clr-primary: #8AB4F8;
    /* Sky Blue */
    --clr-primary-light: #D4E4FC;
    --clr-accent: #E8F0FE;
    --clr-bg: #F4F7FB;
    --clr-text: #203A43;
    /* Navy Blue Text */
    --clr-silver: #B0BEC5;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
    --font-script: 'Great Vibes', cursive;

    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--clr-text);
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, var(--clr-primary-light), transparent 60%);
    opacity: 0.6;
    animation: gradientShift 20s ease-in-out infinite alternate;
    z-index: -2;
}

@keyframes gradientShift {
    0% {
        transform: translate(-25%, -25%);
    }

    100% {
        transform: translate(0, 0);
    }
}

/* Glassmorphism Utilities */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
    color: var(--clr-text);
    position: relative;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-section .glass-panel {
    padding: 50px 80px;
    animation: fadeIn 2s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pre-title {
    font-weight: 300;
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.main-title {
    font-family: var(--font-heading);
    font-size: 5rem;
    color: var(--clr-primary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
    margin: 10px 0;
}

.name {
    font-family: var(--font-script);
    font-size: 4rem;
    color: var(--clr-text);
    margin-bottom: 20px;
}

.date-hero {
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 2s infinite;
}

.scroll-indicator span {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

@keyframes bounce {

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

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

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

/* Countdown Section */
.countdown-section {
    background: linear-gradient(to bottom, transparent, var(--clr-accent), transparent);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.time-box {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid white;
    border-radius: 15px;
    padding: 20px;
    min-width: 120px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.time-box:hover {
    transform: translateY(-5px);
}

.time-box span {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    color: var(--clr-primary);
    display: block;
}

.countdown-finished-msg {
    display: block;
    font-family: var(--font-script);
    font-size: 4.5rem;
    color: var(--clr-text);
    margin-top: 50px;
    position: relative;
    text-align: center;
    width: 100%;
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.countdown-text-inner {
    position: relative;
    display: inline-block;
    padding: 0 10px;
}

.countdown-finished-msg-underline {
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    background: var(--clr-primary);
    z-index: -1;
    border-radius: 5px;
    opacity: 0.6;
}

@keyframes popIn {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Family Section */
.family-section {
    position: relative;
}

.family-content,
.gifts-content,
.rsvp-content,
.upload-content {
    text-align: center;
    padding: 50px 30px;
}

.family-message {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--clr-text);
}

.family-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.family-card {
    background: rgba(255, 255, 255, 0.55);
    padding: 35px 30px;
    border-radius: 20px;
    border: 1.5px solid var(--clr-primary-light);
    /* Soft theme blue border */
    min-width: 280px;
    flex: 1;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(138, 180, 248, 0.06);
    /* Soft blue tint shadow */
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.family-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(to right, var(--clr-primary), var(--clr-primary-light), var(--clr-primary));
    /* Blue top bar decoration */
}

.family-card:hover {
    transform: translateY(-8px);
    border-color: var(--clr-primary);
    box-shadow: 0 15px 35px rgba(138, 180, 248, 0.25);
}

.family-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    color: var(--clr-primary);
    /* Primary blue */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 1.5px solid var(--clr-primary-light);
    /* Blue divider line */
    display: inline-block;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
}

.family-names {
    font-family: var(--font-script);
    /* Cursive script font 'Great Vibes' matching Sofia Ruiz */
    font-size: 2.3rem;
    /* Script fonts are smaller, 2.3rem is very readable and elegant */
    font-weight: bold;
    line-height: 1.2;
    color: var(--clr-text);
    margin-top: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.animate-heart i {
    animation: pulseHeart 2s infinite ease-in-out;
    display: inline-block;
}

@keyframes pulseHeart {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
        color: #ff6b81;
    }
}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.location-card {
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.location-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(138, 180, 248, 0.2);
}

.icon-large {
    font-size: 4rem;
    color: var(--clr-primary);
    margin-bottom: 20px;
}

.location-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.location-card p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.map-container {
    margin: 20px 0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--clr-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(138, 180, 248, 0.4);
}

.btn-primary:hover {
    background: #6b9df2;
    /* Darker blue */
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(138, 180, 248, 0.6);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--clr-primary);
    color: var(--clr-primary);
}

.btn-outline:hover {
    background: var(--clr-primary);
    color: white;
}

/* Gallery Section */
.carousel-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: 15px;
    max-width: 800px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.2);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 70vh;
    min-height: 450px;
    max-height: 750px;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover; /* Cambiado a cover para llenar toda el área asignada */
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.1);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(5px);
    transition: background 0.3s;
}

.carousel-btn:hover {
    background: white;
}

.carousel-btn.prev {
    left: 20px;
}

.carousel-btn.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Dress Code Section */
.dresscode-content {
    text-align: center;
    padding: 50px;
}

.icon-wrap {
    background: var(--clr-primary-light);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.dress-type {
    font-size: 2rem;
    font-family: var(--font-heading);
    margin-bottom: 10px;
}

.color-palette {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 15px;
}

.colors {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 15px 0;
}

.color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: help;
    transition: transform 0.2s;
    position: relative;
    /* Absolutely position tooltip relative to this */
}

.color-swatch:hover {
    transform: scale(1.1);
}

/* Tooltip overlay styling */
.outfit-tooltip {
    position: absolute;
    bottom: 55px;
    /* Appears above the swatch */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 200px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s;
    z-index: 999;
    text-align: center;
    pointer-events: none;
    /* Avoid blocking other hovers */
}

.outfit-tooltip img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 5px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.outfit-tooltip span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--clr-text);
    display: block;
}

.color-swatch:hover .outfit-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@media (max-width: 576px) {
    .outfit-tooltip {
        width: 150px;
        bottom: 50px;
    }
}



.note {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
    color: var(--clr-text);
    background: rgba(255, 255, 255, 0.5);
    padding: 12px 18px;
    border-left: 4px solid #33bbff;
    /* Visual link to the reserved color */
    border-radius: 4px;
    display: inline-block;
    max-width: 700px;
    text-align: left;
}

/* Gifts Section */
.gift-options {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 30px;
}

.gift-card {
    background: rgba(255, 255, 255, 0.6);
    border-radius: 15px;
    text-align: center;
    flex: 1;
    max-width: 280px;
    min-height: 200px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.gift-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(138, 180, 248, 0.15);
}

.gift-card-main {
    padding: 30px 20px;
    width: 100%;
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.gift-card-main i {
    font-size: 3rem;
    color: var(--clr-primary);
    margin-bottom: 12px;
}

.gift-card-main p {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.gift-card-main small {
    color: #555;
    font-size: 0.9rem;
}

.gift-card-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 2;
}

.gift-card-hover h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--clr-primary);
    margin-bottom: 8px;
    font-weight: 600;
}

.gift-card-hover p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--clr-text);
    text-align: center;
}

.gift-details {
    width: 100%;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding-left: 10px;
}

.gift-details p {
    font-size: 0.85rem;
    line-height: 1.3;
    color: var(--clr-text);
    text-align: left;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-card:hover .gift-card-main {
    opacity: 0;
    transform: translateY(-20px);
}

.gift-card:hover .gift-card-hover {
    opacity: 1;
    transform: translateY(0);
}

/* Photo Upload Section */
.upload-area {
    border: 2px dashed var(--clr-primary);
    border-radius: 20px;
    padding: 50px 20px;
    text-align: center;
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.3);
    transition: background 0.3s ease;
    cursor: pointer;
}

.upload-area:hover,
.upload-area.dragover {
    background: rgba(138, 180, 248, 0.1);
}

.upload-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.preview-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
}

.preview-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: fadeIn 0.5s ease;
}

.upload-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #4caf50;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 0.9rem;
    z-index: 10;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Butterflies Container */
#butterfly-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
    perspective: 1000px;
}

.butterfly-wrapper {
    position: absolute;
    animation: fly linear forwards;
    transform-style: preserve-3d;
}

.butterfly-rotator {
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.butterfly-3d {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(20deg);
}

.wing {
    position: absolute;
    width: 50%;
    height: 100%;
    top: 0;
    background-size: 100% 100%;
    background-repeat: no-repeat;
}

.wing.left {
    left: 0;
    transform-origin: right center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 100"><defs><linearGradient id="gl" x1="100%" y1="0%" x2="0%" y2="100%"><stop offset="0%" stop-color="%23D4E4FC"/><stop offset="30%" stop-color="%238AB4F8"/><stop offset="80%" stop-color="%23203A43"/><stop offset="100%" stop-color="%23111"/></linearGradient></defs><path d="M 50 30 C 40 5, 15 -5, 2 15 C -5 30, 2 45, 12 55 C 30 65, 45 55, 50 30 Z" fill="url(%23gl)" stroke="%23111" stroke-width="1.5"/><path d="M 50 35 C 45 55, 30 65, 15 75 C 5 85, 10 95, 25 98 C 40 100, 55 85, 50 35 Z" fill="url(%23gl)" stroke="%23111" stroke-width="1.5"/><path d="M 50 30 Q 25 20 5 25 M 50 30 Q 20 35 10 45 M 50 35 Q 30 65 20 75" stroke="%23111" stroke-width="0.8" fill="none" opacity="0.6"/><circle cx="7" cy="20" r="1.5" fill="%23fff" /><circle cx="5" cy="28" r="1" fill="%23fff" /><circle cx="22" cy="92" r="1" fill="%23fff" /><circle cx="32" cy="94" r="1.5" fill="%23fff" /></svg>');
    animation: flap-l 0.25s ease-in-out infinite alternate;
}

.wing.right {
    right: 0;
    transform-origin: left center;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 100"><defs><linearGradient id="gr" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="%23D4E4FC"/><stop offset="30%" stop-color="%238AB4F8"/><stop offset="80%" stop-color="%23203A43"/><stop offset="100%" stop-color="%23111"/></linearGradient></defs><path d="M 0 30 C 10 5, 35 -5, 48 15 C 55 30, 48 45, 38 55 C 20 65, 5 55, 0 30 Z" fill="url(%23gr)" stroke="%23111" stroke-width="1.5"/><path d="M 0 35 C 5 55, 20 65, 35 75 C 45 85, 40 95, 25 98 C 10 100, -5 85, 0 35 Z" fill="url(%23gr)" stroke="%23111" stroke-width="1.5"/><path d="M 0 30 Q 25 20 45 25 M 0 30 Q 30 35 40 45 M 0 35 Q 20 65 30 75" stroke="%23111" stroke-width="0.8" fill="none" opacity="0.6"/><circle cx="43" cy="20" r="1.5" fill="%23fff" /><circle cx="45" cy="28" r="1" fill="%23fff" /><circle cx="28" cy="92" r="1" fill="%23fff" /><circle cx="18" cy="94" r="1.5" fill="%23fff" /></svg>');
    animation: flap-r 0.25s ease-in-out infinite alternate;
}

.butterfly-body {
    position: absolute;
    top: 30%;
    left: 48%;
    width: 4%;
    height: 40%;
    background: linear-gradient(to right, #111, #333, #111);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
}

.butterfly-antennae {
    position: absolute;
    top: 10%;
    left: 45%;
    width: 10%;
    height: 20%;
}

.butterfly-antennae::before,
.butterfly-antennae::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 1px;
    height: 100%;
    background: #111;
}

.butterfly-antennae::before {
    left: 20%;
    transform: rotate(-25deg);
    transform-origin: bottom;
}

.butterfly-antennae::after {
    right: 20%;
    transform: rotate(25deg);
    transform-origin: bottom;
}

@keyframes flap-l {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-65deg);
    }
}

@keyframes flap-r {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(65deg);
    }
}

@keyframes fly {
    from {
        transform: translate(0, 0);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    to {
        transform: translate(var(--tx), var(--ty));
        opacity: 0;
    }
}

footer {
    text-align: center;
    padding: 30px;
    background: var(--clr-primary-light);
    color: var(--clr-text);
    font-weight: 600;
}

/* Responsiveness */
@media (max-width: 768px) {
    .main-title {
        font-size: 3.5rem;
    }

    .name {
        font-size: 2.5rem;
    }

    .hero-section .glass-panel {
        padding: 30px;
        width: 90%;
    }

    .gift-options {
        flex-direction: column;
        align-items: center;
    }

    .gift-card {
        max-width: 360px;
        /* Expand card width on tablet/mobile */
        width: 100%;
        min-height: 240px;
        /* Increased to prevent text cut-off */
    }

    .gift-card-hover {
        padding: 15px;
    }

    .gift-card-hover p {
        font-size: 0.85rem;
        line-height: 1.45;
    }

    .carousel-track {
        height: 300px;
    }
}

/* Taller cards and smaller text on very narrow screens (vertical format) */
@media (max-width: 380px) {
    .gift-card {
        min-height: 275px;
    }

    .gift-card-hover h4 {
        font-size: 1.05rem;
        margin-bottom: 6px;
    }

    .gift-details {
        gap: 6px;
        padding-left: 5px;
    }

    .gift-details p {
        font-size: 0.78rem;
        line-height: 1.25;
        gap: 6px;
    }
}

/* Audio Player Controls */
.audio-controls {
    position: fixed;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 9999;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 10px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.audio-btn {
    background: transparent;
    border: none;
    color: var(--clr-text);
    font-size: 2rem;
    cursor: pointer;
    transition: 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.6;
}

.audio-btn:hover {
    color: var(--clr-primary);
    transform: scale(1.1);
    opacity: 1;
}

.audio-btn.active {
    color: var(--clr-primary);
    opacity: 1;
}

.audio-hint {
    position: absolute;
    left: 100%;
    top: 8px;
    /* Slightly adjusted to align with bold text */
    margin-left: 10px;
    display: flex;
    align-items: center;
    color: var(--clr-primary);
    font-size: 1.1rem;
    font-family: var(--font-heading), sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    animation: bounceLeft 1.5s infinite;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.audio-hint span {
    margin-left: 5px;
}

.audio-hint.hidden {
    opacity: 0;
    transform: translateX(20px);
    visibility: hidden;
}

@keyframes bounceLeft {

    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(10px);
    }
}

/* RSVP Section Form */
.rsvp-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--clr-text);
    /* Texto oscuro (negro) en armonia con el diseño */
    font-family: var(--font-heading);
}

.form-group input,
.form-group select {
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.1);
    color: var(--clr-text);
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: all 0.3s ease;
}

.form-group input::placeholder {
    color: #777777;
    /* Gris tenue sugerido para legibilidad */
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.2);
}

.form-group select option {
    color: #111;
}

#rsvp-success {
    margin-top: 30px;
    color: var(--clr-text);
    /* Texto oscuro (negro) en armonia con el diseño */
    animation: popIn 0.5s forwards;
    text-align: center;
}

#rsvp-success h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 10px;
}

#rsvp-success p {
    font-size: 1.2rem;
}

.hidden-message {
    display: none !important;
}

/* Rabbit Background Glassmorphism Styling */
.upload-content {
    position: relative;
    overflow: hidden;
    /* Clips the rabbit inside the card */
}

.upload-content>h2,
.upload-content>p,
.upload-content>.upload-area,
.upload-content>.upload-preview {
    position: relative;
    z-index: 2;
    /* Ensures the form contents sit on top of the rabbit background */
}

.rabbit-background {
    position: absolute;
    left: 2%;
    /* Positioned on the left side of the card background */
    top: 0;
    height: 100%;
    /* Adapts to the card (div) height */
    width: auto;
    z-index: 1;
    /* Renders in front of the card background, but behind the text/buttons */
    pointer-events: none;
    opacity: 0.35;
    /* Blends nicely with the glassmorphism card */
    display: flex;
    align-items: center;
    transition: all 0.5s ease;
}

.rabbit-bg-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    animation: rabbitBgSniff 6s ease-in-out infinite alternate;
    /* Sniff animation placed on the img, freeing the container transform */
}

@keyframes rabbitBgSniff {
    0% {
        transform: rotate(0deg) scale(1) translateX(0);
    }

    50% {
        /* Subtle sniff movement in place */
        transform: rotate(1deg) scale(1.03) translateX(5px);
    }

    100% {
        transform: rotate(-1deg) scale(0.97) translateX(-2px);
    }
}

/* Centered watermark positioning for mobile screens */
@media (max-width: 768px) {
    .rabbit-background {
        opacity: 0.35;
        /* Lower opacity since it is centered under text */
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        height: 450px;
        /* Smaller size to keep it premium and avoid bleeding out */
    }
}

@media (max-width: 480px) {
    .rabbit-background {
        opacity: 0.35;
        /* Very faint watermark for extremely vertical mobile viewports */
        height: 300px;
        /* Made even smaller to prevent overlaying critical text */
    }
}

/* Login Screen (Pantalla de Acceso) */
.login-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(244, 247, 251, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 999999;
    /* Higher than everything else */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s;
    opacity: 1;
    visibility: visible;
}

.login-screen.hidden-message {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.login-card {
    max-width: 420px;
    width: 90%;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.45);
    box-shadow: 0 15px 35px rgba(31, 38, 135, 0.1);
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: loginCardPopIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes loginCardPopIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(30px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-icon-wrap {
    background: var(--clr-primary-light);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    animation: rotateIcon 4s infinite linear;
}

.login-icon-wrap i {
    font-size: 2.5rem;
    color: var(--clr-primary);
}

@keyframes rotateIcon {

    0%,
    100% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(15deg);
    }
}

.login-card h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--clr-text);
}

.login-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 25px;
}

.login-card input[type="text"] {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.8);
    color: var(--clr-text);
    font-size: 1.1rem;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.login-card input[type="text"]:focus {
    outline: none;
    border-color: var(--clr-primary);
    background: white;
    box-shadow: 0 0 10px rgba(138, 180, 248, 0.4);
}

.login-card button {
    width: 100%;
    margin-top: 15px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
}

.login-error-msg {
    color: #d93025;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 15px;
    background: rgba(217, 48, 37, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    animation: shakeError 0.4s ease;
}

@keyframes shakeError {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-8px);
    }

    75% {
        transform: translateX(8px);
    }
}

/* Welcome Section (Personalized Message) */
.welcome-section {
    padding: 60px 0;
    margin-top: -20px;
    /* Pull it slightly closer to the hero */
}

.welcome-content {
    padding: 50px 40px;
    background: var(--glass-bg);
}

.welcome-message-box {
    margin-top: 25px;
}

.welcome-guest-name {
    font-family: var(--font-script);
    font-size: 3.5rem;
    color: var(--clr-primary);
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.01);
}

.welcome-text-emotive {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.8;
    color: var(--clr-text);
    max-width: 750px;
    margin: 0 auto 20px;
}

.welcome-passes-info {
    font-size: 1.05rem;
    color: #555;
    background: rgba(255, 255, 255, 0.5);
    padding: 10px 20px;
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.8);
    margin-top: 10px;
}

.welcome-passes-info strong {
    color: var(--clr-primary);
    font-size: 1.15rem;
}