/* =========================================================
   VARIABLES
   ========================================================= */

:root {
    --primary: #0b1f6d;
    --primary-2: #123fb7;
    --accent: #1f8fff;
    --white: #ffffff;
    --text: #0f172a;
    --muted: #5b6475;
    --bg: #f5f7fb;
    --shadow: 0 20px 50px rgba(0,0,0,.18);
    --container: 1200px;
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    overflow-x: hidden;
}

body {
    font-family: "Nunito Sans", sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

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

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

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

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


/* =========================================================
   HERO PRINCIPAL
   ========================================================= */

.hero-home {
    position: relative;
    background-image: url("../assets/fondoPro2.PNG");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}




/* Onda principal 

.hero-home::before {
    content: "";
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: -26%;
    height: 88%;
    z-index: 1;
    pointer-events: none;
    opacity: .95;
    filter: blur(8px);

    background:
        radial-gradient(
            ellipse at 50% 55%,
            rgba(120,190,255,.30) 0%,
            rgba(120,190,255,.22) 18%,
            rgba(120,190,255,.10) 34%,
            rgba(120,190,255,0) 60%
        );

    animation: waveFloatOne 7s ease-in-out infinite alternate;
}
*/

/* Onda secundaria 

.hero-home::after {
    content: "";
    position: absolute;
    left: -14%;
    right: -14%;
    bottom: -34%;
    height: 104%;
    z-index: 1;
    pointer-events: none;
    opacity: .85;
    filter: blur(16px);

    background:
        radial-gradient(
            ellipse at 50% 55%,
            rgba(70,120,255,.22) 0%,
            rgba(70,120,255,.14) 20%,
            rgba(70,120,255,.07) 36%,
            rgba(70,120,255,0) 62%
        );

    animation: waveFloatTwo 10s ease-in-out infinite alternate;
}
*/
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: hidden;
}



/* =========================================================
   HERO TEXTO
   ========================================================= */

.hero-text {
    max-width: 760px;
    margin-left: auto;
    padding: 140px 0 180px;
    color: #fff;
    text-align: center;
}

.hero-kicker {
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    margin-bottom: 18px;
    opacity: .92;
}

.hero-text h1 {
    font-size: clamp(2.2rem, 4vw, 4.4rem);
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 22px;
}

.hero-subtitle {
    font-size: 1.18rem;
    line-height: 1.75;
    max-width: 860px;
    margin: 0 auto;
    color: rgba(255,255,255,.92);
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 34px;
}


/* =========================================================
   BOTONES
   ========================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 180px;

    padding: 14px 24px;

    border-radius: 999px;

    font-weight: 700;

    transition: .3s ease;

    border: 2px solid transparent;

    backdrop-filter: blur(6px);
}

.btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(255,255,255,.14);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(255,255,255,.18);
}

.btn-secondary {
    background: rgba(255,255,255,.08);
    color: #fff;
    border-color: rgba(255,255,255,.28);
}

.btn-secondary:hover {
    background: rgba(255,255,255,.14);
    transform: translateY(-3px);
}


/* =========================================================
   HEADER
   ========================================================= */

.site-header {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    z-index: 1000;
}

.site-header .header-inner {
    min-height: 88px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    position: relative;
}


/* Logo */

.site-header .brand {
    display: flex;
    align-items: center;

    padding: 6px 12px;

    border-radius: 8px;

    z-index: 1002;
}

.site-header .brand img {
    max-width: 280px;
    width: auto;
    height: auto;
}


/* Menu desktop */

.site-header nav {
    display: block;
}

.site-header nav ul {
    display: flex;
    align-items: center;

    gap: 30px;

    list-style: none;

    margin: 0;
    padding: 0;
}

.site-header nav li {
    margin: 0;
    padding: 0;
}

.site-header nav a {
    display: block;

    color: #0b1f6d;

    font-weight: 700;

    white-space: nowrap;

    padding: 8px 0;

    transition:
        color .25s ease,
        opacity .25s ease;
}

.site-header nav a:hover {
    color: gray;
}


/* =========================================================
   BOTON HAMBURGUESA
   ========================================================= */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid rgba(255,255,255,.25);

    border-radius: 10px;

    background: rgba(7,18,70,.55);

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    color: #fff;

    font-size: 1.35rem;

    cursor: pointer;

    transition:
        background .25s ease,
        transform .25s ease;
}

.menu-toggle:hover {
    background: rgba(7,18,70,.8);
}

.menu-toggle:active {
    transform: scale(.95);
}


/* =========================================================
   BLOQUE FLOTANTE
   ========================================================= */

.intro-overlap {
    position: relative;
    margin-top: -120px;
    z-index: 3;
}

.intro-card {
    max-width: 760px !important;
    padding: 45px 50px !important;

    background: #252c42 !important;
    border: 1px solid rgba(255,255,255,.20);
    border-radius: 14px;

    margin: 0 auto;
}

.intro-card h2 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.intro-card p {
    color: var(--muted);
}

.text-link {
    display: inline-flex;

    gap: 10px;

    margin-top: 24px;

    color: var(--primary-2);

    font-weight: 700;
}


/* =========================================================
   SECCIONES
   ========================================================= */

.section {
    padding: 100px 0;
}

.section-heading {
    text-align: center;

    max-width: 800px;

    margin: 0 auto 48px;
}

.section-kicker {
    color: var(--primary-2);

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .12em;

    font-size: .85rem;
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.services-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 24px;
}

.service-card {
    background: #fff;

    padding: 32px 28px;

    border-radius: 18px;

    box-shadow: 0 10px 30px rgba(0,0,0,.08);

    transition: .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
}

.service-card i {
    font-size: 1.8rem;

    color: var(--primary-2);

    margin-bottom: 18px;
}


/* =========================================================
   ANIMACIONES HERO
   ========================================================= */

@keyframes waveFloatOne {

    0% {
        transform: translate(-6%, 4%) scale(1);
    }

    100% {
        transform: translate(8%, -6%) scale(1.18);
    }

}

@keyframes waveFloatTwo {

    0% {
        transform: translate(6%, 2%) scale(1);
    }

    100% {
        transform: translate(-8%, -7%) scale(1.22);
    }

}


/* =========================================================
   FOOTER
   ========================================================= */

.footer-pro {
    background:
        linear-gradient(
            180deg,
            #071246 0%,
            #081a5a 55%,
            #06113a 100%
        );

    color: rgba(255,255,255,.88);

    margin-top: 80px;

    padding-top: 70px;

    position: relative;

    overflow: hidden;
}

.footer-pro::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: .45;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(90,160,255,.14),
            transparent 20%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(255,255,255,.06),
            transparent 18%
        );
}

.footer-grid {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        1.4fr 1fr 1fr 1fr;

    gap: 40px;

    padding-bottom: 40px;
}

.footer-brand h4,
.footer-col h4 {
    font-size: 1.15rem;

    font-weight: 800;

    color: #fff;

    margin-bottom: 18px;
}

.footer-brand p,
.footer-col p {
    color: rgba(255,255,255,.72);

    font-size: .98rem;

    line-height: 1.8;

    margin-bottom: 10px;
}

.footer-links {
    list-style: none;

    display: flex;

    flex-direction: column;

    gap: 12px;
}

.footer-links a {
    color: rgba(255,255,255,.76);

    transition: .25s ease;
}

.footer-links a:hover {
    color: #fff;

    transform: translateX(4px);
}

.footer-social {
    display: flex;

    gap: 12px;

    margin-top: 22px;
}

.footer-social a {
    width: 42px;
    height: 42px;

    border-radius: 50%;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background: rgba(255,255,255,.08);

    border: 1px solid rgba(255,255,255,.10);

    color: #fff;

    transition: .25s ease;
}

.footer-social a:hover {
    background: rgba(255,255,255,.16);

    transform: translateY(-3px);
}

.footer-whatsapp {
    margin-top: 14px;
}

.footer-cta {
    margin-top: 18px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.10);

    margin-top: 10px;
}

.footer-bottom-inner {
    min-height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    flex-wrap: wrap;
}

.footer-bottom p {
    color: rgba(255,255,255,.62);

    font-size: .92rem;
}

.footer-policy {
    display: flex;

    align-items: center;

    gap: 10px;

    flex-wrap: wrap;
}

.footer-policy a {
    color: rgba(255,255,255,.68);

    font-size: .92rem;

    transition: .25s ease;
}

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


/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */

.reveal,
.reveal-left,
.reveal-right,
.reveal-zoom {
    opacity: 0;

    transition:
        all .8s cubic-bezier(.2,.8,.2,1);

    will-change: transform, opacity;
}

.reveal {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-60px);
}

.reveal-right {
    transform: translateX(60px);
}

.reveal-zoom {
    transform: translateY(30px) scale(.92);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active,
.reveal-zoom.active {
    opacity: 1;

    transform:
        translate(0,0)
        scale(1);
}

.reveal-delay-1 {
    transition-delay: .10s;
}

.reveal-delay-2 {
    transition-delay: .22s;
}

.reveal-delay-3 {
    transition-delay: .34s;
}

.reveal-delay-4 {
    transition-delay: .46s;
}


/* =========================================================
   PAGE HERO INTERNO
   ========================================================= */

.page-hero {
    position: relative;

    padding: 140px 0 70px;

    background-image: url(../assets/fondoPro2.PNG);
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;

    color: #0b1f6d;
    text-shadow: 0 2px 5px rgba(255,255,255,.85);
    overflow: hidden;
}

.page-hero::before {
    content: "";

    position: absolute;

    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 15% 25%,
            rgba(170,200,255,.12),
            transparent 18%
        ),
        radial-gradient(
            circle at 85% 70%,
            rgba(255,255,255,.05),
            transparent 16%
        );
}

.page-hero .wrap {
    position: relative;

    z-index: 1;

    max-width: 860px;
}

.page-hero .kicker {
    display: inline-block;

    margin-bottom: 14px;

    font-size: .85rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .14em;

    color: gray;
}

.page-hero h1 {
    font-size: clamp(2.2rem, 4vw, 4rem);

    line-height: 1.08;

    margin-bottom: 12px;
}

.breadcrumb {
    color: gray;

    margin-bottom: 18px;
}

.page-hero-text {
    max-width: 760px;

    font-size: 1.06rem;

    line-height: 1.85;

    color: #0b1f6d;
}


/* =========================================================
   TEAM
   ========================================================= */

.team-section {
    padding-top: 80px;
}

.team-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 26px;
}

.card.person {
    background: #fff;

    border-radius: 22px;

    overflow: hidden;

    box-shadow: 0 14px 36px rgba(0,0,0,.08);

    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.card.person:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 42px rgba(0,0,0,.12);
}

.person .photo {
    height: 340px;

    background-size: cover;

    background-position: center;
}

.card-pad {
    padding: 26px 24px 28px;
}

.person-role {
    display: inline-block;

    margin-bottom: 10px;

    font-size: .78rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .12em;

    color: var(--primary-2);
}

.card.person h3 {
    font-size: 1.24rem;

    line-height: 1.3;

    color: var(--primary);

    margin-bottom: 14px;
}

.card.person p {
    color: var(--muted);

    line-height: 1.8;
}

.team-closing {
    padding: 30px 0 100px;
}

.team-closing-box {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;

    background: #fff;

    border-radius: 20px;

    padding: 30px 26px;

    box-shadow: 0 12px 34px rgba(0,0,0,.07);
}

.team-closing-box p {
    font-size: 1.05rem;

    color: var(--muted);
}


/* =========================================================
   SERVICIOS PAGE
   ========================================================= */

.service-layout {
    display: grid;

    grid-template-columns:
        minmax(0,1fr) 360px;

    gap: 28px;

    align-items: start;
}

.service-main {
    min-height: 260px;
}

.service-header-block {
    margin-bottom: 12px;
}

.service-header-block h2 {
    margin-bottom: 8px;

    color: var(--primary);
}

.service-copy {
    display: flow-root;

    margin-top: 16px;
}

.service-copy p {
    margin-bottom: 14px;

    color: var(--muted);

    line-height: 1.9;
}

.service-actions {
    margin-top: 10px;

    display: flex;

    gap: 12px;

    flex-wrap: wrap;
}

.service-actions.center {
    justify-content: center;
}

.service-block {
    margin-top: 26px;
}

.service-block h3 {
    margin-bottom: 8px;

    color: var(--text);
}

.service-list {
    margin: 12px 0 0;

    padding-left: 1.1rem;

    color: var(--muted);

    line-height: 1.9;
}

.service-list.compact {
    margin-top: 4px;
}

.service-note {
    margin-top: 12px;

    color: var(--muted);

    line-height: 1.9;
}

.service-results-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 12px;

    margin-top: 12px;
}

.service-result-card {
    padding: 16px;

    border-radius: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(18,63,183,.05),
            rgba(255,255,255,1)
        );

    border: 1px solid rgba(18,63,183,.08);
}

.service-result-card strong {
    color: var(--primary);

    display: block;

    margin-bottom: 8px;
}

