:root {
    --blue: #1f5ebc;
    --blue-dark: #123b7a;
    --blue-deep: #0e3270;
    --blue-soft: #e9f2ff;
    --green: #35b96f;
    --green-dark: #16884a;
    --white: #ffffff;
    --ink: #14213d;
    --muted: #64748b;
    --line: #dbe7f5;
    --soft: #f7fbff;
    --shadow: 0 24px 70px rgba(18, 59, 122, .16);
    --radius: 24px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 18px);
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-height);
    font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    min-height: var(--header-height);
    background: rgba(255, 255, 255, .96);
    border-bottom: 1px solid rgba(219, 231, 245, .9);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    transition: box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 12px 36px rgba(18, 59, 122, .12);
}

.navbar {
    width: min(1180px, 92%);
    min-height: var(--header-height);
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--blue-dark);
    white-space: nowrap;
}

.brand-icon {
    width: 300px;
    overflow: hidden;
}

.brand-icon img {
    width: 200px !important;
    height: auto;
    object-fit: cover;
}

.brand strong {
    color: var(--green-dark);
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: .76rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: -2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px;
    font-size: .95rem;
    font-weight: 700;
    color: #24334a;
}

.nav-links a {
    transition: color .25s ease, transform .25s ease;
}

.nav-links a:hover {
    color: var(--blue);
    transform: translateY(-1px);
}

.nav-cta {
    padding: 13px 22px;
    border-radius: 999px;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 12px 30px rgba(31, 94, 188, .22);
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--blue-soft);
    border-radius: 14px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--blue-dark);
    margin: 5px auto;
    border-radius: 99px;
}

/* MAIN: ya no tiene height: 100vh para evitar que el footer suba o tape contenido */
.dental-advanced {
    flex: 1 0 auto;
    width: 100%;
    background: var(--white);
    overflow: hidden;
}

/* HERO / INTERFAZ PRINCIPAL CORREGIDA */
.dental {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: calc(100svh - var(--header-height));
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
    gap: clamp(28px, 4vw, 58px);
    align-items: center;
    padding: clamp(54px, 8vw, 112px) max(calc((100vw - 1180px) / 2), 4vw);
    background: linear-gradient(135deg, #eef7ff 0%, #ffffff 58%, #e9f2ff 100%);
    isolation: isolate;
}

/* CAROUSEL DEL HERO:
       Usa cuatro imágenes dentro de /images.
       Cada imagen queda fija unos segundos con un zoom suave antes de cambiar. */
.dental-carousel {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: #eef7ff;
}

.dental-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 3;
    background:
        linear-gradient(90deg, rgba(247, 251, 255, .94) 0%, rgba(247, 251, 255, .78) 46%, rgba(247, 251, 255, .50) 100%),
        radial-gradient(circle at 85% 76%, rgba(53, 185, 111, .22), transparent 30%);
    pointer-events: none;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transform: scale(1.035);
    transform-origin: center center;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition:
        opacity 1.6s ease-in-out,
        transform 7.2s cubic-bezier(.22, .61, .36, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.carousel-slide.is-active {
    z-index: 2;
    opacity: 1;
    transform: scale(1.095);
}

/*
      Estado temporal de salida.
      Evita el salto brusco: la imagen anterior NO vuelve a scale(1)
      mientras se desvanece; mantiene el zoom alcanzado hasta desaparecer.
    */
.carousel-slide.is-leaving {
    z-index: 1;
    opacity: 0;
    transform: scale(1.095);
    transition: opacity 1.6s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {

    .carousel-slide,
    .carousel-slide.is-active,
    .carousel-slide.is-leaving {
        transition: opacity .4s ease-in-out;
        transform: scale(1.04);
    }
}

.dental::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(rgba(31, 94, 188, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 94, 188, .045) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 90%);
    pointer-events: none;
}

.dental::after {
    content: "";
    position: absolute;
    right: -120px;
    bottom: -170px;
    z-index: 1;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(53, 185, 111, .22);
    pointer-events: none;
}

.dental-content,
.dental-card {
    position: relative;
    z-index: 2;
}

.dental-content {
    max-width: 760px;
}

.dental h1 {
    margin: 0 0 22px;
    max-width: 760px;
    font-size: clamp(2.50rem, 5.9vw, 4.9rem);
    line-height: .98;
    letter-spacing: -.07em;
    color: var(--blue-dark);
    text-wrap: balance;
}

.dental p {
    max-width: 650px;
    color: #30435f;
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    font-weight: 500;
}

.dental-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 0;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 16px 36px rgba(31, 94, 188, .24);
}

.btn-secondary {
    color: var(--blue-dark);
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    box-shadow: 0 12px 28px rgba(18, 59, 122, .08);
}

.dental-card {
    justify-self: end;
    width: min(100%, 440px);
    padding: clamp(28px, 4vw, 40px);
    border-radius: 32px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(31, 94, 188, .95), rgba(18, 59, 122, .97)),
        radial-gradient(circle at 100% 0%, rgba(53, 185, 111, .6), transparent 30%);
    box-shadow: 0 30px 80px rgba(18, 59, 122, .35);
}

