* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'The Seasons';
    src: url('images/the seasons ok.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --dark-bg: #1a1a1a;
    --light-bg: #edeae7;
    --text-dark: #1a1a1a;
    --text-light: #ffffff;
    --accent: #000000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'The Seasons', sans-serif;
    font-weight: 700;
    color: var(--text-dark);
    background-color: #edeae7;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-left, .nav-right {
    display: flex;
    gap: 30px;
    align-items: center;
}

.navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    transition: opacity 0.3s;
}

.navbar a:hover {
    opacity: 0.7;
}

.rsvp-btn {
    background-color: var(--accent);
    color: var(--text-light) !important;
    padding: 10px 25px;
    border-radius: 2px;
    font-weight: 600;
}

.language-btn {
    background-color: transparent;
    border: 2px solid var(--text-dark);
    color: var(--text-dark);
    padding: 8px 15px;
    border-radius: 2px;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 15px;
}

.language-btn:hover {
    background-color: var(--text-dark);
    color: var(--text-light);
}

/* Hero Section */
.hero {
    margin-top: 80px;
    padding: 40px 20px;
    text-align: center;
    background-color: var(--light-bg);
}

.hero-content {
    max-width: 95%;
    margin: 0 auto;
}

.hero-main-image {
    width: 100%;
    max-width: 500px;
    margin: 0 auto 5px;
    text-align: center;
}


.main-title-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.hero-full-image {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 5px;
    text-align: center;
}

.hero-full-photo {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.hero-allin-image {
    width: 100%;
    max-width: 200px;
    margin: 0 auto 50px;
    text-align: center;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #ccc;
    display: block;
}

.hero-image.left .image-placeholder {
    display: none;
}

.hero-image.left .image-placeholder[style*="display:block"] {
    display: block !important;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    border: 1px solid #ccc;
    filter: grayscale(100%);
    position: relative;
}

.image-placeholder::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0.3;
}

.welcome-message {
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Schedule Section */
.schedule {
    background-image: url('images/sin fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    text-align: center;
}

.schedule-content {
    max-width: 95%;
    margin: 0 auto;
}

.schedule-title {
    color: var(--text-light);
    font-size: 24px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 60px;
    line-height: 1.4;
}

.schedule-title-bold {
    font-size: 36px;
    font-weight: 700;
    display: block;
    margin-top: 10px;
}

.timeline {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.timeline-item {
    flex: 1;
    min-width: 200px;
}

.time {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 15px;
    letter-spacing: 2px;
}

.event {
    font-size: 18px;
    color: var(--text-light);
    letter-spacing: 3px;
    font-weight: 400;
}

/* Location Section */
.location {
    background-color: var(--light-bg);
    padding: 60px 20px;
}

.location-content {
    max-width: 95%;
    margin: 0 auto;
}

.location-title {
    font-family: 'The Seasons', sans-serif;
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-dark);
    letter-spacing: 3px;
}

.location-address {
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin: 0 auto 20px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.location-icon-link {
    display: inline-block;
    transition: opacity 0.3s;
}

.location-icon-link:hover {
    opacity: 0.7;
}

.location-icon-small {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: inline-block;
}

.location-image-text-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin: 0 auto 60px;
    max-width: 95%;
}

.location-image-link {
    flex: 0 0 auto;
    max-width: 450px;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
}

.location-bus-info {
    flex: 1;
    text-align: left;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.location-image-link a {
    display: block;
    cursor: pointer;
    transition: opacity 0.3s;
}

.location-image-link a:hover {
    opacity: 0.9;
}

.location-main-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
}

.bus-text {
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    text-align: left;
}

.bus-text a {
    color: var(--text-dark);
    text-decoration: none;
    transition: opacity 0.3s;
}

.bus-text a:hover {
    opacity: 0.7;
    text-decoration: underline;
}

.bus-icon-image {
    width: 120px;
    height: auto;
    margin: 20px 0 10px 0;
    display: block;
}

.location-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
    display: inline-block;
}

.mas-del-sord-link {
    text-decoration: none;
    color: inherit;
    margin-bottom: 30px;
    margin-top: 0;
    display: block;
    width: 100%;
    text-align: center;
}

.mas-del-sord-link:hover {
    opacity: 0.7;
}

.mas-del-sord-text {
    font-size: 24px !important;
    font-weight: 600 !important;
    margin-bottom: 15px !important;
    justify-content: center !important;
    text-align: center;
}

.mas-del-sord-text .location-icon {
    width: 24px;
    height: 24px;
}

.location-details {
    display: grid;
    grid-template-columns: 1fr 400px 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
}

.location-left h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: 2px;
    line-height: 1.4;
    text-align: right;
}

