/* =========================================================================
   GTR & FJ Security - Style System (Eulen Inspired Layout)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color System */
    --color-primary: #0a2d5e;       /* Deep Blue (más claro que el navy original) */
    --color-primary-rgb: 10, 45, 94;
    --color-secondary: #1565c0;     /* Vivid Royal Blue */
    --color-secondary-rgb: 21, 101, 192;
    --color-accent: #f2b705;        /* Gold */
    --color-accent-rgb: 242, 183, 5;
    --color-accent-hover: #d19e04;
    
    /* Backgrounds */
    --color-bg-light: #f4f7fb;      /* Light blue-gray */
    --color-bg-card: #ffffff;
    --color-bg-dark: #0d2b4e;       /* Aclarado respecto a #010e18 */
    
    /* Text colors */
    --color-text: #1e293b;          /* Slate 800 */
    --color-text-muted: #64748b;    /* Slate 500 */
    --color-text-light: #f8fafc;    /* Slate 50 */
    --color-text-light-muted: #cbd5e1; /* Slate 300 */
    
    /* Borders and shadows */
    --color-border: #dde6f0;
    --color-border-dark: #2d4a6e;
    --shadow-sm: 0 1px 3px rgba(10,45,94,0.06);
    --shadow-md: 0 4px 12px rgba(10,45,94,0.10), 0 2px 4px rgba(10,45,94,0.06);
    --shadow-lg: 0 10px 30px rgba(10,45,94,0.12), 0 4px 8px rgba(10,45,94,0.06);
    --shadow-premium: 0 20px 40px rgba(10, 45, 94, 0.10);

    /* Layout metrics */
    --header-height: 110px;
    --header-scrolled-height: 80px;
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.2;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

/* =========================================================================
   Typography & Utilities
   ========================================================================= */
.section-label {
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 12px;
    display: inline-block;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.section-preamble {
    font-size: 16px;
    color: var(--color-text-muted);
    max-width: 800px;
    margin-bottom: 40px;
}

.bg-dark {
    background-color: var(--color-primary);
    color: var(--color-text-light);
}

.bg-dark h1, .bg-dark h2, .bg-dark h3 {
    color: var(--color-text-light);
}

/* =========================================================================
   Buttons
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 14px;
    padding: 14px 28px;
    border-radius: var(--border-radius-sm);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.btn-primary:hover {
    background-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(2, 79, 161, 0.2);
}

.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 179, 5, 0.2);
}

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

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

/* =========================================================================
   Top Bar (Menu Top)
   ========================================================================= */
.topbar {
    background-color: var(--color-primary);
    color: var(--color-text-light-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.topbar__menu {
    display: flex;
    gap: 24px;
}

.topbar__link:hover {
    color: var(--color-accent);
}

.topbar__right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-selector {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
}

.lang-selector svg {
    width: 8px;
    height: 8px;
    transition: var(--transition-smooth);
}

.lang-selector:hover svg {
    transform: rotate(180deg);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--color-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-sm);
    padding: 6px 12px;
    display: none;
    z-index: 100;
    min-width: 100px;
    margin-top: 6px;
}

.lang-selector:hover .lang-dropdown {
    display: block;
}

.lang-dropdown a {
    display: block;
    padding: 4px 0;
    color: var(--color-text-light-muted);
}

.lang-dropdown a:hover {
    color: var(--color-white);
}

/* =========================================================================
   Main Header
   ========================================================================= */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 90;
    height: var(--header-height);
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--color-border);
}

.header.scrolled {
    height: var(--header-scrolled-height);
    background-color: #ffffff;
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    width: 50px;
    height: 40px;
    transition: var(--transition-smooth);
}

.header.scrolled .logo-icon {
    width: 44px;
    height: 35px;
}

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

.logo-text__main {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    color: var(--color-primary);
    line-height: 1.1;
    letter-spacing: -0.5px;
}

.logo-text__sub {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: var(--color-secondary);
}

/* Navigation Menu */
.navbar {
    display: flex;
    align-items: center;
    height: 100%;
}

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

.navitem {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 16px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--color-primary);
    cursor: pointer;
}

.navitem::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}

.navitem:hover::after, .navitem.active::after {
    transform: scaleX(1);
}

.navitem svg {
    margin-left: 6px;
    width: 8px;
    height: 6px;
    transition: var(--transition-smooth);
}

.navitem:hover svg {
    transform: rotate(180deg);
}

