:root {
    --navy: #06144a;
    --navy-2: #0b2672;
    --cyan: #10c7df;
    --cyan-2: #73e8f5;
    --ink: #132033;
    --muted: #667085;
    --line: rgba(12, 40, 88, .12);
    --soft: #f5fbff;
    --white: #ffffff;
    --radius: 28px;
    --shadow: 0 24px 70px rgba(6, 20, 74, .14);
    --shadow-soft: 0 18px 45px rgba(6, 20, 74, .10);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(16, 199, 223, .14), transparent 35%),
        radial-gradient(circle at 100% 8%, rgba(6, 20, 74, .12), transparent 34%),
        linear-gradient(180deg, #ffffff 0%, #f8fcff 45%, #ffffff 100%);
    overflow-x: hidden;
}

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

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

button {
    font: inherit;
}

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

.page-glow {
    position: fixed;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(30px);
    opacity: .18;
    z-index: -1;
}

.page-glow-one {
    background: var(--cyan);
    left: -140px;
    top: 130px;
}

.page-glow-two {
    background: var(--navy-2);
    right: -120px;
    bottom: 50px;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 16px 0;
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, .84);
    box-shadow: 0 10px 35px rgba(6, 20, 74, .10);
    backdrop-filter: blur(18px);
    padding: 10px 0;
}

.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    border-radius: 18px;
    padding: 8px 10px;
    background: rgba(255, 255, 255, .70);
    box-shadow: 0 10px 30px rgba(6, 20, 74, .08);
}

.brand-logo {
    width: 118px;
    height: auto;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .65);
    background: rgba(255, 255, 255, .70);
    backdrop-filter: blur(18px);
    border-radius: 999px;
    box-shadow: 0 16px 40px rgba(6, 20, 74, .08);
}

.main-nav a {
    color: #263756;
    font-size: 14px;
    font-weight: 750;
    padding: 12px 16px;
    border-radius: 999px;
    transition: color .2s ease, background .2s ease, transform .2s ease;
}

.main-nav a:hover {
    color: var(--navy);
    background: rgba(16, 199, 223, .11);
    transform: translateY(-1px);
}

.main-nav .nav-cta {
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    box-shadow: 0 14px 28px rgba(6, 20, 74, .18);
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 16px;
    background: white;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    margin: 5px auto;
    background: var(--navy);
    border-radius: 999px;
    transition: transform .2s ease, opacity .2s ease;
}

.menu-open .menu-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.section {
    padding: 110px 0;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 138px;
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy-2);
    background: rgba(16, 199, 223, .12);
    border: 1px solid rgba(16, 199, 223, .20);
    padding: 9px 13px;
    border-radius: 999px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: 11px;
}

.eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--cyan);
    box-shadow: 0 0 0 6px rgba(16, 199, 223, .15);
}

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

h1 {
    font-size: clamp(44px, 6vw, 78px);
    line-height: .95;
    letter-spacing: -.055em;
    margin: 22px 0 22px;
    color: var(--navy);
}

h2 {
    font-size: clamp(32px, 4vw, 54px);
    line-height: 1.02;
    letter-spacing: -.045em;
    color: var(--navy);
    margin: 18px 0 16px;
}

h3 {
    font-size: 20px;
    letter-spacing: -.02em;
    color: var(--navy);
    margin: 0 0 12px;
}

.hero-text,
.section-heading p,
.tech-copy p,
.cta-card p,
.site-footer p,
.service-card p {
    color: var(--muted);
    line-height: 1.72;
}

