/* ==========================================================================
   TTRANSPORTO - ESTILOS PRINCIPALES
   ========================================================================== */

:root {
    --primary: #ed1c24;
    --primary-dark: #c9141b;
    --primary-light: #fde8e9;
    --dark: #102d36;
    --dark-surface: #0c232a;
    --bg-light: #faf9f5;
    --bg-cream: #f3f1ec;
    --white: #ffffff;
    --text-main: #102d36;
    --text-muted: #6f7778;
    --text-light: #b9c2c0;
    --border: rgba(16, 45, 54, 0.1);
    --border-dark: rgba(255, 255, 255, 0.12);
    --radius-sm: 4px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-subtle: 0 4px 20px rgba(16, 45, 54, 0.05);
    --shadow-elevated: 0 12px 36px rgba(16, 45, 54, 0.12);
    --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --transition: all 0.22s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #0e242b;
}

/* Barra de scroll personalizada (Colores del logo Ttransporto) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #0e242b;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff2a31 0%, #ed1c24 60%, #c9141b 100%);
    border-radius: 999px;
    border: 2px solid #0e242b;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #ff454b 0%, #ff232a 50%, #ed1c24 100%);
    box-shadow: 0 0 10px rgba(237, 28, 36, 0.6);
}

::-webkit-scrollbar-thumb:active {
    background: #c9141b;
}

::-webkit-scrollbar-corner {
    background: #0e242b;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* ==========================================================================
   TIPOGRAFÍA Y UTILIDADES
   ========================================================================== */

h1, h2, h3, h4, h5 {
    color: inherit;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--primary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.eyebrow-light {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #ffd8d3;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 0.75rem;
}

.red, span.red, h1 span, h2 span {
    color: var(--primary);
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-family: var(--font-main);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
}

.button-primary {
    background-color: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(237, 28, 36, 0.35);
}

.button-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(237, 28, 36, 0.45);
}

.button-outline {
    background-color: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.button-outline:hover {
    border-color: var(--white);
    background-color: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.button-white {
    background-color: var(--white);
    color: var(--dark);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.button-white:hover {
    background-color: var(--bg-cream);
    transform: translateY(-2px);
}

.button-whatsapp {
    background-color: #25D366;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
}

.button-whatsapp:hover {
    background-color: #1eb956;
    transform: translateY(-2px);
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */

.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    height: 82px;
    padding: 0 7vw;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: rgba(250, 249, 245, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.topbar.scrolled {
    box-shadow: 0 4px 20px rgba(16, 45, 54, 0.08);
}

.brand {
    display: inline-flex;
    align-items: center;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--dark);
    text-decoration: none;
    line-height: 1;
}

.brand-logo {
    height: 48px;
    width: auto;
    max-width: 190px;
    object-fit: contain;
    display: block;
    transition: transform 0.22s ease, filter 0.22s ease;
    image-rendering: -webkit-optimize-contrast;
}

.brand:hover .brand-logo {
    transform: scale(1.04);
}

.mark {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 9px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-style: italic;
    font-size: 1.05rem;
}

.topbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
}

.topbar nav a:not(.cta) {
    position: relative;
    padding: 6px 0;
}

.topbar nav a:not(.cta):hover {
    color: var(--primary);
}

.topbar nav a:not(.cta)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.2s ease;
}

.topbar nav a:not(.cta):hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.cta,
.topbar nav a.cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 24px !important;
    background: var(--primary);
    color: var(--white) !important;
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.03em;
    border-radius: var(--radius-sm);
    box-shadow: 0 4px 12px rgba(237, 28, 36, 0.28);
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}

.cta:hover,
.topbar nav a.cta:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(237, 28, 36, 0.4);
}

.menu {
    display: none;
    background: none;
    border: none;
    color: var(--dark);
    cursor: pointer;
    padding: 6px;
    line-height: 0;
}

