/* ============================================================
   Transportes Barrientos — Web informativa
   Paleta: azul oscuro + naranjo + blanco + grises
   ============================================================ */

:root {
    --tb-azul-oscuro: #0f1d33;
    --tb-azul: #1a2942;
    --tb-azul-claro: #4a7bb8;
    --tb-naranjo: #ff8c42;
    --tb-naranjo-oscuro: #e6701f;
    --tb-naranjo-claro: #ffb27d;
    --tb-amarillo: #fde047;

    --tb-blanco: #ffffff;
    --tb-gris-suave: #f8f9fb;
    --tb-gris-claro: #eef0f4;
    --tb-gris: #6c757d;
    --tb-gris-oscuro: #495057;
    --tb-text: #1a2942;
    --tb-text-soft: #525a6b;
    --tb-text-faint: #8a92a3;

    --shadow-sm: 0 2px 8px rgba(15, 29, 51, 0.05);
    --shadow-md: 0 8px 24px rgba(15, 29, 51, 0.08);
    --shadow-lg: 0 20px 48px rgba(15, 29, 51, 0.12);
    --shadow-xl: 0 32px 80px rgba(15, 29, 51, 0.18);
    --shadow-orange: 0 12px 32px rgba(255, 140, 66, 0.35);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 999px;

    --nav-h: 76px;
    --container: 1200px;

    --t-fast: .2s ease;
    --t-base: .35s cubic-bezier(.4, 0, .2, 1);
    --t-slow: .6s cubic-bezier(.4, 0, .2, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--tb-text);
    background: var(--tb-blanco);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

/* ========================== Tipografia ========================== */

h1, h2, h3, h4, h5 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--tb-azul-oscuro);
    letter-spacing: -0.02em;
}

.text-orange { color: var(--tb-naranjo); }

.text-gradient {
    background: linear-gradient(135deg, var(--tb-naranjo) 0%, var(--tb-naranjo-claro) 50%, var(--tb-amarillo) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientText 4s ease-in-out infinite;
}
@keyframes gradientText {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ========================== Botones ========================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-base);
    white-space: nowrap;
    line-height: 1;
}
.btn-lg { padding: 16px 30px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-primary {
    background: linear-gradient(135deg, var(--tb-naranjo) 0%, var(--tb-naranjo-oscuro) 100%);
    color: #fff;
    box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(255, 140, 66, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--tb-azul-oscuro);
    border-color: rgba(15, 29, 51, 0.15);
}
.btn-ghost:hover {
    border-color: var(--tb-azul-oscuro);
    background: var(--tb-azul-oscuro);
    color: #fff;
}

/* ========================== Navbar ========================== */

.navbar-main {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    z-index: 100;
    transition: all var(--t-base);
}
.navbar-main.scrolled {
    border-bottom-color: var(--tb-gris-claro);
    box-shadow: var(--shadow-sm);
}

.nav-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--tb-azul-oscuro);
    flex-shrink: 0;
}
.brand-mark {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--tb-naranjo), var(--tb-naranjo-oscuro));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #fff;
    box-shadow: var(--shadow-orange);
}
.brand-text {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.brand-text strong {
    color: var(--tb-naranjo);
    font-weight: 800;
}
.brand-short { display: none; }
.brand-short strong {
    font-size: 20px;
    letter-spacing: 0.5px;
}

/* CTA del nav: texto corto/largo */
.btn-cta-nav .btn-short { display: none; }

.nav-links {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--tb-text-soft);
    transition: all var(--t-fast);
}
.nav-link:hover { color: var(--tb-azul-oscuro); background: var(--tb-gris-claro); }
.nav-link.active { color: var(--tb-naranjo); }

/* Link "Interno" — acceso al ERP */
.nav-link-interno {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 6px;
    border: 1px solid rgba(15, 29, 51, 0.15);
    color: var(--tb-azul-oscuro);
}
.nav-link-interno i {
    font-size: 14px;
    color: var(--tb-naranjo);
}
.nav-link-interno:hover {
    background: var(--tb-azul-oscuro);
    color: #fff;
    border-color: var(--tb-azul-oscuro);
}
.nav-link-interno:hover i { color: var(--tb-naranjo-claro); }

