:root {
    --rup-blue: #0019ff;
    --rup-blue-dark: #0010a8;
    --rup-dark: #05070d;
    --rup-black: #111111;
    --rup-white: #ffffff;
    --rup-gray: #f4f6fb;
    --rup-soft-blue: #d9e2ff;
    --rup-text: #d9e2ff;
    --rup-muted: #667085;
    --rup-border: rgba(0, 25, 255, 0.14);
    --container: 1160px;
    --radius: 28px;
    --shadow: 0 24px 70px rgba(5, 7, 13, 0.16);
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 1rem;
    --space-4: 1.5rem;
    --space-5: 3rem;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--rup-black);
    background: var(--rup-white);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.section {
    padding: 108px 0;
}

.section-dark {
    color: var(--rup-white);
    background: var(--rup-dark);
}

.section-soft {
    background: linear-gradient(180deg, #f7f8fc 0%, #ffffff 100%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--rup-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-dark .eyebrow,
.hero .eyebrow {
    color: var(--rup-soft-blue);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    max-width: 760px;
    margin-bottom: 24px;
    font-size: clamp(42px, 7vw, 82px);
    line-height: 0.95;
    letter-spacing: -0.065em;
}

h2 {
    margin-bottom: 22px;
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.03;
    letter-spacing: -0.045em;
}

h3 {
    margin-bottom: 12px;
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

p {
    color: var(--rup-muted);
}

.section-dark p,
.hero p {
    color: rgba(255, 255, 255, 0.76);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--rup-white);
    background: var(--rup-blue);
    box-shadow: 0 18px 40px rgba(0, 25, 255, 0.28);
}

.btn-primary:hover {
    background: var(--rup-blue-dark);
}

.btn-secondary {
    color: var(--rup-white);
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
}

.btn-outline {
    color: var(--rup-blue);
    border-color: var(--rup-border);
    background: var(--rup-white);
}

.btn-small {
    min-height: 42px;
    padding: 0 18px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    margin-top: 12px;
    color: var(--rup-blue);
    font-weight: 800;
}

.site-header {
    position: fixed;
    top: 0;
    z-index: 100;
    width: 100%;
    overflow: visible;
    padding: 0;
    color: var(--rup-white);
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        padding 0.25s ease,
        color 0.25s ease;
}

.site-header.is-scrolled,
.site-header.is-open {
    padding: 0;
    color: var(--rup-dark);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(5, 7, 13, 0.12);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.site-header--light {
    color: var(--rup-dark);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 34px rgba(5, 7, 13, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.brand {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    height: 54px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0;
}

.brand::before {
    position: absolute;
    inset: -4px -8px;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 24px rgba(5, 7, 13, 0.12);
    content: '';
    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header.is-scrolled .brand::before,
.site-header.is-open .brand::before,
.site-header--light .brand::before {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.brand-symbol {
    width: auto;
    height: 54px;
    flex-shrink: 0;
    transform: translateY(0) scale(1);
    transform-origin: top center;
    transition:
        height 0.3s ease,
        transform 0.3s ease,
        filter 0.3s ease;
}

.brand-wordmark {
    display: block;
    width: auto;
    height: 34px;
    max-width: 240px;
    flex-shrink: 1;
    object-fit: contain;
    transition:
        height 0.25s ease,
        opacity 0.25s ease;
}

.footer-logo {
    width: auto;
    height: 70px;
}

.site-header.is-scrolled .brand-symbol,
.site-header.is-open .brand-symbol,
.site-header--light .brand-symbol {
    height: 76px;
    transform: translateY(14px) scale(1.02);
    filter: drop-shadow(0 14px 24px rgba(5, 7, 13, 0.18));
}

.site-header.is-scrolled .brand-wordmark,
.site-header.is-open .brand-wordmark,
.site-header--light .brand-wordmark {
    height: 30px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 26px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 700;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-nav a {
    transition:
        color 0.25s ease,
        border-color 0.25s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
    color: var(--rup-white);
}

.site-header.is-scrolled .site-nav,
.site-header.is-open .site-nav,
.site-header--light .site-nav {
    color: #475569;
}

.site-header.is-scrolled .site-nav a:hover,
.site-header.is-scrolled .site-nav a.is-active,
.site-header.is-open .site-nav a:hover,
.site-header.is-open .site-nav a.is-active,
.site-header--light .site-nav a:hover,
.site-header--light .site-nav a.is-active {
    color: var(--rup-blue);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--rup-white);
    transition: background 0.25s ease;
}

.site-header.is-scrolled .nav-toggle,
.site-header.is-open .nav-toggle,
.site-header--light .nav-toggle {
    border-color: rgba(0, 25, 255, 0.16);
    background: rgba(0, 25, 255, 0.06);
}

.site-header.is-scrolled .nav-toggle span,
.site-header.is-open .nav-toggle span,
.site-header--light .nav-toggle span {
    background: var(--rup-blue);
}

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 140px 0 96px;
}

.internal-hero {
    min-height: 60vh;
    display: flex;
    align-items: end;
    padding: 150px 0 86px;
}

.internal-hero h1 {
    max-width: 900px;
    margin-bottom: 18px;
    font-size: clamp(40px, 6vw, 68px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.internal-hero p {
    max-width: 780px;
    font-size: 18px;
}

.doctors-bg {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(5, 7, 13, 0.98), rgba(5, 7, 13, 0.78)),
        url('../images/hero-slide-4.jpg') center/cover no-repeat;
    opacity: 1;
}

/* ===========================================
   Hero Slider
   =========================================== */

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-slider::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 7, 13, 0.94) 0%, rgba(5, 7, 13, 0.72) 48%, rgba(0, 25, 255, 0.3) 100%);
    pointer-events: none;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: opacity 0.8s ease;
}

.hero-slide.is-active {
    opacity: 1;
}

.hero-slider__control {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: var(--rup-white);
    background: rgba(5, 7, 13, 0.36);
    backdrop-filter: blur(10px);
    transform: translateY(-50%);
    cursor: pointer;
}

.hero-slider__control--prev {
    left: 20px;
}

.hero-slider__control--next {
    right: 20px;
}

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
}

.hero-slider__dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.36);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.hero-slider__dot.is-active {
    transform: scale(1.1);
    background: var(--rup-white);
}

.hero-grid-lines {
    position: absolute;
    inset: auto 0 0;
    height: 260px;
    opacity: 0.2;
    background: repeating-radial-gradient(ellipse at bottom left, transparent 0 18px, rgba(0, 25, 255, 0.9) 19px 21px, transparent 22px 36px);
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.75fr);
    gap: 54px;
    align-items: end;
}

.hero-copy p {
    max-width: 700px;
    font-size: 18px;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.hero-card,
.doctor-list-card {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    padding: 32px;
    background: rgba(8, 12, 24, 0.64);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.hero-card-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    border-radius: 20px;
    color: var(--rup-white);
    background: var(--rup-blue);
    font-weight: 900;
    letter-spacing: -0.08em;
}

.hero-card h2 {
    font-size: 28px;
}

.check-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 24px 0 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 28px;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 600;
}

.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--rup-blue);
    font-weight: 900;
}