/* Mega Dropdown menu */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100vw;
    background-color: var(--color-primary);
    color: var(--color-text-light);
    box-shadow: var(--shadow-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(10px);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    z-index: 200;
}

/* Align mega menu with viewport correctly */
.navitem:hover .mega-dropdown {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mega-dropdown__inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 40px 24px;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
}

.mega-dropdown__info {
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 40px;
}

.mega-dropdown__info h3 {
    color: var(--color-text-light);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.mega-dropdown__info p {
    color: var(--color-text-light-muted);
    font-size: 13px;
}

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

.mega-dropdown__link {
    color: var(--color-text-light-muted);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mega-dropdown__link::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-accent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.mega-dropdown__link:hover {
    color: var(--color-white);
    padding-left: 8px;
}

.mega-dropdown__link:hover::before {
    opacity: 1;
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Search bar trigger */
.search-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-primary);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
}

.search-trigger:hover {
    background-color: rgba(var(--color-secondary-rgb), 0.06);
    color: var(--color-secondary);
}

/* Hamburger menu for mobile */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    width: 24px;
    cursor: pointer;
    background: transparent;
    border: none;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--color-primary);
    transition: var(--transition-smooth);
}

/* Search Panel Overlay */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(var(--color-primary-rgb), 0.95);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.search-panel.active {
    opacity: 1;
    visibility: visible;
}

.search-panel__close {
    position: absolute;
    top: 40px;
    right: 40px;
    background: transparent;
    border: none;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-panel__close:hover {
    color: var(--color-accent);
    transform: rotate(90deg);
}

.search-panel__input-container {
    width: 100%;
    max-width: 600px;
    padding: 0 24px;
    position: relative;
}

.search-panel__input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    padding: 16px 40px 16px 0;
    font-size: 24px;
    color: var(--color-white);
    font-family: 'Outfit', sans-serif;
    outline: none;
    transition: var(--transition-smooth);
}

.search-panel__input:focus {
    border-color: var(--color-accent);
}

.search-panel__input::placeholder {
    color: rgba(255,255,255,0.4);
}

.search-panel__icon {
    position: absolute;
    right: 32px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.4);
}

/* =========================================================================
   Cabecera (Hero) Section - Eulen Layout
   ========================================================================= */
.hero-cabecera {
    position: relative;
    height: 480px;
    overflow: hidden;
    background-color: var(--color-primary);
}

.hero-cabecera__bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.hero-cabecera__bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(1, 21, 35, 0.92) 0%, rgba(1, 21, 35, 0.6) 50%, rgba(1, 21, 35, 0.2) 100%);
}

.hero-cabecera__inner {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-cabecera__card {
    max-width: 580px;
    color: var(--color-text-light);
}

.breadcrumbs {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    margin-bottom: 24px;
}

.breadcrumbs a {
    color: var(--color-text-light-muted);
}

.breadcrumbs a:hover {
    color: var(--color-white);
}

.breadcrumbs span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.3);
}

.hero-cabecera__title {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.hero-cabecera__desc {
    font-size: 16px;
    color: var(--color-text-light-muted);
    line-height: 1.5;
}

/* Hero Animated SVG curves */
.hero-svg-curves {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 5;
    pointer-events: none;
}

.hero-svg-curves path {
    stroke: url(#curveGrad);
    stroke-width: 3;
    fill: none;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    animation: drawLine 3.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* =========================================================================
   Intro Section - Concept Serious/Honest
   ========================================================================= */
.intro-sec {
    padding: 80px 0;
    background-color: var(--color-bg-card);
}

.intro-sec__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    align-items: center;
}

.intro-sec__content {
    grid-column: span 7;
}

.intro-sec__title {
    font-size: 32px;
    margin-bottom: 24px;
    line-height: 1.25;
}

.intro-sec__text p {
    color: var(--color-text-muted);
    font-size: 15px;
    margin-bottom: 20px;
}

.intro-sec__ctas {
    margin-top: 30px;
}

.intro-sec__media {
    grid-column: span 5;
    position: relative;
    padding: 20px;
}

.intro-sec__image-wrapper {
    position: relative;
    z-index: 5;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius-sm);
}

.intro-sec__image-wrapper img {
    width: 100%;
    transition: var(--transition-smooth);
}

.intro-sec__image-wrapper:hover img {
    transform: scale(1.05);
}

/* Decorative SVG frame matching Eulen */
.intro-sec__frame-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.intro-sec__frame-svg path {
    stroke: var(--color-secondary);
    stroke-width: 4;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawFrame 2.5s ease-out forwards;
}

@keyframes drawFrame {
    to {
        stroke-dashoffset: 0;
    }
}

/* =========================================================================
   Subservicios Section - Dynamic Hover Cards
   ========================================================================= */
.subservicios {
    padding: 80px 0;
    background-color: var(--color-bg-card);
}

/* Eulen-style card container with 5 elements */
.subservicios__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 24px;
}