.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--tb-azul-oscuro);
    cursor: pointer;
    padding: 4px 8px;
}

/* ========================== Hero ========================== */

.hero {
    position: relative;
    min-height: 100vh;
    padding: calc(var(--nav-h) + 40px) 0 60px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #fafbff 0%, #f0f3fa 100%);
    z-index: -2;
}
.hero-gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(255, 140, 66, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at bottom left, rgba(74, 123, 184, 0.12) 0%, transparent 50%);
    z-index: -1;
}
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: -1;
}
.hero-particles span {
    position: absolute;
    bottom: -40px;
    width: 12px; height: 12px;
    background: var(--tb-naranjo);
    border-radius: 2px;
    opacity: .15;
    animation: floatUp linear infinite;
}
.hero-particles span:nth-child(1) { left:  8%; animation-duration: 24s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 22%; animation-duration: 28s; animation-delay: 4s; width: 8px; height: 8px; }
.hero-particles span:nth-child(3) { left: 35%; animation-duration: 22s; animation-delay: 8s; }
.hero-particles span:nth-child(4) { left: 48%; animation-duration: 26s; animation-delay: 2s; width: 10px; height: 10px; }
.hero-particles span:nth-child(5) { left: 62%; animation-duration: 30s; animation-delay: 6s; }
.hero-particles span:nth-child(6) { left: 75%; animation-duration: 25s; animation-delay: 10s; width: 14px; height: 14px; }
.hero-particles span:nth-child(7) { left: 86%; animation-duration: 28s; animation-delay: 3s; }
.hero-particles span:nth-child(8) { left: 92%; animation-duration: 23s; animation-delay: 7s; width: 8px; height: 8px; }

@keyframes floatUp {
    0%   { transform: translateY(0) rotate(0); opacity: 0; }
    10%  { opacity: .15; }
    100% { transform: translateY(-100vh) rotate(360deg); opacity: 0; }
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content { animation: heroIn .9s cubic-bezier(.4, 0, .2, 1) both; }
.hero-visual { animation: heroIn .9s .15s cubic-bezier(.4, 0, .2, 1) both; }

@keyframes heroIn {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 140, 66, 0.1);
    border: 1px solid rgba(255, 140, 66, 0.25);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-naranjo-oscuro);
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 800;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--tb-text-soft);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.trust-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--tb-text-soft);
    font-weight: 500;
}
.trust-item i { color: var(--tb-naranjo); font-size: 16px; }

/* Hero visual */
.hero-visual { position: relative; min-height: 400px; }
.hero-visual-bg {
    position: absolute;
    width: 90%; height: 90%;
    top: 5%; left: 5%;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.1), rgba(74, 123, 184, 0.1));
    border-radius: 50% 30% 50% 30%;
    animation: blob 20s ease-in-out infinite;
}
@keyframes blob {
    0%, 100% { border-radius: 50% 30% 50% 30%; transform: rotate(0); }
    33%      { border-radius: 30% 50% 30% 50%; transform: rotate(120deg); }
    66%      { border-radius: 40% 60% 60% 40%; transform: rotate(240deg); }
}
.hero-truck {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    animation: truckBounce 3s ease-in-out infinite;
}
@keyframes truckBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}

.hero-floating-card {
    position: absolute;
    background: #fff;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: floatCard 4s ease-in-out infinite;
}
.hero-card-1 { top: 15%; left: -5%; animation-delay: 0s; }
.hero-card-2 { bottom: 18%; right: -5%; animation-delay: 1.5s; }
@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-card-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255, 140, 66, 0.15);
    color: var(--tb-naranjo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.hero-card-icon-success { background: rgba(56, 161, 105, 0.15); color: #38a169; }
.hero-card-label { font-size: 11px; color: var(--tb-text-faint); text-transform: uppercase; letter-spacing: .5px; }
.hero-card-value { font-size: 14px; font-weight: 700; color: var(--tb-azul-oscuro); }

.hero-scroll {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--tb-text-faint);
    font-size: 24px;
    animation: bounce 2s infinite;
    z-index: 2;
}
@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(-8px); }
}

