/**
 * LAM Logistic - Estilos Principales
 * Diseño moderno y responsive
 */

/* ===== Variables CSS ===== */
:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --secondary-color: #64748b;
    --accent-color: #3b82f6;
    --text-color: #1e293b;
    --text-light: #64748b;
    --bg-light: #f8fafc;
    --border-color: #e2e8f0;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-700: #334155;
    --shadow: 0 2px 15px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.1);
    --transition: all 0.3s ease;
}

/* ===== Reset y Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

/* Accesibilidad: texto sólo para lectores de pantalla */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Foco visible coherente */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Respetar preferencia de movimiento reducido */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .hero-video {
        display: none;
    }
}

/* ===== Top Bar ===== */
.topbar {
    background: var(--gray-100);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 0;
    font-size: 13px;
}

.topbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.topbar-left {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.topbar-link {
    color: var(--gray-700);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.25s ease;
}

.topbar-link:hover {
    color: var(--primary-color);
}

.topbar-icon {
    color: var(--primary-color);
    flex-shrink: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-contact {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topbar-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-700);
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.2px;
    transition: color 0.25s ease;
}

.topbar-contact-link:hover {
    color: var(--primary-color);
}

.topbar-divider {
    width: 1px;
    height: 18px;
    background: var(--border-color);
}

.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    color: var(--gray-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

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

/* ===== Header y Navegación ===== */
.header {
    background: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow 0.3s ease;
}

.header.is-scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.navbar {
    padding: 15px 0;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
    transition: var(--transition);
}

.logo-img:hover {
    opacity: 0.9;
}

.logo-text {
    color: var(--primary-color);
}

.logo-subtext {
    color: var(--text-color);
    font-size: 16px;
    margin-left: 5px;
    font-weight: 400;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu > li > a:not(.nav-phone):not(.btn-primary-small) {
    color: var(--text-color);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-menu > li > a:not(.nav-phone):not(.btn-primary-small)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

.nav-menu > li > a:not(.nav-phone):not(.btn-primary-small):hover {
    color: var(--primary-color);
}

.nav-menu > li > a:not(.nav-phone):not(.btn-primary-small):hover::after,
.nav-menu > li > a.active::after {
    transform: scaleX(1);
}

.nav-menu > li > a.active {
    color: var(--primary-color);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-arrow {
    transition: transform 0.3s ease;
    color: currentColor;
    opacity: 0.7;
}

.nav-dropdown:hover .dropdown-arrow,
.nav-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    list-style: none;
    padding: 12px 0;
    margin-top: 10px;
    min-width: 280px;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 12px 24px;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
    padding-left: 28px;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    margin: 3px 0;
    transition: var(--transition);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background-color: var(--primary-dark);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 0;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

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

/* Gradiente vertical: suave arriba, más fuerte bajo el texto — se ve el vídeo y el texto queda legible */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg,
            rgba(15, 23, 42, 0.25) 0%,
            rgba(15, 23, 42, 0.35) 40%,
            rgba(15, 23, 42, 0.65) 100%),
        radial-gradient(ellipse at 50% 55%,
            rgba(15, 23, 42, 0.25) 0%,
            transparent 60%);
}

/* Leve tinte azul corporativo (muy sutil) */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.12) 0%,
        transparent 60%);
    z-index: 1;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 920px;
    text-align: center;
    margin: 0 auto;
    color: var(--white);
    padding: 20px 0;
}

.hero-eyebrow {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 22px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.hero-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    margin-bottom: 22px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
    font-size: clamp(16px, 1.4vw, 20px);
    max-width: 680px;
    margin: 0 auto 36px;
    opacity: 0.95;
    font-weight: 400;
    line-height: 1.5;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Indicador de scroll */
.hero-scroll {
    position: absolute;
    left: 50%;
    bottom: 32px;
    transform: translateX(-50%);
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.9);
    z-index: 3;
    transition: color 0.25s ease, transform 0.25s ease;
}

.hero-scroll:hover {
    color: var(--white);
    transform: translateX(-50%) translateY(-2px);
}

.hero-scroll-text {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.hero-scroll-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    animation: heroScrollBounce 2.2s ease-in-out infinite;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

@keyframes heroScrollBounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

@media (max-width: 768px) {
    .hero-scroll-text {
        display: none;
    }
    .hero-scroll {
        bottom: 22px;
    }
    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 2px;
    }
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-primary:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.4);
}

.btn-primary-small {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 22px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary-small svg {
    flex-shrink: 0;
}

.btn-primary-small:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
}

