body {
    margin: 0;
    font-family: 'Cormorant Garamond', serif;
    background-color: #f5f1e8;
    color: #4e463f;
    text-align: center;
}

/* PANTALLA INICIAL */
#intro {
    position: fixed;
    width: 100%;
    height: 100vh;
    background: url("images/mallos-acuarela.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 1.5s ease;
}

.intro-content {
    background: rgba(255, 255, 255, 0.8);
    padding: 50px;
    border-radius: 15px;
    text-align: center;
}

#intro h2 {
    font-size: 2rem;
    margin-bottom: 30px;
}

#openBtn {
    padding: 15px 40px;
    border: none;
    border-radius: 30px;
    background-color: #6b7a52;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s ease;
}

#openBtn:hover {
    background-color: #556341;
}

/* DESTELLO */
.sparkle-hidden {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(255, 223, 146, 0.6) 0%, rgba(255,223,146,0) 70%);
    opacity: 0;
    transition: opacity 0.6s ease-out;
    border-radius: 15px;
}

.hidden { display: none; }

/* HERO */
.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    background: url("images/mallos-acuarela.jpg") center/cover no-repeat;
    z-index: -1;
    transform: translateY(0);
}

.overlay {
    background: rgba(255, 255, 255, 0.75);
    padding: 40px;
    border-radius: 12px;
}

h1 { font-size: 3.5rem; }
.fecha { font-size: 1.5rem; }

.btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 30px;
    background-color: #6b7a52;
    color: white;
    text-decoration: none;
    border-radius: 30px;
}

/* INFO */
.info, .mapa {
    padding: 50px 20px;
}

iframe {
    width: 90%;
    height: 400px;
    border: none;
    border-radius: 10px;
}

/* MUSICA */
.music-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    text-align: right;
}

.music-toggle {
    background-color: #6b7a52;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    transition: 0.3s ease;
    animation: softPulse 3s infinite ease-in-out;
}

.music-toggle:hover { background-color: #556341; }

.spotify-hidden { display: none; margin-top: 10px; width: 300px; }

/* LATIDO */
@keyframes softPulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 122, 82, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 0 15px 5px rgba(107, 122, 82, 0.15); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(107, 122, 82, 0); }
}

/* PETALOS */
/*#petals { position: fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:10; overflow:hidden; }
.petal { position:absolute; width:20px; height:20px; background:url('images/petal.png') no-repeat center/contain; opacity:0.8; will-change: transform; }

/* INTRO FULLSCREEN */
#intro {
    position: fixed;
    inset: 0;
    background: #f4f1ea;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* ENVOLTORIO */
.envelope-wrapper {
    perspective: 1000px;
}

/* SOBRE */
.envelope {
    position: relative;
    width: 340px;
    height: 220px;
    background: #f8f5ee;
    border: 1px solid #d8d2c8;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
}

/* SOLAPA */
.flap {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #ece6dc;
    clip-path: polygon(0 0, 100% 0, 50% 55%);
    transform-origin: top;
    transition: transform 1.2s ease;
    z-index: 3;
}

/* CARTA */
.letter {
    position: absolute;
    width: 90%;
    height: 160px;
    background: white;
    top: 30px;
    left: 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 1.2s ease;
    z-index: 2;
}

.letter h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.letter p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.letter button {
    padding: 8px 20px;
    border-radius: 20px;
    border: none;
    background: #6b7a52;
    color: white;
    cursor: pointer;
}

/* ESTADO ABIERTO */
.envelope.open .flap {
    transform: rotateX(-180deg);
}

.envelope.open .letter {
    transform: translateY(-100px);
}

/* OCULTO */
.hidden {
    display: none;
}

/* ===== BOTONES RSVP PRO ===== */

.rsvp-btn {
    position: relative;
    padding: 18px 45px;
    font-size: 1.1rem;
    border-radius: 50px;
    border: 1.5px solid #d4b57a;
    background: linear-gradient(135deg, #6b7a52, #8b9a6b);
    color: white;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    letter-spacing: 0.5px;
    transition: all 0.4s ease;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Brillo */
.rsvp-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.1),
        rgba(255,255,255,0.4),
        rgba(255,255,255,0.1)
    );
    transform: skewX(-25deg);
}

.rsvp-btn:hover::before {
    animation: shine 0.9s forwards;
}

@keyframes shine {
    100% {
        left: 130%;
    }
}

