/* =============================================================================
   PREVENSALUD — NUESTROS TRATAMIENTOS
   nuestros-tratamientos.css · v1.0
   ============================================================================= */

/* ─── Variables locales ─── */
.ps-trat-hero,
.ps-trat-trustbar,
.ps-trat-detail-section,
.ps-trat-final-cta {
    --trat-blue: #003366;
    --trat-blue-dark: #001f4d;
    --trat-blue-light: #003d80;
    --trat-green: #00c896;
    --trat-green-light: #00e0a8;
    --trat-green-dark: #00a87a;
    --trat-text: #1a2440;
    --trat-muted: #5a6577;
    --trat-bg: #ffffff;
    --trat-soft: #f4f7fb;
}

/* ==========================================================================
   HERO — usa el shader grainient compartido (#grainient-canvas-container)
   ========================================================================== */
.ps-trat-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 150px 20px 60px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.ps-trat-hero #grainient-canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ps-trat-hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.ps-trat-hero-header {
    max-width: 880px;
}

.ps-trat-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--trat-blue);
    padding: 6px 16px;
    border: 1px solid rgba(0, 51, 102, 0.25);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 28px;
}

.ps-trat-hero-title {
    font-family: 'Montserrat', 'Inter', system-ui, sans-serif;
    font-size: clamp(2.4rem, 6.5vw, 4.6rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--trat-blue);
    margin: 0 0 24px 0;
    letter-spacing: -0.025em;
}

.ps-trat-hero-highlight {
    color: var(--trat-green-dark);
}

.ps-trat-hero-lead {
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    line-height: 1.65;
    color: var(--trat-muted);
    margin: 0 auto;
    max-width: 680px;
}

.ps-trat-hero-lead strong {
    color: var(--trat-blue);
    font-weight: 700;
}

/* ==========================================================================
   TRUSTBAR — Marquee azul corporativo
   ========================================================================== */
.ps-trat-trustbar {
    position: relative;
    width: 100%;
    background-color: var(--trat-blue);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 22px 0;
}

.ps-trat-trustbar::before,
.ps-trat-trustbar::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.ps-trat-trustbar::before {
    left: 0;
    background: linear-gradient(90deg, var(--trat-blue) 0%, transparent 100%);
}

.ps-trat-trustbar::after {
    right: 0;
    background: linear-gradient(270deg, var(--trat-blue) 0%, transparent 100%);
}

.ps-trat-trust-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ps-trat-trust-scroll 38s linear infinite;
    will-change: transform;
    gap: 0;
}

.ps-trat-trustbar:hover .ps-trat-trust-track {
    animation-play-state: paused;
}

.ps-trat-trust-pill {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 0 8px;
    white-space: nowrap;
}

.ps-trat-trust-num {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(1.5rem, 3.6vw, 2.4rem);
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1;
}

.ps-trat-trust-lbl {
    font-size: clamp(0.85rem, 1.5vw, 1.05rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.ps-trat-trust-dot {
    color: var(--trat-green);
    font-size: 1rem;
    line-height: 1;
    margin: 0 28px;
    flex-shrink: 0;
}

@keyframes ps-trat-trust-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 600px) {
    .ps-trat-trustbar {
        padding: 16px 0;
    }

    .ps-trat-trust-track {
        animation-duration: 24s;
    }

    .ps-trat-trust-dot {
        margin: 0 18px;
    }
}

/* ==========================================================================
   DETAIL SECTION — Servicios desglosados
   ========================================================================== */
.ps-trat-detail-section {
    background: var(--trat-bg);
    padding: clamp(64px, 10vw, 112px) 0;
}

.ps-trat-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.ps-trat-section-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(48px, 6vw, 80px);
}

.ps-trat-section-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--trat-blue);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.ps-trat-section-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--trat-muted);
    margin: 0;
}

/* Grid de cards centradas */
.ps-trat-services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: clamp(20px, 3vw, 28px);
}

.ps-trat-card {
    background: #ffffff;
    border: 1px solid rgba(0, 51, 102, 0.08);
    border-radius: 24px;
    padding: clamp(28px, 4vw, 40px) clamp(24px, 3vw, 36px);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ps-trat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--trat-blue), var(--trat-green));
    border-radius: 0 0 3px 3px;
    transition: width 0.4s ease;
}

.ps-trat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 44px rgba(0, 51, 102, 0.12);
    border-color: rgba(0, 200, 150, 0.30);
}

.ps-trat-card:hover::before {
    width: 60%;
}

/* Ícono circular */
.ps-trat-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 51, 102, 0.08) 0%, rgba(0, 200, 150, 0.12) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--trat-blue);
    margin-bottom: 22px;
    flex-shrink: 0;
    transition: background 0.3s ease, transform 0.3s ease;
}

.ps-trat-card:hover .ps-trat-card-icon {
    background: linear-gradient(135deg, var(--trat-blue) 0%, var(--trat-green-dark) 100%);
    color: #ffffff;
    transform: scale(1.05);
}

.ps-trat-card-icon svg {
    width: 34px;
    height: 34px;
}

/* Tag pill */
.ps-trat-service-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--trat-green-dark);
    background: rgba(0, 200, 150, 0.12);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 14px;
}

.ps-trat-card-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(1.45rem, 2.6vw, 1.75rem);
    font-weight: 900;
    line-height: 1.2;
    color: var(--trat-blue);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.ps-trat-card-intro {
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--trat-text);
    margin: 0 0 14px 0;
    font-weight: 500;
}

