:root {
    --bg-dark: #05152b;
    --bg-hero: #f4f4f4;
    --bg-contact: #ebe6dd;
    --text-dark: #05152b;
    --text-light: #ffffff;
    --accent: #6192f4;
    --accent-dark: #02308c;
    --gradient-bottom: #022772;

    --container-max: 1400px;
    --pad-inline: clamp(20px, 4vw, 60px);

    --space-1: clamp(8px, 0.8vw, 12px);
    --space-2: clamp(12px, 1vw, 16px);
    --space-3: clamp(16px, 1.4vw, 24px);
    --space-4: clamp(24px, 2vw, 32px);
    --space-5: clamp(32px, 3vw, 48px);
    --space-6: clamp(48px, 5vw, 80px);
    --space-7: clamp(64px, 8vw, 120px);

    --text-xs: clamp(13px, 0.9vw, 14px);
    --text-sm: clamp(14px, 1vw, 16px);
    --text-md: clamp(16px, 1.2vw, 18px);
    --text-lg: clamp(18px, 1.4vw, 20px);

    --title-sm: clamp(32px, 4vw, 48px);
    --title-md: clamp(40px, 5.6vw, 64px);
    --title-lg: clamp(48px, 6.8vw, 76px);
    --title-xl: clamp(56px, 9vw, 120px);

    --lh-tight: 0.82;
    --lh-title: 0.9;
    --lh-body: 1.6;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-pill: 9999px;

    --section-vh: 100svh;
    --nav-height: 84px;
}

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

html {
    scroll-behavior: auto;
}

body {
    font-family: "DM Sans", sans-serif;
    background-color: var(--bg-hero);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
video,
svg,
canvas {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.container-shell {
    width: min(100% - (var(--pad-inline) * 2), var(--container-max));
    margin-inline: auto;
}

/* =========================================================================
   WEBGL CANVAS
   ========================================================================= */

#webgl-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    pointer-events: none;
    z-index: 35;
}

/* =========================================================================
   LOADING SCREEN
   ========================================================================= */

.loading-screen {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100svh;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: var(--space-4);
    z-index: 9999;
    padding-inline: var(--pad-inline);
}

.loading-logo-wrapper {
    width: min(320px, 70vw);
    display: flex;
    justify-content: center;
}

.loading-logo-svg {
    width: 100%;
    height: auto;
    overflow: visible;
    opacity: 0;
}

.loading-logo-svg path {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 1.5px;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: transparent;
}

.loading-logo-svg .cls-1,
.loading-logo-svg .cls-2 {
    fill: transparent;
}

.loading-text {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0);
    letter-spacing: 0.08em;
    text-transform: none;
    text-align: center;
}

/* =========================================================================
   SMOOTH WRAPPER
   ========================================================================= */

#smooth-wrapper {
    position: relative;
}

#smooth-content {
    background-color: var(--bg-hero);
    position: relative;
    width: 100%;
}

/* =========================================================================
   NAVBAR
   ========================================================================= */

.navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--space-3) var(--pad-inline);
    z-index: 100;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.navbar {
    pointer-events: auto;
    position: relative;
    z-index: 10;
    width: min(100%, 1280px);
    min-height: var(--nav-height);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-3);
    padding: 14px 24px;
    border-radius: var(--radius-pill);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.navbar-wrapper[data-theme="light"] .nav-link,
.navbar-wrapper[data-theme="light"] .btn-contact {
    color: #05152b;
}

.navbar-wrapper[data-theme="light"] .nav-link:hover {
    color: #133578;
}

.navbar-wrapper[data-theme="dark"] .nav-link,
.navbar-wrapper[data-theme="dark"] .btn-contact {
    color: #ffffff;
}

.navbar-wrapper[data-theme="dark"] .nav-link:hover {
    color: rgba(255, 255, 255, 0.8);
}

