/* ═══════════════════════════════════════════════
   THCO — Servicios Integrales THC
   Corporate Website Stylesheet
   ═══════════════════════════════════════════════ */

/* ── Custom Properties ── */
:root {
    /* Brand Colors */
    --red: #CE1836;
    --red-dark: #A8132B;
    --red-light: #E8294A;
    --blue: #004C97;
    --blue-dark: #003A75;
    --blue-light: #0062C4;
    --silver: #7A7A7A;
    --silver-light: #B0B0B0;
    --white: #FFFFFF;
    --off-white: #F7F8FA;
    --dark: #0A0E1A;
    --dark-card: #111827;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-max: 1200px;
    --gap: 24px;

    /* Transitions */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
    --shadow-card: 0 8px 32px rgba(0,76,151,0.08);

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #333;
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

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

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-xl);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition);
}

.btn:hover::after {
    opacity: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(206, 24, 54, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(206, 24, 54, 0.45);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 16px;
}

/* ── Accent text ── */
.accent {
    color: var(--red);
}

/* ══════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 101;
}

.logo-img {
    height: 48px;
    width: auto;
    transition: height var(--transition);
}

.site-header.scrolled .logo-img {
    height: 38px;
}

.footer-logo {
    height: 44px;
    width: auto;
    margin-bottom: 12px;
}

/* Nav */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 18px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.site-header.scrolled .nav-link {
    color: #333;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
    background: var(--off-white);
    color: var(--blue);
}

.nav-link.cta-nav {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: var(--white) !important;
    padding: 10px 24px;
}

.nav-link.cta-nav:hover {
    box-shadow: 0 4px 16px rgba(206, 24, 54, 0.4);
    transform: translateY(-1px);
}

.site-header.scrolled .nav-link.cta-nav,
.site-header.scrolled .nav-link.cta-nav.active,
.site-header.scrolled .nav-link.cta-nav:hover {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white) !important;
    box-shadow: 0 4px 12px rgba(0, 76, 151, 0.3);
}

.site-header.scrolled .nav-link.cta-nav:hover {
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    box-shadow: 0 6px 16px rgba(0, 76, 151, 0.4);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 101;
    padding: 8px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.site-header.scrolled .hamburger-line {
    background: #333;
}

.site-header.scrolled .hamburger.active .hamburger-line {
    background: var(--white);
}

.hamburger.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition);
}
.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: -5%; /* extra space for panning */
    background: url('https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1920&q=80') center/cover no-repeat;
    z-index: 0;
    animation: ken-burns 15s ease-out forwards;
}

@keyframes ken-burns {
    0% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(206, 24, 54, 0.15), transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(0, 76, 151, 0.2), transparent 50%),
        linear-gradient(135deg, rgba(0,30,60,0.95) 0%, rgba(0,76,151,0.85) 40%, rgba(10,14,26,0.92) 100%);
    pointer-events: none;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.hero-content {
    position: relative;
    text-align: center;
    z-index: 2;
    padding: 120px 0 80px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--white);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-title .accent {
    background: linear-gradient(135deg, var(--red-light), var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 640px;
    margin: 0 auto 40px;
    font-weight: 300;
    line-height: 1.8;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

.hero-scroll-indicator svg {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Staggered Hero Animations */
.hero-anim-1,
.hero-anim-2,
.hero-anim-3,
.hero-anim-4,
.hero-anim-5 {
    opacity: 0;
    transform: translateY(30px);
    animation: hero-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-anim-1 { animation-delay: 0.2s; }
.hero-anim-2 { animation-delay: 0.4s; }
.hero-anim-3 { animation-delay: 0.6s; }
.hero-anim-4 { animation-delay: 0.8s; }
.hero-anim-5 { animation-delay: 1.0s; }

@keyframes hero-fade-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Pulse Button Glow */
.pulse-btn {
    position: relative;
    animation: hero-fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) forwards, pulse-glow 3s infinite 2s;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(206, 24, 54, 0.7); }
    50% { box-shadow: 0 0 0 20px rgba(206, 24, 54, 0); }
    100% { box-shadow: 0 0 0 0 rgba(206, 24, 54, 0); }
}

/* ══════════════════════════════════════════════
   SECTION COMMON
   ══════════════════════════════════════════════ */
.section {
    padding: var(--section-padding);
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    border-radius: var(--radius-xl);
    background: linear-gradient(135deg, rgba(0,76,151,0.08), rgba(0,76,151,0.04));
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark);
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--silver);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ══════════════════════════════════════════════
   EMPRESA
   ══════════════════════════════════════════════ */
.section-empresa {
    background: var(--off-white);
}

.empresa-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.empresa-text {
    font-size: 1.05rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 32px;
}

.empresa-text strong {
    color: var(--blue);
    font-weight: 600;
}

/* Stats */
.empresa-stats {
    display: flex;
    gap: 32px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--blue);
    display: inline;
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--red);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--silver);
    margin-top: 4px;
    font-weight: 500;
}

