/* ============================================
   SPA BUSINESS — Header con mega menús + portada tipo portal (2026-11-27)
   Adaptado del portal de dayspavallarta.com (misma estructura, paleta verde/oro)
   Header de 3 capas + mega menús + drawer, home y fichas del portal.
   Se carga DESPUÉS de style.css y sólo sobrescribe lo necesario.
   ============================================ */
:root {
    --pb:      #0f5151;   /* verde Spa Business: header */
    --pb-dk:   #0a3b3b;
    --pb-soft: #e8f2f1;
    --po:      #94730F;   /* oro oscuro: texto/botones (contraste AA con blanco) */
    --po-dk:   #7A5F0C;
    --oro:     #c9a227;   /* oro de marca: barras y acentos sobre verde */
    --pink-s:  #FBF5E2;
    --ink:     #1c2426;
    --text:    #3d4a4c;
    --muted:   #5d6b6d;
    --border:  #dde5e5;
    --ph-h:    0px;
}

/* ---------- Ajustes globales ---------- */
body.ph-lock { overflow: hidden; }
.ph-skip {
    position: absolute; left: -9999px; top: 0; z-index: 300;
    background: #fff; color: var(--pb); padding: .6rem 1rem; font-weight: 700;
}
.ph-skip:focus { left: 1rem; top: 1rem; }

/* ================= HEADER ================= */
.ph {
    position: sticky; top: 0; z-index: 120;
    background: var(--pb);
    color: #fff;
    box-shadow: 0 2px 18px rgba(10, 30, 45, .18);
}
.ph a { color: inherit; }

/* Capa 1 — barra promo */
.ph-promo {
    display: flex; align-items: center; justify-content: center; gap: .6rem;
    background: var(--po);
    color: #fff;
    font-size: .8rem; font-weight: 600; letter-spacing: .01em;
    padding: .45rem 1rem; text-align: center; line-height: 1.35;
    transition: background .2s;
}
.ph-promo:hover { background: var(--po-dk); }
.ph-promo i { font-size: .72rem; transition: transform .2s; }
.ph-promo:hover i { transform: translateX(3px); }

/* Capa 2 — barra de 3 columnas */
.ph-top {
    display: grid;
    grid-template-columns: 1fr auto auto auto 1fr;
    grid-template-areas: "left lang logo . right";
    align-items: center;
    gap: 1.25rem;
    max-width: 1440px; margin: 0 auto;
    padding: .7rem 1.5rem .5rem;
    transition: padding .25s;
}
.ph-left  { grid-area: left; display: flex; align-items: center; gap: 1rem; }
.ph-lang  { grid-area: lang; display: flex; align-items: center; gap: .9rem; }
.ph-logo  { grid-area: logo; display: flex; flex-direction: column; align-items: center; }
.ph-right { grid-area: right; display: flex; align-items: center; justify-content: flex-end; gap: 1.1rem; }