.service-result-card p {
    color: var(--muted);

    margin: 0;

    line-height: 1.8;
}

.service-sidebar {
    position: relative;

    display: grid;

    gap: 16px;
}

.service-sidebar h3,
.service-sidebar h4 {
    margin-bottom: 8px;

    color: var(--primary);
}

.service-sidebar-actions {
    display: grid;

    gap: 10px;

    margin-top: 12px;
}

.service-sidebar-actions .btn {
    justify-content: center;
}

.service-contact-info {
    margin-top: 16px;

    font-size: .95rem;

    color: var(--muted);
}

.service-contact-info p {
    margin-bottom: 12px;

    line-height: 1.7;
}

.service-quote {
    margin: 0;

    color: var(--muted);

    font-style: italic;

    line-height: 1.9;
}

.service-quote strong {
    display: block;

    margin-top: 10px;

    color: var(--primary);

    font-style: normal;
}

.service-final-cta-section {
    padding-top: 10px;
}

.service-final-cta-wrap {
    text-align: center;
}

.service-final-cta {
    display: inline-block;

    max-width: 920px;
}

.small-muted {
    color: var(--muted);

    line-height: 1.8;
}


/* =========================================================
   AREAS / SECTORES
   ========================================================= */

.areas-section {
    padding-top: 80px;
}

.areas-intro {
    margin-bottom: 24px;
}

.areas-intro p {
    margin: 0;

    color: var(--muted);

    line-height: 1.85;
}

.areas-grid {
    display: grid;

    grid-template-columns:
        repeat(2,minmax(0,1fr));

    gap: 24px;

    margin-top: 8px;
}

.area {
    border-radius: 22px;

    box-shadow: 0 14px 36px rgba(0,0,0,.08);

    transition:
        transform .28s ease,
        box-shadow .28s ease;
}

.area:hover {
    transform: translateY(-8px);

    box-shadow: 0 20px 42px rgba(0,0,0,.12);
}

.area-icon {
    width: 58px;
    height: 58px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 16px;

    margin-bottom: 16px;

    background:
        linear-gradient(
            180deg,
            rgba(18,63,183,.12),
            rgba(18,63,183,.04)
        );

    color: var(--primary-2);

    font-size: 1.35rem;
}

.area h3 {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 1.22rem;

    line-height: 1.35;
}

.area p {
    color: var(--muted);

    line-height: 1.85;
}

.area-actions {
    margin-top: 18px;
}

.areas-closing {
    padding: 24px 0 100px;
}

.areas-closing-box {
    max-width: 900px;

    margin: 0 auto;

    text-align: center;

    background: #fff;

    border-radius: 20px;

    padding: 30px 26px;

    box-shadow: 0 12px 34px rgba(0,0,0,.07);
}

.areas-closing-box p {
    font-size: 1.05rem;

    color: var(--muted);

    line-height: 1.9;
}


/* =========================================================
   NOVEDADES
   ========================================================= */

.novedades-layout {
    display: grid;

    grid-template-columns:
        minmax(0,1fr) 360px;

    gap: 28px;

    align-items: start;
}

.novedades-main {
    min-height: 260px;
}

.novedades-header-block {
    margin-bottom: 12px;
}

.novedades-header-block h2 {
    margin-bottom: 6px;

    color: var(--primary);
}

.novedades-copy {
    margin-top: 14px;

    color: var(--muted);

    line-height: 1.9;
}

.novedades-block {
    margin-top: 28px;
}

.novedades-block h3 {
    color: var(--text);

    margin-bottom: 12px;
}

.novedades-note {
    color: var(--muted);

    line-height: 1.9;

    margin-top: 10px;
}

.clientes-grid {
    display: grid;

    grid-template-columns:
        repeat(3,minmax(0,1fr));

    gap: 16px;

    margin-top: 16px;
}

.cliente-card {
    background: #fff;

    border: 1px solid rgba(18,63,183,.08);

    border-radius: 16px;

    min-height: 110px;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 18px;

    box-shadow: 0 10px 24px rgba(0,0,0,.05);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.cliente-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 16px 30px rgba(0,0,0,.08);
}

.cliente-card img {
    max-width: 100%;

    max-height: 54px;

    object-fit: contain;

    filter: grayscale(100%);

    opacity: .9;

    transition:
        filter .25s ease,
        opacity .25s ease;
}

.cliente-card:hover img {
    filter: grayscale(0%);

    opacity: 1;
}

.novedades-footer {
    margin-top: 24px;

    color: var(--muted);
}

.novedades-footer p {
    margin: 0 0 12px 0;

    line-height: 1.8;
}

.novedades-sidebar {
    position: relative;

    display: grid;

    gap: 16px;
}

.novedades-sidebar h4 {
    margin-bottom: 8px;

    color: var(--text);
}


/* =========================================================
   CONTACTO
   ========================================================= */

.contact-section {
    padding-top: 80px;
}

.contact-wrap {
    display: grid;

    grid-template-columns:
        minmax(0,1fr) 400px;

    gap: 28px;

    align-items: start;
}

.contact-map-card {
    overflow: hidden;
}

.contact-map {
    width: 100%;

    min-height: 520px;

    border: 0;

    border-radius: 18px;

    display: block;
}

.contact-info-card h3 {
    color: var(--primary);

    margin-bottom: 10px;
}

.contact-info-grid {
    display: grid;

    gap: 14px;

    margin-top: 18px;
}

.contact-info-item {
    display: grid;

    grid-template-columns: 48px 1fr;

    gap: 14px;

    align-items: start;

    padding: 14px 0;

    border-bottom:
        1px solid rgba(18,63,183,.08);
}

.contact-info-item:last-child {
    border-bottom: 0;
}

.contact-info-icon {
    width: 42px;
    height: 42px;

    border-radius: 12px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            rgba(18,63,183,.12),
            rgba(18,63,183,.04)
        );

    color: var(--primary-2);

    font-size: 1rem;
}

.contact-info-item strong {
    display: block;

    color: var(--primary);

    margin-bottom: 4px;
}

.contact-info-item p {
    margin: 0;

    color: var(--muted);

    line-height: 1.7;
}

.contact-actions {
    display: grid;

    gap: 10px;

    margin-top: 22px;
}

.contact-actions .btn {
    justify-content: center;
}

.contact-closing {
    padding: 24px 0 100px;
}

.contact-closing-box {
    max-width: 920px;

    margin: 0 auto;

    text-align: center;

    background: #fff;

    border-radius: 20px;

    padding: 30px 26px;

    box-shadow: 0 12px 34px rgba(0,0,0,.07);
}

.contact-closing-box p {
    font-size: 1.05rem;

    color: var(--muted);

    line-height: 1.9;
}


/* =========================================================
   FIRMA
   ========================================================= */

.firma-section {
    padding-top: 80px;
}

.firma-intro {
    margin-bottom: 22px;
}

.firma-intro h2 {
    margin-top: 6px;

    margin-bottom: 10px;

    color: var(--primary);
}

.firma-intro p {
    color: var(--muted);

    line-height: 1.8;

    margin: 0;
}

.firma-content p {
    color: var(--muted);

    margin-bottom: 16px;

    line-height: 1.9;
}

.firma-content p:last-child {
    margin-bottom: 0;
}

.firma-highlight {
    margin-top: 24px;
}

.firma-highlight-box {
    max-width: 980px;

    margin: 0 auto;

    background: #fff;

    border-radius: 20px;

    padding: 28px 26px;

    box-shadow: 0 12px 34px rgba(0,0,0,.07);

    border-left: 4px solid var(--accent);
}

.firma-highlight-box p {
    margin: 0;

    color: var(--muted);

    line-height: 1.9;

    text-align: center;
}

.firma-cta {
    margin-top: 24px;

    text-align: center;
}


/* =========================================================
   HOME - SECCIONES
   ========================================================= */

.home-split-section {
    display: grid;

    grid-template-columns: 1fr 1fr;

    align-items: stretch;

    min-height: 560px;

    background: #f3f4f7;
}

.home-split-section.reverse {
    grid-template-columns: 1fr 1fr;
}

.home-split-section.reverse .home-split-content {
    order: 1;
}

.home-split-section.reverse .home-split-media {
    order: 2;
}

.home-split-media {
    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.home-split-media img {
    width: 100%;

    height: 60%;

    object-fit: contain;

    object-position: center;
}

/* =========================================================
   HOME - IMAGEN AREAS DE PRACTICA
   ========================================================= */

.home-split-media.framed {
    background: #1a1f2f !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 60px;

    overflow: hidden;
}

.home-split-media.framed img {
    width: 100%;
    max-width: 600px;

    height: 430px;

    object-fit: cover;
    object-position: center;

    /* QUITAR EL CUADRADO BLANCO */
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;

    /* Quitar el efecto que usábamos para el logo */
    filter: none !important;
    box-shadow: none !important;

    border-radius: 12px;

    display: block;
}

.home-split-content {
    display: flex;

    flex-direction: column;

    justify-content: center;

    padding: 72px 88px;

    background: #f3f4f7;
}

.home-split-content h2 {
    font-size: clamp(2rem,3vw,3.3rem);

    color: var(--primary);

    margin-bottom: 20px;

    line-height: 1.1;
}

.home-split-content p {
    color: var(--text);

    line-height: 1.9;

    margin-bottom: 18px;

    max-width: 680px;
}

.home-split-content .btn {
    margin-top: 10px;

    width: max-content;
}


/* =========================================================
   SECTORES HOME
   ========================================================= */

.home-sectors {
    background: #f3f4f7;

    padding-top: 110px;

    padding-bottom: 110px;
}

.sector-grid {
    display: grid;

    grid-template-columns:
        repeat(3,1fr);

    gap: 30px;

    margin-top: 28px;
}

.sector-card {
    position: relative;

    overflow: hidden;

    min-height: 280px;

    box-shadow:
        0 16px 34px rgba(0,0,0,.10);
}

.sector-card img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    transition:
        transform .5s ease;
}

.sector-card:hover img {
    transform: scale(1.05);
}

.sector-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        linear-gradient(
            180deg,
            rgba(8,20,76,.18),
            rgba(8,20,76,.45)
        );
}

.sector-overlay h3 {
    color: #fff;

    font-size: 2rem;

    text-align: center;

    padding: 0 20px;

    line-height: 1.15;
}


/* =========================================================
   NOVEDADES HOME
   ========================================================= */

.home-news-band {
    position: relative;

    min-height: 620px;

    display: flex;

    align-items: center;

    background:
        linear-gradient(
            90deg,
            rgba(243,244,247,.98) 0 52%,
            rgba(243,244,247,.80) 52%,
            rgba(243,244,247,0) 70%
        ),
        url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80")
        center/cover no-repeat;
}

.home-news-wrap {
    width: 100%;
}

.home-news-box {
    background: #f3f4f7;

    max-width: 680px;

    padding: 72px 70px;

    box-shadow:
        0 20px 45px rgba(0,0,0,.12);
}

.home-news-box h2 {
    font-size: clamp(2rem,3vw,3.3rem);

    color: var(--primary);

    margin-bottom: 20px;
}

.home-news-box p {
    color: var(--text);

    line-height: 1.9;

    margin-bottom: 18px;
}


/* =========================================================
   LOGOS
   ========================================================= */

.home-trust {
    background: #f3f4f7;
}

.logo-grid {
    display: grid;

    grid-template-columns:
        repeat(5,1fr);

    gap: 18px;

    margin-top: 28px;
}

.logo-marquee.multi {
    display: flex;

    flex-direction: column;

    gap: 18px;

    overflow: hidden;

    margin-top: 40px;
}

.logo-track {
    display: flex;

    gap: 18px;

    width: max-content;

    animation:
        scrollLogos 25s linear infinite;
}

.logo-track.reverse {
    animation:
        scrollLogosReverse 28s linear infinite;
}

.logo-item img {
    display: block;

    width: 100%;
    height: 100%;

    max-width: 210px;
    max-height: 80px;

    object-fit: contain;
    object-position: center;

    margin: 0;
    padding: 0;

    background: transparent;

    /* IMPORTANTE:
       no aplicar el filtro que tienes para otros logos */
    filter: none !important;

    box-shadow: none;
}

.logo-item:hover {
    transform: translateY(-4px) scale(1.03);

    box-shadow:
        0 12px 28px rgba(0,0,0,.18),
        0 0 20px rgba(120,175,235,.20);
}

.logo-item:hover img {
    transform: scale(1.06);
}

.logo-item img {
    transition: transform .25s ease;
}

@media (max-width: 768px) {

    .logo-marquee.multi {
        gap: 12px;
    }

    .logo-track {
        gap: 12px;
    }

    .logo-item {
        width: 190px;
        min-width: 190px;

        height: 90px;

        padding: 14px 18px;

        border-radius: 14px;
    }

    .logo-item img {
        max-width: 155px;
        max-height: 60px;
    }
}

@keyframes scrollLogos {

    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

}