.card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #dbeafe;
    font-size: .92rem;
    font-weight: 800;
    margin-bottom: 28px;
}

.logo-dental-avatar {
    width: 100px;
}

.pulse {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(53, 185, 111, .18);
    text-align: center;
}

.dental-card h2 {
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -.04em;
    margin-bottom: 16px;
}

.dental-card p,
.dental-card li {
    color: #e5efff;
    font-size: 1rem;
}

.dental-card ul {
    padding-left: 20px;
    margin: 22px 0 28px;
}

.btn-card {
    width: 100%;
    background: var(--white);
    color: var(--blue-dark);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--green-dark);
    background: rgba(53, 185, 111, .12);
    border: 1px solid rgba(53, 185, 111, .25);
    padding: 8px 13px;
    border-radius: 999px;
    font-weight: 800;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.eyebrow img,
.logo-dental-contact {
    width: 30px;
}

.eyebrow.light {
    color: #eafff3;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .22);
}

.eyebrow.light::before {
    background: #eafff3;
}

.section {
    width: min(1180px, 92%);
    margin: 90px auto;
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading h2,
.about-content h2,
.contact-info h2,
.cta-band h2 {
    margin: 18px 0 14px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.055em;
}

.section-heading p,
.about-content p,
.contact-info p {
    color: var(--muted);
    font-size: 1.04rem;
}

/* SERVICIOS COMO CAROUSEL */
.services-carousel {
    position: relative;
    width: 100%;
}

.services-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: calc(var(--radius) + 6px);
}

