:root {
    --primary-bg: #051d9780;
    /* 0.5 = 50% transparencia */
    /* Periwinkle/Lavender from the image */
    --text-white: #ffffff;
    --text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    --text-shadow-strong: 0 4px 12px rgba(0, 0, 0, 0.6);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-main: 'Outfit', 'Inter', sans-serif;
    --nav-height: 80px;
    --active-accent: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #082270;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===========================
   Header & Navigation
   =========================== */
header {
    background-color: var(--primary-bg);
    height: var(--nav-height);
    display: flex;
    align-items: center;
    padding: 0 3%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: visible !important;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
}

.logo-container,
.logo-container a {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-container img {
    height: 55px;
    width: auto;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.1));
    transition: var(--transition-smooth);
}

.logo-container img:hover {
    transform: scale(1.05);
}

/* Nav menu wrapper (desktop: positioned in header area, mobile: slide-in panel) */
/* NOTE: nav-menu is a sibling of header in the DOM to escape backdrop-filter stacking context */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (min-width: 769px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: var(--nav-height);
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 3%;
        z-index: 1001;
        pointer-events: none;
        justify-content: flex-end;
    }

    .nav-menu>* {
        pointer-events: auto;
    }

    .nav-menu nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0;
}

nav ul li {
    display: flex;
    align-items: center;
}

/* Separator between items */
nav ul li:not(:last-child)::after {
    content: "";
    height: 20px;
    width: 1px;
    background-color: rgba(255, 255, 255, 0.4);
    margin: 0 16px;
}

nav ul li a {
    color: var(--text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 1.2vw, 1.15rem);
    text-shadow: var(--text-shadow);
    transition: var(--transition-smooth);
    padding: 8px 4px;
    position: relative;
    white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
    opacity: 1;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--active-accent);
    transition: var(--transition-smooth);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Language Selector & Dropdown */
.lang-dropdown {
    position: relative;
    padding: 10px 0;
}

.lang-selector {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--text-white);
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    white-space: nowrap;
    transition: var(--transition-smooth);
}

.lang-selector span {
    text-shadow: var(--text-shadow);
}

.chevron-down {
    width: 20px;
    height: 20px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.lang-dropdown:hover .chevron-down {
    transform: rotate(180deg);
}

.lang-options {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    list-style: none;
    padding: 8px 0;
    min-width: 140px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.lang-dropdown:hover .lang-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-options .lang-option {
    display: block;
    width: 100%;
    padding: 10px 20px;
    color: #1a365d;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: background 0.2s ease;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
}

.lang-options .lang-option:hover {
    background: rgba(87, 111, 246, 0.1);
    color: #576ff6;
}

.lang-options .lang-option.active {
    color: #576ff6;
    font-weight: 700;
}

.lang-options .lang-option:first-child {
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.lang-options .lang-option:last-child {
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ===========================
   Hidden Checkbox (CSS-only menu state machine)
   =========================== */
.menu-toggle-input {
    display: none !important;
    visibility: hidden;
    position: absolute;
    pointer-events: none;
}

/* ===========================
   Hamburger Button / Label
   =========================== */
.hamburger {
    display: none;
    /* Hidden on desktop */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    text-decoration: none;
    outline: none;
    user-select: none;
}

.hamburger-line {
    display: block;
    width: 26px;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    pointer-events: none;
}

/* Hamburger X animation — driven by :checked (CSS only, no JS needed) */
#menu-toggle:checked~header .hamburger .hamburger-line:nth-child(1),
#menu-toggle:checked+header .hamburger .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

#menu-toggle:checked~header .hamburger .hamburger-line:nth-child(2),
#menu-toggle:checked+header .hamburger .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

#menu-toggle:checked~header .hamburger .hamburger-line:nth-child(3),
#menu-toggle:checked+header .hamburger .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Keep .active class selectors as JS fallback */
.hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Mobile overlay backdrop */
.nav-overlay {
    display: block;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1040 !important;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    cursor: pointer;
}

/* Overlay appears when checkbox is checked */
#menu-toggle:checked~.nav-overlay {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Also support .active class for JS fallback */
.nav-overlay.active {
    display: block !important;
    opacity: 1;
    pointer-events: auto;
}

/* Close button inside mobile menu */
.menu-close-btn {
    display: none;
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1060;
    line-height: 1;
    padding: 5px;
    -webkit-tap-highlight-color: transparent;
}

/* ===========================
   SPA App Container
   =========================== */
#app {
    margin-top: var(--nav-height);
}

/* ===========================
   Sections – Global
   Each section is its own contained block.
   Content must NOT bleed into neighbor sections.
   =========================== */
section {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-margin-top: var(--nav-height);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    padding: 60px 5%;
    box-sizing: border-box;
    width: 100%;
    overflow: hidden;
    /* CRITICAL: prevent content bleeding to neighbor sections */
    position: relative;
}

section h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    color: var(--primary-bg);
}

section p {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 800px;
}

section ul {
    list-style: none;
    text-align: left;
    display: inline-block;
}

section ul li {
    margin: 10px 0;
    font-size: 1.1rem;
}


/* ===========================
   Home Section
   =========================== */
#home {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image:
        linear-gradient(to bottom, rgba(5, 29, 151, 0.6), rgba(5, 29, 151, 0.4)),
        url('../images/background.webp');
    background-size: cover;
    -webkit-background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    padding: 60px 10%;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 40px;
    padding: 0;
    width: 100%;
}

.hero-logo {
    width: clamp(200px, 50%, 500px);
    max-width: 100%;
    margin-bottom: 20px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #ffffff;
    margin-bottom: 1.5rem;
    font-weight: 400;
    line-height: 1.6;
    text-shadow: var(--text-shadow-strong);
    margin-left: auto;
    margin-right: auto;
}

.hero-description:last-of-type {
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    background-color: #fca311;
    color: #111827;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #ffb703;
    transform: translateY(-3px);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

/* Home Stats */
.home-stats-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-top: 20px;
    width: 100%;
    max-width: 1100px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px 0 0;
}

.stat-box {
    flex: 1;
    padding: 10px 20px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box:last-child {
    border-right: none;
}

.stat-number {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 5px;
    line-height: 1;
    text-shadow: var(--text-shadow-strong);
}

.stat-text {
    font-size: clamp(0.8rem, 1.5vw, 1rem) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin: 0 !important;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* ===========================
   Warranty / Garantía de Éxito Section
   =========================== */
.warranty-section {
    background-color: #ffffff !important;
    padding: 60px 5% !important;
    min-height: calc(100vh - var(--nav-height)) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    text-align: left !important;
    box-sizing: border-box !important;
    width: 100% !important;
    overflow: visible !important;
    /* allow cards hover effect */
}

.warranty-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.warranty-header {
    margin-bottom: clamp(20px, 4vh, 50px);
    width: 100%;
}

.warranty-header .badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f4ff;
    color: #2b4cf1;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 20px;
    vertical-align: middle;
}

.warranty-header .dot {
    width: 6px;
    height: 6px;
    background-color: #2b4cf1;
    border-radius: 50%;
}

.warranty-header h1 {
    font-size: clamp(1.8rem, 4vw, 3.5rem);
    color: #111827;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    border-bottom: 4px solid #fcc43d;
    padding-bottom: 5px;
    text-align: left;
    vertical-align: middle;
}

.warranty-header p {
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    color: #4b5563;
    line-height: 1.7;
    margin: 0;
    text-align: left;
    max-width: 650px;
}

/* Grid Layout */
.warranty-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2vw, 30px);
    width: 100%;
}

