:root {
    /* Colors */
    --color-primary: #001D3A;
    /*#001537*/
    /* Dark Slate/Navy */
    --color-secondary: #000000;
    /* Deep Black for specific contrasts */
    --color-highlight: #03bae0;
    /* Bright Cyan */
    --color-accent: #ffd700;
    /* Yellow/Gold */
    --color-text-dark: #202020;
    --color-text-light: #ffffff;
    --color-bg-light: #f4f4f4;
    --color-form-bg: rgb(221, 238, 255);
    /* Light blue form background */

    /* Typography */
    --font-heading: "Libre Franklin", sans-serif;
    --font-body: 'Poppins', sans-serif;

    /* Spacing */
    --container-padding: 2rem;
    --section-spacing: 5rem;

    /* Motion System (from readme.md) */
    --duration-micro: 80ms;
    /* Click feedback */
    --duration-hover: 150ms;
    /* Hover, small interactions */
    --duration-reveal-sm: 220ms;
    /* Small elements reveal */
    --duration-reveal-lg: 300ms;
    /* Large sections reveal */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    /* Ease Out */
    --ease-click: cubic-bezier(0.4, 0, 0.2, 1);

    /* Reveal Defaults */
    --translate-y-distance: 20px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-dark);
    line-height: 1.6;
    background-color: #fff;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}

main {
    overflow-x: hidden;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-hover) var(--ease-out);
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1420px !important;
    /* Cap at 1420px to maintain premium wide feel with gutters */
    margin: 0 auto;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    /* Increased horizontal padding for pill shape */
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    /* Fully Rounded / Pill Shape */
    cursor: pointer;
    transition:
        transform var(--duration-hover) var(--ease-out),
        box-shadow var(--duration-hover) var(--ease-out),
        background-color var(--duration-hover) var(--ease-out);
    border: none;
}

.color-primary {
    color: var(--color-primary) !important;
}

.btn-primary {
    background-color: var(--color-highlight);
    color: var(--color-text-light);
}

.btn-primary:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.3);
}

.btn-primary:active {
    transform: scale(0.97);
}

.text-highlight {
    color: var(--color-highlight) !important;
}

.max-w-600 {
    max-width: 600px;
}

.fw-black {
    font-weight: 900 !important;
}

.shadow-2xl {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5) !important;
}

.section {
    padding: var(--section-spacing) 0;
    position: relative;
    overflow-x: hidden;
    scroll-margin-top: 80px;
}

@media (min-width: 992px) {
    .section {
        scroll-margin-top: 50px;
        /* Match contracted header height */
    }
}

/* Motion logic now handled by WOW.js + Animate.css */
:root {
    --translate-y-distance: 40px;
}

/* ============================
   Header Styles
   ============================ */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    /* Subtle shadow */
    height: 80px;
    display: flex;
    align-items: center;
    backdrop-filter: blur(0px);
    /* Define start state */
    transition:
        background-color 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        backdrop-filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Compensate for fixed header so content isn't hidden behind it */
body {
    padding-top: 80px;
}

.hamburger-menu {
    display: none;
    /* Hidden on desktop */
}

/* Scrolled Header State - Global (Mobile + Desktop) */
#main-header.scrolled {
    background-color: rgba(26, 43, 60, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#main-header.scrolled .logo img,
#main-header.scrolled .hamburger-menu {
    filter: brightness(0) invert(1);
}

#main-header.scrolled .logo-graphic,
#main-header.scrolled .logo-text,
#main-header.scrolled .lang-selector,
#main-header.scrolled .main-nav ul li a {
    color: #fff;
}

@media (min-width: 992px) {
    #main-header.scrolled {
        height: 65px;
    }

    #main-header.scrolled .logo-graphic {
        font-size: 1.45rem;
    }

    #main-header.scrolled .logo-text {
        font-size: 0.65rem;
    }

    #main-header.scrolled .main-nav ul li a {
        padding: 0 1.2rem;
        font-size: 1.2rem;
    }
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    /* Allow children to fill height */
    width: 100%;
    height: 100%;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.logo-graphic {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-primary);
    line-height: 1;

    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

.logo {
    width: 100%;
    max-width: 100px;
}

.logo img {
    transition: filter 0.4s ease;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-top: 2px;
    text-transform: uppercase;
    color: var(--color-primary);
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.4s ease;
}

