/* =========================================
   VARIABLES GLOBALES
   ========================================= */
:root {
    --color-primary: #013624;
    /* Verde Inglés */
    --color-primary-light: #035238;
    --color-accent: #c2a990;
    /* Dorado/Beige suave */
    --color-bg-light: #fdfbf7;
    /* Crema/Off-white */
    --color-text-dark: #222222;
    --color-text-light: #ffffff;

    --font-heading: 'Parisienne', cursive;
    --font-body: 'Montserrat', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.text-center {
    text-align: center;
}

.py-section {
    padding: 30px 20px;
}

.mt-3 {
    margin-top: 20px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-primary);
    margin-bottom: 20px;
    font-weight: normal;
}

.title-light {
    color: var(--color-accent);
}

.subtitle-light {
    color: var(--color-text-light);
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* =========================================
   BOTONES
   ========================================= */
.btn {
    display: inline-block;
    padding: 12px 28px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn--primary {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.btn--primary:hover {
    background-color: var(--color-primary-light);
}

.btn--outline {
    background-color: transparent;
    border: 1px solid var(--color-primary);
    color: var(--color-primary);
}

.btn--outline:hover {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

/* =========================================
   PANTALLA DE PRE-CARGA (WELCOME)
   ========================================= */
.welcome {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: url('../assets/img/umi-background.jpeg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1), opacity 0.8s ease;
}

.welcome.slide-out {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.welcome__overlay {
    position: absolute;
    inset: 0;
    background: rgba(1, 54, 36, 0.7);
}

/* Capa para legibilidad */
.welcome__content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--color-text-light);
    padding: 0 10px;
    max-width: 600px;
}

.welcome__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    margin-bottom: 10px;
    font-weight: normal;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

.welcome__text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.8;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    position: relative;
    height: 110vh;
    background: url('../assets/img/umi_2.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

/* Capa oscura más neutral para diferenciar del preloader */
.hero__content {
    position: relative;
    z-index: 1;
    color: var(--color-text-light);
}

.hero__pretitle {
    font-size: 1.2rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 10px;
    font-weight: 300;
}

.hero__title {
    font-family: var(--font-heading);
    font-size: 3rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.4);
    margin-bottom: 10px;
    font-weight: normal;
}

.hero__subtitle {
    font-size: 1rem;
    letter-spacing: 2px;
    font-weight: 300;
}

/* =========================================
   CUENTA REGRESIVA
   ========================================= */
.countdown-section {
    background-color: transparent;
    padding: 0 15px;
    position: relative;
    z-index: 2;
    margin-top: -60px;
}

.countdown-container {
    background: var(--color-text-light);
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 15px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-top: 5px solid var(--color-accent);
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: nowrap;
    width: 100%;
}

.countdown__box {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    flex: 1;
    min-width: 0;
    max-width: 100px;
    aspect-ratio: 1/1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(1, 54, 36, 0.3);
}

.countdown__box span {
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    font-weight: 700;
    line-height: 1;
}

.countdown__box p {
    font-size: clamp(0.55rem, 2vw, 0.7rem);
    margin-top: 5px;
    letter-spacing: 1px;
}

/* =========================================
   LOCACIÓN, DRESSCODE Y SPOTIFY
   ========================================= */
/* =========================================
   LÍNEA DE TIEMPO (DÓNDE Y CUÁNDO)
   ========================================= */
.timeline-section {
    background-color: var(--color-text-light);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0;
    padding: 20px 0;
}

/* MOBILE: Línea vertical a la izquierda */
.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent);
    border-radius: 2px;
}

.timeline__item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 50px;
    text-align: left;
}

.timeline__item:last-child {
    margin-bottom: 0;
}

.timeline__marker {
    position: absolute;
    left: -2px;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 4px solid var(--color-text-light);
    z-index: 2;
    font-size: 1.2rem;
}

.timeline__content {
    background: var(--color-bg-light);
    padding: 30px 20px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease;
}

.timeline__content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.timeline__title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 15px;
    font-weight: normal;
    line-height: 1;
}

.timeline__detail {
    font-size: 1rem;
    color: #555;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline__detail i {
    width: 20px;
    text-align: center;
}

/* DESKTOP: Línea horizontal */
@media (min-width: 768px) {
    .timeline {
        display: flex;
        justify-content: center;
        gap: 40px;
        padding: 40px 0 0 0;
    }

    .timeline::before {
        left: 0;
        top: 20px;
        bottom: auto;
        height: 4px;
        width: 100%;
    }

    .timeline__item {
        flex: 1;
        padding-left: 0;
        padding-top: 60px;
        margin-bottom: 0;
        text-align: center;
    }

    .timeline__marker {
        left: 50%;
        transform: translateX(-50%);
        top: -4px;
    }

    .timeline__detail {
        justify-content: center;
    }
}

.dresscode-section,
.spotify-section {
    background-color: #f4f0e6;
}

