/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Estilos bilingües (español + rumano) ── */

/* Subtítulo rumano debajo del español en títulos h2/h3 */
h2 .ro,
h3 .ro,
.rsvp-success h3 .ro {
    display: block;
    font-size: 0.72em;
    font-style: italic;
    font-weight: 300;
    color: var(--secondary-color);
    margin-top: 6px;
    letter-spacing: 0.5px;
}

/* Texto rumano como párrafo secundario */
p.ro-text,
.success-date.ro-text {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.92em;
    margin-top: -12px;
    margin-bottom: 20px;
}

/* Rumano inline (dentro de etiquetas, botones, opciones) */
.ro-inline {
    font-style: italic;
    color: var(--secondary-color);
    font-size: 0.92em;
}

/* Unidades del contador */
.ro-unit {
    display: block;
    font-size: 0.8em;
    font-style: italic;
    color: var(--secondary-color);
    letter-spacing: 1px;
    margin-top: 2px;
}

/* Navegación bilingüe */
.nav-ro {
    display: block;
    font-size: 10px;
    font-style: italic;
    color: var(--secondary-color);
    letter-spacing: 0.5px;
    font-weight: 300;
    margin-top: 2px;
}

/* Footer rumano */
.footer-ro {
    font-style: italic;
    font-size: 15px;
    opacity: 0.7;
    margin-top: 4px;
    font-family: 'Cormorant Garamond', serif;
}

:root {
    --primary-color: #8b7355;
    --secondary-color: #c9b8a8;
    --accent-color: #d4af37;
    --text-dark: #333;
    --text-light: #666;
    --bg-light: #faf8f6;
    --white: #ffffff;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
}

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

/* Navegación */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.navbar a {
    text-decoration: none;
    color: var(--text-dark);
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.navbar a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #faf8f6 0%, #e8dfd5 100%);
    position: relative;
    text-align: center;
    padding-top: 80px;
}

.hero-content {
    animation: fadeInUp 1s ease;
}

.names {
    font-size: 80px;
    font-weight: 300;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.wedding-date {
    font-size: 24px;
    letter-spacing: 3px;
    color: var(--text-light);
    margin-bottom: 30px;
}

.divider {
    width: 80px;
    height: 2px;
    background: var(--accent-color);
    margin: 30px auto;
}

.subtitle {
    font-size: 18px;
    color: var(--text-light);
    font-weight: 300;
}

.subtitle.ro-text {
    font-size: 16px;
    margin-top: 6px;
    margin-bottom: 0;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    font-size: 30px;
    color: var(--primary-color);
    animation: bounce 2s infinite;
}

/* Cuenta Regresiva */
.countdown {
    padding: 80px 20px;
    background: var(--white);
    text-align: center;
}

.countdown h2 {
    font-size: 48px;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.time-unit {
    text-align: center;
}

.time-unit span {
    display: block;
    font-size: 60px;
    font-weight: 300;
    color: var(--primary-color);
    font-family: 'Cormorant Garamond', serif;
}

.time-unit p {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-light);
    margin-top: 10px;
}

/* Nuestra Historia */
.our-story {
    padding: 100px 20px;
    background: var(--bg-light);
    text-align: center;
}

.our-story h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.story-content {
    max-width: 800px;
    margin: 0 auto;
}

.story-text p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 20px;
}

/* Detalles del Evento */
.event-details {
    padding: 100px 20px;
    background: var(--white);
}

.event-details h2 {
    font-size: 48px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 900px;
    margin: 60px auto 0;
}

.event-card {
    background: var(--bg-light);
    padding: 50px 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.event-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.event-card h3 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.event-time {
    font-size: 20px;
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 10px;
}

.event-location {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.event-address {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 20px;
}

.btn-map {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 12px 30px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background 0.3s ease;
}

.btn-map:hover {
    background: var(--accent-color);
}

/* Agenda */
.schedule {
    padding: 100px 20px;
    background: var(--bg-light);
}

.schedule h2 {
    font-size: 48px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.timeline {
    max-width: 700px;
    margin: 60px auto 0;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.timeline-time {
    flex: 1;
    text-align: right;
    padding-right: 40px;
    font-weight: 500;
    color: var(--primary-color);
    font-size: 18px;
}

.timeline-content {
    flex: 1;
    padding-left: 40px;
}

.timeline-content h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.timeline-content p {
    color: var(--text-light);
    font-size: 14px;
}

/* Galería */
.gallery {
    padding: 100px 20px;
    background: var(--white);
}

.gallery h2 {
    font-size: 48px;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 60px auto 0;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.gallery-placeholder {
    font-size: 60px;
    opacity: 0.3;
}

/* Confirmación RSVP */
.rsvp {
    padding: 100px 20px;
    background: var(--bg-light);
    text-align: center;
}

.rsvp h2 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.rsvp-subtitle {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 50px;
}

.rsvp-form {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
}

.form-section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    color: var(--primary-color);
    margin: 35px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--secondary-color);
}

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

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--secondary-color);
    border-radius: 5px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: var(--white);
    color: var(--text-dark);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(139, 115, 85, 0.1);
}

/* Opciones de menú */
.menu-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
}

.menu-option {
    cursor: pointer;
}

.menu-option input[type="radio"] {
    display: none;
}

.menu-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 10px;
    border: 2px solid var(--secondary-color);
    border-radius: 8px;
    background: var(--white);
    transition: border-color 0.3s ease, background 0.3s ease;
    cursor: pointer;
}

.menu-option input[type="radio"]:checked + .menu-card {
    border-color: var(--primary-color);
    background: rgba(139, 115, 85, 0.06);
}

.menu-icon {
    font-size: 28px;
}

.menu-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    letter-spacing: 0.5px;
}

/* Botón enviar */
.btn-submit {
    display: block;
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 18px 50px;
    border-radius: 5px;
    font-size: 15px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    margin-top: 10px;
    font-family: 'Montserrat', sans-serif;
}

.btn-submit:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
}

/* Mensaje de éxito */
.rsvp-success {
    display: none;
    text-align: center;
    padding: 60px 20px;
    animation: fadeInUp 0.6s ease;
}

.rsvp-success.visible {
    display: block;
}

.success-icon {
    font-size: 60px;
    margin-bottom: 20px;
}

.rsvp-success h3 {
    font-size: 36px;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.rsvp-success p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.success-date {
    font-size: 18px;
    color: var(--primary-color);
    margin-top: 20px;
}

/* Footer */
footer {
    padding: 60px 20px;
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
}

footer p {
    font-size: 18px;
    font-family: 'Cormorant Garamond', serif;
}

.footer-date {
    font-size: 14px;
    margin-top: 10px;
    opacity: 0.8;
}

/* Animaciones */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .names {
        font-size: 50px;
    }

    .wedding-date {
        font-size: 18px;
    }

    .navbar ul {
        gap: 20px;
        padding: 0 20px;
    }

    .navbar a {
        font-size: 12px;
    }

    .countdown h2,
    .our-story h2,
    .event-details h2,
    .schedule h2,
    .gallery h2,
    .rsvp h2 {
        font-size: 36px;
    }

    .time-unit span {
        font-size: 40px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-item::before {
        left: 20px;
    }

    .timeline-time {
        text-align: left;
        padding-right: 0;
        padding-bottom: 10px;
    }

    .timeline-content {
        padding-left: 0;
    }

    .story-text p {
        font-size: 16px;
    }

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

    .menu-options {
        grid-template-columns: repeat(2, 1fr);
    }
}
