/* =========================================
   VARIABLES
========================================= */

body.pain-therapy-landing {
    --font-display: "Fraunces", serif;

    --primary: #0B4F8A;
    --primary-dark: #07375F;
    --secondary: #1E88C8;
    --accent: #20A4A8;

    --background: #F5F8FB;
    --white: #FFFFFF;

    --text: #1D2A35;
    --text-light: #65727E;

    --border: #DEE6ED;

    --success: #17886B;

    --shadow:
        0 15px 45px rgba(14, 53, 84, 0.10);

    --radius: 18px;
    --radius-small: 10px;

    --container: 1180px;
}

/* =========================================
   RESET
========================================= */

body.pain-therapy-landing,
body.pain-therapy-landing *,
body.pain-therapy-landing *::before,
body.pain-therapy-landing *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html:has(> body.pain-therapy-landing) {
    scroll-behavior: smooth;
    scroll-padding-top: 95px;
}

body.pain-therapy-landing {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--white);
    color: var(--text);
    line-height: 1.6;
}

body.pain-therapy-landing h1,
body.pain-therapy-landing h2,
body.pain-therapy-landing h3,
body.pain-therapy-landing .hero-subtitle {
    font-family: var(--font-display);
    font-optical-sizing: auto;
    font-style: normal;
    font-variation-settings:
        "SOFT" 0,
        "WONK" 0;
}

body.pain-therapy-landing img {
    max-width: 100%;
}

body.pain-therapy-landing a {
    text-decoration: none;
}

body.pain-therapy-landing button,
body.pain-therapy-landing input {
    font: inherit;
}

body.pain-therapy-landing ul[class],
body.pain-therapy-landing ol[class] {
    list-style: none;
}

/* Oculta solo visualmente: conserva el contenido para lectores de pantalla. */
body.pain-therapy-landing .visually-hidden,
body.pain-therapy-landing .option input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

body.pain-therapy-landing :focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}

body.pain-therapy-landing .skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 200;
    padding: 12px 18px;
    border-radius: 8px;
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-150%);
}

body.pain-therapy-landing .skip-link:focus {
    transform: translateY(0);
}

/* =========================================
   GLOBAL
========================================= */

body.pain-therapy-landing .container {
    width: min(92%, var(--container));
    margin: auto;
}

body.pain-therapy-landing .section {
    padding: 90px 0;
}

body.pain-therapy-landing .section-light {
    background: var(--background);
}

body.pain-therapy-landing .section-title {
    text-align: center;
    margin-bottom: 55px;
}

body.pain-therapy-landing .section-title span {
    display: block;
    margin-bottom: 8px;

    color: var(--secondary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

body.pain-therapy-landing .section-title h2 {
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.15;
    margin-bottom: 15px;
}

body.pain-therapy-landing .section-title p {
    max-width: 680px;
    margin: auto;
    color: var(--text-light);
}

/* =========================================
   HEADER
========================================= */

body.pain-therapy-landing .site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);

    border-bottom: 1px solid var(--border);
}