.hero-text {
    font-size: 18px;
    max-width: 650px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 850;
    border: 1px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

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

.btn-primary {
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
    box-shadow: 0 18px 38px rgba(6, 20, 74, .22);
}

.btn-secondary {
    color: var(--navy);
    background: rgba(255, 255, 255, .76);
    border-color: var(--line);
    box-shadow: 0 18px 38px rgba(6, 20, 74, .07);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    max-width: 620px;
}

.hero-metrics div {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(12px);
}

.hero-metrics strong {
    display: block;
    color: var(--navy);
    font-size: 24px;
    line-height: 1;
    margin-bottom: 8px;
}

.hero-metrics span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    padding: 14px;
    border-radius: 38px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .80);
    box-shadow: var(--shadow);
    transform-style: preserve-3d;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: -14px;
    border-radius: 46px;
    background: linear-gradient(145deg, rgba(16, 199, 223, .25), rgba(6, 20, 74, .09));
    z-index: -1;
}

.hero-card img {
    width: 100%;
    height: min(62vh, 610px);
    object-fit: cover;
    border-radius: 28px;
}

.floating-badge {
    position: absolute;
    left: 34px;
    bottom: 34px;
    width: min(285px, calc(100% - 68px));
    padding: 18px;
    border-radius: 22px;
    color: white;
    background: rgba(6, 20, 74, .80);
    border: 1px solid rgba(255, 255, 255, .24);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, .20);
}

.floating-badge span {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .10em;
    color: var(--cyan-2);
    font-weight: 850;
    margin-bottom: 6px;
}

.floating-badge strong {
    display: block;
    font-size: 19px;
}

.section-heading {
    width: min(760px, 100%);
    margin: 0 auto 44px;
    text-align: center;
}

.services-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(237, 249, 255, .72));
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    min-height: 245px;
    padding: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .82);
    border: 1px solid rgba(255, 255, 255, .82);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border .22s ease;
    transition-delay: var(--delay, 0ms);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(16, 199, 223, .28);
    box-shadow: 0 28px 72px rgba(6, 20, 74, .15);
}

.service-card::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    right: -70px;
    bottom: -70px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(16, 199, 223, .20), transparent 70%);
}

.service-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    margin-bottom: 22px;
    color: var(--navy);
    background: linear-gradient(135deg, rgba(16, 199, 223, .18), rgba(6, 20, 74, .06));
    font-size: 24px;
    font-weight: 900;
}

.technology-band {
    padding: 96px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 54px;
    align-items: center;
    padding: 26px;
    border-radius: 40px;
    background: linear-gradient(135deg, rgba(6, 20, 74, .96), rgba(10, 39, 109, .92));
    box-shadow: var(--shadow);
    color: white;
    overflow: hidden;
    position: relative;
}

.tech-grid::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(16, 199, 223, .25);
    filter: blur(8px);
}

.tech-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 30px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .28);
}

.tech-copy {
    position: relative;
    z-index: 2;
    padding: 20px 20px 20px 0;
}

.tech-copy .eyebrow {
    color: white;
    background: rgba(255, 255, 255, .09);
    border-color: rgba(255, 255, 255, .18);
}

.tech-copy h2,
.tech-copy p {
    color: white;
}

.tech-copy p {
    opacity: .78;
}

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

.check-list li {
    position: relative;
    padding-left: 34px;
    color: rgba(255, 255, 255, .86);
    font-weight: 700;
}

.check-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: -1px;
    width: 23px;
    height: 23px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: var(--navy);
    background: var(--cyan-2);
    font-size: 13px;
    font-weight: 900;
}

/* =========================================================
   GALERÍA ESTABLE - NO SE DESORDENA
   Controla botones, imágenes, overlay y responsive.
========================================================= */
.gallery-section {
    padding-top: 80px;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
    width: 100%;
}

.gallery-card {
    -webkit-appearance: none;
    appearance: none;
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 4 / 3;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 30px;
    overflow: hidden;
    background: #eaf6fb;
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    isolation: isolate;
    text-align: left;
    font: inherit;
    color: inherit;
    line-height: 1;
    transform: translateZ(0);
    contain: layout paint;
}

.gallery-card img {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    border: 0;
    transition: transform .7s cubic-bezier(.2, .9, .2, 1), filter .25s ease;
}

.gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 48%, rgba(3, 10, 32, .42) 100%);
}