/* Card Styling */
.warranty-card {
    border-radius: 16px;
    padding: clamp(24px, 4%, 40px);
    display: flex;
    flex-direction: column;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.warranty-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.warranty-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

.warranty-card:hover .card-icon {
    transform: scale(1.1) rotate(5deg);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 24px;
}

.card-blue {
    background: linear-gradient(135deg, #1e3a8a 0%, #1a365d 100%);
    box-shadow: 0 10px 30px rgba(26, 54, 93, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.card-green {
    background: linear-gradient(135deg, #10b981 0%, #065f46 100%);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.card-orange {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.card-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    flex-shrink: 0;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Removed individual card-icon backgrounds as they are now handled by generic card-icon and transparency */

.card-icon svg,
.card-icon i {
    width: 24px;
    height: 24px;
}

.custom-icon {
    width: 32px;
    height: 32px;
    background-color: white;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.warranty-card h3 {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #ffffff;
    margin-bottom: 0;
    font-weight: 700;
}

.warranty-card p {
    font-size: clamp(0.85rem, 1.3vw, 1rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: clamp(12px, 2vh, 20px);
    flex-grow: 1;
    text-align: left;
}

.card-list {
    list-style: none;
    padding: 0;
    margin: 0 0 clamp(16px, 2vh, 28px) 0;
    display: flex;
    flex-direction: column;
    gap: clamp(6px, 1vh, 10px);
}

.card-list.list-cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 10px;
    row-gap: 10px;
}

.card-list li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: #ffffff;
    font-weight: 500;
    margin: 0 !important;
}

.card-list li svg,
.card-list li i {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
    flex-shrink: 0;
}

.card-blue .card-list li svg,
.card-blue .card-list li i,
.card-green .card-list li svg,
.card-green .card-list li i,
.card-orange .card-list li svg,
.card-orange .card-list li i {
    color: white;
}

.btn-more {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    border: none;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    width: fit-content;
    margin-top: auto;
    background: transparent;
    cursor: pointer;
}

.card-blue .btn-more,
.card-green .btn-more,
.card-orange .btn-more {
    color: white;
}

.btn-more svg,
.btn-more i {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.btn-more:hover {
    opacity: 0.8;
}

.btn-more:hover svg,
.btn-more:hover i {
    transform: translateX(4px);
}

/* ===========================
   Page Transitions
   =========================== */
.page-fade {
    animation: fadeIn 0.5s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===========================
   Sobre Nosotros Section
   =========================== */
.sobre-nosotros-section {
    position: relative;
    padding: 0 !important;
    min-height: 92vh !important;
    color: white;
}

.sobre-nosotros-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    z-index: 0;
}

.sobre-nosotros-content {
    position: relative;
    z-index: 1;
    padding: 80px 5%;
}

.sobre-nosotros-content h1 {
    color: white !important;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 24px;
}

.sobre-nosotros-content p {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
    line-height: 1.8;
}

/* ===========================
   Clients Section - Infinite Carousels
   =========================== */
#experiencia {
    background-color: #ffffff !important;
    padding: 0 !important;
    display: block !important;
    min-height: auto !important;
    width: 100%;
    overflow: hidden;
}

.clients-franja {
    width: 100%;
    line-height: 0;
}

.clients-franja img {
    width: 100%;
    height: auto;
    display: block;
}

.clients-hero {
    background-image:
        url('../images/clientes_img.jpg');
    background-size: cover;
    background-position: center;
    padding: 50px 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #ffffff;
    position: relative;
}

.clients-hero h2 {
    font-size: clamp(1.6rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 700;
}

.clients-hero p {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin-bottom: 30px;
}


.clients-logos-container {
    padding: 90px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.clients-logos-container h2 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    color: #1a365d;
    margin-bottom: 40px;
    font-weight: 700;
    text-align: center;
    padding: 0 5%;
}

.carousel-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 30px;
    overflow: hidden;
    position: relative;
}

/* Masking edges for fade effect */
.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 10%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
}

.logos-slider {
    width: 100%;
    white-space: nowrap;
    display: flex;
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 0 30px;
}

.logos-track img {
    height: 120px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.logos-track img:hover {
    transform: scale(1.1);
}

/* Animation Left to Right */
.track-ltr {
    animation: scroll-ltr 40s linear infinite;
}

@keyframes scroll-ltr {
    0% {
        transform: translateX(-50%);
    }

    100% {
        transform: translateX(0);
    }
}

/* Animation Right to Left */
.track-rtl {
    animation: scroll-rtl 40s linear infinite;
}

@keyframes scroll-rtl {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* =========================================================
   CONTACTO SECTION
   ========================================================= */
#contacto {
    background-color: #ffffff;
    color: #111827;
    padding: 100px 5%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#contacto h1 {
    color: #082270;
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 20px;
    font-weight: 700;
}

#contacto p {
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 2vw, 1.15rem);
    max-width: 650px;
    margin: 0 auto 40px auto;
    font-weight: 300;
}

.contacto-form-container {
    width: 75%;
    max-width: 1200px;
    height: 1160px;
    /* Precise height to show the 'Enviar' button and legal text without scroll */
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin: 0 auto 25px auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contacto-form-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.btn-equipo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-equipo:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-equipo i {
    width: 16px;
    height: 16px;
    stroke-width: 1.5;
    transition: transform 0.3s ease;
}

.btn-equipo:hover i {
    transform: translateX(3px);
}



/* =========================================================
   VIDEO LOGO SECTION (above footer)
   ========================================================= */
.video-logo-section {
    position: relative;
    padding: 0 !important;
    min-height: 60vh !important;
    overflow: hidden;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.video-logo-section .sobre-nosotros-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */

/* ----- Tablet landscape & small desktops (≤ 1024px) ----- */
@media (max-width: 1024px) {
    .warranty-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .warranty-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        justify-self: center;
    }

    .home-stats-container {
        flex-wrap: wrap;
        gap: 0;
    }

    .stat-box {
        flex: 1 1 45%;
        text-align: center;
        border-right: none;
        padding: 20px 15px;
    }

    .stat-box:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-box:nth-child(1),
    .stat-box:nth-child(2) {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
}

/* ----- Tablet portrait & mobile (≤ 768px) — HAMBURGER MENU ----- */
@media (max-width: 768px) {
    :root {
        --nav-height: 65px;
    }

    header {
        height: var(--nav-height);
        padding: 0 4%;
        overflow: visible !important;
    }

    .logo-container img {
        height: 42px;
    }

    /* Show hamburger */
    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1100 !important;
    }

    /* Mobile Nav Panel — slides in from right */
    .nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: -100% !important;
        width: min(80%, 320px) !important;
        height: 100vh !important;
        height: 100dvh !important;
        background: linear-gradient(180deg, #0a1e6e 0%, #1a3399 100%) !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 70px 30px 40px !important;
        gap: 0 !important;
        z-index: 1050 !important;
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        overflow-y: auto !important;
        display: flex !important;
    }

    /* CSS-ONLY: open menu when checkbox is checked */
    #menu-toggle:checked~.nav-menu {
        right: 0 !important;
    }

    /* JS fallback: open menu when .open class is added */
    .nav-menu.open {
        right: 0 !important;
    }

    /* Show close button inside mobile menu */
    .menu-close-btn {
        display: block !important;
    }

    /* Nav link labels (close menu on click) */
    nav ul li label {
        display: block;
        width: 100%;
        cursor: pointer;
    }

    /* Vertical nav links in mobile panel */
    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    nav ul li:not(:last-child)::after {
        display: none;
    }

    nav ul li a {
        font-size: 1.15rem;
        padding: 18px 0;
        display: block;
        width: 100%;
    }

    /* Mobile language selector: always show options inline, no dropdown toggle */
    .lang-dropdown {
        margin-top: 30px;
        padding: 20px 0 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        width: 100%;
        position: static !important;
    }

    /* Hide the trigger selector (chevron label) on mobile */
    .lang-selector {
        display: none !important;
    }

    /* Show options always visible on mobile */
    .lang-options {
        position: static !important;
        display: flex !important;
        flex-direction: row !important;
        gap: 10px !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        background: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
    }

    .lang-options .lang-option {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-radius: 8px !important;
        text-align: center !important;
        color: rgba(255, 255, 255, 0.75) !important;
        padding: 12px 10px !important;
        font-size: 1rem !important;
        font-weight: 500 !important;
        cursor: pointer !important;
        transition: all 0.2s ease !important;
    }

    .lang-options .lang-option:hover,
    .lang-options .lang-option.active {
        background: rgba(255, 255, 255, 0.2) !important;
        color: white !important;
        border-color: rgba(255, 255, 255, 0.5) !important;
        font-weight: 700 !important;
    }

    /* Section adjustments for mobile */
    section {
        min-height: auto;
        /* Let content define height, not forced viewport */
        padding: 50px 5%;
    }

    #home {
        min-height: calc(100vh - var(--nav-height));
        padding: 40px 5%;
        background-attachment: scroll !important;
        background-repeat: no-repeat !important;
    }

    .hero-content {
        margin-bottom: 30px;
        padding: 0;
    }

    .hero-logo {
        width: 70%;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
        text-align: center;
        padding: 14px 24px;
    }

    .home-stats-container {
        flex-direction: row;
        flex-wrap: wrap;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding: 24px 0 0;
    }

    .stat-box {
        flex: 1 1 50%;
        width: 50%;
        text-align: center;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        padding: 15px 10px;
    }

    .stat-box:nth-child(odd) {
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat-box:nth-child(3),
    .stat-box:nth-child(4) {
        border-bottom: none;
    }

    /* Warranty section mobile */
    .warranty-section {
        padding: 40px 5% !important;
        align-items: center !important;
        min-height: auto !important;
    }

    .warranty-header {
        text-align: center;
        margin-bottom: 24px;
    }

    .warranty-header h1 {
        text-align: center;
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }

    .warranty-header p {
        text-align: center;
        font-size: 0.95rem;
    }

    .warranty-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .warranty-card:last-child {
        grid-column: auto;
        max-width: none;
    }

    .warranty-card {
        padding: 20px;
    }

    .card-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 14px;
    }

    /* Clients section mobile */
    .clients-hero {
        padding: 40px 5%;
    }

    .clients-hero p {
        margin-bottom: 24px;
    }

    .clients-logos-container {
        padding: 40px 0;
    }

    .clients-logos-container h2 {
        margin-bottom: 24px;
        font-size: clamp(1.5rem, 5vw, 2.2rem);
    }

    .logos-track {
        gap: 40px;
    }

    .logos-track img {
        height: 45px;
    }

    .carousel-container {
        gap: 20px;
    }

    #contacto {
        padding: 60px 5%;
        background-image: linear-gradient(rgba(5, 29, 151, 0.7), rgba(8, 34, 112, 0.8)), url('../images/contacto_img.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: scroll;
        color: white;
    }

    #contacto h1 {
        color: #ffffff;
        text-shadow: var(--text-shadow-strong);
    }

    #contacto p {
        color: rgba(255, 255, 255, 0.85);
        text-shadow: var(--text-shadow);
    }

    /* Video logo section mobile - banner style */
    .video-logo-section {
        min-height: 140px !important;
        height: 140px !important;
        background-color: #0d2e6b;
        /* Matching the brand blue */
    }

    /* Contact form iframe mobile */
    .contacto-form-container {
        width: 100%;
        height: 1160px;
        /* Precise height for tablet view */
    }

    .contacto-form-container iframe {
        min-height: auto;
        /* Remove previous min-height */
        height: 100%;
    }

    .contacto-banner {
        padding: 60px 5% 40px 5%;
    }

    .contacto-banner h1 {
        font-size: clamp(1.6rem, 5vw, 2.5rem);
    }
}

/* ----- Small phones (≤ 480px) ----- */
@media (max-width: 480px) {
    :root {
        --nav-height: 60px;
    }

    .logo-container img {
        height: 36px;
    }

    section {
        padding: 36px 4%;
    }

    #home {
        padding: 30px 4%;
    }

    .hero-logo {
        width: 80%;
    }

    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-text {
        font-size: 0.8rem !important;
    }

    .warranty-section {
        padding: 30px 4% !important;
    }

    .warranty-card {
        padding: 16px;
        border-radius: 16px;
    }

    .warranty-card h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    .btn-more {
        padding: 8px 18px;
        font-size: 0.85rem;
    }

    .clients-hero {
        padding: 30px 4%;
    }

    .logos-track img {
        height: 35px;
    }

    .logos-track {
        gap: 30px;
    }

    /* Video logo section small phones - banner style */
    .video-logo-section {
        min-height: 100px !important;
        height: 100px !important;
        background-color: #0d2e6b;
    }

    /* Contact form iframe small phones */
    .contacto-form-container {
        width: 100%;
        height: 1260px;
        /* Precise height for mobile view to eliminate excessive white space */
    }

    .contacto-form-container iframe {
        min-height: auto;
        height: 100%;
    }

    .contacto-banner h1 {
        font-size: clamp(1.4rem, 5vw, 2rem);
    }
}