@keyframes scrollLogosReverse {

    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }

}


/* =========================================================
   CTA
   ========================================================= */

.home-final-cta {
    max-width: 920px;

    margin: 0 auto;

    text-align: center;
}


/* =========================================================
   AGENDA
   ========================================================= */

.agenda-section {
    padding-top: 80px;
}

.agenda-grid {
    display: grid;

    gap: 28px;

    grid-template-columns:
        minmax(0,1fr) 360px;

    align-items: start;
}

.agenda-form-card {
    min-height: 260px;
}

.agenda-header-block {
    margin-bottom: 16px;
}

.agenda-header-block h2 {
    margin: 0 0 8px 0;

    color: var(--primary);
}

.agenda-field {
    margin-top: 14px;
}

.agenda-field label {
    display: block;

    font-weight: 700;

    margin-bottom: 8px;

    color: var(--text);
}

.input-row {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 12px;
}

.agenda-form-card input[type="text"],
.agenda-form-card input[type="email"],
.agenda-form-card input[type="tel"],
.agenda-form-card input[type="date"],
.agenda-form-card input[type="time"],
.agenda-form-card select,
.agenda-form-card textarea {
    width: 100%;

    padding: 13px 14px;

    border-radius: 14px;

    border:
        1px solid rgba(18,63,183,.12);

    background: #fff;

    color: var(--text);

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.agenda-form-card input:focus,
.agenda-form-card select:focus,
.agenda-form-card textarea:focus {
    border-color:
        rgba(18,63,183,.28);

    box-shadow:
        0 0 0 4px rgba(18,63,183,.08);
}

.agenda-form-card textarea {
    min-height: 130px;

    resize: vertical;
}

.agenda-note {
    margin-top: 12px;

    color: var(--muted);

    font-size: .94rem;

    line-height: 1.7;
}

.btn-row {
    display: flex;

    gap: 12px;

    margin-top: 16px;

    flex-wrap: wrap;
}

.agenda-sidebar {
    display: grid;

    gap: 16px;
}

.agenda-sidebar h3,
.agenda-sidebar h4 {
    margin-bottom: 10px;

    color: var(--primary);
}

.agenda-feature {
    display: flex;

    gap: 12px;

    align-items: flex-start;

    margin-bottom: 16px;
}

.agenda-feature-dot {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    margin-top: 5px;

    background: var(--accent);

    flex: 0 0 14px;

    box-shadow:
        0 6px 14px rgba(31,143,255,.18);
}

.agenda-contact-list p {
    margin-bottom: 12px;

    line-height: 1.7;

    color: var(--muted);
}


/* =========================================================
   MODAL CONFIRM
   ========================================================= */

.confirm-overlay {
    position: fixed;

    inset: 0;

    display: grid;

    place-items: center;

    background:
        rgba(5,14,44,.55);

    z-index: 9999;

    visibility: hidden;

    opacity: 0;

    transition: opacity .2s ease;

    padding: 20px;
}

.confirm-overlay.show {
    visibility: visible;

    opacity: 1;
}

.confirm-box {
    width: min(620px,100%);

    background: #fff;

    border-radius: 18px;

    padding: 22px;

    box-shadow:
        0 24px 60px rgba(0,0,0,.20);
}

.confirm-box h3 {
    margin: 0 0 10px 0;

    color: var(--primary);
}

.confirm-pre {
    white-space: pre-wrap;

    color: var(--muted);

    margin-top: 10px;

    background: #f7f9fc;

    padding: 14px;

    border-radius: 12px;

    line-height: 1.75;
}

.confirm-actions {
    display: flex;

    gap: 12px;

    justify-content: flex-end;

    margin-top: 16px;

    flex-wrap: wrap;
}


/* =========================================================
   RESPONSIVE - 1100px
   ========================================================= */

@media (max-width: 1100px) {

    .home-split-content {
        padding: 56px 44px;
    }

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

    .logo-grid {
        grid-template-columns:
            repeat(3,1fr);
    }

}


/* =========================================================
   RESPONSIVE - 980px
   ========================================================= */

@media (max-width: 980px) {

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

    .footer-grid {
        grid-template-columns:
            1fr 1fr;

        gap: 32px;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .person .photo {
        height: 320px;
    }

    .service-layout {
        grid-template-columns: 1fr;
    }

    .service-results-grid {
        grid-template-columns: 1fr;
    }

    .areas-grid {
        grid-template-columns: 1fr;
    }

    .novedades-layout {
        grid-template-columns: 1fr;
    }

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

    .contact-wrap {
        grid-template-columns: 1fr;
    }

    .contact-map {
        min-height: 420px;
    }

    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .input-row {
        grid-template-columns: 1fr;
    }

    /* Header tablet */

    .site-header nav ul {
        gap: 18px;
    }

    .site-header nav a {
        font-size: .92rem;
    }

}


/* =========================================================
   RESPONSIVE - 768px
   ========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------------------
       HEADER CELULAR
       ----------------------------------------------------- */

    .site-header {
        padding: 0 10px;
    }

    .site-header .header-inner {
        min-height: 76px;
    }

    .site-header .brand {
        padding: 5px 8px;
    }

    @media (max-width: 768px) {

    /* LOGO GRANDE DEL INDEX */
    .hero-home .hero-brand {
        width: 65% !important;
        max-width: 260px !important;
        margin: 0 auto !important;
    }

    .hero-home .hero-brand img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

}

    /* Mostrar hamburguesa */

    .menu-toggle {
        display: flex;
    }

    /* Menú cerrado */

    .site-header nav {
        position: absolute;

        top: 76px;

        left: 0;
        right: 0;

        padding: 10px;

        background:
            #c3cce4;

        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);

        border:
            1px solid rgba(255,255,255,.10);

        border-radius: 16px;

        box-shadow:
            0 20px 45px rgba(0,0,0,.25);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-12px);

        transition:
            opacity .25s ease,
            transform .25s ease,
            visibility .25s ease;
    }

    /* Menú abierto */

    .site-header nav.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .site-header nav ul {
        display: flex;

        flex-direction: column;

        align-items: stretch;

        gap: 3px;

        width: 100%;
    }

    .site-header nav li {
        width: 100%;
    }

    .site-header nav a {
        width: 100%;

        padding: 14px 16px;

        border-radius: 10px;

        font-size: 1rem;
    }

    .site-header nav a:hover {
        background:
            rgba(255,255,255,.10);

        color: #fff;
    }


    /* -----------------------------------------------------
       HERO
       ----------------------------------------------------- */

    .hero-text {
        padding: 120px 0 150px;
    }

    .hero-text h1 {
        font-size:
            clamp(2rem,9vw,3rem);
    }

    .hero-subtitle {
        font-size: 1rem;

        line-height: 1.7;
    }

    .hero-actions {
        flex-direction: column;

        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }


    /* -----------------------------------------------------
       INTRO
       ----------------------------------------------------- */

    .intro-overlap {
        margin-top: -80px;
    }

    .intro-card {
        padding: 35px 25px;
    }

    .intro-card h2 {
        font-size: 2.2rem;
    }


    /* -----------------------------------------------------
       SECTIONS
       ----------------------------------------------------- */

    .section {
        padding: 70px 0;
    }


    /* -----------------------------------------------------
       TEAM
       ----------------------------------------------------- */

    .page-hero {
        padding: 120px 0 56px;
    }

    .page-hero-text {
        font-size: 1rem;
    }


    /* -----------------------------------------------------
       HOME SPLIT
       ----------------------------------------------------- */

    .home-split-section {
        grid-template-columns: 1fr;
    }

    .home-split-section.reverse .home-split-content,
    .home-split-section.reverse .home-split-media {
        order: initial;
    }

    .home-split-content {
        padding: 42px 24px;
    }

    .home-split-media,
    .home-split-section {
        min-height: auto;
    }

    .home-split-media {
        min-height: 320px;
    }


    /* -----------------------------------------------------
       SECTORES
       ----------------------------------------------------- */

    .sector-grid {
        grid-template-columns: 1fr;
    }


    /* -----------------------------------------------------
       LOGOS
       ----------------------------------------------------- */

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


    /* -----------------------------------------------------
       NOVEDADES HOME
       ----------------------------------------------------- */

    .home-news-band {
        min-height: auto;

        padding: 70px 0;

        background:
            linear-gradient(
                rgba(243,244,247,.92),
                rgba(243,244,247,.92)
            ),
            url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80")
            center/cover no-repeat;
    }

    .home-news-box {
        padding: 42px 24px;
    }


    /* -----------------------------------------------------
       SERVICIOS
       ----------------------------------------------------- */

    .service-actions {
        flex-direction: column;
    }

    .service-actions .btn {
        width: 100%;

        justify-content: center;
    }

    .service-final-cta {
        display: block;

        max-width: 100%;
    }


    /* -----------------------------------------------------
       FIRMA
       ----------------------------------------------------- */

    .firma-highlight-box {
        padding: 24px 20px;
    }


    /* -----------------------------------------------------
       FOOTER
       ----------------------------------------------------- */

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

    .footer-bottom-inner {
        flex-direction: column;

        align-items: flex-start;

        padding: 16px 0;
    }


    /* -----------------------------------------------------
       CONTACTO
       ----------------------------------------------------- */

    .contact-info-item {
        grid-template-columns:
            40px 1fr;

        gap: 12px;
    }

    .contact-map {
        min-height: 340px;
    }

}


/* =========================================================
   RESPONSIVE - 640px
   ========================================================= */

@media (max-width: 640px) {

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

    /* Clientes */

    .clientes-grid {
        grid-template-columns: 1fr;
    }

    /* Botones */

    .btn-row .btn,
    .confirm-actions .btn {
        width: 100%;

        justify-content: center;
    }

    /* Logo */

    .logo-item {
        min-width: 180px;
    }

}


/* =========================================================
   RESPONSIVE - 420px
   ========================================================= */

@media (max-width: 420px) {

    .site-header .brand img {
        max-width: 125px;
    }

    .site-header nav {
        top: 72px;
    }

    .hero-text {
        padding-top: 110px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: .95rem;
    }

    .intro-card {
        padding: 30px 20px;
    }

    .intro-card h2 {
        font-size: 2rem;
    }

}


/* =========================================================
   REDUCIR ANIMACIONES SI EL USUARIO LO PREFIERE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

}

.hero-overlay {
    background: transparent !important;
}

.hero-home::before,
.hero-home::after,
.hero-content::before {
    content: none !important;
    display: none !important;
    background: none !important;
    animation: none !important;
    filter: none !important;
}

.hero-kicker {
    color: #123fb7;
    text-shadow: 0 1px 3px rgba(255,255,255,.9);
}

.hero-text h1 {
    color: #0b1f6d;
    text-shadow: 0 2px 5px rgba(255,255,255,.85);
}

.hero-subtitle {
    color: #334155;
    text-shadow: 0 1px 3px rgba(255,255,255,.9);
}
/* =========================================================
   AJUSTES FINALES - COLOR CORPORATIVO Y HERO
   ========================================================= */
:root {
    --primary: #1a1f2f;
    --primary-2: #1a1f2f;
    --accent: #1a1f2f;
}

.site-header nav a,
.hero-kicker,
.hero-text h1,
.intro-card h2,
.text-link,
.section-kicker,
.home-split-content h2,
.area h3,
.area-icon,
.person-role,
.card.person h3,
.service-card i,
.service-header-block h2,
.service-result-card strong,
.service-sidebar h3,
.service-sidebar h4,
.contact-info-card h3,
.contact-info-icon,
.contact-info-item strong,
.firma-intro h2,
.agenda-header-block h2,
.agenda-sidebar h3,
.agenda-sidebar h4,
.page-hero,
.page-hero-text {
    color: #1a1f2f;
}