/* CTA nav group: teléfono + presupuesto */
.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-phone {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.18);
    transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.nav-phone:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

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

/* Outline button para contextos sobre fondo claro */
.btn-outline {
    display: inline-block;
    padding: 13px 28px;
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3);
}

.blog-footer {
    margin-top: 40px;
}

/* ===== Sections ===== */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px;
    padding-bottom: 22px;
    position: relative;
}

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-color);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 64px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.section-header p {
    font-size: 18px;
    color: var(--text-light);
    margin-top: 4px;
}

/* ===== Services Grid ===== */
.services-highlight {
    background: var(--bg-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--bg-light);
}

.service-card {
    position: relative;
    min-height: 420px;
    padding: 40px 35px;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    color: var(--white);
    text-decoration: none;
    isolation: isolate;
}

/* Gradiente oscuro en la parte inferior para legibilidad del texto sobre la foto */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(15, 23, 42, 0) 0%,
        rgba(15, 23, 42, 0.15) 45%,
        rgba(15, 23, 42, 0.75) 100%
    );
    z-index: 1;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover::before {
    opacity: 0.75;
}

.service-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: -6px;
}

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

.service-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.55;
    transition: opacity 0.5s ease, transform 0.8s ease;
    z-index: 0;
}

.service-card:hover .service-bg-img {
    opacity: 0.9;
    transform: scale(1.08);
}

.service-icon-svg {
    margin-bottom: 25px;
    opacity: 0.95;
    transition: transform 0.4s ease, opacity 0.4s ease;
    display: inline-block;
    line-height: 0;
}

.service-card:hover .service-icon-svg {
    transform: translateY(-4px);
    opacity: 1;
}

.service-card h3 {
    line-height: 1.25;
    margin-bottom: 18px;
    color: var(--white);
    font-weight: 700;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.service-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.85;
}

.service-name {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: auto;
}

.service-more {
    position: absolute;
    bottom: 30px;
    left: 35px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.3s ease, gap 0.3s ease, letter-spacing 0.3s ease;
}

.service-more svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.service-card:hover .service-more {
    border-color: var(--white);
    gap: 14px;
}

.service-card:hover .service-more svg {
    transform: translateX(4px);
}