.services-track {
    display: flex;
    gap: 24px;
    transition: transform .55s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.service-card {
    flex: 0 0 calc((100% - 48px) / 3);
    min-height: 520px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: 0 16px 45px rgba(15, 23, 42, .06);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(53, 185, 111, .45);
    box-shadow: 0 24px 60px rgba(31, 94, 188, .12);
}

.service-image {
    position: relative;
    width: 100%;
    height: 235px;
    overflow: hidden;
    background: var(--blue-soft);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.service-card:hover .service-image img {
    transform: scale(1.06);
}

.service-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px;
}

.service-card h3,
.benefit h3 {
    margin-bottom: 12px;
    color: var(--blue-dark);
    font-size: clamp(1.35rem, 2.1vw, 2rem);
    line-height: 1.16;
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.service-card p,
.benefit p {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-top: auto;
    padding-top: 24px;
    color: var(--green-dark);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: .84rem;
}

.service-link::after {
    content: "→";
    font-size: 1rem;
    transition: transform .25s ease;
}

.service-link:hover::after {
    transform: translateX(4px);
}

.services-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.service-control {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--white);
    box-shadow: 0 14px 32px rgba(18, 59, 122, .10);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.service-control:hover {
    transform: translateY(-2px);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.services-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.services-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.services-dot.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.section-soft {
    width: min(1180px, 92%);
    margin: 100px auto;
    display: grid;
    grid-template-columns: .94fr 1.06fr;
    gap: 48px;
    align-items: center;
    padding: 58px;
    border-radius: 36px;
    background: linear-gradient(135deg, var(--blue-soft), #ffffff);
    border: 1px solid var(--line);
}

.about-visual {
    min-height: 430px;
    position: relative;
    border-radius: 32px;
    background:
        radial-gradient(circle at 25% 25%, rgba(53, 185, 111, .35), transparent 30%),
        linear-gradient(145deg, var(--blue), var(--blue-dark));
    overflow: hidden;
}

.about-visual::before {
    content: "";
    position: absolute;
    inset: 42px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 28px;
}

.visual-card {
    position: absolute;
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 24px 65px rgba(0, 0, 0, .18);
}

.image-about-check {
    width: 50px;
}

.visual-card.main {
    left: 42px;
    right: 42px;
    top: 70px;
    padding: 34px;
}

.visual-card.main span {
    color: var(--green-dark);
    font-weight: 800;
}

.visual-card.main h3 {
    margin: 10px 0;
    color: var(--blue-dark);
    font-size: 2rem;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.visual-card.main p {
    color: var(--muted);
    margin: 0;
}

.visual-card.floating {
    right: 28px;
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 260px;
    padding: 18px;
}

.visual-card.floating strong {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: var(--green);
    color: var(--white);
}

.visual-card.floating span {
    color: var(--blue-dark);
    font-weight: 800;
    line-height: 1.2;
}

.check-list {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.check-list div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #334155;
    font-weight: 600;
}

.check-list span {
    flex: 0 0 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(53, 185, 111, .14);
    color: var(--green-dark);
    font-weight: 900;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.benefit {
    padding: 28px;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff, #f8fbff);
    border: 1px solid var(--line);
}

.cta-band {
    width: min(1180px, 92%);
    margin: 100px auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 28px;
    padding: 48px;
    border-radius: 32px;
    color: var(--white);
    background:
        radial-gradient(circle at 95% 20%, rgba(53, 185, 111, .8), transparent 26%),
        linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 30px 80px rgba(18, 59, 122, .26);
}

.cta-band h2 {
    color: var(--white);
    margin-bottom: 8px;
}

.cta-band p {
    color: #dbeafe;
    margin: 0;
}

.btn-white {
    flex: 0 0 auto;
    color: var(--blue-dark);
    background: var(--white);
}

.contact {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 36px;
    align-items: start;
}

.contact-info {
    padding: 16px 0;
}

.contact-item {
    margin-top: 10px;
    padding: 20px;
    border-radius: 20px;
    background: var(--soft);
    border: 1px solid var(--line);
}

.contact-item-flex {
    display: flex;
}

.contact-item strong {
    display: block;
    color: var(--blue);
    margin-bottom: 4px;
}

.contact-item a,
.contact-item span {
    color: #334155;
    font-weight: 700;
}

.contact-form {
    padding: 34px;
    border-radius: 28px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.contact-form label {
    display: block;
    margin-bottom: 16px;
    color: var(--blue-dark);
    font-weight: 800;
    font-size: .92rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 15px;
    border: 1px solid #d8e3f2;
    border-radius: 16px;
    outline: 0;
    color: #1e293b;
    font: inherit;
    background: #fbfdff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(31, 94, 188, .10);
}

.contact-form .btn {
    width: 100%;
    margin-top: 6px;
}

.form-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .86rem;
    text-align: center;
}


/* NUESTRAS INSTALACIONES */
.installations-section {
    position: relative;
}

.installations-section::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 90px;
    z-index: -1;
    width: min(860px, 90vw);
    height: 420px;
    transform: translateX(-50%);
    border-radius: 999px;
    background:
        radial-gradient(circle at 20% 20%, rgba(53, 185, 111, .16), transparent 34%),
        radial-gradient(circle at 80% 40%, rgba(31, 94, 188, .14), transparent 36%);
    filter: blur(6px);
    pointer-events: none;
}

.installations-carousel {
    position: relative;
    width: 100%;
}

.installations-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: calc(var(--radius) + 8px);
}

.installations-track {
    display: flex;
    gap: 22px;
    transition: transform .58s cubic-bezier(.22, .61, .36, 1);
    will-change: transform;
}

.installation-card {
    position: relative;
    flex: 0 0 calc((100% - 66px) / 4);
    min-height: 330px;
    overflow: hidden;
    border-radius: 28px;
    border: 1px solid rgba(219, 231, 245, .95);
    background: var(--blue-soft);
    box-shadow: 0 18px 48px rgba(18, 59, 122, .10);
}

.installation-card img {
    width: 100%;
    height: 100%;
    min-height: 330px;
    object-fit: cover;
    transition: transform .55s ease, filter .55s ease;
}

.installation-card:hover img {
    transform: scale(1.08);
    filter: saturate(1.05);
}

.installation-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 45%, rgba(18, 59, 122, .78) 100%),
        radial-gradient(circle at 90% 10%, rgba(53, 185, 111, .25), transparent 30%);
    pointer-events: none;
}

.installation-label {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    z-index: 2;
    color: var(--white);
}

.installation-label strong {
    display: block;
    margin-bottom: 3px;
    font-size: 1.05rem;
    line-height: 1.15;
    letter-spacing: -.03em;
}

.installation-label span {
    display: block;
    color: #dbeafe;
    font-size: .9rem;
    font-weight: 600;
}

.installations-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.installation-control {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--white);
    box-shadow: 0 14px 32px rgba(18, 59, 122, .10);
    cursor: pointer;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.installation-control:hover {
    transform: translateY(-2px);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.installations-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.installation-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

.installation-dot.is-active {
    width: 28px;
    background: linear-gradient(135deg, var(--blue), var(--green));
}

/* SUCURSALES */
.branches-section {
    width: min(1180px, 92%);
    margin: 100px auto;
    padding: clamp(34px, 5vw, 58px);
    border-radius: 38px;
    background:
        radial-gradient(circle at 8% 0%, rgba(53, 185, 111, .18), transparent 30%),
        radial-gradient(circle at 96% 15%, rgba(31, 94, 188, .16), transparent 30%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 58%, #eef7ff 100%);
    border: 1px solid var(--line);
    box-shadow: 0 22px 65px rgba(18, 59, 122, .10);
}

.branches-layout {
    display: grid;
    grid-template-columns: .82fr 1.18fr;
    gap: 38px;
    align-items: center;
}

.branches-intro h2 {
    margin: 18px 0 14px;
    color: var(--blue-dark);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
    letter-spacing: -.055em;
}

.branches-intro p {
    max-width: 520px;
    color: var(--muted);
    font-size: 1.04rem;
}

.branches-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.branch-card {
    position: relative;
    min-height: 310px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 28px;
    border-radius: 30px;
    color: var(--white);
    background:
        linear-gradient(145deg, rgba(31, 94, 188, .96), rgba(18, 59, 122, .98));
    box-shadow: 0 24px 60px rgba(18, 59, 122, .24);
}

.branch-card::before {
    content: "";
    position: absolute;
    right: -76px;
    top: -76px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(53, 185, 111, .34);
}

.branch-card::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -90px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}

.branch-card>* {
    position: relative;
    z-index: 2;
}

.branch-badge {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 12px;
    border-radius: 999px;
    color: #eafff3;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.branch-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.branch-card h3 {
    margin-bottom: 12px;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
    line-height: 1.05;
    letter-spacing: -.05em;
}

.branch-card address {
    color: #e5efff;
    font-style: normal;
    font-weight: 600;
}

.branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.branch-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--white);
    font-size: .9rem;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease;
}

.branch-link:hover {
    transform: translateY(-2px);
    background: #f8fbff;
}

.branch-link.secondary {
    color: var(--white);
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .20);
}



