/*
Theme Name: SOGNE Sastrería
Template:   twentytwentyfive
Version:    1.0.0
Author:     Serch / Nadie Agency
*/

/* ============================================================
   RESET WP
   ============================================================ */
body.sogne-page { background: #f5f2ed !important; margin: 0; padding: 0; }
body.sogne-page .wp-site-blocks { padding: 0 !important; }
body.sogne-page header.wp-block-template-part,
body.sogne-page footer.wp-block-template-part { display: none !important; }
body.sogne-page .admin-bar .s-nav { top: 32px; }
@media (max-width: 782px) { body.sogne-page.admin-bar .s-nav { top: 46px; } }

/* ============================================================
   VARIABLES
   ============================================================ */
:root {
    --s-bg:      #f5f2ed;
    --s-bg2:     #ebe7e0;
    --s-dark:    #111;
    --s-ink:     #333;
    --s-txt:     #555;
    --s-txt-l:   #888;
    --s-gold:    #c4a265;
    --s-gold-l:  #d4b87a;
    --s-cream:   #faf8f5;
    --s-white:   #fff;
    --s-serif:   'Playfair Display', Georgia, serif;
    --s-sans:    'Libre Franklin', 'Helvetica Neue', sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
body.sogne-page {
    font-family: var(--s-sans);
    font-weight: 300;
    font-size: 15px;
    line-height: 1.75;
    color: var(--s-txt);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
body.sogne-page img { display: block; max-width: 100%; }
body.sogne-page a { text-decoration: none; color: inherit; }
body.sogne-page ::selection { background: var(--s-gold); color: var(--s-white); }

/* ============================================================
   NAV
   ============================================================ */
.s-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1.5rem 4%;
    display: flex; align-items: center; justify-content: space-between;
    transition: .5s;
}
.s-nav.scrolled {
    padding: 1rem 4%;
    background: rgba(245,242,237,.97);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.s-nav-logo { display: flex; align-items: center; text-decoration: none; }
.s-nav-logo svg { height: 38px; width: auto; transition: .3s; }
.s-nav.scrolled .s-nav-logo svg { height: 32px; }
.s-logo-dark { display: none; }
.s-logo-white { display: block; }
.s-nav.scrolled .s-logo-white { display: none; }
.s-nav.scrolled .s-logo-dark { display: block; }
.s-mob-logo { display: flex; align-items: center; }
.s-mob-logo svg { height: 30px; width: auto; }
.s-fb svg { height: 52px; width: auto; margin-bottom: 1rem; display: block; }
.s-nav-links { display: flex; gap: 1.8rem; align-items: center; }
.s-nav-links a { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--s-txt); font-weight: 400; transition: .3s; }
.s-nav-links a:hover { color: var(--s-dark); }
.s-nav-cta { color: var(--s-dark) !important; font-weight: 500 !important; border-bottom: 1px solid var(--s-dark); }

/* Dropdown */
.s-has-dropdown { position: relative; }
.s-dropdown-trigger { font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--s-txt); font-weight: 400; transition: .3s; cursor: pointer; }
.s-dropdown-trigger:hover { color: var(--s-dark); }
.s-dropdown-trigger::after { content: ' ▾'; font-size: .5rem; opacity: .4; }
.s-dropdown {
    position: absolute; top: 100%; left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(245,242,237,.98); backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,.04);
    box-shadow: 0 12px 40px rgba(0,0,0,.08);
    padding: 1.2rem 0; min-width: 220px;
    opacity: 0; visibility: hidden; transition: .3s; z-index: 200;
}
.s-has-dropdown:hover .s-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.s-dropdown a { display: block; padding: .5rem 1.8rem; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--s-txt); font-weight: 400; transition: .2s; white-space: nowrap; }
.s-dropdown a:hover { color: var(--s-dark); background: rgba(0,0,0,.03); padding-left: 2rem; }

