/* ============================================================
   CSS PLANTILLA V3 — art-nando.com
   Editable via admin/diseno.php
   ============================================================ */

/* ── Logo NANDO (Monoton) ─────────────────────────────────── */
#banner h2.homemaintitle,
#banner h2.homemaintitle a,
.homemaintitle,
.homemaintitle a {
    font-family: 'Monoton', cursive !important;
    font-weight: normal !important;
    text-shadow: none !important;
}

/* ── Header h1 (Questrial) ────────────────────────────────── */
#header h1,
#header h1 a,
.togglename,
.togglename a {
    font-family: 'Questrial', sans-serif !important;
    font-weight: 700 !important;
    text-shadow: none !important;
}

/* ── Footer — color controlado por custom-design.css (admin Diseño > Colores) ── */

/* ── Mini-banner páginas interiores ──────────────────────── */
section#banner.mini {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 0 !important;
    padding: 4em 0 2.5em !important;
}
@media (max-width: 768px) {
    section#banner.mini h2.homemaintitle {
        font-size: 2rem !important;
    }
}

/* ── Botón galerías (home) ────────────────────────────────── */
.btn-galeries {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.06) 100%);
    border: 2px solid rgba(255,255,255,.9);
    color: #fff;
    font-family: 'Questrial', 'Varela Round', sans-serif;
    font-size: .88em;
    letter-spacing: .13em;
    text-transform: uppercase;
    padding: 11px 28px;
    border-radius: 60px;
    text-decoration: none;
    transition: all .35s cubic-bezier(.175,.885,.32,1.275);
    margin: 20px auto;
    backdrop-filter: blur(4px);
    box-shadow: 0 4px 20px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.3);
    position: relative;
    overflow: hidden;
}
.btn-galeries::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .5s ease;
}
.btn-galeries:hover::before { left: 100%; }
.btn-galeries:hover {
    background: linear-gradient(135deg, rgba(255,255,255,.35) 0%, rgba(255,255,255,.12) 100%);
    border-color: #fff;
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 35px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.4);
    text-decoration: none;
}
.btn-galeries i { font-size: 1em; filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); }
@media (max-width: 480px) {
    .btn-galeries { font-size: .78em; letter-spacing: .1em; padding: 9px 18px; }
}

/* ── Cita Louis Pons (home) ───────────────────────────────── */
.home-quote {
    font-family: 'Questrial', sans-serif !important;
    font-style: normal !important;
    font-size: 1.8em !important;
    color: #fff;
    text-align: left;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0,0,0,.15);
}
.home-quote small {
    display: block;
    font-family: 'Questrial', sans-serif !important;
    font-size: .52em !important;
    font-style: italic !important;
    opacity: .85;
    margin-top: .4em;
}
@media (max-width: 768px) {
    .home-quote { font-size: 1.5em !important; }
}

/* ── Wrap cita + botón lectura ────────────────────────────── */
.home-quote-wrap {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin: .5em 0 1em;
}
.home-quote-wrap .home-quote { flex: 1; }

/* ── Botón lectura TTS ────────────────────────────────────── */
.btn-lecture,
.btn-lire-texte {
    flex-shrink: 0;
    width: 40px; height: 40px; min-width: 40px;
    background: rgba(255,255,255,.15);
    border: 1.5px solid rgba(255,255,255,.5);
    border-radius: 50%;
    color: #fff;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s, transform .2s;
    backdrop-filter: blur(4px);
    margin-top: 10px;
    padding: 0;
}
.btn-lecture:hover,
.btn-lire-texte:hover,
.btn-lire-texte.active {
    background: rgba(255,255,255,.3);
    transform: scale(1.1);
}