body.pain-therapy-landing .navbar {
    min-height: 75px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

body.pain-therapy-landing .logo {
    font-size: 25px;
    font-weight: 800;
    color: var(--primary);
}

body.pain-therapy-landing .site-header .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

body.pain-therapy-landing .logo span {
    color: var(--secondary);
}

body.pain-therapy-landing .logo img {
    display: block;
    width: auto;
    height: 52px;
}

body.pain-therapy-landing .logo-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

body.pain-therapy-landing .logo-name {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 29px;
    font-weight: 300;
    letter-spacing: -1.5px;
}

body.pain-therapy-landing .logo-name .logo-name-base {
    color: var(--text);
}

body.pain-therapy-landing .logo-name .logo-name-accent {
    color: #22C3DF;
}

body.pain-therapy-landing .logo-care {
    margin-top: 2px;
    padding: 2px 8px;

    background: #777777;
    border-radius: 2px;
    color: var(--white) !important;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.pain-therapy-landing .logo-subtitle {
    margin-top: 4px;
    color: var(--text-light) !important;
    font-size: 9px;
    font-weight: 400;
    white-space: nowrap;
}

body.pain-therapy-landing .header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

body.pain-therapy-landing .phone {
    color: var(--text);
    font-weight: 600;
}

body.pain-therapy-landing .floating-call-cta {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 180;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 52px;
    padding: 13px 21px;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;

    background: var(--primary);
    color: var(--white);
    box-shadow: 0 12px 30px rgba(7, 55, 95, 0.30);

    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

body.pain-therapy-landing .floating-call-cta:hover {
    transform: translateY(-2px);
    background: var(--primary-dark);
    color: var(--white);
    box-shadow: 0 15px 34px rgba(7, 55, 95, 0.38);
}

body.pain-therapy-landing .floating-call-cta:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 4px;
}

body.pain-therapy-landing .floating-call-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

body.pain-therapy-landing .floating-call-cta__label {
    line-height: 1;
}

body.pain-therapy-landing .floating-call-cta__number {
    font-weight: 700;
    white-space: nowrap;
}


body.pain-therapy-landing .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 52px;
    padding: 14px 27px;

    border: none;
    border-radius: 10px;

    font-weight: 700;
    cursor: pointer;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease;
}

body.pain-therapy-landing .btn:hover {
    transform: translateY(-2px);
}

body.pain-therapy-landing .btn-primary {
    background: var(--primary);
    color: var(--white);

    box-shadow:
        0 10px 25px rgba(11, 79, 138, 0.25);
}

body.pain-therapy-landing .btn-primary:hover {
    background: var(--primary-dark);
}

/* =========================================
   HERO
========================================= */

body.pain-therapy-landing .hero,
body.pain-therapy-landing #evaluacion {
    background-repeat: no-repeat;
    background-size: cover;
}

body.pain-therapy-landing .hero {
    position: relative;
    overflow: hidden;

    min-height: 680px;
    padding: 120px 0;

    display: flex;
    align-items: center;

    background-image: url("../images/banner-team.jpeg");
    background-position: center 42%;
}

@media (min-width: 901px) {
    body.pain-therapy-landing .hero {
        align-items: flex-start;
        padding-top: 65px;
        padding-bottom: 80px;
    }
}

body.pain-therapy-landing #evaluacion {
    position: relative;
    overflow: hidden;
    min-height: 720px;
    padding: 0;

    background-image: url("../images/image-banner-3.jpeg");
    background-position: left center;
}

body.pain-therapy-landing #evaluacion::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        90deg,
        rgba(245, 248, 251, 0) 0%,
        rgba(245, 248, 251, 0) 52%,
        rgba(245, 248, 251, 0.45) 76%,
        var(--background) 100%
    );
}

body.pain-therapy-landing .evaluation-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch;

    background: var(--background);
}

body.pain-therapy-landing .evaluation-layout > .section {
    min-width: 0;
}

body.pain-therapy-landing #evaluacion-form {
    background: var(--background);
}

body.pain-therapy-landing .hero::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        270deg,
        rgba(9, 27, 40, 0.90) 0%,
        rgba(9, 27, 40, 0.78) 45%,
        rgba(9, 27, 40, 0.34) 100%
    );
}

body.pain-therapy-landing .hero-grid {
    position: relative;
    z-index: 2;

    width: 100%;
    padding-inline: clamp(24px, 4vw, 76px);

    display: flex;
    justify-content: flex-end;
}

body.pain-therapy-landing .hero-content {
    width: 100%;
    max-width: 620px;
}

body.pain-therapy-landing .hero .video-card {
    display: none;
}

body.pain-therapy-landing .hero-label {
    display: inline-block;

    padding: 8px 14px;
    margin-bottom: 20px;

    background: rgba(255, 255, 255, 0.14);

    border-radius: 50px;

    color: var(--white);
    font-weight: 700;
    font-size: 14px;
}