/* Burger */
.s-burger { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.s-burger span { display: block; width: 22px; height: 1.5px; background: var(--s-dark); margin: 5px 0; transition: .3s; }

/* Mobile menu */
.s-mob-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 998; }
.s-mob-overlay.open { display: block; }
.s-mob { position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; background: var(--s-bg); z-index: 999; transition: right .35s ease; overflow-y: auto; }
.s-mob.open { right: 0; }
.s-mob-top { display: flex; justify-content: space-between; align-items: center; padding: 1.2rem 1.5rem; border-bottom: 1px solid rgba(0,0,0,.06); }
.s-mob-logo { font-family: var(--s-serif); font-size: 1.1rem; letter-spacing: .15em; color: var(--s-dark); }
.s-mob-close { background: none; border: none; font-size: 1.8rem; color: var(--s-dark); cursor: pointer; line-height: 1; }
.s-mob-links { padding: 1rem 0; }
.s-mob-link { display: block; padding: .8rem 1.5rem; font-size: .8rem; color: var(--s-dark); text-decoration: none; letter-spacing: .08em; }
.s-mob-link:hover { color: var(--s-gold); }
.s-mob-cta { background: var(--s-gold); color: #fff !important; margin: 1rem 1.5rem; text-align: center; padding: .9rem !important; font-size: .7rem !important; letter-spacing: .18em; text-transform: uppercase; }
.s-mob-dd { border-bottom: 1px solid rgba(0,0,0,.04); }
.s-mob-trigger {
    display: flex; align-items: center;
    border-bottom: 1px solid rgba(0,0,0,.04);
}
.s-mob-arrow-btn {
    background: none; border: none;
    padding: .8rem 1.5rem; cursor: pointer;
    color: var(--s-gold); font-size: 1.1rem; line-height: 1; flex-shrink: 0;
}
.s-mob-arrow-btn:hover { opacity: .7; }
.s-mob-arrow { transition: .3s; font-size: .9rem; color: var(--s-gold); }
.s-mob-dd.open .s-mob-arrow { transform: rotate(90deg); }
.s-mob-sub { display: none; padding: 0 0 .5rem 1rem; }
.s-mob-dd.open .s-mob-sub { display: block; }
.s-mob-sub a { display: block; padding: .5rem 1.5rem; font-size: .75rem; color: #666; text-decoration: none; }
.s-mob-sub a:hover { color: var(--s-gold); }

/* ============================================================
   HERO
   ============================================================ */
.s-hero { position: relative; height: 100vh; min-height: 650px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.s-hero-media { position: absolute; inset: 0; }
.s-hero-media video, .s-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.s-hero-media::after { content: ''; position: absolute; inset: 0; background: rgba(17,17,17,.5); }
.s-hero-media iframe { position: absolute; top: 50%; left: 50%; width: 120%; height: 120%; transform: translate(-50%,-50%); pointer-events: none; border: 0; }
.s-hero-c { position: relative; z-index: 2; text-align: center; max-width: 800px; padding: 0 2rem; }
.s-hero-ey { font-size: .6rem; letter-spacing: .5em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 1.8rem; display: flex; align-items: center; justify-content: center; gap: 1.5rem; }
.s-hero-ey::before, .s-hero-ey::after { content: ''; width: 30px; height: 1px; background: rgba(255,255,255,.2); }
.s-hero h1 { font-family: var(--s-serif); font-size: clamp(2.4rem,5vw,4.5rem); color: #fff; font-weight: 400; line-height: 1.08; margin: 0 0 1.2rem; opacity: 0; animation: sHI .9s .3s forwards; }
.s-hero h1 em { font-style: italic; }
.s-hero-p { font-size: .92rem; color: rgba(255,255,255,.6); max-width: 480px; margin: 0 auto 2.2rem; line-height: 1.9; opacity: 0; animation: sHI .9s .5s forwards; }
.s-hero-cta { display: inline-block; border: 1px solid #fff; background: #fff; color: var(--s-dark); padding: .9rem 2.8rem; font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; transition: .4s; opacity: 0; animation: sHI .9s .7s forwards; }
.s-hero-cta:hover { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
@keyframes sHI { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
.s-scroll { position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent); animation: sSL 2s ease infinite; }
@keyframes sSL { 0%,100% { opacity: .2; } 50% { opacity: 1; } }
.s-page-hero { position: relative; height: 55vh; min-height: 380px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.s-page-hero .s-hero-media::after { background: rgba(17,17,17,.55); }
.s-page-hero h1 { font-size: clamp(2rem,4vw,3.5rem); }

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */
.s-blk { padding: clamp(4rem,8vw,7rem) 0; }
.s-in { max-width: 1200px; margin: 0 auto; padding: 0 4%; }
.s-rv { opacity: 0; transform: translateY(22px); transition: .7s cubic-bezier(.22,.61,.36,1); }
.s-rv.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.s-ey { font-size: .58rem; letter-spacing: .35em; text-transform: uppercase; color: var(--s-gold); margin-bottom: 1rem; font-weight: 500; }
.s-bt { font-family: var(--s-serif); font-size: clamp(1.6rem,2.5vw,2.3rem); color: var(--s-dark); line-height: 1.12; margin-bottom: .8rem; font-weight: 400; }
.s-bd { font-size: .88rem; line-height: 1.95; margin-bottom: 1rem; }
.s-gr { width: 35px; height: 1px; background: var(--s-gold); margin: 1.2rem 0; }
.s-tl { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--s-dark); font-weight: 500; border-bottom: 1px solid var(--s-dark); padding-bottom: 2px; transition: .3s; display: inline-block; }
.s-tl:hover { color: var(--s-gold); border-color: var(--s-gold); }
.s-intro { font-size: 1.05rem; line-height: 1.8; color: var(--s-txt); margin-bottom: 2rem; }

/* Links dentro de contenido */
.s-bd a, .s-content a:not(.s-link):not(.s-box-link) { color: var(--s-gold); text-decoration: underline; text-decoration-color: rgba(160,134,84,.4); text-underline-offset: 2px; transition: .2s; }
.s-bd a:hover, .s-content a:hover { color: var(--s-dark); text-decoration-color: var(--s-dark); }

/* ============================================================
   BREADCRUMBS
   ============================================================ */
.s-bread { font-size: .72rem; color: #aaa; padding: .8rem 0 0; margin-bottom: 1rem; font-family: var(--s-sans); }
.s-bread a { color: #aaa; text-decoration: none; transition: .2s; }
.s-bread a:hover { color: var(--s-dark); }
.s-bread span { margin: 0 .3rem; }
.s-bread span:last-child { color: var(--s-dark); margin: 0; }

/* ============================================================
   SPLIT (2 columnas)
   ============================================================ */
.s-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 55vh; }
.s-split-img { overflow: hidden; }
.s-split-img img { width: 100%; height: 100%; object-fit: cover; min-height: 350px; }
.s-split-txt { display: flex; align-items: center; padding: clamp(2rem,4vw,4.5rem); }
.s-split-in { max-width: 460px; }

/* ============================================================
   SERVICE PAGES — grid contenido + sidebar
   ============================================================ */
/* Service grid */
.s-grid-service {
    display: grid;
    grid-template-columns: 1fr 340px;
    grid-template-rows: auto 1fr;
    column-gap: 3rem;
    row-gap: 0;
    align-items: start;
}
.s-content-intro { grid-column: 1; grid-row: 1; }
.s-content-rest  { grid-column: 1; grid-row: 2; }
.s-sidebar       { grid-column: 2; grid-row: 1 / 3; position: sticky; top: 90px; }

/* Eliminar márgenes en la frontera intro → rest para evitar gap visual */
.s-content-intro > *:last-child { margin-bottom: 0; }
.s-content-rest  > *:first-child > *:first-child { margin-top: 0; }
.s-content h2 { font-family: var(--s-serif); font-size: 1.4rem; color: var(--s-dark); margin: 2.5rem 0 .7rem; font-weight: 400; line-height: 1.2; }
.s-content h2:first-child { margin-top: 0; }
.s-content h3 { font-family: var(--s-serif); font-size: 1.1rem; color: var(--s-dark); margin: 1.8rem 0 .5rem; font-weight: 500; }
.s-content p { font-size: .88rem; line-height: 1.95; margin-bottom: .7rem; }
.s-content ul { list-style: none; margin: .8rem 0; padding: 0; }
.s-content ul li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .86rem; line-height: 1.75; }
.s-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--s-gold); }

/* Sidebar */
.s-sidebar { position: sticky; top: 90px; }
.s-sidebar-img { margin-bottom: 1.2rem; }
.s-sidebar-img img { width: 100%; height: auto; display: block; }
.s-box { background: var(--s-cream); border: 1px solid rgba(0,0,0,.06); padding: 1.5rem; margin-bottom: 1.2rem; }
.s-box p { font-size: .82rem; line-height: 1.6; color: #666; margin: 0; }
.s-box-link { display: inline-block; margin-top: 1rem; font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; color: var(--s-gold); text-decoration: none; border-bottom: 1px solid var(--s-gold); padding-bottom: 2px; }
.s-related { border-top: 1px solid rgba(0,0,0,.06); margin-top: 2rem; padding-top: 1.5rem; }
.s-related a { display: block; padding: .6rem 0; border-bottom: 1px solid rgba(0,0,0,.04); font-size: .85rem; color: var(--s-dark); text-decoration: none; }
.s-related a:hover { color: var(--s-gold); }

/* ============================================================
   SERVICES STRIP (home 3 cards)
   ============================================================ */
.s-srv-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(0,0,0,.05); }
.s-srv { position: relative; overflow: hidden; aspect-ratio: 3/4; cursor: pointer; background: var(--s-dark); display: block; }
.s-srv img { width: 100%; height: 100%; object-fit: cover; opacity: .4; transition: .7s; }
.s-srv:hover img { opacity: .2; transform: scale(1.04); }
.s-srv-c { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.8rem; z-index: 2; text-align: center; }
.s-srv-c .s-ey { color: var(--s-gold-l); margin-bottom: .5rem; }
.s-srv-c h3 { font-family: var(--s-serif); font-size: clamp(1.1rem,1.6vw,1.5rem); color: #fff; font-weight: 400; margin: 0 0 .5rem; }
.s-srv-c p { font-size: .78rem; color: rgba(255,255,255,.5); max-width: 240px; line-height: 1.65; margin: 0; }

/* ============================================================
   VID SECTION
   ============================================================ */
.s-vid { position: relative; aspect-ratio: 21/9; overflow: hidden; }
.s-vid video, .s-vid img { width: 100%; height: 100%; object-fit: cover; }
.s-vid::after { content: ''; position: absolute; inset: 0; background: rgba(17,17,17,.35); }
.s-vid-c { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }

/* ============================================================
   PROCESO
   ============================================================ */
.s-proc { display: grid; grid-template-columns: repeat(3,1fr); gap: 3rem; margin-top: 3rem; }
.s-proc-step { text-align: center; }
.s-proc-n { font-family: var(--s-serif); font-size: 3rem; color: var(--s-bg2); line-height: 1; margin-bottom: 1rem; }
.s-proc-step img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1rem; }
.s-proc-step h3 { font-family: var(--s-serif); font-size: 1.05rem; color: var(--s-dark); margin: 0 0 .4rem; font-weight: 500; }
.s-proc-step p { font-size: .82rem; line-height: 1.85; padding: 0 .3rem; margin: 0; }

/* ============================================================
   ARTICLE (guías)
   ============================================================ */
.s-article { max-width: 760px; margin: 0 auto; }
.s-article h2 { font-family: var(--s-serif); font-size: 1.4rem; color: var(--s-dark); margin: 2.5rem 0 .7rem; font-weight: 400; }
.s-article h3 { font-family: var(--s-serif); font-size: 1.1rem; color: var(--s-dark); margin: 1.8rem 0 .5rem; font-weight: 500; }
.s-article p { font-size: .88rem; line-height: 2; margin-bottom: .7rem; }
.s-article ul { list-style: none; margin: .8rem 0; padding: 0; }
.s-article ul li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .86rem; line-height: 1.8; }
.s-article ul li::before { content: '—'; position: absolute; left: 0; color: var(--s-gold); }
.s-article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: .83rem; }
.s-article th { background: var(--s-dark); color: #fff; padding: .7rem 1rem; text-align: left; font-weight: 500; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.s-article td { padding: .6rem 1rem; border-bottom: 1px solid rgba(0,0,0,.05); }
.s-article tr:nth-child(even) { background: rgba(0,0,0,.02); }
.s-article-cta { margin: 2.5rem 0; padding: 1.8rem; background: var(--s-bg2); border-left: 3px solid var(--s-gold); }
.s-article-related { margin: 2rem 0 0; padding: 2rem 0 0; border-top: 1px solid rgba(0,0,0,.06); display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.s-article-related a { padding: 1rem; background: var(--s-cream); border: 1px solid rgba(0,0,0,.04); font-size: .82rem; color: var(--s-dark); transition: .3s; }
.s-article-related a:hover { border-color: var(--s-gold); }
.s-article-related a span { display: block; font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; color: var(--s-gold); margin-bottom: .3rem; font-weight: 500; }

/* ============================================================
   HOUSES BAR
   ============================================================ */
.s-hbar { display: flex; justify-content: center; gap: 2.5rem; padding: 2rem 4%; flex-wrap: wrap; border-top: 1px solid rgba(0,0,0,.04); border-bottom: 1px solid rgba(0,0,0,.04); }
.s-hbar span { font-family: var(--s-serif); font-size: .88rem; color: var(--s-txt-l); font-style: italic; }

/* ============================================================
   QUOTE
   ============================================================ */
.s-quote { text-align: center; padding: clamp(3.5rem,7vw,6rem) 8%; background: var(--s-cream); }
.s-quote-mark { font-family: var(--s-serif); font-size: 4.5rem; color: var(--s-bg2); line-height: .5; margin-bottom: .8rem; }
.s-quote-txt { font-family: var(--s-serif); font-size: clamp(1rem,1.8vw,1.4rem); color: var(--s-dark); line-height: 1.55; max-width: 580px; margin: 0 auto; font-style: italic; }
.s-quote-auth { margin-top: 1rem; font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--s-txt-l); }

/* ============================================================
   CTA BLOCK
   ============================================================ */
.s-cta { text-align: center; padding: clamp(4.5rem,9vw,8rem) 4%; background: var(--s-dark); color: #fff; }
.s-cta .s-ey { color: var(--s-gold); }
.s-cta .s-bt { color: #fff; max-width: 600px; margin: 0 auto .8rem; }
.s-cta .s-bd { color: rgba(255,255,255,.4); max-width: 440px; margin: 0 auto 2rem; }
.s-cta-btn { display: inline-block; border: 1px solid var(--s-gold); color: var(--s-gold); padding: .9rem 3rem; font-size: .66rem; letter-spacing: .25em; text-transform: uppercase; transition: .4s; }
.s-cta-btn:hover { background: var(--s-gold); color: var(--s-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.s-footer { background: var(--s-dark); color: rgba(255,255,255,.35); padding: 4rem 0 0; }
.s-ft { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.s-fb { margin-bottom: .8rem; }
.s-fb svg { display: block; max-width: 220px; height: auto; width: 100%; }
.s-ftag { font-size: .78rem; line-height: 1.8; max-width: 270px; color: rgba(255,255,255,.35); }
.s-fc h4 { font-size: .55rem; letter-spacing: .22em; text-transform: uppercase; color: var(--s-gold); margin-bottom: .7rem; font-weight: 500; }
.s-fc a { display: block; font-size: .78rem; margin-bottom: .4rem; transition: .3s; color: rgba(255,255,255,.35); text-decoration: none; }
.s-fc a:hover { color: var(--s-gold); }
.s-fbot { max-width: 1100px; margin: 0 auto; padding: 1.5rem 2rem; border-top: 1px solid rgba(255,255,255,.05); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; font-size: .62rem; color: rgba(255,255,255,.15); }
.s-fbot-legal { display: flex; gap: 1.5rem; }
.s-fbot-legal a { color: rgba(255,255,255,.15); text-decoration: none; font-size: .62rem; letter-spacing: .08em; transition: .2s; }
.s-fbot-legal a:hover { color: rgba(255,255,255,.4); }

/* ============================================================
   CARDS GRID
   ============================================================ */
.s-grid-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin: 2rem 0; }
.s-card { background: var(--s-white); border: 1px solid rgba(0,0,0,.06); padding: 1.8rem; transition: .3s; }
.s-card:hover { box-shadow: 0 8px 30px rgba(0,0,0,.06); }
.s-card h3 { font-family: var(--s-serif); font-size: 1.1rem; margin: 0 0 .8rem; color: var(--s-dark); }
.s-card h3 a { color: inherit; text-decoration: none; }
.s-card h3 a:hover { color: var(--s-gold); }
.s-card p { font-size: .85rem; line-height: 1.7; color: var(--s-txt); margin: 0 0 1rem; }
.s-link { font-size: .7rem; letter-spacing: .15em; text-transform: uppercase; color: var(--s-gold); font-weight: 500; text-decoration: none; transition: .2s; }
.s-link:hover { color: var(--s-dark); }

/* ============================================================
   BOOKING WIDGET — en móvil el sidebar sube antes que el contenido
   ============================================================ */

/* ============================================================

/* ============================================================
   HOMEPAGE — reordenar blocks en móvil
   Desktop: flex-column = mismo comportamiento que block
   Móvil:   services(1) → atelier(2) → hbar(3) → quote(4)
   ============================================================ */

.s-home-blocks    { display: flex; flex-direction: column; }
.s-home-manifesto { order: 1; }
.s-home-services  { order: 2; }
.s-home-hbar      { order: 3; }
.s-home-quote     { order: 4; }
.s-home-atelier   { order: 5; }

/* ============================================================
   MEDIA QUERIES
   ============================================================ */
@media (max-width: 900px) {
    /* Nav */
    .s-nav-links { display: none; }
    .s-burger { display: block; }
    .s-has-dropdown, .s-dropdown-trigger, .s-dropdown { display: none; }

    /* Layout */
    .s-split { grid-template-columns: 1fr; }
    .s-split-img img { min-height: 250px; max-height: 380px; }
    .s-srv-strip { grid-template-columns: 1fr; }
    .s-proc { grid-template-columns: 1fr; gap: 2rem; }
    .s-grid-service { display: flex !important; flex-direction: column; }
    .s-content-intro { order: 1; }
    .s-sidebar       { order: 2; position: static !important; margin-bottom: 1.5rem; }
    .s-content-rest  { order: 3; }
    .s-article-related { grid-template-columns: 1fr; }
    .s-vid { aspect-ratio: 16/9; }

    /* Footer */
    .s-ft { grid-template-columns: 1fr 1fr !important; }
    .s-ft > div:first-child { grid-column: 1 / -1; text-align: center; }
    .s-ft > div:first-child .s-fb { display: flex; justify-content: center; }
    .s-ft > div:first-child .s-ftag { margin: 0 auto; text-align: center; }

    /* Vídeo hero móvil */
    
    

    /* Homepage reorder móvil: services→hbar→manifesto→atelier→quote */
    .s-home-services  { order: 1 !important; }
    .s-home-hbar      { order: 2 !important; }
    .s-home-manifesto { order: 3 !important; }
    .s-home-atelier   { order: 4 !important; }
    .s-home-quote     { order: 5 !important; }
}

@media (max-width: 600px) {
    /* Footer grid — logo arriba centrado, 2 cols centradas, contacto abajo centrado */
    .s-ft { grid-template-columns: 1fr 1fr !important; gap: 2rem 1.5rem; padding: 0 1.5rem; justify-items: center; }
    .s-ft > div:first-child { grid-column: 1 / -1; text-align: center; width: 100%; }
    .s-ft > div:first-child .s-fb { display: flex; justify-content: center; margin-bottom: .5rem; }
    .s-ft > div:first-child .s-ftag { margin: 0 auto; text-align: center; font-size: .75rem; }
    .s-ft > div:last-child { grid-column: 1 / -1; text-align: center; width: 100%; }
    .s-ft > div:last-child a { display: inline-block; margin: .15rem .5rem; }
    .s-fc { text-align: center; width: 100%; }
    .s-fc h4 { font-size: .58rem; letter-spacing: .16em; margin-bottom: .7rem; text-align: center; }
    .s-fc a { display: block; font-size: .74rem; padding: .25rem 0; text-align: center; }
    .s-fbot { flex-direction: column; align-items: center; text-align: center; gap: .6rem; padding: 1.2rem 1.5rem; }
    .s-fbot-legal { gap: 1rem; justify-content: center; flex-wrap: wrap; }
    .s-hbar { gap: 1rem; }
    .s-page-hero { height: 45vh; min-height: 300px; }
    .s-grid-cards { grid-template-columns: 1fr; }
}

/* ── PÁGINAS LEGALES ─────────────────────────────────────── */
.s-legal-content h2 { font-family: var(--s-serif); font-size: 1.2rem; color: var(--s-dark); margin: 2rem 0 .6rem; font-weight: 400; }
.s-legal-content h3 { font-family: var(--s-serif); font-size: 1rem; color: var(--s-dark); margin: 1.5rem 0 .4rem; font-weight: 500; }
.s-legal-content p  { font-size: .88rem; line-height: 1.95; margin-bottom: .8rem; color: var(--s-txt); }
.s-legal-content ul { list-style: none; margin: .8rem 0; padding: 0; }
.s-legal-content ul li { padding: .3rem 0 .3rem 1.4rem; position: relative; font-size: .86rem; line-height: 1.8; }
.s-legal-content ul li::before { content: '—'; position: absolute; left: 0; color: var(--s-gold); }
.s-legal-content a { color: var(--s-gold); text-decoration: underline; text-decoration-color: rgba(196,162,101,.4); }
.s-legal-content a:hover { color: var(--s-dark); }
.s-legal-content table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .82rem; }
.s-legal-content th { background: var(--s-bg2); color: var(--s-dark); padding: .6rem .9rem; text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .05em; }
.s-legal-content td { padding: .6rem .9rem; border-bottom: 1px solid rgba(0,0,0,.05); vertical-align: top; line-height: 1.6; }

    
}

    
}