#main-header .lang-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 100%;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    color: var(--color-primary);
    transition: color 0.4s ease;
    padding-left: 1.5rem;
    white-space: nowrap;
    margin-top: -15px;
}

#main-header .lang-selector i {
    color: var(--color-accent);
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

#main-header .lang-selector:hover i {
    transform: translateY(2px);
}

.main-nav {
    height: 100%;
    display: flex;
    align-items: center;
}

.main-nav ul {
    display: flex;
    gap: 0;
    /* Remove gap to make backgrounds touch if needed, or keep for spacing */
    height: 100%;
}

.main-nav ul li {
    height: 100%;
    display: block;
}

/* Nav Link Hover Effect (Full Height Fill) */
.main-nav a {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--color-primary);
    position: relative;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    /* Stack real text and hidden spacer */
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
    transition: color 0.3s ease, font-weight 0.3s ease, font-size 0.3s ease;
}

.main-nav a::after {
    display: block;
    content: attr(data-text);
    font-weight: 700;
    height: 0;
    overflow: hidden;
    visibility: hidden;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background-color: var(--color-highlight);
    /* Cyan fill */
    z-index: -1;
    transition: height 0.3s ease-out;
}

.main-nav ul li a.active {
    color: #fff !important;
}

.main-nav ul li a.active::before {
    height: calc(100% - 12px);
    /* Active state matching hover gap */
}

.main-nav a:hover {
    color: #fff;
    /* White text on hover */
}

.main-nav a:hover::before,
.main-nav a.active::before {
    height: calc(100% - 12px);
    /* Leave gap at bottom for visual separation */
}

.main-nav a.active {
    color: #fff !important;
    font-weight: 700;
    /* Bold active state */
}

/* Remove old underline effect */
.main-nav a::after {
    display: none;
}

/* Responsive adjustments would go here if needed */

/* ============================
   Hero Section
   ============================ */
.hero-section {
    position: relative;
    min-height: calc(75vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #26353f;
    overflow: hidden;
    padding: 100px 0px 0px 0px;
}

/* Hero Background Layer System for Ken Burns Effect */
.hero-bg-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    will-change: transform;
    transform: translateY(var(--parallax-y, 0px));
}

.hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    /* Default hidden state for the reveal animation (hidden to the left) */
    clip-path: inset(0 100% 0 0);
    transform: scale(1);
    z-index: 0;
}

/* The actively visible slide */
.hero-bg-layer.active {
    clip-path: inset(0 0 0 0);
    z-index: 1;
    animation: kenBurnsZoom 8s linear forwards;
}

/* Slide that is transitioning IN over the active one */
.hero-bg-layer.transitioning {
    z-index: 2;
    /* Sits on top while its clip-path animates via JS */
}

@keyframes kenBurnsZoom {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.15);
        /* Slow 15% zoom in */
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(180deg, rgba(0, 28, 57, 0.67) 0%, rgba(0, 28, 57, 0.67) 100%); */
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-center-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0;
}

/* Isolated logo zone */
.hero-logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Isolated text + button zone */
.hero-text-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    will-change: transform, opacity;
    gap: 1.5rem;
    padding: 1.5rem 0 3rem;
}

/* Hero Half-Moon Logo */
.hero-moon {
    position: relative;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    margin-top: max(-40vh, -280px);
    /* Limit negative margin to keep moon visible on tall screens */
    animation: moonPulse 4s ease-in-out infinite;
    overflow: hidden;
}

/* Semi-transparent circular fill */
.hero-moon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: 0;
}

.hero-moon-logo {
    position: relative;
    z-index: 1;
    top: -2vh;
    width: 60%;
    max-width: 190px;
    height: auto;
    object-fit: contain;
}

@keyframes moonPulse {

    0%,
    100% {
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.08);
    }

    50% {
        box-shadow: 0 0 80px rgba(0, 180, 216, 0.15), 0 0 120px rgba(0, 180, 216, 0.06);
    }
}

.hero-center-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    font-weight: 900;
    margin-bottom: 0;

    text-transform: uppercase;
    max-width: clamp(400px, 80vw, 800px);
}

.btn-hero {
    background-color: var(--color-highlight);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 30px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
    text-decoration: none;
}

.btn-hero:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
    background-color: #009ec3;
}

.btn-hero i {
    color: #ffeb3b;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
    transform: rotate(45deg);
}