.gallery-card:hover img {
    transform: scale(1.065);
    filter: saturate(1.04) contrast(1.03);
}

.gallery-overlay {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    display: block;
    max-width: calc(100% - 32px);
    padding: 16px;
    border-radius: 22px;
    color: white;
    text-align: left;
    background: linear-gradient(135deg, rgba(6, 20, 74, .84), rgba(6, 20, 74, .50));
    border: 1px solid rgba(255, 255, 255, .20);
    backdrop-filter: blur(16px);
    pointer-events: none;
}

.gallery-overlay small {
    display: block;
    color: var(--cyan-2);
    font-size: 11px;
    line-height: 1.2;
    letter-spacing: .10em;
    text-transform: uppercase;
    font-weight: 900;
    margin-bottom: 6px;
}

.gallery-overlay strong {
    display: block;
    color: white;
    font-size: 18px;
    line-height: 1.18;
    font-weight: 900;
}

@supports not (aspect-ratio: 4 / 3) {
    .gallery-card {
        height: 280px;
    }
}

.final-cta {
    padding-top: 50px;
}

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 42px;
    border-radius: 36px;
    color: white;
    background:
        linear-gradient(135deg, rgba(6, 20, 74, .95), rgba(13, 91, 149, .88)),
        url('../img/consultorio-hero.jpg') center / cover;
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.cta-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 86% 0%, rgba(16, 199, 223, .38), transparent 36%);
}

.cta-card>* {
    position: relative;
    z-index: 1;
}

.cta-card h2,
.cta-card p {
    color: white;
}

.cta-card p {
    opacity: .80;
    margin-bottom: 0;
}

.site-footer {
    padding: 54px 0 42px;
    background: #f4fbff;
    border-top: 1px solid var(--line);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 34px;
}

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

.site-footer strong {
    display: block;
    color: var(--navy);
    margin-bottom: 12px;
}

.site-footer p,
.site-footer a {
    margin: 0 0 8px;
    color: var(--muted);
}

.site-footer a {
    color: var(--navy-2);
    font-weight: 800;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(3, 10, 32, .84);
    backdrop-filter: blur(12px);
}

.lightbox.is-open {
    display: flex;
}

.lightbox img {
    max-width: min(1120px, 94vw);
    max-height: 82vh;
    object-fit: contain;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .44);
}

.lightbox strong {
    position: absolute;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    color: white;
    background: rgba(255, 255, 255, .14);
    padding: 12px 18px;
    border-radius: 999px;
    backdrop-filter: blur(12px);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    color: white;
    background: rgba(255, 255, 255, .12);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2, .9, .2, 1);
}

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

.delay-1 {
    transition-delay: .12s;
}

/* TABLET */
@media (max-width: 980px) {
    .container {
        width: min(100% - 28px, 760px);
    }

    .menu-toggle {
        display: inline-block;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 12px);
        left: 14px;
        right: 14px;
        display: grid;
        border-radius: 24px;
        transform: translateY(-8px);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
    }

    .menu-open .main-nav {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .main-nav a {
        text-align: center;
        padding: 14px 16px;
    }

    .hero-grid,
    .tech-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 126px;
    }

    .hero-grid {
        gap: 34px;
    }

    .hero-card img {
        height: 470px;
    }

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

    .tech-copy {
        padding: 0 10px 12px;
    }

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

    .cta-card {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* CELULAR */
@media (max-width: 640px) {
    .section {
        padding: 78px 0;
    }

    .brand-logo {
        width: 108px;
    }

    h1 {
        font-size: 43px;
    }

    .hero-text {
        font-size: 16px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .hero-card {
        border-radius: 28px;
        padding: 10px;
    }

    .hero-card img {
        height: 360px;
        border-radius: 20px;
    }

    .floating-badge {
        left: 22px;
        right: 22px;
        bottom: 22px;
        width: auto;
    }

    .services-grid,
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        grid-column: auto;
    }

    .gallery-card {
        grid-column: auto;
        aspect-ratio: 1 / 1;
        min-height: 0;
    }

    .gallery-card img {
        height: 100%;
        min-height: 0;
    }

    .tech-grid {
        padding: 16px;
        border-radius: 30px;
    }

    .cta-card {
        padding: 28px;
        border-radius: 30px;
    }
}

/* =========================================================
   CASOS DE ÉXITO - IMÁGENES CONTROLADAS Y DISEÑO PREMIUM
   Pegar al final de assets/css/styles.css
========================================================= */

.cases-section {
    background:
        radial-gradient(circle at 12% 10%, rgba(16, 199, 223, .10), transparent 32%),
        linear-gradient(180deg, #ffffff 0%, #f4fbff 100%);
}

.success-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.success-case-card {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 34px;
    overflow: hidden;
    background: rgba(255, 255, 255, .88);
    border: 1px solid rgba(12, 40, 88, .10);
    box-shadow: var(--shadow-soft);
}

.success-case-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #eaf6fb;
}

.case-image {
    position: relative;
    display: block;
    width: 100%;
    height: 260px;
    min-height: 0;
    border: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    background: #eaf6fb;
    cursor: pointer;
}

.case-image img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    min-height: 0;
    object-fit: cover;
    object-position: center;
    transition: transform .6s cubic-bezier(.2, .9, .2, 1), filter .25s ease;
}

