/* =========================================================
   DESPACHO JURÍDICO LABORAL E.J.
   V2 — STYLE.CSS
   ========================================================= */

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

:root {
    --bg: #0d0d0d;
    --bg-soft: #121212;
    --surface: rgba(255, 255, 255, 0.055);
    --surface-strong: rgba(255, 255, 255, 0.085);

    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.2);

    --text: #f5f5f5;
    --text-soft: #b8b8b8;
    --text-muted: #858585;

    --white: #ffffff;
    --black: #0d0d0d;

    --success: #79d89a;
    --danger: #ff7f7f;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;

    --container: 1180px;

    --shadow:
        0 24px 70px rgba(0, 0, 0, 0.35);

    --glass-shadow:
        0 18px 60px rgba(0, 0, 0, 0.28);

    --transition:
        180ms ease;
}


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

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    min-width: 320px;

    background:
        radial-gradient(
            circle at 15% 10%,
            rgba(255, 255, 255, 0.045),
            transparent 28%
        ),
        radial-gradient(
            circle at 85% 35%,
            rgba(255, 255, 255, 0.035),
            transparent 30%
        ),
        var(--bg);

    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

button,
a {
    -webkit-tap-highlight-color: transparent;
}

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

button {
    border: 0;
}

::selection {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}


/* =========================================================
   GLOBAL
   ========================================================= */

.container {
    width: min(
        calc(100% - 48px),
        var(--container)
    );

    margin-inline: auto;
}

.section {
    position: relative;
    padding: 120px 0;
}

.section-heading {
    max-width: 720px;
    margin-bottom: 58px;
}

.section-heading h2 {
    margin: 14px 0 18px;

    font-size:
        clamp(34px, 5vw, 64px);

    line-height: 1.02;
    letter-spacing: -0.045em;
}

.section-heading p {
    max-width: 620px;
    margin: 0;

    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";

    width: 22px;
    height: 1px;

    background: rgba(255, 255, 255, 0.5);
}


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

.site-header {
    position: fixed;
    z-index: 1000;

    top: 0;
    left: 0;
    width: 100%;

    border-bottom: 1px solid rgba(255, 255, 255, 0.07);

    background:
        rgba(13, 13, 13, 0.72);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.header-inner {
    min-height: 78px;

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

    gap: 30px;
}


/* BRAND */

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    flex-shrink: 0;
}

.brand-mark {
    display: grid;
    place-items: center;

    width: 42px;
    height: 42px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.07);

    color: var(--white);

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1.15;
}

.brand-text strong {
    font-size: 13px;
    font-weight: 700;
}

.brand-text small {
    margin-top: 3px;

    color: var(--text-muted);

    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}


/* NAVIGATION */

.main-navigation {
    display: flex;
    align-items: center;
    gap: 26px;
}

.main-navigation > a {
    position: relative;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 500;

    transition:
        color var(--transition);
}

.main-navigation > a:not(.nav-cta)::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--white);

    transition:
        width var(--transition);
}

.main-navigation > a:hover {
    color: var(--white);
}

.main-navigation > a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 16px;

    border: 1px solid var(--border-strong);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.08);

    color: var(--white) !important;

    transition:
        background var(--transition),
        transform var(--transition);
}

.nav-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(255, 255, 255, 0.05);

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 19px;
    height: 1px;

    margin: 4px auto;

    background: var(--white);

    transition:
        transform var(--transition),
        opacity var(--transition);
}


/* =========================================================
   BUTTONS
   ========================================================= */

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

    min-height: 52px;

    padding: 0 22px;

    border-radius: 14px;

    font-size: 14px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        box-shadow var(--transition);
}

.button-primary {
    background: var(--white);
    color: var(--black);

    box-shadow:
        0 10px 35px rgba(0, 0, 0, 0.25);
}

.button-primary:hover {
    transform: translateY(-2px);

    background: #e9e9e9;

    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.32);
}

