@import url('https://fonts.googleapis.com/css2?family=Baskervville:ital@0;1&display=swap');
:root{font-family:system-ui,Arial,sans-serif;color:#183a2c;background:#eee8df}*{box-sizing:border-box}body{margin:0}a{color:#216347}.wrap{max-width:850px;margin:30px auto;padding:0 18px 60px}h1,h2{font-family:Georgia,serif}.sheet{display:block;background:white;border:1px solid #e2d6b8;border-radius:14px;padding:20px;margin:18px 0;box-shadow:0 3px 12px #0001}summary{font-weight:700;cursor:pointer;padding:5px}label{display:block;margin:13px 0;font-weight:600}input:not([type=checkbox]),textarea,select{display:block;width:100%;margin-top:6px;padding:11px;border:1px solid #b9b4a7;border-radius:7px;font:inherit}button{border:0;border-radius:8px;padding:11px 18px;background:#245840;color:white;font-weight:700;cursor:pointer}.muted{background:#666}.error{color:#a00}.note{color:#666;font-size:13px}.gift{background:radial-gradient(circle at top,#285a46,#102b24 68%);color:#fff;min-height:100vh}.giftwrap{max-width:1000px;margin:auto;padding:25px 15px 60px}.gift header{text-align:center;padding:20px 0 30px}.gift h1{font-size:clamp(32px,6vw,58px);color:#f8e9c9;margin:12px}.stars{color:#e4c779}.calendar{display:grid;grid-template-columns:repeat(4,1fr);gap:13px}.door{min-height:125px;display:flex;flex-direction:column;align-items:center;justify-content:center;border:3px solid #d6b36a;border-radius:13px;background:linear-gradient(140deg,#a8242c,#67121d);color:#ffe7ae;text-decoration:none;box-shadow:0 6px 15px #0004}.door span{font:bold clamp(25px,4vw,45px) Georgia,serif}.door small{margin-top:8px}.door.special{grid-column:span 2;background:linear-gradient(135deg,#b48c34,#6d4d16)}.door.locked{filter:saturate(.65)}.green .door:not(.special){background:linear-gradient(135deg,#2e7950,#16402d)}.door:hover{transform:translateY(-3px)}.foot{text-align:center;margin-top:28px;color:#d8e5da}.surprise{background:#fff8e9;color:#24412f;border-radius:18px;padding:28px;max-width:650px;margin:20px auto;text-align:center}.surprise .message{white-space:normal;line-height:1.7}.surprise .voucher{font-weight:700;color:#8d3b24}.surprise .photo{max-width:100%;max-height:450px;border-radius:10px}.surprise audio{display:block;width:100%;margin:20px 0}@media(max-width:540px){.calendar{gap:7px}.door{min-height:88px;border-width:2px}.door.special{min-height:88px}}



/* ==========================================
   PERSONALIZACIÓN DEL CALENDARIO
   ========================================== */

/* Opciones del editor */
.design-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0 25px;
}

.option-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0;
    padding: 12px 16px;
    border: 1px solid #dccab7;
    border-radius: 30px;
    background: white;
    cursor: pointer;
}

.option-pill input {
    width: auto;
    margin: 0;
    accent-color: #681126;
}

/* Paletas */
.gift.red {
    --main: #e51d38;
    --dark: #690b22;
    --medium: #990e28;
    --light: #ffd9df;
    --pale: #fff0eb;
    --board: #420b1b;
}

.gift.green {
    --main: #1c7c58;
    --dark: #103d2e;
    --medium: #176348;
    --light: #d1eade;
    --pale: #fff1e9;
    --board: #0a3023;
}

/* Fondo general */
.gift {
    background: #faf3ee;
    color: #4a2330;
}

.gift h1 {
    color: var(--dark);
}

.gift .stars {
    color: var(--main);
}

.gift .foot {
    color: var(--dark);
}

/* Cuadrícula */
.gift .calendar {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: 100px;
    gap: 10px;
    max-width: 690px;
    margin: 25px auto;
    padding: 14px;
    background: var(--board);
    border-radius: 22px;
    perspective: 1100px;
}

/* Puertas */
.gift .door,
.gift.green .door:not(.special) {
    position: relative;
    display: block;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: transparent;
    box-shadow: none;
    color: white;
    text-decoration: none;
    transform-style: preserve-3d;
    transform-origin: left center;
    transition: transform .3s, filter .3s;
}

.gift .door-face {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
    border-radius: inherit;
    background: var(--main);
    backface-visibility: hidden;
}

.gift .door:nth-child(4n+1) .door-face {
    background: var(--light);
    color: var(--dark);
}

.gift .door:nth-child(4n+2) .door-face {
    background: var(--medium);
    color: white;
}

.gift .door:nth-child(4n+4) .door-face {
    background: var(--pale);
    color: var(--main);
}


.gift .door-number {
    position: absolute;
    bottom: 8px;
    left: 10px;
    z-index: 2;

    font: 800 clamp(22px, 3vw, 34px) Arial, sans-serif;
    line-height: 1;

    color: var(--dark);

    -webkit-text-stroke: 0.35px currentColor;
    text-shadow: 0 1px 2px rgba(255,255,255,.3);
}


/* ==========================================
   CONTRASTE DE NÚMEROS EN TODAS LAS PALETAS
   ========================================== */

/* Fondos claros: texto oscuro */
.gift .door:nth-child(4n+1) .door-number,
.gift .door:nth-child(4n+4) .door-number {
    color: var(--dark);
    text-shadow: 0 1px 2px rgba(255,255,255,.4);
}

/* Fondos oscuros y vivos: texto blanco */
.gift .door:nth-child(4n+2) .door-number,
.gift .door:nth-child(4n+3) .door-number {
    color: #fff;
    text-shadow:
        0 1px 2px rgba(0,0,0,.3),
        0 2px 5px rgba(0,0,0,.15);
}

/* Puerta del día: fondo claro */
.gift .door.today:not(.special) .door-number {
    color: var(--dark);
    text-shadow: 0 1px 2px rgba(255,255,255,.4);
}

/* Día 24: respetar su diseño especial */
.gift .door.special .door-number,
.gift .door.special.today .door-number {
    color: #fff9e9;
    -webkit-text-stroke: 0;
    text-shadow: 0 3px 5px rgba(107,73,28,.45);
}



.gift .door.wide {
    grid-column: span 2;
}

.gift .door.tall {
    grid-row: span 2;
}

.gift .door.special {
    grid-column: span 2;
    grid-row: span 2;
}

.gift .door:hover {
    transform: translateY(-3px);
}

/* ==========================================
   DISEÑO 1: LISO
   ========================================== */

.design-plain .door-face {
    background-image: none;
}



/* ==========================================
   DISEÑO 3: NOCHE DE NAVIDAD
   ========================================== */

.design-night .calendar {
    background-color: var(--board);
    background-image:
        radial-gradient(#ffffff65 1px, transparent 1px);
    background-size: 19px 19px;
}

.design-night .door-face {
    box-shadow: inset 0 0 0 1px #ffffff18;
}

/* ==========================================
   DISEÑO 4: TROQUELADO
   ========================================== */

.design-perforated .calendar {
    background: var(--main);
}

.design-perforated .door-face {
    outline: 2px dashed #ffffff9c;
    outline-offset: -8px;
}

.design-perforated .door:nth-child(even) .door-face {
    outline-color: var(--main);
}

/* ==========================================
   PUERTA 24
   ========================================== */

.gift .door.special .door-face {
    background: linear-gradient(
        135deg,
        #ffe8a4,
        #d9a63c 48%,
        #f6d786
    );
    color: white;
}

.gift .door.special .door-number {
    bottom: 10px;
    left: 12px;
    font-size: clamp(42px, 6vw, 62px);
    color: #fff9e9;
    text-shadow: 0 3px 5px #6b491c75;
}

/* Dorada */
.door24-gold .door.special .door-face {
    background-image:
        linear-gradient(
            90deg,
            transparent 46%,
            #fff4cf 46% 54%,
            transparent 54%
        ),
        linear-gradient(
            0deg,
            transparent 46%,
            #fff4cf 46% 54%,
            transparent 54%
        ),
        linear-gradient(135deg, #ffe6a3, #d5a039);
}

.door24-gold .door.special .special-decoration::before {
    content: "🎀";
    position: absolute;
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 55px;
}

/* Con lazo */
.door24-bow .door.special .door-face {
    background: var(--medium);
}

.door24-bow .door.special .door-face::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent 44%,
            var(--light) 44% 56%,
            transparent 56%
        ),
        linear-gradient(
            0deg,
            transparent 45%,
            var(--light) 45% 55%,
            transparent 55%
        );
}

.door24-bow .door.special .special-decoration::before {
    content: "🎀";
    position: absolute;
    top: 5%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 70px;
}

/* Doble puerta */
.door24-double .door.special .door-face {
    background: linear-gradient(
        90deg,
        var(--medium) 0 49.5%,
        var(--dark) 49.5% 50.5%,
        var(--medium) 50.5% 100%
    );
}

.door24-double .door.special .special-decoration::before {
    content: "★";
    position: absolute;
    top: 13%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 45px;
}

.door24-double .door.special .special-decoration::after {
    content: "●  ●";
    position: absolute;
    top: 43%;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 8px;
}

/* ==========================================
   PUERTA DEL DÍA ACTUAL
   ========================================== */

.gift .door.today {
    z-index: 2;
    outline: 3px solid white;
    outline-offset: 2px;
    box-shadow: 0 0 0 5px var(--dark);
}

.gift .door.today .door-face {
    background: var(--light);
    color: var(--dark);
}

.gift .today-label {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 10px;
    border-radius: 20px;
    background: white;
    color: var(--medium);
    font: bold 12px Arial, sans-serif;
    box-shadow: 0 2px 8px #0002;
}

.gift .lock-icon {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 12px;
    opacity: .65;
}

/* ==========================================
   ANIMACIÓN DE APERTURA
   ========================================== */

/* Apertura de puerta fluida */

.gift .door.opening {
    z-index: 20;
    pointer-events: none;
    transition: none;
    animation: openChristmasDoor .65s
        cubic-bezier(.25,.1,.25,1) forwards;
    will-change: transform;
}

@keyframes openChristmasDoor {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(-75deg);
    }
}


/* Iluminación detrás de la puerta */

.gift .door.opening .door-face {
    box-shadow:
        0 0 18px rgba(255,220,150,.35),
        0 0 35px rgba(255,220,150,.18);
}


/* Móvil */
@media (max-width: 540px) {
    .gift .calendar {
        gap: 5px;
        padding: 7px;
        grid-auto-rows: 65px;
        border-radius: 12px;
    }

    .gift .door-number {
        left: 6px;
        bottom: 6px;
        font-size: 21px;
    }

    .gift .door.special .door-number {
        font-size: 40px;
    }

    .gift .today-label {
        top: 3px;
        right: 3px;
        padding: 3px 5px;
        font-size: 10px;
    }

    .door24-bow .door.special
    .special-decoration::before {
        font-size: 40px;
    }
}
/* =========================================
   POPUP DE LAS SORPRESAS
   ========================================= */

.door-modal[hidden] {
    display: none !important;
}

.door-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(18, 17, 34, .58);
    backdrop-filter: blur(4px);
    animation: modalFade .25s ease;
}

.door-modal-box {
    position: relative;
    width: min(540px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    background: #fff;
    color: #25304a;
    border-radius: 22px;
    padding: 28px 22px;
    box-shadow: 0 25px 80px #0004;
    animation: modalPop .35s ease;
}

.door-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #f4f5f8;
    color: #182039;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.door-modal-box .surprise {
    background: transparent;
    color: inherit;
    padding: 0;
    margin: 0;
    text-align: left;
}

.door-modal-box h2 {
    color: #e51d38;
    font-family: Georgia, serif;
    font-size: 27px;
    margin: 0 45px 22px 0;
}

.door-modal-box .message {
    font-size: 18px;
    line-height: 1.7;
    white-space: pre-wrap;
}

.door-modal-box .photo {
    width: 100%;
    max-height: 450px;
    object-fit: contain;
    border-radius: 12px;
    margin-top: 15px;
}

.door-modal-box audio {
    width: 100%;
    margin-top: 20px;
}

.modal-open {
    overflow: hidden;
}

@keyframes modalFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: translateY(25px) scale(.94);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* =========================================
   PANTALLA DE BIENVENIDA
   ========================================= */

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #073d39;
    background-image:
        radial-gradient(#ffffff35 1px, transparent 1px);
    background-size: 16px 16px;
    color: #fff;
    overflow: hidden;
}

.welcome-intro {
    text-align: center;
    padding: 20px;
    width: 100%;
    max-width: 500px;
}

.welcome-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #d9e5db;
}

.welcome-intro h2 {
    font-family: Georgia, serif;
    font-size: clamp(25px, 5vw, 38px);
    line-height: 1.15;
    max-width: 350px;
    margin: 12px auto 30px;
    color: #fff;
}

.welcome-door {
    position: relative;
    width: 180px;
    height: 265px;
    margin: auto;
    cursor: pointer;
    perspective: 1100px;
}

.welcome-arch {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    border: 9px solid #d9f3e6;
    border-radius: 90px 90px 8px 8px;
    background: radial-gradient(circle, #fff2ad, #d6a340);
    box-shadow: 0 0 35px #ffffff25;
    transform-style: preserve-3d;
}

.welcome-door-left,
.welcome-door-right {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #d93849;
    border: 2px solid #f17883;
    backface-visibility: hidden;
    transition: transform 1.1s cubic-bezier(.3,.8,.2,1);
}

.welcome-door-left {
    left: 0;
    transform-origin: left center;
    border-radius: 80px 0 0 0;
}

.welcome-door-right {
    right: 0;
    transform-origin: right center;
    border-radius: 0 80px 0 0;
}

.welcome-door-left::after,
.welcome-door-right::after {
    content: "";
    position: absolute;
    top: 55%;
    width: 7px;
    height: 7px;
    background: #ffdc8a;
    border-radius: 50%;
}

.welcome-door-left::after {
    right: 10px;
}

.welcome-door-right::after {
    left: 10px;
}

.welcome-wreath {
    position: absolute;
    top: 65px;
    left: 50%;
    font-size: 36px;
    color: #fff;
}


/* Nombre sobre la puerta de entrada */

.entrance-object .welcome-name {
    position: absolute;
    top: 56%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: max-content;
    max-width: 135px;
    padding: 8px 13px;

    background: #fff5df;
    color: #8b3040;

    border: 1px solid #e8ce9c;
    border-radius: 5px;

    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 600;
    font-style: italic;
    line-height: 1.2;
    text-align: center;

    overflow-wrap: break-word;
    z-index: 5;
    pointer-events: none;

    box-shadow: 0 4px 12px #0002;
    transition: opacity .3s;
}


.welcome-instruction {
    margin-top: 22px;
    font-size: 13px;
    color: #e5f0e9;
}

.welcome-opening .welcome-door-left {
    transform: rotateY(-115deg);
}

.welcome-opening .welcome-door-right {
    transform: rotateY(115deg);
}

.welcome-opening .welcome-name {
    opacity: 0;
}

.welcome-opening .welcome-intro {
    animation: welcomeZoom 1.4s ease forwards;
}

@keyframes welcomeZoom {
    0%, 35% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

.welcome-finished {
    display: none !important;
}

.gift.green .door-modal-box h2 {
    color: #187852;
}

@media (prefers-reduced-motion: reduce) {
    .welcome-opening .welcome-intro {
        animation: none;
    }

    .welcome-door-left,
    .welcome-door-right {
        transition: none;
    }
}

@media (max-width: 540px) {
    .door-modal-box {
        padding: 25px 18px;
    }

    .door-modal-box .message {
        font-size: 16px;
    }
}
.gift .recipient-label {
    font-size: 12px;
    letter-spacing: 3px;
    font-weight: bold;
    margin-top: 10px;
}

.gift .recipient-title {
    font-size: clamp(42px, 7vw, 70px);
    line-height: 1.1;
    margin: 0px 0 10px;
}

.gift.green .recipient-title {
    color: #187852;
}

.gift.red .recipient-title {
    color: #e51d38;
}


/* ==========================================
   NUEVO EDITOR - 24 PUERTAS
   ========================================== */

.editor-page {
    background: #f7f1eb;
    color: #17213b;
    font-family: system-ui, Arial, sans-serif;
}

/* Cabecera */

.editor-top {
    height: 68px;
    background: #fff;
    border-bottom: 1px solid #e1e5f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 max(24px, calc((100vw - 1300px)/2));
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
}

.editor-top > a {
    font-size: 20px;
    font-weight: 800;
    text-decoration: none;
    color: #e51d38;
}

.editor-top > div {
    display: flex;
    align-items: center;
    gap: 18px;
}

.editor-preview {
    display: inline-block;
    padding: 10px 18px;
    border: 2px solid #e0e5f1;
    border-radius: 30px;
    text-decoration: none;
    color: #17213b;
    font-weight: 700;
}

.editor-top #saveStatus {
    font-size: 13px;
    color: #64718d;
}

/* Distribución general */

.editor-layout {
    max-width: 1300px;
    margin: 32px auto;
    padding: 0 20px 70px;
    display: grid;
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 38px;
    align-items: start;
}

.editor-panel {
    background: #fff;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 1px 2px #14203b08;
}

.editor-panel h2 {
    font: 300 25px system-ui;
    margin: 0 0 18px;
}

.editor-panel h3 {
    font: 700 15px system-ui;
    margin: 22px 0 12px;
}

.editor-panel label {
    font-size: 13px;
    color: #425072;
    margin: 14px 0 8px;
}

.editor-panel input:not([type=checkbox]):not([type=radio]):not([type=file]),
.editor-panel textarea,
.editor-panel select {
    border: 2px solid #dfe3ef;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 15px;
    background: #fff;
    color: #1b2945;
}

.editor-panel textarea {
    resize: vertical;
    line-height: 1.5;
}

.editor-panel input:focus,
.editor-panel textarea:focus {
    outline: 2px solid #a8b9e1;
    outline-offset: 1px;
}

/* Opciones de diseño */

.editor-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.editor-choice {
    border: 2px solid #e0e5f1;
    border-radius: 14px;
    min-height: 54px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 5px;
    cursor: pointer;
    text-align: center;
    margin: 0 !important;
}

.editor-choice:has(input:checked) {
    border-color: #23314e;
    background: #f8faff;
}

.editor-choice input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
}

.editor-choice-art {
    width: 55px;
    height: 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
}

.editor-choice-art i {
    border-radius: 4px;
    background: #e51d38;
}

.editor-choice-art i:nth-child(2) {
    background: #83132a;
}

.editor-choice-art i:nth-child(3) {
    background: #ffd5dc;
}

.editor-choice-art i:nth-child(4) {
    background: #fff0ec;
    border: 1px solid #ffd5dc;
}

.art-wrap i {
    background-image: repeating-linear-gradient(
        45deg,
        transparent 0 5px,
        #ffffff88 5px 8px
    );
}

.art-night {
    background: #421122;
    border-radius: 7px;
    padding: 3px;
}

.art-perforated i {
    outline: 1px dashed #fff;
    outline-offset: -4px;
}

/* Simulador */

.editor-simulator {
    margin-top: 26px;
    border-top: 1px solid #e1e5f0;
    padding-top: 12px;
}

