html {
    max-width: 100vw;
}

body {
    background-color: #000;
    /*color: white;
    font-family: 'Arial Black', sans-serif;*/
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    max-width: 100vw;
}

iframe,
img,
video {
    max-width: 100%;
    box-sizing: border-box;
}

/* ── Logotipo portada ── */
.block-5 {
    position: relative;
}

.portada-logo {
    position: absolute;
    top: 2.1875em; /* 35px */
    left: 50%;
    transform: translateX(-50%);
    max-width: 9.375em; /* 150px */
    max-height: 9.375em; /* 150px */
    width: auto;
    height: auto;
    object-fit: contain;
    z-index: 10;
}

/* Menú de Control */
.controls {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    padding: 10px 20px;
    border-radius: 50px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    /* Asegurar que siempre esté por encima en contextos 3D */
    transform: translateX(-50%) translateZ(10000px) !important;
    transform-style: preserve-3d !important;
}

button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.8rem;
    font-family: Arial, Helvetica, sans-serif;
}

button.active {
    background: #ff4757;
    color: white;
    font-weight: bold;
    box-shadow: 0 0 15px rgba(255, 71, 87, 0.5);
}


/* Configuración de Tarjetas */
.card {
    /*width: 100vw !important;*/
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    /*font-size: clamp(2rem, 10vw, 6rem);*/
    position: relative !important;
    background-size: cover;
    background-position: center;
    view-timeline-name: --card-tl !important;
    overflow: visible !important;
    scrollbar-width: none !important;
    padding: 6.25rem 10px !important;
    /*text-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);*/
}

.card::-webkit-scrollbar {
    display: none !important;
}

/* Todos los cards animados tienen z-index base 1; el card con divisor lo sobreescribe a 100 via inline style */
#blocks-container[class*="style-"]>.card {
    z-index: 1;
}

/* Sin animación de página: altura automática con padding */
#blocks-container:not([class*="style-"])>.card {
    height: auto !important;
    min-height: unset !important;
    padding-top: 100px !important;
    padding-bottom: 100px !important;
    overflow: visible !important;
}

/* Portada usa su propio campo de altura → respetar */
#blocks-container:not([class*="style-"])>.card.altura-del-bloque {
    min-height: var(--altura-del-bloque, 100vh) !important;
    padding-top: 10px !important;
    padding-bottom: 10px !important;
}

/* Galería: stacked y coverflow también usan aspect-ratio */
.gal-stacked,
.gal-coverflow {
    width: 100%;
    aspect-ratio: 4 / 3;
}

/* Con animación de página: 100vh para scroll effects */
#blocks-container[class*="style-"]>.card {
    min-height: 100vh !important;
    height: auto !important;
    padding-top: 6.25rem !important;
    padding-bottom: 6.25rem !important;
}

/* Primer bloque con animación: sin padding vertical ni animación scroll */
#blocks-container[class*="style-"]>.card:first-child {
    padding-top: 0 !important;
    padding-bottom: 6.25rem !important;
    animation: none !important;
}