.contact-whatsapp-direct {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    color: var(--white) !important;
    background: linear-gradient(135deg, var(--blue), var(--green));
    box-shadow: 0 12px 26px rgba(31, 94, 188, .16);
    transition: transform .25s ease, box-shadow .25s ease;
}

.contact-whatsapp-direct:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(31, 94, 188, .22);
}

.contact-branch {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid var(--line);
}

.contact-branch span {
    display: block;
    margin-bottom: 4px;
    color: var(--blue-dark);
    font-weight: 800;
}


.contact-branch a,
.contact-branch-other {
    display: inline-block;
    color: #334155;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color .25s ease, transform .25s ease;
}


.contact-branch a:hover,
.contact-branch-other:hover {
    transform: translateX(3px);
    color: var(--green-dark);
}

@media (max-width: 1180px) {
    .navbar {
        width: min(100% - 32px, 1180px);
        gap: 16px;
    }

    .nav-links {
        gap: 18px;
    }

    .brand-icon {
        width: 240px;
    }

    .brand-icon img {
        width: 185px !important;
    }
}


/* SELECTOR DE WHATSAPP POR SUCURSAL */
.whatsapp-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.whatsapp-modal.is-open {
    display: flex;
}

.whatsapp-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 15, 30, 0.135);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.whatsapp-modal__panel {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 100% 0%, rgb(255, 255, 255), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(219, 231, 245, .92);
    box-shadow: 0 35px 95px rgba(18, 59, 122, .32);
    animation: modalIn .24s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.whatsapp-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--blue-dark);
    background: var(--white);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 59, 122, .10);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.whatsapp-modal__close:hover {
    transform: rotate(8deg);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.whatsapp-modal__header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
    padding-right: 38px;
}