.button-secondary {
    border: 1px solid var(--border-strong);

    background: rgba(255, 255, 255, 0.045);

    color: var(--white);
}

.button-secondary:hover {
    transform: translateY(-2px);

    border-color: rgba(255, 255, 255, 0.3);

    background: rgba(255, 255, 255, 0.09);
}

.button-full {
    width: 100%;
}


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

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    padding:
        150px 0
        100px;

    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        radial-gradient(
            circle at 70% 35%,
            rgba(255, 255, 255, 0.075),
            transparent 28%
        ),
        radial-gradient(
            circle at 15% 75%,
            rgba(255, 255, 255, 0.04),
            transparent 25%
        );
}

.hero-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(360px, 0.85fr);

    align-items: center;

    gap: 80px;
}

.hero-content {
    max-width: 720px;
}

.hero h1 {
    margin: 20px 0 26px;

    font-size:
        clamp(48px, 7vw, 88px);

    line-height: 0.98;

    letter-spacing: -0.06em;
}

.hero h1 span {
    display: block;

    color: var(--text-soft);
}

.hero-description {
    max-width: 610px;

    margin: 0;

    color: var(--text-soft);

    font-size:
        clamp(16px, 2vw, 19px);

    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 38px;
}

.hero-trust {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    max-width: 600px;

    margin-top: 64px;

    border-top: 1px solid var(--border);
}

.trust-item {
    display: flex;
    flex-direction: column;

    padding: 20px 20px 0 0;
}

.trust-item strong {
    margin-bottom: 5px;

    font-size: 11px;
    letter-spacing: 0.12em;
}

.trust-item span {
    color: var(--text-muted);

    font-size: 12px;
}


/* HERO CARD */

.hero-card {
    display: flex;
    justify-content: flex-end;
}

.glass-card {
    width: 100%;
    max-width: 440px;

    padding: 36px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.035)
        );

    box-shadow: var(--glass-shadow);

    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
}

.card-label {
    display: inline-flex;

    padding: 7px 11px;

    border: 1px solid var(--border);

    border-radius: 999px;

    background: rgba(255, 255, 255, 0.055);

    color: var(--text-soft);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.glass-card h2 {
    margin: 25px 0 15px;

    font-size: 36px;
    line-height: 1.05;

    letter-spacing: -0.04em;
}

.glass-card h2 strong {
    display: block;
}

.glass-card p {
    margin: 0 0 28px;

    color: var(--text-soft);

    font-size: 14px;
    line-height: 1.7;
}

.glass-card small {
    display: block;

    margin-top: 14px;

    color: var(--text-muted);

    font-size: 11px;
    line-height: 1.5;

    text-align: center;
}


/* =========================================================
   CALCULATOR
   ========================================================= */

.calculator-section {
    background:
        linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.018),
            transparent
        );
}

.calculator-wrapper {
    display: grid;

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

    align-items: start;

    gap: 24px;
}

.calculator-card,
.result-card,
.contact-form,
.service-card,
.process-item,
.faq-item,
.cta-card {
    border: 1px solid var(--border);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.075),
            rgba(255, 255, 255, 0.025)
        );

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.2);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.calculator-card {
    padding: 40px;

    border-radius: var(--radius-lg);
}

.calculator-intro {
    margin-bottom: 35px;
}

.calculator-intro h3 {
    margin: 18px 0 10px;

    font-size: 30px;
    line-height: 1.1;

    letter-spacing: -0.035em;
}

.calculator-intro p {
    max-width: 600px;

    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
}

.form-grid {
    display: grid;

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

    gap: 18px;
}

.form-field {
    display: flex;
    flex-direction: column;

    gap: 8px;
}

.form-field label {
    color: var(--text-soft);

    font-size: 12px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 13px;

    outline: none;

    background:
        rgba(0, 0, 0, 0.3);

    color: var(--white);

    transition:
        border-color var(--transition),
        background var(--transition),
        box-shadow var(--transition);
}