.menu-line {
    transform-origin: 12px 12px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, stroke 0.25s ease;
}

.menu.open .menu-line-top {
    transform: translateY(6px) rotate(45deg);
    stroke: var(--primary);
}

.menu.open .menu-line-mid {
    opacity: 0;
    transform: scaleX(0);
}

.menu.open .menu-line-bot {
    transform: translateY(-6px) rotate(-45deg);
    stroke: var(--primary);
}

/* ==========================================================================
   HERO SECTION (BANNER PRINCIPAL)
   ========================================================================== */

.hero {
    position: relative;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 90px 11vw;
    overflow: hidden;
    background-color: #102d36;
    color: #faf9f5;
}

.hero-photo {
    position: absolute;
    inset: 0 0 0 38%;
    background: linear-gradient(90deg, #102d36 0%, rgba(16, 45, 54, 0.88) 18%, rgba(16, 45, 54, 0.25) 60%, rgba(16, 45, 54, 0.08) 100%),
                linear-gradient(0deg, #102d36 0%, rgba(16, 45, 54, 0.5) 12%, transparent 35%),
                url('../images/grupo-ttransporto.png') center right / cover no-repeat;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 680px;
}

.hero h1 {
    font-size: clamp(2.8rem, 5.5vw, 4.6rem);
    line-height: 1.05;
    letter-spacing: -0.06em;
    margin: 18px 0 20px;
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 520px;
    line-height: 1.6;
    margin-bottom: 28px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.stamp {
    position: absolute;
    right: 11vw;
    bottom: 60px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(16, 45, 54, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 14px 20px;
    border-radius: var(--radius-sm);
}

.stamp b {
    font-size: 3.5rem;
    color: var(--primary);
    line-height: 0.9;
    font-weight: 800;
}

.stamp small {
    font-size: 0.82rem;
    line-height: 1.25;
    color: #faf9f5;
    font-weight: 700;
}

.stamp-group {
    display: block;
    color: var(--primary);
    font-size: 0.72rem;
    margin-top: 3px;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   SECCIONES GENERALES & NOSOTROS
   ========================================================================== */

.split,
.services,
.fleet-section,
.clients,
.contact-section {
    padding: 110px 11vw;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8vw;
    background-color: var(--bg-light);
    align-items: center;
}

.split h2,
.services h2,
.fleet-section h2,
.clients h2,
.contact-section h2 {
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    letter-spacing: -0.05em;
    margin-bottom: 1.2rem;
}

.badge-tag {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-top: 8px;
}

.split-col-text p {
    color: var(--text-muted);
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

.split-col-text .lead-paragraph {
    font-size: 1.15rem;
    color: var(--dark);
}

/* ==========================================================================
   PILARES: FILOSOFÍA, MISIÓN Y COMPROMISO
   ========================================================================== */

.pillars-section {
    padding: 0 11vw 90px;
    background-color: var(--bg-light);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pillar-card {
    background: var(--white);
    padding: 30px 24px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(237, 28, 36, 0.3);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.pillar-number {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
    background-color: var(--primary-light);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.pillar-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
}

.pillar-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

/* ==========================================================================
   PANEL ROJO / PROPUESTA
   ========================================================================== */

.red-panel {
    position: relative;
    padding: 100px 11vw;
    background: radial-gradient(circle at 85% 45%, rgba(255, 255, 255, 0.09) 0%, transparent 50%),
                linear-gradient(135deg, #ed1c24 0%, #db141c 60%, #b80d14 100%);
    color: var(--white);
    overflow: hidden;
}

.red-panel-container {
    max-width: 1340px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 60px;
    align-items: center;
}

.red-panel-content {
    max-width: 680px;
}

.red-panel h2 {
    font-size: clamp(2.1rem, 3.8vw, 3.4rem);
    letter-spacing: -0.04em;
    margin: 14px 0 18px;
    line-height: 1.12;
}

.red-panel h2 span {
    color: var(--dark);
    display: inline-block;
}

.quote-sub {
    font-size: 1.1rem;
    color: #ffe6e3;
    line-height: 1.6;
    margin-bottom: 24px;
}

.red-panel-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 32px;
}

.panel-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(16, 45, 54, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.01em;
}

.panel-pill svg {
    color: #ffe6e3;
    flex-shrink: 0;
}

/* Marco visual / Media Frame */
.red-panel-media {
    position: relative;
    display: flex;
    justify-content: center;
}

.red-media-frame {
    position: relative;
    width: 100%;
    max-width: 540px;
    border-radius: 20px;
    overflow: hidden;
    background-color: var(--dark);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px -12px rgba(16, 45, 54, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transition: transform 0.35s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.35s ease;
}

.red-media-frame:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 70px -15px rgba(16, 45, 54, 0.55);
}

.red-media-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    transition: transform 0.5s ease;
}

.red-media-frame:hover .red-media-img {
    transform: scale(1.03);
}

.media-live-tag {
    position: absolute;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 45, 54, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 6px 14px;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    z-index: 2;
}

.live-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    animation: livePulse 2s infinite;
}

@keyframes livePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.media-floating-card {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: rgba(16, 45, 54, 0.9);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    z-index: 2;
}

.floating-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(237, 28, 36, 0.25);
    border: 1px solid rgba(237, 28, 36, 0.4);
    display: grid;
    place-items: center;
    color: #ffe6e3;
    flex-shrink: 0;
}

.floating-text {
    display: flex;
    flex-direction: column;
}

.floating-text strong {
    font-size: 0.88rem;
    font-weight: 700;
    line-height: 1.25;
    color: #ffffff;
}

.floating-text span {
    font-size: 0.76rem;
    color: #cfd8d6;
    line-height: 1.25;
    margin-top: 2px;
}

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

.services {
    background-color: var(--bg-cream);
}

.section-head {
    max-width: 800px;
    margin-bottom: 45px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

/* ==========================================================================
   SERVICIOS - DISEÑO LIMPIO Y ANCHO COMPLETO
   ========================================================================== */

.services-header-full {
    width: 100%;
    margin-bottom: 36px;
}

.services-header-full h2 {
    font-size: clamp(2rem, 3.8vw, 3.2rem);
    letter-spacing: -0.04em;
    line-height: 1.15;
    margin: 10px 0 14px;
    max-width: 960px;
}

.services-header-full h2 span {
    color: var(--primary);
}

.services-header-full .section-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 780px;
    line-height: 1.6;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

.service-card {
    background-color: var(--white);
    padding: 32px 26px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: var(--transition);
    box-shadow: var(--shadow-subtle);
    height: 100%;
    opacity: 1;
    visibility: visible;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(237, 28, 36, 0.4);
}

/* ==========================================================================
   BARRA DE RUTA EN EL ANCHO TOTAL DEL NAVEGADOR (POSICIÓN INFERIOR / WHATSAPP)
   ========================================================================== */

.bottom-route-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 52px;
    background: rgba(13, 37, 45, 0.95);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.35);
    z-index: 990;
    display: flex;
    align-items: center;
    user-select: none;
}

.bottom-route-inner {
    position: relative;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 45px;
    height: 100%;
    display: flex;
    align-items: center;
}

.bottom-highway {
    position: absolute;
    left: 45px;
    right: 45px;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    background: #173b47;
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.bottom-highway-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ed1c24, #ff5e66);
    box-shadow: 0 0 10px rgba(237, 28, 36, 0.9);
    transition: width 0.05s linear;
}

.bottom-highway-dashes {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0px, rgba(255, 255, 255, 0.4) 8px, transparent 8px, transparent 18px);
    pointer-events: none;
}

/* Camión sobre la carretera inferior */
.bottom-truck {
    position: absolute;
    top: 6px;
    left: 45px;
    transform: translate(-50%, -100%);
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.bottom-truck-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
    background: #ed1c24;
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 1px 6px;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(237, 28, 36, 0.6);
    white-space: nowrap;
}

.truck-pulse-dot {
    width: 4px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 50%;
    animation: livePulse 1.4s infinite;
}

.bottom-truck-svg {
    display: block;
}

/* Puntos divididos del menú */
.bottom-route-stops {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 5;
}

.route-stop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    text-decoration: none;
    color: #9cb1b7;
    transition: color 0.25s ease, transform 0.25s ease;
    padding: 2px 8px;
    border-radius: 4px;
}

.route-stop:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.stop-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #0d252d;
    border: 2px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.stop-title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.route-stop.active {
    color: #ffffff;
}

.route-stop.active .stop-dot {
    background: #ed1c24;
    border-color: #ffffff;
    box-shadow: 0 0 12px rgba(237, 28, 36, 0.9);
    transform: scale(1.25);
}

.route-stop.passed .stop-dot {
    background: #ed1c24;
    border-color: rgba(255, 255, 255, 0.6);
}

.route-stop.passed {
    color: #cfd8d6;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-elevated);
    border-color: rgba(237, 28, 36, 0.35);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.card-num {
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--primary);
    background-color: var(--primary-light);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.card-icon {
    color: var(--dark);
    background: var(--bg-cream);
    padding: 8px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
}

.service-card:hover .card-icon {
    background-color: var(--primary-light);
    color: var(--primary);
}

.service-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.55;
    margin-bottom: 0;
}

/* ==========================================================================
   FLOTA Y UNIDADES
   ========================================================================== */

.fleet-section {
    background-color: var(--bg-light);
}

.fleet-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 35px;
}

.fleet-card {
    background: var(--white);
    padding: 26px 22px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    transition: var(--transition);
    opacity: 1;
    visibility: visible;
}

.fleet-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-elevated);
    border-color: var(--primary);
}

