:root {
    --bg-color: #fdfcfb;
    --primary-color: #c5a880;
    --primary-light: #e0d5c1;
    --text-color: #4a4a4a;
    --text-light: #8e8e8e;
    --white: #ffffff;
    --font-serif: "Playfair Display", serif;
    --font-sans: "Montserrat", sans-serif;
    --container-width: 500px;
    --transition-speed: 0.6s;
}

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

body {
    background-color: #f0f0f0;
    /* Gray background for desktop viewing area */
    font-family: var(--font-sans);
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    background-color: var(--bg-color);
    min-height: 100vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-x: hidden;
}

/* Welcome Screen */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: var(--container-width);
    height: 100vh;
    background-color: var(--bg-color);
    background-image: url('assets/sobre.jpg');
    background-size: cover;
    background-position: center;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-speed), transform var(--transition-speed);
}

.welcome-screen.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-100vh);
    /* Slide up effect */
}

/* Overlay for readability */
.welcome-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.envelope {
    text-align: center;
    position: relative;
    z-index: 2;
}

.boda-de {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.names-main {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.envelope-image {
    position: relative;

}

.envelope-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    /* Hide the img tag since we use it as background for welcome-screen */
}

.btn-open {
    background-color: var(--primary-color);
    border: none;
    color: var(--white);
    padding: 1rem 3rem;
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50px;
    font-family: var(--font-serif);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 168, 128, 0.5);
}

.btn-open:hover {
    background-color: var(--primary-color);
    color: var(--white);
    opacity: 0.9;
}

.content-hidden {
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)), url('https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&q=80&w=1000');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    color: var(--white);
    justify-content: center;
}

.hero-top-nav {
    display: flex;
    justify-content: space-around;
    padding: 1.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-text-overlay {
    margin: auto;
    text-align: center;
}

.hero-names {
    font-family: var(--font-serif);
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 300;
}

.ampersand {
    font-size: 2rem;
    color: var(--primary-light);
}

.nuestra-boda {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.hero-phrase {
    font-size: 1rem;
    letter-spacing: 1px;
    opacity: 0.9;
}

/* Floral Separator */
.floral-separator {
    height: 120px;
    background-image: url('assets/ramo.png');
    background-size: 100% auto;
    background-repeat: no-repeat;
    background-position: center;
    margin: 1rem 0;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Sections General */
section {
    padding: 4rem 2rem;
    text-align: center;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: -1rem;
    margin-bottom: 2rem;
}

/* Countdown */
.countdown {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.time-block {
    display: flex;
    flex-direction: column;
}

.time-block span {
    font-size: 2.5rem;
    font-family: var(--font-serif);
    color: var(--text-color);
}

.time-block small {
    text-transform: uppercase;
    font-size: 0.7rem;
    color: var(--primary-color);
    font-weight: 700;
}

.divider {
    width: 1px;
    height: 40px;
    background-color: var(--primary-light);
    margin-top: 10px;
}

.heart-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

/* Detail Cards */
.details-section {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    background-color: #f9f7f4;
}

.detail-card {
    background: var(--white);
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

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

.detail-card h4 {
    font-family: var(--font-serif);
    letter-spacing: 5px;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.card-divider {
    width: 50px;
    height: 1px;
    background-color: var(--primary-color);
    margin: 1rem auto;
}

.month {
    font-size: 1rem;
    letter-spacing: 3px;
    color: var(--text-light);
}

.date-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
}

.day-number {
    font-size: 4rem;
    font-family: var(--font-serif);
    color: var(--primary-color);
    line-height: 1;
}

.day-name,
.hour {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.year {
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 1.5rem;
}

.place {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.btn-action {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-serif);
    transition: background 0.3s;
}

.btn-action:hover {
    background-color: #b0946d;
}

.btn-action-link {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.8rem 2.5rem;
    border-radius: 5px;
    font-size: 1rem;
    text-decoration: none;
    font-family: var(--font-serif);
    transition: background 0.3s;
    margin-top: 1rem;
    box-shadow: 0 4px 10px rgba(197, 168, 128, 0.3);
}

.btn-action-link:hover {
    background-color: #b0946d;
}

/* Gallery Slider */
.slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    margin-top: 2rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide {
    min-width: 100%;
    height: 400px;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 3rem 2rem;
    border: 1px solid #f1f1f1;
    border-radius: 20px;
}

.feature-card h4 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 10% auto;
    padding: 3rem 2rem;
    width: 90%;
    max-width: 450px;
    /* Fitting mobile-first container */
    border-radius: 20px;
    position: relative;
    text-align: center;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-light);
}

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

.modal h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
}

/* Forms */
form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

input,
textarea {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid var(--primary-light);
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-bottom-color: var(--primary-color);
}

.btn-submit {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem;
    border-radius: 5px;
    font-size: 1.1rem;
    font-family: var(--font-serif);
    cursor: pointer;
    margin-top: 1rem;
}

/* QR and Sharing */
.qr-container {
    background: var(--white);
    width: 200px;
    height: 200px;
    margin: 2rem auto;
    padding: 1rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.qr-container img {
    width: 100%;
}

.qr-text {
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    padding: 5rem 2rem;
    background: linear-gradient(to bottom, var(--bg-color), #f9f7f4);
    text-align: center;
}

.footer-names {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-final {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-style: italic;
    color: var(--text-color);
}

/* Removed duplicate floral-separator definition */

/* Responsive adjustments */
@media (max-width: 500px) {
    body {
        background-color: var(--bg-color);
    }

    .hero-names {
        font-size: 3rem;
    }
}