.btn-hero:hover i {
    transform: rotate(45deg) translate(5px, -5px);
}

/* Button arrow spacing */
.btn-arrow {
    margin-left: 8px;
    font-size: 1.2rem;
    line-height: 1;
}

/* ============================
   About Section
   ============================ */
/* ============================
   About Section
   ============================ */
.about-section {
    background-image: url('../assets/images/bg_nosotros.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding: 0;
}

.about-section .container {
    max-width: 100%;
    padding: 0;
}

.about-section .row {
    margin: 0;
    align-items: stretch;
    min-height: 80vh;
}

/* Layout handled by Bootstrap Grid */

.about-image {
    position: relative;
    z-index: 10;
    padding: 0 !important;
}

/* The inner image wrapper — position is fully controlled by JS */
.about-image-inner {
    width: 100%;
    z-index: 10;
}

.image-mask {
    position: relative;
    width: 100%;
    overflow: visible;
    z-index: 1;
}

.img-mask-bg {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin-bottom: 30px;
}

@media (max-width: 991px) {
    .about-section {
        padding-top: 0;
    }
}

/* Cleaned up duplicate .img-mask-bg */

/* Layout handled by Bootstrap Grid */

.about-content {
    padding: calc(var(--section-spacing) + 60px) 5% var(--section-spacing) 2%;
}

.about-content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--color-primary);
    text-transform: none;
}

/* Lang selector handled in header styles */

.about-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
    /* Slightly softer for secondary text */
    margin-bottom: 2rem;
    font-weight: 400;
}

.about-content .fs-2 {
    line-height: 1.3;
    /* Adjusted for larger text */
}

/* Accordion Styles */
.accordion {
    border-radius: 0px !important;
    margin-top: 3rem;
}

.accordion-item {
    border: none;
    border-bottom: 1px solid #03bae0;
    /* Light cyan border */
    overflow: hidden;
    background: transparent;
}

.accordion-header {
    padding: 1.25rem 1rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}


.icon-box {
    width: 48px;
    height: 48px;
    background-color: var(--color-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    font-size: 1.2rem;
    color: #fff;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.accordion-item.active .icon-box {
    background-color: var(--color-highlight);
    color: var(--color-accent);
    transform: scale(1.05);
}

.accordion-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 500;
    flex-grow: 1;
    color: var(--color-primary);
    transition: all 0.3s var(--ease-out);
}

.accordion-header:hover h3,
.accordion-item.active .accordion-header h3 {
    color: var(--color-highlight);
}

.accordion-header:hover h3 {
    transform: translateX(8px);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1rem 0 5.5rem;
}

.accordion-item.active .accordion-body {
    max-height: 420px;
    padding-bottom: 1.5rem;
}

.accordion-body p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-dark);
    margin-bottom: 0;
}

/* ============================
   Stats Strip
   ============================ */
.stats-strip {
    background: var(--color-highlight);
    padding: 3.5rem 0;
    position: relative;
    overflow: hidden;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 5.5rem !important;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    letter-spacing: 1px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 1.35rem !important;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    text-transform: none;
}

@media (min-width: 768px) {
    .stat-number {
        font-size: 1.8rem;
    }

    .stat-label {
        font-size: 1.45rem !important;
    }
}

@media (min-width: 992px) {
    .stat-number {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 1.45rem !important;
    }
}

.stats-image {
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.stats-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.stats-image:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .stats-grid {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .stat-item {
        /* let bootstrap handle width */
        margin-bottom: 2rem;
    }

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

    .stat-label {
        font-size: 0.8rem;
    }
}

/* ============================
   Services Section
   ============================ */
.services-section {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
}

.services-fixed-bg {
    position: relative;
    height: 65vh;
    /* Altura de la ventana para ver el video */
    width: 100%;
    clip-path: inset(0);
    z-index: 5;
    background-color: #000;
}

.services-hero-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: block;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
}

.services-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 29, 58, 0.4) 0%, rgba(0, 29, 58, 0.2) 100%);
    z-index: 1;
}

/* Part 2: Solid primary blue content area */
.services-content-area {
    background-color: var(--color-primary);
    padding: 5rem 0 5rem;
    position: relative;
}

.services-section h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
}

/* Services Accordion */
.services-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

/* White cards with irregular rounded corners */
.srv-accordion-item {
    background: #fff;
    border-radius: 12px 4px 12px 4px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
}