/* ----- Tall screens: let sections breathe ----- */
@media (min-height: 900px) and (min-width: 769px) {
    section {
        min-height: calc(100vh - var(--nav-height));
    }
}

/* ===========================
   Interactive Warranty Section
   =========================== */
.hidden {
    display: none !important;
}

#warranty-interactive {
    width: 100%;
    animation: fadeIn 0.6s ease-out;
}

#warranty-interactive .warranty-header {
    margin-bottom: 20px;
}

#warranty-interactive .intro-text {
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.6;
    max-width: 800px;
    margin: 0;
}

.interactive-layout {
    display: grid;
    grid-template-columns: 3.5fr 1fr;
    grid-template-rows: auto 1fr;
    background: #ffffff;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    min-height: 550px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.interactive-main {
    display: contents;
}

.interactive-sidebar {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
    background: #ffffff;
    border-left: 1.5px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

/* Tab Content */
.tab-content {
    display: none;
}

.tab-content.active {
    display: contents;
}

.tab-header {
    grid-column: 1 / -1;
    grid-row: 1 / 2;
    padding: 24px 40px;
    position: relative;
}

.tab-header h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin: 0;
    font-weight: 700;
}

.tab-header h2::after {
    content: '';
    display: block;
    width: 320px;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    margin-top: 5px;
}