.liquid-glass {
    background: rgba(255, 255, 255, 0.01);
    background-blend-mode: luminosity;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.liquid-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1.4px;
    background: linear-gradient(180deg,
            rgba(255, 255, 255, 0.45) 0%,
            rgba(255, 255, 255, 0.15) 20%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.15) 80%,
            rgba(255, 255, 255, 0.45) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.nav-left .logo {
    height: clamp(36px, 3.5vw, 48px);
    width: auto;
    object-fit: contain;
}

.nav-center {
    display: flex;
    gap: clamp(18px, 2vw, 32px);
    align-items: center;
}

.nav-toggle {
    display: none;
}

.nav-link {
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-weight: 500;
    font-size: var(--text-xs);
    letter-spacing: 0.12em;
    transition: color 0.3s ease, transform 0.3s ease;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
}

.nav-link:hover {
    transform: scale(1.03);
}

.btn-contact {
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.08em;
    padding: 10px 22px;
    border-radius: var(--radius-pill);
    transition: transform 0.3s ease, color 0.3s ease;
    display: inline-block;
    text-transform: uppercase;
    white-space: nowrap;
}

.btn-contact:hover {
    transform: scale(1.03);
}

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

.hero {
    position: relative;
    width: 100%;
    min-height: var(--section-vh);
    overflow: hidden;
    display: flex;
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    object-fit: cover;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #1e2e7669 0%, #040e39 100%);
    z-index: 5;
    pointer-events: none;
}

.hero-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(28px, 5vh, 64px);
    z-index: 10;
    width: min(100% - (var(--pad-inline) * 2), var(--container-max));
    margin-inline: auto;
}

.hero-content-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    width: 100%;
}

.hero-title {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-weight: 700;
    font-size: var(--title-xl);
    color: #ffffff;
    text-align: left;
    line-height: var(--lh-tight);
    text-transform: uppercase;
    margin: 0;
    max-width: none;
    word-break: normal;
    overflow-wrap: break-word;
}

.hero-subtitle-wrapper {
    max-width: 440px;
    padding-bottom: 0.35rem;
}

.hero-subtitle {
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
    font-size: var(--text-md);
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    letter-spacing: -0.01em;
}

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

.servicios {
    position: relative;
    width: 100%;
    background-color: #040e39;
    z-index: 20;
}

.servicios-pinned {
    width: 100%;
    min-height: var(--section-vh);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.servicios-intro {
    text-align: left;
    max-width: min(520px, 36vw);
    position: absolute;
    top: 50%;
    left: var(--pad-inline);
    transform: translateY(-50%);
    z-index: 10;
}

.servicios-antetitulo,
.qs-antetitulo,
.cob-antetitulo,
.contacto-antetitulo,
.card-antetitulo {
    font-family: "DM Sans", sans-serif;
    text-transform: uppercase;
    font-size: var(--text-sm);
    color: var(--accent);
    letter-spacing: 0.1em;
    font-weight: 400;
    display: block;
}

.servicios-antetitulo {
    margin-bottom: var(--space-3);
    font-weight: 800;
}

.servicios-titulo {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-weight: 700;
    font-size: var(--title-lg);
    color: #ffffff;
    line-height: var(--lh-tight);
    text-transform: uppercase;
    width: min(100%, 520px);
}

.cards-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 0;
    width: max-content;
    padding: 0;
    will-change: transform;
}

.card {
    width: 360px;
    min-height: var(--section-vh);
    border-radius: 0;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    will-change: width, height, transform;
    flex-shrink: 0;
    cursor: default;
}

.card:not(:first-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.4);
}

.card-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    transition: transform 0.6s ease;
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(5, 21, 43, 0.9) 0%, rgba(5, 21, 43, 0.4) 100%);
    z-index: 2;
    transition: opacity 0.4s ease;
}

.card-content-min {
    position: relative;
    z-index: 5;
    font-family: "roc-grotesk-compressed", sans-serif;
    font-weight: 600;
    font-size: clamp(24px, 2.5vw, 32px);
    color: #ffffff;
    text-transform: uppercase;
    text-align: center;
    padding-inline: var(--space-4);
}

.card-content-full {
    position: absolute;
    inset: 0;
    z-index: 10;
    padding: clamp(24px, 4vw, 48px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
}

.card-antetitulo {
    margin-bottom: var(--space-1);
    font-weight: 800;
}

.card-titulo {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-weight: 700;
    font-size: clamp(36px, 5vw, 56px);
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
    line-height: 1;
}

.card-desc {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-lg);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: var(--space-4);
    max-width: 480px;
}

.btn-card {
    text-decoration: none;
    font-weight: 500;
    font-size: var(--text-sm);
    color: #ffffff;
    background-color: var(--accent);
    padding: 12px 24px;
    border-radius: var(--radius-md);
    align-self: flex-start;
    transition: background-color 0.3s ease, transform 0.3s ease;
    pointer-events: auto;
}

.btn-card:hover {
    background-color: #4a7be0;
    transform: translateY(-2px);
}

