/* =========================================================
   Treatment pages — shared styles
   Carga siempre junto a ../styles.css
   ========================================================= */

/* ── Breadcrumb ── */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--s-2);
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: var(--s-6);
    flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,0.6); transition: color var(--t-fast); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: rgba(255,255,255,0.35); }
.breadcrumb strong { color: rgba(255,255,255,0.9); font-weight: 500; }

/* ── Treatment Hero ── */
.tx-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--primary-deep);
    color: #fff;
}
.tx-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.tx-hero-bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 30%;
    filter: saturate(0.8) brightness(0.72);
}
.tx-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(115deg, rgba(5,14,37,0.92) 0%, rgba(5,14,37,0.55) 50%, rgba(5,14,37,0.20) 100%),
        linear-gradient(to top, rgba(5,14,37,0.7) 0%, transparent 50%);
}
.tx-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: var(--s-10) 0 var(--s-10);
    max-width: 800px;
}
.tx-hero h1 { color: #fff; margin: var(--s-5) 0 var(--s-5); max-width: 14ch; }
.tx-hero h1 em { color: var(--accent-warm); font-style: normal; }
.tx-hero-lead {
    font-size: clamp(17px, 1.3vw, 21px);
    color: rgba(255,255,255,0.8);
    max-width: 52ch;
    line-height: 1.6;
    margin-bottom: var(--s-7);
}
.tx-hero-ctas { display: flex; gap: var(--s-4); flex-wrap: wrap; align-items: center; margin-bottom: var(--s-7); }
.tx-hero-pills { display: flex; gap: var(--s-4); flex-wrap: wrap; }
.tx-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--s-2);
    padding: 8px 14px;
    background: rgba(255,255,255,0.09);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: var(--r-pill);
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    backdrop-filter: blur(8px);
}
.tx-pill svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

/* ── Stats strip ── */
.tx-stats {
    background: var(--primary);
    color: #fff;
    padding: var(--s-8) 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.tx-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5);
}
.tx-stat {
    text-align: center;
    padding: var(--s-5) var(--s-4);
    border-right: 1px solid rgba(255,255,255,0.08);
}
.tx-stat:last-child { border-right: none; }
.tx-stat-num {
    font-family: var(--font-display);
    font-size: 52px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: var(--s-2);
}
.tx-stat-num sup { font-size: 24px; vertical-align: super; letter-spacing: 0; }
.tx-stat-label { font-size: 13px; color: rgba(255,255,255,0.6); letter-spacing: 0.04em; line-height: 1.4; }

/* ── Intro split ── */
.tx-intro { background: var(--bg); }
.tx-intro-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-10);
    align-items: center;
}
.tx-intro-text h2 { margin-bottom: var(--s-5); }
.tx-intro-text .lead { margin-bottom: var(--s-6); }
.tx-intro-text p { color: var(--text-2); font-size: 16px; line-height: 1.7; margin-bottom: var(--s-4); }
.tx-intro-img {
    aspect-ratio: 4/5;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.tx-intro-img img { width: 100%; height: 100%; object-fit: cover; }
.tx-intro-img-badge {
    position: absolute;
    bottom: var(--s-5);
    left: var(--s-5);
    background: var(--primary);
    color: #fff;
    padding: var(--s-4) var(--s-5);
    border-radius: var(--r-md);
    font-size: 13px;
    line-height: 1.4;
    max-width: 200px;
    backdrop-filter: blur(8px);
}
.tx-intro-img-badge strong { display: block; color: var(--accent); font-family: var(--font-display); font-size: 18px; margin-bottom: 3px; }

/* ── Benefits ── */
.tx-benefits { background: var(--bg-2); }
.tx-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--s-5);
    margin-top: var(--s-9);
}
.tx-benefit-card {
    background: var(--surface);
    border: 1px solid var(--border-2);
    border-radius: var(--r-md);
    padding: var(--s-7);
    transition: all var(--t-med);
}
.tx-benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(201,168,106,0.3); }
.tx-benefit-icon {
    width: 52px; height: 52px;
    background: var(--accent);
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--s-5);
    color: var(--primary-deep);
}
.tx-benefit-icon svg { width: 24px; height: 24px; }
.tx-benefit-card h3 {
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--s-3);
}
.tx-benefit-card p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── Process ── */
.tx-process { background: var(--bg); }
.tx-process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--s-10);
    align-items: start;
    margin-top: var(--s-9);
}
.tx-process-steps { display: flex; flex-direction: column; gap: 0; }
.tx-step {
    display: flex;
    gap: var(--s-5);
    padding: var(--s-6) 0;
    border-bottom: 1px solid var(--border-2);
    cursor: pointer;
    transition: background var(--t-fast);
}
.tx-step:last-child { border-bottom: none; }
.tx-step-num {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 700;
    color: var(--border);
    line-height: 1;
    min-width: 48px;
    transition: color var(--t-fast);
}
.tx-step:hover .tx-step-num,
.tx-step.is-active .tx-step-num { color: var(--accent); }
.tx-step-content h4 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin-bottom: var(--s-2);
    color: var(--text-2);
    transition: color var(--t-fast);
}
.tx-step:hover .tx-step-content h4,
.tx-step.is-active .tx-step-content h4 { color: var(--text); }
.tx-step-content p { font-size: 14px; color: var(--text-3); line-height: 1.6; display: none; }
.tx-step.is-active .tx-step-content p { display: block; color: var(--text-2); }
.tx-process-image {
    position: sticky;
    top: calc(88px + var(--s-6));
    border-radius: var(--r-xl);
    overflow: hidden;
    aspect-ratio: 4/5;
    box-shadow: var(--shadow-md);
}
.tx-process-image img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t-med); }

