/* ========================================
   CSS Variables & Reset
   ======================================== */
:root {
    --primary-color: #2b6cb0;
    --accent-color: #ed8936;
    --text-color: #1a202c;
    --text-light: #4a5568;
    --bg-color: #ffffff;
    --bg-light: #f7fafc;
    --border-color: #e2e8f0;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --font-primary: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
    --max-width: 1200px;
    --spacing: 1rem;
    --transition: all 0.3s ease;
}

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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
    position: relative;
    width: 100%;
    max-width: 100vw;
    padding-top: 70px; /* Espacio para el header fijo */
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
    padding-top: 70px; /* Mantener espacio para el header fijo */
}

html {
    overflow-x: hidden;
    max-width: 100vw;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

/* ========================================
   Utility Classes
   ======================================== */
main {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

section {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing);
    width: 100%;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 8px;
    transition: var(--transition);
    text-align: center;
    cursor: pointer;
    width: 100%;
    max-width: fit-content;
}

@media (max-width: 640px) {
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        width: 100%;
        max-width: 100%;
    }
}

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

.btn-primary:hover {
    background-color: #2c5282;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    width: 100%;
    max-width: 100vw;
    will-change: transform;
    transform: translateZ(0);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem var(--spacing);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    height: 50px;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-logo:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

@media (max-width: 640px) {
    .nav-logo {
        height: 40px;
    }
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.5rem;
    z-index: 1002;
    position: relative;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background-color: var(--text-color);
    transition: var(--transition);
    border-radius: 3px;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav {
        /* Asegurar que el nav siempre sea visible y siga al usuario */
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: auto;
    }
    
    .nav-container {
        justify-content: space-between;
    }
    
    .nav-toggle {
        display: flex;
        /* Asegurar que el botón siempre sea visible */
        position: relative;
        z-index: 1002;
        touch-action: manipulation;
        order: 2; /* Mover el toggle a la derecha */
    }
    
    .nav-logo {
        order: 1; /* Mantener el logo a la izquierda */
    }
    
    .nav-menu {
        order: 3; /* El menú se muestra como overlay */
        position: fixed;
        top: 0;
        right: 0;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        height: 100dvh; /* Para móviles modernos */
        background-color: white;
        flex-direction: column;
        padding: 5rem 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 1001;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Menu Overlay/Backdrop */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh; /* Para móviles modernos */
        background-color: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 999;
        backdrop-filter: blur(2px);
    }
    
    .nav-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: -70px; /* Compensar el padding-top del body */
    padding-top: 70px; /* Mantener el contenido centrado */
}

@media (max-width: 640px) {
    .hero {
        min-height: 500px;
        height: 100svh; /* Safari iOS viewport height fix */
        margin-top: -70px; /* Compensar el padding-top del body */
        padding-top: 70px;
    }
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-carousel img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-carousel img.active {
    opacity: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.5));
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    animation: fadeInUp 1s ease-out;
}

