/* ============================================================
   site.css — Web Wrapper Layer
   rEmotion adejemassage.com — v1.0 (2026-02-19)
   NOTE: pricelist.css is imported separately. This file only
   handles the web chrome around the A5 page.
   ============================================================ */

:root {
    --brand-coral: #FF5A29;
    --brand-coral-dk: #e04d20;
    --brand-dark: #2C2C2C;
    /* brand dark grey — brand_book.md */
    --site-bg: #2C2C2C;
    /* brand dark background */
    --header-h: 48px;
    --footer-h: 52px;
    --font-sans: 'Inter', sans-serif;
}

/* ---- RESET / BODY OVERRIDE ---- */
/* pricelist.css sets body to flex/center — we extend it */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    /* Override pricelist.css body defaults */
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    min-height: 100dvh !important;
    background-color: var(--site-bg) !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* ============================================================
   HEADER — Language Switcher Bar
   ============================================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;
    gap: 8px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
}

.lang-btn {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 9px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    color: #777;
    cursor: pointer;
    letter-spacing: 0.04em;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.lang-btn:hover {
    background: rgba(0, 0, 0, 0.06);
    color: #333;
}

.lang-btn.active {
    background: var(--brand-coral);
    color: #fff;
    border-color: var(--brand-coral);
}

/* ============================================================
   MAIN — Page Scaler Container
   ============================================================ */
.site-main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 36px 16px;
    min-height: calc(100dvh - var(--header-h) - var(--footer-h));
}

/* The JS-controlled scaler wrapper */
.page-scaler {
    transform-origin: top center;
    /* marginBottom is set by JS to compensate for scale height loss */
}

/* Ensure the A5 page doesn't inherit unwanted body flex context */
.a4-page {
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* ============================================================
   SITE FOOTER — Legal Links
   ============================================================ */
.site-footer {
    height: var(--footer-h);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 400;
    color: #888;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    background: rgba(255, 255, 255, 0.45);
    padding: 0 16px;
    flex-wrap: wrap;
    text-align: center;
}

.site-footer a {
    color: #888;
    text-decoration: none;
    transition: color 0.15s;
}

.site-footer a:hover {
    color: var(--brand-coral);
    text-decoration: underline;
}

.site-footer .sep {
    color: #ccc;
    user-select: none;
}

/* ============================================================
   COOKIE BANNER (LSSI-CE — functional only)
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(22, 22, 22, 0.96);
    color: #d8d8d8;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 24px;
    text-align: center;
    flex-wrap: wrap;
    /* Hidden by default — JS adds .visible */
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-banner.visible {
    transform: translateY(0);
}

.cookie-btn {
    background: var(--brand-coral);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 18px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
    flex-shrink: 0;
}

.cookie-btn:hover {
    background: var(--brand-coral-dk);
}

/* ============================================================
   LEGAL PAGES (aviso_legal.html & politica_privacidad.html)
   ============================================================ */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    font-family: var(--font-sans);
    color: #222;
    line-height: 1.7;
}

.legal-page h1 {
    font-family: 'Literata', serif;
    font-size: 28px;
    font-weight: 400;
    color: #111;
    margin-bottom: 8px;
    border-bottom: 2px solid var(--brand-coral);
    padding-bottom: 12px;
}

.legal-page h2 {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #555;
    margin-top: 36px;
    margin-bottom: 8px;
}

.legal-page p {
    font-size: 13.5px;
    font-weight: 300;
    color: #444;
    margin-bottom: 12px;
}

.legal-page a {
    color: var(--brand-coral);
    text-decoration: none;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-page .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    color: #888;
    text-decoration: none;
    margin-bottom: 32px;
    transition: color 0.15s;
}

.legal-page .back-link:hover {
    color: var(--brand-coral);
}

/* ============================================================
   RESPONSIVE SCALING (JS does the transform,
   this handles edge-case layout at small sizes)
   ============================================================ */
@media screen and (max-width: 620px) {
    .site-main {
        padding: 12px 0;
    }

    .site-footer {
        font-size: 10px;
        gap: 6px;
    }
}

@media screen and (max-width: 400px) {
    .site-header {
        padding: 0 12px;
    }

    .lang-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
}