.ph-social { display: flex; gap: .55rem; }
.ph-social a {
    width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center;
    font-size: .82rem; border: 1px solid rgba(255,255,255,.35);
}
.ph-social a:hover { background: #fff; color: var(--pb); }
.ph-loc {
    font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
    line-height: 1.5; opacity: .88; font-weight: 600;
}
.ph-langlink { font-style: italic; font-size: .78rem; font-weight: 600; letter-spacing: .08em; opacity: .9; }
.ph-langlink:hover { opacity: 1; text-decoration: underline; }

/* Toggle tipo switch: MÉDICO / SPA */
.ph-switch {
    position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
    background: #fff; border-radius: 999px; padding: 3px;
    font-size: .64rem; font-weight: 800; letter-spacing: .1em;
    min-width: 132px;
}
.ph-switch-opt { position: relative; z-index: 2; text-align: center; padding: .32rem .7rem; color: var(--pb); transition: color .25s; }
.ph-switch-knob {
    position: absolute; z-index: 1; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
    border-radius: 999px; background: var(--po); transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.ph-switch .ph-switch-opt:first-child { color: #fff; }
.ph-switch.is-spa .ph-switch-knob { transform: translateX(100%); }
.ph-switch.is-spa .ph-switch-opt:first-child { color: var(--pb); }
.ph-switch.is-spa .ph-switch-opt:nth-child(2) { color: #fff; }
.ph-switch:hover .ph-switch-knob { filter: brightness(1.06); }

.ph-logo img { height: 58px; width: auto; transition: height .25s; }
.ph-logo-tag {
    font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; font-weight: 700;
    color: #E9D38A; margin-top: -.15rem;
}

.ph-burger {
    display: inline-flex; align-items: center; gap: .55rem;
    background: none; border: 0; color: #fff; cursor: pointer;
    font: 700 .74rem/1 var(--tipo); letter-spacing: .16em; padding: .4rem 0;
}
.ph-burger-icon { position: relative; width: 22px; height: 14px; display: inline-block; }
.ph-burger-icon i {
    position: absolute; left: 0; right: 0; height: 2px; background: #fff; border-radius: 2px;
    transition: transform .25s, opacity .2s, top .25s;
}
.ph-burger-icon i:nth-child(1) { top: 0; }
.ph-burger-icon i:nth-child(2) { top: 6px; }
.ph-burger-icon i:nth-child(3) { top: 12px; }
.ph-burger.is-open .ph-burger-icon i:nth-child(1) { top: 6px; transform: rotate(45deg); }
.ph-burger.is-open .ph-burger-icon i:nth-child(2) { opacity: 0; }
.ph-burger.is-open .ph-burger-icon i:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.ph-cta {
    font-size: .72rem; font-weight: 800; letter-spacing: .12em;
    padding: .62rem 1.05rem; border: 1.5px solid #fff; border-radius: 4px;
    white-space: nowrap; transition: background .2s, color .2s;
}
.ph-cta:hover { background: #fff; color: var(--pb) !important; }
.ph-tel { font-size: .82rem; font-weight: 700; white-space: nowrap; }
.ph-tel i { font-size: .72rem; margin-right: .2rem; color: #E9D38A; }

/* Capa 3 — menú horizontal */
.ph-nav { border-top: 1px solid rgba(255,255,255,.14); }
.ph-nav-list {
    display: flex; justify-content: space-between; align-items: stretch;
    max-width: 1240px; margin: 0 auto; padding: 0 1.25rem;
}
.ph-nav-list > li { flex: 1 1 0; display: flex; }
.ph-nav-item {
    position: relative; flex: 1;
    display: flex; align-items: center; justify-content: center; gap: .35rem;
    padding: .78rem .4rem .82rem;
    font-size: .86rem; font-weight: 600; letter-spacing: .02em; text-align: center;
    color: #fff; transition: background .18s, color .18s;
}
.ph-nav-item:hover { background: rgba(255,255,255,.1); }
.ph-nav-item.is-current { box-shadow: inset 0 -3px 0 var(--po); }
.ph-nav-item.is-open {
    background: #fff; color: var(--po) !important; box-shadow: none;
}
.ph-nav-item.is-open::after {
    content: '\f063'; font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 50%; bottom: -.55rem; transform: translateX(-50%);
    font-size: .7rem; color: var(--po); z-index: 3;
}
.ph-ext { font-size: .6rem; opacity: .75; }

/* Mega menú */
.ph-mega {
    position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; color: var(--ink);
    box-shadow: 0 30px 60px rgba(8,40,40,.22);
    border-top: 3px solid var(--po);
    max-height: calc(100vh - 170px); overflow-y: auto;
    animation: phDrop .22s cubic-bezier(.2,.7,.2,1);
}
@keyframes phDrop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.ph-mega-grid {
    display: grid; grid-template-columns: repeat(var(--cols, 6), minmax(0, 1fr));
    gap: 1.6rem; max-width: 1340px; margin: 0 auto; padding: 1.9rem 1.75rem 2.2rem;
}
.ph-mega-img {
    display: block; aspect-ratio: 3 / 4; overflow: hidden;
    box-shadow: 0 10px 24px rgba(8,40,40,.14); background: var(--pb-soft);
}
.ph-mega-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ph-mega-col:hover .ph-mega-img img, .ph-mega-card:hover .ph-mega-img img { transform: scale(1.04); }
.ph-mega-title {
    font-family: var(--tipo); font-weight: 700;
    color: var(--po); font-size: 1.12rem; line-height: 1.2; margin: .9rem 0 .5rem;
}
.ph-mega-title a:hover { color: var(--po-dk); }
.ph-mega-col ul li a {
    display: block; padding: .18rem 0;
    font-size: .84rem; color: #3D4A55; line-height: 1.35;
}
.ph-mega-col ul li a:hover { color: var(--po); padding-left: .2rem; }
.ph-mega-cards { max-width: 1100px; }
.ph-mega-card { display: block; color: var(--ink); }
.ph-mega-card .ph-mega-title { display: block; text-align: center; }

/* Drawer (MENÚ) */
.ph-drawer {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    width: min(420px, 92vw);
    background: #fff; color: var(--ink);
    display: flex; flex-direction: column;
    transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.7,.2,1);
    box-shadow: -20px 0 50px rgba(8,40,40,.25);
}
.ph-drawer.is-open { transform: none; }
.ph-scrim {
    position: fixed; inset: 0; z-index: 190; background: rgba(8,40,40,.45);
    opacity: 0; transition: opacity .28s;
}
.ph-scrim.is-open { opacity: 1; }
.ph-drawer-head {
    background: var(--pb); color: #fff; padding: 1.1rem 1.25rem;
    display: flex; flex-direction: column; gap: .7rem;
    padding-top: 4.2rem;
}
.ph-drawer-head .ph-cta { text-align: center; color: #fff; }
.ph-drawer-switch { font-size: .82rem; font-weight: 600; color: #E9D38A; text-align: center; }
.ph-panels { position: relative; flex: 1; overflow: hidden; }
.ph-panel {
    position: absolute; inset: 0; overflow-y: auto; padding: .5rem 0 2rem;
    transform: translateX(100%); visibility: hidden;
    transition: transform .28s cubic-bezier(.2,.7,.2,1), visibility .28s;
}
.ph-panel.is-active { transform: none; visibility: visible; }
.ph-panel.is-left { transform: translateX(-30%); }
.ph-drawer-list li a, .ph-drawer-list li button {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .95rem 1.35rem; border: 0; background: none; cursor: pointer; text-align: left;
    font: 600 1rem var(--tipo); color: var(--ink);
    border-bottom: 1px solid var(--border);
}
.ph-drawer-list li a:hover, .ph-drawer-list li button:hover { background: var(--pb-soft); color: var(--pb); }
.ph-drawer-list i { color: var(--po); font-size: .8rem; }
.ph-back {
    display: flex; align-items: center; gap: .5rem; width: 100%;
    padding: .9rem 1.35rem; border: 0; background: var(--pb-soft); cursor: pointer;
    font: 700 .82rem var(--tipo); letter-spacing: .1em; text-transform: uppercase; color: var(--pb);
}
.ph-panel-title {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 1.1rem 1.35rem .4rem; font: 800 1.25rem var(--tipo); color: var(--pb);
}
.ph-panel-title small { font-size: .78rem; color: var(--po); font-weight: 700; }
.ph-panel-group {
    padding: 1rem 1.35rem .3rem; font-size: .72rem; letter-spacing: .16em;
    text-transform: uppercase; color: var(--po); font-weight: 800;
}
.ph-drawer-sub li a { font-weight: 500; font-size: .95rem; padding: .7rem 1.35rem; }

/* Header compacto al bajar */
.ph.is-compact .ph-top { padding-top: .35rem; padding-bottom: .3rem; }
.ph.is-compact .ph-logo img { height: 44px; }
.ph.is-compact .ph-logo-tag { display: none; }

/* Responsive del header */
@media (max-width: 1280px) {
    .ph-loc { display: none; }
    .ph-tel { display: none; }
}
@media (max-width: 1099px) {
    .ph-nav { display: none; }
    .ph-top { grid-template-columns: auto 1fr auto; grid-template-areas: "logo . right"; padding: .55rem 1rem; }
    .ph-left, .ph-lang { display: none; }
    .ph-logo { align-items: flex-start; }
    .ph-logo img { height: 46px; }
    .ph-mega { display: none !important; }
}
@media (max-width: 560px) {
    .ph-top > .ph-right .ph-cta { display: none; }
    .ph-promo { font-size: .72rem; }
    .ph-promo span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
.ph-burger { z-index: 210; }
body.ph-lock .ph-burger { position: fixed; top: 1.1rem; right: 1.25rem; }

/* ================= FLOTANTES ================= */
.pa11y { position: fixed; left: 1rem; bottom: 1rem; z-index: 150; }
.pa11y-btn {
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: #1B2430; color: #fff; font-size: 1.35rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.pa11y-btn:hover { background: #000; }
.pa11y-panel {
    position: absolute; left: 0; bottom: 58px; width: 230px;
    background: #fff; border-radius: 12px; padding: .8rem; box-shadow: 0 16px 40px rgba(0,0,0,.2);
}
.pa11y-panel p { font-weight: 800; color: var(--ink); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .4rem; }
.pa11y-panel button {
    display: flex; align-items: center; gap: .6rem; width: 100%;
    padding: .55rem .6rem; border: 0; border-radius: 8px; background: none; cursor: pointer;
    font: 500 .9rem var(--tipo); color: var(--ink); text-align: left;
}
.pa11y-panel button:hover { background: var(--pb-soft); }
.pa11y-panel button[aria-pressed="true"] { background: var(--pb); color: #fff; }
html.a11y-big { font-size: 112.5%; }
html.a11y-contrast body { filter: contrast(1.25); }
html.a11y-contrast .article-body p, html.a11y-contrast .pm-body p { color: #111; }
html.a11y-links a { text-decoration: underline !important; }
html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after { animation: none !important; transition: none !important; }

.pchat { position: fixed; right: 1rem; bottom: 1rem; z-index: 150; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.pchat-btn {
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--po); color: #fff !important; font-size: 1.9rem;
    display: grid; place-items: center; box-shadow: 0 10px 26px rgba(15,81,81,.4);
}
.pchat-btn:hover { background: var(--po-dk); transform: translateY(-2px); }
.pchat-bubble {
    position: relative; max-width: 260px; background: #fff; color: var(--ink);
    border-radius: 14px 14px 4px 14px; padding: .9rem 2rem .9rem 1rem;
    box-shadow: 0 14px 36px rgba(0,0,0,.18); font-size: .88rem; line-height: 1.45;
    animation: phDrop .3s ease;
}
.pchat-close { position: absolute; top: .3rem; right: .45rem; border: 0; background: none; font-size: 1.2rem; cursor: pointer; color: var(--muted); }

/* ================= TIPOGRAFÍA DEL PORTAL ================= */
.p-kicker {
    display: inline-block; font: 800 .74rem var(--tipo); letter-spacing: .22em;
    text-transform: uppercase; color: var(--pb); margin-bottom: .8rem;
}
.p-kicker b { color: var(--po); font-weight: 800; }
.p-h2 {
    font-family: var(--tipo); font-weight: 800; text-transform: uppercase;
    letter-spacing: .01em; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.08;
    color: var(--pb);
}
.p-h2 em { font-style: normal; color: var(--po); font-weight: 800; }
.p-h2 span { display: block; font-weight: 300; color: var(--ink); }
.p-lead { font-size: 1.08rem; color: var(--text); max-width: 680px; }
.p-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .9rem 1.6rem; border-radius: 4px;
    font: 800 .78rem var(--tipo); letter-spacing: .14em; text-transform: uppercase;
    background: var(--po); color: #fff; transition: background .2s, transform .2s;
}
.p-btn:hover { background: var(--po-dk); transform: translateY(-2px); }
.p-btn-line { background: transparent; color: var(--pb); border: 1.5px solid var(--pb); }
.p-btn-line:hover { background: var(--pb); color: #fff; }
.p-btn-white { background: #fff; color: var(--pb); }
.p-btn-white:hover { background: var(--pb-soft); }
.p-sec { padding: 5.5rem 0; }
.p-center { text-align: center; }
.p-center .p-lead { margin-left: auto; margin-right: auto; }

/* ================= HOME ================= */
.ph-hero { position: relative; background: #F6F1EC; overflow: hidden; }
.ph-hero-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; height: min(78vh, 720px); min-height: 460px;
}
.ph-hero-grid figure { position: relative; overflow: hidden; margin: 0; }
.ph-hero-grid img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; animation: phZoom 18s ease-in-out infinite alternate; }
.ph-hero-grid figure:nth-child(2) img { animation-delay: -4s; }
.ph-hero-grid figure:nth-child(3) img { animation-delay: -8s; }
.ph-hero-grid figure:nth-child(4) img { animation-delay: -12s; }
@keyframes phZoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.ph-hero-copy {
    position: absolute; left: 50%; bottom: 3.2rem; transform: translateX(-50%);
    width: min(940px, 92%); text-align: center;
    background: rgba(255,255,255,.94); backdrop-filter: blur(6px);
    padding: 2rem 2.2rem 2.1rem; box-shadow: 0 24px 60px rgba(8,40,40,.22);
}
.ph-hero-copy .p-h2 { font-size: clamp(1.9rem, 4.4vw, 3.4rem); }
.ph-hero-h1 {
    font: 700 .8rem var(--tipo); letter-spacing: .24em; text-transform: uppercase;
    color: var(--po); margin-top: .9rem;
}
.ph-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.3rem; }

/* Barra de especialidades (en lugar de "As seen in") */
.p-marquee { background: var(--pb); color: #fff; overflow: hidden; padding: 1rem 0; }
.p-marquee-track { display: flex; gap: 3rem; width: max-content; animation: phMarq 40s linear infinite; }
.p-marquee:hover .p-marquee-track { animation-play-state: paused; }
.p-marquee a { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font: 700 .8rem var(--tipo); letter-spacing: .18em; text-transform: uppercase; opacity: .92; }
.p-marquee a:hover { opacity: 1; color: #E9D38A; }
.p-marquee i { color: var(--po); font-size: 1rem; }
@keyframes phMarq { to { transform: translateX(-50%); } }

/* Intro */
.p-intro { display: grid; grid-template-columns: 1.05fr .95fr; gap: 4rem; align-items: center; }
.p-intro-name { font: 800 clamp(2.4rem, 5.5vw, 4.2rem) var(--tipo); color: var(--pb); line-height: .95; letter-spacing: -.02em; }
.p-intro-name em { font-style: normal; color: var(--po); }
.p-intro-sub { font: 600 .82rem var(--tipo); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin: 1rem 0 1.4rem; }
.p-intro-photo { position: relative; }
.p-intro-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; position: relative; z-index: 1; }
.p-intro-photo::before {
    content: ''; position: absolute; z-index: 0; right: -1.4rem; top: -1.4rem; width: 62%; height: 62%;
    background: repeating-linear-gradient(135deg, var(--po) 0 2px, transparent 2px 12px); opacity: .55;
}
.p-intro-photo a.p-btn { position: absolute; z-index: 2; left: -1.2rem; bottom: 2rem; }

/* Números (datos verificables, sin cifras inventadas) */
.p-stats { background: var(--pb-soft); }
.p-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.p-stat { text-align: center; padding: 0 .5rem; }
.p-stat strong { display: block; font: 800 clamp(2.2rem, 4vw, 3.2rem) var(--tipo); color: var(--pb); line-height: 1; }
.p-stat strong em { font-style: normal; color: var(--po); }
.p-stat span { display: block; margin-top: .6rem; font-size: .92rem; color: var(--text); }

/* Sellos de confianza (lo que hay que verificar) */
.p-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.p-badge {
    display: flex; align-items: center; gap: .8rem; padding: .9rem 1.3rem;
    border: 1.5px solid var(--border); border-radius: 999px; background: #fff;
    font-weight: 600; color: var(--ink); font-size: .9rem;
}
.p-badge i { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--pb); color: #fff; font-size: .95rem; }

.p-bridge { padding: 4.5rem 0 2rem; }
.p-bridge p { font: 300 clamp(1.5rem, 3.2vw, 2.4rem) var(--tipo); color: var(--pb); max-width: 900px; margin: 0 auto; line-height: 1.25; text-align: center; }
.p-bridge p strong { font-weight: 800; color: var(--po); }

/* Servicios — fondo ondulado */
.p-services {
    background-color: #F7F9FB;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='40' viewBox='0 0 160 40'%3E%3Cpath d='M0 20 Q40 0 80 20 T160 20' fill='none' stroke='%23ffffff' stroke-width='5'/%3E%3C/svg%3E");
}
.p-services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: 3rem; }
.p-svc { display: grid; grid-template-columns: 340px 1fr; gap: 3rem; align-items: center; margin-bottom: 4.5rem; position: relative; }
.p-svc:nth-child(even) { grid-template-columns: 1fr 340px; }
.p-svc:nth-child(even) .p-svc-img { order: 2; }
.p-svc-img img { width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: 0 20px 44px rgba(8,40,40,.16); }
.p-svc-deco {
    position: absolute; right: 0; top: -1.2rem; font: italic 400 clamp(2.4rem, 6vw, 4.6rem) var(--tipo);
    color: rgba(15,81,81,.08); pointer-events: none; white-space: nowrap;
}
.p-svc:nth-child(even) .p-svc-deco { right: auto; left: 0; }
.p-svc h3 { font: 800 1.9rem var(--tipo); color: var(--po); text-transform: uppercase; margin-bottom: .6rem; }
.p-svc p { max-width: 560px; margin-bottom: 1rem; }
.p-svc ul { columns: 2; column-gap: 2rem; margin-bottom: 1.4rem; max-width: 560px; }
.p-svc ul li { break-inside: avoid; }
.p-svc ul li a { display: block; padding: .32rem 0; font-weight: 600; color: var(--pb); border-bottom: 1px solid var(--border); }
.p-svc ul li a:hover { color: var(--po); padding-left: .25rem; }
.p-seeall { font: 800 .76rem var(--tipo); letter-spacing: .16em; text-transform: uppercase; color: var(--po); }
.p-seeall:hover { color: var(--po-dk); }

/* Slider (cómo funciona) */
.p-steps-head { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 2.5rem; }
.ps { position: relative; overflow: hidden; }
.ps-track { display: flex; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.ps-slide { flex: 0 0 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.ps-slide img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.ps-slide .ps-n { font: 800 4rem var(--tipo); color: var(--pb-soft); -webkit-text-stroke: 1.5px var(--pb); line-height: 1; }
.ps-slide h3 { font: 800 1.6rem var(--tipo); color: var(--pb); margin: .6rem 0 .2rem; }
.ps-slide .ps-role { font: 700 .76rem var(--tipo); letter-spacing: .18em; text-transform: uppercase; color: var(--po); margin-bottom: .9rem; display: block; }
.ps-ctrl { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.ps-ctrl button {
    width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--pb); background: #fff; color: var(--pb); cursor: pointer;
}
.ps-ctrl button:hover { background: var(--pb); color: #fff; }
.ps-count { font: 700 .9rem var(--tipo); color: var(--pb); min-width: 3.5rem; text-align: center; }

/* Liderazgo / estándar médico */
.p-lead-block { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.p-lead-photo { position: relative; }
.p-lead-photo img { width: 100%; aspect-ratio: 4/3; object-fit: cover; position: relative; z-index: 1; }
.p-lead-photo::after { content: ''; position: absolute; left: -1.4rem; bottom: -1.4rem; width: 55%; height: 55%; background: var(--po); opacity: .9; z-index: 0; }

/* Diferenciadores */
.p-difs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.p-dif { background: #fff; box-shadow: 0 10px 30px rgba(8,40,40,.08); display: flex; flex-direction: column; }
.p-dif img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.p-dif-body { padding: 1.3rem 1.3rem 1.6rem; }
.p-dif h3 { font: 800 1.05rem var(--tipo); text-transform: uppercase; letter-spacing: .04em; color: var(--pb); margin-bottom: .5rem; }
.p-dif p { font-size: .92rem; }

/* Tabs */
.pt-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; margin: 2rem 0 2.5rem; }
.pt-tabs [role="tab"] {
    padding: .65rem 1.1rem; border: 1.5px solid var(--border); background: #fff; cursor: pointer;
    font: 700 .8rem var(--tipo); letter-spacing: .06em; color: var(--pb); border-radius: 999px;
}
.pt-tabs [role="tab"]:hover { border-color: var(--pb); }
.pt-tabs [role="tab"][aria-selected="true"] { background: var(--pb); color: #fff; border-color: var(--pb); }
.pt-panel { display: grid; grid-template-columns: 380px 1fr; gap: 3.5rem; align-items: center; }
.pt-panel[hidden] { display: none; }
.pt-panel img { width: 100%; aspect-ratio: 3/4; object-fit: cover; }
.pt-panel h3 { font: 800 clamp(1.5rem, 3vw, 2.2rem) var(--tipo); color: var(--pb); margin: .3rem 0 1rem; line-height: 1.1; }

/* Banda Vallarta */
.p-bay { position: relative; color: #fff; background: var(--pb-dk) center/cover no-repeat; }
.p-bay::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,59,59,.92), rgba(10,59,59,.55)); }
.p-bay .container { position: relative; }
.p-bay .p-h2, .p-bay .p-h2 span { color: #fff; }
.p-bay p { color: rgba(255,255,255,.9); max-width: 620px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 1100px) {
    .p-difs { grid-template-columns: repeat(2, 1fr); }
    .pm-facts { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
    .p-intro, .p-lead-block, .p-steps-head, .pc-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .p-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .p-svc, .p-svc:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; }
    .p-svc:nth-child(even) .p-svc-img { order: 0; }
    .p-svc-img img { aspect-ratio: 16/10; object-position: center 25%; }
    .ps-slide { grid-template-columns: 1fr; gap: 1.5rem; }
    .pt-panel { grid-template-columns: 1fr; gap: 1.5rem; }
    .pt-panel img { aspect-ratio: 16/10; object-position: center 25%; }
    .pm-hero-grid { grid-template-columns: 1fr; padding: 2.4rem 0 3.5rem; }
    .pm-hero-img { display: none; }
    .pm-side { position: static; }
    .pm-fam-head { grid-template-columns: 120px 1fr; }
    .ph-hero-grid { grid-template-columns: repeat(2, 1fr); height: 70vh; }
    .ph-hero-grid figure:nth-child(n+3) { display: none; }
}
@media (max-width: 640px) {
    .p-sec { padding: 3.8rem 0; }
    .p-difs { grid-template-columns: 1fr; }
    .pm-facts { grid-template-columns: 1fr 1fr; }
    .p-svc ul { columns: 1; }
    .ph-hero-grid { grid-template-columns: 1fr; height: 62vh; }
    .ph-hero-grid figure:nth-child(n+2) { display: none; }
    .ph-hero-copy { bottom: 1.2rem; padding: 1.4rem 1.2rem 1.5rem; }
    .p-intro-photo a.p-btn { left: .8rem; }
    .pchat-bubble { max-width: 220px; }
}
@media (prefers-reduced-motion: reduce) {
    .ph-hero-grid img, .p-marquee-track { animation: none; }
}

/* Los atributos width/height del <img> fijan un alto de presentación (p. ej. 1200px)
   que anula aspect-ratio: forzar height:auto donde manda la proporción. */
.p-svc-img img, .p-intro-photo img, .p-lead-photo img, .ps-slide img, .p-dif img,
.pm-hero-img img, .pm-fam-head img, .pt-panel img, .pm-cardlink img, .pf .footer-logo { height: auto; }
.pf .footer-logo { height: 62px; width: auto; }
.p-svc-img { display: block; }
.ph-nav-item.is-open::after { bottom: -.75rem; font-size: .8rem; }
.pf .footer-logo { background: none; padding: 0; border-radius: 0; }
.p-services { overflow: hidden; }
html { overflow-x: clip; }
@media (max-width: 640px) { .p-svc-deco { font-size: 2rem; } }
.ph-drawer-close {
    position: absolute; top: .9rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.5); background: none; color: #fff; font-size: 1.1rem; cursor: pointer;
}
.ph-drawer-close:hover { background: #fff; color: var(--pb); }
.ph-drawer-head { position: relative; }
body.ph-lock .ph-burger { position: static; }

/* ===== Ajustes propios de Spa Business ===== */
.ph-promo { background: var(--oro); color: #1c2426; }
.ph-promo:hover { background: #b8931f; }
.ph-nav-item.is-current { box-shadow: inset 0 -3px 0 var(--oro); }
.ph-switch-knob { background: var(--pb); }
.ph-switch-opt { color: var(--pb); }
.ph-logo-txt { display: flex; flex-direction: column; align-items: center; line-height: 1; color: #fff; }
.ph-logo-txt b { font-weight: 800; font-size: 1.5rem; letter-spacing: .12em; }
.ph-logo-txt i { font-style: normal; font-size: .62rem; letter-spacing: .34em; text-transform: uppercase; color: var(--oro); margin-top: .35rem; font-weight: 600; }
.ph.is-compact .ph-logo-txt b { font-size: 1.25rem; }
.ph-ciudades { display: flex; gap: .55rem; align-items: center; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; }
.ph-ciudades a { opacity: .75; font-style: italic; }
.ph-ciudades a[aria-current] { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--oro); }
.ph-ciudades a:hover { opacity: 1; }
.ph-mega-col .ph-mega-more a { color: var(--po); font-weight: 700; font-size: .8rem; margin-top: .3rem; }
.ph-mega-guias .ph-mega-img { aspect-ratio: 4 / 3; }
.ph-mega-guias .ph-mega-title { font-size: .95rem; }
.ph-mega-grid { gap: 1.3rem; }
.p-btn { color: #fff !important; }
.p-btn-line { color: var(--pb) !important; }
.p-btn-line:hover, .p-btn-white:hover { color: var(--pb) !important; }
.p-btn-line:hover { color: #fff !important; }
.p-btn-white { color: var(--pb) !important; }
a.p-badge { text-decoration: none; }
.p-svc ul li a, .p-seeall, .p-marquee a, .p-dif, .ps a, .pt-panel a, .ph a, .ph-drawer a, .pchat a { text-decoration: none; }
.p-dif { color: inherit; }
.p-dif p { color: var(--text); }
.ph-hero-copy .p-h2 { font-size: clamp(1.8rem, 4vw, 3.1rem); }
.p-svc-img img, .p-intro-photo img, .p-lead-photo img, .ps-slide img, .p-dif img, .pt-panel img { height: auto; }
.p-services { overflow: hidden; }
html { overflow-x: clip; }
@media (max-width: 640px) { .p-svc-deco { font-size: 2rem; } }
.ph-drawer-close {
    position: absolute; top: .9rem; right: 1rem; width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,.5); background: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer;
}
.ph-drawer-close:hover { background: #fff; color: var(--pb); }
.ph-drawer-head { position: relative; }
.ph-ico { width: 1em; height: 1em; fill: currentColor; display: inline-block; vertical-align: -.125em; }
.ph-social a .ph-ico { width: .9rem; height: .9rem; }
.pchat-btn .ph-ico { width: 1.9rem; height: 1.9rem; }
.ph-drawer-list .ph-chev { color: var(--po); font-weight: 700; }
.p-home-seo { background: var(--fondo-alt); }
/* el flotante viejo del sitio se sustituye por .pchat */
.flotante { display: none !important; }
/* Ajustes tras revisión visual (2026-11-27) */
.ph ul, .ph-drawer ul, .p-svc ul, .p-stats ul { list-style: none; padding: 0; margin: 0; }
.ph-mega-col ul li { margin: 0; }
.ph-loc { white-space: nowrap; }
.ph-ciudades a { white-space: nowrap; }
.ph-top { gap: 1.6rem; }
.p-btn, .p-badge, .p-seeall, .ph-cta, .ph-tel, .ph-promo, .ph-nav-item, .ph-mega a, .pt-panel a, .p-dif, .p-svc a { text-decoration: none !important; }
.ph-mega-title a { color: inherit; }
@media (max-width: 1380px) { .ph-loc { display: none; } }
@media (max-width: 1180px) { .ph-ciudades { display: none; } }
.ph .ph-nav-list { margin: 0 auto; padding: 0 1.25rem; }
.ph-logo-txt b, .ph-logo-txt i { white-space: nowrap; }
.ph-top { gap: 1.1rem; }
@media (max-width: 1520px) { .ph-loc { display: none; } }
@media (max-width: 1320px) { .ph-tel { display: none; } }
.p-marquee a { color: #fff; }
.p-marquee i { color: var(--oro); }
.ph-drawer-list li a, .ph-drawer-list li button { color: var(--ink); }
.ph-panel-title { color: var(--pb); }

/* ===== Ajustes de usabilidad en PC (2026-11-27) =====
   Panel más bajo (fotos 4:3), enlaces más legibles, header que se esconde al bajar,
   y sin botón MENÚ en escritorio (la barra ya muestra todo). */
.ph { transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.ph.is-hidden { transform: translateY(-100%); box-shadow: none; }
.ph-mega-img { aspect-ratio: 4 / 3; }
.ph-mega-img img { object-position: center 28%; }
.ph-mega-grid { padding-top: 1.5rem; padding-bottom: 1.7rem; }
.ph-mega-title { font-size: 1.02rem; margin: .7rem 0 .4rem; }
.ph-mega-col ul li a { font-size: .92rem; color: #1f2a30; padding: .22rem 0; }
.ph-mega-col ul li a:hover { color: var(--po); }
@media (min-width: 1100px) { .ph-burger { display: none; } }
.ph-mega-col .ph-mega-img { aspect-ratio: 16 / 10; }