.dresscode-style {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    margin-bottom: 20px;
    font-weight: 600;
}

.dresscode-desc {
    max-width: 600px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #555;
}

/* Círculo más chico */
.color-circle-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.color-circle {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--color-primary);
    box-shadow: 0 5px 15px rgba(1, 54, 36, 0.4);
    border: 2px solid var(--color-bg-light);
}

.color-circle-wrapper span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-primary);
}

/* =========================================
   ZONA REGALOS
   ========================================= */
.gifts-section {
    margin-bottom: 6vh;
}

/* =========================================
   GALERÍA POLAROID (SWIPE)
   ========================================= */
.gallery-section {
    overflow: hidden;
    background-color: var(--color-text-light);
    margin-bottom: 6vh;
}

.gallery-instructions {
    color: #888;
    margin-bottom: 40px;
    font-size: 0.9rem;
}

.polaroid-container {
    position: relative;
    width: 260px;
    height: 350px;
    margin: 0 auto;
    perspective: 1000px;
}

.polaroid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    padding: 15px 15px 45px 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    cursor: grab;
    user-select: none;
    touch-action: none;
    transition: transform 0.4s ease, opacity 0.4s ease;
    transform-origin: 50% 100%;
}

.polaroid:active {
    cursor: grabbing;
}

.polaroid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid #eee;
    pointer-events: none;
}

.polaroid.dragging {
    transition: none;
    z-index: 10 !important;
}

.polaroid.fly-out-right {
    transform: translateX(150%) rotate(30deg) !important;
    opacity: 0;
}

.polaroid.fly-out-left {
    transform: translateX(-150%) rotate(-30deg) !important;
    opacity: 0;
}

.hide-polaroid {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
    /* Desactivamos transición para que vuelva al centro invisible */
    transform: scale(0.5) !important;
}

/* =========================================
   RSVP (FORMULARIO)
   ========================================= */
.rsvp-section {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.rsvp-form {
    max-width: 500px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    padding: 40px 20px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-group {
    margin-bottom: 35px;
    /* Le damos mucho más respiro abajo */
    padding-bottom: 25px;
    /* Espacio interno antes de la línea */
    border-bottom: 1px dashed rgba(255, 255, 255, 0.15);
    /* Separador visual sutil */
    text-align: left;
}

/* El último elemento no necesita la línea separadora */
.form-group:last-of-type {
    border-bottom: none;
    margin-bottom: 20px;
    padding-bottom: 0;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    /* Mejor lectura */
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 15px;
    /* Más despegado del input/radio */
    letter-spacing: 1px;
    text-transform: uppercase;
}



.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

/* Custom Radios */
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.radio-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    color: #ddd;
}

.radio-label input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.custom-radio {
    width: 26px;
    /* Más grande para que sea fácil hacer tap */
    height: 26px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin-right: 12px;
    display: inline-block;
    position: relative;
    transition: all 0.3s;
}

.radio-label input[type="radio"]:checked+.custom-radio {
    border-color: var(--color-accent);
}

.radio-label input[type="radio"]:checked+.custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
}

.btn-submit {
    width: 100%;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 15px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 20px;
}

.btn-submit:hover {
    background: #fff;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* =========================================
   MODALES
   ========================================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal__content {
    background: var(--color-text-light);
    padding: 30px;
    width: 100%;
    max-width: 600px;
    border-radius: 8px;
    position: relative;
    text-align: center;
}

.modal__content--dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.modal__close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 2rem;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
}

#modal-regalos .modal__content {
    height: 70vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

#modal-regalos h3 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--color-accent);
    margin-bottom: 30px;
    font-weight: normal;
}

#modal-regalos p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
}

#modal-regalos strong {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    text-transform: uppercase;
    margin-bottom: 5px;
}

/* =========================================
   FORMULARIO (NUEVOS CAMPOS)
   ========================================= */
.form-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Alinear Radios en fila */
.radio-group--row {
    flex-direction: row !important;
    gap: 30px !important;
    margin-top: 10px !important;
}

/* Custom Select */
.select-wrapper {
    position: relative;
}

.custom-select {
    width: 100%;
    padding: 15px;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    background: transparent;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 1rem;
    appearance: none;
    cursor: pointer;
    transition: all 0.3s;
}

.custom-select:focus {
    outline: none;
    border-bottom-color: var(--color-accent);
}

/* Para que las opciones del select se vean bien en sistemas operativos claros */
.custom-select option {
    background-color: var(--color-primary);
    color: #fff;
}

.select-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-accent);
    pointer-events: none;
}

/* Clase auxiliar para ocultar suavemente */
.hidden {
    display: none !important;
}

/* =========================================
   FOOTER
   ========================================= */
.main-footer {
    background-color: var(--color-primary);
    color: var(--color-text-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 20px;
}

.footer-title {
    font-family: var(--font-body);
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: normal;
}

.footer-credits {
    font-size: 0.6rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-credits a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-credits a:hover {
    color: #fff;
}