.trust-strip {
    position: relative;
    z-index: 2;
    margin-top: -54px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: var(--rup-white);
    box-shadow: var(--shadow);
}

.trust-grid article {
    padding: 28px;
    border-right: 1px solid #edf0f7;
}

.trust-grid article:last-child {
    border-right: 0;
}

.trust-grid strong,
.trust-grid span {
    display: block;
}

.trust-grid strong {
    margin-bottom: 6px;
    font-size: 16px;
}

.trust-grid span {
    color: var(--rup-muted);
    font-size: 14px;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr 0.92fr;
    gap: 72px;
    align-items: center;
}

.section-copy p {
    font-size: 17px;
}

.image-panel {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border-radius: var(--radius);
    background: #e9edf7;
    box-shadow: var(--shadow);
}

.image-panel img {
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.image-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 25, 255, 0.08), rgba(5, 7, 13, 0.52));
}

.image-panel-badge {
    position: absolute;
    left: 24px;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    padding: 22px;
    border-radius: 22px;
    color: var(--rup-white);
    background: rgba(5, 7, 13, 0.68);
    backdrop-filter: blur(18px);
}

.image-panel-badge strong,
.image-panel-badge span {
    display: block;
}

.image-panel-badge span {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.76);
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading p {
    font-size: 17px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ===========================================
   Content Media Utilities
   =========================================== */

.content-media-grid {
    display: grid;
    gap: 18px;
}

.image-card {
    margin: 0;
    overflow: hidden;
    border: 0px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    background: #eef2fb;
    box-shadow: 0 20px 40px rgba(5, 7, 13, 0.14);
}

.section-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.service-card {
    min-height: 100%;
    padding: 32px;
    border: 1px solid #e9edf7;
    border-radius: var(--radius);
    background: var(--rup-white);
    box-shadow: 0 18px 42px rgba(5, 7, 13, 0.06);
}

.featured-card {
    color: var(--rup-white);
    border-color: rgba(0, 25, 255, 0.5);
    background: linear-gradient(180deg, var(--rup-blue) 0%, #071182 100%);
    box-shadow: 0 24px 70px rgba(0, 25, 255, 0.22);
}

.featured-card p,
.featured-card li {
    color: rgba(255, 255, 255, 0.82);
}

.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    margin-bottom: 24px;
    border-radius: 18px;
    color: var(--rup-blue);
    background: rgba(0, 25, 255, 0.08);
    font-weight: 900;
}

.featured-card .card-icon {
    color: var(--rup-white);
    background: rgba(255, 255, 255, 0.16);
}

.service-card .image-card {
    margin-bottom: 24px;
    border-color: #e2e8f8;
    box-shadow: none;
}

.featured-card .image-card {
    border-color: rgba(255, 255, 255, 0.24);
}

.service-card ul {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding-left: 18px;
    color: var(--rup-muted);
}

.services-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 980px;
    margin-inline: auto;
    align-items: stretch;
}

.services-grid--four .service-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.services-grid--four .service-card ul {
    margin-top: auto;
    padding-top: 20px;
}