.tab-header.blue {
    background-color: #0d2e6b;
}

/* Darker blue as in image */
.tab-header.green {
    background-color: #10b981;
}

.tab-header.orange {
    background-color: #f59e0b;
}

.tab-body {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    padding: 24px 40px;
    background-color: #ffffff;
}

.tab-description {
    font-size: 0.95rem;
    color: #4b5563;
    margin-bottom: 20px !important;
    text-align: left !important;
    max-width: 100% !important;
    line-height: 1.6;
}

/* Mini Cards & Sequential Animation */
.sequential-cards {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: space-between;
}

.mini-card {
    background: #ffffff;
    border: 1.5px solid #1a365d;
    border-radius: 15px;
    padding: 30px 20px;
    flex: 1;
    min-width: 180px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.cono-icon {
    width: 75px;
    height: 75px;
    background-color: currentColor;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    margin-bottom: 16px;
    transition: background-color 0.3s ease;
}

.mini-card p {
    font-size: 1.1rem !important;
    color: inherit !important;
    margin: 0 !important;
    text-align: center !important;
    font-weight: 500;
    line-height: 1.3;
}

.mini-card strong {
    display: block;
    margin-bottom: 4px;
    font-weight: 800;
    color: inherit;
}

/* Specific colors for Conocimiento tab with dynamic sequence */
.tab-content#tab-conocimiento .mini-card {
    border: 1.5px solid #1a365d;
    background-color: white;
    /* default state after animation */
    color: #111827;
}