body.pain-therapy-landing .hero h1 {
    max-width: 700px;

    font-size: clamp(40px, 5vw, 65px);
    line-height: 1.05;
    letter-spacing: -2px;

    margin-bottom: 6px;

    color: var(--white);
}

body.pain-therapy-landing .hero-subtitle {
    max-width: 700px;

    /* 70% of the h1 size: a 30% reduction. */
    font-size: clamp(28px, 3.5vw, 45.5px);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;

    margin-bottom: 25px;

    color: var(--white);
}

body.pain-therapy-landing .hero-description {
    max-width: 650px;

    color: rgba(255, 255, 255, 0.88);

    font-size: 19px;
    line-height: 1.7;

    margin-bottom: 30px;
}

body.pain-therapy-landing .hero-condition-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: auto;
    align-items: stretch;
    gap: 8px;

    margin: 0 0 35px;
    padding: 0;

    list-style: none;
}

body.pain-therapy-landing .hero-condition-card {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
    min-height: 50px;
    height: 100%;
    overflow: hidden;
    padding: 6px 6px;

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.10);
    text-align: center;
}

body.pain-therapy-landing .hero-condition-card h3 {
    width: 100%;
    max-width: 100%;
    margin: 0;

    color: var(--white);
    font-size: clamp(0.72rem, 0.8vw, 0.8rem);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
}