/* =========================================================================
   QUIENES SOMOS
   ========================================================================= */

.quienes-somos {
    position: relative;
    width: 100%;
    background-color: #000b26;
    color: #ffffff;
    padding: clamp(72px, 12vh, 140px) 0;
    z-index: 30;
}

.qs-container {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--pad-inline);
    gap: clamp(32px, 6vw, 80px);
}

.qs-left {
    flex: 0 0 40%;
    position: relative;
    z-index: 40;
}

.qs-sticky {
    padding-top: min(8vh, 80px);
}

.qs-antetitulo {
    margin-bottom: var(--space-3);
    font-weight: 800;
}

.qs-titulo {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-size: var(--title-lg);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    width: min(100%, 460px);
}

.qs-desc {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-md);
    line-height: var(--lh-body);
    color: rgba(255, 255, 255, 0.85);
    width: min(100%, 560px);
}

.qs-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: clamp(56px, 12vh, 120px);
    padding-bottom: clamp(80px, 20vh, 180px);
    position: relative;
    z-index: 30;
}

.ficha-abogado {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: clamp(24px, 3vw, 40px);
}

.ficha-img {
    flex-shrink: 0;
    width: 45%;
    height: clamp(340px, 60vh, 680px);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background-color: #081d3d;
}

.ficha-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    opacity: 1;
}

.ficha-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    position: relative;
    z-index: 40;
}

.ficha-nombre {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: var(--space-1);
    line-height: 1;
}

.ficha-mat {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    color: var(--accent);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 800;
}

.ficha-desc {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    line-height: var(--lh-body);
    color: rgba(255, 255, 255, 0.7);
    width: min(100%, 420px);
}

.colaboradores-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    width: 100%;
}

.colaboradores-titulo {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-size: clamp(32px, 3.5vw, 42px);
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 12px;
    margin: 0;
}

.colaboradores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-3);
    width: 100%;
}

.colaborador-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
}