.services-grid--four .section-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.services-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.services-grid--three .service-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    color: var(--rup-black);
    border-color: #e9edf7;
    background: var(--rup-white);
    box-shadow: 0 18px 42px rgba(5, 7, 13, 0.06);
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.services-grid--three .service-card p,
.services-grid--three .service-card li,
.services-grid--three .card-icon,
.services-grid--three .service-card .image-card {
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.services-grid--three .service-card ul {
    margin-top: auto;
    padding-top: 20px;
}

.services-grid--three .section-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.services-grid--three .service-card:hover,
.services-grid--three .service-card:focus-within,
.services-grid--three .service-card.is-active {
    color: var(--rup-white);
    border-color: rgba(0, 25, 255, 0.7);
    background: linear-gradient(180deg, var(--rup-blue) 0%, #071182 100%);
    box-shadow: 0 24px 70px rgba(0, 25, 255, 0.24);
    transform: translateY(-6px);
}

.services-grid--three .service-card:hover p,
.services-grid--three .service-card:hover li,
.services-grid--three .service-card:focus-within p,
.services-grid--three .service-card:focus-within li,
.services-grid--three .service-card.is-active p,
.services-grid--three .service-card.is-active li {
    color: var(--rup-white);
}

.services-grid--three .service-card:hover .card-icon,
.services-grid--three .service-card:focus-within .card-icon,
.services-grid--three .service-card.is-active .card-icon {
    color: var(--rup-white);
    background: rgba(255, 255, 255, 0.16);
}

.services-grid--three .service-card:hover .image-card,
.services-grid--three .service-card:focus-within .image-card,
.services-grid--three .service-card.is-active .image-card {
    border-color: rgba(255, 255, 255, 0.24);
}

.services-grid--three .service-card:hover .section-image,
.services-grid--three .service-card:focus-within .section-image,
.services-grid--three .service-card.is-active .section-image {
    transform: scale(1.03);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.feature-grid article {
    padding: 28px;
    border-top: 2px solid var(--rup-blue);
    border-radius: 0 0 24px 24px;
    background: #fbfcff;
    text-align: justify;
}

.feature-grid span {
    display: block;
    margin-bottom: 24px;
    color: var(--rup-blue);
    font-size: 13px;
    font-weight: 900;
}

.doctors {
    position: relative;
    overflow: hidden;
}

.doctors-bg {
    background:
        linear-gradient(90deg, rgba(5, 7, 13, 0.98), rgba(5, 7, 13, 0.78)),
        url('../images/hero-slide-4.jpg') center/cover no-repeat;
}

.doctors .container {
    position: relative;
}

.doctor-list-card h3 {
    margin-bottom: 20px;
}

.doctors .image-card {
    border-color: rgba(255, 255, 255, 0.18);
}

.institutional-block {
    padding: 96px 0;
    text-align: center;
    color: var(--rup-white);
    background: var(--rup-blue);
}

.institutional-block .container {
    max-width: 880px;
}

.institutional-block .eyebrow,
.institutional-block p {
    color: rgba(255, 255, 255, 0.78);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(380px, 1.1fr);
    gap: clamp(40px, 6vw, 88px);
    align-items: start;
}

.contact-form-column {
    min-width: 0;
}

.contact-details {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    border: 1px solid #e9edf7;
    border-radius: 18px;
    background: var(--rup-white);
    box-shadow: 0 12px 32px rgba(5, 7, 13, 0.06);
}

.contact-detail__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--rup-blue);
    background: rgba(0, 25, 255, 0.08);
    font-size: 16px;
}

.contact-detail__text {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.contact-detail__label {
    color: var(--rup-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-detail__value {
    color: var(--rup-black);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

a.contact-detail__value:hover {
    color: var(--rup-blue);
}

.contact-form {
    display: grid;
    gap: 18px;
}

.contact-form--section {
    padding: 34px;
    border: 1px solid #e9edf7;
    border-radius: var(--radius);
    background: var(--rup-white);
    box-shadow: var(--shadow);
}

.contact-form [data-contact-form-fields] {
    display: grid;
    gap: 18px;
}

.contact-form__field {
    display: grid;
    gap: 8px;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: #344054;
    font-size: 13px;
    font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    border: 1px solid #d9deeb;
    border-radius: 16px;
    padding: 14px 16px;
    color: var(--rup-black);
    background: #fbfcff;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--rup-blue);
    box-shadow: 0 0 0 4px rgba(0, 25, 255, 0.08);
}

.contact-form .survey-message {
    margin: 0;
}

.contact-form .survey-thanks-card {
    padding: 0;
    max-width: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
}

.site-footer {
    padding: 54px 0 28px;
    color: rgba(255, 255, 255, 1);
    background: #03050a;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr 0.6fr;
    gap: 32px;
    padding-bottom: 36px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid strong,
.footer-grid a,
.footer-grid span {
    display: block;
}

.footer-grid strong {
    margin-bottom: 12px;
    color: var(--rup-white);
}

.footer-grid a {
    margin-bottom: 8px;
}

.footer-grid a:hover {
    color: var(--rup-white);
}

.footer-logo {
    margin-bottom: 16px;
}

.footer-bottom {
    padding-top: 24px;
    font-size: 13px;
}

/* ===========================================
   Utility Classes
   Inspired by Bootstrap/Tailwind (manual)
   =========================================== */

/* Display */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }

/* Flex */
.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-nowrap { flex-wrap: nowrap !important; }

.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-around { justify-content: space-around !important; }
.justify-evenly { justify-content: space-evenly !important; }

.align-start { align-items: flex-start !important; }
.align-end { align-items: flex-end !important; }
.align-center { align-items: center !important; }
.align-stretch { align-items: stretch !important; }
.align-baseline { align-items: baseline !important; }

/* Text alignment */
.text-left { text-align: left !important; }
.text-center { text-align: center !important; }
.text-right { text-align: right !important; }
.text-justify-long {
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.75;
}

.text-justify-long + .text-justify-long {
    margin-top: 1rem;
}

/* Width / Height */
.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* Gap scale */
.gap-1 { gap: var(--space-1) !important; }
.gap-2 { gap: var(--space-2) !important; }
.gap-3 { gap: var(--space-3) !important; }
.gap-4 { gap: var(--space-4) !important; }
.gap-5 { gap: var(--space-5) !important; }

/* Margin top */
.mt-1 { margin-top: var(--space-1) !important; }
.mt-2 { margin-top: var(--space-2) !important; }
.mt-3 { margin-top: var(--space-3) !important; }
.mt-4 { margin-top: var(--space-4) !important; }
.mt-5 { margin-top: var(--space-5) !important; }

/* Margin bottom */
.mb-1 { margin-bottom: var(--space-1) !important; }
.mb-2 { margin-bottom: var(--space-2) !important; }
.mb-3 { margin-bottom: var(--space-3) !important; }
.mb-4 { margin-bottom: var(--space-4) !important; }
.mb-5 { margin-bottom: var(--space-5) !important; }

/* Margin horizontal */
.mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

.mx-1 {
    margin-left: var(--space-1) !important;
    margin-right: var(--space-1) !important;
}

.mx-2 {
    margin-left: var(--space-2) !important;
    margin-right: var(--space-2) !important;
}

.mx-3 {
    margin-left: var(--space-3) !important;
    margin-right: var(--space-3) !important;
}

.mx-4 {
    margin-left: var(--space-4) !important;
    margin-right: var(--space-4) !important;
}

.mx-5 {
    margin-left: var(--space-5) !important;
    margin-right: var(--space-5) !important;
}

/* Margin vertical */
.my-1 {
    margin-top: var(--space-1) !important;
    margin-bottom: var(--space-1) !important;
}

.my-2 {
    margin-top: var(--space-2) !important;
    margin-bottom: var(--space-2) !important;
}

.my-3 {
    margin-top: var(--space-3) !important;
    margin-bottom: var(--space-3) !important;
}

.my-4 {
    margin-top: var(--space-4) !important;
    margin-bottom: var(--space-4) !important;
}

.my-5 {
    margin-top: var(--space-5) !important;
    margin-bottom: var(--space-5) !important;
}

/* Padding top */
.pt-1 { padding-top: var(--space-1) !important; }
.pt-2 { padding-top: var(--space-2) !important; }
.pt-3 { padding-top: var(--space-3) !important; }
.pt-4 { padding-top: var(--space-4) !important; }
.pt-5 { padding-top: var(--space-5) !important; }

/* Padding bottom */
.pb-1 { padding-bottom: var(--space-1) !important; }
.pb-2 { padding-bottom: var(--space-2) !important; }
.pb-3 { padding-bottom: var(--space-3) !important; }
.pb-4 { padding-bottom: var(--space-4) !important; }
.pb-5 { padding-bottom: var(--space-5) !important; }

/* Padding horizontal */
.px-1 {
    padding-left: var(--space-1) !important;
    padding-right: var(--space-1) !important;
}

.px-2 {
    padding-left: var(--space-2) !important;
    padding-right: var(--space-2) !important;
}

.px-3 {
    padding-left: var(--space-3) !important;
    padding-right: var(--space-3) !important;
}

.px-4 {
    padding-left: var(--space-4) !important;
    padding-right: var(--space-4) !important;
}

.px-5 {
    padding-left: var(--space-5) !important;
    padding-right: var(--space-5) !important;
}

/* Padding vertical */
.py-1 {
    padding-top: var(--space-1) !important;
    padding-bottom: var(--space-1) !important;
}

.py-2 {
    padding-top: var(--space-2) !important;
    padding-bottom: var(--space-2) !important;
}

.py-3 {
    padding-top: var(--space-3) !important;
    padding-bottom: var(--space-3) !important;
}

.py-4 {
    padding-top: var(--space-4) !important;
    padding-bottom: var(--space-4) !important;
}

.py-5 {
    padding-top: var(--space-5) !important;
    padding-bottom: var(--space-5) !important;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 980px) {
    .header-inner {
        min-height: 68px;
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .brand {
        gap: 10px;
        height: 48px;
    }

    .brand-symbol {
        height: 48px;
    }

    .brand-wordmark {
        height: 28px;
        max-width: 190px;
    }

    .site-header.is-scrolled .brand-symbol,
    .site-header.is-open .brand-symbol,
    .site-header--light .brand-symbol {
        height: 66px;
        transform: translateY(10px) scale(1.01);
    }

    .site-header.is-scrolled .brand-wordmark,
    .site-header.is-open .brand-wordmark,
    .site-header--light .brand-wordmark {
        height: 26px;
    }

    .header-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 24px);
        left: 20px;
        right: 20px;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        overflow: hidden;
        border: 1px solid rgba(0, 25, 255, 0.12);
        border-radius: 22px;
        color: #334155;
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 44px rgba(5, 7, 13, 0.14);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        padding: 16px 20px;
        border-bottom: 1px solid #edf1f8;
        color: #334155;
    }

    .site-nav a:hover,
    .site-nav a.is-active,
    .site-header.is-open .site-nav a:hover,
    .site-header.is-open .site-nav a.is-active,
    .site-header.is-scrolled .site-nav.is-open a:hover,
    .site-header.is-scrolled .site-nav.is-open a.is-active {
        color: var(--rup-blue);
    }

    .site-nav a:last-child {
        border-bottom: 0;
    }

    .hero-content,
    .split-layout,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .content-media-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-slider__control {
        width: 40px;
        height: 40px;
    }

    .hero-slider__control--prev {
        left: 14px;
    }

    .hero-slider__control--next {
        right: 14px;
    }

    .trust-grid,
    .cards-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid--four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 100%;
        gap: 22px;
    }

    .services-grid--three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .trust-grid article:nth-child(2) {
        border-right: 0;
    }

    .trust-grid article {
        border-bottom: 1px solid #edf0f7;
    }
}

@media (max-width: 640px) {
    .text-justify-long {
        text-align: left;
        hyphens: none;
        -webkit-hyphens: none;
    }

    .container {
        width: min(100% - 28px, var(--container));
    }

    .section {
        padding: 76px 0;
    }

    .header-inner {
        min-height: 62px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .brand {
        gap: 8px;
        height: 42px;
        max-width: calc(100% - 64px);
    }

    .brand-symbol {
        height: 42px;
    }

    .brand-wordmark {
        height: 23px;
        max-width: 150px;
    }

    .site-header.is-scrolled .brand-symbol,
    .site-header.is-open .brand-symbol,
    .site-header--light .brand-symbol {
        height: 56px;
        transform: translateY(8px);
    }

    .site-header.is-scrolled .brand-wordmark,
    .site-header.is-open .brand-wordmark,
    .site-header--light .brand-wordmark {
        height: 22px;
    }

    .hero {
        padding-top: 118px;
    }

    .hero-slider__control {
        display: none;
    }

    .hero-slider__dots {
        bottom: 16px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .hero-card,
    .doctor-list-card,
    .contact-form--section,
    .service-card {
        padding: 24px;
    }

    .trust-grid,
    .cards-grid,
    .feature-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .services-grid--four {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .services-grid--three {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .trust-strip {
        margin-top: -28px;
    }

    .trust-grid article {
        border-right: 0;
    }

    .image-panel,
    .image-panel img {
        min-height: 380px;
    }
}

/* ===========================================
   Servicios Page
   =========================================== */

.services-hero--compact {
    min-height: 46vh;
    padding: 122px 0 72px;
}

.services-hero {
    position: relative;
    overflow: hidden;
}

.services-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, rgba(5, 7, 13, 0.96) 0%, rgba(5, 7, 13, 0.82) 55%, rgba(0, 25, 255, 0.2) 100%),
                url('../images/hero-servicios.jpg') center/cover no-repeat;
}

.services-hero .container {
    position: relative;
    z-index: 1;
}

.services-hero p {
    max-width: 820px;
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.94);
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 500;
    line-height: 1.75;
    letter-spacing: 0.005em;
    text-wrap: pretty;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.42);
}

/* --- Loading / Error --- */

.study-loading,
.study-load-error {
    padding: 32px 0;
    text-align: center;
    color: #94a3b8;
    font-size: 15px;
    font-weight: 500;
}

/* --- Catalog Section --- */

.study-catalog .section-heading {
    margin-bottom: 28px;
}

/* --- Accordion --- */

.study-catalog,
.study-catalog .container,
#studyCatalog {
    opacity: 1;
    visibility: visible;
    transform: none;
}

#studyCatalog {
    min-height: 200px;
}

.study-accordion {
    display: grid;
    gap: 16px;
}

.study-accordion details {
    border: 1.5px solid #e2eaf8;
    border-radius: 22px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(5, 7, 13, 0.04);
    transition: box-shadow 0.2s ease;
}

.study-accordion details[open] {
    box-shadow: 0 8px 32px rgba(0, 25, 255, 0.08);
    border-color: rgba(0, 25, 255, 0.2);
}

.study-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--rup-dark);
    list-style: none;
    user-select: none;
}