.whatsapp-modal__icon {
    width: 66px;
    height: 66px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    background: rgba(53, 185, 111, .12);
    border: 1px solid rgba(53, 185, 111, .22);
}

.whatsapp-modal__icon img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.whatsapp-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.whatsapp-modal__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.whatsapp-modal h2 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.whatsapp-modal p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.whatsapp-branches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.whatsapp-branch-card {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    color: var(--white);
    background:
        radial-gradient(circle at 96% 8%, rgba(53, 185, 111, .55), transparent 30%),
        linear-gradient(145deg, rgba(31, 94, 188, .97), rgba(18, 59, 122, .98));
    box-shadow: 0 22px 58px rgba(18, 59, 122, .22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.whatsapp-branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 72px rgba(18, 59, 122, .30);
}

.whatsapp-branch-card::after {
    content: "Abrir WhatsApp";
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 42px;
    margin-top: 8px;
    padding: 3px 14px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--white);
    font-size: .86rem;
    font-weight: 800;
}

.whatsapp-branch-card__tag {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    color: #eafff3;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .20);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.whatsapp-branch-card strong {
    display: block;
    margin-top: 12px;
    color: var(--white);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.whatsapp-branch-card span:not(.whatsapp-branch-card__tag),
.whatsapp-branch-card small {
    color: #e5efff;
    font-weight: 600;
    line-height: 1.42;
}

.whatsapp-branch-card small {
    display: block;
    color: #dbeafe;
}

body.modal-open {
    overflow: hidden;
}


/* SELECTOR DE RED SOCIAL POR SUCURSAL */
.social-modal {
    position: fixed;
    inset: 0;
    z-index: 3100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.social-modal.is-open {
    display: flex;
}

.social-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(42, 15, 30, 0.135);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.social-modal__panel {
    position: relative;
    z-index: 2;
    width: min(760px, 100%);
    max-height: min(92vh, 760px);
    overflow: auto;
    padding: clamp(24px, 4vw, 38px);
    border-radius: 34px;
    background:
        radial-gradient(circle at 100% 0%, rgb(255, 255, 255), transparent 32%),
        linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
    border: 1px solid rgba(219, 231, 245, .92);
    box-shadow: 0 35px 95px rgba(18, 59, 122, .32);
    animation: modalIn .24s ease-out;
}

.social-modal__close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--blue-dark);
    background: var(--white);
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(18, 59, 122, .10);
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.social-modal__close:hover {
    transform: rotate(8deg);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue), var(--green));
}