.form-field input,
.form-field select {
    height: 52px;

    padding: 0 14px;
}

.form-field textarea {
    min-height: 140px;

    padding: 14px;

    resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #6d6d6d;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: rgba(255, 255, 255, 0.45);

    background:
        rgba(255, 255, 255, 0.045);

    box-shadow:
        0 0 0 4px rgba(255, 255, 255, 0.035);
}

.form-field select {
    cursor: pointer;
}

.form-field select option {
    background: #151515;
    color: #fff;
}

.form-field small {
    color: var(--text-muted);

    font-size: 11px;
}


/* PRIVACY */

.privacy-consent {
    margin-top: 22px;

    padding: 14px 16px;

    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 13px;

    background: rgba(255, 255, 255, 0.035);
}

.privacy-consent label {
    display: flex;
    align-items: flex-start;

    gap: 10px;

    cursor: pointer;

    color: var(--text-soft);

    font-size: 11px;
    line-height: 1.5;
}

.privacy-consent input {
    flex: 0 0 auto;

    width: 16px;
    height: 16px;

    margin-top: 1px;

    accent-color: #fff;
}


/* CALCULATOR BUTTON */

.calculator-card > .button {
    margin-top: 22px;
}

.form-disclaimer {
    margin: 13px 0 0;

    color: var(--text-muted);

    font-size: 10px;
    line-height: 1.5;

    text-align: center;
}


/* VALIDATION / ERROR STATES */

.form-field input.input-error,
.form-field select.input-error,
.form-field textarea.input-error {
    border-color: var(--danger);

    background: rgba(255, 127, 127, 0.08);

    box-shadow:
        0 0 0 4px rgba(255, 127, 127, 0.12);
}

.privacy-consent input.input-error {
    outline: 2px solid var(--danger);
    outline-offset: 2px;
}

.form-error {
    margin: 16px 0 0;

    padding: 12px 14px;

    border: 1px solid rgba(255, 127, 127, 0.35);
    border-radius: 12px;

    background: rgba(255, 127, 127, 0.08);

    color: var(--danger);

    font-size: 12px;
    line-height: 1.5;
}


/* CAMPO TRAMPA ANTI-SPAM (honeypot) — oculto visualmente,
   fuera del flujo de tabulación, pero presente para bots. */

.hp-field {
    position: absolute;

    width: 1px;
    height: 1px;

    margin: -1px;
    padding: 0;

    border: 0;

    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);

    overflow: hidden;

    white-space: nowrap;
}


/* RESULT */

.result-card {
    position: sticky;
    top: 105px;

    padding: 32px;

    border-radius: var(--radius-lg);
}

.result-header {
    padding-bottom: 22px;

    border-bottom: 1px solid var(--border);
}

.result-header h3 {
    margin: 16px 0 0;

    font-size: 25px;
    line-height: 1.15;

    letter-spacing: -0.03em;
}

.result-total {
    margin: 28px 0 10px;

    font-size:
        clamp(38px, 5vw, 58px);

    font-weight: 800;

    line-height: 1;

    letter-spacing: -0.055em;
}

.result-summary {
    margin-bottom: 24px;

    color: var(--text-muted);

    font-size: 12px;
}

.result-main {
    display: flex;
    flex-direction: column;

    margin-bottom: 22px;
}

.result-label {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-type {
    margin-top: 8px;

    color: var(--text-soft);

    font-size: 13px;
    font-weight: 600;
}

.result-details {
    display: grid;

    gap: 0;

    border-top: 1px solid var(--border);
}

.result-breakdown {
    display: grid;

    gap: 0;

    margin-bottom: 25px;
}

.result-breakdown h4 {
    margin: 0 0 6px;

    color: var(--white);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: -0.01em;
}

.result-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 13px 0;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);

    color: var(--text-soft);

    font-size: 12px;
}

.result-row strong {
    color: var(--white);

    font-size: 13px;
}