.subservice-card {
    grid-column: span 2;
    position: relative;
    height: 380px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    background-size: cover;
    background-position: center;
}

/* Format specifically: 3 cards in first row, 2 cards in second row (grid span adjustment) */
.subservice-card.wide {
    grid-column: span 3;
}

.subservice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(1, 21, 35, 0.1) 0%, rgba(1, 21, 35, 0.85) 100%);
    transition: var(--transition-smooth);
    z-index: 1;
}

.subservice-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(2, 79, 161, 0.4);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.subservice-card__content {
    position: relative;
    z-index: 10;
    color: var(--color-white);
    transition: var(--transition-smooth);
}

.subservice-card__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 12px;
}

.subservice-card__text {
    font-size: 13px;
    color: var(--color-text-light-muted);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    max-height: 0;
    overflow: hidden;
}

/* SVG hover drawing frame inside cards */
.subservice-card__svg-hover {
    position: absolute;
    top: 15px;
    left: 15px;
    width: calc(100% - 30px);
    height: calc(100% - 30px);
    z-index: 5;
    pointer-events: none;
}

.subservice-card__svg-hover rect {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 2;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    transition: stroke-dashoffset 0.6s ease-in-out;
}

/* Card hover interactions */
.subservice-card:hover::before {
    background: linear-gradient(180deg, rgba(1, 21, 35, 0.3) 0%, rgba(1, 21, 35, 0.95) 100%);
}

.subservice-card:hover::after {
    opacity: 1;
}

.subservice-card:hover .subservice-card__text {
    opacity: 1;
    transform: translateY(0);
    max-height: 100px;
    margin-top: 8px;
}

.subservice-card:hover .subservice-card__svg-hover rect {
    stroke-dashoffset: 0;
}

/* =========================================================================
   Stats and Client Carousel Section
   ========================================================================= */
.stats-carousel {
    padding: 80px 0;
    background-color: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
}

.stats-carousel__grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 40px;
    align-items: center;
}

.stats-carousel__left {
    grid-column: span 5;
}

.stats-carousel__label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.stats-carousel__num {
    font-size: 82px;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    margin: 10px 0;
}

.stats-carousel__sub {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-primary);
}

.stats-carousel__sub u {
    text-decoration-color: var(--color-accent);
    text-underline-offset: 4px;
}

.stats-carousel__right {
    grid-column: span 7;
}

/* Client logos marquee slider */
.logos-slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

.logos-slider::before, .logos-slider::after {
    display: none;
}

.logos-slider__track {
    display: flex;
    gap: 60px;
    width: calc(240px * 16);
    animation: scrollLogos 35s linear infinite;
}

.logos-slider__track:hover {
    animation-play-state: paused;
}

.logos-slider__item {
    width: 180px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    padding: 15px;
    border: 1px solid var(--color-border);
    transition: var(--transition-smooth);
}

.logos-slider__item:hover {
    border-color: var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.logos-slider__item img {
    max-height: 48px;
    max-width: 100%;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: var(--transition-smooth);
}

.logos-slider__item:hover img {
    filter: grayscale(0);
    opacity: 1;
}

@keyframes scrollLogos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-240px * 8)); /* Scroll exactly half of duplicated set */
    }
}

/* =========================================================================
   Why Trust Us - Accordion & Dynamic Preview
   ========================================================================= */
.why-trust {
    padding: 90px 0;
    background-color: var(--color-bg-light);
}

.why-trust__intro {
    text-align: center;
    margin-bottom: 50px;
}

.why-trust__intro .section-preamble {
    margin-left: auto;
    margin-right: auto;
}

.why-trust__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Vertical tabs/accordion */
.why-trust__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.trust-item {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    border-left: 4px solid transparent;
    transition: var(--transition-smooth);
}

.trust-item.active {
    border-left-color: var(--color-accent); /* Golden accent marker */
    box-shadow: var(--shadow-md);
}