/* ── Panel texto audio ────────────────────────────────────── */
.texte-audio-panel {
    background: rgba(0,0,0,.2);
    border-radius: 8px;
    margin: 0 0 1.2em;
    animation: fadeInPanel .25s ease;
}
@keyframes fadeInPanel {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
.texte-audio-inner {
    padding: 1.2rem 1.5rem;
    color: rgba(255,255,255,.95);
    font-size: .95rem;
    line-height: 1.7;
}
.texte-audio-inner p { margin: 0 0 .8em; }
.texte-audio-sig { font-style: italic; font-size: .88em; opacity: .8; }

/* ── Goodies header (home) ────────────────────────────────── */
.goodies-header { text-align: center; margin-bottom: 1.5em; }
.goodies-title {
    font-family: 'Varela Round', sans-serif !important;
    font-weight: 200 !important;
    font-size: 1.5em !important;
    color: #fff !important;
    margin: 0 0 .4em !important;
    letter-spacing: .02em !important;
    border: none !important;
}
.goodies-title::before,
.goodies-title::after { display: none !important; content: none !important; }
.tabcomment-modern { text-align: center; margin: 28px 0; }

/* ── Quitar rayas h2 ──────────────────────────────────────── */
#banner h2,
#one h2,
#galeries-preview h2,
#cta h2 {
    border-top: none !important;
    border-bottom: none !important;
}
#one h2::before, #one h2::after,
#cta h2::before, #cta h2::after,
#galeries-preview h2::before, #galeries-preview h2::after { display: none !important; content: none !important; }
#one .inner > header,
#cta .inner > header { border: none !important; padding-top: 0 !important; padding-bottom: 0 !important; }
#one .inner > header::before, #one .inner > header::after,
#cta .inner > header::before, #cta .inner > header::after { display: none !important; content: none !important; }

/* ── Menu lateral ─────────────────────────────────────────── */
#menu ul li   { margin: 0 !important; padding: 0 !important; line-height: 1.2 !important; }
#menu ul li a { display: block !important; padding: .4rem 1rem !important; margin: 0 !important; }
#menu ul      { padding: .5rem 0 !important; }
#menu-lang    { display: flex !important; justify-content: center !important; gap: .5rem !important; padding: .6rem 0 !important; }
#menu-lang a  { display: inline-block !important; padding: 0 !important; }
#menu-lang img { width: 35px !important; height: auto !important; border-radius: 4px !important; transition: transform .2s, opacity .2s; }
#menu-lang img:hover { transform: scale(1.1); opacity: .9; }

/* ── Copyright footer ─────────────────────────────────────── */
.textecopyright     { width: 90%; margin: 0 auto; font-family: 'Questrial', sans-serif; color: rgba(255,255,255,.5); font-size: .8em; }
.textecopyright > p { text-align: justify; }

/* ── Modal zoom imagen ────────────────────────────────────── */
#zoomModal       { display: none !important; position: fixed; inset: 0; z-index: 10003; background: rgba(0,0,0,.95); cursor: zoom-out; align-items: center; justify-content: center; }
#zoomModal.open  { display: flex !important; }
#zoomModal img   { max-width: 92%; max-height: 92vh; }
#zoomModal .close { position: absolute; top: 12px; right: 28px; color: #f1f1f1; font-size: 40px; cursor: pointer; }