.colaborador-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.colaborador-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(97, 146, 244, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.colaborador-card:hover::before {
    transform: scaleY(1);
    transform-origin: top;
}

.colaborador-nombre {
    font-family: "DM Sans", sans-serif;
    font-size: clamp(16px, 1.3vw, 18px);
    font-weight: 500;
    color: #ffffff;
    line-height: 1.3;
}

.colaborador-mat {
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    color: var(--accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.qs-slider-controls {
    display: none;
}

/* =========================================================================
   FAQ SECTION
   ========================================================================= */

.faq {
    position: relative;
    width: 100%;
    background-color: #010a1c;
    color: #ffffff;
    padding: clamp(72px, 12vh, 140px) 0;
    z-index: 35;
    overflow: hidden;
}

.faq-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad-inline);
}

.faq-header {
    text-align: center;
    margin-bottom: clamp(40px, 6vh, 64px);
}

.faq-antetitulo {
    font-family: "DM Sans", sans-serif;
    text-transform: uppercase;
    font-size: var(--text-sm);
    color: var(--accent);
    letter-spacing: 0.14em;
    font-weight: 800;
    display: block;
    margin-bottom: var(--space-3);
}

.faq-titulo {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-size: var(--title-lg);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
}

.faq-desc {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(97, 146, 244, 0.25);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.faq-item:hover {
    border-color: rgba(97, 146, 244, 0.2);
    background: rgba(255, 255, 255, 0.03);
}

.faq-question {
    padding: 24px 28px;
    font-family: "DM Sans", sans-serif;
    font-size: clamp(16px, 1.3vw, 20px);
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    list-style: none;
    user-select: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-icon::before,
.faq-icon::after {
    content: "";
    position: absolute;
    background-color: var(--accent);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.faq-icon::before {
    top: 7px;
    left: 0;
    width: 16px;
    height: 2px;
}

.faq-icon::after {
    top: 0;
    left: 7px;
    width: 2px;
    height: 16px;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
}

.faq-item[open] .faq-icon::after {
    transform: scale(0);
}

.faq-answer {
    padding: 0 28px 24px 28px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    line-height: var(--lh-body);
    color: rgba(255, 255, 255, 0.7);
}

.faq-answer p {
    margin: 0;
}

/* =========================================================================
   COBERTURA
   ========================================================================= */

.cobertura {
    position: relative;
    width: 100%;
    min-height: 135vh;
    background-color: #011029;
    color: #ffffff;
    padding: clamp(56px, 8vh, 96px) 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    z-index: 40;
    overflow: hidden;
}

.cob-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad-inline);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cob-header {
    text-align: center;
    margin-bottom: clamp(32px, 5vh, 56px);
    position: relative;
    z-index: 3;
    max-width: 920px;
}

.cob-antetitulo {
    letter-spacing: 0.14em;
    margin-bottom: var(--space-3);
    font-weight: 800;
}

.cob-titulo {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-size: var(--title-lg);
    font-weight: 700;
    line-height: var(--lh-tight);
    margin-bottom: var(--space-3);
    text-transform: uppercase;
}

.cob-desc {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    max-width: 600px;
    margin: 0 auto;
}

.cob-visual {
    position: relative;
    width: clamp(300px, 44vh, 520px);
    aspect-ratio: 1;
    margin: 0 auto;
    z-index: 2;
}

.cob-circle-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.cob-circle-path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.15);
    stroke-width: 2px;
    stroke-dasharray: 1823;
    stroke-dashoffset: 1823;
}

.cob-point {
    position: absolute;
    transform: translate(-50%, -50%) scale(0);
    z-index: 5;
    opacity: 0;
    pointer-events: auto;
}

.cob-pin {
    width: 12px;
    height: 12px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(97, 146, 244, 0.2), 0 0 20px rgba(97, 146, 244, 0.6);
}

.cob-card {
    position: absolute;
    top: 50%;
    left: 24px;
    transform: translateY(-50%);
    width: max-content;
    max-width: min(260px, 40vw);
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.cob-point.point-left .cob-card {
    left: auto;
    right: 24px;
}

.cob-card:hover {
    transform: translateY(calc(-50% - 4px));
    border-color: rgba(97, 146, 244, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.cob-ciudad {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 4px;
}

.cob-metric {
    font-family: "roc-grotesk-condensed", sans-serif;
    font-size: clamp(16px, 1.4vw, 18px);
    font-weight: 500;
    color: var(--accent);
    text-transform: uppercase;
    line-height: 1.1;
}

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

.contacto {
    position: relative;
    width: 100%;
    min-height: var(--section-vh);
    background-color: var(--bg-contact);
    color: var(--accent-dark);
    padding: clamp(72px, 12vh, 140px) 0;
    z-index: 50;
    display: flex;
    align-items: center;
}

.contacto-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad-inline);
    display: flex;
    gap: clamp(32px, 6vw, 84px);
    align-items: flex-start;
}

.contacto-left {
    flex: 0 0 40%;
}

.contacto-antetitulo {
    margin-bottom: var(--space-3);
    font-weight: 800;
}

.contacto-titulo {
    font-family: "roc-grotesk-compressed", sans-serif;
    font-size: var(--title-lg);
    font-weight: 700;
    color: var(--accent-dark);
    line-height: var(--lh-tight);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    width: min(100%, 460px);
}

.contacto-desc {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-md);
    line-height: var(--lh-body);
    color: rgba(2, 48, 140, 0.75);
    margin-bottom: var(--space-5);
    width: min(100%, 540px);
}

.contacto-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
}

.btn-contact-action {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-weight: 800;
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: color 0.3s ease, transform 0.3s ease;
    background: none;
    border: none;
    padding: 0;
}

.btn-contact-action:hover {
    color: var(--accent-dark);
    transform: translateX(4px);
}

.contact-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    flex-shrink: 0;
}

.contacto-right {
    flex: 1;
}

.contacto-form-card {
    background-color: #f6f4f0;
    border-radius: var(--radius-lg);
    padding: clamp(24px, 4vw, 56px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(2, 48, 140, 0.05);
}

.form-title {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-md);
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: var(--space-4);
    line-height: 1.4;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--accent-dark);
}

.form-group input,
.form-group textarea {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    padding: 16px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(2, 48, 140, 0.15);
    background-color: #ffffff;
    color: var(--accent-dark);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(2, 48, 140, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(97, 146, 244, 0.1);
}

.form-group.has-error label {
    color: #ef4444;
}

.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #ef4444;
}

.form-group.has-error input:focus,
.form-group.has-error textarea:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.btn-submit {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: #ffffff;
    background-color: var(--accent-dark);
    border: none;
    border-radius: var(--radius-sm);
    padding: 18px 28px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-top: 8px;
}

.btn-submit:hover {
    background-color: #011d54;
    transform: translateY(-2px);
}

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