.result-subheading {
    margin: 18px 0 4px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.result-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 6px;
    padding: 16px 0 0;

    border-top: 1px solid var(--border-strong);

    color: var(--white);

    font-size: 14px;
    font-weight: 700;
}

.result-total-row strong {
    font-size: 17px;
}

.result-subnote {
    margin: 12px 0 0;

    color: var(--text-muted);

    font-size: 10.5px;
    line-height: 1.6;
}

.result-note,
.result-notice {
    padding: 14px;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.04);

    color: var(--text-muted);

    font-size: 10.5px;
    line-height: 1.6;
}

.result-notice strong {
    color: var(--text-soft);
}

.result-learn-more {
    display: inline-block;

    margin-top: 8px;

    color: var(--white);

    font-size: 11px;
    font-weight: 700;
}

.result-learn-more:hover {
    text-decoration: underline;
}

.result-actions {
    margin-top: 22px;
}


/* =========================================================
   SERVICES
   ========================================================= */

.services-grid {
    display: grid;

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

    gap: 18px;
}

.service-card {
    min-height: 350px;

    display: flex;
    flex-direction: column;

    padding: 32px;

    border-radius: var(--radius-md);

    transition:
        transform var(--transition),
        border-color var(--transition),
        background var(--transition);
}

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

    border-color: var(--border-strong);

    background:
        rgba(255, 255, 255, 0.07);
}

.service-featured {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.11),
            rgba(255, 255, 255, 0.035)
        );
}

.service-number {
    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.12em;
}

.service-card h3 {
    margin: 42px 0 15px;

    font-size: 27px;
    line-height: 1.05;

    letter-spacing: -0.035em;
}

.service-card p {
    margin: 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.7;
}

.service-card a {
    margin-top: auto;
    padding-top: 30px;

    color: var(--white);

    font-size: 12px;
    font-weight: 700;
}

.services-more {
    margin: 32px 0 0;

    text-align: center;
}

.services-more a {
    color: var(--white);

    font-size: 13px;
    font-weight: 700;
}

.services-more a:hover {
    text-decoration: underline;
}


/* =========================================================
   ABOUT / QUIÉNES SOMOS
   ========================================================= */

.about-section {
    background:
        rgba(255, 255, 255, 0.012);
}

.about-grid {
    display: grid;

    grid-template-columns:
        minmax(0, 1.1fr)
        minmax(280px, 0.9fr);

    gap: 60px;

    align-items: start;
}

.about-content h2 {
    max-width: 520px;

    margin: 14px 0 18px;

    font-size:
        clamp(30px, 4vw, 46px);

    line-height: 1.05;
    letter-spacing: -0.04em;
}

.about-content p {
    max-width: 560px;

    margin: 0 0 16px;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.75;
}

.about-values {
    display: grid;

    gap: 0;

    border-top: 1px solid var(--border);
}

.value-item {
    padding: 22px 0;

    border-bottom: 1px solid var(--border);
}

.value-item strong {
    display: block;

    margin-bottom: 6px;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.02em;
}

.value-item span {
    display: block;

    color: var(--text-muted);

    font-size: 12.5px;
    line-height: 1.6;
}


/* =========================================================
   SERVICES SUBSECTIONS (página de Servicios)
   ========================================================= */

