* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --cream: #dbccb4;
    --taupe: #a5856e;
    --brown: #694e37;
    --terracotta: #a45c36;
    --sand: #b9a078;
    --gold: #a98250;
}

html { scroll-behavior: smooth; }

body {
    width: min(100%, 480px);
    min-width: 0;
    margin: 0 auto;
    overflow-x: hidden;
    color: #3d3028;
    font-family: Georgia, serif;
    background: #d8cbb7;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(248, 239, 226, .1), rgba(248, 239, 226, .1)), url("../assets/fotos/a_textured_vintage_wedding_stationery_background_s.png");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}

body > * { position: relative; z-index: 1; }

.portada {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: rgba(216, 203, 183, .18);
}

.contenido-portada {
    width: 100%;
    padding: 24px 12px;
    text-align: center;
}

.eyebrow {
    font: 9px Arial, sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.sobre {
    width: calc(100% - 8px);
    position: relative;
    margin: 20px auto 0;
    cursor: pointer;
    filter: drop-shadow(0 25px 28px rgba(67, 44, 28, .22));
}

.imagen-sobre {
    display: block;
    width: 100%;
    height: auto;
    user-select: none;
    border-radius: 2px;
    animation: entrada-sobre .9s cubic-bezier(.2, .8, .2, 1) both;
    transition: transform .9s cubic-bezier(.2, .8, .2, 1), filter .9s ease;
}

.sobre.abierto .imagen-sobre {
    transform: translateY(-18px) scale(1.015);
    filter: saturate(.96) brightness(1.02);
}

@keyframes entrada-sobre {
    from { opacity: 0; transform: translateY(18px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.boton-deslizar,
.boton-whatsapp,
.boton-ubicacion,
.dia-itinerario {
    min-height: 48px;
    border: 1px solid var(--gold);
    border-radius: 10px 22px 10px 22px;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(61, 42, 27, .14), inset 0 0 0 1px rgba(255, 247, 226, .22);
    transition: transform .3s ease, background .3s ease, color .3s ease, box-shadow .3s ease;
    animation: aparecer-boton .7s ease both;
}

.boton-deslizar {
    margin-top: 22px;
    padding: 10px 12px;
    color: #fffaf0;
    background: rgba(105, 78, 55, .82);
    font-size: 10px;
    letter-spacing: 2px;
}

.boton-deslizar::before,
.boton-deslizar::after { content: "*"; margin: 0 8px; color: var(--sand); }
.boton-deslizar span { display: block; margin-top: 7px; font-size: 18px; animation: bajar 1.5s infinite; }

@keyframes bajar { 50% { transform: translateY(7px); } }
@keyframes aparecer-boton { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.boton-deslizar:hover,
.boton-whatsapp:hover,
.boton-ubicacion:hover,
.dia-itinerario:hover,
.carrusel-control:hover { transform: scale(1.025); }

.boton-deslizar:active,
.boton-whatsapp:active,
.boton-ubicacion:active,
.dia-itinerario:active,
.carrusel-control:active { transform: translateY(2px) scale(.99); }

.boton-deslizar:focus-visible,
.boton-whatsapp:focus-visible,
.boton-ubicacion:focus-visible,
.dia-itinerario:focus-visible,
.carrusel-control:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.boton-audio {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 20;
    display: none;
    padding: 12px 18px;
    border: 1px solid var(--gold);
    border-radius: 999px;
    background: rgba(105, 78, 55, .92);
    color: #fffaf0;
    font: 700 12px Arial, sans-serif;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(61, 42, 27, .2);
}

.boton-audio.visible { display: inline-flex; }

.bienvenida,
.hacienda-fotos,
.invitado-personalizado,
.proveedores,
.confirmacion,
.ubicacion,
.dress-code,
.itinerario,
.cierre {
    width: 100%;
    padding: 64px 16px 76px;
    background: rgba(248, 242, 235, .2);
}

.contenido,
.contenido-invitado,
.contenido-proveedores,
.contenido-confirmacion,
.contenido-ubicacion,
.contenido-dress-code,
.contenido-itinerario,
.contenido-cierre,
.encabezado-hacienda { width: 100%; max-width: 800px; margin: 0 auto; text-align: center; }

.bienvenida h2 { margin: 24px 0; font-size: clamp(38px, 11vw, 54px); font-weight: 400; line-height: .98; }
.texto-bienvenida, .texto-confirmacion, .texto-dress-code { color: #5d4b3f; line-height: 1.6; }
.texto-bienvenida { font-size: 17px; }
.texto-bienvenida em { display: block; width: max-content; max-width: 100%; margin: 8px auto 0; color: var(--terracotta); font-size: clamp(26px, 8vw, 38px); font-style: italic; white-space: nowrap; }

.hacienda-fotos { padding-top: 64px; }
.encabezado-hacienda { margin-bottom: 30px; }
.encabezado-hacienda h3, .confirmacion h3, .ubicacion h3, .itinerario h3 { margin: 16px 0 28px; color: #3d3028; line-height: 1.1; }
.encabezado-hacienda h3 { font-size: clamp(30px, 8vw, 46px); font-weight: 400; }
.confirmacion h3 { font-size: clamp(30px, 8vw, 48px); }
.ubicacion h3 { font-size: clamp(28px, 7vw, 42px); font-weight: 500; }
.itinerario h3 { font-size: clamp(32px, 8vw, 48px); font-weight: 500; }

.carrusel-hacienda { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 auto; }
.carrusel-viewport { flex: 1 1 auto; min-width: 0; overflow: hidden; border-radius: 16px; box-shadow: 0 18px 40px rgba(50, 35, 25, .12); }
.carrusel-track { display: flex; width: 100%; transition: transform .5s ease; }
.carrusel-track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.carrusel-control { width: 40px; height: 40px; flex: 0 0 40px; border: 1px solid var(--gold); border-radius: 50%; background: rgba(255, 250, 239, .84); color: var(--brown); font-size: 26px; line-height: 1; }

.invitado-personalizado { padding-top: 36px; padding-bottom: 36px; }
.texto-invitado { color: #5d4b3f; font-size: 21px; line-height: 1.4; }
.nombre-invitado { display: inline-block; margin-top: 10px; color: var(--brown); font-size: clamp(24px, 7vw, 38px); text-decoration: none; border-bottom: 2px solid rgba(61, 48, 40, .3); }

.proveedores { background: rgba(243, 235, 223, .24); }
.texto-proveedores { color: #3d3028; font-size: clamp(20px, 6vw, 28px); line-height: 1.45; }
.logos-proveedores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 8px; align-items: center; justify-items: center; width: 100%; max-width: 760px; margin: 30px auto 0; }
.logos-proveedores img { width: min(100%, 110px); height: 64px; object-fit: contain; filter: grayscale(15%); opacity: .9; }
.fecha-evento { display: flex; flex-direction: column; gap: 7px; margin-top: 30px; color: var(--brown); font: 700 clamp(18px, 5vw, 26px) Arial, sans-serif; letter-spacing: 1px; text-transform: uppercase; }
.cuenta-regresiva { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.contador-item { flex: 1 1 calc(50% - 10px); min-width: 0; padding: 14px 8px; background: rgba(255, 255, 255, .45); border: 1px solid rgba(166, 121, 88, .2); border-radius: 12px; box-shadow: 0 10px 24px rgba(61, 48, 40, .08); }
.contador-item span { display: block; color: var(--terracotta); font-size: 30px; font-weight: 600; }
.contador-item small { display: block; margin-top: 5px; color: #5c483d; font: 10px Arial, sans-serif; letter-spacing: 1px; }

.confirmacion { background: rgba(248, 243, 238, .24); }
.texto-confirmacion { margin-bottom: 24px; font-size: 20px; }
.boton-whatsapp, .boton-ubicacion { position: relative; display: inline-block; width: min(100%, 320px); padding: 16px 42px; color: #fff8ed; text-align: center; text-decoration: none; background: linear-gradient(135deg, rgba(164, 92, 54, .94), rgba(145, 78, 52, .94)); font-size: 14px; }
.boton-ubicacion { color: var(--brown); background: linear-gradient(135deg, rgba(255, 250, 239, .9), rgba(219, 204, 180, .86)); }
.boton-whatsapp::after, .boton-ubicacion::after { content: "*"; position: absolute; right: 14px; color: var(--sand); }
.icono-ubicacion { margin-bottom: 16px; font-size: 46px; }
.dress-code { background: rgba(248, 242, 236, .2); }
.dress-code h3 { margin: 16px 0; color: var(--brown); font-size: clamp(40px, 11vw, 64px); font-weight: 500; }
.texto-dress-code { font-size: 20px; }

.itinerario { background: rgba(255, 250, 245, .25); }
.selector-itinerario { display: flex; flex-direction: column; gap: 10px; width: min(100%, 260px); margin: 0 auto 30px; }
.dia-itinerario { width: 100%; padding: 12px 18px; color: var(--brown); background: rgba(255, 250, 239, .72); font-size: 14px; }
.dia-itinerario.activo { color: #fff8ed; background: rgba(164, 92, 54, .9); }
.lista-itinerario { border-top: 1px solid rgba(93, 75, 63, .3); }
.momento-itinerario { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 10px; padding: 17px 0; text-align: left; border-bottom: 1px solid rgba(93, 75, 63, .3); }
.hora-itinerario { color: var(--taupe); font: 700 13px Arial, sans-serif; }
.actividad-itinerario { color: #5d4b3f; font-size: 17px; line-height: 1.3; }
.musica-itinerario { grid-column: 2; color: var(--taupe); font: 700 11px Arial, sans-serif; text-transform: uppercase; }

.cierre { background: rgba(245, 239, 232, .22); }
.mensaje-cierre, .mensaje-espera { color: #4b3d35; font-size: 21px; line-height: 1.55; }
.mensaje-cierre { margin-bottom: 26px; font-style: italic; }
.creditos-finales {
    margin-top: 34px;
    text-align: center;
    color: #8a7165;
    font: 10px Arial, sans-serif;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}
.creditos-finales p { margin: 4px 0; }
.logo-alphabetica { display: block; width: 58px; height: 18px; margin: 10px auto 0; object-fit: contain; }

.petalo, .particula { position: fixed; pointer-events: none; z-index: 999; }
.petalo { top: -30px; width: 18px; height: 27px; opacity: 0; background: #d9a995; border-radius: 70% 30% 70% 30%; animation: caerPetalo linear infinite; }
@keyframes caerPetalo { 0% { opacity: 0; transform: translate3d(0, -30px, 0) rotate(0); } 10% { opacity: .75; } 45% { transform: translate3d(var(--desplazamiento), 50vh, 0) rotate(180deg); } 100% { opacity: 0; transform: translate3d(calc(var(--desplazamiento) * -1), 110vh, 0) rotate(360deg); } }
.particula { width: 6px; height: 6px; border-radius: 50%; background: rgba(185, 160, 120, .8); box-shadow: 0 0 12px rgba(185, 160, 120, .7); opacity: 0; animation: flotarParticula ease-in-out infinite; }
@keyframes flotarParticula { 0%, 100% { opacity: 0; transform: translateY(20px) scale(.5); } 30% { opacity: .9; } 70% { opacity: .35; } }

@media (min-width: 481px) {
    body { box-shadow: 0 0 42px rgba(61, 42, 27, .2); }
}