.editor-simulator button {
    margin-top: 12px;
}

/* Selector de días */

.editor-main {
    min-width: 0;
}

.editor-days {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 24px;
}

.editor-day {
    padding: 8px 0;
    border-radius: 9px;
    background: #f0f2f8;
    color: #394563;
    font-size: 12px;
}

.editor-day.active {
    background: #e51d38;
    color: #fff;
}

.editor-day.filled:not(.active) {
    background: #dceee4;
    color: #176348;
}

/* Formulario de la puerta */

.editor-door-form[hidden] {
    display: none;
}

.editor-door-form h1 {
    font: 500 clamp(23px, 3vw, 35px) system-ui;
    color: #425072;
    margin: 8px 0 22px;
    font-family: 'Baskervville', Georgia, serif !important;
    font-variant-numeric: lining-nums tabular-nums;
}

.editor-door-form h1 strong {
    font-size: clamp(65px, 7vw, 90px);
    color: #e51d38;
    line-height: 1;
}

.editor-door-form > label {
    font-weight: 700;
}

.editor-count {
    text-align: right;
    color: #6b7894;
    font-size: 12px;
    margin-top: 6px;
}

/* Fotos y audios */

.editor-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 26px 0;
}

.editor-media {
    background: #f7f1eb;
    border-radius: 15px;
    padding: 16px;
    min-width: 0;
}

.editor-media h3 {
    margin: 0 0 10px;
}

.editor-file {
    display: block;
    text-align: center;
    background: #fff;
    border: 2px solid #dfe3ef;
    border-radius: 30px;
    padding: 11px;
    cursor: pointer;
    font-weight: 700 !important;
    color: #1c2946 !important;
}

.editor-file input {
    display: block;
    width: 100%;
    font-size: 11px;
    margin-top: 8px;
}

.editor-media > a {
    display: block;
    text-align: center;
    margin-top: 12px;
    font-size: 12px;
}

.editor-remove {
    font-size: 12px !important;
}

/* Botones */

.editor-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
}

.editor-actions button {
    border-radius: 30px;
}

.editor-actions button:disabled {
    opacity: .35;
    cursor: default;
}

.editor-actions button[type=submit] {
    background: #e51d38;
}

/* Responsive */

@media (max-width: 900px) {
    .editor-layout {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .editor-days {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 540px) {
    .editor-layout {
        padding: 0 10px 40px;
        margin: 15px auto;
    }

    .editor-panel {
        padding: 20px;
        border-radius: 16px;
    }

    .editor-top {
        padding: 0 12px;
    }

    .editor-top > a {
        font-size: 16px;
    }

    .editor-preview {
        padding: 8px 10px;
        font-size: 12px;
    }

    .editor-days {
        grid-template-columns: repeat(6, 1fr);
    }

    .editor-media-grid {
        grid-template-columns: 1fr;
    }

    .editor-actions {
        justify-content: center;
    }
}


/* Mensaje personalizado del destinatario */

.gift .calendar-welcome {
    max-width: 580px;
    margin: 8px auto 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    line-height: 1.5;
    color: #4a4350;
}

@media (max-width: 600px) {
    .gift .calendar-welcome {
        max-width: 300px;
        font-size: 16px;
        line-height: 1.5;
    }
}

.gift .calendar-sender {
    margin: 12px auto 0;
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 16px;
    line-height: 1.5;
    color: var(--medium);
}

/* Tipos de entrada */

.entrance-choices {
    grid-template-columns: repeat(3, 1fr);
}

.entrance-choice {
    min-height: 110px;
    padding: 12px 5px;
}

.entrance-icon {
    font-size: 34px;
    line-height: 1.3;
}

.entrance-choice:has(input:checked) {
    border-color: #e51d38;
    background: #fff4f5;
}

.door-modal[hidden] {
    display: none !important;
}

.door-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 23, 39, .55);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.door-modal-box {
    position: relative;
    background: white;
    color: #25304a;
    border-radius: 24px;
    width: min(540px, 100%);
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 25px 70px #0003;
    animation: popupEnter .3s ease;
}

.door-modal-box .surprise {
    background: transparent;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: none;
}

.door-modal-box h2 {
    font-family: Georgia, serif;
    color: #e51d38;
    font-size: 28px;
    padding-right: 35px;
}

.gift.green .door-modal-box h2 {
    color: #187852;
}

.door-modal-box .message {
    font-size: 18px;
    line-height: 1.7;
}

.door-modal-box img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.door-modal-box audio {
    width: 100%;
}

.door-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: #f1f2f6;
    color: #25304a;
    font-size: 28px;
    cursor: pointer;
    z-index: 2;
}

.modal-open {
    overflow: hidden;
}

@keyframes popupEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


/* =====================================
   TRES TIPOS DE ENTRADA
   ===================================== */

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #103e34;
    background-image:
        radial-gradient(#ffffff28 1px, transparent 1px);
    background-size: 15px 15px;
    color: #fff;
}

.welcome-content {
    text-align: center;
    padding: 20px;
}

.welcome-eyebrow {
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 700;
}

.welcome-content h2 {
    max-width: 400px;
    font-family: Georgia, serif;
    font-size: clamp(26px, 5vw, 42px);
    margin: 12px auto 35px;
    color: white;
}

.entrance-object {
    position: relative;
    display: block;
    width: 230px;
    height: 240px;
    margin: auto;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    perspective: 900px;
}

.welcome-instruction {
    margin-top: 25px;
    color: #f1e5cc;
    font-size: 14px;
}

.welcome-screen.is-opening .welcome-content {
    animation: entranceZoom 1.5s ease forwards;
}

.welcome-screen.is-finished {
    display: none;
}

@keyframes entranceZoom {
    0%, 45% {
        opacity: 1;
        transform: scale(1);
    }
    100% {
        opacity: 0;
        transform: scale(1.8);
    }
}

/* SOBRE */

.envelope-body {
    position: absolute;
    width: 210px;
    height: 145px;
    top: 65px;
    left: 10px;
    background: #c72742;
    border: 5px solid #f7d6ae;
    border-radius: 6px;
    box-shadow: 0 15px 30px #0004;
}

.envelope-flap {
    position: absolute;
    width: 0;
    height: 0;
    top: 70px;
    left: 15px;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-top: 75px solid #e75c70;
    transform-origin: top;
    transition: transform .9s ease;
    z-index: 3;
}

.envelope-letter {
    position: absolute;
    left: 35px;
    top: 95px;
    width: 160px;
    height: 100px;
    background: #fff7e9;
    color: #9e1831;
    padding-top: 35px;
    font-family: Georgia, serif;
    font-size: 19px;
    transition: transform 1s ease;
    z-index: 2;
}

.is-opening .envelope-flap {
    transform: rotateX(180deg);
}

.is-opening .envelope-letter {
    transform: translateY(-95px);
}

/* CAJA REGALO */

.gift-box {
    position: absolute;
    width: 180px;
    height: 145px;
    left: 25px;
    top: 75px;
    background: #d22d46;
    border-radius: 6px;
    box-shadow: 0 15px 30px #0004;
}

.gift-box::after {
    content: "";
    position: absolute;
    left: 75px;
    width: 30px;
    height: 100%;
    background: #f4d48c;
}

.gift-lid {
    position: absolute;
    left: 15px;
    top: 57px;
    width: 200px;
    height: 35px;
    background: #ed4761;
    border-radius: 6px;
    z-index: 3;
    transition: transform 1s ease;
}

.gift-ribbon {
    position: absolute;
    left: 99px;
    top: 57px;
    width: 32px;
    height: 35px;
    background: #f4d48c;
    z-index: 4;
    transition: transform 1s ease;
}

.is-opening .gift-lid,
.is-opening .gift-ribbon {
    transform: translateY(-105px) rotate(-12deg);
}

/* PUERTA DE CASA */

.house-frame {
    position: absolute;
    width: 165px;
    height: 230px;
    left: 32px;
    top: 5px;
    border: 9px solid #e3f2e8;
    border-radius: 85px 85px 5px 5px;
    background: #f5d38a;
    perspective: 900px;
}

.house-inside {
    position: absolute;
    inset: 0;
    border-radius: 75px 75px 0 0;
    background: radial-gradient(
        circle,
        #fff3be,
        #c89b48
    );
}

.house-door {
    position: absolute;
    inset: 0;
    border-radius: 75px 75px 0 0;
    background: #d22d46;
    border: 3px solid #f37c8a;
    transform-origin: left center;
    transition: transform 1.1s ease;
    backface-visibility: hidden;
}

.house-wreath {
    position: absolute;
    top: 65px;
    left: 50%;
    transform: translateX(-50%);
    color: #f8e3a4;
    font-size: 48px;
}

.house-knob {
    position: absolute;
    right: 12px;
    top: 145px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f8d887;
}

.is-opening .house-door {
    transform: rotateY(-115deg);
}

/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
    .welcome-screen.is-opening .welcome-content {
        animation: none;
    }
}


/* ==========================================
   24 PUERTAS - BIENVENIDA PREMIUM
   ========================================== */

.welcome-screen {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
    padding: 28px 20px;

    background:
        radial-gradient(
            ellipse at 50% 48%,
            #245e4e 0%,
            #164638 48%,
            #092b24 100%
        );

    color: #fff9eb;
}

/* Puntos decorativos */

.welcome-screen::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;

    background-image:
        radial-gradient(
            circle,
            rgba(255,255,255,.23) 1px,
            transparent 1.5px
        );

    background-size: 24px 24px;
    opacity: .4;
}

/* Luz ambiental */

.welcome-screen::after {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background: radial-gradient(
        circle,
        rgba(236,193,105,.12),
        transparent 70%
    );

    pointer-events: none;
}

/* Contenido */

.welcome-content {
    position: relative;
    z-index: 2;
    width: min(100%, 650px);
    margin: auto;
    text-align: center;
    padding: 12px 0;
}

/* Estrellas */

.welcome-stars {
    color: #f3d495;
    font-size: 24px;
    letter-spacing: 9px;
    margin-bottom: 18px;
}

/* Texto superior */

.welcome-eyebrow {
    display: block;
    font-family: system-ui, sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    color: #efd7a3;
    margin-bottom: 14px;
}

/* Título principal */

.welcome-content .welcome-title {
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -.8px;

    max-width: 600px;
    margin: 0 auto 16px;
    color: #fff8e9;
}

.welcome-title span {
    display: block;
}


.welcome-content .welcome-title .welcome-name {
    position: static;
    display: block;
    transform: none;
    width: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    background: transparent;
    border-radius: 0;
    color: #f3d495;
    font-family: Georgia, serif;
    font-style: normal;
    font-size: 1.12em;
    font-weight: 700;
    line-height: 1.15;
    overflow-wrap: normal;
    pointer-events: auto;
    transition: none;
}


/* Descripción */

.welcome-description {
    max-width: 430px;
    margin: 0 auto 22px;
    font-size: 16px;
    line-height: 1.65;
    color: #e0e9df;
}

/* Objeto de entrada */

.welcome-screen .entrance-object {
    width: 260px;
    height: 265px;
    margin: 8px auto 0;
    position: relative;
    cursor: pointer;
    background: transparent;
    border: 0;
    perspective: 1000px;

    transition: transform .3s ease,
                filter .3s ease;
}

.welcome-screen:not(.is-opening)
.entrance-object:hover {
    transform: translateY(-7px) scale(1.035);
    filter: brightness(1.08);
}

.welcome-screen .entrance-object:focus-visible {
    outline: 3px solid #f3d495;
    outline-offset: 8px;
}

/* Puerta de casa */

.welcome-screen .house-frame {
    position: absolute;
    width: 190px;
    height: 255px;
    left: 35px;
    top: 5px;

    border: 9px solid #e9f1e5;
    border-radius: 100px 100px 8px 8px;
    background: #e6b86a;

    box-shadow:
        0 0 0 4px rgba(255,255,255,.12),
        0 22px 35px rgba(0,0,0,.35),
        0 0 60px rgba(241,194,109,.12);

    perspective: 1000px;
}

.welcome-screen .house-inside {
    position: absolute;
    inset: 0;
    border-radius: 90px 90px 0 0;

    background:
        radial-gradient(
            ellipse at center,
            #fff8c8,
            #e8b65e 55%,
            #b97534 100%
        );
}

.welcome-screen .house-door {
    position: absolute;
    inset: 0;
    border-radius: 90px 90px 0 0;

    background:
        linear-gradient(
            110deg,
            #f04458 0%,
            #c71e3b 55%,
            #95142c 100%
        );

    border: 4px solid #f46a78;

    box-shadow:
        inset 0 0 0 7px rgba(255,255,255,.07),
        inset -12px 0 22px rgba(0,0,0,.12);

    transform-origin: left center;
    transition: transform 1.2s cubic-bezier(.2,.7,.2,1);
    backface-visibility: hidden;
}

/* Molduras de la puerta */

.welcome-screen .house-door::before {
    content: "";
    position: absolute;
    left: 19px;
    right: 19px;
    top: 85px;
    bottom: 20px;

    border: 2px solid rgba(255,220,170,.38);
    border-radius: 7px;
    box-shadow:
        inset 0 0 0 5px rgba(255,255,255,.04);
}

/* Estrella */

.welcome-screen .house-wreath {
    position: absolute;
    top: 52px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 48px;
    color: #ffe2a1;

    text-shadow: 0 0 20px rgba(255,220,140,.35);
}

/* Pomo */

.welcome-screen .house-knob {
    position: absolute;
    right: 13px;
    top: 155px;
    width: 12px;
    height: 12px;
    border-radius: 50%;

    background: #ffe09a;
    box-shadow: 0 0 8px #ffe09a77;
}

/* Apertura */

.welcome-screen.is-opening .house-door {
    transform: rotateY(-120deg);
}

/* Sobre y caja: mejorar profundidad */

.welcome-screen .envelope-body,
.welcome-screen .gift-box {
    box-shadow:
        0 22px 40px rgba(0,0,0,.35),
        0 0 35px rgba(245,201,117,.10);
}

/* Instrucción inferior */

.welcome-instruction {
    margin: 22px auto 0;
    color: #f5e6c7;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .2px;
}

.welcome-tap-icon {
    color: #f3d495;
    margin-right: 7px;
}

/* Animación de salida */

.welcome-screen.is-opening .welcome-content {
    animation: welcomeExit 1.5s ease forwards;
}

@keyframes welcomeExit {
    0%, 50% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(1.5);
    }
}

.welcome-screen.is-finished {
    display: none;
}

/* Móviles */

@media (max-width: 600px) {

    .welcome-screen {
        padding: 20px 16px;
    }

    .welcome-content {
        padding: 10px 0;
    }

    .welcome-stars {
        font-size: 19px;
        margin-bottom: 12px;
    }

    .welcome-content .welcome-title {
        font-size: clamp(34px, 9vw, 46px);
        margin-bottom: 12px;
    }

    .welcome-description {
        font-size: 14px;
        margin-bottom: 14px;
    }

    .welcome-screen .entrance-object {
        transform: scale(.85);
        margin: -12px auto;
    }

    .welcome-screen:not(.is-opening)
    .entrance-object:hover {
        transform: scale(.85);
    }

    .welcome-instruction {
        margin-top: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .welcome-screen.is-opening .welcome-content {
        animation: none;
    }
}


/* Puerta según el color del calendario */

.gift.green .welcome-screen .house-door {
    background: linear-gradient(
        110deg,
        #29996d,
        #187852 55%,
        #0b4b37
    );
    border-color: #63b894;
}

.gift.green .welcome-screen .house-door::before {
    border-color: rgba(217,255,230,.35);
}

/* Sobre verde */

.gift.green .welcome-screen .envelope-body {
    background: #187852;
}

.gift.green .welcome-screen .envelope-flap {
    border-top-color: #29996d;
}

/* Caja verde */

.gift.green .welcome-screen .gift-box {
    background: #187852;
}

.gift.green .welcome-screen .gift-lid {
    background: #29996d;
}


/* ==========================================
   TRANSICIÓN DEFINITIVA DEL POPUP
   ========================================== */

.door-modal:not([hidden]) {
    display: flex;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .3s ease,
        visibility .3s ease;
}

.door-modal.is-visible {
    opacity: 1;
    visibility: visible;
}

.door-modal .door-modal-box {
    opacity: 0;
    transform: translateY(12px) scale(.98);
    transition:
        opacity .3s ease,
        transform .3s ease;
}

.door-modal.is-visible .door-modal-box {
    opacity: 1;
    transform: translateY(0) scale(1);
}


/* ==========================================
   GRABADOR DE NOTAS DE VOZ
   ========================================== */

.editor-audio .audio-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.audio-record-start {
    background: #e51d38;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px;
    font-weight: 700;
    cursor: pointer;
}

.audio-recorder[hidden],
.audio-recording-status[hidden],
.audio-recording-actions[hidden],
.audio-recording-preview[hidden],
.audio-record-start[hidden],
.audio-error[hidden] {
    display: none !important;
}

.audio-recorder {
    margin-top: 15px;
}

.audio-recording-status {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 15px;
    font-weight: 600;
}

.audio-recording-dot {
    width: 11px;
    height: 11px;
    background: #e51d38;
    border-radius: 50%;
    animation: recordingPulse 1s infinite;
}

@keyframes recordingPulse {
    50% { opacity: .3; }
}

.audio-timer {
    font-variant-numeric: tabular-nums;
    font-size: 18px;
}

.audio-recording-actions,
.audio-preview-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.audio-recording-actions button,
.audio-preview-actions button {
    flex: 1;
    border: 1px solid #dfe3ef;
    background: white;
    color: #25304a;
    border-radius: 20px;
    padding: 10px;
    cursor: pointer;
}

.audio-record-stop {
    background: #e51d38 !important;
    color: white !important;
}

.audio-recording-preview audio {
    width: 100%;
    margin-bottom: 12px;
}

.audio-error {
    color: #b42336;
    font-size: 13px;
    margin-top: 10px;
}


/* ==========================================
   SORPRESAS - CARTA, POLAROID Y VALE
   ========================================== */

.door-modal-box {
    width: min(580px, 100%);
    max-height: min(88dvh, 900px);
    padding: 30px 26px;
    scrollbar-width: thin;
}

.door-modal-box .surprise-letter {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    background: transparent;
    text-align: left;
}

.surprise-heading {
    text-align: center;
    margin: 0 42px 10px;
}

.surprise-eyebrow {
    display: block;
    color: #a67b45;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2.5px;
    margin-bottom: 9px;
}

.door-modal-box .surprise-heading h2,
.surprise-letter .surprise-heading h2 {
    font-family: Georgia, serif;
    font-size: clamp(27px, 5vw, 36px);
    color: #941b35;
    margin: 0 0 12px;
    line-height: 1.2;
    font-variant-numeric: lining-nums tabular-nums;
}

.surprise-end-star {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 55px;
    margin: 14px auto 0;
    color: #a67b45;
    font-size: 15px;
    line-height: 1;
}

.surprise-end-star::before,
.surprise-end-star::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d6b77b;
}

.surprise-content {
    display: grid;
    gap: 16px;
    min-width: 0;
}

/* POLAROID */

