/* Wedding Website CSS - Julen eta Maialen */
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2c3e50;
    background-color: #ffffff;
    overflow-x: hidden;
    padding-bottom: 4rem;
    margin: 0;
    width: 100%;
    /* Margen inferior para evitar superposición con controles de Safari iOS */
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 300;
    line-height: 1.2;
}

/* Accessibility improvements */
*:focus {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

/* Skip to content link for screen readers */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3498db;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
}

.skip-link:focus {
    top: 6px;
}

/* Navigation Menu Styles */
.main-nav {
    background: transparent;
    padding: 1.5rem 2rem 0;
    position: relative;
}

.nav-list {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.1rem;
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #495057;
}

.nav-link.active {
    color: #2c3e50;
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 1px;
    background: #6c757d;
}

@media (max-width: 768px) {
    .main-nav {
        padding: 1rem 1rem 0;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0.75rem 1rem;
        /* Área de toque mínima 44x44px para accesibilidad */
        min-height: 44px;
        min-width: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Header Component Styles */
.header {
    background: transparent;
    text-align: center;
    padding: 3rem 2rem 0rem;
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    display: block;
}

.couple-names {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 400;
    color: #2c3e50;
    margin: 0 auto 1rem;
    letter-spacing: 2px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    text-align: center;
    width: 100%;
}

.wedding-date {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #6c757d;
    font-weight: 400;
    letter-spacing: 4px;
    margin: 0 auto 1.5rem;
    text-align: center;
    width: 100%;
}

/* Wedding details styles */
.wedding-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
}

.wedding-time {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: #6c757d;
    font-weight: 400;
    letter-spacing: 2px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.wedding-location {
    display: flex;
    justify-content: center;
}

.location-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    background: rgba(108, 117, 125, 0.05);
    border: 1px solid rgba(108, 117, 125, 0.2);
}

.location-link:hover {
    color: #495057;
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.2);
}

.location-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.location-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    font-weight: 400;
    letter-spacing: 1px;
}

/* Responsive adjustments for header */
@media (max-width: 768px) {
    .header {
        padding: 3rem 1rem;
    }

    .couple-names {
        letter-spacing: 1px;
    }

    .wedding-date {
        letter-spacing: 2px;
        margin-bottom: 1.5rem;
    }

    .wedding-details {
        gap: 0.75rem;
    }

    .location-link {
        padding: 0.75rem 1rem;
        flex-direction: row;
        text-align: center;
        gap: 0.5rem;
        justify-content: center;
    }

    .location-icon {
        width: 18px;
        height: 18px;
    }
}

/* Countdown styles */
.countdown-container {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    text-align: center;
    flex-wrap: wrap;
}

.countdown-container .countdown-number {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.35rem;
    align-items: center;
    justify-content: center;
}

.countdown-digit {
    width: 2.8rem;
    height: 3.2rem;
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.8rem;
    font-weight: 600;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    position: relative;
    transition: transform 0.3s ease;
}

.countdown-digit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.countdown-label {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
}

.countdown-special {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    color: #6c757d;
    font-weight: 400;
}

@media (max-width: 768px) {
    .countdown-container {
        margin-top: 1rem;
        gap: 0.5rem;
    }
    
    .countdown-container .countdown-number {
        gap: 0.25rem;
    }
    
    .countdown-digit {
        width: 2.2rem;
        height: 2.6rem;
        font-size: 1.4rem;
        border-radius: 6px;
    }
    
    .countdown-label {
        font-size: 1rem;
    }
}

/* Photo Gallery Component */
.photo-gallery {
    padding: 2rem;
    background: transparent;
}

/* Mobile Carousel - Hidden by default */
.mobile-carousel {
    display: none;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.photo-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center center; /* Centrado por defecto */
    transition: transform 0.3s ease;
}

/* Alinear todas las fotos consistentemente */
.photo-item:nth-child(1) img,
.photo-item:nth-child(3) img {
    object-position: center center;
}