.social-modal__header {
    padding-right: 46px;
}

.social-modal__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--green-dark);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.social-modal__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.social-modal h2 {
    margin: 0 0 10px;
    color: var(--blue-dark);
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    line-height: 1.05;
    letter-spacing: -.055em;
}

.social-modal p {
    margin: 0;
    color: var(--muted);
    font-weight: 500;
}

.social-branches {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 28px;
}

.social-branch-card {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    overflow: hidden;
    padding: 24px;
    border-radius: 28px;
    color: var(--white);
    background:
        radial-gradient(circle at 96% 8%, rgba(53, 185, 111, .55), transparent 30%),
        linear-gradient(145deg, rgba(31, 94, 188, .97), rgba(18, 59, 122, .98));
    box-shadow: 0 22px 58px rgba(18, 59, 122, .22);
    transition: transform .25s ease, box-shadow .25s ease;
}

.social-branch-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 72px rgba(18, 59, 122, .30);
}

.social-branch-card__tag {
    width: fit-content;
    padding: 7px 11px;
    border-radius: 999px;
    color: #eafff3;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .20);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.social-branch-card strong {
    display: block;
    margin-top: 12px;
    color: var(--white);
    font-size: clamp(1.55rem, 3vw, 2rem);
    line-height: 1.04;
    letter-spacing: -.045em;
}

.social-branch-card span:not(.social-branch-card__tag):not(.social-branch-card__button),
.social-branch-card small {
    color: #e5efff;
    font-weight: 600;
    line-height: 1.42;
}

.social-branch-card small {
    display: block;
    color: #dbeafe;
}

.social-branch-card__button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 42px;
    margin-top: 8px;
    padding: 3px 14px;
    border-radius: 999px;
    color: var(--blue-dark);
    background: var(--white);
    font-size: .86rem;
    font-weight: 800;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}


/* FOOTER CORREGIDO: queda al final de la página y no se monta sobre el contenido */
.footer {
    flex: 0 0 auto;
    margin-top: auto;
    width: 100%;
    padding: 28px max(5%, calc((100vw - 1180px) / 2));
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    color: #dbeafe;
    background: var(--blue-dark);
    font-size: .92rem;
}

.footer p {
    margin: 0;
}