.srv-accordion-item:hover {
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
}

.srv-accordion-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.srv-accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.srv-accordion-header::before {
    display: none;
}

.srv-name {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.srv-accordion-item.active .srv-name {
    color: var(--color-highlight);
}

/* Circle +/- Toggle */
.srv-toggle {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-highlight);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.srv-toggle::before,
.srv-toggle::after {
    content: '';
    position: absolute;
    background: var(--color-highlight);
    transition: all 0.3s ease;
}

/* Horizontal bar (always visible = minus) */
.srv-toggle::before {
    width: 12px;
    height: 2px;
}

/* Vertical bar (visible = plus, hidden = minus) */
.srv-toggle::after {
    width: 2px;
    height: 12px;
}

/* When active, hide vertical bar to show minus */
.srv-accordion-item.active .srv-toggle::after {
    transform: rotate(90deg);
    opacity: 0;
}

.srv-accordion-item.active .srv-toggle {
    background: var(--color-highlight);
    border-color: var(--color-highlight);
}

.srv-accordion-item.active .srv-toggle::before,
.srv-accordion-item.active .srv-toggle::after {
    background: #fff;
}

.srv-accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.srv-accordion-item.active .srv-accordion-body {
    max-height: 200px;
}

.srv-accordion-body p {
    padding: 0 1.25rem 1.25rem;
    font-size: 1rem;
    color: var(--color-text-dark);
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .services-banner {
        height: 200px;
    }

    .services-section {
        background-attachment: scroll;
    }

    .srv-name {
        font-size: 0.8rem;
    }

    .srv-accordion-header {
        padding: 0.85rem 1rem;
    }

    .services-section h2 {
        font-size: 2rem !important;
    }

    .services-content-area .row {
        --bs-gutter-y: 0;
    }
}




/* ============================
   Industries Section
   ============================ */
.industries-section {
    position: relative;
    background-image: url('../assets/images/bg_industrias.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.industries-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(26, 43, 60, 0.9) 100%); */
    z-index: 1;
}

.industries-section h2 {
    font-size: 2.8rem;
    color: #fff;
    text-transform: none;
}

.industry-box {
    background-color: rgba(255, 255, 255, .3);
    /* opacity: 0.302; */
    /* background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px); */
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* border-radius: 8px; */
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 170px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.industry-box:hover img {
    filter: opacity(0.5) drop-shadow(0 0 0 var(--color-highlight));
}

.industry-box:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.industry-box i {
    font-size: 2.5rem;
    color: #fff;
}

.industry-box span {
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    text-align: center;
}

.parallax-content {
    /* Overlay effects here eventually */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ============================
   Allies Section
   ============================ */
.allies-section {
    background-color: var(--color-highlight);
    color: #fff;
    position: relative;
    /* z-index: 2; */
    padding-bottom: 80px;
    margin-bottom: -240px;
}

.allies-section h2 {
    font-size: 2.8rem;
    color: #fff;
    font-weight: 700;

}

.ally-card {
    display: flex;
    overflow: visible;
    border-radius: 30px;
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin-bottom: 30px;
    background: transparent;
}

/* Offset gold border matching card shape behind it (offset bottom-left) */
.ally-card::before {
    content: '';
    position: absolute;
    top: 30%;
    left: -5%;
    width: 105%;
    height: 70%;
    background: var(--color-accent);
    border-radius: 20px;
    z-index: 0;
    transform: translate(0px, 10px);
    transition: transform 0.4s var(--ease-out);
}

@media (min-width: 768px) {
    .ally-card::before {
        top: 40%;
        left: 0;
        width: 100%;
        height: 60%;
        transform: translate(-10px, 10px);
    }
}

.allies-section {
    position: relative;
    /* z-index: 10; */
}

.allies-section .row>[class*="col"] {
    overflow: visible;
    display: flex;
    justify-content: center;
}

.ally-card {
    position: relative;
    width: 100%;
    max-width: 80%;
    /* Make card less wide */
    height: 100%;
    border-radius: 20px;
    z-index: 1;
    /* Keep above the pseudo-element shadow */
}

.ally-card:hover {
    transform: translateY(-20px);
}

.ally-card:hover::before {
    transform: translate(10px, 10px);
    /* Slight shift on hover */
    box-shadow: 0 14px 45px rgba(0, 0, 0, 0.12);
}

.ally-card .ally-logo-wrapper,
.ally-card .ally-info {
    position: relative;
}

.ally-logo-wrapper {
    flex-shrink: 0;
    position: relative;
    z-index: 10;
}

.ally-logo-box {
    background: #000000;
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    line-height: 1.2;
    text-transform: uppercase;
    width: 100%;
    height: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 20px 20px 0 0;
}

@media (min-width: 768px) {
    .ally-logo-box {
        width: 140px;
        border-radius: 20px 0 0 20px;
    }
}

.ally-logo-box::before {
    display: none;
}

.ally-name {
    font-size: 0.85rem;
    line-height: 1.3;
}

.ally-info {
    flex: 1;
    background: #fff;
    padding: 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 0 0 20px 20px;
    position: relative;
    z-index: 2;
}

@media (min-width: 768px) {
    .ally-info {
        border-radius: 0 20px 20px 0;
    }
}

.ally-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.ally-description {
    font-size: 1.2rem;
    line-height: 1.5;
    font-weight: 400;
    color: var(--color-text-dark);
    margin: 0;
}

/* Responsive */
@media (max-width: 991px) {
    /* Rules moved to min-width logic */
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
}

/* ============================
   Contact Section
   ============================ */
.contact-section {
    background-color: var(--color-form-bg);
    position: relative;
    overflow: visible;
}

.contact-form-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    /* box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08); */
}

.contact-form-card h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 2rem;
    font-weight: 900;
}

/* Title above the form card */
.contact-title {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-form .form-label {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: var(--color-primary);
}

.contact-form .form-control {
    padding: 0.85rem 1rem;
    border: none;
    background-color: #e8e8e8;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all var(--duration-hover) var(--ease-out);
}

.contact-form .form-control:focus {
    outline: none;
    background-color: #ddd;
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.15);
}

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

.btn-contact {
    background-color: var(--color-highlight);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.85rem 2.5rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    align-self: flex-end;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
    text-decoration: none;
}

.btn-contact:hover {
    background-color: #009ec3;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
}

.btn-contact i {
    color: #ffeb3b;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
    transform: rotate(45deg);
}

.btn-contact:hover i {
    transform: rotate(45deg) translate(5px, -5px);
}

.contact-image-container {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 520px;
    padding-top: 60px;
    isolation: isolate;
    margin: 0 auto;
}

/* Blue background block with diagonal cut at top-left */
.contact-image-container::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 20%;
    width: 55%;
    height: 70%;
    background: #0099cc;
    clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%, 0 100px);
    z-index: 2;
}