/* ── Gallery ── */
.tx-gallery { background: var(--bg-2); }
.tx-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-4);
    margin-top: var(--s-9);
}
.tx-gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--r-md);
    overflow: hidden;
    position: relative;
}
.tx-gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 700ms var(--ease);
    filter: saturate(0.9);
}
.tx-gallery-item:hover img { transform: scale(1.06); }
.tx-gallery-item-label {
    position: absolute;
    bottom: var(--s-4); left: var(--s-4);
    background: rgba(11,26,60,0.85);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: var(--r-pill);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
}
.tx-gallery-item.tall { grid-row: span 2; aspect-ratio: auto; min-height: 460px; }

/* ── Doctor ── */
.tx-doctor { background: var(--primary); color: #fff; }
.tx-doctor-inner {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: var(--s-10);
    align-items: center;
}
.tx-doctor-photo {
    aspect-ratio: 3/4;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.tx-doctor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.tx-doctor-content h2 { color: #fff; margin-bottom: var(--s-5); }
.tx-doctor-content .lead { color: rgba(255,255,255,0.72); margin-bottom: var(--s-6); }
.tx-doctor-content p { color: rgba(255,255,255,0.65); font-size: 15px; line-height: 1.7; margin-bottom: var(--s-5); }
.tx-doctor-creds {
    display: flex;
    flex-direction: column;
    gap: var(--s-3);
    margin-bottom: var(--s-7);
    padding: var(--s-6) 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.tx-doctor-cred {
    display: flex;
    align-items: center;
    gap: var(--s-3);
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}
.tx-doctor-cred::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Related treatments ── */
.tx-related { background: var(--bg); }
.tx-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
    margin-top: var(--s-9);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .tx-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tx-stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
    .tx-stat:nth-child(2n) { border-right: none; }
    .tx-stat:nth-last-child(-n+2) { border-bottom: none; }
    .tx-intro-inner { grid-template-columns: 1fr; gap: var(--s-8); }
    .tx-intro-img { max-width: 480px; margin: 0 auto; aspect-ratio: 16/10; }
    .tx-benefits-grid { grid-template-columns: repeat(2, 1fr); }
    .tx-process-grid { grid-template-columns: 1fr; }
    .tx-process-image { position: relative; top: auto; max-width: 480px; margin: 0 auto; }
    .tx-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .tx-gallery-item.tall { grid-row: span 1; min-height: 260px; aspect-ratio: 4/3; }
    .tx-doctor-inner { grid-template-columns: 1fr; gap: var(--s-8); }
    .tx-doctor-photo { max-width: 320px; margin: 0 auto; aspect-ratio: 4/3; }
    .tx-related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .tx-hero { min-height: 72vh; }
    .tx-hero-inner { padding: var(--s-7) 0; }
    .tx-stats-grid { grid-template-columns: 1fr 1fr; }
    .tx-stat { border-bottom: 1px solid rgba(255,255,255,0.08); border-right: 1px solid rgba(255,255,255,0.08); }
    .tx-stat:nth-child(2n) { border-right: none; }
    .tx-benefits-grid { grid-template-columns: 1fr; }
    .tx-gallery-grid { grid-template-columns: 1fr; }
    .tx-related-grid { grid-template-columns: 1fr; }
    .tx-stat-num { font-size: 40px; }
}
