/* Global Styles */
:root {
    /* Colors */
    --primary-color: #403930;
    --secondary-color: #F1EFEB;
    --accent-color: #403930;
    --text-color: #403930;
    --light-text: #fff;
    --overlay: rgba(0, 0, 0, 0.6);
    
    /* Typography */
    --heading-font: 'Glacial Indifference', serif;
    --body-font: 'Glacial Indifference', sans-serif;
    
    /* Spacing */
    --container-width: 1200px;
    --section-padding: 80px 0;
    
    /* Transitions */
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1.3;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-text);
    padding: 12px 30px;
    border: none;
    border-radius: 30px;
    font-family: var(--body-font);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Navigation Icon */
#nav-icon {
    width: 30px;
    height: 25px;
    position: relative;
    transform: rotate(0deg);
    transition: var(--transition);
    cursor: pointer;
    display: none;
    z-index: 1001;
}

#nav-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
    top: 0px;
}

#nav-icon span:nth-child(2),
#nav-icon span:nth-child(3) {
    top: 11px;
}

#nav-icon span:nth-child(4) {
    top: 22px;
}

#nav-icon.open span:nth-child(1) {
    top: 11px;
    width: 0%;
    left: 50%;
}

#nav-icon.open span:nth-child(2) {
    transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
    transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
    top: 11px;
    width: 0%;
    left: 50%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
}

.header.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

.nav-list a {
    font-weight: 500;
    color: var(--text-color);
    position: relative;
    padding: 5px 0;
}

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

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

/* Hero Section */
.hero {
    height: 100vh;
    background-image: url('../images/portada.webp');
    background-size: cover;
    background-position: top;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--light-text);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    max-width: 300px;
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

/* Nosotros Section */
.about {
    padding: var(--section-padding);
    background-color: var(--secondary-color);
}

.couple-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    margin-top: 3rem;
}

.person {
    flex: 1;
    min-width: 280px;
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.person:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.person-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    background-size: cover;
    background-position: top center;
    border: 5px solid var(--accent-color);
}

.person h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Contador Section */
.countdown-section {
    padding: var(--section-padding);
    background-image: url('../images/countdown-bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    color: var(--light-text);
    text-align: center;
}

.countdown-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.countdown-section .container {
    position: relative;
    z-index: 1;
}

.countdown-section h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

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

.countdown-item {
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    padding: 2rem 1.5rem;
    border-radius: 10px;
    min-width: 120px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.countdown-item span {
    display: block;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    font-family: var(--heading-font);
}

/* Evento section */
.event-details {
    padding: var(--section-padding);
    background-color: #f9f9f9;
}

.event-details .container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.event-card {
    flex: 1;
    min-width: 280px;
    background-color: white;
    padding: 2.5rem 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.event-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.event-icon {
    width: 80px;
    height: 80px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--primary-color);
}

.event-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.event-card p {
    margin-bottom: 0.5rem;
}

/* Formulario Section */
.form-section {
    padding: var(--section-padding);
    background-color: white;
}

.form-section p {
    text-align: center;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.rsvp-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: var(--secondary-color);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--body-font);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(212, 167, 106, 0.2);
}

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

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
}

.form-col {
    flex: 1;
}

.form-radio-group {
    margin-right: 15px;
    display: inline-flex;
    align-items: center;
}

.form-radio-group input[type="radio"] {
    margin-right: 5px;
}

.song-input {
    display: block;
    margin-bottom: 10px;
}

#additional-info {
    margin-top: 20px;
    padding: 15px;
    transition: all 0.3s ease;
}

#allergies-details {
    margin-top: 10px;
}

input[type="number"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Footer */
.footer {
    background-color: #222;
    color: #aaa;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        width: 95%;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .countdown-item {
        min-width: 100px;
        padding: 1.5rem 1rem;
    }
    
    .countdown-item span {
        font-size: 2.5rem;
    }
}

/* Prevent scrolling when menu is open */
body.no-scroll {
    overflow: hidden;
}

@media (max-width: 768px) {
    #nav-icon {
        display: block;
        position: relative;
        z-index: 1001;
    }
    
    .nav-list {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 2rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease-in-out;
        z-index: 1000;
    }
    
    .nav-list li {
        opacity: 0;
        transform: translateX(20px);
        transition: all 0.3s ease-in-out;
    }
    
    .nav-list.active li {
        opacity: 1;
        transform: translateX(0);
    }
    
    .nav-list.active li:nth-child(1) { transition-delay: 0.1s; }
    .nav-list.active li:nth-child(2) { transition-delay: 0.2s; }
    .nav-list.active li:nth-child(3) { transition-delay: 0.3s; }
    
    .nav-list.active {
        right: 0;
    }
    
    .nav-list a {
        font-size: 1.2rem;
        margin: 1rem 0;
    }
    
    .hero-logo {
        max-width: 250px;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .countdown {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 80px;
        padding: 1.2rem 0.8rem;
    }
    
    .countdown-item span {
        font-size: 2rem;
    }
    
    .event-details .container {
        flex-direction: column;
        align-items: center;
    }
    
    .event-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .section-title {
        font-size: 1.8rem;
    }
    
    .countdown {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 70px;
        padding: 1rem 0.5rem;
    }
    
    .countdown-item span {
        font-size: 1.8rem;
    }
    
    .rsvp-form {
        padding: 1.5rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}