/* Animations Trigger - Conocimiento specific sequence (Occurs once, sequential 2s gap) */
.tab-content#tab-conocimiento.active .mini-card:nth-child(1) {
    animation: entranceCardOnce 2s ease-out forwards 0.2s;
}

.tab-content#tab-conocimiento.active .mini-card:nth-child(2) {
    animation: entranceCardOnce 2s ease-out forwards 2.2s;
}

.tab-content#tab-conocimiento.active .mini-card:nth-child(3) {
    animation: entranceCardOnce 2s ease-out forwards 4.2s;
}

@keyframes entranceCardOnce {
    0% {
        transform: translateY(20px);
        opacity: 0;
        background-color: #0d2e6b;
        color: white;
        border-color: #0d2e6b;
    }

    35% {
        transform: translateY(0);
        opacity: 1;
        background-color: #0d2e6b;
        color: white;
        border-color: #0d2e6b;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
        background-color: white;
        color: #111827;
        border-color: #1a365d;
    }
}

/* Default generic pop animation for other tabs (Occurs once, sequential 2s gap) */
.tab-content:not(#tab-conocimiento).active .sequential-cards>*:nth-child(1) {
    animation: slideUpInOnce 1.5s ease-out forwards 0.2s;
}

.tab-content:not(#tab-conocimiento).active .sequential-cards>*:nth-child(2) {
    animation: slideUpInOnce 1.5s ease-out forwards 2.2s;
}

.tab-content:not(#tab-conocimiento).active .sequential-cards>*:nth-child(3) {
    animation: slideUpInOnce 1.5s ease-out forwards 4.2s;
}