.location-right p {
    font-size: 18px;
    letter-spacing: 2px;
    line-height: 1.8;
    text-align: left;
}

.location-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #d0d0d0 0%, #a0a0a0 100%);
    filter: grayscale(100%);
    border: 1px solid #ccc;
    position: relative;
}

.location-image-placeholder::before {
    content: '🏰';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    opacity: 0.3;
}

.travel-btn {
    display: block;
    width: fit-content;
    margin: 0 auto;
    padding: 12px 30px;
    background-color: var(--accent);
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    letter-spacing: 2px;
    transition: opacity 0.3s;
}

.travel-btn:hover {
    opacity: 0.8;
}

/* Countdown Section */
.countdown-section {
    background-color: var(--dark-bg);
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
        url('data:image/svg+xml,<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="flowers" width="200" height="200" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="8" fill="%23ffffff" opacity="0.1"/><circle cx="150" cy="150" r="6" fill="%23ffffff" opacity="0.1"/><circle cx="100" cy="100" r="10" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="200" height="200" fill="url(%23flowers)"/></svg>');
    padding: 60px 20px;
    text-align: center;
}

.countdown-content {
    max-width: 95%;
    margin: 0 auto;
}

.countdown-title {
    color: var(--text-light);
    font-size: 18px;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 60px;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.countdown-item {
    text-align: center;
}

.countdown-number {
    font-size: 96px;
    font-weight: 700;
    color: #000000;
    line-height: 1;
    margin-bottom: 15px;
    font-family: 'The Seasons', sans-serif;
}

.countdown-label {
    font-size: 16px;
    color: #000000;
    letter-spacing: 3px;
    font-weight: 400;
}

/* Registry & Dress Code Section */
.registry-dresscode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--light-bg);
    min-height: 600px;
}

.registry-section,
.dresscode-section {
    padding: 60px 20px;
    text-align: center;
}

.section-title {
    font-family: 'The Seasons', sans-serif;
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    letter-spacing: 3px;
}

.registry-image-placeholder,
.dresscode-image-placeholder {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #e0e0e0 0%, #bdbdbd 100%);
    filter: grayscale(100%);
    border: 1px solid #ccc;
    position: relative;
    margin: 0 auto;
    max-width: 500px;
}

.registry-image-placeholder::before {
    content: '🎁';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    opacity: 0.3;
}

.dresscode-image-placeholder::before {
    content: '👗';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 64px;
    opacity: 0.3;
}

/* Story Section */
.story {
    background-color: var(--light-bg);
    padding: 60px 20px;
    text-align: center;
}

.story-content {
    max-width: 90%;
    margin: 0 auto;
}

.story-text {
    font-size: 18px;
    line-height: 2;
    letter-spacing: 1px;
    color: var(--text-dark);
}

/* FAQs Section */
.faqs {
    background-color: var(--light-bg);
    padding: 60px 20px;
}

.faqs-content {
    max-width: 90%;
    margin: 0 auto;
}

.faq-list {
    margin-top: 60px;
}

.faq-item {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #ddd;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.faq-item p {
    font-size: 16px;
    line-height: 1.8;
    color: #666;
}

/* RSVP Section */
.rsvp {
    background-color: var(--light-bg);
    padding: 60px 20px;
}

.rsvp-content {
    max-width: 80%;
    margin: 0 auto;
}

.schedule-title-text {
    font-family: 'The Seasons', sans-serif;
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-dark);
    letter-spacing: 3px;
}

.schedule-image-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 50px;
    text-align: center;
}

.schedule-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
}

.rsvp-form {
    margin-top: 60px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    background-color: #fff;
    font-family: 'The Seasons', sans-serif;
    font-size: 16px;
    color: var(--text-dark);
    letter-spacing: 1px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    resize: vertical;
}

.submit-btn {
    width: auto;
    padding: 18px 40px;
    background-color: #000000;
    color: var(--text-light);
    border: none;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s;
    margin: 0 auto;
    display: block;
}

.submit-btn:hover {
    opacity: 0.9;
}

.all-in-section {
    background-image: url('images/sin fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 20px;
    text-align: center;
    width: 100%;
}

.all-in-content {
    max-width: 95%;
    margin: 0 auto;
}

.all-in-text {
    font-family: 'The Seasons', sans-serif;
    font-size: 42px;
    font-weight: 600;
    color: #000000;
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 0;
}

.all-in-account {
    font-family: 'The Seasons', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: #000000;
    letter-spacing: 2px;
    line-height: 1.6;
    margin: 20px auto 0 auto;
    text-align: center;
    white-space: nowrap;
    display: block;
    width: 100%;
}

/* Doubts Section */
.doubts-section {
    background-color: var(--light-bg);
    padding: 60px 20px;
}

.doubts-content {
    max-width: 95%;
    margin: 0 auto;
}

.doubts-title {
    font-family: 'The Seasons', sans-serif;
    font-size: 64px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-dark);
    letter-spacing: 3px;
}