.card::before {
    content: '';
    position: absolute;
    /*inset: 0;*/
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

h2 {
    position: relative;
    z-index: 2;
    margin: 0;
}

/* ── Recuadro semitransparente de fondo ─────────────────────────────────── */
.block-content-overlay {
    display: none !important;
    position: absolute;
    inset: 5%;
    z-index: 1;
    pointer-events: none;
    border-radius: 16px;
    background: color-mix(in srgb, var(--color-1, #ffffff) 70%, transparent);
    animation: none !important;
    opacity: 0 !important;
}

/* Neutralizar ea-animate-N aunque ya esté puesto en el DOM */
.block-content-overlay[class*="ea-animate"] {
    animation: none !important;
    opacity: 0 !important;
}

.card.recuadro-semitransparente .block-content-overlay {
    display: block !important;
    opacity: 1 !important;
}

/* Elevar contenido del card por encima del overlay */
.card.recuadro-semitransparente > *:not(.block-content-overlay):not(.block-divider) {
    position: relative;
    z-index: 2;
}

/* --- LOS 6 ESTILOS RECUPERADOS Y MEJORADOS --- */

/* 1. STACKING (Efecto Capas) */
.style-stack .card {
    position: sticky !important;
    top: 0 !important;
    transform-origin: top center !important;
    will-change: transform, filter;
}

@supports (animation-timeline: scroll()) {
    .style-stack .card {
        animation: stack-anim linear both !important;
        animation-timeline: --card-tl !important;
        animation-range: exit 0% exit 100% !important;
    }
}

@keyframes stack-anim {
    to {
        transform: scale(0.75) translateY(-30px);
        filter: blur(4px) brightness(0.4);
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
    }
}

/* 2. SIDE SLIDE (Izquierda/Derecha) */
.style-side {
    overflow-x: clip;
}

.style-side .card {
    will-change: transform;
}

@supports (animation-timeline: scroll()) {
    .style-side .card {
        animation: side-anim ease-out both !important;
        animation-timeline: --card-tl !important;
        animation-range: entry 0% cover 50% !important;
    }

    @media (max-width: 768px) {
        .style-side .card {
            animation-range: entry 0% entry 60% !important;
        }
    }
}

.style-side .card:nth-child(even) {
    --x: -100vw;
}

.style-side .card:nth-child(odd) {
    --x: 100vw;
}

@keyframes side-anim {
    from {
        transform: translateX(var(--x));
    }

    to {
        transform: translateX(0);
    }
}

/* 3. FOCUS ZOOM (Efecto Lente / Enfoque) */
.style-focus .card {
    will-change: transform, filter, opacity;
}

@supports (animation-timeline: scroll()) {
    .style-focus .card {
        animation: focus-anim linear both !important;
        animation-timeline: --card-tl !important;
        animation-range: entry 0% exit 100% !important;
    }
}

@keyframes focus-anim {
    0% {
        transform: scale(1.8) translateY(60px);
        filter: blur(20px) brightness(0.3);
        opacity: 0;
        animation-timing-function: ease-out;
    }

    /* Plateau amplio: se queda estable del 25% al 75% */
    25% {
        transform: scale(1) translateY(0);
        filter: blur(0px) brightness(1);
        opacity: 1;
    }

    75% {
        transform: scale(1) translateY(0);
        filter: blur(0px) brightness(1);
        opacity: 1;
        animation-timing-function: ease-in;
    }

    100% {
        transform: scale(0.3) translateY(-40px);
        filter: blur(15px) brightness(0.2);
        opacity: 0;
    }
}

/* 4. CURTAIN (Efecto Círculo Expandible) */
.style-curtain .card {
    will-change: transform, opacity;
}

@supports (animation-timeline: scroll()) {
    .style-curtain .card {
        animation: curtain-anim ease-out both !important;
        animation-timeline: --card-tl !important;
        animation-range: entry 0% entry 100% !important;
    }
}

@keyframes curtain-anim {
    from {
        opacity: 0;
        transform: scale(0.3);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 5. FLOTAR — Rise desde abajo */
.style-rise .card {
    opacity: 0;
    will-change: transform, opacity;
}

/* La portada siempre visible — animation:none !important del primer hijo cancelaría rise-in */
.style-rise .card:first-child,
.style-fold .card:first-child {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
}

/* Animación se dispara al agregar io-visible — siempre corre desde 0, sin el problema
   de "misma-tick" que tienen las transitions cuando el estado inicial no fue pintado */
.style-rise .card.io-visible {
    animation: rise-in 1.2s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(160px) scale(0.93);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 7. PLEGADO — Unfold desde arriba */
.style-fold {
    perspective: 1000px;
}

.style-fold .card {
    opacity: 0;
    transform-origin: top center;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.style-fold .card.io-visible {
    animation: fold-in 1.2s cubic-bezier(.34, 1.4, .64, 1) both;
}

@keyframes fold-in {
    from {
        opacity: 0;
        transform: rotateX(-75deg) translateY(-60px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* 6. SOFT REVEAL (Perspectiva) */
.style-reveal .card {
    perspective: 1200px !important;
    will-change: transform, filter, opacity;
}

@supports (animation-timeline: scroll()) {
    .style-reveal .card {
        animation: reveal-anim ease-out both !important;
        animation-timeline: --card-tl !important;
        animation-range: entry 0% cover 50% !important;
    }
}

@keyframes reveal-anim {
    from {
        /* Empieza pequeño, lejos, rotado y borroso */
        transform: translateZ(-400px) rotateX(45deg) translateY(200px);
        opacity: 0;
        filter: blur(20px) brightness(0);
    }

    /* El punto 50% de la animación (opcional para control extra) */
    to {
        /* Termina en su posición natural, nítido y brillante */
        transform: translateZ(0) rotateX(0deg) translateY(0);
        opacity: 1;
        filter: blur(0px) brightness(1);
    }
}

/* ===================================================
   UBICACIÓN — botón Ver en Maps
   =================================================== */
.loc-maps-btn {
    display: inline-block;
    margin-top: 1rem;
    padding: .6rem 1.6rem;
    border-radius: var(--btn-radius, 999px);
    font-family: Arial, Helvetica, sans-serif;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-decoration: none;
    background-color: var(--btn-bg, var(--color-1, #667eea));
    color: var(--btn-text, var(--color-3, #fff));
    transition: background-color 0.2s, opacity 0.2s;
}

a.loc-maps-btn:hover {
    background-color: var(--btn-hover) !important;
    color: var(--btn-text, #fff) !important;
    text-decoration: none !important;
}

a.loc-maps-btn:active {
    filter: brightness(.92);
    transform: translateY(0);
}

/* ===================================================
   COUNTDOWN — tipos de reloj y tamaños
   =================================================== */

/* Wrapper común */
.cd-titulo {
    text-align: center;
    padding: .5rem 1rem 0;
    color: var(--color-3, #fff);
}

.cd-wrapper {
    padding: 1.5rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

/* Proporciones de tamaño del reloj: 30%, 60%, 90% del ancho disponible */
.cd-wrapper[data-tamao="pequeo"] {
    width: 30vw;
    max-width: 90%;
}

.cd-wrapper[data-tamao="mediano"] {
    width: 60vw;
    max-width: 90%;
}

.cd-wrapper[data-tamao="grande"] {
    width: 90vw;
    max-width: 100%;
}

/* Ocultar tipos inactivos */
.cd-wrapper .cd-circular,
.cd-wrapper .cd-analogico {
    display: none;
}

.cd-wrapper[data-tipo="circular"] .cd-digital,
.cd-wrapper[data-tipo="circular"] .cd-analogico {
    display: none;
}

.cd-wrapper[data-tipo="circular"] .cd-circular {
    display: flex;
}

.cd-wrapper[data-tipo="analgico"] .cd-digital,
.cd-wrapper[data-tipo="analgico"] .cd-circular {
    display: none;
}

.cd-wrapper[data-tipo="analgico"] .cd-analogico {
    display: flex;
}

/* ── Digital ── */
.cd-digital {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cd-digit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
}

.cd-digit span {
    font-size: 2.4rem;
    font-weight: 700;
    line-height: 1;
    font-family: var(--font-primary, monospace);
    color: var(--color-3, #fff);
}

.cd-digit small {
    font-family: var(--font-secondary, sans-serif);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--color-4, rgba(255, 255, 255, .7));
    line-height: 1;
}

.cd-sep {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--color-3, #fff);
    align-self: flex-start;
    padding-top: .1rem;
}

/* Digital — tamaños responsive (clamp: min | vw proporcional | max desktop) */
.cd-wrapper[data-tamao="pequeo"] .cd-digital {
    gap: clamp(0.2rem, 0.8vw, 1.4rem);
    flex-wrap: nowrap;
}

.cd-wrapper[data-tamao="pequeo"] .cd-digit span {
    font-size: clamp(1rem, 3.5vw, 2.4rem);
}

.cd-wrapper[data-tamao="pequeo"] .cd-digit small {
    font-size: clamp(0.5rem, 1.2vw, 0.75rem);
}

.cd-wrapper[data-tamao="pequeo"] .cd-sep {
    font-size: clamp(0.9rem, 3vw, 2.2rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-digital {
    gap: clamp(0.3rem, 1.2vw, 1.4rem);
    flex-wrap: nowrap;
}

.cd-wrapper[data-tamao="mediano"] .cd-digit span {
    font-size: clamp(1.5rem, 7vw, 3.5rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-digit small {
    font-size: clamp(0.65rem, 1.8vw, 1rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-sep {
    font-size: clamp(1.3rem, 6.5vw, 3.2rem);
}

.cd-wrapper[data-tamao="grande"] .cd-digital {
    gap: clamp(0.3rem, 1.5vw, 1.4rem);
    flex-wrap: nowrap;
}

.cd-wrapper[data-tamao="grande"] .cd-digit span {
    font-size: clamp(2.5rem, 11vw, 7.5rem);
}

.cd-wrapper[data-tamao="grande"] .cd-digit small {
    font-size: clamp(0.8rem, 2.8vw, 2rem);
}

.cd-wrapper[data-tamao="grande"] .cd-sep {
    font-size: clamp(2.2rem, 10vw, 7rem);
}

/* ── Circular ── */
.cd-circular {
    display: flex;
    gap: 1.6rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.cd-ring-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cd-ring-svg {
    width: 80px;
    height: 80px;
    transform: rotate(-90deg);
}

.cd-ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, .15);
    stroke-width: 7;
}

.cd-ring-fg {
    fill: none;
    stroke: var(--color-3, #fff);
    stroke-width: 7;
    stroke-linecap: round;
    transition: stroke-dashoffset .8s ease;
}

.cd-ring-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.cd-ring-inner span {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--color-3, #fff);
    font-family: var(--font-primary, monospace);
}

.cd-ring-inner small {
    font-family: var(--font-secondary, sans-serif);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--color-4, rgba(255, 255, 255, .7));
    line-height: 1;
}

/* Circular — tamaños responsive */
.cd-wrapper[data-tamao="pequeo"] .cd-circular {
    gap: clamp(0.3rem, 1vw, 1.6rem);
}

.cd-wrapper[data-tamao="pequeo"] .cd-ring-svg {
    width: clamp(3rem, 7vw, 6.5rem);
    height: clamp(3rem, 7vw, 6.5rem);
}

.cd-wrapper[data-tamao="pequeo"] .cd-ring-inner span {
    font-size: clamp(0.8rem, 2.8vw, 1.5rem);
}

.cd-wrapper[data-tamao="pequeo"] .cd-ring-inner small {
    font-size: clamp(0.4rem, 0.9vw, 0.55rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-circular {
    gap: clamp(0.3rem, 1.5vw, 1.6rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-ring-svg {
    width: clamp(4.5rem, 12vw, 9.5rem);
    height: clamp(4.5rem, 12vw, 9.5rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-ring-inner span {
    font-size: clamp(1rem, 4.5vw, 2.2rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-ring-inner small {
    font-size: clamp(0.45rem, 1vw, 0.8rem);
}

.cd-wrapper[data-tamao="grande"] .cd-circular {
    gap: clamp(0.3rem, 2vw, 1.6rem);
}

.cd-wrapper[data-tamao="grande"] .cd-ring-svg {
    width: clamp(6rem, 18vw, 15rem);
    height: clamp(6rem, 18vw, 15rem);
}

.cd-wrapper[data-tamao="grande"] .cd-ring-inner span {
    font-size: clamp(1.3rem, 7vw, 3.5rem);
}

.cd-wrapper[data-tamao="grande"] .cd-ring-inner small {
    font-size: clamp(0.5rem, 1.5vw, 1.3rem);
}

/* ── Analógico ── */
.cd-analogico {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
}

.cd-days-badge {
    font-family: var(--font-secondary, sans-serif);
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-4, rgba(255, 255, 255, .7));
    letter-spacing: .05em;
    line-height: 1;
}

.cd-clock-svg {
    width: 160px;
    height: 160px;
}

.cd-clock-face {
    fill: rgba(0, 0, 0, .25);
}

.cd-clock-ring {
    fill: none;
    stroke: var(--color-3, rgba(255, 255, 255, .6));
    stroke-width: 1.5;
}

.cd-tick-h {
    stroke: var(--color-3, #fff);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.cd-tick-m {
    stroke: var(--color-4, rgba(255, 255, 255, .4));
    stroke-width: 1;
    stroke-linecap: round;
}

.cd-hand-h {
    stroke: var(--color-3, #fff);
    stroke-width: 5;
    stroke-linecap: round;
}

.cd-hand-m {
    stroke: var(--color-3, #fff);
    stroke-width: 3;
    stroke-linecap: round;
}

.cd-hand-s {
    stroke: var(--color-1, #e74c3c);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.cd-center-dot {
    fill: var(--color-3, #fff);
}

/* Analógico — tamaños responsive */
.cd-wrapper[data-tamao="pequeo"] .cd-days-badge {
    font-size: clamp(0.75rem, 2vw, 1rem);
}

.cd-wrapper[data-tamao="pequeo"] .cd-clock-svg {
    width: clamp(7rem, 28vw, 13rem);
    height: clamp(7rem, 28vw, 13rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-days-badge {
    font-size: clamp(0.9rem, 2.5vw, 1.3rem);
}

.cd-wrapper[data-tamao="mediano"] .cd-clock-svg {
    width: clamp(10rem, 43vw, 19rem);
    height: clamp(10rem, 43vw, 19rem);
}

.cd-wrapper[data-tamao="grande"] .cd-days-badge {
    font-size: clamp(1.2rem, 3.5vw, 2rem);
}

.cd-wrapper[data-tamao="grande"] .cd-clock-svg {
    width: clamp(14rem, 65vw, 28rem);
    height: clamp(14rem, 65vw, 28rem);
}

/* Mensaje "ya es el día" */
.cd-done {
    text-align: center;
    padding: 1em;
    font-size: 1.4rem;
    color: var(--color-3, #fff);
}

/* ===================================================
   ANIMACIONES DE ELEMENTOS
   JS añade la clase ea-animate-N a los hijos de cada card
   cuando la card entra al viewport. fill-mode:both mantiene
   el estado oculto durante animation-delay (stagger).
   =================================================== */

@keyframes elem-bounce-in {
    0% {
        opacity: 0;
        transform: scale(0.6);
    }

    55% {
        opacity: 1;
        transform: scale(1.08);
    }

    75% {
        transform: scale(0.96);
    }

    90% {
        transform: scale(1.02);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes elem-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes elem-from-right {
    from {
        opacity: 0;
        transform: translateX(70px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes elem-from-left {
    from {
        opacity: 0;
        transform: translateX(-70px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes elem-from-bottom {
    from {
        opacity: 0;
        transform: translateY(60px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes elem-from-top {
    from {
        opacity: 0;
        transform: translateY(-60px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes elem-scale-up {
    from {
        opacity: 0;
        transform: scale(0.6);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.ea-animate-1 {
    animation: elem-fade-in 1.5s ease both !important;
}

.ea-animate-2 {
    animation: elem-from-right 1.5s ease-out both !important;
}

.ea-animate-3 {
    animation: elem-from-left 1.5s ease-out both !important;
}

.ea-animate-4 {
    animation: elem-from-bottom 1.5s ease-out both !important;
}

.ea-animate-5 {
    animation: elem-from-top 1.5s ease-out both !important;
}

.ea-animate-6 {
    animation: elem-scale-up 1.5s ease-out both !important;
}

.ea-animate-7 {
    animation: elem-bounce-in 1.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both !important;
}

/* ===================================================
   MODOS DE IMAGEN — cubrir, polaroid, pin
   =================================================== */

/* Wrapper común (figure) */
.img-figure {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.img-figure figcaption {
    margin-top: .5rem;
    font-size: .85rem;
    opacity: .85;
    color: var(--color-3, #fff);
    font-family: var(--font-secondary, inherit);
}

/* 1. CUBRIR — la imagen llena todo el bloque */
.img-mode-cubrir {
    display: block;
    width: 100%;
    max-width: none;
    position: relative;
    overflow: hidden;
}

.img-mode-cubrir img {
    width: 100% !important;
    height: 85vh !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 0 !important;
    box-shadow: 0 12px 48px rgba(0,0,0,0.7), 0 4px 16px rgba(0,0,0,0.5) !important;
}

.img-mode-cubrir figcaption {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    padding: 1.5rem 1rem 1rem !important;
    background: linear-gradient(transparent 0%, rgba(0, 0, 0, .7) 100%) !important;
    color: #fff !important;
    opacity: 1 !important;
    z-index: 2;
    text-shadow: 0 1px 4px rgba(0, 0, 0, .8);
    font-size: 1.2rem;
    margin-top: 0 !important;
}

/* 2. POLAROID — marco blanco clásico */
.img-mode-polaroid {
    background: #fff;
    padding: 12px 12px 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .25), 0 1px 4px rgba(0, 0, 0, .15);
    border-radius: 2px;
    width: 95%;
    max-width: 95%;
}

.img-mode-polaroid img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.img-mode-polaroid figcaption {
    color: #333;
    margin-top: .6rem;
    font-family: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-style: italic;
    font-size: 1.2rem;
    opacity: 1;
}

/* 3. PIN — imagen girada con chincheta */
.img-mode-pin {
    transform: rotate(-4deg);
    width: 95%;
    max-width: 95%;
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .3));
}

.img-mode-pin::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: radial-gradient(circle at 40% 35%, #e74c3c 0%, #c0392b 60%, #922b21 100%);
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .4), inset 0 1px 2px rgba(255, 255, 255, .3);
    z-index: 5;
}

.img-mode-pin img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.img-mode-pin figcaption {
    margin-top: .5rem;
    font-size: 1.2rem;
    background: color-mix(in srgb, var(--color-1, #333) 80%, transparent 20%);
    color: #fff;
    padding: .3rem .8rem;
    border-radius: 3px;
    display: inline-block;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .4);
}

/* Imagen — tamaños reducidos en escritorio */
@media (min-width: 768px) {
    .img-mode-cubrir img {
        height: 60vh !important;
    }
    .img-mode-polaroid {
        max-width: 37.5rem;
        margin-left: auto;
        margin-right: auto;
    }
    .img-mode-pin {
        max-width: 37.5rem;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===================================================
   GALERÍA — carrusel, fade, grid
   =================================================== */

.gallery-block {
    width: 90%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* ── Slider compartido (carousel + fade) ── */
.gal-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gal-track {
    position: relative;
    width: 100%;
}

/* Slides ocultos por defecto — el activo define la altura naturalmente */
.gal-slide {
    display: none;
    width: 100%;
}

.gal-slide.active {
    display: block;
}

.gal-slide img {
    width: 100%;
    height: auto;
    max-height: 65vh;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

/* Animación carousel — slides en transición necesitan position absolute */
.gal-slide.sliding {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transition: transform .5s ease, opacity .5s ease;
}

/* Fade */
.gal-fade .gal-slide.active {
    animation: gal-fade-in .8s ease;
}

@keyframes gal-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Botones prev/next */
.gal-prev,
.gal-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, .4) !important;
    color: #fff !important;
    border: none !important;
    width: 40px;
    height: 40px;
    border-radius: 50% !important;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    padding: 0 !important;
}

.gal-prev:hover,
.gal-next:hover {
    background: rgba(0, 0, 0, .7) !important;
}

.gal-prev {
    left: 12px;
}

.gal-next {
    right: 12px;
}

/* Dots indicadores */
.gal-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    gap: 8px;
}

.gal-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .4);
    cursor: pointer;
    transition: background .2s, transform .2s;
}

.gal-dot.active {
    background: #fff;
    transform: scale(1.3);
}

/* ── Grid / Mosaico ── */
.gal-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    padding: 4px;
    overflow-y: auto;
}

.gal-grid-item {
    overflow: hidden;
    border-radius: 4px;
}

.gal-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}

.gal-grid-item:hover img {
    transform: scale(1.05);
}

/* Primera imagen del grid ocupa 2 columnas */
.gal-grid .gal-grid-item:first-child {
    grid-column: span 2;
}

/* Acomodar grid según cantidad */
.gal-grid .gal-grid-item:nth-child(n+4) {
    grid-column: span 1;
}

/* ── Apiladas — fotos apiladas como cartas ── */
.gal-stacked {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 800px;
    cursor: grab;
}

.gal-stacked:active {
    cursor: grabbing;
}

.gal-stacked .gal-card {
    position: absolute;
    width: 70%;
    max-height: 75%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .35);
    transition: transform .5s ease, opacity .5s ease, box-shadow .5s ease;
    cursor: pointer;
    background: #111;
}

.gal-stacked .gal-card img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Top card */
.gal-stacked .gal-card[data-pos="0"] {
    transform: translateY(0) scale(1) rotate(0deg);
    opacity: 1;
    z-index: 4;
}

/* 2nd */
.gal-stacked .gal-card[data-pos="1"] {
    transform: translateY(12px) scale(.94) rotate(2deg);
    opacity: .85;
    z-index: 3;
}

/* 3rd */
.gal-stacked .gal-card[data-pos="2"] {
    transform: translateY(24px) scale(.88) rotate(-2deg);
    opacity: .65;
    z-index: 2;
}

/* Hidden rest */
.gal-stacked .gal-card[data-pos="3"] {
    transform: translateY(36px) scale(.82) rotate(1.5deg);
    opacity: .35;
    z-index: 1;
}

.gal-stacked .gal-card.exit-card {
    transform: translateX(120%) rotate(15deg) !important;
    opacity: 0 !important;
    transition: transform .45s ease, opacity .45s ease;
}

/* ── Coverflow — efecto 3D tipo álbum ── */
.gal-coverflow {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
    overflow: hidden;
    cursor: grab;
}

.gal-coverflow:active {
    cursor: grabbing;
}

.gal-coverflow .gal-cf-item {
    position: absolute;
    width: 55%;
    max-height: 80%;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
    transition: transform .5s ease, opacity .5s ease, z-index 0s .0s;
    transform-style: preserve-3d;
    background: #111;
}

.gal-coverflow .gal-cf-item img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}

/* Center */
.gal-coverflow .gal-cf-item[data-cf="0"] {
    transform: translateX(0) rotateY(0deg) scale(1);
    opacity: 1;
    z-index: 5;
}

/* Right +1 */
.gal-coverflow .gal-cf-item[data-cf="1"] {
    transform: translateX(60%) rotateY(-35deg) scale(.8);
    opacity: .8;
    z-index: 3;
}

/* Left -1 */
.gal-coverflow .gal-cf-item[data-cf="-1"] {
    transform: translateX(-60%) rotateY(35deg) scale(.8);
    opacity: .8;
    z-index: 3;
}

/* Right +2 */
.gal-coverflow .gal-cf-item[data-cf="2"] {
    transform: translateX(100%) rotateY(-45deg) scale(.6);
    opacity: .4;
    z-index: 1;
}

/* Left -2 */
.gal-coverflow .gal-cf-item[data-cf="-2"] {
    transform: translateX(-100%) rotateY(45deg) scale(.6);
    opacity: .4;
    z-index: 1;
}

/* Hidden */
.gal-coverflow .gal-cf-item[data-cf="hidden"] {
    transform: translateX(0) scale(.3);
    opacity: 0;
    z-index: 0;
    pointer-events: none;
}

/* ═══════════════════════════════════════════
   Bloque Clima — Weather Widget
   ═══════════════════════════════════════════ */
.weather-block {
    text-align: center;
    padding: 10px 0;
}

.weather-widget {
    padding: 0 16px 16px;
}

.weather-loading,
.weather-no-data {
    text-align: center;
    padding: 30px 20px;
    color: var(--color-4, #666);
    font-family: var(--font-secondary, sans-serif);
    font-size: 0.9rem;
}

.weather-card {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 32px 28px 20px;
    max-width: 480px;
    margin: 0 auto;
    font-family: var(--font-secondary, sans-serif);
    color: var(--color-3, #222);
}

.wc-icon {
    font-size: clamp(5rem, 20vw, 10rem);
    line-height: 1;
    margin-bottom: 4px;
}

.wc-temp {
    font-size: clamp(2.5rem, 10vw, 3.8rem);
    font-weight: 700;
    line-height: 1.1;
    font-family: var(--font-primary, sans-serif);
}

.wc-desc {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    color: var(--color-4, #555);
    margin-bottom: 16px;
}

.wc-details {
    display: flex;
    justify-content: space-around;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.wc-detail {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
}

.wc-detail-label {
    font-size: clamp(0.8rem, 2.5vw, 1rem);
    color: var(--color-4, #777);
    margin-bottom: 2px;
}

.wc-detail-val {
    font-size: clamp(1rem, 3vw, 1.3rem);
    font-weight: 600;
}

.wc-hourly {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding-top: 12px;
}

.wc-hourly-title {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--color-4, #666);
    text-align: left;
    margin-bottom: 8px;
}

.wc-hourly-items {
    display: flex;
    justify-content: space-between;
    gap: 4px;
    overflow-x: auto;
}

.wh-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
    flex-shrink: 0;
}

.wh-time {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    color: var(--color-4, #888);
    white-space: nowrap;
}

.wh-icon {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    margin: 2px 0;
}

.wh-temp {
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    font-weight: 600;
}

.wc-banner {
    font-family: var(--font-secondary, sans-serif);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    padding: 6px 16px;
    margin: 0 auto 8px;
    max-width: 400px;
    border-radius: 8px;
    text-align: center;
    line-height: 1.3;
}

.wc-banner-hist {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-3, #333);
}

.wc-banner-forecast {
    background: transparent;
    color: var(--color-4, #888);
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    padding: 2px 16px 6px;
    margin-top: -4px;
}

/* ── YouTube Block ──────────────────────────────── */
.youtube-block {
    width: 100%;
}

.yt-embed-wrap {
    width: 100%;
    max-width: 100%;
    margin: 15px auto 0;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
}

.yt-embed-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.yt-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: var(--color-4, #999);
}

.yt-placeholder i {
    font-size: 3rem;
    color: #ff0000;
    opacity: 0.6;
}

.yt-placeholder span {
    font-size: 0.85rem;
}

/* ── Playlist Block (Spotify, Apple Music, YouTube Music) ── */
/* ── Historia / Timeline ── */
.timeline-block {
    width: 100%;
    padding: 20px 10px;
    box-sizing: border-box;
}

.timeline-track {
    position: relative;
    padding: 1rem 0;
}

/* Línea vertical central */
.timeline-track::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    background: var(--color-3, #333);
    opacity: 0.4;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    width: 45%;
}

/* Alternar izquierda/derecha */
.timeline-item:nth-child(odd) {
    margin-left: 5%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.timeline-item:nth-child(even) {
    margin-left: 50%;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Punto en la línea */
.timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--color-3, #333);
    top: 8px;
    z-index: 1;
}

.timeline-item:nth-child(odd) .timeline-dot {
    right: -6%;
    transform: translateX(50%);
}

.timeline-item:nth-child(even) .timeline-dot {
    left: -6%;
    transform: translateX(-50%);
}

.timeline-img {
    margin-bottom: 0.5rem;
}

.timeline-item:nth-child(odd) .timeline-img {
    transform: rotate(-10deg);
}

.timeline-item:nth-child(even) .timeline-img {
    transform: rotate(10deg);
}

.timeline-img img {
    width: 100%;
    max-width: 240px;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 1/1;
}

.timeline-content {
    background: color-mix(in srgb, var(--color-1, #333) 80%, transparent 20%);
    backdrop-filter: blur(6px);
    border-radius: 10px;
    padding: 0.6rem 0.9rem;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-top: -20px;
    margin-left: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-top: -20px;
    margin-left: -40px;
}

.timeline-fecha {
    font-family: var(--font-primary, inherit);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--color-3, #667eea);
    margin-bottom: 0.2rem;
}

.timeline-desc {
    font-family: var(--font-secondary, inherit);
    font-size: 0.85rem;
    color: var(--color-4, #333);
    line-height: 1.7;
}

/* ── Muro Social ── */
.social-wall-block {
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.social-wall-icon {
    font-size: 3rem;
    margin: 1rem 0;
    opacity: 0.8;
}

[data-origen="1"] .social-wall-icon i {
    color: var(--color-1, #4285F4);
}

[data-origen="2"] .social-wall-icon i {
    color: var(--color-1, #4285F4);
}

[data-origen="3"] .social-wall-icon i {
    color: var(--color-1, #4285F4);
}

[data-origen="4"] .social-wall-icon i {
    color: #E1306C;
}

.social-wall-btn {
    margin-top: 0.8rem;
}

.social-wall-btn a {
    display: inline-block;
    padding: 0.6rem 1.6rem;
    border-radius: var(--btn-radius, 999px);
    background-color: var(--btn-bg, var(--color-1, #667eea));
    color: var(--btn-text, var(--color-3, #fff));
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.social-wall-btn a:hover {
    background-color: var(--btn-hover, var(--btn-bg, #4f5de4));
    transform: translateY(-1px);
}

.social-wall-btn a:active {
    filter: brightness(0.92);
    transform: translateY(0);
}

.social-wall-btn a.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.playlist-block {
    width: 100%;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.playlist-embed-wrap {
    width: 80%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
}

/* Spotify: alto fijo para playlist embed */
[data-plataforma="1"] .playlist-embed-wrap {
    height: 352px;
}

/* Apple Music: alto fijo */
[data-plataforma="2"] .playlist-embed-wrap {
    height: 450px;
}

/* YouTube Music: aspecto 16:9 */
[data-plataforma="3"] .playlist-embed-wrap {
    aspect-ratio: 16 / 9;
}

.playlist-embed-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
}

.playlist-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 12px;
    color: var(--color-4, #999);
}

.playlist-placeholder i {
    font-size: 3rem;
    opacity: 0.6;
}

[data-plataforma="1"] .playlist-placeholder i {
    color: #1DB954;
}

[data-plataforma="2"] .playlist-placeholder i {
    color: #FA243C;
}

[data-plataforma="3"] .playlist-placeholder i {
    color: #FF0000;
}

.playlist-placeholder span {
    font-size: 0.85rem;
}

/* Botón lista colaborativa */
.playlist-colab-btn {
    text-align: center;
    padding: 0.8rem 1rem 0.2rem;
}

.playlist-colab-btn a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.6rem;
    border-radius: var(--btn-radius, 999px);
    background-color: var(--btn-bg, var(--color-1, #667eea));
    color: var(--btn-text, var(--color-3, #fff));
    font-family: Arial, Helvetica, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.playlist-colab-btn a:hover {
    background-color: var(--btn-hover, var(--btn-bg, #4f5de4));
    transform: translateY(-1px);
}

.playlist-colab-btn a:active {
    filter: brightness(0.92);
    transform: translateY(0);
}

.tachado-personalizado {
    text-decoration: line-through;
    text-decoration-color: red;
    text-decoration-style: wavy;
    /* Línea ondulada */
}

/* ── Repeater Preview (Menciones especiales, etc.) ── */
.repeater-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    padding: 1rem 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-sizing: border-box;
    font-family: var(--font-secondary, inherit);
    color: var(--color-3, #333);
}

.repeater-preview-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 12px;
}

/* Layout Lista */
.repeater-layout-list {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.repeater-layout-list .repeater-preview-item {
    width: 85%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.2rem 1rem;
    gap: 0.5rem;
}

.repeater-layout-list .repeater-sf-img img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

/* Layout Tarjeta */
.repeater-layout-card {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.repeater-layout-card .repeater-preview-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem 1rem 1rem;
    flex: 0 0 30vw;
    min-height: 80px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    .repeater-layout-card {
        flex-direction: column;
        align-items: center;
    }

    .repeater-layout-card .repeater-preview-item {
        flex: 0 0 auto;
        width: 88%;
        flex-direction: row;
    }
}

.repeater-layout-card .repeater-sf-img {
    flex-shrink: 0;
}

.repeater-layout-card .repeater-sf-img img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.repeater-layout-card .repeater-sf-nombre,
.repeater-layout-card .repeater-sf-funcion {
    text-align: left;
}

.repeater-sf-info {
    display: flex;
    flex-direction: column;
}

.repeater-layout-list .repeater-sf-info {
    align-items: center;
}

.repeater-layout-card .repeater-sf-info {
    align-items: flex-start;
    justify-content: center;
}

.repeater-sf-nombre {
    font-family: var(--font-primary, inherit);
    font-weight: 600;
    font-size: 2rem;
    line-height: 1.2;
}

.repeater-sf-funcion {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: -0.1rem;
}

/* ── Itinerario Preview ── */
.itinerary-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0;
    width: 100%;
    font-family: var(--font-secondary, inherit);
    color: var(--color-3, #333);
}

/* === Estilo 1: Línea de tiempo === */
.itinerary-timeline {
    position: relative;
    padding-left: 0;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-3, #ccc);
    opacity: 0.25;
    transform: translateX(-50%);
    z-index: 0;
}

.itinerary-timeline .itinerary-item {
    display: flex;
    align-items: center;
    position: relative;
    width: 85%;
    margin: 0.8rem auto;
    gap: 1rem;
}

.itinerary-timeline .itinerary-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    background: var(--color-1, #667eea);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.itinerary-timeline .itinerary-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 0.6rem 1rem;
    min-width: 30vw;
    text-align: center;
    z-index: 1;
}

.itinerary-timeline .itinerary-item:nth-child(odd) {
    flex-direction: row;
}

.itinerary-timeline .itinerary-item:nth-child(even) {
    flex-direction: row-reverse;
}

.itinerary-time {
    font-family: var(--font-secondary, inherit);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
}

.itinerary-activity {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-top: 0.1rem;
}

/* === Estilo 2: Zigzag === */
.itinerary-zigzag {
    position: relative;
}

.itinerary-zigzag::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--color-3, #ccc);
    opacity: 0.25;
    z-index: 0;
    transform: translateX(-50%);
}

.itinerary-zigzag .itinerary-item {
    display: flex;
    align-items: center;
    width: 50%;
    margin: 0.6rem 0;
    position: relative;
    gap: 0.8rem;
}

.itinerary-zigzag .itinerary-item:nth-child(odd) {
    align-self: flex-start;
    flex-direction: row-reverse;
    padding-right: 1.5rem;
    text-align: right;
}

.itinerary-zigzag .itinerary-item:nth-child(even) {
    align-self: flex-end;
    flex-direction: row;
    padding-left: 1.5rem;
    text-align: left;
}

.itinerary-zigzag .itinerary-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-1, #667eea);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.itinerary-zigzag .itinerary-content {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border-radius: 10px;
    padding: 0.5rem 0.8rem;
    min-width: 25vw;
    flex: 1;
    z-index: 1;
}

/* === Estilo 3: Minimalista === */
.itinerary-minimal .itinerary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 80%;
    margin: 0.5rem auto;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(var(--color-3-rgb, 0, 0, 0), 0.1);
}

.itinerary-minimal .itinerary-item:last-child {
    border-bottom: none;
}

.itinerary-minimal .itinerary-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-1, #667eea);
    flex-shrink: 0;
}

.itinerary-minimal .itinerary-content {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    flex: 1;
}

.itinerary-minimal .itinerary-time {
    font-weight: 700;
    font-size: 0.9rem;
    white-space: nowrap;
}

.itinerary-minimal .itinerary-activity {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-top: 0;
}

/* ── Mesa de Regalos Preview ── */
.gift-registry-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 0;
    width: 100%;
    font-family: var(--font-secondary, inherit);
    color: var(--color-3, #333);
}

.gift-registry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border-radius: 12px;
    padding: 1rem 1.2rem;
    transition: transform 0.2s;
}

.gift-registry-icon {
    flex-shrink: 0;
}

.gift-registry-icon img {
    width: 150px;
    max-height: 50px;
    object-fit: contain;
}

.gift-logo-mask {
    display: block;
    width: 150px;
    height: 50px;
    background-color: var(--color-3, #FFFFFF);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.gift-registry-name {
    display: none;
}

.gift-registry-number {
    font-size: 1rem;
    opacity: 0.75;
    margin-top: 0.15rem;
    word-break: break-all;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.gift-copy-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-3, #555);
    opacity: 0.6;
    font-size: 0.85rem;
    padding: 2px 4px;
    transition: opacity 0.2s;
}

.gift-copy-btn:hover {
    opacity: 1;
}

/* ── Foto de inspiración (vestimenta) ── */
img[data-field-key="foto_inspiracion"] {
    max-width: 60vw;
    max-height: 280px;
    object-fit: cover;
    border-radius: 10px;
}

/* Estilo Lista */
.gift-registry-list .gift-registry-item {
    width: 80%;
    max-width: 320px;
}

/* Estilo Tarjeta */
.gift-registry-card {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.gift-registry-card .gift-registry-item {
    flex: 0 0 35vw;
    flex-direction: column;
    text-align: center;
    padding: 1.2rem 1rem;
    gap: 0.5rem;
}

.gift-registry-card .gift-registry-icon img {
    width: 150px;
    max-height: 50px;
    object-fit: contain;
}

.gift-registry-card .gift-registry-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ── Sugerencia de Servicios ── */
.services-preview {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    padding: 0 2vw;
    box-sizing: border-box;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 30%;
    flex: 0 0 30%;
    padding: 0.8rem 0.5rem;
    border-radius: 10px;
    background: rgba(var(--color-3-rgb, 0, 0, 0), 0.05);
    gap: 0.4rem;
}

.service-icon {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--color-1);
    color: var(--color-3);
    font-size: 1.9rem;
}

.service-info {
    min-width: 0;
}

.service-type {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-3);
    opacity: 0.6;
    margin-bottom: 0.1rem;
}

.service-name {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-3);
    margin-bottom: 0.2rem;
}

.service-detail {
    font-size: 0.85rem;
    color: var(--color-3);
    opacity: 0.8;
    line-height: 1.6;
}

.service-detail a {
    color: var(--color-3);
    text-decoration: none;
}

.service-detail a:hover {
    text-decoration: underline;
}

.service-detail i {
    width: 16px;
    text-align: center;
    margin-right: 4px;
    font-size: 0.8rem;
}

/* ── RSVP / Confirmación de Asistencia ── */
.rsvp-block-inner {
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
}

.rsvp-card {
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 1.8rem 1.5rem;
    margin: 0 auto;
    min-width: 60vw;
}

.rsvp-greeting {
    font-family: var(--font-primary);
    font-size: 2.1rem;
    color: var(--color-3);
    margin-bottom: 1.2rem;
}

.rsvp-selectors {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.rsvp-field {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.rsvp-field label {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-3);
    font-weight: 600;
}

.rsvp-field select,
.rsvp-field textarea {
    font-family: var(--font-secondary);
    border: 2px solid rgba(var(--color-3-rgb, 0, 0, 0), 0.35);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 1.05rem;
    background: #fff;
    text-align: center;
    min-width: 80px;
    font-weight: 500;
}

.rsvp-mensaje-field {
    width: 90%;
    max-width: 450px;
    margin: 0 auto 1rem;
}

.rsvp-mensaje-field textarea {
    width: 100%;
    text-align: left;
    resize: none;
}

.rsvp-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.rsvp-btn {
    border: none;
    border-radius: var(--btn-radius, 8px);
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    min-width: 200px;
    letter-spacing: 0.3px;
}

.rsvp-btn:hover {
    opacity: 0.85;
    transform: scale(1.02);
}

.rsvp-btn:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.rsvp-btn-confirm {
    background-color: var(--btn-bg, var(--color-1, #667eea));
    color: var(--btn-text, var(--color-3, #fff));
}

.rsvp-btn-confirm:hover {
    background-color: var(--btn-hover, var(--btn-bg, #4f5de4));
}

.rsvp-btn-reject {
    background-color: var(--btn-bg, var(--color-1, #667eea));
    color: var(--btn-text, var(--color-3, #fff));
    opacity: 0.55;
}

.rsvp-btn-reject:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Respuesta confirmada/rechazada */
.rsvp-response {
    padding: 1.5rem;
    text-align: center;
}

.rsvp-response i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
}

.rsvp-confirmed i {
    color: var(--color-3, #22c55e);
}

.rsvp-rejected i {
    color: var(--color-3, #ef4444);
}

.rsvp-response-msg {
    font-family: var(--font-primary);
    font-size: 1.05rem;
    color: var(--color-3);
    margin-bottom: 0.3rem;
}

.rsvp-response-detail {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    color: var(--color-3);
    opacity: 0.7;
}

/* QR de confirmación */
.rsvp-qr-section {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}

.rsvp-qr-label {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--color-3);
    opacity: 0.7;
    margin: 0;
}

.rsvp-qr-canvas {
    background: #fff;
    padding: 12px;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

.rsvp-qr-download {
    font-size: 0.85rem !important;
    min-width: auto !important;
    padding: 0.5rem 1.2rem !important;
}

/* Tarjeta de confirmación estilo verify */
.rsvp-verify-card {
    max-width: 380px;
    width: 100%;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    text-align: left;
}

.rsvp-verify-header {
    padding: 1.2rem;
    background: var(--color-1, #22c55e);
    color: var(--color-3, #fff);
    text-align: center;
}

.rsvp-verify-header i {
    font-size: 2.5rem;
    margin-bottom: 0.3rem;
    display: block;
}

.rsvp-verify-header h2 {
    font-family: var(--font-primary);
    font-size: 2.05rem;
    font-weight: 600;
    margin: 0;
}

.rsvp-verify-header.rejected {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
}

.rsvp-verify-event {
    padding: 1rem 1.5rem;
    background: var(--color-1, #22c55e);
    color: var(--color-3, #fff);
    text-align: center;
}

.rsvp-verify-event-type {
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: 0.7;
    margin-bottom: 0.2rem;
}

.rsvp-verify-event-name {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    white-space: pre-line;
}

.rsvp-verify-event-datetime {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    opacity: 0.8;
    margin-top: 0.4rem;
    display: flex;
    justify-content: center;
    gap: 0.8rem;
}

.rsvp-verify-event-datetime i {
    margin-right: 0.25rem;
}

.rsvp-verify-body {
    padding: 1rem 1.5rem;
    background: #fff;
}

.rsvp-verify-row {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.rsvp-verify-row:last-child {
    border-bottom: none;
}

.rsvp-verify-label {
    color: #666;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
}

.rsvp-verify-value {
    font-family: var(--font-secondary);
    font-weight: 600;
    color: #111;
    font-size: 0.95rem;
}

.rsvp-verify-total {
    text-align: center;
    padding: 1rem 1.5rem;
    background: var(--color-1, #22c55e);
    color: var(--color-3, #fff);
    font-family: var(--font-primary);
    font-size: 1.3rem;
    font-weight: 700;
}

.rsvp-verify-total span {
    color: var(--color-3, #fff);
}

.rsvp-verify-qr {
    padding: 1.2rem;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    border-top: 1px solid #f0f0f0;
}

.rsvp-preview-placeholder {
    opacity: 0.8;
}

.modal-header {
    background-color: #973887;
    color: #FFF;
}

.btn-indigo,
.bg-indigo-600,
.bg-indigo {
    background-color: #973887 !important;
    border-color: #973887 !important;
    color: white !important;
}

.btn-indigo:hover {
    background-color: #973887 !important;
    border-color: #973887 !important;
    color: white !important;
}

.btn-close {
    color: white !important;
}

.btn-outline-indigo {
    color: #6610f2 !important;
    border-color: #6610f2 !important;
}

.btn-outline-indigo:hover {
    background-color: #6610f2 !important;
    color: #fff !important;
}

.btn-olivo,
.bg-olivo {
    background-color: #D9FDD3 !important;
    color: #727376 !important;
    border: 1px solid #D9FDD3;
    /* O el color que prefieras para el borde */
}

.btn-olivo:hover {
    background-color: #c4eebc !important;
    /* Un tono un poco más oscuro para el efecto */
    color: #5a5b5d !important;
    border-color: #c4eebc;
}

.btn-gris-suave,
.bg-gris-suave {
    background-color: #E5E7EB !important;
    color: #282829 !important;
    border: 1px solid #E5E7EB;
    /* O el color que prefieras para el borde */
}

.btn-gris-suave:hover {
    background-color: #E5E7EB !important;
    /* Un tono un poco más oscuro para el efecto */
    color: #282829 !important;
    border-color: #E5E7EB;
}

/* Ocultar campos personalizados por defecto */
[data-sf-id*="_personalizado"] {
    display: none;
}

.text-muted-morado
{
    color: #b339a2;
}