/* Colores específicos para cada servicio */
.service-maritimo {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

.service-terrestre {
    background: linear-gradient(135deg, #64748b 0%, #475569 100%);
}

.service-aereo {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.service-distribucion {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.service-logistica {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.service-aduanas {
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
}

/* Colores de base por tipo — las imágenes dominan, el color queda como tinte de marca */

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
    z-index: 2;
}

/* ===== CTA Image Section ===== */
.cta-image-section {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 100px 0;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

.cta-image-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(30, 58, 138, 0.2) 0%, transparent 40%);
    z-index: 0;
}

.cta-image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.cta-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay diagonal: lado derecho limpio (se ve la foto), lado izquierdo oscuro-azulado (card respira) */
.cta-image-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(110deg,
            rgba(15, 23, 42, 0.75) 0%,
            rgba(15, 23, 42, 0.55) 40%,
            rgba(30, 64, 175, 0.35) 70%,
            rgba(30, 64, 175, 0.25) 100%);
    z-index: 1;
}

.cta-image-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    color: var(--white);
    padding: 48px 52px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cta-image-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(37, 99, 235, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.cta-image-content h2 {
    font-size: clamp(26px, 3.4vw, 40px);
    margin-bottom: 18px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.cta-image-content p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 32px;
    opacity: 0.92;
    max-width: 520px;
}

/* Contenedor de CTAs (principal + teléfono) */
.cta-image-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.cta-image-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    transition: color 0.25s ease;
}

.cta-image-phone:hover {
    color: var(--white);
}

.cta-image-phone strong {
    font-weight: 700;
    letter-spacing: 0.3px;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 34px;
    background: var(--white);
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.3px;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, gap 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.btn-cta .btn-arrow {
    display: inline-flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
    gap: 16px;
}

.btn-cta:hover .btn-arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .cta-image-section {
        min-height: 420px;
        padding: 60px 0;
    }

    .cta-image-content {
        padding: 36px 26px;
    }

    .cta-image-content p {
        font-size: 15px;
        margin-bottom: 26px;
    }

    .cta-image-actions {
        gap: 18px;
    }

    .btn-cta {
        justify-content: center;
        padding: 14px 26px;
    }

    .cta-image-phone {
        font-size: 13px;
    }
}

/* ===== Stats Section ===== */
.stats-section {
    padding: 90px 0;
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 50px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.stat-item {
    position: relative;
    text-align: center;
    padding: 48px 26px;
    transition: background 0.3s ease;
}

/* Separador vertical sutil entre items */
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 25%;
    right: 0;
    width: 1px;
    height: 50%;
    background: var(--border-color);
}

.stat-item:hover {
    background: var(--bg-light);
}

.stat-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 14px;
    color: var(--white);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.stat-item:hover .stat-icon {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.35);
}

.stat-icon svg {
    stroke: var(--white);
}

.stat-number {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    color: var(--text-color);
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 12px;
    font-variant-numeric: tabular-nums;
}

.stat-number-static {
    font-variant-numeric: normal;
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.stats-cta {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.btn-stats {
    display: inline-block;
    padding: 18px 40px;
    background: linear-gradient(135deg, var(--secondary-color), #2c3e50);
    color: var(--white);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.2);
}

.btn-stats:hover {
    background: linear-gradient(135deg, #2c3e50, var(--secondary-color));
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
    transform: translateY(-2px);
}

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

    /* separador horizontal en lugar de vertical en los items pares (última columna) */
    .stat-item:nth-child(2n)::after {
        display: none;
    }
    .stat-item:not(:nth-last-child(-n+2))::before {
        content: '';
        position: absolute;
        bottom: 0;
        left: 15%;
        right: 15%;
        height: 1px;
        background: var(--border-color);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 38px 20px;
    }

    .stat-item::after,
    .stat-item::before {
        display: none;
    }

    .stat-item:not(:last-child) {
        border-bottom: 1px solid var(--border-color);
    }
}

/* ===== Value Added Services ===== */
.value-added-services {
    padding: 0;
    background: var(--white);
}

.value-services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    height: 300px;
}

.value-services-intro {
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 40px;
}

.value-intro-content {
    text-align: left;
    max-width: 280px;
}

.value-intro-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 18px;
    font-size: 11px;
    font-weight: 700;
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 999px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.value-intro-content h2 {
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 16px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.value-intro-description {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.55;
    margin-bottom: 24px;
}

.btn-value-services {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    white-space: nowrap;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, gap 0.3s ease;
    border: none;
}

.btn-value-services svg {
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.btn-value-services:hover {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
    gap: 14px;
}

.btn-value-services:hover svg {
    transform: translateX(3px);
}

.value-service-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
    overflow: hidden;
    color: var(--white);
    text-decoration: none;
    isolation: isolate;
    transition: transform 0.35s ease;
}

/* Patrón SVG de puntos muy sutil para dar textura */
.value-service-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 22px 22px;
    opacity: 0.9;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

/* Brillo diagonal sutil de esquina a esquina */
.value-service-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.08) 0%,
        transparent 50%);
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 0;
}

.value-service-item:hover::before {
    opacity: 1.2;
}

.value-service-item:hover {
    transform: translateY(-4px);
}

.value-service-item:focus-visible {
    outline: 3px solid var(--white);
    outline-offset: -6px;
}

/* Paleta 100% azul escalada (navy → dark → medium → brillante) */
.value-service-1 { background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%); }
.value-service-2 { background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%); }
.value-service-3 { background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%); }
.value-service-4 { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }

.value-service-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.value-service-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.value-service-icon svg {
    stroke: currentColor;
}

.value-service-item:hover .value-service-icon {
    transform: translateY(-3px) rotate(-8deg);
}

.value-service-item h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 22px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    text-wrap: balance;
    max-width: 240px;
    /* Reservar espacio para 2 líneas → VER MÁS siempre alineado en el grid */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-service-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--white);
    border-bottom: 2px solid rgba(255, 255, 255, 0.35);
    transition: border-color 0.3s ease, gap 0.3s ease;
}

.value-service-more svg {
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    flex-shrink: 0;
}

.value-service-item:hover .value-service-more {
    border-color: var(--white);
    gap: 12px;
}

.value-service-item:hover .value-service-more svg {
    transform: translateX(4px);
}

@media (max-width: 1200px) {
    .value-services-grid {
        grid-template-columns: 1fr 1fr 1fr;
        height: auto;
    }

    .value-services-intro {
        grid-column: 1 / -1;
        padding: 50px 30px;
    }

    .value-intro-content {
        max-width: 100%;
        text-align: center;
    }

    .value-service-item {
        min-height: 280px;
    }
}