.footer {
    background-color: #010b1c;
    color: #ffffff;
    padding: clamp(64px, 10vh, 110px) 0 clamp(24px, 4vh, 40px);
    position: relative;
    z-index: 60;
}

.footer-container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 var(--pad-inline);
    display: flex;
    flex-direction: column;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: clamp(32px, 6vw, 80px);
    margin-bottom: clamp(40px, 8vh, 80px);
}

.footer-col {
    display: flex;
    flex-direction: column;
}

.col-identidad {
    flex: 1.2;
    max-width: 320px;
}

.footer-logo {
    height: clamp(36px, 3.5vw, 48px);
    object-fit: contain;
    margin-bottom: var(--space-4);
    filter: brightness(0) invert(1);
    align-self: flex-start;
}

.footer-desc {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    line-height: var(--lh-body);
    color: rgba(255, 255, 255, 0.72);
}

.col-contacto {
    flex: 1;
}

.col-oficinas {
    flex: 1.5;
}

.footer-title {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: var(--space-4);
    font-weight: 800;

}

.footer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-list a {
    text-decoration: none;
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.85);
    transition: color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-list a:hover {
    color: #ffffff;
}

.footer-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
}

.oficina-item {
    display: flex;
    flex-direction: column;
    margin-bottom: var(--space-4);
}

.oficina-item:last-child {
    margin-bottom: 0;
}

.oficina-ciudad {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-md);
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 8px;
}

.oficina-nombre,
.oficina-dir,
.oficina-tel {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 4px;
}

.oficina-nombre {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
}

.oficina-tel {
    text-decoration: none;
    transition: color 0.3s ease;
    width: fit-content;
}

a.oficina-tel:hover {
    color: #ffffff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom-left,
.footer-bottom-right {
    font-family: "DM Sans", sans-serif;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.04em;
}

/* =========================================================================
   MOBILE MENU
   ========================================================================= */

.mobile-menu {
    position: fixed;
    inset: 0;
    background: #040e39;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 200;
    padding: var(--pad-inline);
}

.mobile-menu[aria-hidden="false"] {
    transform: translateX(0);
}

.mobile-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.mobile-link {
    color: #fff;
    font-size: clamp(22px, 5vw, 28px);
    margin: 0.6rem 0;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

@media (max-width: 1200px) {
    .servicios-intro {
        max-width: min(460px, 34vw);
    }

    .ficha-img {
        width: 42%;
    }
}

@media (max-width: 1000px) {
    :root {
        --section-vh: 100svh;
    }

    /* ================== TYPOGRAPHY ================== */
    .hero-title {
        font-size: 64px !important;
    }

    .servicios-titulo,
    .qs-titulo {
        font-size: 48px !important;
    }

    .cob-titulo,
    .contacto-titulo {
        font-size: 36px !important;
    }

    .hero-subtitle,
    .servicios-antetitulo,
    .card-antetitulo,
    .qs-antetitulo,
    .cob-antetitulo,
    .contacto-antetitulo {
        font-size: 16px !important;
    }

    /* ================================================ */

    .hero-content-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .hero-subtitle-wrapper {
        max-width: 520px;
    }

    .servicios-pinned {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding-top: 16px;
        gap: 16px;
    }

    .servicios-intro {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 100%;
        max-width: none;
        height: 30vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        text-align: left;
        padding: 0 var(--pad-inline);
        margin: 0;
        overflow: hidden;
    }

    .cards-container {
        flex-direction: column;
        width: 100%;
        height: 70vh;
    }

    .card {
        width: 100%;
        height: 35svh;
    }

    .card:not(:first-child) {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }

    .qs-container {
        flex-direction: column;
        gap: 48px;
    }

    .qs-left {
        flex: 1;
        z-index: 2;
    }

    .qs-sticky {
        position: relative;
        top: 0;
        padding-top: 0;
    }

    .qs-right {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 24px;
        padding-bottom: 24px;
        width: 100vw;
        margin-left: calc(-1 * var(--pad-inline));
        padding-left: var(--pad-inline);
        padding-right: var(--pad-inline);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .qs-right::-webkit-scrollbar {
        display: none;
    }

    .ficha-abogado {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        flex-direction: column;
        align-items: flex-start;
    }

    .ficha-img {
        width: 100%;
        height: clamp(320px, 50svh, 520px);
    }

    .colaboradores-container {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        height: clamp(320px, 50svh, 520px);
        background: none;
        border: none;
        padding: 0;
        gap: var(--space-3);
    }

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

    .contacto-container {
        flex-direction: column;
        gap: 48px;
        align-items: stretch;
    }

    .contacto-left {
        flex: 1;
    }

    .footer-top {
        flex-direction: column;
        gap: 48px;
    }

    .col-identidad {
        max-width: 100%;
    }

    .hero-content-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    /* Slider controls for mobile */
    .qs-slider-controls {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 16px;
        margin-top: 24px;
        width: 100%;
        z-index: 50;
    }

    .qs-slider-btn {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        color: #ffffff;
        width: 44px;
        height: 44px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
        padding: 0;
    }

    .qs-slider-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(97, 146, 244, 0.5);
    }

    .qs-slider-btn:active {
        transform: scale(0.95);
    }

    .qs-slider-dots {
        display: flex;
        gap: 8px;
        align-items: center;
    }

    .qs-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.2);
        cursor: pointer;
        transition: background 0.3s ease, transform 0.3s ease;
    }

    .qs-dot.active {
        background: var(--accent);
        transform: scale(1.3);
    }
}