.subsection-label {
    display: flex;
    align-items: center;
    gap: 12px;

    margin: 0 0 22px;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 700;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.subsection-label::after {
    content: "";
    flex: 1;

    height: 1px;

    background: var(--border);
}

.services-block + .services-block {
    margin-top: 54px;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process-section {
    background:
        rgba(255, 255, 255, 0.012);
}

.process-grid {
    display: grid;

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

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.process-item {
    min-height: 250px;

    padding: 30px;

    border-top: 0;
    border-bottom: 0;

    border-left: 0;

    border-radius: 0;

    background: transparent;

    box-shadow: none;

    backdrop-filter: none;
}

.process-item + .process-item {
    border-left: 1px solid var(--border);
}

.process-item > span {
    display: block;

    margin-bottom: 50px;

    color: var(--text-muted);

    font-size: 11px;
    font-weight: 700;
}

.process-item h3 {
    margin: 0 0 12px;

    font-size: 20px;
    line-height: 1.1;

    letter-spacing: -0.025em;
}

.process-item p {
    margin: 0;

    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.65;
}


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

.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 40px;

    padding: 50px;

    border-radius: var(--radius-lg);
}

.cta-card h2 {
    max-width: 750px;

    margin: 17px 0 12px;

    font-size:
        clamp(30px, 4vw, 52px);

    line-height: 1.02;

    letter-spacing: -0.045em;
}

.cta-card p {
    margin: 0;

    color: var(--text-soft);

    font-size: 14px;
}


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

.faq-layout {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.75fr)
        minmax(0, 1.25fr);

    gap: 90px;

    align-items: start;
}

.faq-list {
    display: grid;

    gap: 10px;
}

.faq-item {
    border-radius: 16px;

    overflow: hidden;
}

.faq-item summary {
    position: relative;

    padding: 22px 55px 22px 22px;

    cursor: pointer;

    list-style: none;

    color: var(--white);

    font-size: 14px;
    font-weight: 600;
}

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

.faq-item summary::after {
    content: "+";

    position: absolute;

    right: 22px;
    top: 50%;

    transform: translateY(-50%);

    color: var(--text-muted);

    font-size: 20px;
    font-weight: 300;

    transition:
        transform var(--transition);
}

.faq-item[open] summary::after {
    transform:
        translateY(-50%)
        rotate(45deg);
}

.faq-item p {
    margin: 0;

    padding:
        0 22px
        24px;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   CONTACT
   ========================================================= */

.contact-section {
    background:
        linear-gradient(
            180deg,
            transparent,
            rgba(255, 255, 255, 0.02)
        );
}

.contact-grid {
    display: grid;

    grid-template-columns:
        minmax(280px, 0.75fr)
        minmax(0, 1.25fr);

    gap: 80px;

    align-items: start;
}

.contact-content h2 {
    max-width: 500px;

    margin: 18px 0;

    font-size:
        clamp(38px, 5vw, 64px);

    line-height: 1;

    letter-spacing: -0.05em;
}

.contact-content > p {
    max-width: 500px;

    color: var(--text-soft);

    font-size: 15px;
}

.contact-whatsapp {
    display: inline-flex;
    flex-direction: column;

    gap: 3px;

    margin-top: 28px;
}

.contact-whatsapp span {
    color: var(--text-muted);

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-whatsapp strong {
    font-size: 24px;

    letter-spacing: -0.03em;
}

.contact-form {
    padding: 34px;

    border-radius: var(--radius-lg);
}

.contact-form .form-field + .form-field {
    margin-top: 18px;
}

.contact-form .button {
    margin-top: 20px;
}

.form-status {
    min-height: 20px;

    margin-top: 15px;

    color: var(--text-soft);

    font-size: 12px;
    line-height: 1.5;

    text-align: center;
}

.form-status.success {
    color: var(--success);
}

.form-status.error {
    color: var(--danger);
}

.form-status.loading {
    color: var(--text-muted);
}

.contact-whatsapp-action {
    margin-top: 14px;
    width: 100%;
}


/* =========================================================
   AD / MONETIZATION MODAL
   ========================================================= */

#modal-ads {
    position: fixed;
    z-index: 2000;

    inset: 0;

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

    padding: 24px;

    background:
        rgba(0, 0, 0, 0.78);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

#modal-ads.active {
    display: flex;
}

.ad-modal {
    width: min(100%, 520px);

    padding: 30px;

    border: 1px solid var(--border-strong);
    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            rgba(35, 35, 35, 0.96),
            rgba(15, 15, 15, 0.96)
        );

    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.55);

    text-align: center;
}