/* Cards */
.empresa-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0, 76, 151, 0.06);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.card-mission .card-icon {
    background: linear-gradient(135deg, rgba(0,76,151,0.1), rgba(0,76,151,0.05));
    color: var(--blue);
}

.card-vision .card-icon {
    background: linear-gradient(135deg, rgba(206,24,54,0.1), rgba(206,24,54,0.05));
    color: var(--red);
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--dark);
}

.card p {
    color: var(--silver);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Valores */
.valores-section {
    text-align: center;
}

.valores-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 36px;
}

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

.valor-item {
    padding: 28px 16px;
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.valor-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(0, 76, 151, 0.12);
}

.valor-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,76,151,0.08), rgba(206,24,54,0.06));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    color: var(--blue);
}

.valor-item h4 {
    font-size: 0.95rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.valor-item p {
    font-size: 0.8rem;
    color: var(--silver);
}

/* ══════════════════════════════════════════════
   SERVICIOS
   ══════════════════════════════════════════════ */
.section-servicios {
    background: var(--white);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--gap);
    margin-bottom: 60px;
}

.servicio-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    border: 1px solid rgba(0, 76, 151, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.servicio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--red));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--transition-slow);
}

.servicio-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 76, 151, 0.15);
}

.servicio-card:hover::before {
    transform: scaleX(1);
}

.servicio-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-size: 1.15rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.servicio-card p {
    color: var(--silver);
    font-size: 0.92rem;
    line-height: 1.7;
    margin-bottom: 16px;
}

.servicio-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-xl);
    background: rgba(0, 76, 151, 0.06);
    color: var(--blue);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Flota */
.flota-section {
    text-align: center;
}

.flota-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 36px;
}

.flota-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
}

.flota-card {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 32px 20px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
    position: relative;
}

.flota-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    background: var(--white);
    border-color: rgba(0, 76, 151, 0.1);
}

.flota-card-featured {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-color: transparent;
    color: var(--white);
}

.flota-card-featured:hover {
    background: linear-gradient(135deg, var(--blue-light), var(--blue));
    border-color: transparent;
}

.flota-icon {
    margin-bottom: 16px;
    color: var(--blue);
}

.flota-card-featured .flota-icon {
    color: var(--white);
}

.flota-type {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.flota-card-featured .flota-type {
    color: var(--white);
}

.flota-specs {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.spec {
    display: flex;
    flex-direction: column;
}

.spec-value {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--blue);
}

.flota-card-featured .spec-value {
    color: var(--white);
}

.spec-label {
    font-size: 12px;
    color: var(--silver);
    margin-top: 2px;
}

.flota-card-featured .spec-label {
    color: rgba(255, 255, 255, 0.7);
}

.flota-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 14px;
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ══════════════════════════════════════════════
   VENTAJAS
   ══════════════════════════════════════════════ */
.section-ventajas {
    background: var(--off-white);
    position: relative;
}

.ventajas-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap);
    margin-bottom: 60px;
}

.ventaja-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.ventaja-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(0, 76, 151, 0.1);
}

.ventaja-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,76,151,0.08), rgba(206,24,54,0.05));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--blue);
    transition: var(--transition);
}

.ventaja-card:hover .ventaja-icon {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: var(--white);
    transform: scale(1.05);
}

.ventaja-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.ventaja-card p {
    color: var(--silver);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Socios */
.socios-section {
    text-align: center;
    overflow: hidden;
}

.socios-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.socios-subtitle {
    font-size: 0.95rem;
    color: var(--silver);
    margin-bottom: 32px;
}

.socios-carousel {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.socios-track {
    display: flex;
    gap: 40px;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

.socio-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.06);
    min-width: 180px;
    height: 80px;
    transition: var(--transition);
}

.socio-item img {
    max-width: 85%;
    max-height: 65%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.6;
    transition: var(--transition);
}

.socio-item span {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--silver);
    letter-spacing: 0.02em;
    transition: var(--transition);
}

.socio-item:hover {
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.socio-item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

.socio-item:hover span {
    color: var(--blue);
}

@keyframes scroll-logos {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════
   CONTACTO
   ══════════════════════════════════════════════ */
.section-contacto {
    background: var(--white);
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Form */
.contact-form {
    background: var(--off-white);
    border-radius: var(--radius-lg);
    padding: 40px;
    border: 1px solid rgba(0,0,0,0.04);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.contact-form > .form-group {
    margin-bottom: 20px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}

.form-group input,
.form-group textarea {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1.5px solid rgba(0,0,0,0.08);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 14px;
    color: #333;
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 76, 151, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--silver-light);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 12px;
    color: var(--red);
    margin-top: 4px;
    min-height: 18px;
}

.form-group input.error,
.form-group textarea.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(206, 24, 54, 0.08);
}

.btn-submit {
    width: 100%;
    justify-content: center;
}

.btn-loading svg {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.form-success {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #059669;
    margin-top: 20px;
}

.form-success p {
    font-size: 14px;
    line-height: 1.5;
}

/* Contact Info */
.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--off-white);
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.04);
    transition: var(--transition);
}