/* Segunda foto con posición más arriba */
.photo-item:nth-child(2) img {
    object-position: center 80%;
}

.photo-item:hover img {
    transform: scale(1.05);
}

/* Responsive gallery layout */
@media (max-width: 1024px) {
    .gallery-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        max-width: 900px;
    }

    .photo-item img {
        height: 400px;
    }

    /* Foto central en tablet - posición intermedia */
    .photo-item:nth-child(2) img {
        object-position: center 60%;
    }
}

/* Mobile Carousel Styles */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    width: 100%;
    position: relative;
    flex-shrink: 0;
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.carousel-slide:nth-child(2) img {
    object-position: center 65%;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

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

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    width: 28px;
    border-radius: 5px;
}



@media (max-width: 768px) {
    .photo-gallery {
        padding: 2rem 0;
        /* Sin padding lateral para el carrusel */
    }

    /* Hide desktop gallery on mobile */
    .desktop-gallery {
        display: none;
    }

    /* Show mobile carousel */
    .mobile-carousel {
        display: block;
        padding: 0;
        /* Sin padding */
    }

    .carousel-container {
        width: 100vw;
        /* Ancho completo de la pantalla */
        max-width: none;
        margin: 0;
        /* Sin margen */
        border-radius: 0;
        /* Sin bordes redondeados */
        box-shadow: none;
        /* Sin sombra */
        overflow: hidden;
    }


    .carousel-slide {
        width: 100%;
        /* Cada slide ocupa el 100% del contenedor */
        min-width: 100%;
    }

    .carousel-slide img {
        width: 100%;
        height: 400px;
        object-fit: cover;
        display: block;
    }

    .carousel-slide:nth-child(2) img {
        object-position: center 65%;
    }
}

/* Info and RSVP Section */
.info-rsvp-section {
    background: transparent;
    padding: 4rem 2rem;
    margin-top: 0;
    grid-column: 2;
}

.info-rsvp-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Location Cards */
.location-container {
    display: flex;
    flex-direction: column;
    min-height: -webkit-fill-available;
    justify-content: space-around;
}

.location-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.12);
}

.location-header {
    margin-bottom: 2rem;
}

.location-time {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 0.9rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 400;
    display: block;
    margin-bottom: 1rem;
}

.location-name {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #2c3e50;
    font-weight: 400;
    margin: 0;
    line-height: 1.2;
}

.location-details {
    margin-bottom: 2rem;
}

.location-address {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 1rem;
    font-weight: 500;
}

.location-address a {
    color: #6c757d;
}

.location-description {
    font-size: 0.95rem;
    color: #6c757d;
    font-style: italic;
    line-height: 1.5;
    margin: 0;
}