.study-accordion summary::-webkit-details-marker {
    display: none;
}

.study-accordion summary::after {
    content: '';
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230019ff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    transition: transform 0.22s ease;
}

.study-accordion details[open] summary::after {
    transform: rotate(180deg);
}

.service-card-link {
    cursor: pointer;
}

.service-card-link:focus-visible {
    outline: 3px solid rgba(0, 25, 255, 0.35);
    outline-offset: 4px;
}

.study-accordion details {
    scroll-margin-top: 120px;
}

.study-accordion details.is-highlighted {
    border-color: var(--rup-blue);
    box-shadow:
        0 0 0 4px rgba(0, 25, 255, 0.1),
        0 18px 42px rgba(0, 25, 255, 0.16);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.study-accordion-content {
    padding: 0 24px 24px;
}

.study-count {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(0, 25, 255, 0.07);
    color: var(--rup-blue);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

/* --- Subgroups --- */

.study-subgroup + .study-subgroup {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eef2fb;
}

.study-subgroup h3 {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rup-blue);
}

/* --- Study List --- */

.study-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.study-item {
    padding: 10px 14px;
    border: 1px solid #eef1fa;
    border-radius: 12px;
    color: #334155;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    transition: border-color 0.18s ease, background 0.18s ease;
}

.study-item:hover {
    border-color: rgba(0, 25, 255, 0.22);
    background: #f5f8ff;
    color: var(--rup-dark);
}

.study-item mark {
    padding: 1px 3px;
    border-radius: 4px;
    background: #d0dcff;
    color: #0f172a;
    font-weight: 700;
}

/* ===========================================
   Nosotros Page
   =========================================== */

.about-hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
    padding-top: 180px;
    padding-bottom: 88px;
}