.surprise-polaroid {
    width: min(88%, 370px);
    margin: 2px auto;
    padding: 12px;
    background: #fff;
    border: 1px solid #eee9e1;
    box-shadow:
        0 12px 32px rgba(45, 26, 20, .16),
        0 2px 7px rgba(45, 26, 20, .07);
    transform: rotate(-2deg);
}

.door-modal-box .surprise-polaroid .photo,
.surprise-letter .surprise-polaroid .photo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    margin: 0;
    border-radius: 0;
    background: #f1ede7;
}

.surprise-polaroid figcaption {
    padding: 14px 5px 4px;
    color: #554338;
    font-family: Georgia, serif;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
    overflow-wrap: anywhere;
}

/* CARTA */

.surprise-message-card {
    position: relative;
    width: 100%;
    padding: 25px 23px 22px;
    margin: 0;
    border: 1px solid #eadfcb;
    border-radius: 5px;
    background: #fffcf5;
    box-shadow: 0 5px 18px rgba(83, 54, 27, .05);
}

.surprise-message-decoration {
    display: block;
    color: #b8945b;
    font-size: 19px;
    text-align: center;
    margin-bottom: 12px;
}

.door-modal-box .surprise-message-card .message,
.surprise-letter .surprise-message-card .message {
    margin: 0;
    color: #46372e;
    font-family: Georgia, serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.85;
    white-space: normal;
    overflow-wrap: anywhere;
}

.surprise-message-end {
    display: block;
    color: #bd5464;
    text-align: right;
    font-size: 22px;
    margin-top: 14px;
}

/* ==========================================
   VALE REGALO
   ========================================== */