.fleet-badge {
    display: inline-block;
    padding: 3px 8px;
    background-color: var(--dark);
    color: var(--white);
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.fleet-card h4 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.fleet-card p {
    color: var(--text-muted);
    font-size: 0.86rem;
    margin-bottom: 14px;
}

.fleet-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
}

.staff-banner {
    background: linear-gradient(135deg, #102d36 0%, #173d49 100%);
    color: var(--white);
    padding: 28px 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 22px;
    box-shadow: var(--shadow-elevated);
}

.staff-icon {
    background: rgba(237, 28, 36, 0.2);
    color: var(--primary);
    padding: 14px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.staff-info h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.staff-info p {
    color: var(--text-light);
    font-size: 0.92rem;
    line-height: 1.5;
}

.staff-info strong {
    color: #ffffff;
}

/* ==========================================================================
   CLIENTES
   ========================================================================== */

.clients {
    background-color: var(--bg-cream);
}

.client-logos-wall {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 35px 0 50px;
}

.client-chip {
    background: var(--white);
    padding: 10px 20px 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-subtle);
    transition: var(--transition);
    opacity: 1;
    visibility: visible;
}

.client-chip:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-elevated);
}

.chip-logo {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.chip-logo svg {
    display: block;
}

.chip-name {
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    color: var(--dark);
    transition: var(--transition);
}

.client-chip:hover .chip-name {
    color: var(--primary);
}

.client-action-box {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 34px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 26px;
    box-shadow: var(--shadow-subtle);
    opacity: 1;
    visibility: visible;
}

.action-box-content h3 {
    color: var(--dark);
    font-size: 1.35rem;
    margin-bottom: 4px;
}

.action-box-content p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.action-box-buttons {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

/* ==========================================================================
   CONTACTO & MAPA
   ========================================================================== */

.contact-section {
    background-color: var(--dark);
    color: var(--white);
}

.contact-container {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 6vw;
    margin-bottom: 50px;
}

.contact-info-col h2 {
    color: var(--white);
}

.contact-intro {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 26px;
}

.contact-data-list {
    display: grid;
    gap: 16px;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.item-icon {
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.08);
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    display: grid;
    place-items: center;
    flex-shrink: 0;
}

.contact-item strong {
    display: block;
    font-size: 0.82rem;
    color: #ffffff;
}

.contact-item span,
.contact-item a {
    color: var(--text-light);
    font-size: 0.92rem;
}

.contact-item a:hover {
    color: var(--primary);
}

.social-contact-block {
    border-top: 1px solid var(--border-dark);
    padding-top: 20px;
}

.social-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--text-light);
    margin-bottom: 12px;
    text-transform: uppercase;
}