@media (max-width: 800px) {

    .nav-center,
    .nav-right {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        width: 30px;
        height: 24px;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
        margin-left: auto;
    }

    .nav-toggle .bar {
        width: 100%;
        height: 3px;
        background-color: #fff;
        border-radius: 2px;
    }

    .navbar {
        min-height: 72px;
        padding: 12px 18px;
    }
}

@media (max-width: 768px) {
    :root {
        --pad-inline: 24px;
    }

    .hero {
        min-height: 100svh;
    }

    .hero-content {
        bottom: 28px;
    }

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

    .hero-subtitle br,
    .cob-desc br {
        display: none;
    }

    .card-content-full {
        justify-content: flex-end;
    }

    .card-desc {
        font-size: var(--text-md);
        max-width: 100%;
    }

    .faq-question {
        padding: 20px;
    }

    .faq-answer {
        padding: 0 20px 20px 20px;
    }

    .cobertura {
        justify-content: flex-start;
    }

    .cob-visual {
        width: min(100%, 420px);
        margin-bottom: 4vh;
    }

    .cob-card {
        top: 24px;
        left: 50%;
        transform: translateX(-50%);
        text-align: center;
        max-width: min(220px, 65vw);
    }

    .cob-point.point-left .cob-card {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .cob-card:hover {
        transform: translateX(-50%) translateY(4px);
    }

    .contacto-left {
        text-align: center;
    }

    .contacto-titulo,
    .contacto-desc {
        max-width: none;
    }

    .contacto-info {
        align-items: center;
    }

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

@media (max-width: 560px) {
    :root {
        --pad-inline: 18px;
    }

    .navbar-wrapper {
        padding-top: 14px;
        padding-inline: var(--pad-inline);
    }



    .servicios-intro {
        height: 28vh;
    }

    .cards-container {
        height: 72vh;
    }

    .card {
        height: 36svh;
    }

    .card-content-full {
        padding: 22px 18px;
    }

    .btn-card,
    .btn-submit {
        width: 100%;
        text-align: center;
    }

    .ficha-abogado {
        flex-basis: 88vw;
    }

    .ficha-img {
        height: clamp(280px, 42svh, 420px);
    }

    .colaboradores-container {
        flex-basis: 88vw;
        height: clamp(280px, 42svh, 420px);
        padding: 0;
    }

    .contacto-form-card {
        padding: 22px 18px;
    }

    .footer-bottom-left,
    .footer-bottom-right {
        font-size: 12px;
    }
}

/* =========================================================================
   WHATSAPP FAB
   ========================================================================= */

.wa-fab {
    position: fixed;
    bottom: clamp(24px, 4vw, 40px);
    right: clamp(24px, 4vw, 40px);
    background: #25D366;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 50px;
    text-decoration: none;
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease, box-shadow 0.3s ease;
}

.wa-fab:hover {
    transform: translateY(-4px) scale(1.02);
    background: #20BA56;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

.wa-fab-icon {
    width: 28px;
    height: 28px;
    fill: currentColor;
    flex-shrink: 0;
}

.wa-fab-text {
    font-family: "DM Sans", sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 768px) {
    .wa-fab {
        padding: 16px;
        border-radius: 50%;
        bottom: 24px;
        right: 24px;
        gap: 0;
    }
    .wa-fab-text {
        display: none;
    }
    .wa-fab-icon {
        width: 32px;
        height: 32px;
        margin: 0;
    }
}