body.pain-therapy-landing .hero-locations-title {
    margin: 24px 0 14px;
    color: var(--white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

body.pain-therapy-landing .hero-locations {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.pain-therapy-landing .hero-location {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 50px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

body.pain-therapy-landing .hero-location:first-child {
    background: rgba(22, 93, 170, 0.45);
    border-color: rgba(100, 165, 230, 0.65);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

@media (max-width: 1024px) {
    body.pain-therapy-landing .hero-condition-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pain-therapy-landing .hero-condition-card h3 {
        font-size: 0.875rem;
        white-space: normal;
    }

}

@media (max-width: 900px) {
    body.pain-therapy-landing .hero-locations {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body.pain-therapy-landing .hero-location {
        font-size: 0.875rem;
    }
}

@media (max-width: 360px) {
    body.pain-therapy-landing .hero-condition-cards {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* =========================================
   TRUST
========================================= */

body.pain-therapy-landing .trust-section {
    --trust-logo-width: 180px;
    --trust-logo-height: 72px;
    --trust-logo-gap: 80px;
    --trust-marquee-duration: 33s;

    width: 100%;
    overflow: hidden;
    padding: 32px 0;
    background: linear-gradient(135deg, var(--black, #070F17), var(--navy, #0B2942));
}

body.pain-therapy-landing .trust-section .trust-marquee-viewport {
    width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

body.pain-therapy-landing .trust-section .trust-marquee-viewport:focus-visible {
    outline-offset: -4px;
}

body.pain-therapy-landing .trust-section .trust-marquee-track {
    display: flex;
    width: max-content;
    /* Cada grupo cubre, como mínimo, la franja completa incluso en pantallas amplias. */
    min-width: 200%;
    animation: trust-logo-marquee var(--trust-marquee-duration) linear infinite;
    will-change: transform;
}

body.pain-therapy-landing .trust-section .trust-marquee-group {
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    justify-content: space-around;
    gap: var(--trust-logo-gap);
    /* Las dos mitades de espacio mantienen la misma separación en la unión. */
    padding: 12px calc(var(--trust-logo-gap) / 2);
    margin: 0;
    list-style: none;
}

body.pain-therapy-landing .trust-section .trust-marquee-group > li {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
}

body.pain-therapy-landing .trust-section .trust-marquee-logo {
    display: block;
    width: var(--trust-logo-width);
    height: var(--trust-logo-height);
    max-width: none;
    object-fit: contain;
    transition: transform 0.25s ease;
}

body.pain-therapy-landing .trust-section .trust-marquee-viewport:focus-within .trust-marquee-track {
    animation-play-state: paused;
}

@keyframes trust-logo-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (hover: hover) and (pointer: fine) {
    body.pain-therapy-landing .trust-section .trust-marquee-viewport:hover .trust-marquee-track {
        animation-play-state: paused;
    }

    body.pain-therapy-landing .trust-section .trust-marquee-logo:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 1024px) {
    body.pain-therapy-landing .trust-section {
        --trust-logo-width: 145px;
        --trust-logo-height: 64px;
        --trust-logo-gap: 60px;
    }
}

@media (max-width: 650px) {
    body.pain-therapy-landing .trust-section {
        --trust-logo-width: 120px;
        --trust-logo-height: 56px;
        --trust-logo-gap: 44px;
        --trust-marquee-duration: 25s;
        padding: 24px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pain-therapy-landing .trust-section .trust-marquee-viewport {
        -webkit-mask-image: none;
        mask-image: none;
    }

    body.pain-therapy-landing .trust-section .trust-marquee-track {
        width: 100%;
        min-width: 0;
        animation: none;
        transform: none;
        will-change: auto;
    }

    body.pain-therapy-landing .trust-section .trust-marquee-group {
        flex: 1 1 100%;
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px var(--trust-logo-gap);
    }

    body.pain-therapy-landing .trust-section .trust-marquee-group[aria-hidden="true"] {
        display: none;
    }

    body.pain-therapy-landing .trust-section .trust-marquee-logo:hover {
        transform: none;
    }
}

/* =========================================
   CONDITIONS
========================================= */

body.pain-therapy-landing .conditions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

body.pain-therapy-landing .condition-card {
    display: grid;
    grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
    height: 100%;
    min-height: 264px;
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--white);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

body.pain-therapy-landing .condition-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

body.pain-therapy-landing .condition-card .condition-card__content {
    min-width: 0;
    align-self: center;
    padding: 28px 20px 28px 26px;
}

body.pain-therapy-landing .condition-card .condition-card__media {
    position: relative;
    min-width: 0;
    background: var(--background);
}

body.pain-therapy-landing .condition-card .condition-card__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    padding: 12px 0;
    object-fit: contain;
    object-position: center;
}

body.pain-therapy-landing .condition-card h3 {
    margin-bottom: 7px;
    font-size: 19px;
}

body.pain-therapy-landing .condition-card p {
    color: var(--text-light);
    font-size: 15px;
}

@media (max-width: 1100px) {
    body.pain-therapy-landing .condition-card {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: 240px 1fr;
        min-height: 0;
    }

    body.pain-therapy-landing .condition-card .condition-card__media {
        order: -1;
    }

    body.pain-therapy-landing .condition-card .condition-card__content {
        align-self: start;
        padding: 24px;
    }
}

/* =========================================
   PROCESS
========================================= */

body.pain-therapy-landing .process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

body.pain-therapy-landing .process-card {
    text-align: center;
    padding: 35px;
}

body.pain-therapy-landing .number {
    width: 55px;
    height: 55px;

    display: grid;
    place-items: center;

    margin: auto auto 20px;

    border-radius: 50%;

    background: var(--primary);
    color: white;

    font-weight: 800;
}

body.pain-therapy-landing .process-card h3 {
    margin-bottom: 10px;
}

body.pain-therapy-landing .process-card p {
    color: var(--text-light);
}

/* =========================================
   PAIN TEST
========================================= */

body.pain-therapy-landing .pain-test {
    max-width: 820px;

    container-type: inline-size;

    margin: auto;

    padding: 50px;

    border-radius: 25px;

    background: white;

    box-shadow: var(--shadow);
}

body.pain-therapy-landing .pain-test h3 {
    font-size: 29px;
    margin-bottom: 8px;
}

body.pain-therapy-landing .pain-test .form-intro {
    color: var(--text-light);
    margin-bottom: 35px;
}

body.pain-therapy-landing .question {
    min-inline-size: 0;
    border: 0;
    margin-bottom: 32px;
}

body.pain-therapy-landing .contact-details {
    min-inline-size: 0;
    border: 0;
}

body.pain-therapy-landing .question-title {
    display: block;
    width: 100%;

    margin-bottom: 14px;

    font-weight: 700;
    font-size: 17px;
}

body.pain-therapy-landing .options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

body.pain-therapy-landing .option {
    position: relative;
}

body.pain-therapy-landing .option label {
    display: block;

    padding: 15px;

    border: 1.5px solid var(--border);
    border-radius: var(--radius-small);

    cursor: pointer;

    text-align: center;
    font-weight: 600;

    transition: all 0.2s ease;
}

body.pain-therapy-landing .option input:checked + label {
    border-color: var(--primary);

    background: #EAF5FC;

    color: var(--primary);
}

body.pain-therapy-landing .option input:focus-visible + label {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

body.pain-therapy-landing .form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;

    margin-bottom: 20px;
}

body.pain-therapy-landing .form-row-single {
    grid-template-columns: minmax(0, 1fr);
}

body.pain-therapy-landing .form-group {
    min-width: 0;
}

body.pain-therapy-landing .form-group label {
    display: block;

    margin-bottom: 7px;

    font-size: 14px;
    font-weight: 700;
}

body.pain-therapy-landing .form-group input,
body.pain-therapy-landing .form-group textarea {
    width: 100%;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: #FFFFFF;
    color: var(--text);
    font: inherit;

    outline: none;
}

body.pain-therapy-landing .form-group textarea {
    display: block;
    min-height: 120px;
    line-height: 1.5;
    resize: none;
}

body.pain-therapy-landing .form-group input:focus,
body.pain-therapy-landing .form-group textarea:focus {
    border-color: var(--primary);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

body.pain-therapy-landing .pain-test .btn {
    width: 100%;
}

body.pain-therapy-landing .contact-details + .btn {
    margin-top: 20px;
}

body.pain-therapy-landing .privacy {
    text-align: center;

    margin-top: 16px;

    color: var(--text-light);

    font-size: 13px;
}

@container (max-width: 480px) {
    body.pain-therapy-landing .form-row {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.pain-therapy-landing .locations-Clinic {
    width: min(92%, var(--container));
    margin: auto;
    padding: 90px 0;
}

body.pain-therapy-landing .locations-Clinic > p {
    color: var(--text);
    font-family: var(--font-display);
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

body.pain-therapy-landing .locations-Clinic > ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-top: 45px;
    padding: 0;
    list-style: none;
}

body.pain-therapy-landing .location-clinica {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-width: 0;
    height: 100%;
    padding: 20px 28px;

    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-small);
    text-align: center;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

body.pain-therapy-landing .location-clinica:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

body.pain-therapy-landing .location-medical {
    display: block;
    margin-bottom: 10px;

    color: var(--secondary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.pain-therapy-landing .location-clinica h3 {
    margin-bottom: 6px;
    color: var(--primary-dark);
    font-size: 22px;
    line-height: 1.25;
}

body.pain-therapy-landing .location-clinica p {
    margin-bottom: 14px;
    color: var(--text-light);
}

body.pain-therapy-landing .btn-directions {
    margin-top: auto;
}

/* =========================================
   FOOTER
========================================= */

body.pain-therapy-landing .site-footer {
    background: #102737;
    color: white;

    padding: 55px 0 30px;
}

body.pain-therapy-landing .footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;

    padding-bottom: 35px;
}

body.pain-therapy-landing .site-footer p,
body.pain-therapy-landing .site-footer a,
body.pain-therapy-landing .site-footer .footer-links {
    color: #B8C6D0;
}

body.pain-therapy-landing .site-footer h3 {
    color: var(--white);
}

body.pain-therapy-landing .footer-heading {
    font-size: 16px;
    margin-bottom: 15px;
}

body.pain-therapy-landing .site-footer .footer-logo {
    color: var(--white);
}

body.pain-therapy-landing .site-footer .footer-logo .logo-name-base {
    color: var(--white);
}

body.pain-therapy-landing .footer-description {
    margin-top: 15px;
    max-width: 400px;
}

body.pain-therapy-landing .footer-links {
    display: grid;
    gap: 8px;
}

body.pain-therapy-landing .site-footer .legal {
    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,0.12);

    color: #9AAAB5;

    font-size: 13px;
}

@media (prefers-reduced-motion: reduce) {
    html:has(> body.pain-therapy-landing) {
        scroll-behavior: auto;
    }

    body.pain-therapy-landing *,
    body.pain-therapy-landing *::before,
    body.pain-therapy-landing *::after {
        transition: none !important;
    }
}

/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 900px) {

    body.pain-therapy-landing .evaluation-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    body.pain-therapy-landing #evaluacion {
        min-height: 420px;
    }

    body.pain-therapy-landing #evaluacion::before {
        background: linear-gradient(
            180deg,
            rgba(245, 248, 251, 0) 0%,
            rgba(245, 248, 251, 0) 58%,
            var(--background) 100%
        );
    }

    body.pain-therapy-landing .hero h1 {
        font-size: 48px;
    }

    body.pain-therapy-landing .hero-subtitle {
        font-size: 33.6px;
    }

    body.pain-therapy-landing .conditions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.pain-therapy-landing .process-grid {
        grid-template-columns: 1fr;
    }

    body.pain-therapy-landing .trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    body.pain-therapy-landing .locations-Clinic > ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 650px) {

    body.pain-therapy-landing .floating-call-cta {
        left: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        min-height: 48px;
        padding: 11px 13px;
        gap: 6px;
        font-size: 12px;
    }

    body.pain-therapy-landing .floating-call-cta__icon {
        font-size: 17px;
    }

    body.pain-therapy-landing .section {
        padding: 65px 0;
    }

    body.pain-therapy-landing .locations-Clinic {
        padding: 65px 0;
    }

    body.pain-therapy-landing .locations-Clinic > ul {
        grid-template-columns: minmax(0, 1fr);
    }

    body.pain-therapy-landing .hero {
        min-height: 620px;
        padding: 80px 0;
    }

    body.pain-therapy-landing .hero {
        background-position: 45% center;
    }

    body.pain-therapy-landing .hero::before {
        background: rgba(9, 27, 40, 0.78);
    }

    body.pain-therapy-landing .hero h1 {
        font-size: 39px;
        letter-spacing: -1px;
    }

    body.pain-therapy-landing .hero-subtitle {
        font-size: 27.3px;
    }

    body.pain-therapy-landing .hero-description {
        font-size: 17px;
    }

    body.pain-therapy-landing .header-actions {
        margin-left: auto;
        gap: 0;
    }

    body.pain-therapy-landing .header-actions .phone {
        display: none;
    }

    body.pain-therapy-landing .header-actions .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;

        min-height: 44px;
        max-width: 145px;
        padding: 9px 12px;

        font-size: 13px;
        line-height: 1.15;
        text-align: center;
        white-space: normal;
    }

    body.pain-therapy-landing .conditions-grid,
    body.pain-therapy-landing .trust-grid,
    body.pain-therapy-landing .options,
    body.pain-therapy-landing .form-row,
    body.pain-therapy-landing .footer-grid {
        grid-template-columns: 1fr;
    }

    body.pain-therapy-landing .pain-test {
        padding: 30px 20px;
    }

    body.pain-therapy-landing .navbar {
        min-height: 68px;
        gap: 12px;
    }

    body.pain-therapy-landing .logo {
        font-size: 21px;
    }

    body.pain-therapy-landing .site-header .logo {
        gap: 7px;
    }

    body.pain-therapy-landing .logo img {
        height: 42px;
    }

    body.pain-therapy-landing .logo-name {
        font-size: 22px;
        letter-spacing: -1px;
    }

    body.pain-therapy-landing .logo-care {
        padding: 2px 6px;
        font-size: 9px;
    }

    body.pain-therapy-landing .logo-subtitle {
        display: none;
    }
}

/* =========================================
   GRAVITY FORMS (LANDING PAGE ONLY)
========================================= */

body.pain-therapy-landing #gform_wrapper_3 {
    margin-top: 30px;
}

body.pain-therapy-landing #gform_wrapper_3 .gform_fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
}

body.pain-therapy-landing #gform_wrapper_3 .gform_fields > .gfield {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
}

body.pain-therapy-landing #gform_wrapper_3 .gfield--type-name > .gfield_label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.pain-therapy-landing #gform_wrapper_3 .ginput_complex.ginput_container_name {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin: 0;
}

body.pain-therapy-landing #gform_wrapper_3 .ginput_complex.ginput_container_name > .name_first,
body.pain-therapy-landing #gform_wrapper_3 .ginput_complex.ginput_container_name > .name_last {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
    flex-direction: column;
}

body.pain-therapy-landing #gform_wrapper_3 .ginput_complex.ginput_container_name > .name_first > label,
body.pain-therapy-landing #gform_wrapper_3 .ginput_complex.ginput_container_name > .name_last > label {
    order: -1;
    margin: 0 0 7px;
}

body.pain-therapy-landing #gform_wrapper_3 .gfield_label,
body.pain-therapy-landing #gform_wrapper_3 .gform-field-label {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
}

body.pain-therapy-landing #gform_wrapper_3 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
body.pain-therapy-landing #gform_wrapper_3 textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #FFFFFF;
    color: var(--text);
    font: inherit;
    outline: none;
}

body.pain-therapy-landing #gform_wrapper_3 textarea {
    display: block;
    min-height: 120px;
    line-height: 1.5;
    resize: vertical;
}

body.pain-therapy-landing #gform_wrapper_3 input:not([type="submit"]):not([type="button"]):focus,
body.pain-therapy-landing #gform_wrapper_3 textarea:focus {
    border-color: var(--primary);
    outline: 2px solid var(--secondary);
    outline-offset: 2px;
}