.social-icons-row {
    display: flex;
    gap: 10px;
}

.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.social-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
}

/* Formulario */
.form-card {
    background: #0d252d;
    padding: 34px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-dark);
    box-shadow: var(--shadow-elevated);
}

.form-card h3 {
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.form-subtitle {
    color: var(--text-light);
    font-size: 0.88rem;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.form-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 0.9rem;
    transition: var(--transition);
}

.form-card select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px;
}

.form-card select option {
    background-color: #0d252d;
    color: #ffffff;
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(237, 28, 36, 0.25);
}

.form-card textarea {
    min-height: 100px;
    resize: vertical;
}

.button-submit {
    width: 100%;
    background-color: var(--primary);
    color: var(--white);
    margin-top: 8px;
    padding: 14px;
}

.button-submit:hover {
    background-color: var(--primary-dark);
}

/* ==========================================================================
   MAPA DE UBICACIÓN
   ========================================================================== */

.map-section {
    background: #0d252d;
    border: 1px solid var(--border-dark);
    border-radius: var(--radius-sm);
    padding: 26px;
    box-shadow: var(--shadow-elevated);
}

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

.map-header h3 {
    font-size: 1.25rem;
    color: #ffffff;
}

.map-header p {
    color: var(--text-light);
    font-size: 0.85rem;
}