.about-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 7, 13, 0.75), rgba(5, 7, 13, 0.8)), url('../images/hero-slide-2.jpg') center/cover no-repeat;
}

.about-hero .container {
    position: relative;
    z-index: 1;
}

.about-hero h1 {
    max-width: 700px;
    margin-bottom: 20px;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 0.95;
}

.about-hero p {
    max-width: 650px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 18px;
}

.about-hero .hero-actions {
    margin-top: 34px;
}

.about-page-intro {
    padding-top: 150px;
    padding-bottom: 120px;
}

.about-mission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.about-pillars-card {
    min-height: 100%;
}

.about-values-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-value-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: justify;
}

.about-value-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(5, 7, 13, 0.1);
}

.about-feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* --- Responsive --- */

@media (max-width: 980px) {
    .services-hero p {
        max-width: 720px;
        font-size: 19px;
        line-height: 1.7;
    }

    .about-values-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .about-hero {
        min-height: 500px;
        padding-top: 160px;
    }
}

@media (max-width: 640px) {
    .services-hero--compact {
        min-height: auto;
        padding: 108px 0 56px;
    }

    .services-hero p {
        max-width: 100%;
        color: rgba(255, 255, 255, 0.96);
        font-size: 17px;
        line-height: 1.65;
        text-align: left;
        text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }

    .study-list {
        grid-template-columns: 1fr;
    }

    .about-mission-grid,
    .about-values-grid,
    .about-feature-grid {
        grid-template-columns: 1fr;
    }

    .about-hero {
        min-height: 420px;
        padding-top: 140px;
        padding-bottom: 64px;
    }

    .about-hero p {
        font-size: 16px;
    }

    .about-page-intro {
        padding-top: 120px;
        padding-bottom: 96px;
    }

    .study-accordion summary {
        padding: 16px 18px;
        font-size: 16px;
    }

    .study-accordion-content {
        padding: 0 18px 18px;
    }
}