@keyframes slideUpInOnce {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sidebar Triggers */
.tab-trigger {
    background: none;
    border: none;
    border-bottom: 1px solid #e5e7eb;
    padding: 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    flex: 1;
}

.tab-trigger:hover {
    background: #f9fafb;
}

.trigger-icon.square {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trigger-icon.blue {
    background-color: #0d2e6b;
}

.trigger-icon.green {
    background-color: #10b981;
}

.trigger-icon.orange {
    background-color: #f59e0b;
}

.tab-trigger.active {
    display: none !important;
}

.trigger-icon i,
.trigger-custom-icon {
    color: white;
    width: 45px;
    height: 45px;
}

.trigger-custom-icon {
    background-color: white;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.trigger-label {
    font-weight: 700;
    font-size: 1.2rem;
    color: #111827;
    border-bottom: 2px solid transparent;
}

.trigger-con .trigger-label {
    border-color: #0d2e6b;
}

.trigger-exp .trigger-label {
    border-color: #10b981;
}

.trigger-inn .trigger-label {
    border-color: #f59e0b;
}


.btn-back-grid {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 40px;
    background: rgba(255, 255, 255, 0.05);
    /* Very subtle background */
    border: 1px solid rgba(255, 255, 255, 0.712);
    /* Light white border */
    cursor: pointer;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 8px 16px;
    /* Added horizontal padding for better button look */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    /* Discreet shadow */
    transition: all 0.3s ease;
    z-index: 10;
}

.btn-back-grid:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-back-grid i,
.btn-back-grid svg {
    width: 22px;
    height: 22px;
    color: white !important;
    stroke: white !important;
    stroke-width: 2.5px;
    transition: transform 0.3s ease;
}

.btn-back-grid span {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.btn-back-grid:hover i {
    transform: translateX(-5px);
}

/* ===========================
   Experiencia Tab Styles
   =========================== */
.exp-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
    text-align: left;
}

.exp-layout {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 20px;
}

.exp-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1.5px solid #111827;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.exp-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px 10px;
    border-right: 1px solid #111827;
    border-bottom: 1px solid #111827;
}

/* Adjustments for different screen sizes */
@media (max-width: 1024px) {
    .exp-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .exp-grid-item:nth-child(4n) {
        border-right: 1px solid #111827;
    }

    .exp-grid-item:nth-child(3n) {
        border-right: none;
    }

    .exp-grid-item:nth-last-child(-n+4) {
        border-bottom: 1px solid #111827;
    }

    .exp-grid-item:nth-last-child(-n+3) {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .exp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exp-grid-item:nth-child(3n) {
        border-right: 1px solid #111827;
    }

    .exp-grid-item:nth-child(2n) {
        border-right: none;
    }

    .exp-grid-item:nth-last-child(-n+3) {
        border-bottom: 1px solid #111827;
    }

    .exp-grid-item:nth-last-child(-n+2) {
        border-bottom: none;
    }
}

.exp-icon-mask {
    width: 45px;
    height: 45px;
    background-color: #111827;
    -webkit-mask-size: contain;
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-size: contain;
    mask-position: center;
    mask-repeat: no-repeat;
    margin-bottom: 10px;
}

.exp-grid-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: #374151;
    line-height: 1.2;
    word-break: break-word;
    hyphens: auto;
}


/* ===========================
   Innovacion Tab Styles
   =========================== */
.innovacion-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* Ensure items align at top */
    gap: 30px;
    margin-top: 50px;
    flex-wrap: nowrap;
}

.innovacion-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 15px;
}

.innovacion-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -15px;
    top: 5%;
    height: 85%;
    width: 2.5px;
    background-color: #000000;
}

.innova-icon {
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    border: 1px solid #111827;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.innova-icon img {
    /* Set icon size filling the container */
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.innovacion-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin-bottom: 15px;
    line-height: 1.1;
}

.innovacion-item p {
    font-size: 0.9rem;
    color: #6b7280;
    line-height: 1.5;
}


/* Responsive adjustments */
@media (max-width: 991px) {
    .interactive-layout {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
    }

    .tab-body {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
    }

    .interactive-sidebar {
        grid-column: 1 / -1;
        grid-row: 3 / 4;
        flex-direction: row;
        border-left: none;
        border-top: 1.5px solid #e5e7eb;
    }

    .tab-trigger {
        border-bottom: none;
        border-right: 1px solid #e5e7eb;
        padding: 15px 10px;
    }

    .tab-header,
    .tab-body {
        padding: 20px !important;
    }

    .btn-back-grid {
        right: 20px;
        padding: 8px 12px;
        gap: 8px;
    }

    .btn-back-grid img {
        width: 22px;
        height: 22px;
    }

    .exp-layout {
        flex-direction: column;
        gap: 60px;
    }

    .exp-grid {
        width: 100%;
        margin: 0;
    }

    .exp-diagram-container {
        width: 100%;
        min-height: 350px;
    }
}