.surprise-voucher {
    --voucher-gold: #d8b77d;

    position: relative;
    padding: 30px 30px 26px;
    text-align: center;
    color: #fff9ef;
    border-radius: 13px;

    background: linear-gradient(
        135deg,
        #951e3c,
        #67112b
    );

    box-shadow: 0 8px 22px rgba(104,17,43,.14);
    overflow: hidden;
    isolation: isolate;

    /* Pequeños recortes laterales */
    -webkit-mask:
        radial-gradient(circle at left center,
            transparent 7px, #000 7.5px)
        left / 51% 100% no-repeat,
        radial-gradient(circle at right center,
            transparent 7px, #000 7.5px)
        right / 51% 100% no-repeat;

    mask:
        radial-gradient(circle at left center,
            transparent 7px, #000 7.5px)
        left / 51% 100% no-repeat,
        radial-gradient(circle at right center,
            transparent 7px, #000 7.5px)
        right / 51% 100% no-repeat;
}

/* Marco dorado adaptado al troquel */

.surprise-voucher::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3C/svg%3E");

    border: 1px solid var(--voucher-gold);
    border-radius: 8px;
    margin: 8px;

    -webkit-mask:
        radial-gradient(circle at -8px 50%,
            transparent 15px, #000 15.5px)
        left / 51% 100% no-repeat,
        radial-gradient(circle at calc(100% + 8px) 50%,
            transparent 15px, #000 15.5px)
        right / 51% 100% no-repeat;

    mask:
        radial-gradient(circle at -8px 50%,
            transparent 15px, #000 15.5px)
        left / 51% 100% no-repeat,
        radial-gradient(circle at calc(100% + 8px) 50%,
            transparent 15px, #000 15.5px)
        right / 51% 100% no-repeat;
}

/* Curvas doradas de los recortes */

.surprise-voucher::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: -1;

    background:
        radial-gradient(circle at left center,
            transparent 14px,
            var(--voucher-gold) 14.5px 15px,
            transparent 15.5px),
        radial-gradient(circle at right center,
            transparent 14px,
            var(--voucher-gold) 14.5px 15px,
            transparent 15.5px);

    clip-path: inset(0 8px);
}

/* Encabezado */

.surprise-voucher-label {
    display: block;
    color: #f3d9a4;
    font-family: system-ui, sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3.5px;
    margin-bottom: 16px;
}

/* Adorno dorado */

.surprise-voucher-label::after {
    content: "— ✧ —";
    display: block;
    margin-top: 9px;
    color: var(--voucher-gold);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0;
}

/* Texto del vale */

.surprise-voucher-text {
    font-family: 'Baskervville', Georgia, serif;
    font-size: clamp(20px, 4.5vw, 26px);
    font-weight: 400;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

/* Mensaje adicional */

.surprise-voucher-greeting {
    margin-top: 14px;
    color: #fff0dc;
    font-family: 'Baskervville', Georgia, serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
}

/* Variante verde */

.gift.green .surprise-voucher {
    background: linear-gradient(
        135deg,
        #21684e,
        #103d2e
    );

    box-shadow: 0 8px 22px rgba(16,61,46,.14);
}

/* NOTA DE VOZ */

.surprise-audio-card {
    margin: 0;
    padding: 19px;
    border-radius: 16px;
    background: #f6f0f1;
    border: 1px solid #ebdfe2;
}

.surprise-audio-title {
    margin-bottom: 10px;
    color: #542337;
    font-size: 15px;
    font-weight: 700;
}

.surprise-audio-card audio {
    display: block;
    width: 100%;
    margin: 0;
}


/* PUERTAS BLOQUEADAS */

.surprise-locked {
    text-align: center;
    padding: 25px 12px;
    color: #65565b;
    line-height: 1.7;
}

.surprise-lock-icon {
    display: block;
    font-size: 35px;
    margin-bottom: 10px;
}

/* VISTA MÓVIL */

@media (max-width: 600px) {
    .door-modal {
        padding: 12px;
    }

    .door-modal-box {
        width: 100%;
        max-height: 88dvh;
        padding: 26px 18px;
        border-radius: 19px;
    }

    .surprise-heading {
        margin: 0 35px 10px;
    }

    .surprise-polaroid {
        width: 92%;
        padding: 9px;
    }

    .door-modal-box .surprise-polaroid .photo {
        max-height: 48dvh;
    }

    .surprise-polaroid figcaption {
        padding: 10px 4px 3px;
        font-size: 14px;
    }

    .surprise-message-card {
        padding: 19px 17px;
    }

    .door-modal-box .surprise-message-card .message {
        font-size: 16px;
        line-height: 1.75;
    }

    .surprise-voucher {
        padding: 26px 24px 22px;
    }
}


/* ==========================================
   DÍA 24 - CONSERVAR DISEÑO ESPECIAL
   ========================================== */

/* Evitar que el estado "Hoy" cambie su fondo */
.gift .door.special.today .door-face {
    color: #fff9e9;
}

/* Diseño dorado */
.gift.door24-gold .door.special .door-face,
.gift.door24-gold .door.special.today .door-face {
    background:
        linear-gradient(
            90deg,
            transparent 46%,
            #fff4cf 46% 54%,
            transparent 54%
        ),
        linear-gradient(
            0deg,
            transparent 46%,
            #fff4cf 46% 54%,
            transparent 54%
        ),
        linear-gradient(
            135deg,
            #ffe6a3,
            #d5a039
        );
}

/* Diseño con lazo */
.gift.door24-bow .door.special .door-face,
.gift.door24-bow .door.special.today .door-face {
    background: var(--medium);
}

/* Diseño de doble puerta */
.gift.door24-double .door.special .door-face,
.gift.door24-double .door.special.today .door-face {
    background: linear-gradient(
        90deg,
        var(--medium) 0 49.5%,
        var(--dark) 49.5% 50.5%,
        var(--medium) 50.5% 100%
    );
}

/* El número 24 mantiene su aspecto */
.gift .door.special.today .door-number {
    color: #fff9e9;
}


/* ==========================================
   CONFETI ESPECIAL DEL DÍA 24
   ========================================== */

.christmas-confetti {
    position: fixed;
    inset: 0;
    z-index: 10001;
    pointer-events: none;
    overflow: hidden;
}

.christmas-confetti-piece {
    position: absolute;
    top: -25px;
    left: var(--x);

    width: 9px;
    height: 14px;

    border-radius: 2px;
    opacity: 0;

    box-shadow: 0 1px 2px #00000012;

    animation: christmasConfettiFall
        var(--duration)
        var(--delay)
        ease-in
        forwards;

    will-change: transform;
}

.christmas-confetti-piece:nth-child(3n) {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.christmas-confetti-piece:nth-child(4n) {
    width: 12px;
    height: 6px;
}

@keyframes christmasConfettiFall {

    0% {
        transform:
            translate3d(0, -20px, 0)
            rotate(0deg);
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    85% {
        opacity: 1;
    }

    100% {
        transform:
            translate3d(
                var(--drift),
                110vh,
                0
            )
            rotate(var(--rotation));
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .christmas-confetti-piece {
        animation: none;
        display: none;
    }
}



/* ==========================================
   PAPEL DE REGALO - ESTAMPADOS MEJORADOS
   ========================================== */

/* Papel 0: rosa claro con bandas rojas suaves */
.gift.design-wrap .calendar .door.pattern-0 .door-face {
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 27px,
            #c92e4b20 27px 32px,
            #c92e4b45 32px 33px
        ),
        repeating-linear-gradient(
            0deg,
            transparent 0 27px,
            #c92e4b20 27px 32px,
            #c92e4b45 32px 33px
        ),
        linear-gradient(145deg, #fff1ed, #f6cbd1);
}

/* Papel 1: granate/verde con pequeños lunares */
.gift.design-wrap .calendar .door.pattern-1 .door-face {
    background-color: var(--medium);
    background-image:
        radial-gradient(
            circle,
            rgba(255,248,228,.85) 1.7px,
            transparent 2.3px
        );
    background-size: 17px 17px;
}

/* Papel 2: rayas diagonales suaves */
.gift.design-wrap .calendar .door.pattern-2 .door-face {
    background-color: var(--main);
    background-image:
        repeating-linear-gradient(
            135deg,
            transparent 0 12px,
            rgba(255,255,255,.24) 12px 19px
        );
    background-size: auto;
}

/* Papel 3: crema con lunares de color */
.gift.design-wrap .calendar .door.pattern-3 .door-face {
    background-color: var(--pale);
    background-image:
        radial-gradient(
            circle,
            var(--main) 1.8px,
            transparent 2.5px
        );
    background-size: 21px 21px;
}

/* ==========================================
   NÚMEROS LEGIBLES EN TODOS LOS ESTAMPADOS
   ========================================== */

/* Tamaño equilibrado y contorno general */
.gift.design-wrap .calendar .door:not(.special) .door-number {
    font-family: Arial, sans-serif;
    font-size: clamp(23px, 3vw, 33px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.6px;
    -webkit-text-stroke: .65px;
}

/* Papeles claros: números oscuros */
.gift.design-wrap .calendar .door.pattern-0 .door-number,
.gift.design-wrap .calendar .door.pattern-3 .door-number {
    color: var(--dark);
    -webkit-text-stroke-color: var(--dark);
    text-shadow:
        0 1px 0 rgba(255,255,255,.95),
        0 2px 3px rgba(255,255,255,.75);
}

/* Papeles oscuros: números blancos */
.gift.design-wrap .calendar .door.pattern-1 .door-number,
.gift.design-wrap .calendar .door.pattern-2 .door-number {
    color: #fffdf5;
    -webkit-text-stroke-color: rgba(45,15,25,.75);
    text-shadow:
        0 1px 2px rgba(0,0,0,.65),
        0 2px 4px rgba(0,0,0,.35);
}

/* Móvil: números algo más pequeños */
@media (max-width: 540px) {
    .gift.design-wrap .calendar
    .door:not(.special) .door-number {
        font-size: 21px;
        -webkit-text-stroke-width: .5px;
    }
}

/* El 24 conserva su diseño original */
.gift.design-wrap .calendar .door.special .door-number {
    color: #fff9e9;
    -webkit-text-stroke: 0;
}

/* Varias fotos en una puerta */

.editor-photo-slot + .editor-photo-slot {
    margin-top: 12px;
}

.surprise-photo-stack {
    width: 100%;
    min-width: 0;
    margin: 0;
}

.surprise-photo-stack-images {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px 10px;
    isolation: isolate;
}

.surprise-letter .surprise-photo-stack-images .photo {
    position: relative;
    display: block;
    width: 32%;
    min-width: 0;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    margin: 0;
    padding: 6px 6px 16px;
    border: 1px solid #eee9e1;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(45, 26, 20, .2);
    transform: translateY(4px) rotate(-7deg);
}

.surprise-letter .surprise-photo-stack-images .photo + .photo {
    margin-left: -3%;
}

.surprise-letter .surprise-photo-stack-images .photo:nth-child(2) {
    z-index: 1;
    transform: translateY(-5px) rotate(2deg);
}

.surprise-letter .surprise-photo-stack-images .photo:nth-child(3) {
    transform: translateY(5px) rotate(7deg);
}

.surprise-photo-stack figcaption {
    max-width: 42ch;
    margin: 4px auto 0;
    color: #554338;
    font: 15px/1.5 Georgia, serif;
    text-align: center;
    overflow-wrap: anywhere;
}

@media (max-width: 600px) {
    .surprise-photo-stack-images {
        padding: 12px 5px;
    }

    .surprise-letter .surprise-photo-stack-images .photo {
        width: 33%;
        padding: 4px 4px 10px;
    }

    .surprise-letter .surprise-photo-stack-images .photo + .photo {
        margin-left: -1%;
    }

    .surprise-photo-stack figcaption {
        font-size: 14px;
    }
}



/* Colores repartidos por vecindad en los diseños sin papel */

.gift:not(.design-wrap) .calendar .door.pattern-0 { --door-fill: var(--light); }
.gift:not(.design-wrap) .calendar .door.pattern-1 { --door-fill: var(--medium); }
.gift:not(.design-wrap) .calendar .door.pattern-2 { --door-fill: var(--main); }
.gift:not(.design-wrap) .calendar .door.pattern-3 { --door-fill: var(--pale); }

.gift:not(.design-wrap) .calendar .door:is(.pattern-0, .pattern-1, .pattern-2, .pattern-3) .door-face {
    background: var(--door-fill);
}

.gift:not(.design-wrap) .calendar .door:is(.pattern-0, .pattern-3) .door-number {
    color: var(--dark);
    text-shadow: 0 1px 2px #ffffff65;
}

.gift:not(.design-wrap) .calendar .door:is(.pattern-1, .pattern-2) .door-number {
    color: #fffdf5;
    text-shadow: 0 1px 3px #0006;
}

/* Papel de cuadros en la combinación verde */

.gift.green.design-wrap .calendar .door.pattern-0 .door-face {
    background:
        repeating-linear-gradient(
            90deg, transparent 0 27px, #19764d20 27px 32px, #19764d45 32px 33px
        ),
        repeating-linear-gradient(
            0deg, transparent 0 27px, #19764d20 27px 32px, #19764d45 32px 33px
        ),
        linear-gradient(145deg, #edf7ee, #cce6d7);
}

/* Día 24 dorado · cinta del color de la paleta */

.gift.door24-gold .calendar .door.special {
    --ribbon-edge: #791b34;
    --ribbon-light: #ad3d55;
    --ribbon-main: #91233f;
    --ribbon-shadow: #66152d;
}

.gift.green.door24-gold .calendar .door.special {
    --ribbon-edge: #12513a;
    --ribbon-light: #358165;
    --ribbon-main: #20674c;
    --ribbon-shadow: #0d4733;
}

.gift.door24-gold .calendar .door.special .door-face,
.gift.door24-gold .calendar .door.special.today .door-face {
    background:
        linear-gradient(
            0deg, transparent 0 46%,
            var(--ribbon-edge) 46% 47%,
            var(--ribbon-light) 47% 49%,
            var(--ribbon-main) 49% 53%,
            var(--ribbon-shadow) 53% 54%, transparent 54%
        ),
        linear-gradient(
            90deg, transparent 0 46%,
            var(--ribbon-edge) 46% 47%,
            var(--ribbon-light) 47% 49%,
            var(--ribbon-main) 49% 53%,
            var(--ribbon-shadow) 53% 54%, transparent 54%
        ),
        linear-gradient(135deg, #ffe8ab, #e9c06a 58%, #d3a34a);
}

.gift.door24-gold .calendar .door.special .special-decoration {
    display: block;
}

.gift.door24-gold .calendar .door.special .special-decoration::before {
    content: "✦";
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff1bc;
    font: 17px/1 Georgia, serif;
}

/* TROQUELADO · tablero oscuro y corte visible en cada puerta */

.gift.design-perforated .calendar {
    background: var(--board);
}

.gift.design-perforated .calendar .door:not(.special) .door-face {
    outline: 1px dashed var(--cut-color, #fff6e8b3);
    outline-offset: -6px;
    box-shadow: inset 0 0 0 1px #ffffff26;
}

.gift.design-perforated .calendar .door:is(.pattern-0, .pattern-3) {
    --cut-color: var(--dark);
}

.gift.design-perforated .calendar .door:is(.pattern-1, .pattern-2) {
    --cut-color: #fff6e8b3;
}

.gift.design-perforated.door24-gold .calendar .door.special .door-face {
    outline: 0;
}

/* NOCHE DE NAVIDAD · estrellas sobre las propias puertas */

.gift.design-night .calendar {
    background: #111629;
}

.gift.design-night .calendar .door.pattern-0 { --night-fill: #293551; }
.gift.design-night .calendar .door.pattern-1 { --night-fill: #55243e; }
.gift.design-night .calendar .door.pattern-2 { --night-fill: #71334c; }
.gift.design-night .calendar .door.pattern-3 { --night-fill: #3a2d54; }

.gift.green.design-night .calendar .door.pattern-0 { --night-fill: #293551; }
.gift.green.design-night .calendar .door.pattern-1 { --night-fill: #16433e; }
.gift.green.design-night .calendar .door.pattern-2 { --night-fill: #255e50; }
.gift.green.design-night .calendar .door.pattern-3 { --night-fill: #254954; }

.gift.design-night .calendar
.door:is(.pattern-0, .pattern-1, .pattern-2, .pattern-3) .door-face {
    background:
        radial-gradient(circle, #fff1c7b3 0 1px, transparent 1.5px)
            7px 2px / 41px 33px,
        radial-gradient(circle, #fff9e970 0 1px, transparent 1.5px)
            18px 11px / 29px 47px,
        var(--night-fill);
    box-shadow: inset 0 0 0 1px #fff6d526;
}

.gift.design-night .calendar
.door:is(.pattern-0, .pattern-1, .pattern-2, .pattern-3) .door-number {
    color: #fff9ed;
    text-shadow: 0 2px 3px #0008;
}

/* Papel de regalo · arbolitos y estrellas en el papel claro */

.gift.red.design-wrap {
    --christmas-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42' viewBox='0 0 48 42' fill='%23990e28'%3E%3Cpath d='M12 5l4 5h-2l4 5h-5v3h-2v-3H6l4-5H8z'/%3E%3Cpath d='M36 22l1.3 3.7L41 27l-3.7 1.3L36 32l-1.3-3.7L31 27l3.7-1.3z' opacity='.7'/%3E%3C/svg%3E");
}

.gift.green.design-wrap {
    --christmas-print: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='42' viewBox='0 0 48 42' fill='%23176348'%3E%3Cpath d='M12 5l4 5h-2l4 5h-5v3h-2v-3H6l4-5H8z'/%3E%3Cpath d='M36 22l1.3 3.7L41 27l-3.7 1.3L36 32l-1.3-3.7L31 27l3.7-1.3z' opacity='.7'/%3E%3C/svg%3E");
}

.gift.design-wrap .calendar .door.pattern-3 .door-face {
    background: var(--pale) var(--christmas-print) 0 0 / 48px 42px repeat;
}

.editor-mobile-tabs {
    display: none;
}

@media (max-width: 900px) {
    .editor-mobile-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 12px 10px 0;
    }

    .editor-mobile-tabs button {
        min-height: 44px;
        padding: 8px 10px;
        background: #fff;
        color: #394563;
        border: 1px solid #dfe3ef;
        border-radius: 12px;
    }

    .editor-mobile-tabs button[aria-pressed="true"] {
        background: #17213b;
        border-color: #17213b;
        color: #fff;
    }

    .editor-layout:not(.show-settings) > .editor-settings,
    .editor-layout.show-settings > .editor-main {
        display: none;
    }

    .editor-top #saveStatus {
        font-size: 11px;
        line-height: 1.2;
        text-align: right;
    }
}

@media (max-width: 540px) {
    .editor-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .editor-actions .editor-prev {
        grid-area: 1 / 1;
    }

    .editor-actions .editor-next {
        grid-area: 1 / 2;
    }

    .editor-actions button[type="submit"] {
        grid-area: 2 / 1 / 3 / 3;
        min-height: 44px;
    }
}

/* Editor · fotos y nota de voz */

.editor-media-grid {
    align-items: start;
}

.editor-media-grid .editor-media {
    padding: 16px;
    background: #fff;
    border: 1px solid #dfe3ef;
    border-radius: 14px;
}

.editor-media-grid .editor-media h3 {
    margin: 0 0 12px;
}

.editor-media-grid .editor-photo-slot + .editor-photo-slot {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #edf0f6;
}

/* Selector de archivo compacto, con el nombre visible al elegirlo */
.editor-media-grid .editor-file {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.editor-media-grid .editor-file input[type="file"] {
    margin-top: 5px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    font-size: 12px;
}

.editor-media-grid input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 8px 10px;
    border: 1px solid #dfe3ef;
    border-radius: 8px;
    background: #f4f6fb;
    color: #17213b;
    font: inherit;
    cursor: pointer;
}

.editor-photo-preview {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    font-size: 12px;
}

.editor-photo-preview img {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    object-fit: cover;
    border-radius: 6px;
}

.editor-media-grid .editor-remove {
    margin: 6px 0 0;
}

.editor-audio .audio-options {
    align-items: flex-start;
    gap: 12px;
}

.editor-audio .audio-options .editor-file {
    width: 100%;
}

.editor-audio .audio-record-start {
    min-height: 40px;
    border-radius: 9px;
    padding: 8px 13px;
    background: #fff3f5;
    color: #a41232;
    border: 1px solid #edc8d1;
}

/* Paleta del editor */

.editor-page {
    --editor-bg: var(--adv-bg);
    --editor-panel: var(--adv-panel);
    --editor-field: var(--adv-field);
    --editor-soft: var(--adv-soft);
    --editor-border: var(--adv-border);
    --editor-ink: var(--adv-ink);
    --editor-muted: var(--adv-muted);
    --editor-accent: var(--adv-accent);

    background: var(--editor-bg);
    color: var(--editor-ink);
}

.editor-page .editor-top,
.editor-page .editor-panel {
    background: var(--editor-panel);
    border: 1px solid var(--editor-border);
}

.editor-page .editor-top {
    border-width: 0 0 1px;
}

.editor-page .editor-top > a {
    color: var(--editor-accent);
    font-family: 'Baskervville', Georgia, serif !important;
}

.editor-page .editor-preview,
.editor-page .editor-mobile-tabs button {
    background: var(--editor-field);
    border-color: var(--editor-border);
    color: var(--editor-ink);
}

.editor-page .editor-panel label,
.editor-page .editor-door-form h1 {
    color: var(--editor-ink);
}

.editor-page .editor-panel :is(input[type="text"], input:not([type]), textarea, select) {
    background: var(--editor-field);
    border-color: var(--editor-border);
    color: var(--editor-ink);
}

.editor-page .editor-panel :is(input, textarea, select):focus-visible,
.editor-page button:focus-visible,
.editor-page a:focus-visible {
    outline: 2px solid var(--editor-accent);
    outline-offset: 2px;
}

.editor-page .editor-top #saveStatus,
.editor-page .editor-count,
.editor-page .note {
    color: var(--editor-muted);
}

/* Fotos y audio, como secciones dentro de la tarjeta */

.editor-page .editor-media-grid .editor-media {
    background: var(--editor-soft);
    border-color: var(--editor-border);
}

.editor-page .editor-media-grid .editor-photo-slot + .editor-photo-slot {
    border-color: var(--editor-border);
}

.editor-page .editor-media-grid input[type="file"]::file-selector-button,
.editor-page .editor-audio .audio-record-start {
    background: var(--editor-field);
    border-color: var(--editor-border);
    color: var(--editor-accent);
}

/* Días y acciones */

.editor-page .editor-day:not(.filled):not(.active) {
    background: var(--adv-soft);
    color: var(--editor-muted);
}

.editor-page .editor-day.active,
.editor-page .editor-mobile-tabs button[aria-pressed="true"],
.editor-page .editor-actions button[type="submit"] {
    background: var(--editor-accent);
    border-color: var(--editor-accent);
    color: #fff;
}

.editor-page .editor-door-form h1 strong {
    color: var(--editor-accent);
}

.editor-page .editor-actions :is(.editor-prev, .editor-next) {
    background: var(--editor-soft);
    color: var(--editor-accent);
}

#calendarPush {
    margin: 12px auto 0;
    text-align: center;
}

#calendarPush button {
    padding: 8px 14px;
    border: 1px solid var(--dark);
    border-radius: 20px;
    background: transparent;
    color: var(--dark);
    font-size: 13px;
}

#calendarPush [role="status"] {
    margin: 8px 0 0;
    color: var(--dark);
    font-size: 13px;
}

#calendarPush [role="status"]:empty {
    display: none;
}

/* ==========================================
   CABECERA DEL CALENDARIO - ESPACIADO
   ========================================== */

.gift .giftwrap > header {
    padding-bottom: 8px;
}

.gift .calendar {
    margin-top: 12px;
}

/* Ajustes para móvil */
@media (max-width: 600px) {

    .gift .giftwrap > header {
        padding-bottom: 4px;
    }

    .gift .calendar {
        margin-top: 10px;
    }

}

.gift .calendar-welcome {
    font-family: 'Baskervville', serif !important;
    font-size: 17px;
    font-weight: 400;
    font-style: normal;
}

.gift .calendar-sender {
    font-family: 'Baskervville', serif !important;
    font-size: 19px;
    font-weight: 400;
    font-style: italic;
}


/* ==========================================
   ENTRADA REGALO - LAZO Y RESPLANDOR DORADO
   ========================================== */

/* El resplandor detrás de la caja */
.welcome-screen.entrance-gift .entrance-object::before {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(.8);
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 232, 166, .55) 0%,
        rgba(244, 191, 91, .27) 30%,
        rgba(244, 191, 91, .08) 55%,
        transparent 73%
    );
    filter: blur(12px);
    opacity: .65;
    pointer-events: none;
    transition: transform 1.2s ease, opacity 1.2s ease;
}

/* Caja con un poco más de volumen */
.welcome-screen.entrance-gift .gift-box {
    background: linear-gradient(
        110deg,
        #e23450 0%,
        #d22d46 55%,
        #b91d39 100%
    );
    box-shadow:
        inset -12px 0 20px rgba(100, 0, 20, .12),
        0 22px 35px rgba(0, 0, 0, .3);
}

/* Cinta vertical de la caja */
.welcome-screen.entrance-gift .gift-box::after {
    background: linear-gradient(
        90deg,
        #e8bb66,
        #ffe4a3 45%,
        #e8bb66
    );
}

/* Tapa */
.welcome-screen.entrance-gift .gift-lid {
    background: linear-gradient(
        110deg,
        #f04b66,
        #e63c59 65%,
        #cc2948
    );
}

/* Cinta de la tapa */
.welcome-screen.entrance-gift .gift-ribbon {
    background: linear-gradient(
        90deg,
        #e8bb66,
        #ffe4a3 45%,
        #e8bb66
    );
    overflow: visible;
}

/* Lazada izquierda */
.welcome-screen.entrance-gift .gift-ribbon::before {
    content: "";
    position: absolute;
    width: 43px;
    height: 24px;
    left: -36px;
    top: -20px;
    background: linear-gradient(135deg, #ffe7ad, #d6a64e);
    border: 2px solid #f6d58c;
    border-radius: 85% 12% 65% 18%;
    transform: rotate(22deg);
    box-shadow: inset -5px -3px 7px #a9793333;
}

/* Lazada derecha */
.welcome-screen.entrance-gift .gift-ribbon::after {
    content: "";
    position: absolute;
    width: 43px;
    height: 24px;
    right: -36px;
    top: -20px;
    background: linear-gradient(225deg, #ffe7ad, #d6a64e);
    border: 2px solid #f6d58c;
    border-radius: 12% 85% 18% 65%;
    transform: rotate(-22deg);
    box-shadow: inset 5px -3px 7px #a9793333;
}

/* Luz que sale del regalo al abrirlo */
.welcome-screen.entrance-gift .entrance-object::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 105px;
    width: 170px;
    height: 130px;
    border-radius: 50%;
    transform: translateX(-50%) scale(.3);
    background: radial-gradient(
        circle,
        rgba(255, 250, 215, .95),
        rgba(255, 213, 117, .55) 45%,
        transparent 75%
    );
    filter: blur(14px);
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

/* Apertura: el fondo dorado crece */
.welcome-screen.entrance-gift.is-opening
.entrance-object::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(2.4);
}

/* Destello que aparece al levantarse la tapa */
.welcome-screen.entrance-gift.is-opening
.entrance-object::after {
    animation: giftGoldenLight 1.4s ease-out forwards;
}

@keyframes giftGoldenLight {
    0%, 15% {
        opacity: 0;
        transform: translateX(-50%) scale(.3);
    }
    45% {
        opacity: 1;
        transform: translateX(-50%) scale(1.4);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) scale(3);
    }
}

/* Apertura de tapa y lazo */
.welcome-screen.entrance-gift.is-opening .gift-lid,
.welcome-screen.entrance-gift.is-opening .gift-ribbon {
    transform: translateY(-115px) rotate(-13deg);
}

/* Accesibilidad */
@media (prefers-reduced-motion: reduce) {
    .welcome-screen.entrance-gift.is-opening
    .entrance-object::after {
        animation: none;
    }

    .welcome-screen.entrance-gift.is-opening
    .entrance-object::before {
        transition: none;
    }
}


/* ======================================
   LAZO DE REGALO - CINTA DE RASO
   ====================================== */

/* Eliminar las antiguas lazadas */
.welcome-screen.entrance-gift .gift-ribbon::before,
.welcome-screen.entrance-gift .gift-ribbon::after {
    content: none;
}

/* Contenedor del lazo */
.welcome-screen.entrance-gift .gift-bow {
    position: absolute;
    left: 50%;
    top: 0;
    width: 110px;
    height: 70px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Lazadas */
.welcome-screen.entrance-gift .bow-loop {
    position: absolute;
    top: 8px;
    width: 49px;
    height: 31px;
    background: linear-gradient(
        145deg,
        #fff0c2 0%,
        #f4d48c 35%,
        #d7a54e 100%
    );
    box-shadow: inset 0 -5px 8px #9b6a2733;
}

.welcome-screen.entrance-gift .bow-left {
    left: 8px;
    border-radius: 75% 20% 60% 25%;
    transform: rotate(27deg);
}

.welcome-screen.entrance-gift .bow-right {
    right: 8px;
    border-radius: 20% 75% 25% 60%;
    transform: rotate(-27deg);
}

/* Extremos de la cinta */
.welcome-screen.entrance-gift .bow-tail {
    position: absolute;
    top: 27px;
    width: 19px;
    height: 43px;
    background: linear-gradient(
        90deg,
        #d6a34d,
        #ffe6a5 55%,
        #e4b85e
    );
    clip-path: polygon(
        0 0, 100% 0,
        100% 100%, 50% 82%, 0 100%
    );
}

.welcome-screen.entrance-gift .tail-left {
    left: 35px;
    transform: rotate(25deg);
}

.welcome-screen.entrance-gift .tail-right {
    right: 35px;
    transform: rotate(-25deg);
}

/* Nudo central */
.welcome-screen.entrance-gift .bow-knot {
    position: absolute;
    z-index: 3;
    top: 23px;
    left: 50%;
    width: 25px;
    height: 21px;
    transform: translateX(-50%);
    border-radius: 45%;
    background: linear-gradient(
        135deg,
        #fff0be,
        #e4b65e 75%
    );
    box-shadow: 0 2px 5px #9b6a2733;
}


/* Advientatio · editor multimedia refinado (solo editor) */
.editor-page .editor-media-grid { gap: 16px; align-items: start; }
.editor-page .editor-media-grid .editor-media { padding: 19px; border-radius: 16px; }
.editor-page .editor-media-grid .editor-media h3 { margin: 0 0 6px; font-size: 16px; }
.editor-page .editor-media-hint { margin: 0 0 16px; font-size: 12px; line-height: 1.55; color: var(--editor-muted); }
.editor-page .editor-photo-slot + .editor-photo-slot { margin-top: 12px; padding-top: 12px; }
.editor-page .editor-photo-slot.has-photo { display: grid; grid-template-columns: 104px minmax(0,1fr); gap: 12px; align-items: start; }
.editor-page .editor-photo-preview { margin: 0; display: block; }
.editor-page .editor-photo-preview img { width: 104px; height: 104px; border-radius: 12px; object-fit: cover; display: block; }
.editor-page .editor-photo-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; min-width: 0; }
.editor-page .editor-photo-title { display: block; font-size: 13px; font-weight: 750; color: var(--editor-ink); }
.editor-page .editor-upload-button { display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0; padding: 9px 12px; border: 1px solid var(--editor-border); border-radius: 9px; background: var(--editor-field); color: var(--editor-accent); font-size: 12px; font-weight: 700; cursor: pointer; }
.editor-page .editor-upload-button input[type=file], .editor-page .editor-photo-add input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.editor-page .editor-upload-button:focus-within, .editor-page .editor-photo-add:focus-within { outline: 2px solid var(--editor-accent); outline-offset: 2px; }
.editor-page .editor-photo-controls .editor-remove { display: flex; gap: 6px; align-items: center; margin: 0; font-weight: 500; font-size: 12px; }
.editor-page .editor-photo-controls .editor-remove input { margin: 0; width: auto; }
.editor-page .editor-photo-add { margin: 0; padding: 15px; border: 1.5px dashed var(--editor-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 4px; cursor: pointer; background: var(--editor-field); color: var(--editor-ink); text-align: center; font-weight: 700; }
.editor-page .editor-photo-add:hover { border-color: var(--editor-accent); }
.editor-page .editor-photo-add-icon { font-size: 25px; line-height: 1; color: var(--editor-accent); }
.editor-page .editor-photo-add small { color: var(--editor-muted); font-size: 11px; font-weight: 400; }
.editor-page .editor-selected-file { display: block; grid-column: 1 / -1; font-size: 11px; color: var(--editor-accent); overflow-wrap: anywhere; }
.editor-page .editor-selected-file:empty { display: none; }
.editor-page .editor-audio .audio-options { gap: 12px; }
.editor-page .editor-audio .audio-record-start { width: 100%; min-height: 46px; font-size: 13px; }
.editor-page .editor-audio .editor-audio-upload { width: 100%; min-height: 43px; }
.editor-page .editor-saved-audio { margin-top: 18px; padding: 12px; border: 1px solid var(--editor-border); border-radius: 12px; background: var(--editor-field); }
.editor-page .editor-saved-audio audio { width: 100%; margin: 9px 0 0; height: 40px; }
@media (max-width: 480px) {
  .editor-page .editor-media-grid .editor-media { padding: 15px; }
  .editor-page .editor-photo-slot.has-photo { grid-template-columns: 88px minmax(0,1fr); gap: 10px; }
  .editor-page .editor-photo-preview img { width: 88px; height: 88px; }
}

/* Advientatio · fotos adicionales compactas y desplegables */
.editor-page .editor-photo-primary .editor-photo-slot.is-empty .editor-photo-add { min-height: 64px; padding: 10px 12px; display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; text-align: left; justify-content: start; align-content: center; }
.editor-page .editor-photo-primary .editor-photo-add-icon { grid-row: span 2; font-size: 21px; align-self: center; }
.editor-page .editor-photo-primary .editor-photo-add small { grid-column: 2; }
.editor-page .editor-photo-extras { margin-top: 12px; border: 1px solid var(--editor-border); border-radius: 11px; background: var(--editor-field); overflow: hidden; }
.editor-page .editor-photo-extras > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; list-style: none; cursor: pointer; padding: 12px; font-size: 12px; color: var(--editor-ink); }
.editor-page .editor-photo-extras > summary::-webkit-details-marker { display: none; }
.editor-page .editor-photo-extras > summary::before { content: '▸'; font-size: 16px; color: var(--editor-accent); }
.editor-page .editor-photo-extras[open] > summary::before { content: '▾'; }
.editor-page .editor-photo-extras > summary > span:first-child { flex: 1; }
.editor-page .editor-photo-extras > summary small { font-weight: 400; color: var(--editor-muted); }
.editor-page .editor-photo-extras-count { font-size: 11px; font-weight: 400; color: var(--editor-muted); text-align: right; }
.editor-page .editor-photo-extra-content { padding: 0 12px 12px; }
.editor-page .editor-photo-extra-content .editor-photo-slot.is-empty .editor-photo-add { min-height: 55px; padding: 9px; display: flex; flex-direction: row; flex-wrap: wrap; gap: 7px; }
.editor-page .editor-photo-extra-content .editor-photo-slot.is-empty .editor-photo-add-icon { font-size: 20px; }
.editor-page .editor-photo-extra-content .editor-photo-slot.is-empty .editor-photo-add small { display: none; }
.editor-page .editor-photo-extra-content .editor-photo-slot + .editor-photo-slot { margin-top: 9px; padding-top: 9px; }


/* ==========================================
   ADVIENTATIO - ENTRADA ANIMADA DEL TABLERO
   ========================================== */

/* El tablero permanece oculto durante la bienvenida */
.gift:has(.welcome-screen:not(.is-finished)) .calendar {
    visibility: hidden;
}

/* Aparece el tablero al terminar la bienvenida */
.gift:has(.welcome-screen.is-finished) .calendar {
    animation: advTableroEntrada .5s ease-out both;
}

/* Las cajas aparecen progresivamente */
.gift:has(.welcome-screen.is-finished) .calendar .door:not(.opening) {
    animation: advCajaEntrada .55s cubic-bezier(.2,.8,.25,1.1) both;
    animation-delay: calc(.12s + (sibling-index() - 1) * .055s);
}

/* Entrada del tablero */
@keyframes advTableroEntrada {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Entrada individual de cada caja */
@keyframes advCajaEntrada {
    from {
        opacity: 0;
        transform: translateY(-24px) scale(.85);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Respetar la animación original al abrir una caja */
.gift .calendar .door.opening {
    animation: openChristmasDoor .65s
        cubic-bezier(.25,.1,.25,1) forwards;
}


/* ==========================================
   CAJAS QUE YA SE HAN ABIERTO
   ========================================== */

/* Eliminar el papel y mostrar el fondo del tablero */
.gift .calendar .door.visited .door-face,
.gift .calendar .door.visited.today .door-face {
    background: var(--board) !important;
    background-image: none !important;
    box-shadow: inset 0 0 0 1px rgba(255,220,150,.22) !important;
    outline: none !important;
}

/* Quitar los dibujos y decoraciones del regalo */
.gift .calendar .door.visited .door-face::before,
.gift .calendar .door.visited .door-face::after,
.gift .calendar .door.visited .special-decoration,
.gift .calendar .door.visited .special-decoration::before,
.gift .calendar .door.visited .special-decoration::after {
    display: none !important;
}

/* Número dorado y discreto */
.gift .calendar .door.visited .door-number,
.gift .calendar .door.visited.today .door-number {
    color: #d9b875 !important;
    -webkit-text-stroke: 0 !important;
    text-shadow: none !important;
    opacity: .8;
}

/* Quitar el indicador HOY si ya se ha abierto */
.gift .calendar .door.visited .today-label {
    display: none;
}

/* Suavizar el resaltado del día actual */
.gift .calendar .door.visited.today {
    outline: none;
    box-shadow: none;
}

/* Iluminar ligeramente al pasar el ratón */
.gift .calendar .door.visited:hover .door-face {
    box-shadow: inset 0 0 0 1px #d9b875 !important;
}

/* Mantener un detalle especial en el día 24 */
.gift .calendar .door.visited.special .door-number {
    color: #f1d08a !important;
    opacity: 1;
}


/* ==========================================
   CABECERA NAVIDEÑA - ABETOS DELICADOS
   ========================================== */

.gift .recipient-christmas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 auto 10px;
}

.gift .recipient-christmas .recipient-title {
    margin: 0;
    font-size: clamp(42px, 7vw, 70px);
    min-width: 0;
}


.gift .christmas-forest {
    display: block;
    width: 45px;
    flex: 0 0 45px;
}

.gift .christmas-forest svg {
    display: block;
    width: 100%;
    height: auto;
}

.gift .forest-right {
    transform: scaleX(-1);
}

@media (max-width: 600px) {
    .gift .recipient-christmas {
        gap: 2px;
    }

@media (max-width: 600px) {
    .gift .christmas-forest {
        width: 30px;
        flex-basis: 30px;
    }
}

    .gift .recipient-christmas .recipient-title {
        font-size: clamp(32px, 8vw, 48px);
    }
}


/* ==========================================
   EDITOR - DECORACIÓN DEL NOMBRE
   ========================================== */

.editor-page .header-decoration-choice {
    min-height: 95px;
}

.editor-page .header-decoration-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    font-size: 28px;
    line-height: 1;
}

.editor-page .header-decoration-none {
    font-family: Georgia, serif;
    font-weight: bold;
    color: #a88789;
}

.editor-page .header-decoration-trees {
    font-size: 30px;
}

.editor-page .header-decoration-choice > span:last-child {
    font-size: 12px;
}

/* Tipografía de los títulos principales */
h1,h2, h3 {
    font-family: 'Baskervville', Georgia, serif !important;
    font-weight: 400;
    color: #45553d;
}

/* Tipografía de los títulos principales */
h1 {
    font-size: 30px !important;
}

/* ==========================================
   PROTECCIÓN DEL CALENDARIO - EDITOR
   ========================================== */

.editor-page .editor-access {
    margin-top: 22px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e1ded8;
    border-radius: 12px;
}

.editor-page .editor-access summary {
    padding: 3px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.editor-page .editor-access label {
    font-size: 13px;
    margin-top: 16px;
}

.editor-page .editor-access input[type="password"] {
    max-width: 260px;
    letter-spacing: 3px;
    border-radius: 10px;
    background: #fff;
}

.editor-page .editor-access .note {
    margin: 10px 0 15px;
    line-height: 1.5;
    font-weight: 400;
}

.editor-page .editor-access-status {
    color: #397653;
    font-size: 13px;
    line-height: 1.5;
}

.editor-page .editor-access-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-page .editor-access-actions button {
    font-size: 12px;
    padding: 10px 14px;
}

.editor-page .editor-access-remove {
    background: #fff;
    color: #a33c3c;
    border: 1px solid #e3caca;
}

.editor-page .editor-access-remove:hover {
    background: #fff1f1;
}


/* ==========================================
   PANTALLA DE ACCESO AL CALENDARIO
   ========================================== */

.calendar-access-page {
    min-height: 100vh;
    background:
        radial-gradient(
            ellipse at top,
            #fffaf3,
            #f1e6d9
        );
}

.calendar-access-wrap {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.calendar-access-card {
    width: 100%;
    max-width: 390px;
    padding: 35px 30px;
    background: #fffdf8;
    border: 1px solid #e2d2b6;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 50px rgba(72, 47, 28, .08);
}

.calendar-access-stars {
    color: #c6a367;
    font-size: 18px;
    letter-spacing: 8px;
    margin-bottom: 24px;
}

.calendar-access-icon {
    width: 65px;
    height: 65px;
    margin: 0 auto 24px;
    color: var(--dark);
}

.calendar-access-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.calendar-access-eyebrow {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 2.5px;
    color: #a88a54;
    margin-bottom: 12px;
}

.gift .calendar-access-card h1 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 30px !important;
    font-weight: 400;
    line-height: 1.15;
    color: var(--dark);
    margin: 0 0 15px;
}

.calendar-access-description {
    font-size: 14px;
    line-height: 1.7;
    color: #81766c;
    margin: 0 0 24px;
}

.calendar-access-card input[type="password"] {
    width: 100%;
    padding: 15px;
    border: 1px solid #ded3c2;
    border-radius: 10px;
    background: #fff;
    text-align: center;
    font-size: 16px;
    letter-spacing: 4px;
    color: var(--dark);
    outline: none;
}

.calendar-access-card input[type="password"]::placeholder {
    letter-spacing: 1px;
    color: #a99d8e;
}

.calendar-access-card input[type="password"]:focus {
    border-color: #c6a367;
    box-shadow: 0 0 0 3px rgba(198, 163, 103, .15);
}

.calendar-access-card button {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 14px;
    border-radius: 10px;
    background: var(--dark);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
}

.calendar-access-card button:hover {
    background: var(--medium);
}

.calendar-access-error {
    margin: 12px 0;
    padding: 10px;
    border-radius: 8px;
    background: #fff0ed;
    color: #a33c3c;
    font-size: 13px;
    line-height: 1.5;
}

.calendar-access-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #b59a67;
}

.calendar-access-footer span {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 16px;
}

@media (max-width: 540px) {

    .calendar-access-wrap {
        padding: 18px;
    }

    .calendar-access-card {
        padding: 30px 22px;
    }

    .editor-page .editor-access-actions button {
        width: 100%;
    }

}

/* ==========================================
   EDITOR - APARTADOS DE PERSONALIZACIÓN
   ========================================== */

.editor-page .editor-settings > h2 {
    margin-bottom: 20px;
    color: #40513d;
}

.editor-page .editor-settings .editor-section {
    margin: 0 0 10px;
    padding: 0;
    border: 1px solid #e2dad2;
    border-radius: 12px;
    background: #fffdf9;
    overflow: hidden;
}

.editor-page .editor-section > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 15px 13px;
    font-size: 13px;
    font-weight: 600;
    color: #403b35;
    cursor: pointer;
    list-style: none;
    transition: background .2s;
}

.editor-page .editor-section > summary::-webkit-details-marker {
    display: none;
}

.editor-page .editor-section > summary::after {
    content: "";
    display: block;
    width: 7px;
    height: 7px;
    flex-shrink: 0;
    border-right: 1.5px solid #897c70;
    border-bottom: 1.5px solid #897c70;
    transform: rotate(-45deg);
    transition: transform .2s;
    margin-right: 3px;
}

.editor-page .editor-section > summary:hover {
    background: #f5eee7;
}

.editor-page .editor-section[open] > summary {
    background: #f2ebe3;
    color: #40513d;
}

.editor-page .editor-section[open] > summary::after {
    transform: rotate(45deg);
}

.editor-page .editor-section-content {
    padding: 4px 13px 16px;
}

.editor-page .editor-section-content > h3:first-child {
    margin-top: 12px;
}

.editor-page .editor-section-content > label:first-child {
    margin-top: 12px;
}

.editor-page .editor-section-status {
    margin-left: auto;
    font-size: 10px;
    font-weight: 400;
    color: #978b7e;
}

.editor-page .editor-section-status.is-protected {
    color: #245840;
    font-weight: 600;
}

.editor-page .editor-calendar-year {
    margin: 16px 0 10px;
    font-size: 12px;
}

.editor-page .editor-save-settings {
    width: 100%;
    margin-bottom: 18px;
    padding: 12px;
}

.editor-page .editor-section.editor-access {
    margin-top: 0;
}

.editor-page .editor-section.editor-simulator {
    margin-top: 0;
    padding: 0;
}

.editor-page .editor-simulator select {
    margin-top: 12px;
}

.editor-page .editor-simulator button {
    margin-top: 10px;
}

.editor-page .editor-section .editor-choice {
    min-width: 0;
}

.editor-page .editor-section .editor-choice span {
    overflow-wrap: anywhere;
}


/* ==========================================
   EDITOR - RESUMEN DEL CALENDARIO
   ========================================== */

.editor-page .editor-overview {
    margin-top: 22px;
}

.editor-overview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.editor-page .editor-overview-header h2 {
    margin: 0;
    color: #40513d;
    font-family: 'Baskervville', Georgia, serif;
    font-size: 25px;
    font-weight: 400;
}

.editor-progress-status {
    font-size: 12px;
    font-weight: 500;
    color: #897968;
}

.editor-progress-status.is-complete {
    color: #245840;
}

.editor-progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
}

.editor-progress-label strong {
    color: #245840;
}

.editor-progress-track {
    height: 8px;
    background: #e4e9df;
    border-radius: 20px;
    overflow: hidden;
}

.editor-progress-bar {
    height: 100%;
    background: #245840;
    border-radius: 20px;
    transition: width .35s ease;
}

.editor-progress-note {
    font-size: 12px;
    color: #81766c;
    margin: 10px 0 22px;
}

.editor-overview-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.editor-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 110px;
    padding: 14px 8px;
    border: 1px solid #e6d9d3;
    border-radius: 14px;
    background: #f6ece7;
    text-align: center;
}

.editor-stat-icon {
    font-size: 21px;
}

.editor-stat strong {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.1;
    color: #861d3c;
}

.editor-stat > span:last-child {
    font-size: 12px;
    color: #786b62;
}


/* ==========================================
   EDITOR - COMPARTIR CALENDARIO
   ========================================== */

.editor-share {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e4dbd1;
}

.editor-page .editor-share h3 {
    margin: 0 0 8px;
    color: #40513d;
    font-size: 15px;
}

.editor-share > .note {
    line-height: 1.6;
}

.editor-share-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.editor-share-actions button {
    background: #245840;
    color: #fff;
    font-size: 13px;
    border-radius: 8px;
    padding: 11px 16px;
}

.editor-share-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border: 1px solid #d8dcd2;
    border-radius: 8px;
    color: #245840;
    background: transparent;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.editor-share-open:hover {
    background: #edf1e9;
}

.editor-share-status {
    margin: 14px 0 0;
    font-size: 12px;
}


/* ==========================================
   ADAPTACIÓN A MÓVILES
   ========================================== */

@media (max-width: 768px) {

    .editor-page .editor-overview {
        margin-top: 16px;
    }

    .editor-overview-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .editor-stat {
        min-height: 100px;
    }

    .editor-share-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .editor-share-actions button,
    .editor-share-open {
        width: 100%;
    }

}

/* =========================================
   EDITOR - DISTRIBUCIÓN EQUILIBRADA
========================================= */

@media (min-width: 769px) {

    .editor-layout {
        display: grid;
        grid-template-columns: 340px minmax(0, 1fr);
        grid-template-rows: min-content 1fr;
        column-gap: 38px;
        row-gap: 20px;
        align-items: start;
    }

    .editor-layout > .editor-settings {
        grid-column: 1;
        grid-row: 1;
    }

    .editor-layout > .editor-main {
        grid-column: 2;
        grid-row: 1 / 3;
        min-width: 0;
    }

    .editor-layout > .editor-overview {
        grid-column: 1;
        grid-row: 2;
        margin: 0;
    }

}


/* =========================================
   RESUMEN COMPACTO DEL CALENDARIO
========================================= */

.editor-overview {
    padding: 24px;
}

.editor-overview-header {
    gap: 8px;
    margin-bottom: 16px;
}

.editor-overview-header h2 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 24px;
    font-weight: 400;
    margin: 0;
}

.editor-overview .editor-progress-status {
    font-size: 11px;
}

.editor-overview .editor-progress-label {
    font-size: 12px;
}

.editor-overview .editor-progress-track {
    height: 6px;
}

.editor-overview .editor-progress-note {
    font-size: 11px;
    margin: 8px 0 16px;
}

.editor-overview .editor-overview-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.editor-overview .editor-stat {
    padding: 12px 8px;
    min-height: 0;
    gap: 4px;
    border-radius: 12px;
}

.editor-overview .editor-stat-icon {
    font-size: 17px;
}

.editor-overview .editor-stat strong {
    font-size: 23px;
    line-height: 1.2;
}

.editor-overview .editor-stat > span:last-child {
    font-size: 11px;
}


/* =========================================
   COMPARTIR CALENDARIO
========================================= */

.editor-overview .editor-share {
    margin-top: 18px;
    padding-top: 16px;
}

.editor-overview .editor-share h3 {
    font-size: 14px;
    margin: 0 0 12px;
}

.editor-overview .editor-share-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 8px;
}

.editor-overview .editor-share-actions button,
.editor-overview .editor-share-open {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
    font-size: 12px;
    padding: 10px 12px;
}

.editor-overview .editor-share-status {
    font-size: 11px;
    line-height: 1.5;
    margin: 12px 0 0;
}


/* =========================================
   ADAPTACIÓN A MÓVILES
========================================= */

@media (max-width: 768px) {

    .editor-layout > .editor-overview {
        margin-top: 18px;
        padding: 20px;
    }

    .editor-layout.show-settings > .editor-overview {
        display: none;
    }

}

/* =========================================
   ANIMACIONES DE FONDO - PERSONALIZACIÓN
   ========================================= */

.background-effect-choices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.background-effect-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    font-size: 28px;
    line-height: 1;
}

.background-effect-icon.effect-none {
    color: #999;
}

.background-effect-icon.effect-snow {
    color: #8ba8bc;
}

.background-effect-icon.effect-stars {
    color: #c5a063;
}

.background-effect-icon.effect-lights {
    color: #d9af59;
    text-shadow: 0 0 12px rgba(217, 175, 89, .65);
}


/* =========================================
   ANIMACIONES DE FONDO - CALENDARIO
   ========================================= */

.calendar-background-effect {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 5;
}

.calendar-background-effect .background-particle {
    position: absolute;
    display: block;
    pointer-events: none;
    user-select: none;
    will-change: transform, opacity;
}


/* NIEVE SUAVE */

.calendar-background-effect.effect-snow
.background-particle {
    color: #fff;
    text-shadow: 0 0 3px rgba(140, 155, 170, .45);
    animation: calendar-snow-fall linear infinite;
}

@keyframes calendar-snow-fall {

    from {
        transform: translate3d(0, -20px, 0)
                   rotate(0deg);
    }

    to {
        transform: translate3d(
            var(--drift),
            calc(100vh + 40px),
            0
        ) rotate(180deg);
    }

}


/* ESTRELLAS DORADAS */

.calendar-background-effect.effect-stars
.background-particle {
    color: #c6a05a;
    animation: calendar-star-glow ease-in-out infinite;
}

@keyframes calendar-star-glow {

    0% {
        opacity: .15;
        transform: translate3d(0, 0, 0);
    }

    50% {
        opacity: .85;
        transform: translate3d(
            var(--drift), -20px, 0
        );
    }

    100% {
        opacity: .15;
        transform: translate3d(0, 0, 0);
    }

}


/* LUCES CÁLIDAS */

.calendar-background-effect.effect-lights
.background-particle {
    border-radius: 50%;
    background: #e1b557;
    box-shadow: 0 0 14px 5px rgba(228, 192, 120, .35);
    animation: calendar-light-glow linear infinite;
}

@keyframes calendar-light-glow {

    0% {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }

    20% {
        opacity: .65;
    }

    60% {
        opacity: .85;
    }

    100% {
        opacity: 0;
        transform: translate3d(
            var(--drift), -80px, 0
        );
    }

}


/* ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {

    .calendar-background-effect {
        display: none !important;
    }

}

/* Mejorar contraste de las animaciones */

.calendar-background-effect.effect-snow
.background-particle {
    color: #ffffff;
    text-shadow:
        0 0 2px #8b9eae,
        0 0 4px rgba(130, 150, 170, .45);
}

.calendar-background-effect.effect-stars
.background-particle {
    color: #b58a38;
    text-shadow: 0 0 5px rgba(181, 138, 56, .25);
}

.calendar-background-effect.effect-lights
.background-particle {
    background: #d5a342;
    box-shadow:
        0 0 8px 3px rgba(213, 163, 66, .45),
        0 0 18px 7px rgba(213, 163, 66, .20);
}

/* ==========================================
   FONDO DEL CALENDARIO PÚBLICO
   ========================================== */

html:has(body.gift.red:not(.calendar-access-page)) {
    background: #e3d3bc;
}

html:has(body.gift.green:not(.calendar-access-page)) {
    background: #d3ddca;
}

body.gift {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Tema rojo */

body.gift.red:not(.calendar-access-page) {
    background-color: #e3d3bc;

    background-image: radial-gradient(
        ellipse at 50% 20%,
        #fffaf2 0%,
        #f1e7d7 55%,
        #e3d3bc 100%
    );

    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Tema verde */

body.gift.green:not(.calendar-access-page) {
    background-color: #d3ddca;

    background-image: radial-gradient(
        ellipse at 50% 20%,
        #fafbf3 0%,
        #e9ecdf 55%,
        #d3ddca 100%
    );

    background-attachment: fixed;
    background-repeat: no-repeat;
}

/* Compatibilidad con navegadores móviles */

@media (max-width: 768px), (hover: none) and (pointer: coarse) {

    body.gift.red:not(.calendar-access-page),
    body.gift.green:not(.calendar-access-page) {
        background-attachment: scroll;
    }

}

/* Calendario protegido por contraseña */

html:has(body.calendar-access-page) {
    background: #f1e6d9;
}

/* RECUPERACIÓN DE SESIÓN */

.session-expired-dialog {
    width: min(390px, calc(100% - 32px));
    max-width: 390px;
    box-sizing: border-box;
    padding: 30px;
    border: 1px solid #e2d6c7;
    border-radius: 20px;
    background: #fcf8f1;
    color: #594b43;
    text-align: center;
    box-shadow: 0 15px 60px rgba(0, 0, 0, .18);
}

.session-expired-dialog::backdrop {
    background: rgba(43, 32, 27, .45);
    backdrop-filter: blur(3px);
}

.session-expired-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #f1e7db;
    font-size: 23px;
}

.session-expired-dialog h2 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 27px;
    font-weight: 400;
    color: #8c1d40;
    margin: 0 0 16px;
}

.session-expired-dialog p {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 14px;
}

.session-login-button,
#resumeEditor {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.session-login-button {
    background: #23543f;
    color: #fff;
    margin-top: 22px;
    margin-bottom: 10px;
}

#resumeEditor {
    background: transparent;
    color: #594b43;
    border: 1px solid #d9cbbd;
}

#resumeEditor:disabled {
    opacity: .6;
    cursor: wait;
}

#sessionRecoveryStatus {
    margin: 12px 0 0;
    color: #8c1d40;
    font-size: 12px;
}

.editor-autosave-note {
    font-size: 11px;
    color: #64836c;
    text-align: center;
    margin: 14px 0 4px;
    line-height: 1.5;
}

/* HOVER DE LAS CASILLAS DEL CALENDARIO */

.gift .calendar .door-face {
    transition: translate .25s ease,
                filter .25s ease;
}

.gift .calendar .door:hover {
    transform: none;
}

.gift .calendar .door.locked {
    cursor: default;
}

@media (hover: hover) and (pointer: fine) {

    .gift .calendar .door:not(.locked):not(.opening):not(.visited):hover .door-face {
        translate: 0 -3px;
        filter: brightness(1.08);
    }

}

@media (prefers-reduced-motion: reduce) {

    .gift .calendar .door-face {
        transition: none;
    }

    .gift .calendar .door:hover .door-face {
        translate: none !important;
    }

}

/* ==========================================
   ADVIENTATIO - PALETA CORPORATIVA
   ========================================== */

:root {
    --adv-bg: #eee8df;
    --adv-panel: #fcf9f3;
    --adv-field: #fffdf9;
    --adv-soft: #f4eee5;
    --adv-border: #dfd6c9;
    --adv-ink: #392f2a;
    --adv-heading: #344b3b;
    --adv-muted: #786c60;
    --adv-accent: #8d2140;
    --adv-accent-hover: #72182f;
    --adv-green: #245840;
}

/* ==========================================
   ADVIENTATIO - COLOR COMÚN DE TÍTULOS
   ========================================== */

/* Mis calendarios */

.ap-page .ap-dashboard-heading h1,
.ap-page .ap-calendar-content h3,
.ap-page .ap-create-card strong,
.ap-page .ap-card h2 {
    color: var(--adv-heading) !important;
}

/* Superadministración */

.sa-page .sa-header h1,
.sa-page .sa-section h2 {
    color: var(--adv-heading) !important;
}

/* Mi cuenta */

.mc-page .mc-header h1,
.mc-page .mc-card h2,
.mc-page .mc-details summary {
    color: var(--adv-heading) !important;
}

/* Editor de calendarios */

.editor-page h1,
.editor-page h2,
.editor-page h3 {
    color: var(--adv-heading) !important;
}

/* ==========================================
   ADVIENTATIO - ICONO CORPORATIVO
   ========================================== */

.adv-brand-icon {
    display: inline-block;
    width: 26px;
    height: 26px;
    flex-shrink: 0;

    background-color: currentColor;

    -webkit-mask: url('logo.svg') center / contain no-repeat;
    mask: url('logo.svg') center / contain no-repeat;
}

.adv-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'Baskervville', Georgia, serif !important;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--adv-accent);
    text-decoration: none;
    white-space: nowrap;
}

.ap-login-brand > .adv-brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: var(--adv-heading, #344b3b);
}

.ap-page .adv-brand,
.sa-page .adv-brand,
.mc-page .adv-brand,
.editor-page .adv-brand {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--adv-accent) !important;
}

@media (max-width: 650px) {

    .adv-brand {
        font-size: 18px !important;
    }

    .adv-brand-icon {
        width: 23px;
        height: 23px;
    }

}

/* ==========================================
   ADVIENTATIO - PANTALLAS DE ACCESO
   ========================================== */

body.adv-auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: var(--adv-bg);
    color: var(--adv-ink);
    font-family: system-ui, Arial, sans-serif;
}

/* Distribución */

.adv-auth-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 40px 20px;
    box-sizing: border-box;
}

.adv-auth-container {
    width: 100%;
    max-width: 420px;
}

/* Marca */

.adv-auth-brand {
    text-align: center;
    margin-bottom: 30px;
    color: var(--adv-heading, #344b3b);
}

.adv-auth-brand > .adv-brand-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
}

.adv-auth-brand-name {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -1px;
}

.adv-auth-brand p {
    color: var(--adv-muted);
    font-size: 13px;
    margin: 9px 0 0;
}

/* Tarjeta */

.adv-auth-card {
    padding: 32px;
    margin: 0;
    background: var(--adv-panel);
    border: 1px solid var(--adv-border);
    border-radius: 22px;
    box-shadow: 0 8px 30px rgba(50, 40, 25, .035);
    box-sizing: border-box;
}

/* Título y descripción */

.adv-auth-heading {
    text-align: center;
    margin-bottom: 28px;
}

.adv-auth-page .adv-auth-heading h1 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 29px;
    font-weight: 400;
    color: var(--adv-heading, #344b3b);
    line-height: 1.2;
    margin: 0 0 12px;
}

.adv-auth-heading p {
    color: var(--adv-muted);
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

/* Formulario */

.adv-auth-card form {
    margin: 0;
}

.adv-auth-card label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--adv-ink);
    margin: 0 0 7px;
}

.adv-auth-page .adv-auth-card input:not([type="hidden"]) {
    display: block;
    width: 100%;
    height: 46px;
    padding: 12px 14px;
    margin: 0 0 19px;
    box-sizing: border-box;
    background: var(--adv-field);
    border: 1px solid var(--adv-border);
    border-radius: 10px;
    color: var(--adv-ink);
    font-size: 14px;
    font-weight: 400;
    transition: border-color .2s, box-shadow .2s;
}

.adv-auth-card input::placeholder {
    color: #a49b8e;
    font-weight: 400;
}

.adv-auth-page .adv-auth-card input:focus {
    outline: none;
    border-color: #819584;
    box-shadow: 0 0 0 3px rgba(52, 75, 59, .07);
}

/* Autocompletado */

.adv-auth-page input:-webkit-autofill,
.adv-auth-page input:-webkit-autofill:hover,
.adv-auth-page input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--adv-field) inset;
    -webkit-text-fill-color: var(--adv-ink);
}