@media (max-width: 768px) {
    .value-services-grid {
        grid-template-columns: 1fr;
    }

    .value-service-item {
        min-height: 240px;
        padding: 36px 22px;
    }
}

/* ===== Features ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-top: 50px;
}

.feature {
    text-align: center;
}

.feature-number {
    display: inline-block;
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.feature h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature p {
    color: var(--text-light);
    font-size: 15px;
}

/* ===== Blog Section ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.blog-card:nth-child(1) { animation-delay: 0.15s; }
.blog-card:nth-child(2) { animation-delay: 0.3s; }
.blog-card:nth-child(3) { animation-delay: 0.45s; }
.blog-card:nth-child(4) { animation-delay: 0.6s; }
.blog-card:nth-child(5) { animation-delay: 0.75s; }
.blog-card:nth-child(6) { animation-delay: 0.9s; }

.blog-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.08), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.blog-card:hover::before {
    left: 100%;
}

.blog-card:hover {
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
}

.blog-card-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.blog-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.blog-card:hover h3 {
    transform: translateX(5px);
}

.blog-card h3 a {
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.blog-card h3 a:hover {
    color: var(--primary-color);
}

.blog-card p {
    color: var(--text-light);
    margin-bottom: 15px;
    font-size: 15px;
    transition: all 0.3s ease;
}

.blog-card:hover p {
    color: var(--text-color);
}

.read-more {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.read-more::after {
    content: '→';
    transition: transform 0.3s ease;
}

.read-more:hover {
    gap: 10px;
    color: var(--primary-dark);
}

.read-more:hover::after {
    transform: translateX(5px);
}

.blog-card-footer {
    padding: 15px 25px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-light);
}

/* ===== CTA Section (Contacto directo) ===== */
.cta-section {
    position: relative;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(59, 130, 246, 0.28) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 80%, rgba(30, 64, 175, 0.35) 0%, transparent 55%),
        linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    text-align: center;
    overflow: hidden;
    padding: 90px 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 26px 26px;
    opacity: 0.9;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 780px;
    margin: 0 auto;
}