.trust-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.trust-item__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary);
}

.trust-item.active .trust-item__title {
    color: var(--color-secondary);
}

.trust-item__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    transition: var(--transition-smooth);
}

.trust-item.active .trust-item__icon {
    transform: rotate(180deg);
    color: var(--color-secondary);
}

.trust-item__body {
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    margin-top: 0;
}

.trust-item.active .trust-item__body {
    max-height: 200px;
    margin-top: 16px;
}

.trust-item__body p {
    color: var(--color-text-muted);
    font-size: 14px;
}

/* Right display panel preview */
.why-trust__preview {
    position: relative;
}

.why-trust__preview-card {
    background-color: var(--color-bg-card);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition-smooth);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.why-trust__preview-card.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    z-index: 10;
}

.why-trust__img-wrapper {
    height: 300px;
    overflow: hidden;
}

.why-trust__img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.why-trust__content {
    padding: 30px;
}

.why-trust__content h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.why-trust__content p {
    font-size: 14px;
    color: var(--color-text-muted);
}

/* =========================================================================
   Sectores Section - Standard Eulen Grid
   ========================================================================= */
.sectores {
    padding: 85px 0;
    background-color: var(--color-bg-card);
}

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

.sector-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: var(--transition-smooth);
    background-color: var(--color-bg-card);
}