.rsvp-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.25);
}

.rsvp-btn.no {
    background: linear-gradient(135deg, #510c0c, #510c0c);
    color: #fcfcfc;
    border: 1.5px solid #cbb88a;
}  
.guest-selector {
    text-align: center;
    margin-bottom: 20px;
}

.guest-selector p {
    margin-bottom: 15px;
}

.guest-btn {
    padding: 10px 25px;
    margin: 5px;
    border-radius: 30px;
    border: 1px solid #d4b57a;
    background: #f4f1ea;
    cursor: pointer;
    transition: 0.3s;
    font-family: inherit;
}

.guest-btn.active {
    background: linear-gradient(135deg, #6b7a52, #8b9a6b);
    color: white;
}

.guest-btn:hover {
    transform: scale(1.05);
}

.hidden {
    display: none;
}

/* CONTENEDOR FORMULARIO */
.confirmacion {
    max-width: 700px;
    margin: 60px auto;
    padding: 50px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    text-align: center;
    animation: fadeIn 1s ease;
}

/* TÍTULO */
.confirmacion h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #7b4f2c;
}

.confirmacion p {
    margin-bottom: 25px;
    font-size: 18px;
}

/* INPUTS Y SELECTS */
.confirmacion input,
.confirmacion select,
.confirmacion textarea {
    width: 100%;
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: 'Cormorant Garamond', serif;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* EFECTO AL HACER CLICK */
.confirmacion input:focus,
.confirmacion select:focus,
.confirmacion textarea:focus {
    border-color: #8a9a5b;
    outline: none;
    box-shadow: 0 0 0 3px rgba(138,154,91,0.2);
}

/* TEXTAREA */
.confirmacion textarea {
    resize: none;
    min-height: 90px;
}

/* BOTÓN CONFIRMAR */
.btn-confirmar {
    margin-top: 20px;
    padding: 14px 30px;
    background: linear-gradient(135deg, #8a9a5b, #a3b676);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(138,154,91,0.3);
}

.btn-confirmar:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(138,154,91,0.4);
}

/* BOTONES PERSONAS */
.guest-btn {
    padding: 10px 22px;
    margin: 10px 5px;
    border-radius: 25px;
    border: 1px solid #c8a96a;
    background: transparent;
    cursor: pointer;
    font-family: 'Cormorant Garamond', serif;
    transition: all 0.3s ease;
}

.guest-btn:hover {
    background: #c8a96a;
    color: white;
}

.guest-btn.active {
    background: #8a9a5b;
    color: white;
    border: none;
}

/* ANIMACIÓN */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}


/* ===== CÓDIGO DE VESTIMENTA ===== */
.vestimenta {
    padding: 70px 20px;
    background: #faf7f2;
    text-align: center;
}

.vestimenta h2 {
    font-size: 2.2rem;
    color: #4e463f;
    margin-bottom: 8px;
}

.vestimenta-subtitulo {
    font-size: 1.1rem;
    color: #9e8c75;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 50px;
}

.vestimenta-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
}

.vestimenta-bloque {
    background: white;
    border-radius: 20px;
    padding: 40px 35px;
    width: 360px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    text-align: center;
}

.vestimenta-icono {
    font-size: 2.8rem;
    margin-bottom: 12px;
}

.vestimenta-bloque h3 {
    font-size: 1.6rem;
    color: #7b4f2c;
    margin-bottom: 10px;
}

.vestimenta-bloque p {
    font-size: 1rem;
    color: #6e6259;
    line-height: 1.6;
    margin-bottom: 25px;
}

.paleta-titulo {
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #9e8c75;
    margin-bottom: 12px;
}

.prohibido-titulo {
    margin-top: 22px;
    color: #a04040;
}

.paleta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 5px;
}

.color-chip {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}

.color-chip:hover {
    transform: scale(1.2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Cruz en los colores prohibidos */
.color-chip.prohibido::after {
    content: "✕";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    color: rgba(150, 0, 0, 0.75);
    font-weight: bold;
    text-shadow: 0 0 3px rgba(255,255,255,0.8);
}

.vestimenta-nota {
    margin-top: 45px;
    font-size: 0.95rem;
    color: #9e8c75;
    letter-spacing: 1px;
}

@media (max-width: 600px) {
    .vestimenta-bloque {
        width: 100%;
        padding: 30px 20px;
    }
}