/* Yellow shape - behind blue block, peeking from top, left, and diagonal edges */
.contact-image-border {
    position: absolute;
    bottom: 15px;
    right: 25%;
    width: 53%;
    height: 70%;
    background: var(--color-accent);
    clip-path: polygon(100px 0, 100% 0, 100% 100%, 0 100%, 0 100px);
    z-index: 1;
    transition: transform 0.4s var(--ease-out);
}

.contact-image-container:hover .contact-image-border {
    transform: translate(-6px, -6px);
}

.worker-img {
    position: relative;
    max-width: 100%;
    width: 80%;
    height: auto;
    object-fit: contain;
    z-index: 3;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
    margin-top: -20px;
}

/* Responsive adjustments */
@media (max-width: 991px) {

    /* Responsive Navigation switch at 992px instead of 768px */
    .header-content {
        justify-content: space-between;
    }

    .hamburger-menu {
        display: block;
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--color-primary);
        cursor: pointer;
        z-index: 1300;
        transition: color 0.3s ease;
    }

    /* BS5 Offcanvas Customization */
    /* BS5 Offcanvas - General Visibility fix */
    .offcanvas {
        background-color: var(--color-primary);
        width: 85% !important;
        max-width: 400px;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        visibility: hidden !important;
        /* Force hidden when not open */
    }

    .offcanvas.show {
        visibility: visible !important;
    }

    .offcanvas-header {
        padding: 2rem 1.5rem 1rem;
    }

    .offcanvas-body {
        padding: 0 1.5rem 2rem;
        display: flex;
        flex-direction: column;
    }

    /* Target main-nav inside offcanvas specifically for mobile */
    .offcanvas .main-nav {
        display: block !important;
        height: auto;
    }

    .offcanvas .main-nav ul {
        flex-direction: column;
        height: auto;
        padding-top: 1rem;
    }

    .main-nav {
        width: 100%;
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        width: 100%;
        margin-bottom: 2rem;
    }

    .main-nav ul li {
        width: 100%;
        height: auto;
    }

    .main-nav a {
        font-size: 1.25rem;
        color: #fff !important;
        padding: 1rem 1.5rem;
        width: 100%;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        transition: background-color 0.3s ease;
    }

    .main-nav a::before {
        display: none;
    }

    .main-nav a:hover,
    .main-nav a.active {
        background-color: rgba(0, 180, 216, 0.2);
    }

    .main-nav .lang-selector {
        padding-left: 0;
        margin-top: auto;
        padding-top: 2rem;
        color: #fff;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        width: 80%;
        margin: auto auto 0 auto;
        justify-content: center;
    }

    .nav-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-overlay.active {
        display: block;
    }

    .services-hero-wrapper {
        height: auto;
        aspect-ratio: 16 / 9;
        background-color: var(--color-primary);
    }

    .services-content-area {
        padding-top: 0.75rem;
    }

    .services-hero-video {
        display: none;
    }

    .contact-form-card {
        padding: 2rem 1.5rem;
    }

    .contact-form-card h2 {
        font-size: 2rem;
    }

    .contact-image-container {
        min-height: 420px;
        margin-top: 3rem;
        padding-left: 0;
        right: 0;
        display: flex;
        justify-content: center;
        align-items: flex-end;
        position: relative;
    }

    .contact-image-container::before {
        width: 50%;
        height: 80%;
        left: 45%;
        transform: translateX(-50%);
        bottom: 10%;
    }

    .contact-image-border {
        width: 50%;
        height: 80%;
        left: 45%;
        bottom: 10%;
        transform: translateX(-50%) translate(8px, -8px);
    }

    .contact-image-container:hover .contact-image-border {
        transform: translateX(-50%) translate(-2px, -18px);
    }

    .worker-img {
        width: 100%;
        max-width: 440px;
        /* Reduced from 480 to fit smaller screens */
        margin-left: 0;
        /* Remove horizontal push */
        margin-bottom: -15px;
        position: relative;
        z-index: 5;
    }
}