/* ── Modal Aviso Legal ────────────────────────────────────── */
#legalModal      { display: none !important; position: fixed; inset: 0; z-index: 10003; background: rgba(13,98,112,.95); align-items: flex-start; justify-content: center; padding: 3rem 2rem; }
#legalModal.open { display: flex !important; }
.modal-content-wrapper { background: #fff; border-radius: 12px; max-width: 900px; width: 100%; padding: 3rem; position: relative; box-shadow: 0 10px 40px rgba(0,0,0,.3); max-height: 90vh; overflow-y: auto; }
.modal-content-wrapper h2,
.modal-content-wrapper h3 { color: #1792a4; }
.modal-content-wrapper h2 { margin-bottom: 1.5rem; }
.modal-content-wrapper h3 { margin: 2rem 0 1rem; }
.modal-content-wrapper p  { margin-bottom: 1rem; text-align: justify; line-height: 1.8; color: #555; }
.modal-content-wrapper div { color: #555; line-height: 1.8; }
.close-legal-modal { position: sticky; top: 0; float: right; font-size: 2rem; cursor: pointer; color: #666; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; transition: all .3s; background: #fff; z-index: 1; }
.close-legal-modal:hover { background: #f0f0f0; color: #1792a4; transform: rotate(90deg); }
@media (max-width: 768px) { .modal-content-wrapper { padding: 2rem 1.5rem; } }

/* ── Image ELLE HD ────────────────────────────────────────── */
.divImgFloatLeft { overflow: visible !important; position: relative !important; float: left; }
.elle-lbx { cursor: zoom-in; display: inline-block; position: relative; }
.elle-img  { width: 100%; height: auto; display: block; object-fit: contain; transition: opacity .2s; }
.elle-lbx:hover .elle-img { opacity: .88; }
.elle-zoom-icon {
    position: absolute; bottom: 8px; right: 8px;
    background: rgba(0,0,0,.55); color: #fff;
    border-radius: 50%; width: 30px; height: 30px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; opacity: 0; transition: opacity .2s; pointer-events: none;
}
.elle-lbx:hover .elle-zoom-icon { opacity: 1; }

/* ── Texte article ────────────────────────────────────────── */
.texte-standard-np { font-size: 1em !important; line-height: 1.75 !important; text-align: justify; }

/* ── Enlace ¿MÁS? ─────────────────────────────────────────── */
.home-more-link { text-align: center !important; margin: 2rem 0 1rem !important; clear: both; }
.home-more-link a {
    display: inline-block;
    font-family: 'Questrial', sans-serif;
    font-size: 1em; letter-spacing: .15em;
    color: rgba(255,255,255,.7); text-decoration: none;
    border-bottom: none; transition: color .2s;
}
.home-more-link a:hover { color: #fff; }
.home-more-link a::after {
    background-image: url('/v3/img/arrow.svg');
    background-position: center; background-repeat: no-repeat; background-size: contain;
    content: ''; display: block; height: 1.5em; margin: .5em auto 0; width: 1.5em; opacity: .7;
}
.home-more-link a:hover::after { opacity: 1; }

/* ── Misc ─────────────────────────────────────────────────── */
html, body        { overflow-x: hidden; }
.imgdisableselect { -webkit-user-select: none; user-select: none; pointer-events: none; }


/* ================================================================
   SUBMENÚ — Ressources gratuites / Free Resources / Recursos
   Nando · peinture abstraite · rosáceas · ADAGP
================================================================ */

/* ── Item padre ── */
#menu .menu-has-sub { position: relative; }

.menu-sub-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100%;
    cursor: pointer;
}

.menu-arrow {
    font-size: .65em;
    margin-left: 8px;
    transition: transform .25s ease;
    display: inline-block;
}
.menu-has-sub.is-open .menu-arrow { transform: rotate(90deg); }

/* ── Lista submenú ── */
.menu-sub {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    background: rgba(0,0,0,.18);
    border-left: 2px solid rgba(255,255,255,.15);
}

.menu-sub li a {
    display: block !important;
    padding: 7px 12px 7px 22px !important;
    font-size: .82em !important;
    color: rgba(255,255,255,.65) !important;
    letter-spacing: .04em !important;
    transition: color .2s, padding-left .2s !important;
    border-bottom: none !important;
}
.menu-sub li a:hover,
.menu-sub li a:focus {
    color: #ffffff !important;
    padding-left: 28px !important;
}

/* ── Responsive ── */
@media (max-width: 736px) {
    .menu-sub li a {
        font-size: .78em !important;
        padding: 6px 10px 6px 20px !important;
    }
    .menu-sub li a:hover { padding-left: 24px !important; }
}

/* ================================================================
   DISEÑO A — Nuevo menú sidebar
   AÑADIDO AL FINAL — nada de lo anterior se modifica
   Lee variables: --menu-bg · --menu-acento · --menu-ancho · --menu-font
   Selector body.landing #menu para ganar a Spectral styles.css
================================================================ */

/* ── Fondo y fuente del menú ── */
body.landing #menu,
body #menu,
#page-wrapper #menu,
body.landing #page-wrapper #menu {
    background: rgba(3, 92, 105, 0.85) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    font-family: 'Varela Round', sans-serif !important;
    width: 240px !important;
}

/* ── Links del menú ── */
body.landing #menu ul > li > a,
body #menu ul > li > a {
    font-family: var(--menu-font, 'Varela Round', sans-serif) !important;
    font-size: 13px !important;
    letter-spacing: .02em !important;
    color: rgba(255,255,255,.55) !important;
    padding: 8px 18px !important;
    transition: color .15s, background .15s !important;
}
body.landing #menu ul > li > a:hover,
body #menu ul > li > a:hover {
    color: rgba(255,255,255,.9) !important;
    background: rgba(255,255,255,.05) !important;
}

/* ── Separador entre items ── */
body.landing #menu ul > li,
body #menu ul > li {
    border-top: 1px solid rgba(255,255,255,.06) !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.landing #menu ul > li:first-child,
body #menu ul > li:first-child {
    border-top: 0 !important;
}

/* ── Flags idiomas ── */
body #menu-lang img {
    opacity: .55 !important;
    border-radius: 3px !important;
    transition: opacity .15s, transform .15s !important;
}
body #menu-lang img:hover {
    opacity: 1 !important;
    transform: scale(1.08) !important;
}