.info-card:hover {
    border-color: rgba(0, 76, 151, 0.1);
    box-shadow: var(--shadow-sm);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
}

.info-card h4 {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 4px;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--silver);
    line-height: 1.6;
}

.info-card a {
    color: var(--blue);
    font-weight: 500;
}

.info-card a:hover {
    color: var(--red);
}

.info-map {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
}

/* ══════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════ */
.site-footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding-top: 60px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 16px;
    filter: brightness(0) invert(1);
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
    max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 4px;
}

.footer-contact p {
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact a:hover {
    color: var(--red-light);
}

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

.footer-bottom p {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ══════════════════════════════════════════════
   ANIMATIONS
   ══════════════════════════════════════════════ */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.valores-grid .valor-item,
.servicios-grid .servicio-card,
.ventajas-grid .ventaja-card,
.flota-grid .flota-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.valores-grid .valor-item.visible,
.servicios-grid .servicio-card.visible,
.ventajas-grid .ventaja-card.visible,
.flota-grid .flota-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Particle animation */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    animation: particle-float linear infinite;
}

@keyframes particle-float {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .empresa-grid {
        grid-template-columns: 1fr;
    }

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

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

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

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

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

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

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    /* Mobile Nav */
    .hamburger {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 30, 60, 0.95);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s;
        z-index: 100;
    }

    .main-nav.open {
        opacity: 1;
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .nav-link {
        color: var(--white) !important;
        font-size: 1.5rem;
        font-weight: 600;
        padding: 10px 20px;
        letter-spacing: 0.05em;
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.4s ease, transform 0.4s ease;
        text-align: center;
        width: auto;
        background: transparent !important;
    }

    .main-nav.open .nav-link {
        opacity: 1;
        transform: translateY(0);
    }
    
    .main-nav.open li:nth-child(1) .nav-link { transition-delay: 0.1s; }
    .main-nav.open li:nth-child(2) .nav-link { transition-delay: 0.15s; }
    .main-nav.open li:nth-child(3) .nav-link { transition-delay: 0.2s; }
    .main-nav.open li:nth-child(4) .nav-link { transition-delay: 0.25s; }
    .main-nav.open li:nth-child(5) .nav-link { transition-delay: 0.3s; }

    .nav-link:hover,
    .nav-link.active {
        color: var(--red) !important;
    }

    .nav-link.cta-nav {
        margin-top: 24px;
        font-size: 1.2rem;
        padding: 14px 32px;
        background: linear-gradient(135deg, var(--red), var(--red-dark)) !important;
        box-shadow: 0 8px 24px rgba(206, 24, 54, 0.4);
        border-radius: var(--radius-xl);
    }

    /* Hero */
    .hero-content {
        padding: 100px 0 60px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    /* Grids */
    .empresa-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

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

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

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

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

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

    .contact-form {
        padding: 28px 20px;
    }

    /* Footer */
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer-logo {
        margin: 0 auto 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.6rem;
    }

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

    .valores-grid .valor-item:last-child {
        grid-column: 1 / -1;
    }

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

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

    .empresa-stats {
        gap: 20px;
        justify-content: space-around;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn-lg {
        padding: 14px 24px;
        font-size: 14px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .contact-form {
        padding: 24px 16px;
    }
}

/* ══════════════════════════════════════════════
   MODAL BOLSA DE TRABAJO
   ══════════════════════════════════════════════ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 30, 60, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--white);
    width: 100%;
    max-width: 700px;
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 32px;
    background: none;
    border: none;
    color: var(--silver);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--red);
    transform: rotate(90deg);
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 1.8rem;
    color: var(--blue-dark);
    margin-bottom: 10px;
}

.modal-header p {
    color: var(--silver);
    font-size: 0.95rem;
}

.modal-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-form .form-group {
    margin-bottom: 20px;
}

.file-upload-wrapper {
    position: relative;
    width: 100%;
    height: 50px;
    border: 2px dashed rgba(0, 76, 151, 0.2);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    padding: 0 16px;
    background: var(--off-white);
    transition: var(--transition);
}

.file-upload-wrapper:hover {
    border-color: var(--blue);
    background: rgba(0, 76, 151, 0.03);
}

.file-upload-wrapper input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.file-custom {
    font-size: 14px;
    color: var(--silver);
}

.modal-form .btn-submit {
    margin-top: 10px;
}

@media (max-width: 768px) {
    .modal-content {
        padding: 30px 20px;
    }
    
    .modal-form .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