/* Botón principal */

.adv-auth-page .adv-auth-submit {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin: 24px 0 0;
    background: var(--adv-accent);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
}

.adv-auth-page .adv-auth-submit:hover {
    background: var(--adv-accent-hover, #72182f);
}

/* Volver al login */

.adv-auth-back {
    text-align: center;
    margin-top: 22px;
}

.adv-auth-back a {
    font-size: 12px;
    color: #657b65;
    text-decoration: none;
}

.adv-auth-back a:hover {
    text-decoration: underline;
}

/* Mensajes */

.adv-auth-error {
    padding: 13px 15px;
    margin: 0 0 20px;
    background: #f8e9e7;
    border: 1px solid #e8cbc7;
    border-radius: 9px;
    color: #9a3442;
    font-size: 13px;
    line-height: 1.5;
}

.adv-auth-success {
    padding: 15px;
    margin: 0 0 22px;
    background: #eaf0e7;
    border: 1px solid #d1dfce;
    border-radius: 9px;
    color: #344b3b;
    font-size: 13px;
    line-height: 1.6;
}

/* Decoración inferior */

.adv-auth-decoration {
    text-align: center;
    margin-top: 25px;
    font-size: 15px;
    color: #b4a17e;
}

/* Móviles */

@media (max-width: 540px) {

    .adv-auth-layout {
        padding: 30px 20px;
    }

    .adv-auth-card {
        padding: 26px 22px;
    }

    .adv-auth-brand {
        margin-bottom: 24px;
    }

    .adv-auth-brand-name {
        font-size: 36px;
    }

    .adv-auth-page .adv-auth-heading h1 {
        font-size: 26px;
    }

    .adv-auth-page .adv-auth-card input:not([type="hidden"]) {
        font-size: 16px;
    }

}

/* ==========================================
   DÍA 24 · EL GRAN DÍA
   ========================================== */

.gift .calendar .door.special .special-day-label {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 5px 9px;
    border-radius: 20px;

    background: #fff5dc;
    color: #79551f;

    font-family: system-ui, Arial, sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .6px;
    text-transform: uppercase;
    white-space: nowrap;

    box-shadow: 0 2px 5px rgba(107, 73, 28, .12);

    pointer-events: none;
}

/* Ocultar la etiqueta una vez abierta la sorpresa */

.gift .calendar .door.visited .special-day-label {
    display: none;
}

/* Adaptación a móviles */

@media (max-width: 540px) {

    .gift .calendar .door.special .special-day-label {
        top: 5px;
        left: 5px;
        padding: 4px 6px;
        font-size: 8px;
        letter-spacing: .3px;
    }

}

/* ==========================================
   MÚSICA NAVIDEÑA - EDITOR
   ========================================== */

.editor-music-options {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.editor-page .editor-music-option {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 12px;
    margin: 0;

    border: 1px solid #e4d9c9;
    border-radius: 9px;

    background: #fffdf8;
    color: #344b3b;

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.editor-page .editor-music-option input[type="radio"] {
    display: block;
    appearance: auto;

    width: 15px;
    height: 15px;

    padding: 0;
    margin: 0;

    flex-shrink: 0;

    accent-color: #344b3b;
}

.editor-page .editor-music-option:has(input:checked) {
    background: #eaf0e7;
    border-color: #8da38a;
}

.editor-music-note {
    font-size: 11px;
    line-height: 1.5;
    color: #857b6c;
    margin: 10px 0 18px;
}


/* ==========================================
   MÚSICA NAVIDEÑA - CALENDARIO PÚBLICO
   ========================================== */

#calendarMusic {
    display: none;
}

.gift .calendar-music-toggle {
    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    padding: 0;
    margin: 0;

    background: #fffaf1;
    color: var(--dark);

    border: 1px solid #d9c8a8;
    border-radius: 50%;

    box-shadow: 0 4px 16px rgba(70, 50, 25, .12);

    cursor: pointer;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity .3s,
        visibility .3s,
        transform .2s,
        background .2s;
}

/* Mostrar después de la bienvenida */

.gift.calendar-entered .calendar-music-toggle {
    opacity: 1;
    visibility: visible;
}

.gift .calendar-music-toggle:hover {
    background: #fffdf8;
    transform: translateY(-2px);
}

.calendar-music-toggle svg {
    width: 23px;
    height: 23px;
}

/* Música silenciada */

.calendar-music-toggle .music-waves {
    display: none;
}

.calendar-music-toggle .music-muted {
    display: block;
}

/* Música reproduciéndose */

.calendar-music-toggle.is-playing .music-waves {
    display: block;
}

.calendar-music-toggle.is-playing .music-muted {
    display: none;
}

/* Móviles */

@media (max-width: 540px) {

    .gift .calendar-music-toggle {
        width: 40px;
        height: 40px;

        right: 13px;

        bottom: calc(
            13px + env(safe-area-inset-bottom, 0px)
        );
    }

    .calendar-music-toggle svg {
        width: 20px;
        height: 20px;
    }

}

/* ==========================================
   SELECTOR DE MELODÍA FIJA
   ========================================== */

.editor-fixed-music[hidden] {
    display: none !important;
}

.editor-fixed-music {
    margin-top: 12px;
    padding: 12px;

    background: #f5f0e7;
    border: 1px solid #e4d9c9;
    border-radius: 10px;
}

.editor-page .editor-fixed-music label {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #344b3b;
}

.editor-music-picker {
    display: flex;
    align-items: center;
    gap: 8px;
}

.editor-page .editor-music-picker select {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;

    height: 38px;
    padding: 8px;

    background: #fffdf8;
    border: 1px solid #d9cdbb;
    border-radius: 7px;

    color: #344b3b;
    font-size: 12px;
}

.editor-page .editor-music-play {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    flex-shrink: 0;

    margin: 0;
    padding: 0;

    background: #344b3b;
    color: #fffaf1;

    border-radius: 8px;

    cursor: pointer;
    transition: background .2s;
}

.editor-page .editor-music-play:hover {
    background: #49634f;
}

.editor-music-play .preview-pause-icon {
    display: none;
}

.editor-music-play.is-playing .preview-play-icon {
    display: none;
}

.editor-music-play.is-playing .preview-pause-icon {
    display: block;
}

#editorMusicPreview {
    display: none;
}

/* ==========================================
   ADVIENTATIO - ICONOS SVG DEL EDITOR
   ========================================== */

.editor-page .adv-icon {
    display: inline-block;

    width: 18px;
    height: 18px;

    flex-shrink: 0;
    vertical-align: middle;

    pointer-events: none;
}


/* PERSONALIZACIÓN */

.editor-page .editor-section-title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.editor-section-title .adv-icon {
    width: 18px;
    height: 18px;

    color: #627e68;
}


/* ESTADÍSTICAS DEL CALENDARIO */

.editor-page .editor-stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #8d2140;
    line-height: 1;
}