.map-btn-external {
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--primary);
    border: 1px solid rgba(237, 28, 36, 0.4);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.map-btn-external:hover {
    background-color: var(--primary);
    color: var(--white);
}

.map-frame-wrapper {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
    line-height: 0;
}

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

.footer {
    background-color: #0c1e24;
    color: #ffffff;
    padding: 42px 11vw 96px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-simple-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-left .brand {
    color: #ffffff;
    font-size: 1.25rem;
}

.footer-copy {
    color: var(--text-light);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.88rem;
    font-weight: 700;
}

.footer-links a {
    color: var(--text-light);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-back-top {
    color: #ffffff !important;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */

.whatsapp-floating-btn {
    position: fixed;
    bottom: 68px;
    right: 24px;
    width: 54px;
    height: 54px;
    background-color: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
}

.whatsapp-floating-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}

/* ==========================================================================
   RESPONSIVIDAD (MEDIA QUERIES)
   ========================================================================== */

@media (max-width: 1024px) {
    .cards-grid,
    .fleet-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .client-action-box {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-photo {
        inset: 0 0 0 25%;
    }
}

@media (max-width: 1100px) {
    .topbar {
        padding: 0 28px;
    }

    .topbar nav {
        gap: 16px;
        font-size: 0.84rem;
    }

    .brand-logo {
        height: 42px;
    }

    .topbar nav a.cta {
        padding: 8px 16px;
        font-size: 0.82rem;
    }
}

@media (max-width: 992px) {
    .topbar {
        padding: 0 20px;
    }

    .menu {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .topbar nav {
        display: flex;
        position: absolute;
        top: 82px;
        left: 0;
        right: 0;
        z-index: 50;
        flex-direction: column;
        align-items: stretch;
        padding: 24px 28px;
        background: rgba(250, 249, 245, 0.98);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-bottom: 2px solid rgba(237, 28, 36, 0.25);
        box-shadow: 0 16px 36px rgba(16, 45, 54, 0.15);
        gap: 16px;

        /* Animación suave de apertura y cierre */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-16px);
        pointer-events: none;
        transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), 
                    visibility 0.32s ease;
    }

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

    .topbar nav a:not(.cta) {
        opacity: 0;
        transform: translateX(-10px);
        transition: opacity 0.25s ease, transform 0.25s ease, color 0.2s ease;
        font-size: 1.02rem;
        padding: 4px 0;
    }

    .topbar nav.open a:not(.cta) {
        opacity: 1;
        transform: translateX(0);
    }

    .topbar nav.open a:nth-child(1) { transition-delay: 0.04s; }
    .topbar nav.open a:nth-child(2) { transition-delay: 0.08s; }
    .topbar nav.open a:nth-child(3) { transition-delay: 0.12s; }
    .topbar nav.open a:nth-child(4) { transition-delay: 0.16s; }
    .topbar nav.open a:nth-child(5) { transition-delay: 0.20s; }
    .topbar nav.open a:nth-child(6) { transition-delay: 0.24s; }

    .topbar nav .nav-actions {
        margin-left: 0;
        margin-top: 6px;
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.25s ease 0.26s, transform 0.25s ease 0.26s;
    }

    .topbar nav.open .nav-actions {
        opacity: 1;
        transform: translateY(0);
    }

    .cta {
        text-align: center;
        width: 100%;
        display: block;
        padding: 13px 20px;
    }

    .hero {
        min-height: 600px;
        padding: 70px 24px 110px;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        position: relative;
    }

    .hero-photo {
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(16, 45, 54, 0.92) 0%, rgba(16, 45, 54, 0.65) 32%, rgba(16, 45, 54, 0.1) 58%, rgba(16, 45, 54, 0.65) 100%),
                    url('../images/grupo-ttransporto.png') center bottom / cover no-repeat;
        opacity: 0.98;
    }

    .hero-copy {
        max-width: 100%;
        position: relative;
        z-index: 2;
    }

    .hero h1 {
        font-size: clamp(2.3rem, 7vw, 3.8rem);
        color: #ffffff;
        text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    }

    .hero-lead {
        color: #ffffff;
        font-size: 1.05rem;
        font-weight: 500;
        line-height: 1.6;
        max-width: 520px;
        text-shadow: 0 2px 5px rgba(0, 0, 0, 0.95), 0 0 12px rgba(16, 45, 54, 0.95);
        margin-bottom: 26px;
    }

    .stamp {
        right: 20px;
        bottom: 25px;
        padding: 10px 16px;
    }

    .stamp b {
        font-size: 2.5rem;
    }

    .split,
    .pillars-section,
    .services,
    .fleet-section,
    .clients,
    .contact-section,
    .red-panel {
        padding: 70px 20px;
    }

    .red-panel-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .red-media-frame {
        max-width: 100%;
    }

    .red-media-img {
        height: 280px;
    }

    .bottom-route-inner {
        padding: 0 16px;
    }

    .bottom-highway {
        left: 16px;
        right: 16px;
    }

    .stop-title {
        font-size: 0.58rem;
    }

    .whatsapp-floating-btn {
        bottom: 62px !important;
        right: 16px !important;
        width: 48px;
        height: 48px;
    }

    .split,
    .contact-container {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .pillars-grid,
    .cards-grid,
    .fleet-grid {
        grid-template-columns: 1fr;
    }

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

    .form-card {
        padding: 24px 20px;
    }

    .staff-banner {
        flex-direction: column;
        text-align: center;
        padding: 24px 20px;
    }

    .action-box-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-box-buttons .button {
        width: 100%;
    }

    .footer {
        padding: 32px 20px 92px;
    }

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

    .footer-left {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
        font-size: 0.82rem;
    }

    .footer-back-top {
        padding-left: 0;
        border-left: none;
    }

    .map-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}