@media (max-width: 768px) {
    .exp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .exp-grid-item {
        border-right: 1px solid #111827 !important;
        border-bottom: 1px solid #111827 !important;
        padding: 15px 5px !important;
        min-width: 0;
        /* Prevents overflow from long words */
    }

    .exp-grid-item:nth-child(even) {
        border-right: none !important;
    }

    .exp-grid-item:nth-last-child(-n+2) {
        border-bottom: none !important;
    }

    .tab-header h2 {
        font-size: 1.6rem;
    }

    .tab-header h2::after {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .pie-wrapper {
        width: 180px;
        height: 180px;
    }

    .center-node {
        width: 100px;
        height: 100px;
        font-size: 0.8rem;
    }

    .node {
        width: 90px !important;
        padding: 5px 10px;
        font-size: 0.65rem;
    }

    .btn-back-grid {
        right: 15px;
        padding: 4px 8px;
        gap: 6px;
        border-radius: 6px;
    }

    .btn-back-grid img {
        width: 18px;
        height: 18px;
    }

    .tab-header h2 {
        font-size: 1.4rem;
        padding-right: 80px;
        /* Space for the button */
    }
}

@media (max-width: 991px) {
    .innovacion-grid {
        flex-direction: column;
        gap: 40px;
    }

    .innovacion-item {
        padding: 0;
    }

    .innovacion-item:not(:last-child)::after {
        right: auto;
        bottom: -20px;
        top: auto;
        width: 80%;
        height: 2.5px;
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .innova-icon {
        width: 100px;
        height: 100px;
    }

    .innovacion-item h3 {
        font-size: 1.4rem;
    }
}

/* ===========================
   Contacto Section
   =========================== */
.contacto-section {
    padding: 0 !important;
    /* override the global section padding */
    display: block !important;
    /* override the flex display */
    min-height: auto !important;
}

.contacto-banner {
    width: 100%;
    background-image:
        linear-gradient(to bottom, rgba(5, 29, 151, 0.7), rgba(5, 29, 151, 0.5)),
        url('../images/contacto_img.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 5% 60px 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.contacto-banner h1 {
    color: #ffffff !important;
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 20px;
    text-shadow: var(--text-shadow-strong);
    border-bottom: none !important;
}

.contacto-banner p {
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    max-width: 800px;
    text-shadow: var(--text-shadow);
    margin: 0 auto;
}

.contacto-form-container {
    width: 100%;
    display: block;
    background-color: #ffffff;
}

.contacto-form-container iframe {
    width: 100%;
    min-height: 850px;
    /* Default height for the form */
    border: none;
    display: block;
}


.btn-equipo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: transparent;
    color: #1a365d;
    border: 2px solid #1a365d;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-equipo:hover {
    background-color: #1a365d;
    color: #ffffff;
}



/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
    background-color: #0b1426;
    color: #f3f4f6;
    padding-top: 60px;
    font-family: var(--font-main);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.footer-col ul li {
    font-size: 0.95rem;
    color: #9ca3af;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
}

.footer-col ul li a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-col ul li i,
.footer-col ul li svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 3px;
    opacity: 0.7;
}

.footer-col ul li.address {
    flex-direction: column;
    gap: 4px;
}

.footer-col ul li.address span {
    font-size: 0.8rem;
    opacity: 0.6;
    margin-bottom: 2px;
}

.footer-col-logo {
    display: flex;
    flex-direction: column;
}

.footer-logo-lhp {
    content: url('../images/Logo_LHP.png');
    height: 80px;
    width: auto;
    margin-bottom: 15px;
    align-self: flex-start;
}

.footer-logo {
    content: url('../images/logo-masin-demo.png');
    height: 60px;
    width: auto;
    margin-bottom: 25px;
    align-self: flex-start;
}

.footer-col-logo p {
    font-size: 1rem;
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 350px;
    text-align: left;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.social-links a img {
    width: 40px;
    height: auto;
    filter: brightness(0) invert(1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 24px 0;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6b7280;
}

.footer-bottom-container p {
    margin: 0;
}

.footer-legal {
    display: flex;
    gap: 20px;
}

.footer-legal a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #ffffff;
}

@media (max-width: 991px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-col-logo {
        grid-column: 1 / -1;
        align-items: center;
        text-align: center;
        margin-top: 20px;
    }

    .footer-logo,
    .footer-logo-lhp {
        align-self: center;
    }

    .footer-col-logo p {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-col ul {
        align-items: center;
        text-align: center;
    }

    .footer-col h3 {
        margin-bottom: 20px;
    }

    .footer-bottom-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ZOHO OVERRIDES */
#main-logo {
    content: url('../images/logo-masin-demo.png');
}

.hero-logo {
    content: url('../images/Logo_LHP.png');
}

.clients-franja img {
    content: url('../images/clientes_img.jpg');
}

.btn-back-grid img:nth-child(1) {
    content: url('../images/experiencia.png');
}

.btn-back-grid img:nth-child(2) {
    content: url('../images/conocimiento.png');
}

.btn-back-grid img:nth-child(3) {
    content: url('../images/innovacion.png');
}

.innovacion-item:nth-child(1) .innova-icon img {
    content: url('../images/innova_incre_icon.png');
}

.innovacion-item:nth-child(2) .innova-icon img {
    content: url('../images/innova_prod_icon.png');
}

.innovacion-item:nth-child(3) .innova-icon img {
    content: url('../images/innova_process_ico.png');
}

.logos-track.track-ltr img:nth-child(1),
.logos-track.track-ltr img:nth-child(7) {
    content: url('../images/geb_logo.png');
}

.logos-track.track-ltr img:nth-child(2),
.logos-track.track-ltr img:nth-child(8) {
    content: url('../images/pre_logo.png');
}

.logos-track.track-ltr img:nth-child(3),
.logos-track.track-ltr img:nth-child(9) {
    content: url('../images/sena_logo.png');
}

.logos-track.track-ltr img:nth-child(4),
.logos-track.track-ltr img:nth-child(10) {
    content: url('../images/logo_bogota.png');
}

.logos-track.track-ltr img:nth-child(5),
.logos-track.track-ltr img:nth-child(11) {
    content: url('../images/icfes_logo.png');
}

.logos-track.track-ltr img:nth-child(6),
.logos-track.track-ltr img:nth-child(12) {
    content: url('../images/ponal_logo.png');
}

.logos-track.track-rtl img:nth-child(1),
.logos-track.track-rtl img:nth-child(6) {
    content: url('../images/telefonica_logo.png');
}

.logos-track.track-rtl img:nth-child(2),
.logos-track.track-rtl img:nth-child(7) {
    content: url('../images/ocensa_logo.png');
}

.logos-track.track-rtl img:nth-child(3),
.logos-track.track-rtl img:nth-child(8) {
    content: url('../images/idb_logo.png');
}

.logos-track.track-rtl img:nth-child(4),
.logos-track.track-rtl img:nth-child(9) {
    content: url('../images/ani_logo.png');
}

.logos-track.track-rtl img:nth-child(5),
.logos-track.track-rtl img:nth-child(10) {
    content: url('../images/unal_logo.png');
}

.social-links a:nth-child(1) img {
    content: url('../images/Linkedin.png');
}

.social-links a:nth-child(2) img {
    content: url('../images/Instagram.png');
}

.social-links a:nth-child(3) img {
    content: url('../images/Youtube.png');
}

.social-links a:nth-child(4) img {
    content: url('../images/Facebook.png');
}

.social-links a:nth-child(5) img {
    content: url('../images/whatsapp.png');
}

/* .footer-logo moved to top section for better organization */

/* Generated Mask Icons */
[data-mask-icon="conocimiento"] {
    -webkit-mask-image: url('../images/conocimiento.png') !important;
    mask-image: url('../images/conocimiento.png') !important;
}

[data-mask-icon="experiencia"] {
    -webkit-mask-image: url('../images/experiencia.png') !important;
    mask-image: url('../images/experiencia.png') !important;
}

[data-mask-icon="innovacion"] {
    -webkit-mask-image: url('../images/innovacion.png') !important;
    mask-image: url('../images/innovacion.png') !important;
}

[data-mask-icon="cono_1"] {
    -webkit-mask-image: url('../images/cono_1.png') !important;
    mask-image: url('../images/cono_1.png') !important;
}

[data-mask-icon="cono_2"] {
    -webkit-mask-image: url('../images/cono_2.png') !important;
    mask-image: url('../images/cono_2.png') !important;
}

[data-mask-icon="cono_3"] {
    -webkit-mask-image: url('../images/cono_3.png') !important;
    mask-image: url('../images/cono_3.png') !important;
}

[data-mask-icon="expe_icon"] {
    -webkit-mask-image: url('../images/expe_icon.png') !important;
    mask-image: url('../images/expe_icon.png') !important;
}

[data-mask-icon="mark_icon"] {
    -webkit-mask-image: url('../images/mark_icon.png') !important;
    mask-image: url('../images/mark_icon.png') !important;
}

[data-mask-icon="tech_icon"] {
    -webkit-mask-image: url('../images/tech_icon.png') !important;
    mask-image: url('../images/tech_icon.png') !important;
}

[data-mask-icon="salud_icon"] {
    -webkit-mask-image: url('../images/salud_icon.png') !important;
    mask-image: url('../images/salud_icon.png') !important;
}

[data-mask-icon="com_icon"] {
    -webkit-mask-image: url('../images/com_icon.png') !important;
    mask-image: url('../images/com_icon.png') !important;
}

[data-mask-icon="logi_icon"] {
    -webkit-mask-image: url('../images/logi_icon.png') !important;
    mask-image: url('../images/logi_icon.png') !important;
}

[data-mask-icon="explora_icon"] {
    -webkit-mask-image: url('../images/explora_icon.png') !important;
    mask-image: url('../images/explora_icon.png') !important;
}

[data-mask-icon="ia_icon"] {
    -webkit-mask-image: url('../images/ia_icon.png') !important;
    mask-image: url('../images/ia_icon.png') !important;
}

[data-mask-icon="est_innov_icon"] {
    -webkit-mask-image: url('../images/est_innov_icon.png') !important;
    mask-image: url('../images/est_innov_icon.png') !important;
}

[data-mask-icon="ing_icon"] {
    -webkit-mask-image: url('../images/ing_icon.png') !important;
    mask-image: url('../images/ing_icon.png') !important;
}

[data-mask-icon="admin_icon"] {
    -webkit-mask-image: url('../images/admin_icon.png') !important;
    mask-image: url('../images/admin_icon.png') !important;
}

[data-mask-icon="mult_icon"] {
    -webkit-mask-image: url('../images/mult_icon.png') !important;
    mask-image: url('../images/mult_icon.png') !important;
}


.sobre-nosotros-video {
    background-image: url('../images/video_logo.mp4');
}

#footer-video-logo {
    background-image: url('../images/video_logo.mp4');
}