@media (min-width: 992px) {
    .row-cols-lg-7>* {
        flex: 0 0 auto;
        width: 14.2857142857%;
        /* 100 / 7 */
    }
}

/* Industries Section Spacing */
.industries-section .container {
    padding-top: 3rem;
    padding-bottom: 3rem;
}

@media (max-width: 768px) {
    .contact-image-container {
        min-height: 350px;
    }

    .contact-image-container::before,
    .contact-image-border {
        width: 85%;
        height: 75%;
        right: 0;
        /* Align perfectly to the right */
        bottom: 0;
    }
}

@media (max-width: 576px) {
    .contact-form-card {
        padding: 1.5rem 1.25rem;
    }

    /* Keep the image visible on small screens to match structural expectations */
    .contact-image-container {
        display: flex;
        min-height: 300px;
    }
}

/* ============================
   Footer Section
   ============================ */
#main-footer {
    background-color: var(--color-primary);
    color: #fff;
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-logo-img {
    width: 350%;
    max-width: 450px !important;
    filter: brightness(0) invert(1);
}

.footer-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/bg_footer.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.text-cyan {
    color: var(--color-highlight) !important;
}

.footer-email {
    transition: opacity 0.3s ease, color 0.3s ease;
}

.footer-email:hover {
    opacity: 1 !important;
    color: #fff !important;
}

/* WhatsApp Button - Hero Style */
.btn-footer-whatsapp {
    background-color: var(--color-highlight);
    color: #ffffff !important;
    border: none;
    border-radius: 50px;
    padding: 10px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 12px rgba(0, 180, 216, 0.15);
    text-decoration: none;
}

.btn-footer-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 180, 216, 0.3);
    background-color: #009ec3;
    color: #ffffff !important;
}

.btn-footer-whatsapp i {
    color: var(--color-accent);
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    display: inline-block;
    transform: rotate(45deg);
}

.btn-footer-whatsapp:hover i {
    transform: rotate(45deg) translate(5px, -5px);
}

/* Social Icons - Cyan Circles */
.social-icon {
    width: 60px;
    height: 60px;
    background-color: var(--color-highlight);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 2.3rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    text-decoration: none;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 255, 0.4);
    color: var(--color-primary);
}