.cta-eyebrow {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.cta-content h2 {
    font-size: clamp(26px, 3.2vw, 38px);
    margin-bottom: 14px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.cta-content p {
    font-size: 17px;
    margin-bottom: 20px;
    opacity: 0.92;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.cta-hours {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 40px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}

.cta-hours svg {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* Grid de 2 cards de contacto */
.cta-contact-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    gap: 18px;
    justify-content: center;
}

.cta-contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    color: var(--white);
    text-align: left;
    transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cta-contact-card:hover {
    transform: translateY(-4px);
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.25);
}

.cta-contact-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cta-contact-card:hover .cta-contact-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.cta-contact-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.cta-contact-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.85;
    margin-bottom: 2px;
}

.cta-contact-value {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .cta-section {
        padding: 70px 0;
    }

    .cta-contact-buttons {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .cta-contact-value {
        font-size: 15px;
    }
}

/* ===== Footer ===== */
.footer {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: var(--white);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, #3b82f6 50%, var(--primary-color) 100%);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 72px;
    margin-bottom: 60px;
}

.footer-col h4 {
    font-size: 19px;
    margin-bottom: 28px;
    font-weight: 700;
    color: var(--white);
    position: relative;
    padding-bottom: 14px;
    letter-spacing: -0.01em;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 44px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

/* Logo del footer (SVG vectorial circular) */
.footer-brand {
    padding-bottom: 0;
    margin-bottom: 22px;
}
.footer-brand::after { display: none; }
.footer-brand a {
    display: inline-block;
    line-height: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.footer-brand a:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
.footer-brand img {
    display: block;
    width: 140px;
    height: auto;
    max-width: 100%;
}

.footer-col p {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-lead strong {
    color: var(--white);
    font-weight: 700;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 15px;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.footer-col ul li a::after {
    content: '→';
    font-size: 14px;
    opacity: 0;
    margin-left: -6px;
    transition: opacity 0.3s ease, margin 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
    transform: translateX(3px);
}

.footer-col ul li a:hover::after {
    opacity: 1;
    margin-left: 0;
}

.footer-contact-info {
    margin-top: 20px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
}

.footer-contact-item svg {
    width: 18px;
    height: 18px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.78);
    transition: color 0.3s ease;
}

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

.footer-social {
    display: flex;
    gap: 14px;
    margin-top: 28px;
}

.footer-social-link {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.45);
}

.footer-social-link svg {
    width: 20px;
    height: 20px;
    color: var(--white);
}

.footer-bottom {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.footer-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 500;
}

.footer-legal-info {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.2px;
    line-height: 1.6;
}

/* ===== Botón volver arriba ===== */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 90px; /* por encima del WhatsApp */
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.35);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.3s ease;
    z-index: 998;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.45);
}

@media (max-width: 640px) {
    .back-to-top {
        right: 16px;
        bottom: 80px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 968px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

@media (max-width: 640px) {
    .footer {
        padding: 50px 0 0;
    }

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

    .footer-col h4::after {
        width: 30px;
    }
}

/* ===== Valores Corporativos ===== */
.corporate-values {
    padding: 80px 0;
    background: var(--bg-light);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 50px;
    counter-reset: valueCounter;
}

.value-item {
    position: relative;
    text-align: left;
    padding: 38px 32px 34px;
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    overflow: hidden;
    counter-increment: valueCounter;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

/* Número editorial (01, 02, 03, 04) como marca de agua */
.value-item::before {
    content: counter(valueCounter, decimal-leading-zero);
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 34px;
    font-weight: 800;
    color: var(--border-color);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.35s ease, transform 0.35s ease;
}

.value-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.25);
}

.value-item:hover::before {
    color: rgba(37, 99, 235, 0.35);
}

.value-icon-circle {
    width: 64px;
    height: 64px;
    margin: 0 0 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.value-icon-circle svg {
    color: var(--white);
}

.value-item:hover .value-icon-circle {
    transform: translateY(-3px) rotate(-6deg);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.4);
}

.value-item h3 {
    font-size: 19px;
    margin-bottom: 10px;
    color: var(--text-color);
    font-weight: 700;
    letter-spacing: -0.01em;
}

.value-item p {
    font-size: 15px;
    color: var(--text-light);
    line-height: 1.6;
}

.value-item:hover p {
    color: var(--text-color);
}

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

@media (max-width: 768px) {
    .corporate-values {
        padding: 60px 0;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .value-item {
        padding: 32px 26px 28px;
    }

    .value-item::before {
        font-size: 28px;
        top: 14px;
        right: 18px;
    }

    .value-icon-circle {
        width: 58px;
        height: 58px;
    }

    .value-icon-circle svg {
        width: 28px;
        height: 28px;
    }
}

/* ===== Calculadora de Presupuesto ===== */
.quote-calculator {
    position: relative;
    background:
        radial-gradient(ellipse at 20% 30%, rgba(59, 130, 246, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 70%, rgba(30, 64, 175, 0.3) 0%, transparent 55%),
        linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    padding: 80px 0;
    color: var(--white);
    overflow: hidden;
}

/* Patrón sutil de puntos */
.quote-calculator::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.08) 1px, transparent 0);
    background-size: 26px 26px;
    opacity: 0.9;
    pointer-events: none;
}

.calculator-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

/* Columna izquierda: intro + beneficios */
.calculator-intro {
    color: var(--white);
}

.calculator-badge {
    display: inline-block;
    padding: 6px 14px;
    margin-bottom: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.calculator-intro h3 {
    font-size: clamp(24px, 2.5vw, 32px);
    font-weight: 700;
    margin-bottom: 14px;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.calculator-lead {
    font-size: 15px;
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 28px;
    max-width: 440px;
}

.calculator-benefits {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.calculator-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
}

.calculator-benefits svg {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    padding: 3px;
    color: var(--primary-color);
    background: var(--white);
    border-radius: 50%;
}

.calculator-benefits strong {
    font-weight: 700;
}

/* Columna derecha: formulario */
.calculator-form {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    padding: 32px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.calc-field {
    position: relative;
    display: flex;
    grid-column: span 2; /* default: 3 por fila (6/2=3) */
}

.calc-field-wide {
    grid-column: span 3; /* 2 por fila (origen / destino) */
}

.calc-field-full {
    grid-column: span 6; /* 1 por fila (tipo / botón) */
}

.calc-field-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: color 0.25s ease;
}

.calc-input {
    width: 100%;
    padding: 15px 18px 15px 46px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 15px;
    font-family: inherit;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.calc-input::placeholder {
    color: rgba(255, 255, 255, 0.75);
}

.calc-input:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.4);
}

.calc-input:focus {
    outline: none;
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.15);
}

.calc-field:focus-within .calc-field-icon {
    color: var(--white);
}

.calc-input option {
    color: var(--text-color);
    background: var(--white);
}

/* Select con chevron custom */
.calc-field-select select.calc-input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding-right: 42px;
    cursor: pointer;
}