body.pain-therapy-landing #gform_wrapper_3 .gform_footer {
    display: block;
    width: 100%;
    margin: 20px 0 0;
    padding: 0;
}

body.pain-therapy-landing #gform_wrapper_3 .gform_button {
    width: 100%;
    min-height: 46px;
    padding: 13px 22px;
    border: 0;
    border-radius: var(--radius-small);
    background: var(--primary);
    color: var(--white);
    cursor: pointer;
    margin: 0;
    font: inherit;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.pain-therapy-landing #gform_wrapper_3 .gform_button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

body.pain-therapy-landing #gform_wrapper_3 .gform_button:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 3px;
}

body.pain-therapy-landing #gform_wrapper_3 .gfield_validation_message,
body.pain-therapy-landing #gform_wrapper_3 .gform_validation_errors {
    border-radius: 9px;
}

@media (max-width: 650px) {
    body.pain-therapy-landing #gform_wrapper_3 .ginput_complex.ginput_container_name {
        grid-template-columns: minmax(0, 1fr);
    }
}

body.pain-therapy-landing header.site-header,
body.pain-therapy-landing footer.site-footer {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.pain-therapy-landing header.site-header {
    left: auto;
    right: auto;
}

body.pain-therapy-landing .container {
    max-width: none;
}

/* Keep translated text inside the existing layout. */
body.pain-therapy-landing .hero-content,
body.pain-therapy-landing .header-actions,
body.pain-therapy-landing .hero h1,
body.pain-therapy-landing .hero-subtitle,
body.pain-therapy-landing .hero-description,
body.pain-therapy-landing .section-title,
body.pain-therapy-landing .condition-card__content,
body.pain-therapy-landing .location-clinica,
body.pain-therapy-landing .footer-grid > *,
body.pain-therapy-landing .btn {
    min-width: 0;
}

body.pain-therapy-landing .hero h1,
body.pain-therapy-landing .hero-subtitle,
body.pain-therapy-landing .hero-description,
body.pain-therapy-landing .section-title h2,
body.pain-therapy-landing .section-title p,
body.pain-therapy-landing .condition-card h3,
body.pain-therapy-landing .condition-card p,
body.pain-therapy-landing .location-clinica h3,
body.pain-therapy-landing .location-clinica p {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

body.pain-therapy-landing .btn {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.2;
}

body.pain-therapy-landing .floating-call-cta {
    max-width: calc(100vw - 28px);
}

body.pain-therapy-landing .floating-call-cta__label {
    white-space: normal;
    overflow-wrap: anywhere;
}

/* GTranslate may set the page direction, but the layout keeps its LTR order. */
:is(html[dir="rtl"], html[lang^="he"], html[lang^="iw"], html[lang^="yi"], html[lang^="ar"], html[lang^="fa"], html[lang^="ur"]) body.pain-therapy-landing,
body.pain-therapy-landing.translated-rtl {
    direction: ltr;
}

:is(:is(html[dir="rtl"], html[lang^="he"], html[lang^="iw"], html[lang^="yi"], html[lang^="ar"], html[lang^="fa"], html[lang^="ur"]) body.pain-therapy-landing, body.pain-therapy-landing.translated-rtl) :is(.navbar, .header-actions, .hero-grid, .hero-condition-cards, .trust-marquee-track, .trust-marquee-group, .conditions-grid, .condition-card, .process-grid, .evaluation-layout, .locations-Clinic > ul, .footer-grid) {
    direction: ltr;
}

:is(:is(html[dir="rtl"], html[lang^="he"], html[lang^="iw"], html[lang^="yi"], html[lang^="ar"], html[lang^="fa"], html[lang^="ur"]) body.pain-therapy-landing, body.pain-therapy-landing.translated-rtl) :is(h1, h2, h3, p, label, legend, .btn, .hero-label, .section-title span, .floating-call-cta__label, .location-medical, .footer-links a, .footer-links span, input, textarea) {
    direction: rtl;
    unicode-bidi: plaintext;
}

:is(:is(html[dir="rtl"], html[lang^="he"], html[lang^="iw"], html[lang^="yi"], html[lang^="ar"], html[lang^="fa"], html[lang^="ur"]) body.pain-therapy-landing, body.pain-therapy-landing.translated-rtl) :is(.hero h1, .hero-subtitle, .hero-description, .condition-card__content h3, .condition-card__content p, .footer-grid h3, .footer-grid p, .footer-links, .site-footer .legal, .form-group label, .question-title, .option label, legend, input, textarea) {
    text-align: right;
}

:is(:is(html[dir="rtl"], html[lang^="he"], html[lang^="iw"], html[lang^="yi"], html[lang^="ar"], html[lang^="fa"], html[lang^="ur"]) body.pain-therapy-landing, body.pain-therapy-landing.translated-rtl) :is(.section-title h2, .section-title p, .hero-condition-card h3, .process-card h3, .process-card p, .locations-Clinic > p, .location-clinica h3, .location-clinica p, .location-medical, .btn, .floating-call-cta__label) {
    text-align: center;
}

:is(:is(html[dir="rtl"], html[lang^="he"], html[lang^="iw"], html[lang^="yi"], html[lang^="ar"], html[lang^="fa"], html[lang^="ur"]) body.pain-therapy-landing, body.pain-therapy-landing.translated-rtl) :is(.logo, .phone.notranslate) {
    direction: ltr;
    unicode-bidi: isolate;
}