/* =============================================================================
   Encuesta de Satisfacción
   ============================================================================= */

.survey-hero {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    display: flex;
    align-items: center;
    padding-top: 170px;
    padding-bottom: 80px;
}

.survey-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(5, 7, 13, 0.72), rgba(0, 25, 255, 0.45)),
                url('../images/hero-slide-5.jpg') center / cover no-repeat;
}

.survey-hero .container {
    position: relative;
    z-index: 1;
}

.survey-hero h1 {
    max-width: 680px;
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.1;
}

.survey-section {
    padding: 72px 0 96px;
    background: var(--rup-gray);
}

/* ── Mensajes de estado ──────────────────────────────────────────────────── */

.survey-message {
    padding: 18px 22px;
    border-radius: 14px;
    margin-bottom: 32px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
}

.survey-message-success {
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    color: #166534;
}

.survey-message-error {
    background: #fef2f2;
    border: 1.5px solid #fca5a5;
    color: #991b1b;
}

/* ── Pantalla de gracias ─────────────────────────────────────────────────── */

.survey-thanks-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 56px 48px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 560px;
    margin: 0 auto;
}

.survey-thanks-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    color: #0f172a;
}

.survey-thanks-card p {
    margin: 0 0 12px;
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
}

.survey-thanks-note {
    font-size: 14px !important;
    color: var(--rup-muted) !important;
    margin-bottom: 32px !important;
}

.survey-thanks-icon {
    width: 64px;
    height: 64px;
    background: #f0fdf4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

/* ── Texto introductorio ─────────────────────────────────────────────────── */

.survey-intro {
    max-width: 680px;
    margin: 0 auto 32px;
    text-align: center;
    color: #475569;
    font-size: 16px;
    line-height: 1.75;
}

/* ── Card del formulario ─────────────────────────────────────────────────── */

.survey-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 48px 52px;
    max-width: 660px;
    margin: 0 auto;
}

/* ── Formulario ──────────────────────────────────────────────────────────── */

.survey-form {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* ── Fieldset reset ──────────────────────────────────────────────────────── */

.survey-question {
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.survey-question-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.4;
    margin: 0;
}

.survey-question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--rup-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

/* ── Opciones de radio ───────────────────────────────────────────────────── */

.survey-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.survey-option {
    position: relative;
}

.survey-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    margin: 0;
    pointer-events: none;
}

.survey-option label {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1.5px solid #e4eaf8;
    border-radius: 12px;
    cursor: pointer;
    font-size: 15px;
    color: #334155;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
    user-select: none;
    line-height: 1.4;
}

.survey-option label::before {
    content: '';
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.survey-option input[type="radio"]:checked + label {
    border-color: var(--rup-blue);
    background: #eef1ff;
    color: var(--rup-blue);
    font-weight: 600;
}

.survey-option input[type="radio"]:checked + label::before {
    border-color: var(--rup-blue);
    background: var(--rup-blue);
    box-shadow: inset 0 0 0 3px #fff;
}

.survey-option:focus-within label {
    outline: 2px solid var(--rup-blue);
    outline-offset: 2px;
    border-radius: 12px;
}

/* ── Textarea ────────────────────────────────────────────────────────────── */

.survey-textarea {
    width: 100%;
    min-height: 130px;
    padding: 14px 18px;
    border: 1.5px solid #e4eaf8;
    border-radius: 12px;
    font-size: 15px;
    color: #334155;
    resize: vertical;
    outline: none;
    background: #fff;
    line-height: 1.65;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.survey-textarea:focus {
    border-color: var(--rup-blue);
    box-shadow: 0 0 0 3px rgba(0, 25, 255, 0.08);
}

.survey-textarea::placeholder {
    color: #94a3b8;
}

/* ── Botón submit ────────────────────────────────────────────────────────── */

.survey-submit {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.survey-submit .btn {
    width: 100%;
    justify-content: center;
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
}

.survey-submit-note {
    margin: 0;
    text-align: center;
    font-size: 13px;
    color: var(--rup-muted);
}

/* ── Nota al pie ─────────────────────────────────────────────────────────── */

.survey-footer-note {
    max-width: 660px;
    margin: 32px auto 0;
    text-align: center;
    color: var(--rup-muted);
    font-size: 14px;
    line-height: 1.7;
}

/* ── Responsive móvil ────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .survey-hero {
        min-height: 300px;
        padding-top: 130px;
        padding-bottom: 56px;
    }

    .survey-hero h1 {
        font-size: 1.75rem;
    }

    .survey-section {
        padding: 48px 0 64px;
    }

    .survey-card {
        padding: 32px 24px;
    }

    .survey-thanks-card {
        padding: 40px 28px;
    }

    .survey-intro {
        font-size: 15px;
    }

    .survey-question-title {
        font-size: 16px;
    }

    .survey-option label {
        padding: 14px 16px;
        font-size: 15px;
    }
}

/* ── Checkbox de privacidad (formularios) ────────────────────────────────── */

.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--rup-muted);
    cursor: pointer;
    line-height: 1.5;
    margin-top: 4px;
}

.privacy-check input[type="checkbox"] {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--rup-blue);
    cursor: pointer;
}