/* ── Submenú items — acento desde variable ── */
.menu-sub li a:hover::before,
.menu-has-sub.is-open > .menu-sub-toggle {
    background: rgba(255,255,255,.04);
    border-left-color: var(--menu-acento, #57b2d8) !important;
}
.menu-has-sub.is-open .menu-sub-chevron {
    color: var(--menu-acento, #57b2d8) !important;
}
.menu-sub li a:hover::before {
    background: var(--menu-acento, #57b2d8) !important;
}

/* ================================================================
   SHARE BLOCKS v4 — Barre de partage (downloads/wallpapers)
   Couleurs contrôlées via /v3/js/share-config.json + admin
   Nando · peinture abstraite · rosáceas · ADAGP
================================================================ */

/* ── Barre insérée APRÈS le form (hors overflow:hidden) ───── */
.share-bar {
    display: inline-block;
    width: 460px;
    max-width: 100%;
    box-sizing: border-box;
    margin-top: 0;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 6px;
}

/* Espace entre le bloc form et la barre Compartir */
form[id^="wp"] {
    margin-bottom: 20px;
}

/* ── Bouton barre ─────────────────────────────────────────── */
.share-bar-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background .2s;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.share-bar-btn:hover {
    background: rgba(255,255,255,.08);
}
.share-bar-btn i:first-child { font-size: .78em; }
.share-bar-chevron {
    margin-left: auto;
    font-size: .6rem;
    transition: transform .25s ease;
    opacity: .6;
}

/* ── Titre du panel ──────────────────────────────────────── */
.share-panel-title {
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .07em;
    opacity: .7;
    margin-bottom: .45rem;
}

/* ── Panel expandible ─────────────────────────────────────── */
.share-inline-panel {
    display: none;
    padding: .65rem .85rem .75rem;
    border-top: 1px solid rgba(255,255,255,.12);
    animation: shareIn .18s ease;
}
.share-inline-panel.open { display: block; }

@keyframes shareIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Boutons réseaux ──────────────────────────────────────── */
.share-inline-socials {
    display: flex;
    gap: .4rem;
    margin-bottom: .55rem;
    flex-wrap: wrap;
}
.share-soc-btn {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .88rem;
    color: #fff;
    text-decoration: none;
    transition: transform .2s, opacity .2s;
    flex-shrink: 0;
}
.share-soc-btn:hover { transform: scale(1.1); opacity: .9; }
.share-soc-btn.fb { background: #1877f2; }
.share-soc-btn.tw { background: #000; }
.share-soc-btn.wa { background: #25d366; }
.share-soc-btn.pi { background: #e60023; }

/* ── Copier lien ──────────────────────────────────────────── */
.share-copy-wrap {
    display: flex;
    gap: .3rem;
    align-items: center;
}
.share-copy-input {
    flex: 1;
    min-width: 0;
    font-size: .67rem;
    padding: .3rem .45rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 4px;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.8);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: default;
    outline: none;
}
.share-copy-btn {
    flex-shrink: 0;
    padding: .3rem .55rem;
    background: #1792a4;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: .7rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.share-copy-btn:hover  { background: #0d6270; }
.share-copy-btn.copied { background: #28a745; }

/* ── Bannière retour — mode partagé ──────────────────────── */
.share-back-banner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    border-radius: 8px;
    padding: .65rem 1rem;
    margin-bottom: 1.2rem;
    font-size: .85rem;
}
.share-back-link {
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.share-back-link:hover { opacity: .75; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 520px) {
    .share-bar { width: 100%; }
    .share-bar-btn { padding: 10px 12px; }
    .share-soc-btn { width: 38px; height: 38px; font-size: 1rem; }
}