.ad-modal h3 {
    margin: 0 0 8px;

    font-size: 22px;
}

.ad-modal p {
    margin: 0;

    color: var(--text-soft);

    font-size: 12px;
}

#ad-space {
    min-height: 160px;

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

    margin: 25px 0;

    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.025);

    color: var(--text-muted);

    font-size: 11px;
}

.ad-countdown {
    color: var(--text-soft);

    font-size: 12px;
}


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

.site-footer {
    padding-top: 80px;

    border-top: 1px solid var(--border);

    background: #090909;
}

.footer-grid {
    display: grid;

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

    gap: 40px;

    padding-bottom: 70px;
}

.footer-brand p {
    margin: 16px 0 4px;

    font-size: 14px;
    font-weight: 700;
}

.footer-brand small {
    color: var(--text-muted);

    font-size: 11px;
}

.footer-links,
.footer-contact {
    display: flex;
    flex-direction: column;

    align-items: flex-start;

    gap: 10px;
}

.footer-links strong,
.footer-contact strong {
    margin-bottom: 7px;

    color: var(--white);

    font-size: 11px;

    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-links a,
.footer-contact a {
    color: var(--text-muted);

    font-size: 12px;

    transition:
        color var(--transition);
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    min-height: 70px;

    border-top: 1px solid var(--border);

    color: var(--text-muted);

    font-size: 10px;
}


/* =========================================================
   CONTENT PAGES (Legal / Guía Laboral)
   ========================================================= */

.page-header {
    padding: 150px 0 40px;
}

.page-header .eyebrow {
    margin-bottom: 14px;
}

.page-header h1 {
    max-width: 780px;

    margin: 0 0 14px;

    font-size:
        clamp(32px, 5vw, 52px);

    line-height: 1.05;
    letter-spacing: -0.04em;
}

.page-header p {
    max-width: 620px;

    margin: 0;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.7;
}

.page-meta {
    margin-top: 18px;

    color: var(--text-muted);

    font-size: 11px;
}

.breadcrumbs {
    margin-bottom: 18px;

    color: var(--text-muted);

    font-size: 11px;
}

.breadcrumbs a {
    color: var(--text-muted);
}

.breadcrumbs a:hover {
    color: var(--white);
}

.prose {
    max-width: 760px;

    padding-bottom: 100px;

    color: var(--text-soft);

    font-size: 15px;
    line-height: 1.8;
}

.prose h2 {
    margin: 44px 0 16px;

    font-size: 26px;
    line-height: 1.2;

    letter-spacing: -0.02em;

    color: var(--white);
}

.prose h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin: 30px 0 12px;

    font-size: 18px;

    color: var(--white);
}

.prose p {
    margin: 0 0 16px;
}

.prose ul,
.prose ol {
    margin: 0 0 16px;
    padding-left: 20px;
}

.prose li {
    margin-bottom: 8px;
}

.prose a {
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: var(--border-strong);
    text-underline-offset: 3px;
}

.prose strong {
    color: var(--white);
}

.prose .callout {
    margin: 28px 0;
    padding: 20px 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background: rgba(255, 255, 255, 0.04);

    font-size: 14px;
}

.prose .callout p:last-child {
    margin-bottom: 0;
}

.related-articles {
    display: grid;
    gap: 14px;

    max-width: 760px;
    margin: 40px 0 100px;
}

.related-articles a {
    display: block;

    padding: 20px 22px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02)
        );

    color: var(--white);

    font-size: 14px;
    font-weight: 600;

    transition:
        border-color var(--transition),
        background var(--transition);
}

.related-articles a:hover {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.08);
}

.related-articles span {
    display: block;

    margin-top: 5px;

    color: var(--text-muted);

    font-size: 12px;
    font-weight: 400;
}

.guide-categories {
    padding-bottom: 100px;
}

.guide-list {
    display: grid;
    gap: 16px;
}