@media (max-width: 640px) {
    .hero-content {
        padding: 1.5rem;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: 1.5rem;
    font-weight: 300;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-text {
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}

.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: white;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ========================================
   Gallery Section
   ======================================== */
.gallery-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

@media (max-width: 640px) {
    .gallery-section {
        padding: 3rem 0;
    }
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow);
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (min-width: 641px) and (max-width: 1023px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* WedShots Call-to-Action in Gallery */
.wedshots-cta {
    margin-top: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.wedshots-cta:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .wedshots-cta {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 2rem;
        gap: 1.5rem;
    }
}

@media (max-width: 640px) {
    .wedshots-cta {
        margin-top: 2rem;
        padding: 2rem 1.5rem;
    }
}

.wedshots-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.wedshots-icon svg {
    width: 48px;
    height: 48px;
}

@media (max-width: 640px) {
    .wedshots-icon {
        width: 70px;
        height: 70px;
    }
    
    .wedshots-icon svg {
        width: 40px;
        height: 40px;
    }
}

.wedshots-content {
    flex: 1;
    color: white;
}

.wedshots-content h3 {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

@media (max-width: 640px) {
    .wedshots-content h3 {
        font-size: 1.75rem;
    }
}

.wedshots-content p {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .wedshots-content p {
        font-size: 1rem;
    }
}

.wedshots-code-container {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    margin-right: 1rem;
}

@media (max-width: 768px) {
    .wedshots-code-container {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
}

.wedshots-code-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.wedshots-code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    user-select: all;
    letter-spacing: 1px;
}

.wedshots-code:hover {
    background-color: white;
    transform: scale(1.05);
}

.wedshots-code:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .wedshots-code {
        font-size: 1.1rem;
        padding: 0.5rem 1rem;
    }
}

.wedshots-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: white;
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.125rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.wedshots-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    background-color: #ffffff;
}

.wedshots-button:active {
    transform: translateY(0);
}

.wedshots-button svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 640px) {
    .wedshots-button {
        padding: 0.875rem 2rem;
        font-size: 1rem;
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   RSVP Section
   ======================================== */
.rsvp-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

@media (max-width: 640px) {
    .rsvp-section {
        padding: 3rem 0;
    }
}

.rsvp-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .rsvp-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.rsvp-card {
    background-color: var(--bg-light);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.rsvp-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.rsvp-icon {
    width: 64px;
    height: 64px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.rsvp-icon svg {
    width: 32px;
    height: 32px;
    stroke: white;
}

.rsvp-card h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.rsvp-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.rsvp-card .btn {
    background-color: var(--primary-color);
    color: white;
    width: 100%;
    max-width: 100%;
}

.rsvp-card .btn:hover {
    background-color: var(--accent-color);
    transform: scale(1.05);
}

.rsvp-card .btn svg {
    width: 20px;
    height: 20px;
}

.album-code-container {
    margin: 1.5rem 0;
    text-align: center;
}

.album-code-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.album-code {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    background: linear-gradient(135deg, var(--bg-light) 0%, #ffffff 100%);
    padding: 1rem 2rem;
    border-radius: 12px;
    border: 2px dashed var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    user-select: all;
    letter-spacing: 2px;
}

.album-code:hover {
    background: linear-gradient(135deg, #ffffff 0%, var(--bg-light) 100%);
    border-color: var(--accent-color);
    color: var(--accent-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.album-code:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .album-code {
        font-size: 1.25rem;
        padding: 0.875rem 1.5rem;
        letter-spacing: 1px;
    }
}

/* ========================================
   Menu Section
   ======================================== */
.menu-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

@media (max-width: 640px) {
    .menu-section {
        padding: 3rem 0;
    }
}

.menu-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 12px;
}

.menu-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.menu-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

.menu-courses {
    display: grid;
    gap: 3rem;
}

.menu-course {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

@media (max-width: 640px) {
    .menu-course {
        padding: 1.5rem;
    }
}

.menu-course-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .menu-course-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

.menu-items {
    display: grid;
    gap: 1rem;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    transition: var(--transition);
}

.menu-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

@media (max-width: 768px) {
    .menu-item:hover {
        transform: none;
    }
}

.menu-item-name {
    font-weight: 600;
    flex-grow: 1;
}

.menu-item-tags {
    display: flex;
    gap: 0.5rem;
}

.menu-item .menu-tag {
    width: 28px;
    height: 28px;
    font-size: 0.7rem;
}

@media (min-width: 641px) {
    .menu-courses {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .menu-courses {
        gap: 2rem;
    }
}

/* ========================================
   Location Section
   ======================================== */
.location-section {
    padding: 5rem 0;
    background-color: var(--bg-light);
}

@media (max-width: 640px) {
    .location-section {
        padding: 3rem 0;
    }
}

.location-content {
    display: grid;
    gap: 2rem;
}

.location-info {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

@media (max-width: 640px) {
    .location-info {
        padding: 1.5rem;
    }
}

.location-address {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

@media (max-width: 640px) {
    .location-address {
        font-size: 1.1rem;
    }
}

.location-address strong {
    display: block;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

@media (max-width: 640px) {
    .location-address strong {
        font-size: 1.25rem;
    }
}

.location-actions {
    margin-bottom: 1.5rem;
}

.location-notes {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.location-map {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    min-height: 400px;
}

@media (max-width: 640px) {
    .location-map {
        min-height: 300px;
    }
}

.location-map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

@media (max-width: 640px) {
    .location-map iframe {
        min-height: 300px;
    }
}

@media (min-width: 641px) {
    .location-content {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

@media (max-width: 640px) {
    .location-content {
        gap: 1.5rem;
    }
}

/* ========================================
   Gifts Section
   ======================================== */
.gifts-section {
    padding: 5rem 0;
    background-color: var(--bg-color);
}

@media (max-width: 640px) {
    .gifts-section {
        padding: 3rem 0;
    }
}

.gifts-intro {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gifts-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

@media (max-width: 640px) {
    .gifts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.gift-card {
    background-color: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (max-width: 640px) {
    .gift-card {
        padding: 1.5rem;
    }
}

.gift-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .gift-card:hover {
        transform: none;
    }
}

.gift-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--primary-color);
}

@media (max-width: 640px) {
    .gift-title {
        font-size: 1.35rem;
    }
}

.gift-desc {
    color: var(--text-light);
    flex-grow: 1;
}

.gift-price {
    font-weight: 700;
    color: var(--accent-color);
    font-size: 1.125rem;
}

.gift-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.gift-link:hover {
    color: var(--accent-color);
}

/* Bank Account Card */
.bank-account-card {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .bank-account-card {
        padding: 2rem 1.5rem;
    }
}

.bank-account-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bank-account-title svg {
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .bank-account-title {
        font-size: 1.5rem;
    }
}

.bank-account-desc {
    font-size: 1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.bank-info-group {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .bank-info-group {
        padding: 0.875rem 1.25rem;
    }
}

.bank-info-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

.bank-info-text {
    font-size: 1.125rem;
    font-weight: 500;
}

@media (max-width: 640px) {
    .bank-info-text {
        font-size: 1rem;
    }
}

.bank-iban {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.25rem;
    font-weight: 700;
    background-color: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    user-select: all;
    letter-spacing: 1px;
    text-align: center;
    word-break: break-all;
}

.bank-iban:hover {
    background-color: white;
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bank-iban:active {
    transform: scale(0.98);
}

@media (max-width: 640px) {
    .bank-iban {
        font-size: 1rem;
        padding: 0.875rem 1rem;
        letter-spacing: 0.5px;
    }
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background-color: var(--text-color);
    color: white;
    padding: 3rem 0 2rem;
}

@media (max-width: 640px) {
    .footer {
        padding: 2rem 0 1.5rem;
    }
}

.footer-content {
    text-align: center;
}

.footer-event {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
}

.footer-social a {
    transition: var(--transition);
}

.footer-social a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ========================================
   Lightbox
   ======================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

/* Contenedor de la imagen */
.lightbox-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 60px;
    pointer-events: none;
}

.lightbox-content img {
    pointer-events: auto;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2001;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.1);
}

.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    margin: auto;
    display: block;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    z-index: 2001;
}

/* Mobile Optimization */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 80px 15px 70px;
        align-items: center;
        justify-content: center;
    }
    
    .lightbox-img {
        max-width: calc(100vw - 30px);
        max-height: calc(100vh - 150px);
        width: auto;
        height: auto;
        object-fit: contain;
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 44px;
        height: 44px;
    }

    .lightbox-prev {
        left: 5px;
        width: 44px;
        height: 44px;
    }

    .lightbox-next {
        right: 5px;
        width: 44px;
        height: 44px;
    }
    
    .lightbox-counter {
        bottom: 10px;
        font-size: 0.8rem;
        padding: 0.375rem 0.75rem;
    }
}

/* ========================================
   Touch & Mobile Optimizations
   ======================================== */
@media (hover: none) and (pointer: coarse) {
    /* Disable hover effects on touch devices */
    .gallery-item:hover img {
        transform: scale(1);
    }
    
    .gallery-item:hover::after {
        opacity: 0;
    }
}

/* Improve touch target sizes */
@media (max-width: 768px) {
    button,
    a,
    .nav-link,
    .gallery-item {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Extra small mobile devices */
@media (max-width: 390px) {
    .lightbox-content {
        padding: 70px 10px 60px;
    }
    
    .lightbox-img {
        max-width: calc(100vw - 20px);
        max-height: calc(100vh - 130px);
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-close {
        top: 8px;
        right: 8px;
    }
    
    .lightbox-prev {
        left: 3px;
    }
    
    .lightbox-next {
        right: 3px;
    }
}

/* ========================================
   Accessibility
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ========================================
   Loading State
   ======================================== */
.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   Landscape Mode (Mobile)
   ======================================== */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        margin-top: -70px;
        padding-top: 70px;
    }
    
    .hero-content {
        padding: 1rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 3.5rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
        margin-bottom: 0.5rem;
    }
    
    .hero-text {
        font-size: clamp(0.875rem, 1.75vw, 1rem);
    }
    
    .scroll-down {
        bottom: 1rem;
    }
    
    /* Lightbox en landscape móvil */
    .lightbox-content {
        padding: 60px 15px 55px;
    }
    
    .lightbox-img {
        max-width: calc(100vw - 100px);
        max-height: calc(100vh - 115px);
    }
    
    .lightbox-close {
        top: 8px;
        right: 8px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-counter {
        bottom: 8px;
    }
}

/* ========================================
   Tablet Specific (Portrait)
   ======================================== */
@media (min-width: 641px) and (max-width: 1023px) and (orientation: portrait) {
    .section-title {
        font-size: clamp(2.25rem, 4vw, 2.75rem);
    }
    
    .container {
        padding: 0 2rem;
    }
}

/* ========================================
   Tablet Specific (Landscape)
   ======================================== */
@media (min-width: 641px) and (max-width: 1023px) and (orientation: landscape) {
    .hero {
        min-height: 500px;
        margin-top: -70px;
        padding-top: 70px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

