/* Cuevas de Sal Pinto - identidad y componentes */
:root {
    --csp-ink: #884529;
    --csp-terra: #CD7B5A;
    --csp-rose-sand: #E5A687;
    --csp-salt-beige: #EFCBB8;
    --csp-cream: #FAF3EE;
    --csp-white: #FFFFFF;
    --csp-text: #533C31;
    --csp-muted: #6F594E;
    --csp-line: rgba(136, 69, 41, .18);
    --csp-width: 1160px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--csp-text); background-color: var(--csp-white); background-image: radial-gradient(rgba(136,69,41,.025) .55px, transparent .55px); background-size: 9px 9px; font: 400 16px/1.7 Montserrat, Arial, sans-serif; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--csp-ink); font-weight: 650; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.35rem, 5vw, 4.4rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }
.csp-shell { width: min(var(--csp-width), calc(100% - 48px)); margin-inline: auto; }
.csp-header { position: sticky; top: 0; width: 100%; z-index: 100; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--csp-line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.csp-header__inner { width: min(100% - 48px, 1320px); min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; transition: min-height .24s ease; }
.csp-brand { display: flex; align-items: center; justify-content: center; width: 150px; height: 82px; overflow: hidden; flex: 0 0 150px; transition: width .24s ease, height .24s ease, flex-basis .24s ease; }
.csp-brand__image, .csp-brand .custom-logo { display: block; width: 150px !important; height: 82px !important; max-width: 150px !important; max-height: 82px !important; object-fit: cover; object-position: center; transform: scale(1.08) !important; background: var(--csp-cream); transition: width .24s ease, height .24s ease, transform .24s ease; }
.csp-brand .csp-brand__fallback { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; overflow: hidden; }
.csp-brand .custom-logo-link { display: flex; align-items: center; justify-content: center; width: 150px; height: 82px; overflow: hidden; transition: width .24s ease, height .24s ease; }
.csp-header.is-scrolled .csp-header__inner { min-height: 72px; }
.csp-header.is-scrolled .csp-brand { width: 132px; height: 64px; flex-basis: 132px; }
.csp-header.is-scrolled .csp-brand__image, .csp-header.is-scrolled .csp-brand .custom-logo { width: 132px !important; height: 64px !important; max-width: 132px !important; max-height: 64px !important; }
.csp-header.is-scrolled .csp-brand .custom-logo-link { width: 132px; height: 64px; }
.csp-navigation { display: flex; align-items: center; gap: 30px; }
.csp-menu, .csp-footer-menu { display: flex; align-items: center; gap: 28px; padding: 0; margin: 0; list-style: none; }
.csp-menu a, .csp-footer-menu a { text-decoration: none; font-size: 13px; font-weight: 600; }
.csp-menu a:hover, .csp-footer-menu a:hover { color: var(--csp-terra); }
.csp-menu .csp-menu-item-reservar > a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 1px solid var(--csp-ink); border-radius: 999px; background: var(--csp-ink); color: var(--csp-white); font-weight: 700; transition: background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.csp-menu .csp-menu-item-reservar > a:hover, .csp-menu .csp-menu-item-reservar.current-menu-item > a { color: var(--csp-white); background: #6F351F; border-color: #6F351F; transform: translateY(-1px); box-shadow: 0 7px 18px rgba(79,47,30,.18); }
.csp-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border: 1px solid var(--csp-ink); border-radius: 999px; background: var(--csp-ink); color: var(--csp-white); text-decoration: none; font-size: 13px; font-weight: 700; transition: background .2s ease, transform .2s ease, box-shadow .2s ease; }
.csp-button:hover { color: #fff; background: #6F351F; transform: translateY(-1px); }
.csp-menu-toggle { display: none; }
.csp-main { min-height: 55vh; padding-top: clamp(60px, 8vw, 112px); padding-bottom: clamp(70px, 9vw, 120px); }
.csp-main--full-width { width: 100%; max-width: none; min-height: 0; margin: 0; padding: 0; }
.csp-full-width-content { width: 100%; }
.csp-full-width-content > .elementor, .csp-full-width-content > .alignfull { width: 100%; max-width: none; }

.csp-page, .csp-article, .csp-treatment { max-width: 820px; margin-inline: auto; }
.csp-page__header, .csp-archive-header, .csp-article__header { margin: 0 auto 42px; max-width: 820px; }
.csp-page__header h1, .csp-archive-header h1, .csp-article__header h1 { margin: 0 0 18px; }
.csp-eyebrow { margin: 0 0 14px; color: var(--csp-ink); font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.csp-intro-text, .csp-archive-description { max-width: 680px; color: var(--csp-muted); font-size: 18px; }
.csp-entry-content { font-size: 17px; line-height: 1.85; }
.csp-entry-content > * { max-width: 100%; }
.csp-entry-content h2, .csp-entry-content h3 { margin-top: 1.7em; }
.csp-entry-content img { border-radius: 4px; }
.csp-treatment-intro { margin-bottom: 44px; }
.csp-treatment-grid, .csp-post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.csp-treatment-card, .csp-post-card { overflow: hidden; border: 1px solid var(--csp-line); border-radius: 5px; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.csp-treatment-card:hover, .csp-post-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(79, 47, 30, .12); }
.csp-treatment-card__link, .csp-post-card__link { display: flex; height: 100%; flex-direction: column; color: inherit; text-decoration: none; }
.csp-treatment-card__image, .csp-post-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--csp-cream); }
.csp-treatment-card__image img, .csp-post-card__image img { width: 100%; height: 100%; object-fit: cover; }
.csp-treatment-card__body, .csp-post-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 24px; }
.csp-treatment-card__body h2, .csp-post-card__body h2 { margin: 0 0 12px; font-size: 22px; }
.csp-treatment-card__body p, .csp-post-card__body p:not(.csp-eyebrow) { color: var(--csp-muted); font-size: 14px; line-height: 1.7; }
.csp-text-link { display: inline-flex; gap: 8px; margin-top: auto; padding-top: 12px; color: var(--csp-ink); font-size: 12px; font-weight: 700; }
.csp-treatment-cta { margin-top: 56px; padding: 36px; border-radius: 5px; background: var(--csp-cream); background-image: radial-gradient(rgba(136,69,41,.06) .7px, transparent .7px); background-size: 18px 18px; }
.csp-treatment-cta h2 { margin-top: 0; }
.csp-post-card__body .csp-eyebrow { margin-bottom: 10px; }
.csp-article__image { margin: 0 0 38px; }
.csp-article__image img { width: 100%; height: auto; border-radius: 4px; }
.csp-article__meta { color: var(--csp-muted); font-size: 13px; }
.csp-article__meta a { color: var(--csp-ink); }
.csp-post-navigation { display: flex; justify-content: space-between; gap: 20px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--csp-line); color: var(--csp-ink); font-weight: 600; }
.csp-pagination { margin-top: 42px; }
.csp-pagination .nav-links { display: flex; justify-content: center; gap: 9px; }
.csp-pagination a, .csp-pagination span { padding: 8px 12px; border: 1px solid var(--csp-line); text-decoration: none; }
.csp-comments { margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--csp-line); }
.csp-comments__list { padding-left: 22px; }
.csp-comments .comment { margin-bottom: 20px; }
.csp-comments textarea, .csp-comments input[type="text"], .csp-comments input[type="email"], .csp-comments input[type="url"] { width: 100%; max-width: 100%; padding: 12px; border: 1px solid var(--csp-line); border-radius: 3px; font: inherit; }
.csp-comments input[type="submit"] { min-height: 46px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--csp-ink); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.csp-empty-state { padding: 36px; background: var(--csp-cream); }
.csp-not-found { text-align: center; }
.csp-footer { padding: 58px 0 18px; background: #53301F; color: #fff; }
.csp-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 42px; }
.csp-footer__brand p { max-width: 300px; color: rgba(255,255,255,.78); font-size: 13px; }
.csp-footer__logo { display: block; width: 178px; height: 102px; overflow: hidden; background: var(--csp-cream); }
.csp-footer__logo img { display: block; width: 178px; height: 102px; max-width: none; object-fit: cover; transform: scale(1.22); }
.csp-footer__column h2 { margin: 0 0 16px; color: var(--csp-salt-beige); font-size: 16px; }
.csp-footer__column > a, .csp-footer-menu a { display: block; margin: 0 0 10px; color: rgba(255,255,255,.88); font-size: 13px; text-decoration: none; }
.csp-footer-menu { display: block; }
.csp-footer-menu li { margin-bottom: 9px; }
.csp-footer__bottom { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.72); font-size: 11px; }
.csp-footer__bottom a { color: inherit; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.screen-reader-text:focus { z-index: 1000; top: 8px; left: 8px; width: auto; height: auto; padding: 12px 16px; clip: auto; background: #fff; color: var(--csp-ink); }
@media (max-width: 1000px) { .csp-navigation { gap: 16px; } .csp-menu { gap: 16px; } .csp-treatment-grid, .csp-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) {
    .csp-header__inner { width: min(100% - 40px, 1320px); min-height: 84px; }
    .csp-brand { width: 138px; height: 74px; flex-basis: 138px; }
    .csp-brand__image, .csp-brand .custom-logo { width: 138px !important; height: 74px !important; max-width: 138px !important; max-height: 74px !important; }
    .csp-brand .custom-logo-link { width: 138px; height: 74px; }
    .csp-header.is-scrolled .csp-header__inner { min-height: 68px; }
    .csp-header.is-scrolled .csp-brand { width: 120px; height: 60px; flex-basis: 120px; }
    .csp-header.is-scrolled .csp-brand__image, .csp-header.is-scrolled .csp-brand .custom-logo { width: 120px !important; height: 60px !important; max-width: 120px !important; max-height: 60px !important; }
    .csp-header.is-scrolled .csp-brand .custom-logo-link { width: 120px; height: 60px; }
    .csp-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 44px; border: 1px solid var(--csp-line); border-radius: 3px; background: #fff; color: var(--csp-ink); }
    .csp-menu-toggle__bars, .csp-menu-toggle__bars::before, .csp-menu-toggle__bars::after { display: block; width: 19px; height: 2px; background: currentColor; }
    .csp-menu-toggle__bars { position: relative; }
    .csp-menu-toggle__bars::before, .csp-menu-toggle__bars::after { position: absolute; left: 0; content: ''; }
    .csp-menu-toggle__bars::before { top: -6px; }
    .csp-menu-toggle__bars::after { top: 6px; }
    .csp-navigation { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 18px 24px 24px; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--csp-line); box-shadow: 0 16px 24px rgba(65,42,26,.08); }
    .csp-navigation.is-open { display: flex; }
    .csp-menu { flex-direction: column; align-items: stretch; gap: 0; }
    .csp-menu li { border-bottom: 1px solid var(--csp-line); }
    .csp-menu a { display: block; padding: 12px 0; }
    .csp-menu .csp-menu-item-reservar > a { display: inline-flex; min-height: 46px; margin: 12px 0 0; padding: 0 24px; }
    .csp-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 580px) {
    .csp-header__inner { width: calc(100% - 32px); min-height: 74px; }
    .csp-brand { width: 120px; height: 64px; flex-basis: 120px; }
    .csp-brand__image, .csp-brand .custom-logo { width: 120px !important; height: 64px !important; max-width: 120px !important; max-height: 64px !important; }
    .csp-brand .custom-logo-link { width: 120px; height: 64px; }
    .csp-header.is-scrolled .csp-header__inner { min-height: 62px; }
    .csp-header.is-scrolled .csp-brand { width: 108px; height: 54px; flex-basis: 108px; }
    .csp-header.is-scrolled .csp-brand__image, .csp-header.is-scrolled .csp-brand .custom-logo { width: 108px !important; height: 54px !important; max-width: 108px !important; max-height: 54px !important; }
    .csp-header.is-scrolled .csp-brand .custom-logo-link { width: 108px; height: 54px; }
    .csp-shell { width: min(var(--csp-width), calc(100% - 36px)); }
    .csp-main { padding-top: 58px; padding-bottom: 68px; }
    .csp-treatment-grid, .csp-post-grid { grid-template-columns: 1fr; }
    .csp-treatment-card__body, .csp-post-card__body { padding: 21px; }
    .csp-footer__grid { grid-template-columns: 1fr; gap: 25px; }
    .csp-footer__bottom { flex-direction: column; gap: 7px; }
    .csp-treatment-cta { padding: 26px 22px; }
}
body.admin-bar .csp-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .csp-header { top: 46px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }


/* Footer final */
.csp-footer{padding:62px 0 20px;background:#53301f;color:#fff}
.csp-footer__grid{grid-template-columns:1.25fr .85fr 1fr;gap:clamp(34px,5vw,72px);padding-bottom:48px}
.csp-footer__logo{width:178px;height:86px;margin-bottom:20px;overflow:visible;background:transparent}
.csp-footer__logo .custom-logo-link,.csp-footer__logo-fallback{display:block;width:100%;height:100%}
.csp-footer__logo img,.csp-footer__logo .custom-logo{width:100%;height:100%;max-width:100%;object-fit:contain;object-position:left center;transform:none;background:transparent}
.csp-footer__brand p{max-width:355px;margin:0;color:rgba(255,255,255,.78);font-size:13px;line-height:1.8}
.csp-footer__column{min-width:0}
.csp-footer__column h2{margin:6px 0 18px;color:#f4dbc7;font-size:11px;font-weight:700;letter-spacing:.13em;text-transform:uppercase}
.csp-footer__column>a,.csp-footer-menu a{margin:0 0 12px;color:rgba(255,255,255,.86);font-size:13px;font-weight:500;line-height:1.55}
.csp-footer__column>a:hover,.csp-footer-menu a:hover,.csp-footer__legal a:hover,.csp-footer__credit:hover{color:#f4c3a6}
.csp-footer-menu{display:grid;gap:2px}.csp-footer-menu li{margin:0}.csp-footer__contact{font-style:normal}.csp-footer__address{max-width:245px}
.csp-footer__bottom{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:18px;padding-top:21px;border-top-color:rgba(255,255,255,.18);font-size:11px;line-height:1.55}
.csp-footer__legal{display:flex;justify-content:center;gap:15px;flex-wrap:wrap}.csp-footer__legal a,.csp-footer__credit{color:rgba(255,255,255,.72);text-decoration:none}.csp-footer__credit{justify-self:end;white-space:nowrap}.csp-footer__credit strong{letter-spacing:.05em}
@media(max-width:760px){.csp-footer{padding-top:48px}.csp-footer__grid{grid-template-columns:1fr 1fr;gap:38px 26px;padding-bottom:38px}.csp-footer__brand{grid-column:1/-1}.csp-footer__logo{width:160px;height:78px;margin-bottom:15px}.csp-footer__bottom{grid-template-columns:1fr;text-align:center;gap:13px}.csp-footer__legal{gap:8px 14px}.csp-footer__credit{justify-self:center}}
@media(max-width:460px){.csp-footer__grid{grid-template-columns:1fr;gap:28px}.csp-footer__brand{grid-column:auto}.csp-footer__column h2{margin-top:0}.csp-footer__legal{display:grid;gap:8px}.csp-footer__credit{white-space:normal}}


/* Mantener el crédito visible junto al botón flotante de reserva */
@media(min-width:761px){.csp-footer__bottom{grid-template-columns:1fr auto}.csp-footer__credit{grid-column:1/-1;grid-row:2;justify-self:center;margin-top:2px}}


/* La franja legal queda centrada y libre del botón flotante */
@media(min-width:761px){.csp-footer__bottom{grid-template-columns:1fr;text-align:center;gap:10px}.csp-footer__legal{justify-content:center}.csp-footer__credit{grid-column:auto;grid-row:auto;justify-self:center;margin-top:0}}