.intro-card { border-top-color: #1a1f2f; }
.firma-highlight-box { border-left-color: #1a1f2f; }
.agenda-feature-dot { background: #1a1f2f; }

.btn-primary {
    background: #1a1f2f;
    color: #fff;
    border-color: #1a1f2f;
}
.btn-primary:hover {
    background: #252b3e;
    color: #fff;
    border-color: #252b3e;
}
.btn-secondary {
    background: transparent;
    color: #1a1f2f;
    border-color: #1a1f2f;
}
.btn-secondary:hover {
    background: #1a1f2f;
    color: #fff;
}

.home-split-media.framed {
    background: linear-gradient(90deg, #f3f4f7 0 45%, #1a1f2f 45% 100%);
}
.footer-pro { background: #1a1f2f; }

/* Logo principal centrado y rectangular */
.hero-home .hero-content { width: 100%; }
.hero-home .hero-text {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 120px 0 140px;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-home .hero-brand {
    width: 40%;
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-home .hero-brand img {
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    object-position: center;
}

/* Baja el bloque Quienes somos respecto al diseño original */
.intro-overlap { margin-top: -40px; }

@media (max-width: 768px) {
    .hero-home .hero-text { padding: 105px 0 90px; }
    .hero-home .hero-brand { width: 92%; }
    .intro-overlap { margin-top: -20px; }
}


/* =========================================================
   TEMA OSCURO CONSOLIDADO - ALVAREZ ABOGADOS
   ========================================================= */
:root {
    --primary:#1a1f2f; --primary-2:#fff; --accent:#fff; --white:#fff;
    --text:#fff; --muted:rgba(255,255,255,.74); --bg:#1a1f2f;
}
html,body,main { background:#1a1f2f; color:#fff; }

/* HEADER */
.site-header { background:#1a1f2f; }
.site-header nav a { color:#fff; }
.site-header nav a:hover { color:rgba(255,255,255,.68); }

/* HERO HOME */
.hero-home { background:#1a1f2f; }
.hero-home .brand img,.hero-home .hero-brand img { filter:brightness(0) invert(1); }

/* HERO INTERNO */
.page-hero {
    padding:140px 0 70px; background:#1a1f2f; color:#fff;
    text-shadow:none; overflow:hidden;
}
.page-hero::before {
    background:
      radial-gradient(circle at 15% 25%,rgba(255,255,255,.055),transparent 25%),
      radial-gradient(circle at 85% 70%,rgba(255,255,255,.035),transparent 22%);
}
.page-hero .kicker { color:rgba(255,255,255,.60); }
.page-hero h1 { color:#fff; }
.breadcrumb { color:rgba(255,255,255,.52); }
.page-hero-text { color:rgba(255,255,255,.78); }

/* SECCIONES */
.section,.team-section,.areas-section,.contact-section,.firma-section,
.agenda-section,.service-layout-section,.service-final-cta-section,
.home-sectors,.home-trust { background:#1a1f2f; color:#fff; }
.section-heading h1,.section-heading h2,.section-heading h3,.section-heading h4 { color:#fff; }
.section-heading p,.small-muted { color:rgba(255,255,255,.72); }
.section-kicker { color:rgba(255,255,255,.60); }

/* TARJETAS GENERALES */
.card,.service-card,.area,.team-closing-box,.areas-closing-box,
.contact-closing-box,.firma-highlight-box,.agenda-form-card,
.agenda-sidebar>.card,.service-sidebar>.card,.novedades-main,
.novedades-sidebar>.card {
    background:rgba(255,255,255,.018); color:#fff;
    border:1px solid rgba(255,255,255,.16);
    box-shadow:0 14px 35px rgba(0,0,0,.14),inset 0 1px 0 rgba(255,255,255,.025);
}

/* QUIENES SOMOS */
.intro-overlap { background:#1a1f2f; margin-top:-40px; }
.intro-card {
    position:relative; max-width:900px; margin:0 auto; padding:70px;
    background:rgba(255,255,255,.025);
    border:1px solid rgba(255,255,255,.28); border-radius:8px;
    box-shadow:0 0 20px rgba(255,255,255,.05),
               0 0 45px rgba(255,255,255,.035),
               0 20px 50px rgba(0,0,0,.18);
    backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
}
.intro-card::before {
    content:""; position:absolute; inset:-2px; border-radius:10px;
    border:1px solid rgba(255,255,255,.12);
    box-shadow:0 0 18px rgba(255,255,255,.08),0 0 35px rgba(255,255,255,.04);
    pointer-events:none;
}
.intro-card h2,.intro-card .text-link { color:#fff; }
.intro-card p { color:rgba(255,255,255,.75); }

/* BOTONES */
.btn-primary { background:#fff; color:#1a1f2f; border:2px solid #fff; box-shadow:none; }
.btn-primary:hover { background:transparent; color:#fff; border-color:#fff; transform:translateY(-3px); }
.btn-secondary { background:transparent; color:#fff; border:2px solid rgba(255,255,255,.48); }
.btn-secondary:hover { background:#fff; color:#1a1f2f; border-color:#fff; }

/* HOME SPLIT */
.home-split-section,.home-split-content { background:#1a1f2f; }
.home-split-content h2 { color:#fff; }
.home-split-content p { color:rgba(255,255,255,.76); }
.home-split-content .section-kicker { color:rgba(255,255,255,.58); }
.home-split-media.framed { background:#1a1f2f; }
.home-split-media.framed img { background:transparent; filter:brightness(0) invert(1); box-shadow:none; }

/* SERVICIOS */
.service-main {
    min-height:260px; background:transparent!important;
    border:0!important; box-shadow:none!important;
}
.service-header-block h2,.service-block h3,.service-sidebar h3,.service-sidebar h4 { color:#fff; }
.service-copy p,.service-list,.service-note,.service-contact-info,
.service-contact-info p,.service-quote { color:rgba(255,255,255,.74); }
.service-copy strong,.service-list strong,.service-contact-info strong,.service-quote strong { color:#fff; }
.service-results-grid {
    display:grid; grid-template-columns:repeat(2,minmax(0,1fr));
    gap:22px; margin-top:22px;
}
.service-result-card {
    padding:26px 28px 30px; border-radius:14px; background:transparent;
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 12px 30px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.025);
    transition:transform .3s ease,border-color .3s ease,box-shadow .3s ease;
}
.service-result-card:hover {
    transform:translateY(-5px); border-color:rgba(255,255,255,.42);
    box-shadow:0 18px 40px rgba(0,0,0,.20),0 0 24px rgba(255,255,255,.035);
}
.service-result-card strong {
    display:block; margin-bottom:12px; color:#fff;
    font-size:1.04rem; line-height:1.45;
}
.service-result-card p { margin:0; color:rgba(255,255,255,.72); line-height:1.8; }
.service-final-cta { background:rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.16); }

/* EQUIPO */
.card.person { background:rgba(255,255,255,.025); border:1px solid rgba(255,255,255,.16); }
.person-role { color:rgba(255,255,255,.60); }
.card.person h3 { color:#fff; }
.card.person p,.team-closing-box p { color:rgba(255,255,255,.72); }

/* AREAS */
.areas-intro p,.area p,.areas-closing-box p { color:rgba(255,255,255,.72); }
.area h3 { color:#fff; }
.area-icon { color:#fff; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }

/* NOVEDADES */
.novedades-header-block h2,.novedades-block h3,.novedades-sidebar h4 { color:#fff; }
.novedades-copy,.novedades-note,.novedades-footer { color:rgba(255,255,255,.72); }
.cliente-card { background:rgba(255,255,255,.96); border-color:rgba(255,255,255,.22); }

/* CONTACTO */
.contact-info-card h3,.contact-info-item strong { color:#fff; }
.contact-info-item { border-bottom-color:rgba(255,255,255,.12); }
.contact-info-icon { color:#fff; background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.12); }
.contact-info-item p,.contact-closing-box p { color:rgba(255,255,255,.72); }

/* FIRMA */
.firma-intro h2 { color:#fff; }
.firma-intro p,.firma-content p,.firma-highlight-box p { color:rgba(255,255,255,.74); }
.firma-highlight-box { border-left:1px solid rgba(255,255,255,.22); }

/* AGENDA */
.agenda-header-block h2,.agenda-sidebar h3,.agenda-sidebar h4,.agenda-field label { color:#fff; }
.agenda-note,.agenda-contact-list p { color:rgba(255,255,255,.70); }
.agenda-feature-dot { background:#fff; box-shadow:0 0 16px rgba(255,255,255,.18); }
.agenda-form-card input[type="text"],.agenda-form-card input[type="email"],
.agenda-form-card input[type="tel"],.agenda-form-card input[type="date"],
.agenda-form-card input[type="time"],.agenda-form-card select,.agenda-form-card textarea {
    background:rgba(255,255,255,.055); color:#fff;
    border:1px solid rgba(255,255,255,.20);
}
.agenda-form-card input::placeholder,.agenda-form-card textarea::placeholder { color:rgba(255,255,255,.48); }
.agenda-form-card select option { background:#1a1f2f; color:#fff; }
.agenda-form-card input:focus,.agenda-form-card select:focus,.agenda-form-card textarea:focus {
    border-color:rgba(255,255,255,.55); box-shadow:0 0 0 4px rgba(255,255,255,.07);
}

/* MODAL */
.confirm-overlay { background:rgba(7,10,18,.72); }
.confirm-box { background:#1a1f2f; color:#fff; border:1px solid rgba(255,255,255,.18); }
.confirm-box h3 { color:#fff; }
.confirm-pre { background:rgba(255,255,255,.05); color:rgba(255,255,255,.76); }

/* SECTORES HOME */
.sector-card { border:1px solid rgba(255,255,255,.12); border-radius:14px; }
.sector-overlay { background:linear-gradient(180deg,rgba(26,31,47,.12),rgba(26,31,47,.70)); }

/* NOVEDADES HOME */
.home-news-band {
    background:
      linear-gradient(90deg,rgba(26,31,47,.98) 0 50%,rgba(26,31,47,.86) 58%,rgba(26,31,47,.34) 78%),
      url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80")
      center/cover no-repeat;
}
.home-news-box {
    background:rgba(26,31,47,.88); border:1px solid rgba(255,255,255,.14);
    box-shadow:0 20px 45px rgba(0,0,0,.18);
}
.home-news-box h2 { color:#fff; }
.home-news-box p { color:rgba(255,255,255,.76); }

/* LOGOS */
.logo-item { background:rgba(255,255,255,.96); color:#1a1f2f; border-color:rgba(255,255,255,.20); }

/* FOOTER */
.footer-pro { background:#151925; color:#fff; border-top:1px solid rgba(255,255,255,.10); }
.footer-brand p,.footer-col p,.footer-links a,.footer-bottom p,.footer-policy a {
    color:rgba(255,255,255,.68);
}

@media (max-width:980px) {
    .service-results-grid { grid-template-columns:1fr; }
}
@media (max-width:768px) {
    .site-header nav { background:rgba(26,31,47,.98); border-color:rgba(255,255,255,.14); }
    .intro-overlap { margin-top:-20px; }
    .intro-card { padding:38px 26px; }
    .home-news-band {
        background:
          linear-gradient(rgba(26,31,47,.90),rgba(26,31,47,.90)),
          url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1600&q=80")
          center/cover no-repeat;
    }
    .service-result-card { padding:22px 20px; }
}
/* =========================================
   LOGO DEL HEADER EN BLANCO
   ========================================= */

.site-header .brand img {
    width: 300px;
    max-width: 300px;
    height: auto;

    filter: brightness(0) invert(1);
}
@media (max-width: 768px) {

    .site-header .brand img {
        width: 180px;
        max-width: 180px;
    }

}
/* =========================================================
   EQUIPO - AJUSTE DE ESPACIADO Y CENTRADO
   ========================================================= */

/* Introducción */
.team-intro {
    padding-top: 60px;
    padding-bottom: 35px;
}

.team-intro .section-heading {
    margin-bottom: 0;
}

/* Sección donde comienzan las tarjetas */
.team-section {
    padding-top: 25px;
    padding-bottom: 70px;
}

/* Primera fila: 2 abogados centrados */
.team-grid-centered {
    grid-template-columns: repeat(2, minmax(0, 380px));
    justify-content: center;

    gap: 30px;

    margin-bottom: 30px;
}

/* Segunda fila: 3 abogados */
.team-section .team-grid:not(.team-grid-centered) {
    grid-template-columns: repeat(3, minmax(0, 380px));
    justify-content: center;

    gap: 30px;
}

/* Tarjetas */
.team-section .card.person {
    width: 100%;
    max-width: 380px;

    margin: 0 auto;
}

/* Fotos */
.team-section .person .photo {
    width: 100%;
    height: 550px;

    background-size:
        100% 100%,
        contain;

    background-position:
        center,
        center;

    background-repeat:
        no-repeat,
        no-repeat;

    background-color: #1a1f2f;
}

/* Contenido */
.team-section .card-pad {
    padding: 26px 24px 30px;
}

/* Nombre */
.team-section .card.person h3 {
    color: #ffffff;

    font-size: 1.18rem;
    line-height: 1.35;

    margin-bottom: 10px;
}

/* Cargo */
.team-section .person-role {
    color: rgba(255,255,255,.65);

    font-size: .76rem;

    margin-bottom: 14px;
}

/* Descripción */
.team-section .card.person p {
    color: rgba(255,255,255,.72);

    line-height: 1.75;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .team-grid-centered,
    .team-section .team-grid:not(.team-grid-centered) {
        grid-template-columns: repeat(2, minmax(0, 360px));
    }

}

/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .team-intro {
        padding-top: 45px;
        padding-bottom: 25px;
    }

    .team-section {
        padding-top: 20px;
        padding-bottom: 50px;
    }

    .team-grid-centered,
    .team-section .team-grid:not(.team-grid-centered) {
        grid-template-columns: 1fr;

        gap: 24px;
    }

    .team-section .card.person {
        max-width: 420px;
    }

    .team-section .person .photo {
    width: 100%;
    height: 430px;

    background-size:
        100% 100%,
        cover;

    background-position:
        center,
        center top;

    background-repeat:
        no-repeat,
        no-repeat;
}

}

/* =========================================================
   EQUIPO - ELIMINAR HUECO ENTRE BORDE Y FOTO
   ========================================================= */

.team-section .card.person {
    padding: 0 !important;

    overflow: hidden;

    border-radius: 22px;

    background: rgba(255,255,255,.025);

    border: 1px solid rgba(255,255,255,.16);
}

/* FOTO */
.team-section .card.person .photo {
    width: 100%;
    height: 430px;

    margin: 0;
    padding: 0;

    background-size:
        100% 100%,
        cover;

    background-position:
        center,
        center top;

    background-repeat:
        no-repeat,
        no-repeat;

    border-radius: 0;
}

/* El texto sí mantiene espacio interior */
.team-section .card.person .card-pad {
    padding: 26px 24px 30px;
}



/* =========================================================
   EQUIPO - ANCHO FINAL DE TARJETAS SUPERIORES
   ========================================================= */

/* Primera fila: dos tarjetas grandes y centradas */
.team-section .team-grid-centered {
    grid-template-columns: repeat(2, minmax(0, 540px));
    justify-content: center;
    gap: 32px;
    margin-bottom: 30px;
}

/* Solo las dos tarjetas de la primera fila */
.team-section .team-grid-centered .card.person {
    width: 100%;
    max-width: 540px;
    margin: 0;
}

/* Nombre en una sola linea en escritorio */
.team-section .team-grid-centered .card.person h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    white-space: nowrap;
}

/* Segunda fila: conserva las tres tarjetas */
.team-section .team-grid:not(.team-grid-centered) {
    grid-template-columns: repeat(3, minmax(0, 380px));
    justify-content: center;
    gap: 30px;
}

.team-section .team-grid:not(.team-grid-centered) .card.person {
    width: 100%;
    max-width: 380px;
}

/* Foto sin hueco y llenando toda la cabecera */
.team-section .card.person {
    padding: 0 !important;
    overflow: hidden;
}

.team-section .card.person .photo {
    width: 100%;
    height: 430px;
    margin: 0;
    padding: 0;

    background-size:
        100% 100%,
        cover;

    background-position:
        center,
        center top;

    background-repeat:
        no-repeat,
        no-repeat;
}

/* Tablet */
@media (max-width: 1180px) {
    .team-section .team-grid-centered {
        grid-template-columns: repeat(2, minmax(0, 460px));
    }

    .team-section .team-grid-centered .card.person {
        max-width: 460px;
    }

    .team-section .team-grid-centered .card.person h3 {
        font-size: .96rem;
    }
}

/* Movil */
@media (max-width: 768px) {
    .team-section .team-grid-centered,
    .team-section .team-grid:not(.team-grid-centered) {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-section .team-grid-centered .card.person,
    .team-section .team-grid:not(.team-grid-centered) .card.person {
        max-width: 420px;
        margin: 0 auto;
    }

    .team-section .team-grid-centered .card.person h3 {
        white-space: normal;
        font-size: 1.05rem;
    }

    .team-section .card.person .photo {
        height: 430px;
    }
}
/* =========================================
   ALTURA SOLO DE LAS 2 PRIMERAS FOTOS
   ========================================= */

.team-section .team-grid-centered .card.person .photo {
    height: 620px;
}

/* =========================================================
   FIRMA - MISIÓN Y VISIÓN
   ========================================================= */

.firma-purpose {
    padding-top: 70px;
    padding-bottom: 90px;
    background: #1a1f2f;
}

.firma-purpose .section-heading {
    margin-bottom: 55px;
}

.firma-purpose .section-heading h2,
.firma-values .section-heading h2 {
    color: #ffffff;
    font-size: clamp(2rem, 3vw, 3rem);
}


/* Dos columnas */

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

    max-width: 1100px;
    margin: 0 auto;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 18px;

    overflow: hidden;

    background: rgba(255,255,255,.025);

    box-shadow:
        0 20px 50px rgba(0,0,0,.16),
        0 0 35px rgba(255,255,255,.025);
}


/* Tarjeta misión / visión */

.purpose-card {
    position: relative;

    padding: 60px 55px;

    text-align: center;
}

.purpose-card + .purpose-card {
    border-left: 1px solid rgba(255,255,255,.18);
}


/* Iconos */

.purpose-icon {
    width: 90px;
    height: 90px;

    margin: 0 auto 28px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50%;

    color: #ffffff;

    font-size: 2.6rem;

    background: rgba(255,255,255,.035);

    box-shadow:
        0 0 25px rgba(255,255,255,.06);
}


/* Títulos */

.purpose-card h3 {
    margin-bottom: 18px;

    color: #ffffff;

    font-size: 1.65rem;
    font-weight: 800;

    text-transform: uppercase;
}


/* Texto */

.purpose-card p {
    max-width: 450px;

    margin: 0 auto;

    color: rgba(255,255,255,.75);

    font-size: 1rem;
    line-height: 1.85;
}


/* =========================================================
   FIRMA - VALORES
   ========================================================= */

.firma-values {
    padding-top: 80px;
    padding-bottom: 110px;

    background: #1a1f2f;
}

.firma-values .section-heading {
    margin-bottom: 65px;
}


/* Grid 3 x 2 */

.values-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 65px 55px;
}


/* Cada valor */

.value-item {
    position: relative;

    padding: 10px 12px 24px;

    border-bottom:
        1px solid rgba(255,255,255,.28);
}


/* Icono */

.value-icon {
    height: 85px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;

    color: #ffffff;

    font-size: 3.3rem;
}


/* Título + círculo */

.value-title {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 15px;
}

.value-title h3 {
    color: #ffffff;

    font-size: 1.05rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .04em;
}


/* + */

.value-title span {
    width: 24px;
    height: 24px;

    flex: 0 0 24px;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #ffffff;

    color: #1a1f2f;

    font-size: 1rem;
    font-weight: 900;
}


/* Descripción */

.value-item p {
    margin: 0;

    color: rgba(255,255,255,.70);

    line-height: 1.8;

    font-size: .96rem;
}


/* Efecto hover */

.value-item {
    transition:
        transform .3s ease,
        border-color .3s ease;
}

.value-item:hover {
    transform: translateY(-6px);

    border-bottom-color:
        rgba(255,255,255,.75);
}

.value-item:hover .value-icon {
    filter:
        drop-shadow(
            0 0 10px rgba(255,255,255,.18)
        );
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

    .purpose-grid {
        grid-template-columns: 1fr;
    }

    .purpose-card + .purpose-card {
        border-left: 0;

        border-top:
            1px solid rgba(255,255,255,.18);
    }

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

}


@media (max-width: 600px) {

    .firma-purpose {
        padding-top: 50px;
        padding-bottom: 60px;
    }

    .purpose-card {
        padding: 45px 25px;
    }

    .purpose-icon {
        width: 75px;
        height: 75px;

        font-size: 2.1rem;
    }

    .purpose-card h3 {
        font-size: 1.4rem;
    }


    .firma-values {
        padding-top: 55px;
        padding-bottom: 70px;
    }

    .values-grid {
        grid-template-columns: 1fr;

        gap: 40px;
    }

    .value-icon {
        height: 70px;

        font-size: 2.8rem;
    }

}

/* =========================================================
   FIRMA - TRAYECTORIA
   50% TEXTO / 50% IMAGEN
   ========================================================= */

.firma-trayectoria-grid {
    width: 100%;

    display: grid !important;
    grid-template-columns: 1fr 1fr !important;

    align-items: stretch;

    gap: 0;

    margin-top: 30px;

    overflow: hidden;

    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;

    background: rgba(255,255,255,.02);
}


/* =========================
   LADO IZQUIERDO
   ========================= */

.firma-trayectoria-texto {
    width: 100%;

    padding: 45px 45px;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.firma-trayectoria-texto p {
    margin: 0 0 20px;

    color: rgba(255,255,255,.78);

    font-size: 16px;
    line-height: 1.8;

    text-align: justify;
}

.firma-trayectoria-texto p:last-child {
    margin-bottom: 0;
}


/* =========================
   LADO DERECHO
   ========================= */

.firma-trayectoria-imagen {
    position: relative;

    width: 100%;
    height: 100%;

    min-height: 600px;

    overflow: hidden;
}

.firma-trayectoria-imagen img {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 90%;
    opacity: 0.4;
    display: block;

    object-fit: cover;
    object-position: center;

    margin: 10px;
    padding: 10;
}


/* Degradado suave entre texto e imagen */

.firma-trayectoria-imagen::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(26,31,47,.20),
            transparent 25%
        );

    pointer-events: none;
}


/* =========================================================
   TABLET / CELULAR
   ========================================================= */

@media (max-width: 900px) {

    .firma-trayectoria-grid {
        grid-template-columns: 1fr !important;
    }

    .firma-trayectoria-imagen {
        min-height: 450px;
    }

}


@media (max-width: 600px) {

    .firma-trayectoria-texto {
        padding: 30px 24px;
    }

    .firma-trayectoria-texto p {
        text-align: left;

        font-size: 15px;
    }

    .firma-trayectoria-imagen {
        min-height: 350px;
    }

}

/* =========================================================
   FIRMA - BANNER ENTRE VALORES Y CTA
   ========================================================= */

.firma-banner {
    background: #1a1f2f;

    padding: 20px 0 60px;
}

.firma-banner-image {
    width: 100%;
    max-width: 1000px;

    height: 280px;

    margin: 0 auto;

    overflow: hidden;

    border-radius: 16px;

    border: 1px solid rgba(255,255,255,.16);

    box-shadow:
        0 18px 45px rgba(0,0,0,.20),
        0 0 30px rgba(255,255,255,.025);
}

.firma-banner-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
    object-position: center;

    transition: transform .6s ease;
}

.firma-banner-image:hover img {
    transform: scale(1.025);
}


/* TABLET */

@media (max-width: 900px) {

    .firma-banner-image {
        height: 240px;
    }

}


/* CELULAR */

@media (max-width: 600px) {

    .firma-banner {
        padding: 10px 0 40px;
    }

    .firma-banner-image {
        height: 190px;

        border-radius: 12px;
    }

}

/* =========================================================
   SERVICIOS - LAYOUT Y ESPACIADO FINAL
   ========================================================= */
body.servicios-page .service-page-hero {height:auto;min-height:0;margin:0;padding:140px 0 45px;}
body.servicios-page .service-page-hero .container,body.servicios-page .service-page-hero .wrap {height:auto;min-height:0;margin-bottom:0;padding-bottom:0;}
body.servicios-page .service-page-hero .page-hero-text {margin-bottom:0;}
body.servicios-page .service-layout-section {margin:0;padding:45px 0 70px;}
body.servicios-page .service-layout {display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:28px;align-items:start;margin:0 auto;padding:0;}
body.servicios-page .service-main {min-height:0;margin:0;padding-top:0;}
body.servicios-page .service-sidebar {margin:0;padding:0;}
@media (max-width:980px){body.servicios-page .service-layout{grid-template-columns:1fr;}}
@media (max-width:768px){body.servicios-page .service-page-hero{padding:105px 0 30px;}body.servicios-page .service-layout-section{padding:30px 0 50px;}body.servicios-page .service-layout{gap:24px;}}

/* =========================================================
   HOME SPLIT - CORRECCION MOVIL
   Texto arriba + imagen abajo
   ========================================================= */

@media (max-width: 768px) {

    .home-split-section,
    .home-split-section.reverse {
        display: flex !important;
        flex-direction: column !important;

        width: 100% !important;
        min-height: auto !important;
    }

    /* TEXTO */
    .home-split-section .home-split-content,
    .home-split-section.reverse .home-split-content {
        order: 1 !important;

        width: 100% !important;
        max-width: none !important;

        padding: 45px 25px !important;

        background: #1a1f2f !important;
    }

    .home-split-content h2 {
        font-size: 2.2rem;
        line-height: 1.15;
    }

    .home-split-content p {
        width: 100% !important;
        max-width: none !important;

        font-size: 1rem;
        line-height: 1.75;
    }


    /* IMAGEN */
    .home-split-section .home-split-media,
    .home-split-section.reverse .home-split-media,
    .home-split-section .home-split-media.framed,
    .home-split-section.reverse .home-split-media.framed {
        order: 2 !important;

        width: 100% !important;
        max-width: none !important;

        min-height: 0 !important;
        height: auto !important;

        padding: 0 25px 45px !important;

        background: #1a1f2f !important;

        display: block !important;
    }

    .home-split-section .home-split-media img,
    .home-split-section .home-split-media.framed img {
        position: static !important;

        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;

        margin: 0 auto !important;
        padding: 0 !important;

        object-fit: contain !important;
        object-position: center !important;

        background: transparent !important;

        filter: none !important;

        border-radius: 14px;
        box-shadow: none !important;
    }

}

/* =========================================================
   QUIENES SOMOS - CONTRASTE
   ========================================================= */

.intro-card {
    background:
        radial-gradient(
            circle at 80% 75%,
            rgba(105, 160, 235, .55) 0%,
            rgba(160, 195, 240, .48) 28%,
            rgba(205, 220, 245, .40) 50%,
            transparent 72%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #edf4ff 42%,
            #b9d2f3 100%
        ) !important;

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 18px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.20),
        0 0 35px rgba(120,170,235,.20);
}

.intro-card h2 {
    color: #ffffff;
}

.intro-card p {
    color: rgba(255,255,255,.78);
}

.intro-card .text-link {
    color: #ffffff;
}


/* =========================================================
   MENU SUPERIOR - BOTONES MAS NOTORIOS
   ========================================================= */

.site-header nav ul {
    gap: 12px;
}

.site-header nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    color: #ffffff !important;

    padding: 10px 18px;

    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;

    background: rgba(255,255,255,.035);

    font-weight: 700;

    transition:
        background .25s ease,
        color .25s ease,
        border-color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.site-header nav a:hover {
    background: #ffffff;

    color: #1a1f2f !important;

    border-color: #ffffff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.18);
}
/* TÍTULO "Quiénes somos" */
.intro-card h2 {
    color: #1a1f2f !important;
}

/* TEXTO DE DESCRIPCIÓN */
.intro-card p {
    color: #1a1f2f !important;
}

/* "Conocer más" */
.intro-card .text-link {
    color: #1a1f2f !important;
}

/* FLECHA */
.intro-card .text-link i {
    color: #1a1f2f !important;
}
.btn.btn-primary {
    gap: 12px;
}

/* BOTÓN CONOCER MÁS */
.btn-conocer-mas {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 12px;

    width: auto;
    min-width: 190px;

    padding: 14px 25px;

    background: #1a1f2f;
    color: #ffffff !important;

    border: 2px solid #1a1f2f;
    border-radius: 999px;

    font-weight: 700;

    transition: all .3s ease;
}

/* Flecha */
.btn-conocer-mas i {
    color: #ffffff;
    transition: transform .3s ease;
}

/* Hover */
.btn-conocer-mas:hover {
    background: #333d5b;
    border-color: #333d5b;

    color: #ffffff !important;

    transform: translateY(-2px);

    box-shadow: 0 10px 25px rgba(26,31,47,.25);
}

/* Movimiento de flecha */
.btn-conocer-mas:hover i {
    transform: translateX(5px);
}
.site-header nav li:nth-child(1) a {
    animation-delay: 0s;
}

.site-header nav li:nth-child(2) a {
    animation-delay: .25s;
}

.site-header nav li:nth-child(3) a {
    animation-delay: .50s;
}

.site-header nav li:nth-child(4) a {
    animation-delay: .75s;
}

.site-header nav li:nth-child(5) a {
    animation-delay: 1s;
}
/* =========================================================
   ANIMACION MENU - FORZADA
   ========================================================= */

#mainNav > ul > li > a {
    border: 1px solid rgba(255,255,255,.25) !important;
    background: rgba(255,255,255,.02) !important;

    animation: botonMenuPulso 2.2s ease-in-out infinite !important;

    will-change: box-shadow, border-color;
}

@keyframes botonMenuPulso {

    0%,
    100% {
        background: rgba(255,255,255,.02) !important;
        border-color: rgba(255,255,255,.25) !important;

        box-shadow:
            0 0 0 rgba(255,255,255,0),
            inset 0 0 0 rgba(255,255,255,0);
    }

    50% {
        /* Blanco más notorio */
        background: rgba(255,255,255,.12) !important;
        border-color: rgba(255,255,255,.95) !important;

        box-shadow:
            0 0 10px rgba(255,255,255,.50),
            0 0 22px rgba(255,255,255,.22),
            inset 0 0 8px rgba(255,255,255,.08);
    }
}


/* Cada botón empieza en un momento diferente */

#mainNav > ul > li:nth-child(1) > a {
    animation-delay: 0s !important;
}

#mainNav > ul > li:nth-child(2) > a {
    animation-delay: .25s !important;
}

#mainNav > ul > li:nth-child(3) > a {
    animation-delay: .50s !important;
}

#mainNav > ul > li:nth-child(4) > a {
    animation-delay: .75s !important;
}

#mainNav > ul > li:nth-child(5) > a {
    animation-delay: 1s !important;
}


/* HOVER */

#mainNav > ul > li > a:hover {
    animation-play-state: paused !important;

    background: #ffffff !important;
    color: #1a1f2f !important;

    border-color: #ffffff !important;

    box-shadow:
        0 8px 22px rgba(0,0,0,.20) !important;
}
/* =========================================================
   FIRMA - HERO ESTILO QUIENES SOMOS
   ========================================================= */

.firma-page-hero {
    background: #1a1f2f !important;

    padding-top: 140px;
    padding-bottom: 70px;
}

/* Cuadro */
.firma-page-hero .container {
    background:
        radial-gradient(
            circle at 80% 75%,
            rgba(105, 160, 235, .55) 0%,
            rgba(160, 195, 240, .48) 28%,
            rgba(205, 220, 245, .40) 50%,
            transparent 72%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #edf4ff 42%,
            #b9d2f3 100%
        );

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 18px;

    padding: 55px 60px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.22),
        0 0 35px rgba(120,170,235,.20);
}


/* Contenido */
.firma-page-hero .wrap {
    max-width: 950px;
}


/* LA FIRMA */
.firma-page-hero .kicker {
    color: #56627a !important;
    text-shadow: none !important;
}


/* Título */
.firma-page-hero h1 {
    color: #1a1f2f !important;
    text-shadow: none !important;
}


/* Breadcrumb */
.firma-page-hero .breadcrumb {
    color: #606a7d !important;
}


/* Descripción */
.firma-page-hero .page-hero-text {
    color: #343b4d !important;
    text-shadow: none !important;
}


/* =========================================================
   FIRMA - MOVIL
   ========================================================= */

@media (max-width: 768px) {

    .firma-page-hero {
        padding: 105px 15px 45px;
    }

    .firma-page-hero .container {
        width: 100%;

        padding: 35px 25px;

        border-radius: 16px;
    }

    .firma-page-hero h1 {
        font-size: 2.2rem;
    }

}
/* BOTONES SERVICIOS EN UNA SOLA FILA */
.service-actions {
    display: flex;
    align-items: center;
    gap: 14px;

    flex-wrap: nowrap !important;
}

.service-actions .btn {
    min-width: 0 !important;
    width: auto !important;

    padding: 14px 22px;

    white-space: nowrap;

    gap: 12px;
}
/* =========================================================
   CUADRO AZUL - SOLO QUIENES SOMOS
   ========================================================= */

.intro-card-quienes {
    background:
        #cadffb !important;

    border: 1px solid rgba(255, 255, 255, .85) !important;
    border-radius: 18px !important;

    box-shadow:
        0 20px 50px rgba(0, 0, 0, .25),
        0 0 35px rgba(120, 170, 235, .22) !important;
}


/* TÍTULO */

.intro-card-quienes h2 {
    color: #1a1f2f !important;
}


/* DESCRIPCIÓN */

.intro-card-quienes p {
    color: #30384b !important;
}


/* BOTÓN */

.intro-card-quienes .btn-conocer-mas {
    background: #1a1f2f !important;
    color: #ffffff !important;

    border-color: #1a1f2f !important;
}


/* FLECHA */

.intro-card-quienes .btn-conocer-mas i {
    color: #ffffff !important;
}

/* =========================================================
   CLIENTES - TARJETAS CON DEGRADADO CELESTE
   ========================================================= */

.logo-item {
    min-width: 220px;
    height: 86px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 15px 22px;

    /* DEGRADADO CELESTE */
    background:
        radial-gradient(
            circle at 82% 72%,
            rgba(90, 150, 235, .65) 0%,
            rgba(145, 188, 240, .55) 30%,
            rgba(205, 222, 247, .42) 52%,
            transparent 74%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #edf4ff 40%,
            #9fc4f0 100%
        ) !important;

    /* TEXTO */
    color: #1a1f2f !important;

    font-weight: 700;
    text-align: center;
    line-height: 1.3;

    /* BORDE */
    border: 1px solid rgba(255,255,255,.75) !important;
    border-radius: 16px;

    /* SOMBRA */
    box-shadow:
        0 10px 25px rgba(0,0,0,.15),
        0 0 20px rgba(120,170,235,.12);

    flex-shrink: 0;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


/* EFECTO AL PASAR EL MOUSE */

.logo-item:hover {
    transform: translateY(-4px);

    border-color: rgba(255,255,255,.95) !important;

    box-shadow:
        0 14px 30px rgba(0,0,0,.20),
        0 0 25px rgba(120,170,235,.30);
}
/* =========================================================
   HERO HOME - LOGO PRINCIPAL
   ESCRITORIO
   ========================================================= */

.hero-home .hero-content {
    width: 100%;
    max-width: none;
}

.hero-home .hero-text {
    width: 50%;
    max-width: none;
    margin: 0;
    padding: 120px 0 140px;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.hero-home .hero-brand {
    width: 100%;
    max-width: none;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    /* Baja ligeramente el logo solo en escritorio */
    transform: translateY(70px);
}

.hero-home .hero-brand img {
    display: block;

    width: 70%;
    max-width: 700px;
    height: auto;

    margin: 0 auto;

    object-fit: contain;
    object-position: center;

    filter: brightness(0) invert(1);
}


/* =========================================================
   HERO HOME - MOVIL
   Reduce espacio entre logo y "Quienes somos"
   ========================================================= */

@media (max-width: 768px) {

    .hero-home {
        min-height: 0 !important;
        height: auto !important;
    }

    .hero-home .hero-content {
        width: 100%;
        max-width: none;
        height: auto !important;
        min-height: 0 !important;
    }

    .hero-home .hero-text {
        width: 100%;
        max-width: none;

        margin: 0;
        padding: 105px 0 35px !important;

        display: block;

        text-align: left;
    }

    .hero-home .hero-brand {
        width: 65% !important;
        max-width: 260px !important;

        margin: 0 auto !important;

        display: block;

        transform: none !important;
    }

    .hero-home .hero-brand img {
        display: block;

        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;

        margin: 0 auto;

        object-fit: contain;
        object-position: center;

        filter: brightness(0) invert(1);
    }

    .home-split-section:first-of-type .home-split-content {
        padding-top: 25px !important;
    }
}


/* =========================================================
   HERO HOME - CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 420px) {

    .hero-home .hero-text {
        padding: 95px 0 25px !important;
    }

    .hero-home .hero-brand {
        width: 55% !important;
        max-width: 210px !important;

        margin: 0 auto !important;

        transform: none !important;
    }

    .hero-home .hero-brand img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
    }

    .home-split-section:first-of-type .home-split-content {
        padding-top: 20px !important;
    }
}

/* =========================================================
   HOME - CUADRO AZUL AREAS DE PRACTICA
   ========================================================= */

.home-split-media.areas-media {
    background: #1a1f2f !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 55px !important;

    min-height: 560px;

    overflow: visible;
}


/* CUADRO CELESTE */

.areas-image-card {
    width: 100%;
    max-width: 620px;
    height: 430px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 45px;

    background:
        radial-gradient(
            circle at 82% 72%,
            rgba(90,150,235,.65) 0%,
            rgba(145,188,240,.55) 30%,
            rgba(205,222,247,.42) 52%,
            transparent 74%
        ),
        linear-gradient(
            135deg,
            #ffffff 0%,
            #edf4ff 40%,
            #9fc4f0 100%
        );

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 20px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.25),
        0 0 35px rgba(120,170,235,.22);

    overflow: hidden;
}


/* IMAGEN */

.areas-image-card img {
    display: block !important;

    width: auto !important;
    max-width: 100% !important;

    height: auto !important;
    max-height: 340px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;

    /* MUY IMPORTANTE:
       evita el filtro blanco que tenías para el antiguo logo */
    filter: none !important;

    box-shadow: none !important;
}

@media (max-width: 768px) {

    .home-split-media.areas-media {
        width: 100% !important;

        min-height: auto !important;

        padding: 10px 25px 45px !important;

        display: flex !important;
        align-items: center;
        justify-content: center;

        background: #1a1f2f !important;
    }

    .areas-image-card {
        width: 100%;
        max-width: 100%;

        height: 320px;

        padding: 25px;

        border-radius: 16px;
    }

    .areas-image-card img {
        position: static !important;

        width: auto !important;
        max-width: 100% !important;

        height: auto !important;
        max-height: 270px !important;

        object-fit: contain !important;

        margin: 0 auto !important;

        filter: none !important;
    }

}

.areas-image-card .areas-logo {
    width: 99% !important;
    max-width: 99% !important;
    height: auto !important;
    max-height: 550px !important;
    object-fit: contain !important;
}
/* LOGO DEL CUADRO DE ÁREAS - CELULAR */
@media (max-width: 768px) {

    .areas-image-card .areas-logo {
        width: auto !important;
        max-width: auto !important;
        height: auto !important;
        max-height: auto !important;

        object-fit: contain !important;
        object-position: center !important;

        margin: 0 auto !important;
    }

    .areas-image-card {
        padding: 15px !important;
        height: 300px !important;

        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}


/* =========================================================
   FIRMA - BANNER LOGO
   ========================================================= */

.firma-banner {
    width: 100%;
    padding: 60px 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #1a1f2f;
}


/* CUADRO GRANDE */

/* CUADRO FIRMA - MÁS BAJO Y COMPACTO */
.firma-banner-card {
    width: min(100%, 1250px);
    height: 260px;
    min-height: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 25px 50px;

    background:
        radial-gradient(
            ellipse at center,
            rgba(255,255,255,1) 0%,
            rgba(255,255,255,.98) 28%,
            rgba(242,244,248,.92) 50%,
            rgba(201,207,222,.88) 78%,
            rgba(178,186,207,.95) 100%
        );

    border: 1px solid rgba(255,255,255,.70);
    border-radius: 18px;

    box-shadow:
        0 18px 40px rgba(0,0,0,.25),
        0 0 25px rgba(190,198,218,.15);

    overflow: hidden;
}


/* =========================================================
   FIRMA - TARJETA DE PRESENTACIÓN
   ========================================================= */

.firma-banner {
    width: 100%;
    padding: 45px 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    background: #1a1f2f;
}

.firma-banner-card {
    /* MISMO ANCHO QUE LOS CONTAINER DE LA WEB */
    width: min(100% - 40px, var(--container)) !important;
    max-width: none !important;

    /* Mantenerlo relativamente bajo */
    height: 320px !important;
    min-height: 0 !important;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 50px;

    background:
        radial-gradient(
            ellipse at center,
            #ffffff 0%,
            #f7f8fa 38%,
            #e4e7ee 65%,
            #b8bfd1 100%
        );

    border: 1px solid rgba(255,255,255,.75);
    border-radius: 18px;

    box-shadow:
        0 18px 45px rgba(0,0,0,.28),
        0 0 30px rgba(190,198,218,.18);

    overflow: hidden;
}


/* LOGO */

.firma-banner-logo {
    display: block;

    width: 100%;
    max-width: 860px;
    height: 250%;

    object-fit: contain;

    margin: 0 auto;

    background: transparent !important;
    filter: none !important;
    box-shadow: none !important;
}
@media (max-width: 768px) {

    .firma-banner {
        padding: 30px 18px;
    }

    .firma-banner-card {
        width: 100%;
        max-width: 500px;

        aspect-ratio: 1.75 / 1;

        padding: 20px;

        border-radius: 15px;
    }

    .firma-banner-logo {
        width: 100%;
        max-width: 860px;
        height: auto;
    }
}
@media (max-width: 768px) {

    /* CONTENEDOR EXTERIOR */
    .firma-banner {
        width: 100%;
        padding: 25px 15px !important;
    }

    /* CUADRO DEGRADADO */
    .firma-banner-card {
        width: 100% !important;
        max-width: 100% !important;

        height: 190px !important;
        min-height: 0 !important;

        padding: 20px !important;

        border-radius: 16px;

        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* LOGO: NO AGRANDAMOS EL CUADRO A PARTIR DEL LOGO */
    .firma-banner-logo {
        width: 120% !important;
        max-width: 500px !important;

        height: auto !important;
        max-height: 440px !important;

        object-fit: contain !important;

        margin: 0 auto !important;
    }
}

/* =========================================================
   FIRMA - ALINEACION DEFINITIVA
   Highlight + Banner
   ========================================================= */

/* ESCRITORIO */
.firma-highlight,
.firma-banner {
    width: 100% !important;
}

.firma-highlight-box,
.firma-banner-card {
    width: 100% !important;
    max-width: 980px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}


/* Banner del logo */
.firma-banner {
    padding: 30px 0 50px !important;
    margin: 0 !important;

    display: block !important;
}

.firma-banner-card {
    height: 260px !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;

    padding: 25px 35px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Logo */
.firma-banner-logo {
    width: 100% !important;
    max-width: 700px !important;

    height: auto !important;
    max-height: 590px !important;

    object-fit: contain !important;
    margin: 0 auto !important;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    /*
     IMPORTANTE:
     firma-banner ya está dentro de .container en tu HTML.
     No volvemos a restarle 30px o 40px.
    */

    .firma-highlight,
    .firma-banner {
        width: 100% !important;

        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .firma-highlight-box,
    .firma-banner-card {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;
    }

    .firma-banner {
        padding: 22px 0 35px !important;
    }

    .firma-banner-card {
        height: 170px !important;
        min-height: 0 !important;

        padding: 15px 18px !important;

        border-radius: 16px !important;
    }

    .firma-banner-logo {
        width: 100% !important;
        max-width: 290px !important;

        height: auto !important;
        max-height: 425px !important;

        margin: 0 auto !important;
    }
}
/* REDUCIR ESPACIO ENTRE LOGO Y MISIÓN/VISIÓN */
@media (max-width: 768px) {

    .firma-banner {
        padding-bottom: 5px !important;
    }

    .firma-banner-card {
        margin-bottom: 0 !important;
    }

    .firma-values-section,
    .firma-essence,
    .firma-mission-section {
        padding-top: 25px !important;
        margin-top: 0 !important;
    }
}
@media (max-width: 768px) {

    .firma-banner {
        padding-top: 15px !important;
        padding-bottom: 0 !important;
        margin-bottom: -45px !important;
    }
}
/* Reducir espacio después del banner - ESCRITORIO */
.firma-banner {
    padding-bottom: 10px !important;
    margin-bottom: -20px !important;
}

/* CELULAR */
@media (max-width: 768px) {
    .firma-banner {
        padding-bottom: 0 !important;
        margin-bottom: -45px !important;
    }
}

/* =========================================================
   AGENDA - FORMULARIO SIN ASIDE
   ========================================================= */

.agenda-grid-single {
    display: block !important;
    width: 100%;
}

.agenda-grid-single .agenda-form-card {
    width: 100%;
    max-width: 950px;

    margin: 0 auto;

    padding: 45px 50px;
}

/* Campos */
.agenda-grid-single .agenda-field {
    width: 100%;
    margin-top: 20px;
}

.agenda-grid-single input,
.agenda-grid-single textarea {
    width: 100%;
}

/* Detalles */
.agenda-grid-single textarea {
    min-height: 160px;
    resize: vertical;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .agenda-grid-single .agenda-form-card {
        width: 100%;
        max-width: none;

        padding: 28px 20px;
    }

    .agenda-grid-single textarea {
        min-height: 140px;
    }

    .agenda-grid-single .btn-row {
        display: flex;
        flex-direction: column;
    }

    .agenda-grid-single .btn-row .btn {
        width: 100%;
    }
}

/* =========================================================
   REDES SOCIALES DENTRO DEL FOOTER INFERIOR
   ========================================================= */

.footer-bottom .social-footer {
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: flex-start;

    gap: 22px;

    margin: 0;
    padding: 28px 0 18px;
}

.footer-bottom .social-footer-btn {
    width: 38px;
    height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;

    color: #ffffff !important;

    font-size: 1.55rem;

    transition:
        transform .25s ease,
        opacity .25s ease,
        text-shadow .25s ease;
}

.footer-bottom .social-footer-btn i {
    color: #ffffff !important;
}

.footer-bottom .social-footer-btn:hover {
    transform: translateY(-3px) scale(1.1);

    text-shadow:
        0 0 8px rgba(255,255,255,.7),
        0 0 16px rgba(255,255,255,.35);
}
@media (max-width: 768px) {

    .footer-bottom .social-footer {
        width: 100%;

        justify-content: flex-start;

        gap: 18px;

        margin: 0;

        /* espacio pequeño sobre los iconos */
        padding: 22px 0 14px;
    }

    .footer-bottom .social-footer-btn {
        width: 34px;
        height: 34px;

        font-size: 1.4rem;
    }

    .footer-bottom-inner {
        padding-top: 12px;
    }
}

/* =========================================================
   CLIENTES - LOGOS SIN TARJETA
   VERSION FINAL
   ========================================================= */

/* Contenedor general */
.home-trust .logo-marquee.multi {
    display: flex;
    flex-direction: column;

    gap: 28px;

    overflow: hidden;

    margin-top: 45px;
}


/* =========================================================
   FILAS DEL CARRUSEL
   ========================================================= */

.home-trust .logo-track {
    display: flex;
    align-items: center;

    gap: 45px;

    width: max-content;

    animation: scrollLogos 25s linear infinite;
}

.home-trust .logo-track.reverse {
    animation: scrollLogosReverse 28s linear infinite;
}


/* =========================================================
   CONTENEDOR DE CADA LOGO
   SIN FONDO
   SIN BORDE
   SIN TARJETA
   ========================================================= */

.home-trust .logo-item {
    width: 280px !important;
    min-width: 280px !important;

    height: 120px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    flex: 0 0 280px !important;

    padding: 8px 15px !important;
    margin: 0 !important;

    /* QUITAR COMPLETAMENTE EL CUADRO */
    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: visible !important;

    color: transparent !important;

    transition: none !important;
}


/* =========================================================
   IMÁGENES DE LOS LOGOS
   ========================================================= */

.home-trust .logo-item img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    /*
     Tamaño máximo del logo.
     Puedes aumentar estos dos valores.
    */
    max-width: 250px !important;
    max-height: 105px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;

    border: none !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    /*
     MUY IMPORTANTE:
     evita filtros globales de otros logos
    */
    filter: none !important;

    opacity: 1 !important;

    transition: transform .3s ease !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.home-trust .logo-item:hover {
    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    transform: none !important;
}

.home-trust .logo-item:hover img {
    transform: scale(1.10) !important;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .home-trust .logo-track {
        gap: 32px;
    }

    .home-trust .logo-item {
        width: 240px !important;
        min-width: 240px !important;

        flex-basis: 240px !important;

        height: 110px !important;
    }

    .home-trust .logo-item img {
        max-width: 215px !important;
        max-height: 95px !important;
    }
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .home-trust .logo-marquee.multi {
        gap: 18px;

        margin-top: 30px;
    }

    .home-trust .logo-track {
        gap: 25px;
    }

    .home-trust .logo-item {
        width: 190px !important;
        min-width: 190px !important;

        flex: 0 0 190px !important;

        height: 90px !important;

        padding: 5px 10px !important;

        background: transparent !important;

        border: none !important;

        box-shadow: none !important;
    }

    .home-trust .logo-item img {
        max-width: 175px !important;
        max-height: 78px !important;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 420px) {

    .home-trust .logo-track {
        gap: 20px;
    }

    .home-trust .logo-item {
        width: 165px !important;
        min-width: 165px !important;

        flex-basis: 165px !important;

        height: 82px !important;
    }

    .home-trust .logo-item img {
        max-width: 155px !important;
        max-height: 72px !important;
    }
}

/* =========================================================
   LOGOS CLIENTES - MENOS ESPACIO ENTRE LOGOS
   ========================================================= */

.home-trust .logo-marquee.multi {
    gap: 12px !important;
}

.home-trust .logo-track {
    gap: 10px !important;
}


/* Cada espacio reservado para un logo */
.home-trust .logo-item {
    width: 200px !important;
    min-width: 200px !important;
    flex: 0 0 200px !important;

    height: 130px !important;

    padding: 5px !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}


/* Imagen */
.home-trust .logo-item img {
    width: auto !important;
    height: auto !important;

    max-width: 190px !important;
    max-height: 115px !important;

    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .home-trust .logo-marquee.multi {
        gap: 8px !important;
    }

    .home-trust .logo-track {
        gap: 12px !important;
    }

    .home-trust .logo-item {
        width: 145px !important;
        min-width: 145px !important;
        flex: 0 0 145px !important;

        height: 95px !important;

        padding: 4px !important;
    }

    .home-trust .logo-item img {
        max-width: 140px !important;
        max-height: 85px !important;
    }
}
/* =========================================================
   CARRUSEL DE LOGOS - ESPACIADO UNIFORME
   ========================================================= */

.home-trust .logo-marquee.multi {
    display: flex !important;
    flex-direction: column !important;

    /* separación vertical entre filas */
    gap: 14px !important;

    overflow: hidden !important;
}


/* CADA FILA */
.home-trust .logo-track {
    display: flex !important;
    align-items: center !important;

    /* separación real entre cada celda */
    gap: 10px !important;

    width: max-content !important;
}


/* =========================================================
   CELDA INVISIBLE DE CADA LOGO
   ========================================================= */

.home-trust .logo-item {
    /*
     TODOS ocupan exactamente el mismo espacio.
     Esto hace uniforme la separación.
    */
    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;

    flex: 0 0 190px !important;

    height: 145px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 5px !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    overflow: hidden !important;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.home-trust .logo-item img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    /*
     Todos los logos deben entrar dentro
     de este mismo espacio.
    */
    max-width: 180px !important;
    max-height: 125px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    filter: none !important;

    transition: transform .25s ease !important;
}


/* HOVER */
.home-trust .logo-item:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-trust .logo-item:hover img {
    transform: scale(1.06) !important;
}

/* =========================================================
   LOGOS CLIENTES
   TAMAÑO Y SEPARACIÓN REALMENTE UNIFORMES
   ========================================================= */

.home-trust .logo-marquee.multi {
    display: flex !important;
    flex-direction: column !important;

    /* Distancia entre filas */
    gap: 12px !important;

    overflow: hidden !important;
}


/* =========================================================
   FILA
   ========================================================= */

.home-trust .logo-track {
    display: flex !important;
    align-items: center !important;

    /* MISMA DISTANCIA ENTRE TODOS */
    gap: 12px !important;

    width: max-content !important;
}


/* =========================================================
   CELDA DE CADA LOGO
   ========================================================= */

.home-trust .logo-item {
    box-sizing: border-box !important;

    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;

    height: 140px !important;
    min-height: 140px !important;
    max-height: 140px !important;

    flex: 0 0 190px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 6px !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    overflow: hidden !important;
}


/* =========================================================
   TODAS LAS IMÁGENES USAN LA MISMA ZONA
   ========================================================= */

.home-trust .logo-item img {
    display: block !important;

    /*
       ESTA ES LA PARTE IMPORTANTE.

       Todos los logos disponen exactamente
       del mismo espacio visual.
    */
    width: 178px !important;
    height: 128px !important;

    max-width: 178px !important;
    max-height: 128px !important;

    object-fit: contain !important;
    object-position: center center !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;
    filter: none !important;

    background: transparent !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.home-trust .logo-item:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-trust .logo-item img {
    transition: transform .25s ease !important;
}

.home-trust .logo-item:hover img {
    transform: scale(1.04) !important;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .home-trust .logo-marquee.multi {
        gap: 8px !important;
    }

    .home-trust .logo-track {
        gap: 8px !important;
    }

    .home-trust .logo-item {
        width: 140px !important;
        min-width: 140px !important;
        max-width: 140px !important;

        height: 105px !important;
        min-height: 105px !important;
        max-height: 105px !important;

        flex: 0 0 140px !important;

        padding: 4px !important;
    }

    .home-trust .logo-item img {
        width: 132px !important;
        height: 97px !important;

        max-width: 132px !important;
        max-height: 97px !important;

        object-fit: contain !important;
    }
}

/* =========================================================
   LOGOS CLIENTES - SOLUCIÓN FINAL
   separación visual uniforme
   ========================================================= */

.home-trust .logo-marquee.multi {
    display: flex !important;
    flex-direction: column !important;

    /* distancia entre las filas */
    gap: 18px !important;

    overflow: hidden !important;
}


/* =========================================================
   FILA
   ========================================================= */

.home-trust .logo-track {
    display: flex !important;
    align-items: center !important;

    /* ESTA será la distancia REAL entre imágenes */
    gap: 18px !important;

    width: max-content !important;
}


/* =========================================================
   QUITAMOS EL ANCHO FIJO DE LA CELDA
   ========================================================= */

.home-trust .logo-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 145px !important;
    min-height: 145px !important;
    max-height: 145px !important;

    flex: 0 0 auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    overflow: visible !important;
}


/* =========================================================
   IMAGEN
   ========================================================= */

.home-trust .logo-item img {
    display: block !important;

    /*
     Todos tienen la misma ALTURA MÁXIMA,
     pero conservan su ancho natural.
    */
    width: auto !important;
    height: auto !important;

    max-width: 230px !important;
    max-height: 135px !important;

    object-fit: contain !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;
    border-radius: 0 !important;

    box-shadow: none !important;

    filter: none !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.home-trust .logo-item:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-trust .logo-item img {
    transition: transform .25s ease !important;
}

.home-trust .logo-item:hover img {
    transform: scale(1.04) !important;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .home-trust .logo-marquee.multi {
        gap: 12px !important;
    }

    .home-trust .logo-track {
        gap: 12px !important;
    }

    .home-trust .logo-item {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        flex: 0 0 auto !important;

        height: 95px !important;
        min-height: 95px !important;
        max-height: 95px !important;

        padding: 0 !important;
    }

    .home-trust .logo-item img {
        width: auto !important;
        height: auto !important;

        max-width: 160px !important;
        max-height: 90px !important;
    }
}

/* =========================================================
   LOGOS CLIENTES
   ALTURA PAREJA + MENOR SEPARACIÓN
   ========================================================= */

.home-trust .logo-marquee.multi {
    display: flex !important;
    flex-direction: column !important;

    /* Separación vertical entre filas */
    gap: 12px !important;

    overflow: hidden !important;
}


/* =========================================================
   FILAS
   ========================================================= */

.home-trust .logo-track {
    display: flex !important;
    align-items: center !important;

    /* Separación REAL entre logos */
    gap: 12px !important;

    width: max-content !important;
}


/* =========================================================
   CONTENEDOR
   Ya NO reserva 220px para cada logo
   ========================================================= */

.home-trust .logo-item {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;

    flex: 0 0 auto !important;

    /* Mantiene todas las filas con la misma altura */
    height: 145px !important;
    min-height: 145px !important;
    max-height: 145px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;

    overflow: visible !important;
}


/* =========================================================
   IMAGEN
   Mantiene proporciones originales
   ========================================================= */

.home-trust .logo-item img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    /*
       Todos tienen el mismo límite vertical,
       pero SIN deformarse.
    */
    max-height: 120px !important;
    max-width: 220px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    filter: none !important;

    transition: transform .25s ease !important;
}


/* =========================================================
   HOVER
   ========================================================= */

.home-trust .logo-item:hover {
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.home-trust .logo-item:hover img {
    transform: scale(1.05) !important;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .home-trust .logo-marquee.multi {
        gap: 8px !important;
    }

    .home-trust .logo-track {
        gap: 8px !important;
    }

    .home-trust .logo-item {
        width: auto !important;
        min-width: 0 !important;
        max-width: none !important;

        flex: 0 0 auto !important;

        height: 100px !important;
        min-height: 100px !important;
        max-height: 100px !important;

        padding: 0 !important;
    }

    .home-trust .logo-item img {
        width: auto !important;
        height: auto !important;

        max-height: 85px !important;
        max-width: 155px !important;
    }
}

/* =========================================================
   LOGOS CLIENTES - CORRECCIÓN DEFINITIVA
   ========================================================= */

.home-trust .logo-marquee.multi {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    overflow: hidden !important;
}


/* FILA */
.home-trust .logo-track {
    display: flex !important;
    align-items: center !important;

    gap: 14px !important;

    width: max-content !important;
}


/* CELDA INVISIBLE DE 280 x 120 */
.home-trust .logo-item {
    box-sizing: border-box !important;

    width: 280px !important;
    min-width: 280px !important;
    max-width: 280px !important;

    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;

    flex: 0 0 280px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 8px !important;
    margin: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    /*
     IMPORTANTE:
     evita que un logo invada la siguiente fila
    */
    overflow: hidden !important;
}


/* IMAGEN */
.home-trust .logo-item img {
    display: block !important;

    /*
     NO damos width/height fijos simultáneamente.
     Así no se deforman.
    */
    width: auto !important;
    height: auto !important;

    max-width: 100% !important;
    max-height: 104px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;
    padding: 0 !important;

    background: transparent !important;
    border: none !important;
    box-shadow: none !important;

    filter: none !important;
}


/* HOVER */
.home-trust .logo-item:hover {
    transform: none !important;
}

.home-trust .logo-item:hover img {
    transform: scale(1.03) !important;
}


/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .home-trust .logo-marquee.multi {
        gap: 10px !important;
    }

    .home-trust .logo-track {
        gap: 10px !important;
    }

    .home-trust .logo-item {
        width: 190px !important;
        min-width: 190px !important;
        max-width: 190px !important;

        height: 90px !important;
        min-height: 90px !important;
        max-height: 90px !important;

        flex: 0 0 190px !important;

        padding: 6px !important;

        overflow: hidden !important;
    }

    .home-trust .logo-item img {
        width: auto !important;
        height: auto !important;

        max-width: 100% !important;
        max-height: 78px !important;

        object-fit: contain !important;
    }
}

/* =========================================================
   LOGOS DE CLIENTES - TAMAÑO MÁS COMPACTO
   ========================================================= */

/* CONTENEDOR GENERAL */
.home-trust .logo-marquee.multi {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    overflow: hidden !important;
}

/* FILAS DEL CARRUSEL */
.home-trust .logo-track {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: max-content !important;
}

/* CUADROS DE LOS LOGOS */
.home-trust .logo-item {
    box-sizing: border-box !important;

    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;

    height: 85px !important;
    min-height: 85px !important;
    max-height: 85px !important;

    flex: 0 0 190px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 6px !important;
    margin: 0 !important;

    background: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    box-shadow: none !important;

    overflow: hidden !important;
}

/* IMÁGENES SIN DISTORSIÓN */
.home-trust .logo-item img {
    display: block !important;

    width: auto !important;
    height: auto !important;

    max-width: 175px !important;
    max-height: 72px !important;

    object-fit: contain !important;
    object-position: center !important;

    margin: 0 auto !important;
    padding: 0 !important;

    border: none !important;
    box-shadow: none !important;
    filter: none !important;

    transition: transform 0.25s ease;
}

/* HOVER */
.home-trust .logo-item:hover {
    transform: none !important;
}

.home-trust .logo-item:hover img {
    transform: scale(1.04);
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 980px) {

    .home-trust .logo-item {
        width: 165px !important;
        min-width: 165px !important;
        max-width: 165px !important;

        flex: 0 0 165px !important;

        height: 75px !important;
        min-height: 75px !important;
        max-height: 75px !important;

        padding: 5px !important;
    }

    .home-trust .logo-item img {
        max-width: 150px !important;
        max-height: 63px !important;
    }
}

/* =========================================================
   CELULAR
   ========================================================= */

@media (max-width: 768px) {

    .home-trust .logo-marquee.multi {
        gap: 8px !important;
    }

    .home-trust .logo-track {
        gap: 7px !important;
    }

    .home-trust .logo-item {
        width: 120px !important;
        min-width: 120px !important;
        max-width: 120px !important;

        flex: 0 0 120px !important;

        height: 60px !important;
        min-height: 60px !important;
        max-height: 60px !important;

        padding: 5px !important;
        border-radius: 9px !important;
    }

    .home-trust .logo-item img {
        max-width: 110px !important;
        max-height: 50px !important;
    }
}

/* MAPA RESPONSIVE */
.mapa-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 16px;
}

.mapa-container iframe {
    display: block;
    width: 100%;
    height: 450px;
    border: 0;
}

/* TABLET */
@media (max-width: 992px) {
    .mapa-container {
        max-width: 100%;
    }

    .mapa-container iframe {
        height: 380px;
    }
}

/* CELULAR */
@media (max-width: 768px) {
    .mapa-container {
        width: 100%;
        border-radius: 12px;
    }

    .mapa-container iframe {
        width: 100%;
        height: 300px;
    }
}

/* CELULARES PEQUEÑOS */
@media (max-width: 420px) {
    .mapa-container iframe {
        height: 260px;
    }
}

/* =========================================================
   CONTACTO RESPONSIVE - MAPA VISIBLE EN CELULAR
   ========================================================= */

@media (max-width: 768px) {

    /* MAPA ARRIBA E INFORMACIÓN DEBAJO */
    .contact-section .contact-wrap {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
    }

    /* CONTENEDOR DEL MAPA */
    .contact-section .mapa-container {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;

        width: 100% !important;
        max-width: 100% !important;
        height: 260px !important;

        margin: 0 !important;
        padding: 0 !important;

        border-radius: 14px !important;
        overflow: hidden !important;
    }

    /* GOOGLE MAPS */
    .contact-section .mapa-container iframe {
        display: block !important;
        visibility: visible !important;

        width: 100% !important;
        height: 100% !important;
        min-height: 260px !important;

        border: 0 !important;
    }

    /* INFORMACIÓN DE CONTACTO */
    .contact-section .contact-info-card {
        display: block !important;

        width: 100% !important;
        max-width: 100% !important;

        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;

        padding: 25px 20px !important;
        margin: 0 !important;

        overflow: visible !important;
    }

    /* EVITAR CORTE DE TEXTOS */
    .contact-section .contact-info-item {
        width: 100%;
        min-width: 0;
    }

    .contact-section .contact-info-item > div:last-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    /* BOTONES */
    .contact-section .contact-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .contact-section .contact-actions .btn {
        width: 100% !important;
        white-space: normal !important;
    }
}


/* =========================================================
   CELULARES PEQUEÑOS
   ========================================================= */

@media (max-width: 420px) {

    .contact-section .mapa-container {
        height: 220px !important;
    }

    .contact-section .mapa-container iframe {
        min-height: 220px !important;
    }

    .contact-section .contact-info-card {
        padding: 20px 15px !important;
    }
}