.sector-card:hover {
    border-color: var(--color-secondary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.sector-card__icon {
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(2, 79, 161, 0.06);
    color: var(--color-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.sector-card:hover .sector-card__icon {
    background-color: var(--color-secondary);
    color: var(--color-white);
}

.sector-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.sector-card__text {
    font-size: 13px;
    color: var(--color-text-muted);
}

/* =========================================================================
   Formulario de Cotización (Contacto) - Premium Integration
   ========================================================================= */
.contacto {
    padding: 90px 0;
    background-color: var(--color-primary);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.contacto::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background-color: rgba(2, 79, 161, 0.15);
    filter: blur(100px);
    border-radius: 50%;
}

.contacto__grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.contacto__info h2 {
    color: var(--color-white);
    font-size: 36px;
    margin-bottom: 24px;
}

.contacto__info p {
    color: var(--color-text-light-muted);
    font-size: 15px;
    margin-bottom: 30px;
}

.contacto-info-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contacto-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.contacto-info-item__icon {
    color: var(--color-accent);
    flex-shrink: 0;
}

.contacto-info-item__text h4 {
    color: var(--color-white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.contacto-info-item__text p {
    color: var(--color-text-light-muted);
    font-size: 14px;
    margin-bottom: 0;
}

/* Form Styling */
.contact-form-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
}

.contact-form-card h3 {
    color: var(--color-white);
    font-size: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 12px;
}

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

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

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-text-light-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.form-input {
    width: 100%;
    background-color: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.20);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.40);
}

.form-input:focus {
    border-color: var(--color-accent);
    background-color: rgba(255,255,255,0.13);
    box-shadow: 0 0 0 3px rgba(242, 183, 5, 0.15);
}

.form-input option {
    background-color: #0a2d5e;
    color: #ffffff;
}

.form-input.error {
    border-color: #ef4444;
    background-color: rgba(239, 68, 68, 0.08);
}

.form-error-msg {
    color: #fc8181;
    font-size: 11px;
    font-weight: 600;
    margin-top: 4px;
    display: none;
}

.form-error-msg.active {
    display: block;
}

textarea.form-input {
    resize: none;
    height: 100px;
}

/* Captcha styling */
.captcha-container {
    display: flex;
    gap: 16px;
    align-items: center;
}

.captcha-code {
    background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 100%);
    color: var(--color-white);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 5px;
    padding: 10px 20px;
    border-radius: var(--border-radius-sm);
    user-select: none;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: inset 0 0 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 46px;
}

.terms-container {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 12px;
    color: var(--color-text-light-muted);
}

.terms-container input {
    margin-top: 3px;
    cursor: pointer;
}

/* Submit success banner */
.alert-success {
    background-color: #065f46;
    border: 1px solid #047857;
    color: #a7f3d0;
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 20px;
    display: none;
    font-size: 14px;
    font-weight: 600;
}

/* =========================================================================
   Footer Section
   ========================================================================= */
.footer {
    background-color: var(--color-primary);
    color: var(--color-text-light-muted);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.footer__main {
    padding: 60px 0 40px;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 40px;
}

.footer__brand {
    padding-right: 40px;
}

.footer__desc {
    font-size: 13px;
    margin: 20px 0;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: translateY(-3px);
}

.footer__title {
    color: var(--color-white);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 24px;
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13px;
}

.footer__link:hover {
    color: var(--color-accent);
    padding-left: 6px;
}

/* Footer Bottom */
.footer__bottom {
    background-color: var(--color-bg-dark);
    padding: 24px 0;
    font-size: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

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

.footer__legal {
    display: flex;
    gap: 20px;
}

.back-to-top {
    width: 40px;
    height: 40px;
    border-radius: var(--border-radius-sm);
    background-color: var(--color-secondary);
    color: var(--color-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
}

.back-to-top:hover {
    background-color: var(--color-accent);
    color: var(--color-primary);
    transform: translateY(-3px);
}

/* =========================================================================
   Filosofia Section (Mision, Vision, Valores)
   ========================================================================= */
.filosofia {
    padding: 80px 0;
    background-color: var(--color-bg-light);
    border-bottom: 1px solid var(--color-border);
}

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

.filosofia-card {
    background-color: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 35px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.filosofia-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-secondary);
}

.filosofia-card__title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    border-bottom: 2px solid rgba(var(--color-secondary-rgb), 0.1);
    padding-bottom: 12px;
}

.filosofia-card__title svg {
    color: var(--color-secondary);
}

.filosofia-card__text {
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.filosofia-values-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filosofia-value-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
}

.filosofia-value-item svg {
    color: var(--color-accent);
}

/* =========================================================================
   Mobile responsiveness (Breakpoints)
   ========================================================================= */
@media (max-width: 1024px) {
    .subservicios__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .subservice-card {
        grid-column: span 2;
    }
    .subservice-card.wide {
        grid-column: span 2;
    }
    .sectores__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .why-trust__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .why-trust__preview {
        height: 420px; /* Give room for absolute boxes */
    }
}

@media (max-width: 768px) {
    .topbar {
        display: none; /* Hide helper top menu on small screens */
    }
    
    .header {
        height: 70px;
    }
    
    .header.scrolled {
        height: 70px;
    }
    
    .hamburger {
        display: flex;
    }
    
    .navbar {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 80%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background-color: var(--color-primary);
        z-index: 500;
        transition: var(--transition-smooth);
        box-shadow: var(--shadow-lg);
        overflow-y: auto;
    }
    
    .navbar.active {
        left: 0;
    }
    
    .navmenu {
        flex-direction: column;
        width: 100%;
        height: auto;
        padding: 24px 0;
        align-items: flex-start;
    }
    
    .navitem {
        width: 100%;
        height: auto;
        padding: 16px 24px;
        color: var(--color-white);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .navitem::after {
        display: none;
    }
    
    .navitem svg {
        display: none; /* Hide small arrows in mobile */
    }
    
    .mega-dropdown {
        position: static;
        width: 100%;
        display: none;
        box-shadow: none;
        padding: 0;
        border-top: none;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .navitem:hover .mega-dropdown {
        display: block;
    }
    
    .mega-dropdown__inner {
        grid-template-columns: 1fr;
        padding: 12px 12px;
        gap: 16px;
    }
    
    .mega-dropdown__info {
        display: none; /* Hide descriptive sidebar on mobile */
    }
    
    .mega-dropdown__links {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .mega-dropdown__link {
        padding: 4px 0;
    }
    
    .hero-cabecera {
        height: auto;
        padding: 80px 0;
    }
    
    .hero-cabecera__title {
        font-size: 32px;
    }
    
    .intro-sec__grid {
        grid-template-columns: 1fr;
    }
    
    .intro-sec__content {
        grid-column: span 1;
    }
    
    .intro-sec__media {
        grid-column: span 1;
    }
    
    .subservicios__grid {
        grid-template-columns: 1fr;
    }
    
    .subservice-card {
        grid-column: span 1 !important;
        height: 320px;
    }
    
    .stats-carousel__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .stats-carousel__left {
        grid-column: span 1;
    }
    
    .stats-carousel__right {
        grid-column: span 1;
    }
    
    .contacto__grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer__brand {
        padding-right: 0;
    }
    
    .footer__bottom-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer__legal {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .filosofia__grid {
        grid-template-columns: 1fr;
    }
}
