@import url("preview-home.css");

/* Ajustes de HOME aprobados + cromado de páginas interiores.
   preview-home.css permanece como base visual. */

.hero h1 { max-width: 22ch; }
.hero-claim {
    font-family: var(--pv-serif);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    font-weight: 500;
    font-style: italic;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: rgba(255,255,255,.82);
    margin: -8px 0 18px;
}
.intro p + p { margin-top: 16px; }
.zone-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 40px;
}
.zone-cell {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}
.zone-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 14px 16px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--pv-line);
    color: var(--pv-ink);
    font-family: var(--pv-sans);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .015em;
    line-height: 1.25;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.zone-btn:hover {
    background: var(--pv-ink);
    border-color: var(--pv-ink);
    color: #fff;
    box-shadow: 0 10px 24px rgba(22, 21, 19, .12);
}
.zone-btn:focus-visible {
    outline: 2px solid var(--pv-ink);
    outline-offset: 3px;
}
.zone-cell small {
    display: block;
    font-size: .7rem;
    color: var(--pv-ink-soft);
    line-height: 1.4;
    text-align: center;
    padding: 0 2px;
}
@media (max-width: 980px) {
    .zone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .zone-btn {
        min-height: 52px;
        font-size: .78rem;
        padding: 12px 14px;
    }
}
.guides { padding: 0 0 80px; }
.guides-list { max-width: 760px; border-top: 1px solid var(--pv-line); }
.guides-list a {
    display: block;
    font-family: var(--pv-serif);
    font-size: clamp(1.25rem, 2.4vw, 1.7rem);
    font-weight: 500;
    letter-spacing: -.02em;
    padding: 16px 0;
    border-bottom: 1px solid var(--pv-line);
}
.guides-list a:hover { color: var(--pv-ink-soft); }
.ft-cols ul { list-style: none; }
.photo-cover {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
}

/* Header sólido (páginas interiores): gana a .site-hdr absoluto de la home */
.site-hdr.site-hdr-solid {
    position: sticky;
    top: 0;
    background: rgba(246, 243, 236, .97);
    border-bottom: 1px solid var(--pv-line);
    z-index: 50;
}
.site-hdr.site-hdr-solid .nav-link { color: var(--pv-ink); }
.site-hdr.site-hdr-solid .nav-link:hover { color: var(--pv-ink-soft); }
.site-hdr.site-hdr-solid .brand-name { color: var(--pv-ink); }
.site-hdr.site-hdr-solid .brand-name small { color: var(--pv-ink-soft); }
.site-hdr.site-hdr-solid .brand-mark { border: 0; background: transparent; }
.site-hdr.site-hdr-solid .ham span { background: var(--pv-ink); }
.site-hdr.site-hdr-solid .ham { border-color: var(--pv-line); }

/* Hamburger: readable over the HOME photo and on interior solid headers */
.hero .site-hdr .ham {
    background: #161513;
    border-color: #ffffff;
}
.hero .site-hdr .ham span {
    background: #fff;
    width: 18px;
    height: 2px;
}
.hero .site-hdr.is-fixed .ham,
.hero .site-hdr.menu-on .ham,
.site-hdr.site-hdr-solid .ham {
    background: var(--pv-surface);
    border-color: var(--pv-ink);
}
.hero .site-hdr.is-fixed .ham span,
.hero .site-hdr.menu-on .ham span,
.site-hdr.site-hdr-solid .ham span { background: var(--pv-ink); }

/* Hero compacto de interiores */
.page-hero {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: end;
    color: #fff;
    background: #1a1916;
}
.page-hero .page-hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.page-hero .page-hero-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(22,21,19,.78) 0%, rgba(22,21,19,.4) 55%, rgba(22,21,19,.28) 100%),
        linear-gradient(180deg, rgba(22,21,19,.12) 0%, rgba(22,21,19,.55) 100%);
}
.page-hero .frame { position: absolute; inset: 0; }
.page-hero-copy {
    position: relative;
    z-index: 2;
    padding: 56px 0 48px;
    max-width: 760px;
    margin-left: max(var(--pv-pad), calc((100% - var(--pv-max)) / 2));
    width: min(100% - 2 * var(--pv-pad), 760px);
}
.crumbs {
    font-size: .78rem;
    color: rgba(255,255,255,.62);
    margin-bottom: 18px;
}
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs span { color: rgba(255,255,255,.4); margin: 0 8px; }
.page-hero h1 {
    font-family: var(--pv-serif);
    font-weight: 500;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -.03em;
    max-width: 18ch;
    margin-bottom: 16px;
    text-transform: none;
}
.page-hero .hero-lead {
    max-width: 46ch;
    margin-bottom: 24px;
}