/* ========================== Sections ========================== */

.section {
    padding: 100px 0;
    position: relative;
}
.section-light { background: var(--tb-blanco); }
.section-gray  { background: var(--tb-gris-suave); }
.section-dark  {
    background: linear-gradient(135deg, var(--tb-azul-oscuro) 0%, var(--tb-azul) 100%);
    color: rgba(255, 255, 255, 0.92);
    position: relative;
    overflow: hidden;
}
.section-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at top right, rgba(255, 140, 66, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(74, 123, 184, 0.2) 0%, transparent 50%);
    pointer-events: none;
}
.section-dark .container { position: relative; z-index: 1; }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }

.section-cta {
    background:
        linear-gradient(180deg, var(--tb-gris-suave) 0%, var(--tb-blanco) 100%);
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 64px;
}
.section-header-light { color: rgba(255, 255, 255, 0.92); }
.section-header-light .section-subtitle { color: rgba(255, 255, 255, 0.7); }

.section-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    color: var(--tb-naranjo);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 18px;
    line-height: 1.15;
}
.section-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.1rem);
    color: var(--tb-text-soft);
    line-height: 1.6;
}

/* ========================== Mision/Vision ========================== */

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 80px;
}
.vision-card {
    padding: 40px;
    background: linear-gradient(180deg, #fff 0%, var(--tb-gris-suave) 100%);
    border: 1px solid var(--tb-gris-claro);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    transition: all var(--t-base);
}
.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 140, 66, 0.3);
}
.vision-card::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 160px; height: 160px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 140, 66, 0.1), transparent);
}
.vision-icon {
    width: 60px; height: 60px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--tb-naranjo), var(--tb-naranjo-oscuro));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-orange);
}
.vision-vision .vision-icon {
    background: linear-gradient(135deg, var(--tb-azul), var(--tb-azul-oscuro));
    box-shadow: 0 12px 32px rgba(15, 29, 51, 0.3);
}
.vision-title {
    font-size: 24px;
    margin-bottom: 14px;
}
.vision-text {
    color: var(--tb-text-soft);
    line-height: 1.7;
    font-size: 15px;
}

/* ========================== Pillars ========================== */

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.pillar {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
    border: 1px solid transparent;
}
.pillar:hover {
    background: #fff;
    border-color: var(--tb-gris-claro);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.pillar-icon {
    width: 56px; height: 56px;
    margin: 0 auto 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 140, 66, 0.12);
    color: var(--tb-naranjo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: all var(--t-base);
}
.pillar:hover .pillar-icon {
    background: var(--tb-naranjo);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}
.pillar h4 { font-size: 17px; margin-bottom: 8px; }
.pillar p { font-size: 14px; color: var(--tb-text-soft); }

/* ========================== Servicios ========================== */

.service-category {
    margin-bottom: 64px;
}
.service-category:last-child { margin-bottom: 0; }

.category-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--tb-gris-claro);
}
.category-icon {
    width: 64px; height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--tb-naranjo), var(--tb-naranjo-oscuro));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: var(--shadow-orange);
    flex-shrink: 0;
}
.category-icon-alt {
    background: linear-gradient(135deg, var(--tb-azul), var(--tb-azul-oscuro));
    box-shadow: 0 12px 32px rgba(15, 29, 51, 0.3);
}
.category-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    margin-bottom: 4px;
}
.category-subtitle {
    color: var(--tb-text-soft);
    font-size: 15px;
}

.service-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.service-card {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--tb-gris-claro);
    border-radius: var(--radius-lg);
    transition: all var(--t-base);
    cursor: default;
    position: relative;
    overflow: hidden;
}
.service-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tb-naranjo), var(--tb-naranjo-claro));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--t-base);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 140, 66, 0.4);
}
.service-card:hover::after { transform: scaleX(1); }