.calc-select-arrow {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none;
    transition: transform 0.3s ease;
}

.calc-field-select:focus-within .calc-select-arrow {
    transform: translateY(-50%) rotate(180deg);
    color: var(--white);
}

.btn-calc-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 6px;
    padding: 16px 24px;
    background: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--white);
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, gap 0.25s ease, background 0.25s ease;
}

.btn-calc-submit svg {
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.btn-calc-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.3);
    background: #f8fafc;
    gap: 14px;
}

.btn-calc-submit:hover svg {
    transform: translateX(3px);
}

@media (max-width: 960px) {
    .calculator-wrapper {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .calculator-intro {
        text-align: center;
    }

    .calculator-lead {
        margin: 0 auto 24px;
    }

    .calculator-benefits {
        max-width: 360px;
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .quote-calculator {
        padding: 60px 0;
    }

    .calculator-form {
        padding: 26px 20px;
        grid-template-columns: 1fr;
    }

    .calc-field,
    .calc-field-wide,
    .calc-field-full,
    .btn-calc-submit.calc-field-full {
        grid-column: span 1;
    }
}

/* ===== Utilidades ===== */
.text-center {
    text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Ocultar email en pantallas medianas para ahorrar espacio */
@media (max-width: 1100px) {
    .topbar-contact-email {
        display: none;
    }
}

/* Ocultar divider si no hay contacto visible */
@media (max-width: 900px) {
    .topbar-divider {
        display: none;
    }
}

@media (max-width: 768px) {
    .topbar {
        padding: 8px 0;
        font-size: 12px;
    }

    .topbar-wrapper {
        flex-direction: column;
        gap: 8px;
    }

    .topbar-left {
        gap: 16px;
        justify-content: center;
    }

    .topbar-link {
        font-size: 12px;
    }

    .topbar-icon {
        width: 12px;
        height: 12px;
    }

    .topbar-contact {
        gap: 14px;
    }

    .topbar-contact-link {
        font-size: 12px;
    }

    .social-icons {
        gap: 8px;
    }

    .social-icon svg {
        width: 14px;
        height: 14px;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .nav-dropdown .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        padding: 8px 0 8px 20px;
        margin-top: 0;
        background: var(--bg-light);
        border-radius: 0;
        display: none;
    }

    .nav-dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 10px 20px;
        font-size: 13px;
    }

    .dropdown-menu a:hover {
        padding-left: 24px;
    }

    .dropdown-arrow {
        margin-left: auto;
    }

    .logo-img {
        height: 40px;
    }

    .hero {
        padding: 60px 0 80px;
        min-height: 560px;
    }

    .section-header h2 {
        font-size: 28px;
    }

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

    .service-card {
        min-height: 380px;
        padding: 35px 30px;
    }

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

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

    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 360px;
        padding: 30px 25px;
    }

    .service-card h3 {
        font-size: 18px;
    }

    .service-card p {
        font-size: 14px;
    }

    .service-more {
        bottom: 25px;
        left: 25px;
        font-size: 12px;
    }

    .topbar-left {
        gap: 10px;
    }

    .topbar-link {
        font-size: 11px;
    }

    .topbar-right {
        gap: 12px;
    }

    .social-icons {
        gap: 8px;
    }

    .language-selector {
        padding: 3px 8px;
        font-size: 12px;
    }

    .logo-img {
        height: 35px;
    }

    .hero {
        padding: 40px 0 70px;
        min-height: 480px;
    }

    section {
        padding: 50px 0;
    }
}

/* ═══ Selector de idioma (barra superior) ═══ */
.lang-switcher {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.lang-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 4px;
    color: inherit;
    font: inherit;
    font-size: 12px;
    line-height: 1;
    padding: 5px 8px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.lang-current:hover,
.lang-switcher:focus-within .lang-current {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.35);
}
.lang-flag { font-size: 14px; line-height: 1; }
.lang-code { font-weight: 600; letter-spacing: 0.02em; }

.lang-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 168px;
    margin: 0;
    padding: 4px;
    list-style: none;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    z-index: 1200;
}
/* Se abre al pasar el ratón y también con teclado (Tab) */
.lang-switcher:hover .lang-menu,
.lang-switcher:focus-within .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.lang-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 5px;
    color: #0f172a;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}
.lang-menu a:hover { background: #f1f5f9; }
.lang-menu a.active { background: #f8fafc; font-weight: 600; }

@media (max-width: 768px) {
    .lang-menu { right: auto; left: 0; }
    .lang-code { display: none; }
}