.editor-stat-icon .adv-icon {
    width: 22px;
    height: 22px;
}


/* TIPOS DE ENTRADA */

.editor-page .entrance-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #627e68;
}

.entrance-icon .adv-icon {
    width: 30px;
    height: 30px;
}


/* SELECTOR DE COLORES */

.editor-color-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.editor-color-dot {
    display: inline-block;

    width: 14px;
    height: 14px;

    flex-shrink: 0;
    border-radius: 50%;
}

.editor-color-dot.color-red {
    background: #8d2140;
}

.editor-color-dot.color-green {
    background: #245840;
}


/* DECORACIÓN DEL NOMBRE */

.header-decoration-trees .adv-icon {
    width: 29px;
    height: 29px;

    color: #627e68;
}


/* ESTILOS DE LA PUERTA 24 */

.editor-door24-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 6px;
}

.editor-door24-label .adv-icon {
    width: 18px;
    height: 18px;

    color: #b39660;
}


/* GRABACIÓN DE VOZ */

.editor-page .audio-record-start,
.editor-page .audio-record-stop:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

.editor-page .audio-record-start[hidden],
.editor-page .audio-record-stop[hidden] {
    display: none !important;
}

.audio-record-start .adv-icon,
.audio-record-stop .adv-icon {
    width: 17px;
    height: 17px;
}


/* COMPARTIR CALENDARIO */

.editor-page #copyCalendarLink,
.editor-page .editor-share-open {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;
}

#copyCalendarLink .adv-icon,
.editor-share-open .adv-icon {
    width: 15px;
    height: 15px;
}


/* ESTADOS Y AVISOS */

.editor-autosave-note .adv-icon,
.editor-access-status .adv-icon,
.editor-share-status .adv-icon {
    width: 13px;
    height: 13px;

    margin-right: 3px;
    color: #627e68;
}


/* SESIÓN CADUCADA */

.session-expired-icon .adv-icon {
    width: 32px;
    height: 32px;

    color: #8d2140;
}


/* AÑADIR FOTOGRAFÍAS */

.editor-photo-add-icon .adv-icon {
    width: 19px;
    height: 19px;

    color: #8d2140;
}


/* NAVEGACIÓN ENTRE PUERTAS */

.editor-page .editor-prev,
.editor-page .editor-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 5px;
}

.editor-prev .adv-icon,
.editor-next .adv-icon {
    width: 14px;
    height: 14px;
}

.editor-page .editor-choice .editor-color-label {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.editor-page .editor-choice .editor-color-dot {
    display: inline-block !important;
    width: 14px !important;
    height: 14px !important;
    min-width: 14px;
    flex-shrink: 0;
    border-radius: 50%;
}

.editor-page .editor-choice .editor-color-dot.color-red {
    background: #8d2140 !important;
}

.editor-page .editor-choice .editor-color-dot.color-green {
    background: #245840 !important;
}

/* Ajuste de tamaños de iconos SVG */

.editor-page .editor-stat-icon .adv-icon {
    width: 22px;
    height: 22px;
}

.editor-page .entrance-icon .adv-icon {
    width: 30px;
    height: 30px;
}

.editor-page .header-decoration-trees .adv-icon {
    width: 29px;
    height: 29px;
}

.editor-page .session-expired-icon .adv-icon {
    width: 32px;
    height: 32px;
}

.editor-page .editor-autosave-note .adv-icon,
.editor-page .editor-access-status .adv-icon,
.editor-page .editor-share-status .adv-icon {
    width: 13px;
    height: 13px;
}

.editor-page .editor-prev .adv-icon,
.editor-page .editor-next .adv-icon {
    width: 14px;
    height: 14px;
}

.editor-page #copyCalendarLink .adv-icon,
.editor-page .editor-share-open .adv-icon {
    width: 15px;
    height: 15px;
}

/* ==========================================
   DESCARGAR QR DEL CALENDARIO
   ========================================== */

.editor-page .editor-share-qr {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    width: 100%;
    padding: 11px 12px;
    margin: 0;

    background: transparent;
    color: #245840;

    border: 1px solid #ded7ca;
    border-radius: 8px;

    font-size: 12px;
    font-weight: 500;

    cursor: pointer;

    transition:
        background .2s,
        border-color .2s;
}

.editor-page .editor-share-qr:hover {
    background: #eaf0e7;
    border-color: #8da38a;
}

.editor-page .editor-share-qr .adv-icon {
    width: 16px;
    height: 16px;
}

#calendarQRContainer {
    display: none !important;
}

/* ==========================================
   FONDO COMPLETO DE LA ADMINISTRACIÓN
   ========================================== */

html:has(body.editor-page),
html:has(body.ap-page),
html:has(body.sa-page),
html:has(body.mc-page),
html:has(body.adv-auth-page) {
    background: var(--adv-bg);
}

body.editor-page,
body.ap-page,
body.sa-page,
body.mc-page,
body.adv-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--adv-bg);
}

/* ==========================================
   ADVIENTATIO - NAVEGACIÓN RESPONSIVE COMÚN
   ========================================== */

.mp-page .mp-top .adv-menu-toggle,
.mc-page .mc-top .adv-menu-toggle,
.sa-page .sa-top .adv-menu-toggle {
    display: none;
}

.adv-menu-toggle .adv-close-icon {
    display: none;
}

.adv-menu-toggle[aria-expanded="true"] .adv-menu-icon {
    display: none;
}

.adv-menu-toggle[aria-expanded="true"] .adv-close-icon {
    display: block;
}

/* Iconos de navegación en ordenador */

.mp-page .mp-top .adv-responsive-nav a,
.mc-page .mc-top .adv-responsive-nav a,
.sa-page .sa-top .adv-responsive-nav a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.adv-responsive-nav svg {
    flex-shrink: 0;
}

/* Navegación móvil */

