/* ===== Variables ===== */
:root {
    --sage-green: #9caf88;
    --sage-green-light: #b8c9a8;
    --sage-green-dark: #7d9370;
    --cream: #f5f3ed;
    --cream-dark: #e8e4d9;
    --gold: #d4af77;
    --gold-light: #e6c998;
    --text-dark: #2c3e2e;
    --text-light: #6b7c5e;
    --white: #faf9f6;
    --shadow: rgba(0, 0, 0, 0.1);
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--cream);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

/* ===== Navigation ===== */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px var(--shadow);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--sage-green-dark);
    font-weight: 700;
}

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

.nav-link {
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 400;
    transition: var(--transition);
    position: relative;
}

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--sage-green-dark);
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: linear-gradient(135deg, var(--sage-green-light) 0%, var(--cream) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><path fill="%23f5f3ed" fill-opacity="0.3" d="M0,300 Q300,100 600,300 T1200,300 L1200,600 L0,600 Z"/></svg>');
    background-size: cover;
    background-position: bottom;
    opacity: 0.5;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(245, 243, 237, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
}

.hero-names {
    font-size: 4rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.hero-divider {
    width: 100px;
    height: 2px;
    background-color: var(--gold);
    margin: 1rem auto;
}

.hero-date {
    font-size: 1.5rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 300;
}

.hero-location {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.hero-time {
    font-size: 1.05rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 3rem;
    font-family: var(--font-heading);
    color: var(--sage-green-dark);
    font-weight: 700;
}

.countdown-label {
    font-size: 0.9rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.hero-cta {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--sage-green);
    color: var(--cream);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(156, 175, 136, 0.3);
}

.hero-cta:hover {
    background-color: var(--sage-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 175, 136, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 30px;
    height: 50px;
    border: 2px solid var(--sage-green);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 10px;
    background-color: var(--sage-green);
    border-radius: 3px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

/* ===== Sections ===== */
section {
    padding: 6rem 2rem;
}

.bg-white {
    background-color: var(--white) !important;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--gold);
    margin: 0 auto 3rem;
}

/* ===== Historia ===== */
.historia {
    background-color: var(--cream);
}

.historia-rows {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.historia-row {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.historia-row.reverse {
    flex-direction: row;
}

.historia-card {
    flex: 1;
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.historia-date {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.historia-card h3 {
    font-size: 1.5rem;
    color: var(--sage-green-dark);
    margin-bottom: 1rem;
}

.historia-card p {
    color: var(--text-light);
    line-height: 1.8;
}

.historia-gallery {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.historia-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.historia-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 25px var(--shadow);
}

/* ===== La Boda ===== */
.boda {
    background-color: var(--cream);
}

.boda-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.boda-card {
    background-color: var(--cream);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
}

.boda-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--shadow);
}

.boda-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.boda-card h3 {
    font-size: 1.8rem;
    color: var(--sage-green-dark);
    margin-bottom: 1rem;
}

.boda-detail {
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.boda-time {
    font-size: 2rem;
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 600;
}

.venue {
    background-color: var(--cream);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
}

.venue-name {
    font-size: 2.5rem;
    text-align: center;
    color: var(--sage-green-dark);
    margin-bottom: 1rem;
}

.venue-address {
    text-align: center;
    color: var(--text-light);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.venue-map {
    margin: 2rem 0;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--shadow);
}

.venue-directions h4 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    text-align: center;
}

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

.direction-option {
    padding: 1.5rem;
    background-color: var(--cream);
    border-radius: 10px;
}

.direction-option strong {
    display: block;
    color: var(--sage-green-dark);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.direction-option p {
    color: var(--text-light);
    line-height: 1.6;
}

/* ===== RSVP & Forms ===== */
.rsvp {
    background-color: var(--cream);
}

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

.form {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--cream);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
}

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

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

.form-group label {
    display: block;
    color: var(--text-dark);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 2px solid var(--sage-green-light);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: var(--cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--sage-green);
    box-shadow: 0 0 0 3px rgba(156, 175, 136, 0.1);
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 1rem;
    background-color: var(--cream);
    border: 2px solid var(--sage-green-light);
    border-radius: 8px;
    transition: var(--transition);
}

.radio-label:hover {
    border-color: var(--sage-green);
    background-color: rgba(156, 175, 136, 0.05);
}

.radio-label input[type="radio"] {
    margin-right: 1rem;
    width: auto;
    accent-color: var(--sage-green);
}

.btn {
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 50px;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--sage-green);
    color: var(--cream);
    box-shadow: 0 4px 15px rgba(156, 175, 136, 0.3);
}

.btn-primary:hover {
    background-color: var(--sage-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(156, 175, 136, 0.4);
}

.btn-secondary {
    background-color: var(--gold);
    color: var(--cream);
    box-shadow: 0 4px 15px rgba(212, 175, 119, 0.3);
}

.btn-secondary:hover {
    background-color: #c09a5f;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 119, 0.4);
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    display: block;
}

/* ===== Dress Code ===== */
.dress-code {
    background-color: var(--cream);
}

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

.dress-code-main {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--sage-green-dark);
    margin-bottom: 1.5rem;
}

.dress-code-description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.dress-code-tips {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.tip {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow);
}

.tip h4 {
    font-size: 1.3rem;
    color: var(--gold);
    margin-bottom: 1rem;
}

.tip p {
    color: var(--text-light);
    line-height: 1.6;
}

.dress-code-note {
    font-style: italic;
    color: var(--text-light);
    margin-top: 2rem;
}

/* ===== Música ===== */
.musica {
    background-color: var(--cream);
}

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

/* ===== Alojamiento ===== */
.alojamiento {
    background-color: var(--cream);
}

.alojamiento-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 3rem;
}

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

.hotel-card {
    background-color: var(--cream);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 20px var(--shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 25px var(--shadow);
}

.hotel-card h3 {
    font-size: 1.4rem;
    color: var(--sage-green-dark);
    margin-bottom: 0.8rem;
}

.hotel-distance {
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.hotel-address {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.hotel-description {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.hotel-card .btn-secondary {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-align: center;
    align-self: flex-start;
}

/* ===== FAQ ===== */
.faq {
    background-color: var(--cream);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    background-color: var(--cream);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px var(--shadow);
}

.faq-question {
    padding: 1.5rem 2rem;
    font-weight: 600;
    color: var(--sage-green-dark);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 2rem;
    font-size: 1.5rem;
    color: var(--sage-green);
    transition: var(--transition);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-question:hover {
    background-color: rgba(156, 175, 136, 0.1);
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    color: var(--text-light);
    line-height: 1.8;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 2rem 1.5rem;
    max-height: 500px;
}


/* ===== Regalo ===== */
.regalo {
    background-color: var(--cream);
}

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

.regalo-intro {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.regalo-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.regalo-option {
    background-color: var(--cream);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px var(--shadow);
}

.regalo-option h3 {
    font-size: 1.5rem;
    color: var(--sage-green-dark);
    margin-bottom: 1rem;
}

.regalo-option p {
    color: var(--text-light);
    line-height: 1.6;
}

.regalo-note {
    font-style: italic;
    color: var(--text-light);
}

/* ===== Footer ===== */
.footer {
    background-color: var(--sage-green-dark);
    padding: 4rem 2rem 2rem;
    color: var(--cream);
}

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

.footer-names {
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.footer-date {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.footer-divider {
    width: 60px;
    height: 2px;
    background-color: var(--gold);
    margin: 1.5rem auto;
}

.footer-text {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.footer-hashtag {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
    opacity: 0.8;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.footer-love {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-style: italic;
}

/* ===== Fade-in Animation ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background-color: var(--cream);
        width: 100%;
        padding: 2rem;
        box-shadow: 0 4px 20px var(--shadow);
        transition: var(--transition);
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero-names {
        font-size: 2.5rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .historia-row,
    .historia-row.reverse {
        flex-direction: column;
    }

    .historia-gallery {
        grid-template-columns: 1fr 1fr;
    }

    .form {
        padding: 2rem 1.5rem;
    }

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

@media (max-width: 480px) {
    .nav-container {
        padding: 1rem;
    }
    
    .hero-names {
        font-size: 2rem;
    }
    
    .hero-date {
        font-size: 1.2rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-value {
        font-size: 1.5rem;
    }
    
    section {
        padding: 4rem 1rem;
    }
    
    .venue {
        padding: 2rem 1.5rem;
    }
}
/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}