.location-button {
    display: inline-block;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.location-button:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

/* RSVP Card */
.rsvp-card {
    background: #ffffff;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.rsvp-title {
    text-align: center;
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    color: #2c3e50;
    margin-bottom: 3rem;
    font-weight: 300;
}

.rsvp-form {
    width: 100%;
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #2c3e50;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-color: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background-color: white;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.hint-text {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 0.5rem;
    font-style: italic;
    line-height: 1.4;
}

.submit-btn {
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.submit-btn:hover {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Companion fields styles */
.companion-fields {
    margin-top: 1rem;
    padding: 2rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.companion-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 400;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group-half {
    margin-bottom: 1.5rem;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .info-rsvp-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .location-card,
    .rsvp-card {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .info-rsvp-section {
        padding: 3rem 1rem;
    }

    .location-card,
    .rsvp-card {
        padding: 2rem 1.5rem;
    }

    .location-name {
        font-size: 1.5rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem; /* Más espaciado vertical en móvil */
    }
    
    .form-group input,
    .form-group textarea,
    .form-group select {
        padding: 1.25rem; /* Inputs más grandes para tocar fácilmente */
        font-size: 1rem;
        /* Área de toque adecuada */
        min-height: 48px;
    }
    
    .submit-btn {
        padding: 1.5rem; /* Botón más grande en móvil */
        font-size: 1.125rem;
        min-height: 56px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .companion-fields {
        padding: 1.5rem;
    }
}

/* Form Messages */
.error-message {
    color: #dc3545;
    font-size: 0.875rem;
    display: none;
    margin-top: 0.5rem;
    font-weight: 500;
}

.form-messages {
    margin-top: 2rem;
}

.success-message {
    color: #27ae60;
    font-size: 1rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    border: 2px solid #27ae60;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.15);
}

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

.form-messages .error-message {
    color: #e74c3c;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fef5f5 0%, #fdeaea 100%);
    border: 2px solid #e74c3c;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.15);
    display: none;
}

.hint-text {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.25rem;
    font-style: italic;
}

/* Loading animation for submit button */
.submit-btn:disabled {
    cursor: not-allowed;
    position: relative;
    opacity: 0.7;
}

.submit-btn:disabled::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    margin: auto;
    border: 3px solid transparent;
    border-top-color: #ffffff;
    border-right-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% {
        transform: translate(-50%, -50%) rotate(0deg);
    }

    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Spinner genérico para usar en toda la app */
.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(108, 117, 125, 0.2);
    border-top-color: #6c757d;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border-width: 2px;
}

.spinner-large {
    width: 60px;
    height: 60px;
    border-width: 5px;
}

/* Print styles */
@media print {
    .rsvp-section {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .header {
        background: transparent;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    body {
        background: white;
        color: black;
    }

    .header {
        background: transparent;
        border-bottom: 2px solid black;
    }

    .submit-btn {
        background: black;
        color: white;
        border: 2px solid black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Force light mode for all devices */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #ffffff !important;
        color: #2c3e50 !important;
    }

    .header {
        background: transparent !important;
    }

    .couple-names {
        color: #2c3e50 !important;
    }

    .wedding-date {
        color: #6c757d !important;
    }

    .rsvp-section {
        background: transparent !important;
    }

    .photo-gallery {
        background: transparent !important;
    }

    .rsvp-form {
        background: #ffffff !important;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        background-color: #ffffff !important;
        border-color: #e9ecef !important;
        color: #2c3e50 !important;
    }

    .form-group input:focus,
    .form-group textarea:focus,
    .form-group select:focus {
        background-color: white !important;
        border-color: #3498db !important;
    }

    .companion-fields {
        background: #f8f9fa !important;
    }
}

/* Schedule Timeline Styles */
.schedule-section {
    padding: 4rem 0;
    color: #2c3e50;
    text-align: center;
    width: 100%;
}

.schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.schedule-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 2px;
    color: #2c3e50;
}

.schedule-timeline {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 2rem 0;
    overflow-x: auto;
    gap: 1rem;
}

/* Línea horizontal principal */
.schedule-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    height: 2px;
    background: #6c757d;
    opacity: 0.3;
    z-index: 1;
}

.schedule-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 120px;
    z-index: 2;
}

.schedule-icon {
    width: 60px;
    height: 60px;
    background: #6c757d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    border: 4px solid rgba(108, 117, 125, 0.05);
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.schedule-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.schedule-item:hover .schedule-icon {
    background: #495057;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

.schedule-time {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: #2c3e50;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.schedule-event {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 0.85rem;
    font-weight: 400;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
    line-height: 1.3;
}

@media (max-width: 768px) {
    .schedule-section {
        padding: 3rem 0;
    }
    
    .schedule-container {
        padding: 0 1rem;
    }
    
    .schedule-timeline {
        gap: 0.5rem;
        padding: 1.5rem 0;
    }
    
    .schedule-timeline::before {
        top: 50px;
    }
    
    .schedule-item {
        min-width: 100px;
    }
    
    .schedule-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }
    
    .schedule-icon svg {
        width: 24px;
        height: 24px;
    }
    
    .schedule-time {
        font-size: 1.2rem;
    }
    
    .schedule-event {
        font-size: 0.75rem;
        letter-spacing: 0.5px;
    }
}

@media (max-width: 480px) {
    .schedule-timeline {
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem 1rem;
    }
    
    .schedule-timeline::before {
        display: none;
    }
    
    .schedule-item {
        min-width: 80px;
        flex: 0 0 calc(50% - 0.5rem);
        max-width: 120px;
    }
    
    .schedule-icon {
        width: 45px;
        height: 45px;
    }
    
    .schedule-icon svg {
        width: 22px;
        height: 22px;
    }
    
    .schedule-time {
        font-size: 1.1rem;
    }
    
    .schedule-event {
        font-size: 0.7rem;
    }
}

/* Ultra-wide screen support */
@media (min-width: 1600px) {

    .header,
    .photo-gallery,
    .rsvp-section,
    .schedule-section {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Very small screens */
@media (max-width: 320px) {
    .header {
        padding: 2rem 0.5rem;
    }

    .couple-names {
        font-size: 2rem;
    }

    .wedding-date {
        font-size: 1rem;
    }

    .rsvp-form {
        padding: 1.5rem 1rem;
    }
}

/* Landscape phone orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .header {
        padding: 2rem 1rem;
    }

    .photo-gallery {
        padding: 2rem 1rem;
    }

    .gallery-container {
        grid-template-columns: repeat(3, 1fr);
        max-width: 1200px;
    }

    .photo-item img {
        height: 250px;
    }

    /* Foto central en landscape - posición intermedia */
    .photo-item:nth-child(2) img {
        object-position: center 60%;
    }
}
/* New
 Layout Styles */

/* Hero Section */
.hero-section {
    background: #ffffff;
    padding: 2rem 2rem 4rem;
    text-align: center;
}

.couple-names {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 3rem;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.hero-photo {
    position: relative;
}

.hero-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero-center {
    text-align: center;
}

.wedding-date-large {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 2rem;
    letter-spacing: 4px;
}

.hero-main-photo {
    margin: 2rem 0;
}

.hero-main-photo img {
    width: 100%;
    max-width: 400px;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.wedding-subtitle {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    color: #6c757d;
    font-style: italic;
    margin-top: 1.5rem;
}

/* Location Section */
.location-section {
    background: #ffffff;
    padding: 6rem 2rem;
    text-align: center;
}

.location-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 4rem;
    letter-spacing: 2px;
}

.location-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.location-info h3 {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 400;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.location-info p {
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.6;
}

.location-photo {
    position: relative;
    text-align: center;
}

.location-photo img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-button {
    display: inline-block;
    margin-top: 1.5rem;
    padding: 0.75rem 2rem;
    background: #2c3e50;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.location-button:hover {
    background: #495057;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Countdown Section */
.countdown-section {
    background-color: #c3c1b530;
    background-size: cover;
    background-position: center;
    padding: 6rem 2rem;
    color: white;
    text-align: center;
}

.countdown-overlay {
    max-width: 800px;
    margin: 0 auto;
}

.countdown-text {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.2rem;
    font-weight: 300;
    margin-bottom: 3rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.countdown-timer {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 300;
    color: #293542;
    margin-bottom: 0.5rem;
    display: block;
}

.countdown-label {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #6c757d;
}

/* RSVP Section Updates */
.rsvp-section {
    background: #f8f9fa;
    padding: 6rem 2rem;
}

.rsvp-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.rsvp-title {
    font-family: 'Playfair Display', 'Georgia', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    color: #2c3e50;
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.rsvp-info p {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 3rem;
}

.rsvp-form-container {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}


/* Adults only */
.adults-only-notice {
    text-align: center;
    font-family: 'Playfair Display', 'Georgia', serif;
    color: #6c757d;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-photo.left,
    .hero-photo.right {
        display: none;
    }
    
    .schedule-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .countdown-timer {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .rsvp-form-container {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .schedule-timeline {
        grid-template-columns: 1fr;
    }
    
    .countdown-timer {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }
    
    .countdown-number {
        font-size: 2rem;
    }
}