@media (max-width: 650px) {

    .mp-page .mp-top,
    .mc-page .mc-top,
    .sa-page .sa-top {
        height: 62px;
        min-height: 62px;
        padding: 0 16px;
        flex-wrap: nowrap;
        box-sizing: border-box;
        gap: 12px;
    }

    .mp-page .mp-top .mp-brand,
    .mc-page .mc-top .mc-brand,
    .sa-page .sa-top .sa-brand {
        font-size: 20px;
    }

    /* Botón hamburguesa */

    .mp-page .mp-top .adv-menu-toggle,
    .mc-page .mc-top .adv-menu-toggle,
    .sa-page .sa-top .adv-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;

        width: 40px;
        height: 40px;
        padding: 9px;
        margin: 0;

        background: transparent;
        border: 1px solid transparent;
        border-radius: 9px;
        box-shadow: none;

        color: var(--adv-heading, #344b3b);
        cursor: pointer;
    }

    .adv-menu-toggle svg {
        width: 23px;
        height: 23px;
    }

    .mp-page .mp-top .adv-menu-toggle[aria-expanded="true"],
    .mc-page .mc-top .adv-menu-toggle[aria-expanded="true"],
    .sa-page .sa-top .adv-menu-toggle[aria-expanded="true"] {
        background: var(--adv-soft);
        border-color: var(--adv-border);
    }

    /* Menú desplegable */

    .mp-page .mp-top .adv-responsive-nav,
    .mc-page .mc-top .adv-responsive-nav,
    .sa-page .sa-top .adv-responsive-nav {
        display: none;
        position: absolute;
        top: calc(100% + 7px);
        right: 15px;

        width: 230px;
        max-width: calc(100vw - 30px);
        padding: 9px;
        box-sizing: border-box;

        background: var(--adv-panel);
        border: 1px solid var(--adv-border);
        border-radius: 14px;

        box-shadow: 0 8px 25px rgba(45, 35, 25, .12);

        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 3px;
    }

    .mp-page .mp-top .adv-responsive-nav.is-open,
    .mc-page .mc-top .adv-responsive-nav.is-open,
    .sa-page .sa-top .adv-responsive-nav.is-open {
        display: flex;
    }

    .mp-page .mp-top .adv-responsive-nav a,
    .mc-page .mc-top .adv-responsive-nav a,
    .sa-page .sa-top .adv-responsive-nav a {
        display: flex;
        align-items: center;
        gap: 10px;

        width: 100%;
        min-height: 42px;
        padding: 12px;
        box-sizing: border-box;

        background: transparent;
        border: 0;
        border-radius: 7px;

        color: var(--adv-heading, #344b3b);
        font-size: 13px;
        font-weight: 500;
        text-align: left;
        text-decoration: none;
    }

    .mp-page .mp-top .adv-responsive-nav a:hover,
    .mc-page .mc-top .adv-responsive-nav a:hover,
    .sa-page .sa-top .adv-responsive-nav a:hover {
        background: var(--adv-soft);
        text-decoration: none;
    }

    .adv-responsive-nav svg {
        width: 17px;
        height: 17px;
    }

}

/* ==========================================
   BOTONES PARA COMPARTIR EL CALENDARIO
   ========================================== */

.editor-page .editor-overview .editor-share-actions > button,
.editor-page .editor-overview .editor-share-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-width: 0;
    height: 40px;
    min-height: 40px;

    margin: 0;
    padding: 8px 4px;
    gap: 5px;

    box-sizing: border-box;
    border-radius: 8px;

    font-size: 11px;
    white-space: nowrap;
    line-height: 1.2;
    text-decoration: none;
}

/* Iconos */

.editor-page .editor-share-actions .adv-icon {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
}

.editor-page .editor-share-open .adv-icon {
    order: -1;
}

/* Tarjeta regalo */

.editor-page .editor-share-actions .editor-share-gift {
    background: #f6f0e5;
    border: 1px solid #d8c7a8;
    color: #8d2140;
    font-weight: 600;
}

.editor-page .editor-share-gift:hover {
    background: #eee4d3;
    border-color: #bda478;
}

.editor-page .editor-share-gift:disabled {
    opacity: .6;
    cursor: wait;
}

/* Pantallas especialmente estrechas */

@media (max-width: 360px) {

    .editor-page .editor-overview .editor-share-actions > button,
    .editor-page .editor-overview .editor-share-actions > a {
        font-size: 10px;
        gap: 4px;
        padding: 6px 2px;
    }

    .editor-page .editor-share-actions .adv-icon {
        width: 13px;
        height: 13px;
    }

}

/* ==========================================
   DECORACIONES NAVIDEÑAS DEL NOMBRE
   ========================================== */

/* Selector del editor */

.editor-page .header-decoration-choices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}


/* Parejas de ilustraciones */

.editor-page .header-decoration-pair {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;

    height: 30px;
}

.editor-page .header-decoration-pair svg {
    display: block;
    width: 36px;
    height: 27px;
    flex-shrink: 0;
}

/* Iconos de los abetos en el selector */

.editor-page .header-decoration-trees .adv-icon {
    width: 22px;
    height: 25px;
    color: #627e68;
}

.editor-page .header-decoration-trees .adv-icon:last-child {
    width: 17px;
    height: 20px;
    color: #8caa92;
}

/* Tarjetas compactas */

.editor-page .header-decoration-choice {
    min-height: 68px;
    padding: 8px 4px;
}

.editor-page .decoration-none .header-decoration-icon {
    height: 30px;
    font-size: 23px;
    margin: 0;
}

.editor-page .header-decoration-trees-gifts .adv-icon {
    width: 23px;
    height: 27px;
    color: #627e68;
}

/* Decoraciones del calendario público */

.gift .christmas-ornament {
    flex-shrink: 0;
}

.gift .christmas-ornament svg {
    display: block;
    width: 100%;
    height: auto;
}

.gift .recipient-christmas .recipient-title {
    overflow-wrap: anywhere;
}

.ap-modal-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-right: 15px;
}

.ap-modal-heading .ap-modal-icon {
    width: 42px;
    height: 42px;
    margin: 0;
    flex-shrink: 0;
}

.ap-modal-heading .adv-brand-icon {
    width: 26px;
    height: 26px;
}

.ap-modal-heading h2 {
    margin: 0;
}

@media (max-width: 480px) {
    .ap-modal-heading {
        gap: 10px;
    }

    .ap-modal-heading h2 {
        font-size: 27px;
    }
}

/* ==========================================
   ADVIENTATIO - CALENDARIOS DE PRUEBA
   ========================================== */

.editor-page .editor-trial-banner {
    padding: 18px;
    margin-bottom: 22px;
    background: #f5ecdd;
    border: 1px solid #e5d6b7;
    border-radius: 12px;
}

.editor-page .editor-trial-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #94733d;
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
}

.editor-page .editor-trial-heading .adv-icon {
    width: 22px;
    height: 22px;
}

.editor-page .editor-trial-banner p {
    color: #75695e;
    font-size: 13px;
    line-height: 1.6;
    margin: 8px 0;
}

.editor-page .editor-trial-activate {
    display: block;
    text-align: center;
    background: #8d2140;
    color: #fff;
    border-radius: 8px;
    padding: 12px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 600;
}

.editor-page .editor-trial-banner small {
    display: block;
    text-align: center;
    font-size: 11px;
    color: #857767;
    margin-top: 10px;
}

.editor-page .editor-trial-share .editor-share-open {
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.editor-page .editor-trial-share .note {
    line-height: 1.5;
    color: #857767;
}

.editor-page .editor-share[hidden] {
    display: none !important;
}

/* ==========================================
   ADVIENTATIO - POPUP LÍMITE DE PRUEBA
   ========================================== */

.trial-limit-dialog {
    position: fixed;
    width: calc(100% - 36px);
    max-width: 420px;
    box-sizing: border-box;
    padding: 32px 26px;
    border: 1px solid #e5d6b7;
    border-radius: 20px;
    background: #fcf9f3;
    text-align: center;
    color: #75695e;
    box-shadow: 0 20px 70px #00000030;
}

.trial-limit-dialog::backdrop {
    background: rgba(40, 32, 27, .45);
    backdrop-filter: blur(4px);
}

.trial-limit-dialog .trial-dialog-close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 30px;
    height: 30px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    color: #857767;
    font-size: 25px;
    cursor: pointer;
}

.trial-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #f3ead9;
    color: #8d2140;
}

.trial-limit-dialog .trial-dialog-icon .adv-icon {
    width: 40px;
    height: 40px;
}

.trial-dialog-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: 1.8px;
    color: #94733d;
    margin-bottom: 12px;
}

.trial-limit-dialog h2 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 30px;
    font-weight: 400;
    line-height: 1.15;
    color: #344b3b;
    margin: 0 0 16px;
}

.trial-limit-dialog p {
    font-size: 14px;
    line-height: 1.65;
    margin: 0 0 20px;
}

.trial-dialog-price {
    font-size: 13px;
    margin-bottom: 16px;
}

.trial-dialog-price strong {
    color: #8d2140;
    font-size: 27px;
    font-weight: 600;
}

.trial-dialog-activate {
    display: block;
    background: #8d2140;
    color: #fff;
    padding: 14px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
}

.trial-limit-dialog .trial-dialog-later {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 12px;
    border: 0;
    background: transparent;
    color: #75695e;
    font-size: 13px;
    cursor: pointer;
}

.trial-limit-dialog small {
    display: block;
    color: #857767;
    font-size: 11px;
    line-height: 1.5;
}

a.editor-trial-activate,
a.trial-dialog-activate {
    text-decoration: none;
    color: #fff;
    transition: background .2s ease;
}

a.editor-trial-activate:hover,
a.trial-dialog-activate:hover {
    background: #731a34;
    color: #fff;
}

/* =========================================
   Eliminación de calendarios
   ========================================= */

.adv-calendar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.adv-calendar-heading h3 {
    margin: 0;
}

.ap-page .adv-delete-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    background: transparent;
    border: 1px solid #e4d9d2;
    border-radius: 8px;
    color: #8d2140;
    cursor: pointer;
}

.ap-page .adv-delete-icon svg {
    width: 17px;
    height: 17px;
}

.ap-page .adv-delete-icon:hover {
    background: #f4e5e5;
    color: #8d2140;
    border-color: #d7b4bc;
}

.sa-page .sa-calendar-actions .adv-delete-button {
    color: #8d2140;
}

.sa-page .sa-calendar-actions .adv-delete-button:hover {
    color: #8d2140;
    background: #f4e5e5;
    border-color: #d7b4bc;
}

/* Aviso de eliminación correcta */

.adv-delete-success {
    padding: 13px 17px;
    margin: 0 0 18px;
    border: 1px solid #cbd9c8;
    border-radius: 10px;
    background: #e8efe5;
    color: #344b3b;
    font-size: 13px;
}

/* Ventana de confirmación */

.adv-delete-dialog {
    box-sizing: border-box;
    width: calc(100% - 32px);
    max-width: 420px;
    max-height: calc(100% - 32px);
    margin: auto;
    padding: 0;
    border: 1px solid #ded7ca;
    border-radius: 20px;
    background: #fcf9f3;
    color: #392f2a;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .18);
    overflow: auto;
}

.adv-delete-dialog::backdrop {
    background: rgba(36, 31, 26, .55);
    backdrop-filter: blur(3px);
}

.adv-delete-dialog-content {
    padding: 30px 26px;
    text-align: center;
}

.adv-delete-dialog-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin: 0 auto 17px;
    border-radius: 50%;
    background: #f4e5e5;
    color: #8d2140;
}

.adv-delete-dialog-icon svg {
    width: 27px;
    height: 27px;
}

.adv-delete-dialog h2 {
    margin: 0 0 12px;
    color: #344b3b;
    font-family: Baskervville, Georgia, serif;
    font-size: 27px;
    font-weight: 400;
}

.adv-delete-dialog strong {
    display: block;
    margin-bottom: 14px;
    font-size: 15px;
    overflow-wrap: anywhere;
}

.adv-delete-dialog p {
    margin: 0 0 14px;
    color: #75695e;
    font-size: 13px;
    line-height: 1.6;
}

.adv-delete-dialog .adv-delete-balance {
    color: #344b3b;
}

.adv-delete-dialog .adv-delete-warning {
    color: #8d2140;
    font-size: 12px;
    font-weight: 600;
}

.adv-delete-dialog-actions {
    display: flex;
    gap: 10px;
    margin-top: 23px;
}

.adv-delete-dialog-actions button {
    flex: 1;
    min-height: 43px;
    padding: 10px 14px;
    border-radius: 9px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.adv-delete-dialog .adv-delete-cancel {
    background: transparent;
    border: 1px solid #d9d1c5;
    color: #344b3b;
}

.adv-delete-dialog .adv-delete-confirm {
    background: #8d2140;
    border: 1px solid #8d2140;
    color: #fff;
}

.adv-delete-dialog .adv-delete-cancel:hover {
    background: #eee8df;
}

.adv-delete-dialog .adv-delete-confirm:hover {
    background: #72182f;
}

.adv-delete-dialog .adv-delete-confirm:disabled {
    opacity: .65;
    cursor: wait;
}

@media (max-width: 480px) {

    .adv-delete-dialog-content {
        padding: 25px 20px;
    }

    .adv-delete-dialog h2 {
        font-size: 25px;
    }

}

/* ==========================================
   ADVIENTATIO - CABECERA COMÚN
   ========================================== */

.adv-site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    background: var(--adv-panel, #fcf9f3);
    border-bottom: 1px solid var(--adv-border, #ded7ca);
}

.adv-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 68px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 26px;
    box-sizing: border-box;
}

.adv-site-header .adv-brand {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    font-family: 'Baskervville', Georgia, serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #8d2140 !important;
    text-decoration: none;
    white-space: nowrap;
}

.adv-site-header .adv-brand-icon {
    width: 26px;
    height: 26px;
}

.adv-site-header .adv-site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
}

.adv-site-header .adv-site-link {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 7px;
    padding: 8px 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--adv-muted, #75695e);
    font-family: system-ui, Arial, sans-serif;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.adv-site-header .adv-site-link svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.adv-site-header .adv-site-link:hover,
.adv-site-header .adv-site-link.is-active {
    background: transparent;
    color: #8d2140;
    text-decoration: none;
}

.adv-site-header .adv-site-link.is-active {
    font-weight: 600;
}

.adv-site-header .adv-site-logout {
    display: flex;
    margin: 0;
    padding: 0 0 0 17px;
    border: 0;
    border-left: 1px solid #ded7ca;
}

.adv-site-header .adv-logout-link {
    color: #8d2140;
}

.adv-site-header .adv-logout-link:hover {
    color: #72182f;
}

.adv-site-header .adv-menu-toggle {
    display: none;
}

.adv-site-header .adv-close-icon {
    display: none;
}

.adv-site-header .adv-menu-toggle[aria-expanded="true"] .adv-menu-icon {
    display: none;
}

.adv-site-header .adv-menu-toggle[aria-expanded="true"] .adv-close-icon {
    display: block;
}

/* Barra secundaria del editor */

.editor-page .editor-top {
    position: sticky;
    top: 68px;
    height: 52px;
    min-height: 52px;
    z-index: 50;
    padding: 0 max(24px, calc((100vw - 1300px) / 2));
}

.editor-page .editor-top > a.editor-back-link {
    font-family: system-ui, Arial, sans-serif !important;
    font-size: 13px;
    font-weight: 500;
    color: #75695e;
    text-decoration: none;
}

.editor-page .editor-top > a.editor-back-link:hover {
    color: #8d2140;
}

.editor-page .editor-top > div {
    gap: 12px;
}

.editor-page .editor-top .editor-preview {
    font-size: 12px;
    padding: 7px 12px;
    border-radius: 8px;
}

/* Enlace para volver desde la compra */

.purchase-page .purchase-back-row {
    margin: 0 0 24px;
}

.purchase-page .purchase-back {
    color: #75695e;
    text-decoration: none;
    font-size: 13px;
}

.purchase-page .purchase-back:hover {
    color: #8d2140;
}

/* Pantallas pequeñas y tablets */

@media (max-width: 1250px) {

    .adv-site-header-inner {
        min-height: 62px;
        padding: 0 16px;
        gap: 12px;
    }

    .adv-site-header .adv-brand {
        font-size: 20px !important;
    }

    .adv-site-header .adv-brand-icon {
        width: 24px;
        height: 24px;
    }

    .adv-site-header .adv-menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        padding: 0;
        margin: 0;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: #344b3b;
        box-shadow: none;
    }

    .adv-site-header .adv-menu-toggle svg {
        width: 23px;
        height: 23px;
    }

    .adv-site-header .adv-menu-toggle[aria-expanded="true"] {
        background: #eee8df;
        border-color: #ded7ca;
    }

    .adv-site-header .adv-site-nav {
        display: none;
        position: absolute;
        top: calc(100% + 7px);
        right: 12px;
        width: 250px;
        max-width: calc(100vw - 24px);
        max-height: calc(100dvh - 85px);
        overflow-y: auto;
        padding: 8px;
        background: #fcf9f3;
        border: 1px solid #ded7ca;
        border-radius: 12px;
        box-shadow: 0 12px 35px rgba(50, 40, 25, .12);
        box-sizing: border-box;
    }

    .adv-site-header .adv-site-nav.is-open {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .adv-site-header .adv-site-link {
        width: 100%;
        min-height: 42px;
        padding: 10px 12px;
        border-radius: 7px;
        gap: 11px;
        box-sizing: border-box;
        text-align: left;
    }

    .adv-site-header .adv-site-link:hover,
    .adv-site-header .adv-site-link.is-active {
        background: #eee8df;
    }

    .adv-site-header .adv-site-logout {
        display: block;
        margin-top: 5px;
        padding: 5px 0 0;
        border-left: 0;
        border-top: 1px solid #ded7ca;
    }

    .editor-page .editor-top {
        top: 62px;
        padding: 0 14px;
    }

}

@media (max-width: 480px) {

    .editor-page .editor-top > div {
        gap: 8px;
    }

    .editor-page .editor-top #saveStatus {
        font-size: 11px;
    }

    .editor-page .editor-top .editor-preview {
        padding: 6px 9px;
        font-size: 11px;
    }

    .editor-page .editor-top > a.editor-back-link {
        font-size: 12px;
    }

}

/* Unificar botón de cierre de sesión */

.adv-site-header .adv-site-logout button.adv-logout-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 7px !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #8d2140 !important;
    font-family: system-ui, Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
    white-space: nowrap;
}

.adv-site-header .adv-site-logout button.adv-logout-link:hover {
    background: transparent !important;
    color: #72182f !important;
}

.adv-site-header .adv-logout-link svg {
    width: 17px !important;
    height: 17px !important;
    flex-shrink: 0;
}

@media (max-width: 1250px) {

    .adv-site-header .adv-site-logout button.adv-logout-link {
        width: 100% !important;
        min-height: 42px !important;
        padding: 10px 12px !important;
        gap: 11px !important;
        border-radius: 7px !important;
    }

    .adv-site-header .adv-site-logout button.adv-logout-link:hover {
        background: #eee8df !important;
    }

}

/* Unificar menú hamburguesa en todas las páginas */

.adv-site-header button.adv-menu-toggle {
    display: none !important;
}