.guide-card {
    padding: 26px 28px;

    border: 1px solid var(--border);
    border-radius: var(--radius-lg);

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.02)
        );
}

.guide-card h2 {
    margin: 0 0 10px;

    font-size: 21px;
}

.guide-card h2 a {
    color: var(--white);
}

.guide-card h2 a:hover {
    text-decoration: underline;
}

.guide-card p {
    margin: 0 0 14px;

    color: var(--text-soft);

    font-size: 13.5px;
    line-height: 1.7;
}

.guide-card a.guide-link {
    color: var(--white);

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
}


/* =========================================================
   RESPONSIVE — TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .main-navigation {
        gap: 16px;
    }

    .main-navigation > a {
        font-size: 12px;
    }

    .hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(300px, 0.75fr);

        gap: 45px;
    }

    .calculator-wrapper {
        grid-template-columns: 1fr;
    }

    .result-card {
        position: static;
    }

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

        gap: 40px;
    }

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

    .service-featured {
        grid-column: 1 / -1;
    }

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

    .process-item:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .process-item:nth-child(4) {
        border-top: 1px solid var(--border);
    }

    .faq-layout,
    .contact-grid {
        grid-template-columns: 1fr;

        gap: 50px;
    }

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


/* =========================================================
   RESPONSIVE — MOBILE
   ========================================================= */

@media (max-width: 760px) {

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

    .section {
        padding: 85px 0;
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-text {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;

        top: calc(100% + 1px);
        left: 16px;
        right: 16px;

        display: none;
        flex-direction: column;
        align-items: stretch;

        gap: 0;

        padding: 10px;

        border: 1px solid var(--border);
        border-radius: 18px;

        background:
            rgba(18, 18, 18, 0.96);

        box-shadow:
            0 25px 70px rgba(0, 0, 0, 0.45);

        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
    }

    .main-navigation.is-open {
        display: flex;
    }

    .main-navigation > a {
        padding: 13px 14px;

        border-radius: 10px;
    }

    .main-navigation > a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .main-navigation > a:not(.nav-cta)::after {
        display: none;
    }

    .nav-cta {
        margin-top: 5px;

        text-align: center;
    }

    .hero {
        min-height: auto;

        padding:
            130px 0
            80px;
    }

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

        gap: 55px;
    }

    .hero-card {
        justify-content: stretch;
    }

    .glass-card {
        max-width: none;
    }

    .hero h1 {
        font-size:
            clamp(45px, 14vw, 70px);
    }

    .hero-trust {
        margin-top: 45px;
    }

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

    .calculator-card {
        padding: 25px;
    }

    .result-card {
        padding: 25px;
    }

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

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

    .service-card {
        min-height: auto;

        padding: 26px;
    }

    .service-card h3 {
        margin-top: 30px;
    }

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

    .process-item,
    .process-item:nth-child(3),
    .process-item:nth-child(4) {
        border-left: 0;
        border-top: 1px solid var(--border);
    }

    .process-item:first-child {
        border-top: 0;
    }

    .process-item {
        min-height: auto;

        padding: 26px;
    }

    .process-item > span {
        margin-bottom: 30px;
    }

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

        padding: 30px;
    }

    .cta-card .button {
        width: 100%;
    }

    .contact-form {
        padding: 25px;
    }

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

        padding-bottom: 50px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;

        padding: 20px 0;
    }
}


/* =========================================================
   RESPONSIVE — SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

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

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

    .hero-trust {
        grid-template-columns: 1fr;

        gap: 15px;
    }

    .trust-item {
        padding: 0;
    }

    .glass-card {
        padding: 25px;
    }

    .calculator-intro h3 {
        font-size: 25px;
    }

    .result-total {
        font-size: 42px;
    }

    .result-row {
        align-items: flex-start;
        flex-direction: column;

        gap: 5px;
    }

    .section-heading h2 {
        font-size: 38px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

    html {
        scroll-behavior: auto;
    }

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