/* Artículo */
.article {
    padding: 72px 0 40px;
    background: var(--pv-paper);
}
.prose {
    max-width: 760px;
}
.prose h2 {
    font-family: var(--pv-serif);
    font-weight: 500;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    letter-spacing: -.02em;
    line-height: 1.15;
    margin: 40px 0 14px;
}
.prose h3 {
    font-family: var(--pv-serif);
    font-weight: 500;
    font-size: 1.35rem;
    letter-spacing: -.02em;
    margin: 28px 0 10px;
}
.prose p {
    color: var(--pv-ink-soft);
    line-height: 1.75;
    margin: 0 0 16px;
}
.prose a {
    color: var(--pv-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.prose ul, .prose ol {
    margin: 0 0 18px 1.2em;
    color: var(--pv-ink-soft);
    line-height: 1.7;
}
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--pv-ink); font-weight: 700; }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0 28px;
    font-size: .92rem;
}
.prose th, .prose td {
    border-bottom: 1px solid var(--pv-line);
    padding: 10px 12px 10px 0;
    text-align: left;
    vertical-align: top;
}
.prose th { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--pv-ink-soft); }
.prose blockquote {
    border-left: 2px solid var(--pv-accent);
    padding: 4px 0 4px 18px;
    margin: 20px 0;
    color: var(--pv-ink-soft);
}

.related {
    padding: 24px 0 80px;
}
.related-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 760px;
}
.related h2 {
    font-family: var(--pv-serif);
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 14px;
}
.related a {
    display: block;
    padding: 8px 0;
    border-bottom: 1px solid var(--pv-line);
    font-size: .92rem;
}
.related a:hover { color: var(--pv-ink-soft); }

.cta-band {
    background: var(--pv-ink);
    color: #fff;
    padding: 72px 0;
}
.cta-band h2 {
    font-family: var(--pv-serif);
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    font-weight: 500;
    letter-spacing: -.03em;
    max-width: 16ch;
    margin-bottom: 12px;
}
.cta-band p {
    color: rgba(255,255,255,.62);
    max-width: 46ch;
    line-height: 1.7;
    margin-bottom: 24px;
}

.legal-note {
    font-size: .82rem;
    color: var(--pv-ink-soft);
    margin-top: 32px;
}

/* Cookie card sits at the bottom without covering HOME / interior CTAs */
body.ps-consent-open .hero .hero-copy { padding-bottom: 168px; }
body.ps-consent-open .page-hero .page-hero-copy { padding-bottom: 160px; }

@media (max-width: 980px) {
    .related-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav:not(.open) { display: none !important; }
    .ham {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0;
        width: 42px;
        height: 42px;
        min-width: 42px;
        margin-left: auto;
        z-index: 80;
        box-shadow: 0 1px 8px rgba(22, 21, 19, .28);
    }
}
@media (max-width: 640px) {
    body.ps-consent-open .hero .hero-copy { padding-bottom: 300px; }
    body.ps-consent-open .page-hero .page-hero-copy { padding-bottom: 240px; }
    .guides { padding: 0 0 64px; }
    .page-hero { min-height: 360px; }
    .page-hero-copy { padding: 40px 0 88px; }
    .article { padding: 48px 0 24px; }
    .related { padding: 8px 0 64px; }
    .cta-band { padding: 48px 0 88px; }
}

/* Banner Gestión Vacacional Sagunto (misma pieza que Multiservicios) */
#banner-viviaro {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #1C2B27;
    color: #FDFDFB;
    padding: 16px 20px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-family: Arial, sans-serif;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, .25);
    transform: translateY(100%);
    transition: transform .4s ease;
}
#banner-viviaro.mostrar {
    display: flex;
    transform: translateY(0);
}
#banner-viviaro p {
    margin: 0;
    font-size: 15px;
    line-height: 1.4;
    max-width: 52ch;
}
#banner-viviaro strong { color: #D9C9A3; }
#banner-viviaro a.btn-viviaro {
    background: #D9C9A3;
    color: #1C2B27;
    padding: 10px 20px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity .2s ease;
}
#banner-viviaro a.btn-viviaro:hover { opacity: .85; }
#banner-viviaro button.cerrar-viviaro {
    background: none;
    border: none;
    color: #FDFDFB;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    opacity: .7;
}
#banner-viviaro button.cerrar-viviaro:hover { opacity: 1; }
@media (max-width: 980px) {
    #banner-viviaro.mostrar { bottom: 52px; }
}
@media (max-width: 640px) {
    #banner-viviaro {
        flex-direction: column;
        text-align: center;
        gap: 12px;
        padding: 18px 16px;
    }
    #banner-viviaro button.cerrar-viviaro {
        position: absolute;
        top: 6px;
        right: 10px;
    }
}