.service-card-icon {
    width: 48px; height: 48px;
    border-radius: var(--radius-md);
    background: rgba(255, 140, 66, 0.1);
    color: var(--tb-naranjo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
    transition: all var(--t-base);
}
.service-card:hover .service-card-icon {
    background: var(--tb-naranjo);
    color: #fff;
}
.service-card h4 { font-size: 17px; margin-bottom: 8px; }
.service-card p { font-size: 14px; color: var(--tb-text-soft); line-height: 1.55; }

/* ========================== Proceso ========================== */

.process-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}
.process-track::before {
    content: '';
    position: absolute;
    top: 80px; left: 12%; right: 12%;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 140, 66, 0.4), transparent);
    z-index: 0;
}
.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}
.process-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--tb-naranjo);
    letter-spacing: 1px;
    margin-bottom: 16px;
}
.process-icon {
    width: 90px; height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: rgba(255, 140, 66, 0.15);
    border: 2px solid rgba(255, 140, 66, 0.3);
    color: var(--tb-naranjo);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    transition: all var(--t-base);
}
.process-step:hover .process-icon {
    background: var(--tb-naranjo);
    color: #fff;
    transform: scale(1.05);
    border-color: var(--tb-naranjo);
}
.process-step h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: #fff;
}
.process-step p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.55;
    max-width: 220px;
    margin: 0 auto;
}

/* ========================== Cobertura ========================== */

.coverage-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}
.coverage-info h3 {
    font-size: 24px;
    margin-bottom: 24px;
}
.coverage-list {
    margin-bottom: 24px;
}
.coverage-list li {
    padding: 12px 0;
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-bottom: 1px solid var(--tb-gris-claro);
    font-size: 15px;
}
.coverage-list li:last-child { border-bottom: none; }
.coverage-list li i {
    color: var(--tb-naranjo);
    flex-shrink: 0;
    margin-top: 4px;
}
.coverage-note {
    background: rgba(255, 140, 66, 0.08);
    border-left: 3px solid var(--tb-naranjo);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
    font-size: 14px;
    color: var(--tb-text-soft);
    display: flex;
    gap: 10px;
}
.coverage-note i { color: var(--tb-naranjo); }

.coverage-map {
    display: flex;
    justify-content: center;
    align-items: center;
}
.coverage-map svg {
    max-width: 280px;
    width: 100%;
    filter: drop-shadow(0 12px 32px rgba(15, 29, 51, 0.15));
}

/* ========================== Contacto ========================== */

.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: start;
    background: #fff;
    padding: 60px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--tb-gris-claro);
}

.contact-info .section-title { font-size: 2rem; margin-bottom: 16px; }
.contact-info .section-subtitle { font-size: 15px; margin-bottom: 32px; }

.contact-channels {
    margin-top: 32px;
}
.contact-channels li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--tb-gris-claro);
}
.contact-channels li:last-child { border-bottom: none; }
.contact-channels li > i {
    width: 44px; height: 44px;
    background: rgba(255, 140, 66, 0.1);
    color: var(--tb-naranjo);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.contact-channels li > div { display: flex; flex-direction: column; }
.contact-channels li span:first-child {
    font-size: 12px;
    color: var(--tb-text-faint);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.contact-channels li a, .contact-channels li > div > span:last-child {
    font-size: 15px;
    font-weight: 600;
    color: var(--tb-azul-oscuro);
    transition: color var(--t-fast);
}
.contact-channels li a:hover { color: var(--tb-naranjo); }

/* ========================== Form ========================== */

.contact-form { width: 100%; }
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--tb-text);
    margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--tb-gris-suave);
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--tb-text);
    transition: all var(--t-fast);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    background: #fff;
    border-color: var(--tb-naranjo);
    box-shadow: 0 0 0 4px rgba(255, 140, 66, 0.1);
}
.form-group textarea { resize: vertical; min-height: 100px; }

/* Optgroup en select de tipo de servicio */
.form-group select optgroup {
    font-style: normal;
    font-weight: 700;
    color: var(--tb-azul-oscuro);
    background: var(--tb-gris-claro);
}
.form-group select option {
    font-weight: 400;
    color: var(--tb-text);
    padding: 4px 0;
}