.doubts-contact {
    font-family: 'The Seasons', sans-serif;
    font-size: 24px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 1px;
    line-height: 1.6;
    margin: 0;
    text-align: center;
}

/* Custom Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background-color: var(--light-bg);
    border: 1px solid #d4d0cb;
    padding: 50px 40px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    transform: translateY(20px) scale(0.97);
    transition: transform 0.4s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0) scale(1);
}

.modal-icon {
    font-size: 48px;
    margin-bottom: 20px;
    display: block;
}

.modal-title {
    font-family: 'The Seasons', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.modal-message {
    font-family: 'The Seasons', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-dark);
    letter-spacing: 1px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-close-btn {
    padding: 14px 36px;
    background-color: #000000;
    color: var(--text-light);
    border: none;
    font-family: 'The Seasons', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    transition: opacity 0.3s;
}

.modal-close-btn:hover {
    opacity: 0.85;
}

.modal-box.error .modal-close-btn {
    background-color: #8b0000;
}

@media (max-width: 768px) {
    .modal-box {
        padding: 40px 25px;
        max-width: 340px;
    }

    .modal-title {
        font-size: 22px;
    }

    .modal-message {
        font-size: 14px;
    }

    .modal-icon {
        font-size: 40px;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .location-details {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .location-left h3,
    .location-right p {
        text-align: center;
    }
    
    .registry-dresscode {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .navbar {
        position: static;
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-left, .nav-right {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 20px 30px 20px;
        margin-top: 0;
    }
    
    .hero-allin-image {
        margin-bottom: 20px;
    }
    
    .schedule {
        padding: 30px 20px 40px 20px;
    }
    
    .couple-names {
        font-size: 32px;
    }
    
    .wedding-date {
        font-size: 48px;
    }
    
    .hero-image.left,
    .hero-image.right {
        width: 150px;
        height: 200px;
    }
    
    .hero-image.center {
        width: 200px;
        height: 200px;
    }
    
    .schedule,
    .countdown-section,
    .story,
    .faqs {
        padding: 40px 20px;
    }
    
    .location {
        padding: 40px 20px 20px 20px;
    }
    
    .rsvp {
        padding: 20px 20px 40px 20px;
    }
    
    .location-title,
    .section-title {
        font-size: 28px;
    }
    
    .mas-del-sord-text {
        font-size: 20px !important;
    }
    
    .schedule-title-text {
        font-size: 32px;
    }
    
    .schedule-image-wrapper {
        margin-bottom: 60px;
    }
    
    .location-image-text-wrapper {
        flex-direction: column;
        gap: 40px;
        align-items: center;
        margin-bottom: 20px;
    }
    
    .location-image-link {
        max-width: 100%;
        width: 100%;
        order: 1;
    }
    
    .location-bus-info {
        max-width: 100%;
        width: 100%;
        text-align: center;
        align-items: center;
        order: 2;
        gap: 15px;
    }
    
    .location-bus-info .bus-text {
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .location-bus-info .bus-text .location-icon {
        display: none;
    }
    
    .location-bus-info .bus-text a {
        display: block;
        width: 100%;
        text-align: center;
    }
    
    .location-bus-info .bus-icon-image {
        margin: 0 auto;
        display: block;
    }
    
    .location-bus-info .bus-text a,
    .location-bus-info .bus-text span {
        text-align: center;
    }
    
    .bus-text {
        font-size: 20px;
    }
    
    .countdown-number {
        font-size: 40px;
    }
    
    .countdown-label {
        font-size: 12px;
    }
    
    .all-in-text {
        font-size: 32px;
    }
    
    .all-in-account {
        font-size: 22px;
    }
    
    .doubts-contact {
        font-size: 20px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 13px;
        padding: 12px;
        box-sizing: border-box;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .form-group select {
        font-size: 13px;
    }
    
    #songInput {
        font-size: 13px;
    }
    
    .countdown-timer {
        gap: 15px;
        flex-wrap: nowrap;
    }
    
    .countdown-item {
        flex: 1;
        min-width: 0;
    }
    
    .timeline {
        flex-direction: column;
        gap: 30px;
    }
}