@media (max-width: 960px) {
    :root {
        --header-height: 72px;
    }

    .menu-toggle {
        display: block;
        flex: 0 0 auto;
    }

    .nav-links {
        position: absolute;
        top: calc(100% + 10px);
        left: 4%;
        right: 4%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        background: rgba(255, 255, 255, .98);
        border: 1px solid var(--line);
        border-radius: 22px;
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px;
    }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .dental,
    .section-soft,
    .contact {
        grid-template-columns: 1fr;
    }

    .dental {
        min-height: auto;
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .dental-carousel::after {
        background:
            linear-gradient(180deg, rgba(247, 251, 255, .95) 0%, rgba(247, 251, 255, .88) 100%),
            radial-gradient(circle at 85% 76%, rgba(53, 185, 111, .20), transparent 36%);
    }

    .dental-card {
        justify-self: stretch;
        width: 100%;
    }

    .service-card {
        flex-basis: calc((100% - 24px) / 2);
    }

    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }

    .installation-card {
        flex-basis: calc((100% - 22px) / 2);
    }

    .branches-layout,
    .branches-list,
    .whatsapp-branches,
    .social-branches {
        grid-template-columns: 1fr;
    }

    .whatsapp-modal__header {
        grid-template-columns: 54px 1fr;
    }

    .whatsapp-modal__icon {
        width: 54px;
        height: 54px;
        border-radius: 18px;
    }

    .cta-band {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {

    .brand-icon,
    .brand-icon img {
        width: 48px;
        height: 48px;
    }

    .brand small {
        display: none;
    }

    .brand {
        gap: 8px;
    }

    .dental {
        padding-left: 5%;
        padding-right: 5%;
    }

    .dental h1 {
        font-size: clamp(2.3rem, 13vw, 3rem);
    }

    .dental-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .service-card {
        flex-basis: 100%;
        min-height: auto;
    }

    .service-image {
        height: 230px;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .section,
    .section-soft,
    .cta-band {
        margin: 66px auto;
    }

    .section-soft,
    .cta-band {
        padding: 30px 22px;
    }

    .about-visual {
        min-height: 360px;
    }

    .visual-card.main {
        left: 22px;
        right: 22px;
        top: 52px;
    }

    .installation-card {
        flex-basis: 100%;
    }

    .installation-card,
    .installation-card img {
        min-height: 300px;
    }

    .branches-section {
        margin: 66px auto;
        padding: 30px 22px;
    }

    .branch-card {
        min-height: 280px;
        padding: 24px;
    }

    .branch-actions,
    .branch-link {
        width: 100%;
    }

    .brand-icon {
        width: 170px;
    }

    .brand-icon img {
        width: 160px !important;
        height: auto;
    }

    .contact-item-flex {
        align-items: flex-start;
    }

    .whatsapp-modal,
    .social-modal {
        padding: 14px;
        align-items: flex-end;
    }

    .whatsapp-modal__panel,
    .social-modal__panel {
        width: 100%;
        max-height: 88vh;
        border-radius: 28px 28px 22px 22px;
    }

    .whatsapp-modal__header {
        grid-template-columns: 1fr;
        padding-right: 42px;
    }

    .social-modal__header {
        padding-right: 42px;
    }

    .whatsapp-branch-card,
    .social-branch-card {
        min-height: 230px;
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }
}


/* FOOTER COMPLETO / INFORMATIVO */
.footer.footer-advanced {
    display: block;
    padding: 0;
    color: #dbeafe;
    background:
        radial-gradient(circle at 10% 8%, rgba(53, 185, 111, .20), transparent 24%),
        radial-gradient(circle at 92% 18%, rgba(31, 94, 188, .35), transparent 26%),
        linear-gradient(135deg, #0e3270 0%, #123b7a 54%, #0b2558 100%);
    border-top: 1px solid rgba(219, 231, 245, .16);
}

.footer-advanced .footer-container {
    width: min(1180px, 92%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr .85fr 1.15fr .9fr;
    gap: clamp(28px, 4vw, 52px);
    padding: clamp(52px, 7vw, 82px) 0 42px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    width: min(230px, 100%);
    margin-bottom: 22px;
    padding: 10px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .16);
}

.footer-logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.footer-about p,
.footer-text,
.footer-list a,
.footer-branch address,
.footer-branch a,
.footer-bottom p {
    color: rgba(219, 234, 254, .84);
}

.footer-about p {
    max-width: 330px;
    margin-bottom: 24px;
    font-size: .98rem;
}

.footer-title {
    position: relative;
    margin: 0 0 22px;
    color: var(--white);
    font-size: 1.18rem;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.footer-title::after {
    content: "";
    display: block;
    width: 42px;
    height: 3px;
    margin-top: 10px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--green), var(--blue));
}

.footer-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.footer-list a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    transition: color .25s ease, transform .25s ease;
}

.footer-list a::before {
    content: "";
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--green);
    opacity: .9;
}

.footer-list a:hover,
.footer-branch a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-branches {
    display: grid;
    gap: 16px;
}

.footer-branch {
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.footer-branch strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: .98rem;
}

.footer-branch address {
    margin: 0 0 12px;
    font-style: normal;
    line-height: 1.45;
    font-weight: 600;
}

.footer-branch-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-pill,
.footer-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: .86rem;
    font-weight: 800;
    transition: transform .25s ease, background .25s ease, color .25s ease;
}