.form-msg {
    margin: 12px 0;
    padding: 0;
    font-size: 14px;
    font-weight: 500;
    transition: all .3s ease;
}
.form-msg.success { color: #16a34a; padding: 12px 16px; background: #dcfce7; border-radius: 8px; }
.form-msg.error   { color: #dc2626; padding: 12px 16px; background: #fee2e2; border-radius: 8px; }

.form-disclaimer {
    margin-top: 14px;
    text-align: center;
    font-size: 12px;
    color: var(--tb-text-faint);
}

/* ========================== Footer ========================== */

.footer {
    background: var(--tb-azul-oscuro);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 24px;
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--tb-naranjo), var(--tb-naranjo-claro), var(--tb-naranjo));
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}
.footer-brand .nav-brand { color: #fff; margin-bottom: 16px; }
.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 320px;
}
.footer-social { display: flex; gap: 8px; }
.footer-social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--t-fast);
}
.footer-social a:hover {
    background: var(--tb-naranjo);
    transform: translateY(-2px);
}

.footer-col h5 {
    color: #fff;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px;
    font-weight: 700;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    transition: color var(--t-fast);
}
.footer-col ul li a:hover { color: var(--tb-naranjo); }
.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 14px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.65);
}
.footer-contact li i {
    color: var(--tb-naranjo);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* ========================== WhatsApp Float ========================== */

.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 58px; height: 58px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    z-index: 50;
    animation: whatsappPulse 2.5s ease-in-out infinite;
    transition: transform var(--t-fast);
}
.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}
@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4); }
    50%      { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.7), 0 0 0 12px rgba(37, 211, 102, 0.1); }
}

/* ========================== Reveal animations ========================== */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity .8s ease, transform .8s ease;
    transition-delay: var(--delay, 0s);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================== Responsive ========================== */

@media (max-width: 1024px) {
    .hero-container { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-actions, .hero-trust { justify-content: center; }
    .hero-floating-card { display: none; }
    .pillars-grid { grid-template-columns: repeat(2, 1fr); }
    .service-cards { grid-template-columns: repeat(2, 1fr); }
    .process-track { grid-template-columns: repeat(2, 1fr); }
    .process-track::before { display: none; }
    .coverage-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .coverage-list li { text-align: left; }
    .contact-wrap { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: #fff;
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--tb-gris-claro);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all var(--t-base);
        max-height: calc(100vh - var(--nav-h));
        overflow-y: auto;
    }
    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-link { padding: 12px 0; border-bottom: 1px solid var(--tb-gris-claro); border-radius: 0; }
    .nav-link:last-child { border-bottom: none; }
    .nav-link-interno {
        margin-left: 0;
        margin-top: 12px;
        padding: 12px;
        border-radius: 8px;
        justify-content: center;
        background: var(--tb-azul-oscuro);
        color: #fff;
        border-color: var(--tb-azul-oscuro);
    }
    .nav-link-interno i { color: var(--tb-naranjo); }
    .nav-toggle { display: block; }

    /* Brand y CTA compactos en movil */
    .brand-full { display: none; }
    .brand-short { display: inline; }
    .btn-cta-nav { padding: 8px 14px; font-size: 13px; }
    .btn-cta-nav .btn-full { display: none; }
    .btn-cta-nav .btn-short { display: inline; }

    .section { padding: 64px 0; }
    .section-header { margin-bottom: 40px; }
    .vision-grid { grid-template-columns: 1fr; gap: 16px; margin-bottom: 48px; }
    .vision-card { padding: 28px; }
    .pillars-grid { grid-template-columns: 1fr; gap: 12px; }
    .pillar { padding: 24px 16px; }
    .service-cards { grid-template-columns: 1fr; }
    .category-header { flex-direction: column; text-align: center; gap: 16px; }
    .process-track { grid-template-columns: 1fr; gap: 32px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .form-row .form-group { margin-bottom: 16px; }
    .contact-wrap { padding: 28px 20px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .footer-brand p { margin-left: auto; margin-right: auto; }
    .footer-social { justify-content: center; }
    .footer-contact li { justify-content: center; }
    .whatsapp-float { width: 52px; height: 52px; font-size: 26px; bottom: 16px; right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