.ps-trat-card-desc {
    font-size: 0.94rem;
    line-height: 1.65;
    color: var(--trat-muted);
    margin: 0 0 22px 0;
}

/* Lista de items — alineada a la izquierda dentro del card centrado */
.ps-trat-service-items {
    list-style: none;
    padding: 0;
    margin: 0 0 26px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-align: left;
    width: 100%;
}

.ps-trat-service-items li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.93rem;
    color: var(--trat-text);
    line-height: 1.5;
}

.ps-trat-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--trat-green);
    color: #ffffff;
    flex-shrink: 0;
    margin-top: 1px;
}

.ps-trat-check svg {
    width: 13px;
    height: 13px;
}

.ps-trat-service-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--trat-blue);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 2px solid var(--trat-blue);
    transition: gap 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    margin-top: auto;
}

.ps-trat-service-cta svg {
    width: 18px;
    height: 18px;
}

.ps-trat-service-cta:hover {
    gap: 14px;
    color: var(--trat-green-dark);
    border-color: var(--trat-green);
}

/* ==========================================================================
   PRODUCTOS NATURALES + CTA CATÁLOGO
   ========================================================================== */
.ps-trat-products-cta {
    margin-top: clamp(48px, 6vw, 80px);
    border-radius: 32px;
    background: linear-gradient(135deg, #003d80 0%, #003366 55%, #001f4d 100%);
    padding: clamp(40px, 6vw, 72px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 51, 102, 0.30);
}

.ps-trat-products-cta::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 200, 150, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ps-trat-products-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: clamp(32px, 5vw, 56px);
    align-items: center;
}

.ps-trat-products-content .ps-trat-service-tag {
    color: var(--trat-green);
    background: rgba(0, 200, 150, 0.15);
}

.ps-trat-products-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(1.9rem, 4.2vw, 2.8rem);
    font-weight: 900;
    line-height: 1.1;
    color: #ffffff;
    margin: 0 0 20px 0;
    letter-spacing: -0.02em;
}

.ps-trat-highlight-green {
    color: var(--trat-green);
}

.ps-trat-products-desc {
    font-size: 1.02rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 28px 0;
}

.ps-trat-products-desc strong {
    color: #ffffff;
    font-weight: 700;
}

.ps-trat-products-features {
    list-style: none;
    margin: 0 0 32px 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ps-trat-products-features li {
    display: grid;
    grid-template-columns: minmax(140px, auto) 1fr;
    gap: 14px;
    align-items: baseline;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ps-trat-products-features strong {
    color: var(--trat-green);
    font-weight: 800;
    font-size: 0.95rem;
}

.ps-trat-products-features span {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.92rem;
}

.ps-trat-products-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Visual mini productos */
.ps-trat-products-visual {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.ps-trat-product-mini {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.ps-trat-product-mini:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(0, 200, 150, 0.4);
}

.ps-trat-product-mini img {
    width: 100%;
    max-width: 110px;
    height: 110px;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

.ps-trat-product-mini span {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   BOTONES PRIMARIOS / GHOST
   ========================================================================== */
.ps-trat-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(160deg, var(--trat-green-light) 0%, var(--trat-green) 45%, var(--trat-green-dark) 100%);
    color: #ffffff;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.98rem;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 10px 28px rgba(0, 200, 150, 0.35);
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    text-shadow: 0 1px 2px rgba(0, 51, 102, 0.25);
}

.ps-trat-btn-primary svg {
    width: 18px;
    height: 18px;
}

.ps-trat-btn-primary:hover {
    filter: brightness(1.08);
    box-shadow: 0 14px 34px rgba(0, 200, 150, 0.45);
    transform: translateY(-2px);
}

.ps-trat-btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 16px 32px;
    border-radius: 100px;
    font-size: 0.98rem;
    font-weight: 700;
    text-decoration: none;
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ps-trat-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.6);
}

.ps-trat-btn-ghost--dark {
    color: var(--trat-blue);
    border-color: var(--trat-blue);
}

.ps-trat-btn-ghost--dark:hover {
    background: var(--trat-blue);
    color: #ffffff;
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.ps-trat-final-cta {
    background: var(--trat-soft);
    padding: clamp(56px, 9vw, 96px) 0;
}

.ps-trat-final-card {
    background: #ffffff;
    border-radius: 28px;
    padding: clamp(40px, 6vw, 72px);
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 51, 102, 0.10);
    border: 1px solid rgba(0, 51, 102, 0.06);
    max-width: 920px;
    margin: 0 auto;
}

.ps-trat-final-title {
    font-family: 'Montserrat', system-ui, sans-serif;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--trat-blue);
    margin: 0 0 16px 0;
    letter-spacing: -0.02em;
}

.ps-trat-final-desc {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--trat-muted);
    margin: 0 0 32px 0;
    max-width: 620px;
    margin-inline: auto;
}

.ps-trat-final-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .ps-trat-products-inner {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .ps-trat-products-features li {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 600px) {
    .mobile-hide {
        display: none;
    }

    .ps-trat-hero {
        min-height: auto;
        padding: 120px 20px 60px;
    }

    .ps-trat-products-cta {
        border-radius: 22px;
        padding: 36px 24px;
    }

    .ps-trat-products-visual {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .ps-trat-product-mini img {
        height: 90px;
    }

    .ps-trat-btn-primary,
    .ps-trat-btn-ghost {
        width: 100%;
        justify-content: center;
    }

    .ps-trat-final-card {
        padding: 36px 24px;
        border-radius: 22px;
    }
}