.footer-pill {
    color: var(--blue-dark) !important;
    background: var(--white);
}

.footer-pill.secondary {
    color: var(--white) !important;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .16);
}

.footer-pill:hover,
.footer-cta:hover {
    transform: translateY(-2px);
}

.footer-cta {
    color: var(--white) !important;
    background: white;
    box-shadow: 0 16px 36px rgba(0, 0, 0, .18);
    border-radius: 8px;
}

.footer-cta-middle {
    margin: 0 20px;
}

.footer-cta img {
    width: 35px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.footer-contact-list {
    display: grid;
    gap: 14px;
    margin-bottom: 24px;
}

.footer-contact-item {
    display: grid;
    gap: 4px;
}

.footer-contact-item span {
    color: rgba(219, 234, 254, .68);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.footer-contact-item a,
.footer-contact-item p {
    margin: 0;
    color: rgba(219, 234, 254, .90);
    font-weight: 700;
    line-height: 1.4;
}

.footer-bottom {
    width: min(1180px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 0 28px;
    border-top: 1px solid rgba(219, 234, 254, .22);
}

.footer-bottom p {
    margin: 0;
    font-size: .9rem;
}

@media (max-width: 1040px) {
    .footer-advanced .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 680px) {
    .footer-advanced .footer-container {
        grid-template-columns: 1fr;
        padding-top: 46px;
    }

    .footer-about p {
        max-width: 100%;
    }

    .footer-branch-actions,
    .footer-pill {
        width: 100%;
    }

    .footer-socials {
        justify-content: center;
    }

    .footer-socials .footer-cta {
        width: auto;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}


/* EFECTO DE CARGA INICIAL / PRELOADER */
body.is-loading {
    overflow: hidden;
}

.site-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 18% 18%, rgba(53, 185, 111, .16), transparent 30%),
        radial-gradient(circle at 82% 22%, rgba(31, 94, 188, .16), transparent 32%),
        linear-gradient(135deg, #f7fbff 0%, #ffffff 48%, #e9f2ff 100%);
    transition: opacity .55s ease, visibility .55s ease;
}

.site-loader.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.site-loader__card {
    width: min(360px, 92vw);
    display: grid;
    justify-items: center;
    gap: 18px;
    padding: 34px 28px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .84);
    border: 1px solid rgba(219, 231, 245, .92);
    box-shadow: 0 30px 80px rgba(18, 59, 122, .18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: loaderCardIn .55s ease both;
}

.site-loader__logo {
    width: min(220px, 70vw);
    padding: 10px 14px;
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 14px 32px rgba(18, 59, 122, .10);
}

.site-loader__logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.site-loader__spinner {
    position: relative;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        conic-gradient(from 90deg, rgba(31, 94, 188, .10), var(--blue), var(--green), rgba(31, 94, 188, .10));
    animation: loaderSpin 1s linear infinite;
}

.site-loader__spinner::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: var(--white);
    box-shadow: inset 0 0 0 1px rgba(219, 231, 245, .7);
}

.site-loader__text {
    margin: 0;
    color: var(--blue-dark);
    font-size: .98rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -.01em;
}

.site-loader__bar {
    position: relative;
    width: min(220px, 68vw);
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe7f5;
}

.site-loader__bar::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 46%;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--blue), var(--green));
    animation: loaderBar 1.25s ease-in-out infinite;
}

@keyframes loaderCardIn {
    from {
        opacity: 0;
        transform: translateY(12px) scale(.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes loaderSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loaderBar {
    0% {
        transform: translateX(-110%);
    }

    55% {
        transform: translateX(72%);
    }

    100% {
        transform: translateX(240%);
    }
}

@media (prefers-reduced-motion: reduce) {

    .site-loader__card,
    .site-loader__spinner,
    .site-loader__bar::before {
        animation: none;
    }
}