/* ============================
   WhatsApp Floating Button
   ============================ */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
    color: #fff;
}

.whatsapp-float:active {
    transform: scale(0.95);
}


/* ============================
   Responsive Styles (Bootstrap-like behavior)
   ============================ */
@media (max-width: 992px) {

    /* Hero Section */
    .hero-section {
        height: auto;
        padding-top: 110px;
        /* Aligned with main.css */
        padding-bottom: 3rem;
        min-height: auto;
    }

    /* Removed redundant index2-specific hero overrides to match index1 aesthetics */


    .hero-logo-shield {
        width: 150px;
        height: 150px;
    }

    .shield-mg {
        font-size: 2.8rem;
    }

    /* About Section */
    .about-section .row {
        flex-direction: column;
        gap: 0;
    }

    .about-image {
        width: 100%;
        padding: 0;
        order: -1;
    }

    .image-mask {
        height: auto;
    }

    .about-content {
        width: 100%;
        padding: 40px 1.5rem;
    }
}

@media (max-width: 768px) {

    /* Header */
    .header-content {
        justify-content: space-between;
    }

    .hamburger-menu {
        display: block;
        /* Show on mobile */
        background: none;
        border: none;
        font-size: 1.8rem;
        color: var(--color-primary);
        cursor: pointer;
        z-index: 1300;
        /* Above nav */
        transition: color 0.3s ease;
    }

    /* Ensure header stays visible on scroll */
    #main-header.scrolled {
        background-color: rgba(26, 43, 60, 0.95);
        backdrop-filter: blur(10px);
        height: 65px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    /* BS5 Hamburger Color adjustment */
    #main-header.scrolled .hamburger-menu,
    #main-header.nav-active .hamburger-menu {
        color: #fff;
    }

    /* Typography adjustments */

    .logo-graphic {
        font-size: 1.2rem;
    }

    /* Typography adjustments */
    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    /* Services Section */
    .services-section h2 {
        font-size: 2rem !important;
    }

    /* Industries Section */
    .industry-box {
        min-height: 190px;
        /* Slightly shorter for mobile balance */
        padding: 1.5rem 1rem;
        gap: 0.5rem;
    }

    .industry-box span {
        font-size: 0.8rem;
    }

    .allies-section h2 {
        text-align: center;
    }

    /* WhatsApp float mobile */
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .industry-box {
        min-height: 130px;
        padding: 1.2rem 0.5rem;
    }

    .ally-logo-box {
        height: auto;
        min-height: 120px;
    }
}
/* ============================
   Internal Service Pages
   ============================ */

.breadcrumb-bar {
    background-color: var(--color-primary);
    padding: 12px 0;
    margin-top: 0px;
}

.breadcrumb-text {
    font-size: 0.95rem;
    color: #fff;
}

.breadcrumb-text a {
    color: #fff;
    text-decoration: none;
    opacity: 0.8;
}

.breadcrumb-text .separator {
    margin: 0 0.5rem;
    opacity: 0.8;
}

.internal-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
    overflow: hidden;
    padding-bottom: 50px;
}

.internal-hero .hero-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}

.internal-hero .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 29, 58, 0.4);
    z-index: 2;
}

.internal-hero .container {
    z-index: 3;
}

.internal-hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    text-transform: uppercase;
}

.internal-content {
    position: relative;
    padding-bottom: 3rem;
    background-image: url('../assets/images/bg_nosotros.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Blue Color Filter Overlay with requested 0.74 opacity */
.internal-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 29, 58, 0.74);
    z-index: 1;
}

.internal-content .container {
    z-index: 2;
}

.internal-card {
    max-width: 900px;
    border-radius: 12px;
    background: #fff;
    margin-top: -100px;
    margin-bottom: 2.5rem;
    border: none;
}

.internal-card h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    letter-spacing: -0.5px;
}

.internal-card p {
    color: #555;
    font-size: 1.05rem;
}

.internal-card .fw-bold {
    color: var(--color-primary) !important;
}

.internal-list-icon {
    color: var(--color-accent);
    font-size: 1.25rem;
    margin-top: 4px;
}

.internal-list-text {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.5;
}

.btn-internal-cta {
    background-color: var(--color-accent);
    color: var(--color-primary) !important;
    border: none;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