.privacy-check a {
    color: var(--rup-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-check a:hover {
    color: var(--rup-blue-dark, #0014cc);
}

/* ── Aviso de Privacidad ─────────────────────────────────────────────────── */

.privacy-hero {
    position: relative;
}

.privacy-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #000b6e 0%, #0019ff 100%);
    opacity: 0.92;
    z-index: 0;
}

.privacy-hero .container {
    position: relative;
    z-index: 1;
}

.privacy-section {
    padding: 72px 0 96px;
}

.privacy-container {
    max-width: 820px;
}

.privacy-intro {
    font-size: 17px;
    line-height: 1.75;
    color: var(--rup-text);
    padding-bottom: 48px;
    border-bottom: 1px solid var(--rup-border, #e4eaf8);
    margin-bottom: 56px;
}

.privacy-articles {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.privacy-article {
    padding: 40px 0;
    border-bottom: 1px solid var(--rup-border, #e4eaf8);
}

.privacy-article:last-child {
    border-bottom: none;
}

.privacy-article h2 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--rup-heading, #0f172a);
    margin: 0 0 16px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.privacy-numeral {
    color: var(--rup-blue);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.privacy-article p {
    margin: 0 0 12px;
    line-height: 1.75;
    color: var(--rup-black);
    font-size: 15px;
}

.privacy-article p:last-child {
    margin-bottom: 0;
}

.privacy-article a {
    color: var(--rup-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.privacy-article a:hover {
    color: var(--rup-blue-dark, #0014cc);
}

.privacy-subsection {
    margin-top: 20px;
    padding: 20px 24px;
    background: var(--rup-surface, #f8fafc);
    border-radius: 10px;
    border-left: 3px solid var(--rup-blue);
}

.privacy-subsection + .privacy-subsection {
    margin-top: 12px;
}

.privacy-subsection h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--rup-heading, #0f172a);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.privacy-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--rup-blue);
    color: #fff;
}

.privacy-tag-optional {
    background: var(--rup-muted, #94a3b8);
}

.privacy-list {
    margin: 12px 0 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-list li {
    font-size: 15px;
    line-height: 1.65;
    color: var(--rup-black);
}

.privacy-article-consent {
    background: var(--rup-surface, #f8fafc);
    border-radius: 12px;
    padding: 40px;
    border: 1px solid var(--rup-border, #e4eaf8);
    margin-top: 8px;
}

.privacy-signature-block {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    margin: 28px 0;
}

.privacy-signature-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.privacy-signature-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--rup-white, #94a3b8);
}

.privacy-signature-line {
    display: block;
    height: 1px;
    background: var(--rup-heading, #0f172a);
    opacity: 0.3;
    margin-top: 32px;
}

.privacy-consent-note {
    font-size: 13px !important;
    color: var(--rup-muted, #94a3b8) !important;
    margin-top: 16px !important;
}

.privacy-footer-note {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--rup-border, #e4eaf8);
    text-align: center;
}

.privacy-footer-note p {
    font-size: 14px;
    color: var(--rup-muted, #94a3b8);
    margin: 0 0 4px;
}

.privacy-footer-note a {
    color: var(--rup-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Footer legal links ──────────────────────────────────────────────────── */

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-legal {
    display: flex;
    gap: 16px;
}

.footer-legal a {
    font-size: 13px;
    color: var(--rup-white);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: #fff;
}

@media (max-width: 768px) {
    .privacy-section {
        padding: 48px 0 64px;
    }

    .privacy-article {
        padding: 28px 0;
    }

    .privacy-article h2 {
        font-size: 1rem;
    }

    .privacy-signature-block {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .privacy-article-consent {
        padding: 28px 20px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===========================================
   Mobile Study Dock — barra flotante tipo iOS
   =========================================== */

.mobile-study-dock {
    position: fixed;
    left: 50%;
    bottom: max(14px, env(safe-area-inset-bottom));
    z-index: 95;
    width: min(calc(100% - 24px), 460px);
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 28px;
    color: #fff;
    background: rgba(5, 7, 13, 0.86);
    box-shadow:
        0 22px 60px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    transform: translate(-50%, 120%);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.32s cubic-bezier(.2,.8,.2,1),
        opacity 0.25s ease;
}

.mobile-study-dock.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
    pointer-events: auto;
}

.mobile-study-dock.is-hidden {
    transform: translate(-50%, 120%);
    opacity: 0;
    pointer-events: none;
}

.mobile-study-dock__context {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    gap: 6px;
    min-height: 26px;
    padding: 2px 8px 8px;
}

.mobile-study-dock__eyebrow {
    color: rgba(255, 255, 255, 0.52);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mobile-study-dock__current {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-study-dock__count {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 700;
}

.mobile-study-dock__actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.mobile-study-dock__button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 7px 4px;
    border: 0;
    border-radius: 17px;
    color: rgba(255, 255, 255, 0.62);
    background: transparent;
    font-size: 10px;
    font-weight: 750;
    cursor: pointer;
    transition:
        color 0.18s ease,
        background 0.18s ease,
        transform 0.18s ease;
}

.mobile-study-dock__button:focus-visible {
    outline: 3px solid rgba(0, 25, 255, 0.45);
    outline-offset: 2px;
}

.mobile-study-dock__button:active {
    transform: scale(0.96);
}

.mobile-study-dock__button.is-active {
    color: #fff;
    background: rgba(0, 25, 255, 0.92);
    box-shadow:
        0 10px 26px rgba(0, 25, 255, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.mobile-study-dock__icon {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: -0.02em;
}

@media (min-width: 769px) {
    .mobile-study-dock {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.has-mobile-study-dock {
        padding-bottom: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mobile-study-dock,
    .mobile-study-dock__button {
        transition: none;
    }

    .contact-modal__backdrop,
    .contact-modal__dialog,
    .contact-modal__action,
    .contact-modal__close {
        transition: none;
    }
}

/* ===========================================
   Contact Modal — modal global de contacto / agenda
   =========================================== */

body.modal-open {
    overflow: hidden;
}

.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    pointer-events: none;
}

.contact-modal.is-open {
    pointer-events: auto;
}

.contact-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 7, 13, 0.56);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.contact-modal.is-open .contact-modal__backdrop {
    opacity: 1;
}

.contact-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 680px;
    max-height: min(680px, 90dvh);
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--rup-white);
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(16px) scale(0.98);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.contact-modal.is-open .contact-modal__dialog {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-modal__dialog:focus {
    outline: none;
}

.contact-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border: 1px solid var(--rup-border);
    border-radius: 999px;
    color: var(--rup-blue);
    background: var(--rup-white);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.contact-modal__close:hover {
    background: var(--rup-gray);
    transform: rotate(90deg);
}

.contact-modal__close:focus-visible {
    outline: 3px solid rgba(0, 25, 255, 0.35);
    outline-offset: 2px;
}

.contact-modal__content {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.contact-modal__header {
    flex-shrink: 0;
    padding: 52px 76px 20px 40px;
}

.contact-modal__header .eyebrow {
    margin-bottom: 14px;
}

.contact-modal__header h2 {
    margin: 0 0 12px;
    font-size: 28px;
}

.contact-modal__header p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

.contact-modal__back {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    margin-bottom: 14px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--rup-blue);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.contact-modal__back:hover {
    text-decoration: underline;
}

.contact-modal__back:focus-visible {
    border-radius: 6px;
    outline: 3px solid rgba(0, 25, 255, 0.35);
    outline-offset: 2px;
}

.contact-modal__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 4px 40px 40px;
}

.contact-modal__form-trigger {
    margin-top: 20px;
}

.contact-modal__actions {
    display: grid;
    gap: 12px;
    margin-top: 32px;
}

.contact-modal__action {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 14px 20px;
    border: 1px solid #e9edf7;
    border-radius: 18px;
    background: var(--rup-white);
    box-shadow: 0 12px 32px rgba(5, 7, 13, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.contact-modal__action:hover {
    transform: translateY(-2px);
}

.contact-modal__action:focus-visible {
    outline: 3px solid rgba(0, 25, 255, 0.35);
    outline-offset: 2px;
}

.contact-modal__action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--rup-blue);
    background: rgba(0, 25, 255, 0.08);
    font-size: 18px;
}

.contact-modal__action-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.contact-modal__action-label {
    color: var(--rup-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-modal__action-value {
    color: var(--rup-black);
    font-size: 15px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.contact-modal__action--primary {
    border-color: transparent;
    background: var(--rup-blue);
    box-shadow: 0 18px 40px rgba(0, 25, 255, 0.28);
}

.contact-modal__action--primary .contact-modal__action-icon {
    color: var(--rup-blue);
    background: var(--rup-white);
}

.contact-modal__action--primary .contact-modal__action-label {
    color: rgba(255, 255, 255, 0.72);
}

.contact-modal__action--primary .contact-modal__action-value {
    color: var(--rup-white);
}

.contact-modal__action--primary:hover {
    background: var(--rup-blue-dark);
}

.contact-modal__location {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 14px 20px;
    color: var(--rup-muted);
}

.contact-modal__location-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 14px;
    color: var(--rup-blue);
    background: rgba(0, 25, 255, 0.08);
    font-size: 18px;
}

.contact-modal__location-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.contact-modal__location-value {
    color: var(--rup-black);
    font-size: 14px;
    font-weight: 600;
}

@media (max-width: 980px) {
    .contact-modal__dialog {
        max-width: calc(100% - 48px);
    }
}

@media (max-width: 640px) {
    .contact-modal {
        padding: 0;
        align-items: flex-end;
    }

    .contact-modal__dialog {
        max-width: 100%;
        max-height: 90dvh;
        margin: 0 16px 16px;
        border-radius: 24px;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .contact-modal__header {
        padding: 44px 60px 16px 24px;
    }

    .contact-modal__body {
        padding: 4px 24px 24px;
    }

    .contact-modal__header h2 {
        font-size: 24px;
    }

    .contact-modal__action {
        padding: 12px 16px;
    }
}
