/*
 | Portada (app/Views/landing.php): estampillas vintage para las banderas de idioma, el botón
 | del menú (boina negra) y "Web Histórica". Mismo marco troquelado que el tema retro
 | (style.sys.retro.css: .stamp-btn / .lang-stamp); la portada no carga ese CSS porque
 | pisaría su plantilla, así que aquí van solo las piezas de estampilla.
 */

@font-face {
    font-family: "Lobster";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("/assets/fonts/retro/lobster-400-latin.woff2") format("woff2");
}
@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("/assets/fonts/retro/barlow-condensed-700-latin.woff2") format("woff2");
}

/* ===== Base de la estampilla (igual que en el tema) ===== */
.lnd-stamp .stamp-paper {
    --r: 3px;
    display: block;
    padding: calc(2 * var(--r));
    background: #fff4dc;
    -webkit-mask:
        radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
        linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
    mask:
        radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)),
        linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
}
.lnd-stamp .stamp-face { position: relative; display: grid; place-items: center; overflow: hidden; }

/* El enlace/botón lleva la sombra (la máscara la recortaría) y la inclinación */
.lnd-stamp {
    display: block;
    cursor: pointer;
    filter: drop-shadow(1px 3px 3px #00000059);
    transform: rotate(var(--tilt, -4deg));
    transition: transform .2s, filter .2s;
}
.lnd-stamp:hover,
.lnd-stamp:focus-visible { transform: rotate(0) translateY(-2px) scale(1.06); filter: drop-shadow(2px 6px 6px #00000066); }
.lnd-stamp:focus-visible { outline: 2px solid #155d61; outline-offset: 3px; }

/* Anula el cuadrado oscuro de 50×50 de la plantilla en estos botones */
.action_btns_group button.lnd-stamp,
.mh_action_btns > li > button.lnd-stamp,
.lookbook_slide_header .action_btns_group button.lnd-stamp {
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    line-height: normal;
}
.action_btns_group { align-items: center; }

/* ===== Banderas de idioma (pequeñas) ===== */
.lnd-flag .stamp-paper { --r: 2px; }
.lnd-flag .stamp-face { width: 34px; height: 24px; outline: 1px solid #0000001a; outline-offset: -1px; }
.lnd-flag .fi { display: block; width: 100%; height: 100%; line-height: 1; background-size: cover; background-position: center; }
.lnd-flag.en { --tilt: 4deg; }

/* ===== Botón del menú: boina negra con pompón blanco ===== */
.lnd-menu { --tilt: 4deg; }
.lnd-menu .stamp-face { width: 46px; height: 40px; background: #f8ecd5; outline: 1px dashed #7e1f1a55; outline-offset: -4px; }
.lnd-menu .stamp-face svg { width: 36px; height: auto; transform: rotate(11deg); }

/* ===== "Web Histórica" ===== */
.lnd-web { display: inline-block; text-decoration: none; }
.lnd-web:hover { text-decoration: none; }
.lnd-web .stamp-face {
    padding: 11px 22px;
    background-color: #155d61;
    background-image: radial-gradient(#ffffff1a .7px, transparent 1px);
    background-size: 5px 5px;
    color: #fff4dc;
    font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1;
    outline: 1px dashed #fff4dcaa;
    outline-offset: -5px;
}
/* ===== Cartelito colgante "Próximamente" (estilo "vuelvo en 5 minutos") ===== */
.coming-sign {
    position: relative;
    display: inline-block;
    padding-top: 30px;                       /* espacio para el cordel y el clavo */
    transform-origin: 50% 4px;               /* se balancea desde el clavo */
    animation: coming-sign-swing 3.4s ease-in-out infinite alternate;
}
.coming-sign .cs-string {
    position: absolute;
    top: 0;
    left: 12%;
    width: 76%;
    height: 34px;
    overflow: visible;
}
.coming-sign .cs-board {
    position: relative;
    display: block;
    padding: 12px 28px 14px;
    border: 3px solid #7e1f1a;
    border-radius: 8px;
    background-color: #f3e2c0;
    background-image:
        radial-gradient(#7c4b2724 .7px, transparent 1px),
        repeating-linear-gradient(90deg, #00000008 0 2px, transparent 2px 7px);
    background-size: 6px 6px, auto;
    /* sombra de colgado + filete interior + bordes envejecidos */
    box-shadow: 0 8px 14px #00000059, inset 0 0 0 4px #f8ecd5, inset 0 0 0 5px #7e1f1a40, inset 0 0 22px #7c4b2759;
    color: #b82e20;
    font-family: "Lobster", "Brush Script MT", cursive;
    font-size: 30px;
    line-height: 1;
    white-space: nowrap;
    text-shadow: 1px 1px 0 #fff8;
}
/* Ojales donde se ata el cordel */
.coming-sign .cs-board:before,
.coming-sign .cs-board:after {
    content: "";
    position: absolute;
    top: 7px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5a4632;
    box-shadow: inset 0 1px 1px #000a;
}
.coming-sign .cs-board:before { left: 12%; }
.coming-sign .cs-board:after { right: 12%; }
@keyframes coming-sign-swing {
    from { transform: rotate(-3.5deg); }
    to   { transform: rotate(2.5deg); }
}

/* Matasellos */
.lnd-web .stamp-face:after {
    content: "";
    position: absolute;
    top: -16px;
    right: -14px;
    width: 40px;
    height: 40px;
    border: 2px solid #29292740;
    border-radius: 50%;
    box-shadow: inset 0 0 0 7px #29292726;
    pointer-events: none;
}