.case-image:hover img {
    transform: scale(1.06);
    filter: saturate(1.04) contrast(1.03);
}

.case-image span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 13px;
    border-radius: 999px;
    color: white;
    background: rgba(6, 20, 74, .78);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(14px);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.success-case-body {
    padding: 26px;
}

.case-meta-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.case-meta-line span,
.case-meta-line b {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.case-meta-line span {
    color: var(--navy-2);
    background: rgba(16, 199, 223, .12);
    border: 1px solid rgba(16, 199, 223, .20);
}

.case-meta-line b {
    color: white;
    background: linear-gradient(135deg, var(--navy), var(--cyan));
}

.success-case-body h3 {
    margin: 0 0 12px;
    color: var(--navy);
    font-size: 22px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.success-case-body p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.7;
}

.case-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.case-details div {
    padding: 14px;
    border-radius: 18px;
    background: #f6fbff;
    border: 1px solid rgba(12, 40, 88, .08);
}

.case-details dt {
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.case-details dd {
    margin: 0;
    color: var(--navy);
    font-size: 13px;
    font-weight: 850;
    line-height: 1.35;
}

/* Página completa casos.php */
.cases-page-hero {
    padding-top: 150px;
    padding-bottom: 70px;
}

.cases-page-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

/* Seguridad extra: ninguna imagen de casos debe crecer fuera de su contenedor */
.success-case-card img,
.case-image img,
.success-case-media img {
    max-width: none;
}

/* TABLET */
@media (max-width: 980px) {

    .success-cases-grid,
    .cases-page-grid {
        grid-template-columns: 1fr;
    }

    .success-case-media {
        height: 240px;
    }

    .case-image {
        height: 240px;
    }

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

/* CELULAR */
@media (max-width: 640px) {
    .success-case-card {
        border-radius: 28px;
    }

    .success-case-media {
        grid-template-columns: 1fr 1fr;
        height: 190px;
    }

    .case-image {
        height: 190px;
    }

    .success-case-body {
        padding: 20px;
    }

    .success-case-body h3 {
        font-size: 20px;
    }

    .case-details {
        grid-template-columns: 1fr;
    }

    .case-meta-line {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* CELULAR PEQUEÑO */
@media (max-width: 430px) {
    .success-case-media {
        height: 170px;
    }

    .case-image {
        height: 170px;
    }

    .case-image span {
        left: 10px;
        bottom: 10px;
        min-height: 30px;
        padding: 0 10px;
        font-size: 10px;
    }
}

/* =========================================================
   OVERRIDE FINAL GALERÍA RESPONSIVE
   Mantiene la galería estable aunque existan reglas anteriores.
========================================================= */
@media (max-width: 980px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gallery-card {
        aspect-ratio: 4 / 3;
        border-radius: 24px;
    }

    .gallery-overlay {
        left: 12px;
        right: 12px;
        bottom: 12px;
        max-width: calc(100% - 24px);
        padding: 13px;
        border-radius: 18px;
    }

    .gallery-overlay strong {
        font-size: 16px;
    }
}

@media (max-width: 430px) {
    .gallery-card {
        aspect-ratio: 1 / 1;
    }
}

.google-reviews-section {
    position: relative;
    overflow: hidden;
}

.google-reviews-shell {
    margin-top: 34px;
    padding: 28px;
    border-radius: 34px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(241, 246, 255, .78));
    border: 1px solid rgba(9, 24, 70, .10);
    box-shadow: 0 24px 70px rgba(6, 20, 74, .10);
    overflow: hidden;
}

.google-reviews-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.google-reviews-header strong {
    display: block;
    color: #06144a;
    font-size: 1.1rem;
}

.google-reviews-header span {
    display: block;
    margin-top: 4px;
    color: rgba(6, 20, 74, .62);
    font-size: .92rem;
}

.google-reviews-header a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #06144a;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.google-reviews-slider {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.google-reviews-track {
    display: flex;
    width: max-content;
    gap: 18px;
    animation: googleReviewsRight 32s linear infinite;
}

.google-reviews-slider:hover .google-reviews-track {
    animation-play-state: paused;
}

.google-review-card {
    width: 330px;
    min-height: 220px;
    padding: 22px;
    border-radius: 26px;
    background: #fff;
    border: 1px solid rgba(6, 20, 74, .08);
    box-shadow: 0 16px 40px rgba(6, 20, 74, .08);
}

.google-review-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.google-avatar {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #06144a, #2d74ff);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
}

.google-review-top strong {
    display: block;
    color: #06144a;
    font-size: .98rem;
}

.google-review-top span {
    display: block;
    margin-top: 3px;
    color: rgba(6, 20, 74, .55);
    font-size: .84rem;
}

.google-stars {
    margin-top: 18px;
    color: #f4b400;
    letter-spacing: 2px;
    font-size: 1rem;
}

.google-review-card p {
    margin: 14px 0 0;
    color: rgba(6, 20, 74, .72);
    line-height: 1.65;
    font-size: .96rem;
}

@keyframes googleReviewsRight {
    from {
        transform: translateX(-50%);
    }

    to {
        transform: translateX(0);
    }
}

@media (max-width: 720px) {
    .google-reviews-shell {
        padding: 22px 16px;
        border-radius: 26px;
    }

    .google-reviews-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .google-review-card {
        width: 280px;
    }
}

.whatsapp-float {
    position: fixed !important;
    right: 26px !important;
    bottom: 26px !important;
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 99999 !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 50% !important;
    box-shadow: 0 12px 28px rgba(37, 211, 102, .35) !important;
    overflow: hidden !important;
    text-decoration: none !important;
    font-size: 0 !important;
    line-height: 0 !important;
}

.whatsapp-float-icon {
    width: 62px !important;
    height: 62px !important;
    min-width: 62px !important;
    min-height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    display: block !important;
    object-fit: contain !important;
}

.whatsapp-float img {
    width: 62px !important;
    height: 62px !important;
    max-width: 62px !important;
    max-height: 62px !important;
    display: block !important;
    object-fit: contain !important;
}

.whatsapp-float span,
.whatsapp-float::before,
.whatsapp-float::after {
    display: none !important;
    content: none !important;
}

.whatsapp-float:hover {
    transform: translateY(-3px) scale(1.04) !important;
}

@media (max-width: 720px) {
    .whatsapp-float {
        right: 18px !important;
        bottom: 18px !important;
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
        min-height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }

    .whatsapp-float-icon,
    .whatsapp-float img {
        width: 56px !important;
        height: 56px !important;
        max-width: 56px !important;
        max-height: 56px !important;
    }
}