@media (max-width: 1250px) {

    .adv-site-header button.adv-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        height: 40px !important;
        min-width: 0 !important;
        min-height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        color: #344b3b !important;
        border: 1px solid transparent !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }

    .adv-site-header button.adv-menu-toggle svg {
        width: 24px !important;
        height: 24px !important;
    }

    .adv-site-header button.adv-menu-toggle:hover,
    .adv-site-header button.adv-menu-toggle[aria-expanded="true"] {
        background: #eee8df !important;
        color: #344b3b !important;
        border-color: #ded7ca !important;
    }

}

/* ==========================================
   ADVIENTATIO - PIE DE PÁGINA COMÚN
   ========================================== */

.adv-site-footer {
    width: 100%;
    margin-top: auto;
    padding: 30px 26px 0;
    background: transparent !important;
    border: 0 !important;
    color: #857767;
    box-sizing: border-box;
}

.adv-site-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1388px;
    margin: 0 auto;
    padding: 28px 0 24px;
    border-top: 1px solid #d5cdc0;
    text-align: center;
}

/* Frase principal */

.adv-footer-message {
    margin-bottom: 24px;
}

.adv-footer-slogan {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 24px;
    font-style: italic;
    font-weight: 400;
    line-height: 1.4;
    color: #344b3b;
    margin: 0 0 6px;
}

.adv-footer-subtitle {
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    color: #857767;
    margin: 0;
}

/* Enlaces legales */

.adv-site-footer .adv-footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin-bottom: 14px;
}

.adv-site-footer .adv-footer-links a {
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    color: #857767 !important;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.6;
    text-decoration: none;
}

/* Copyright e Invitatio */

.adv-site-footer .adv-footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    line-height: 1.5;
    color: #857767;
}

.adv-footer-separator {
    color: #b39660;
}

.adv-site-footer .adv-footer-credit a {
    color: #8d2140 !important;
    font-weight: 600;
    text-decoration: none;
}

.adv-site-footer .adv-footer-links a:hover,
.adv-site-footer .adv-footer-credit a:hover {
    color: #8d2140 !important;
    text-decoration: underline;
}

/* Mantener el footer al final de la página */

body.ap-page,
body.mc-page,
body.mp-page,
body.sa-page,
body.purchase-page,
body.purchase-result-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.ap-page > main,
body.mc-page > main,
body.mp-page > main,
body.sa-page > main,
body.purchase-page > main,
body.purchase-result-page > main {
    flex-grow: 1;
    flex-shrink: 0;
}

body.purchase-result-page > .pr-layout {
    min-height: 0;
    flex: 1;
}

/* Adaptación móvil */

@media (max-width: 750px) {

    .adv-site-footer {
        padding: 24px 18px 0;
    }

    .adv-site-footer-inner {
        padding: 24px 0 22px;
    }

    .adv-footer-message {
        margin-bottom: 20px;
    }

    .adv-footer-slogan {
        font-size: 22px;
    }

    .adv-footer-subtitle {
        font-size: 11px;
    }

    .adv-site-footer .adv-footer-links {
        gap: 8px 16px;
        max-width: 340px;
    }

    .adv-site-footer .adv-footer-brand {
        font-size: 10px;
    }

}

/* Footer compacto */

.adv-site-footer {
    padding: 12px 26px 0;
}

.adv-site-footer-inner {
    padding: 12px 0 14px;
}

.adv-footer-message {
    margin-bottom: 8px;
}

.adv-footer-slogan {
    font-size: 18px;
    line-height: 1.3;
    margin: 0;
}

.adv-site-footer .adv-footer-links {
    gap: 4px 16px;
    margin-bottom: 6px;
}

.adv-site-footer .adv-footer-brand {
    font-size: 11px;
}

@media (max-width: 750px) {

    .adv-site-footer {
        padding: 10px 16px 0;
    }

    .adv-site-footer-inner {
        padding: 12px 0;
    }

    .adv-footer-message {
        margin-bottom: 8px;
    }

    .adv-footer-slogan {
        font-size: 17px;
    }

    .adv-site-footer .adv-footer-links {
        gap: 4px 12px;
        margin-bottom: 8px;
    }

    .adv-site-footer .adv-footer-brand {
        font-size: 10px;
    }

}

/* Recuperar anchura de los contenedores */

body.ap-page > main.ap-wrap,
body.mc-page > main.mc-wrap,
body.mp-page > main,
body.sa-page > main.sa-wrap,
body.purchase-page > main.purchase-main {
    width: 100%;
    box-sizing: border-box;
}

/* Distribución de las páginas de autenticación */

body.adv-auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.adv-auth-page > .adv-auth-layout,
body.ap-login-page > .ap-login-layout {
    flex: 1;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
}

/* Ajustar altura de las pantallas de autenticación */

body.adv-auth-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    box-sizing: border-box;
}

body.adv-auth-page > .adv-auth-layout {
    flex: 1 0 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 30px 18px;
    box-sizing: border-box;
}

body.adv-auth-page > .adv-site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 650px) {

    body.adv-auth-page > .adv-auth-layout {
        padding: 24px 16px;
    }

}

/* Ajustar altura de la pantalla de login */

body.ap-page.ap-login-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
}

body.ap-login-page > .ap-login-layout {
    flex: 1 0 auto;
    min-height: 0;
    height: auto;
    width: 100%;
    margin: 0;
    padding: 30px 18px;
    box-sizing: border-box;
}

body.ap-login-page > .adv-site-footer {
    flex-shrink: 0;
    margin-top: auto;
}

@media (max-width: 650px) {

    body.ap-login-page > .ap-login-layout {
        padding: 24px 16px;
    }

}

/* ==========================================
   ADVIENTATIO - PÁGINAS LEGALES
   ========================================== */

body.adv-legal-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--adv-bg);
    color: var(--adv-ink);
}

/* Cabecera */

.adv-legal-header {
    background: var(--adv-panel);
    border-bottom: 1px solid var(--adv-border);
}

.adv-legal-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: 1300px;
    min-height: 68px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.adv-legal-back {
    color: var(--adv-accent);
    font-size: 13px;
    text-decoration: none;
}

.adv-legal-back:hover {
    text-decoration: underline;
}

/* Contenido */

.adv-legal-main {
    flex: 1;
    width: 100%;
    max-width: 960px;
    margin: 35px auto 40px;
    padding: 0 24px;
    box-sizing: border-box;
}

.adv-legal-heading {
    margin-bottom: 24px;
}

.adv-legal-heading h1 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 36px;
    font-weight: 400;
    color: var(--adv-green);
    margin: 0 0 8px;
}

.adv-legal-heading p {
    color: var(--adv-muted);
    font-size: 14px;
    margin: 0;
}

/* Tarjeta */

.adv-legal-card {
    background: var(--adv-panel);
    border: 1px solid var(--adv-border);
    border-radius: 18px;
    padding: 32px 38px;
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.adv-legal-card h2 {
    font-family: 'Baskervville', Georgia, serif;
    font-size: 23px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--adv-green);
    margin: 30px 0 12px;
}

.adv-legal-card h2:first-child {
    margin-top: 0;
}

.adv-legal-card p {
    margin: 0 0 12px;
}

.adv-legal-card ul {
    padding-left: 22px;
    margin: 12px 0 18px;
}

.adv-legal-card li {
    margin-bottom: 6px;
}

.adv-legal-card a {
    color: var(--adv-accent);
    text-decoration: underline;
}

/* Datos del titular */

.adv-legal-info {
    background: var(--adv-bg);
    border: 1px solid var(--adv-border);
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0;
}

.adv-legal-info p {
    margin: 0 0 7px;
}

.adv-legal-info p:last-child {
    margin-bottom: 0;
}

.adv-legal-version {
    border-top: 1px solid var(--adv-border);
    margin-top: 28px;
    padding-top: 15px;
    font-size: 11px;
    color: var(--adv-muted);
}

/* Móviles */

@media (max-width: 650px) {

    .adv-legal-header-inner {
        min-height: 62px;
        padding: 0 16px;
    }

    .adv-legal-back {
        font-size: 11px;
    }

    .adv-legal-main {
        margin: 24px auto 25px;
        padding: 0 15px;
    }

    .adv-legal-heading h1 {
        font-size: 30px;
    }

    .adv-legal-heading p {
        font-size: 13px;
    }

    .adv-legal-card {
        padding: 22px 18px;
        font-size: 13px;
        border-radius: 14px;
    }

    .adv-legal-card h2 {
        font-size: 21px;
        margin-top: 25px;
    }

    .adv-legal-info {
        padding: 15px;
    }

}

.adv-legal-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--adv-green, #344b3b);
    margin: 22px 0 10px;
}

.adv-legal-card ol {
    padding-left: 22px;
    margin: 12px 0 18px;
}

/* ==========================================
   ADVIENTATIO - CONTACTO
   ========================================== */

.adv-contact-intro {
    text-align: center;
    margin-bottom: 28px;
}

.adv-legal-card .adv-contact-intro h2 {
    font-size: 32px;
    margin: 0 0 10px;
}

.adv-contact-intro p {
    color: var(--adv-muted, #857767);
}

/* Bloque de correo */

.adv-contact-email {
    text-align: center;
    background: var(--adv-bg, #eee8df);
    border: 1px solid var(--adv-border, #d5cdc0);
    border-radius: 16px;
    padding: 30px 24px;
    margin-bottom: 24px;
}

.adv-contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: var(--adv-panel, #fcf9f3);
    color: var(--adv-accent, #8d2140);
}

.adv-legal-card .adv-contact-email h2 {
    font-size: 26px;
    margin: 0 0 10px;
}

.adv-contact-email p {
    max-width: 470px;
    margin: 0 auto 20px;
}

.adv-legal-card .adv-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    background: var(--adv-accent, #8d2140);
    color: #fff;
    border-radius: 9px;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease;
}

.adv-legal-card .adv-contact-button:hover {
    background: #72182f;
    color: #fff;
    text-decoration: none;
}

/* Categorías de ayuda */

.adv-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.adv-contact-item {
    text-align: center;
    padding: 22px 18px;
    border: 1px solid var(--adv-border, #d5cdc0);
    border-radius: 12px;
}

.adv-contact-item svg {
    display: block;
    width: 27px;
    height: 27px;
    margin: 0 auto 10px;
    fill: none;
    stroke: var(--adv-green, #344b3b);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.adv-legal-card .adv-contact-item h3 {
    font-size: 15px;
    margin: 0 0 7px;
}

.adv-contact-item p {
    font-size: 13px;
    line-height: 1.6;
    color: var(--adv-muted, #857767);
    margin: 0;
}

/* Información adicional */

.adv-contact-note {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--adv-border, #d5cdc0);
    font-size: 12px;
    color: var(--adv-muted, #857767);
    text-align: center;
}

.adv-contact-note p:last-child {
    margin-bottom: 0;
}

/* Móviles */

@media (max-width: 650px) {

    .adv-legal-card .adv-contact-intro h2 {
        font-size: 26px;
    }

    .adv-contact-email {
        padding: 24px 15px;
    }

    .adv-contact-grid {
        gap: 10px;
    }

    .adv-contact-item {
        padding: 16px 10px;
    }

    .adv-legal-card .adv-contact-item h3 {
        font-size: 13px;
    }

    .adv-contact-item p {
        font-size: 11px;
    }

    .adv-contact-note {
        font-size: 11px;
    }

}

/* ==========================================
   PROTECCIÓN CONTRA ELIMINACIÓN
   ========================================== */

.adv-protected-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    background: #f3ead6;
    color: #806737;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.adv-protected-badge svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

/* Candado en Mis calendarios */

.ap-page .adv-calendar-lock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    padding: 0;
    background: #f3ead6;
    border: 1px solid #e1d3b5;
    border-radius: 8px;
    color: #806737;
    cursor: default;
}

.ap-page .adv-calendar-lock svg {
    width: 17px;
    height: 17px;
}

/* Botón de protección en superadministración */

.adv-lock-form {
    margin: 0;
    min-width: 0;
    width: 100%;
}

.sa-page .sa-calendar-actions .adv-lock-action {
    width: 100%;
}

.sa-page .sa-calendar-actions .adv-lock-action.is-locked {
    background: #f3ead6;
    border-color: #e1d3b5;
    color: #806737;
}

.sa-page .sa-calendar-actions .adv-lock-action.is-locked:hover {
    background: #eae0c8;
    border-color: #d5c49e;
    color: #6d552c;
}

/* Papelera desactivada */

.sa-page .sa-calendar-actions .adv-delete-button:disabled,
.sa-page .sa-calendar-actions .adv-delete-button:disabled:hover {
    opacity: .4;
    cursor: not-allowed;
    background: transparent;
    border-color: var(--adv-border);
    color: #8d2140;
    box-shadow: none;
    transform: none;
}

/* ==========================================
   SUPERADMIN - CALENDARIOS EN FORMATO COMPACTO
   ========================================== */

@media (min-width: 901px) {

    .sa-page .sa-calendar.sa-calendar-card {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
        align-items: center;
        gap: 24px;
        padding: 16px 20px;
    }

    .sa-page .sa-calendar.sa-calendar-card[hidden] {
        display: none !important;
    }

    .sa-page .sa-calendar-main {
        min-width: 0;
        gap: 16px;
    }

    .sa-page .sa-calendar-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 0;
        align-items: stretch;
        min-width: 0;
    }

    .sa-page .sa-calendar-actions .sa-calendar-action {
        min-height: 36px;
        padding: 8px 10px;
        white-space: nowrap;
    }

}

.sa-page .sa-calendar-actions .sa-calendar-action.adv-delete-button:not(:disabled) {
    color: #8d2140;
}

.sa-page .sa-calendar-actions .sa-calendar-action.adv-delete-button:not(:disabled):hover {
    color: #8d2140;
    background: #f4e5e5;
    border-color: #d7b4bc;
}

/* ==========================================
   BLOQUEO DE CALENDARIOS POR EL PROPIETARIO
   ========================================== */

.ap-page .adv-calendar-tools {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.ap-page .adv-owner-lock-form {
    margin: 0;
    padding: 0;
}

.ap-page .adv-calendar-heading h3 {
    min-width: 0;
}

.ap-page .adv-owner-lock-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    margin: 0;
    border: 1px solid #ded5c5;
    border-radius: 8px;
    background: transparent;
    color: #75695e;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: none;
}

.ap-page .adv-owner-lock-button svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.ap-page .adv-owner-lock-button:hover {
    background: #f3ead6;
    border-color: #e1d3b5;
    color: #806737;
}

.ap-page .adv-owner-lock-button.is-locked {
    background: #f3ead6;
    border-color: #e1d3b5;
    color: #806737;
}

.ap-page .adv-owner-lock-button:disabled {
    cursor: not-allowed;
    opacity: 1;
}

.ap-page .adv-delete-icon:disabled,
.ap-page .adv-delete-icon:disabled:hover {
    opacity: .35;
    cursor: not-allowed;
    background: transparent;
    color: #8d2140;
    box-shadow: none;
    transform: none;
}

/* ==========================================
   DEMOSTRACIÓN PÚBLICA DE ADVIENTATIO
   ========================================== */

.adv-demo-banner {
    position: relative;
    text-align: center;
    margin: 0 auto 12px;
    padding: 8px 15px;
}

.adv-demo-label {
    display: inline-block;
    padding: 6px 13px;
    border: 1px solid #d8c6a6;
    border-radius: 30px;
    background: #fff9ed;
    color: #806737;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.8px;
}

.adv-demo-banner p {
    margin: 9px 0 0;
    font-size: 13px;
    color: #75695e;
}


/* PUERTAS DISPONIBLES */

.gift.adv-demo-mode .door.demo-unavailable {
    opacity: .35;
    filter: saturate(.65);
    transition: opacity .2s ease;
}

.gift.adv-demo-mode .door.demo-unavailable:hover {
    opacity: .7;
}

.gift.adv-demo-mode .door.demo-available {
    opacity: 1;
}

.gift.adv-demo-mode .door.demo-available .door-face {
    box-shadow: inset 0 0 0 2px #e6ca8c;
}

.gift.adv-demo-mode .door.demo-available.visited
.door-face {
    box-shadow: none;
}

.demo-door-star {
    position: absolute;
    top: 7px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #fff5d8;
    color: #997236;
    font-size: 13px;
    line-height: 1;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
}


/* BLOQUE COMERCIAL INFERIOR */

.adv-demo-cta {
    position: relative;
    max-width: 690px;
    margin: 30px auto 0;
    padding: 25px 20px 10px;
    border-top: 1px solid #d8c6a6;
    text-align: center;
}

.adv-demo-star {
    color: #b39660;
    font-size: 21px;
}

.adv-demo-cta h2 {
    margin: 10px 0;
    font-family: 'Baskervville', Georgia, serif;
    font-weight: 400;
    font-size: clamp(26px, 4vw, 36px);
    color: var(--dark, #344b3b);
}

.adv-demo-cta p {
    max-width: 430px;
    margin: 0 auto 20px;
    color: #75695e;
    font-size: 14px;
    line-height: 1.7;
}

.adv-demo-create {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border-radius: 9px;
    background: #8d2140;
    color: #fff !important;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    box-sizing: border-box;
    transition: background .2s, transform .2s;
}

.adv-demo-create:hover {
    background: #72182f;
    color: #fff;
    transform: translateY(-2px);
}

.adv-demo-cta small,
.adv-demo-locked small {
    display: block;
    margin-top: 12px;
    color: #75695e;
    font-size: 12px;
}


/* POPUP DE PUERTA NO DISPONIBLE */

.adv-demo-locked {
    padding: 5px 12px 12px;
    text-align: center;
}

.adv-demo-locked-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #f3ead6;
    color: #b39660;
    font-size: 28px;
}

.adv-demo-locked h3 {
    margin: 16px 0 12px;
    font-family: 'Baskervville', Georgia, serif;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
    color: #344b3b;
}

.adv-demo-locked p {
    max-width: 330px;
    margin: 10px auto;
    color: #75695e;
    font-size: 14px;
    line-height: 1.65;
}

.adv-demo-locked .adv-demo-create {
    margin-top: 15px;
}


/* RESPONSIVE */

@media (max-width: 540px) {

    .adv-demo-banner {
        padding: 5px 8px;
    }

    .adv-demo-banner p {
        font-size: 12px;
    }

    .demo-door-star {
        width: 16px;
        height: 16px;
        top: 4px;
        right: 4px;
        font-size: 10px;
    }

    .adv-demo-cta {
        margin-top: 22px;
        padding: 20px 10px 0;
    }

    .adv-demo-create {
        width: 100%;
        max-width: 300px;
    }

    .adv-demo-locked h3 {
        font-size: 25px;
    }

}

.adv-demo-back {
    display: block;
    width: fit-content;
    margin: 20px auto 0;
    color: #75695e;
    font-size: 13px;
    text-decoration: none;
    transition: color .2s;
}

.adv-demo-back:hover {
    color: #8d2140;
    text-decoration: underline;
}

/* ==========================================
   ENLACES DE VUELTA A LA WEB COMERCIAL
   ========================================== */

.adv-auth-brand-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
    transition: opacity .2s ease;
}

.adv-auth-brand-link:hover {
    opacity: .8;
}

.adv-auth-home-link {
    display: block;
    width: fit-content;
    margin: 18px auto 0;
    text-align: center;
    font-size: 13px;
    color: #75695e;
    text-decoration: none;
    transition: color .2s ease;
}

.adv-auth-home-link:hover {
    color: #8d2140;
    text-decoration: underline;
}