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

/* ==========================================================================
   DESIGN TOKENS & VARIABLES
   ========================================================================== */
:root {
    --color-primary: #09284D;
    --color-primary-light: #164E8D;
    --color-primary-dark: #051830;
    --color-primary-rgb: 9, 40, 77;
    
    --color-secondary: #D0A933;
    --color-secondary-light: #F5D061;
    --color-secondary-dark: #B88E1E;
    --color-secondary-rgb: 208, 169, 51;
    
    --color-dark: #121417;
    --color-dark-muted: #2a2e35;
    --color-light: #F8F9FA;
    --color-white: #FFFFFF;
    --color-gray-100: #F1F3F5;
    --color-gray-200: #E9ECEF;
    --color-gray-300: #DEE2E6;
    --color-gray-600: #6C757D;
    --color-gray-800: #343A40;
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(9, 40, 77, 0.08), 0 4px 6px -2px rgba(9, 40, 77, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(9, 40, 77, 0.12), 0 10px 10px -5px rgba(9, 40, 77, 0.04);
    --shadow-glow: 0 0 20px rgba(208, 169, 51, 0.4);
    --shadow-primary-glow: 0 0 20px rgba(22, 78, 141, 0.4);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    
    --border-radius-sm: 6px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --border-radius-circle: 50%;
    
    --container-max-width: 1200px;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

h1 { font-size: 2.75rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
    color: var(--color-gray-600);
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--color-secondary);
}

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

ul, ol {
    list-style: none;
}

/* ==========================================================================
   LAYOUT COMPONENTS & HELPER CLASSES
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.section {
    padding: 80px 0;
    position: relative;
}

.section-bg-light {
    background-color: var(--color-light);
}

.section-bg-dark {
    background-color: var(--color-primary-dark);
    color: var(--color-white);
}

.section-bg-dark p {
    color: var(--color-gray-300);
}

.section-bg-dark h2, .section-bg-dark h3 {
    color: var(--color-white);
}

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

.section-header {
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-header .subtitle {
    text-transform: uppercase;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-secondary);
    margin-bottom: 8px;
    display: block;
}

.section-header h2 {
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    margin: 12px auto 0 auto;
    border-radius: var(--border-radius-sm);
}

.section-header.left {
    text-align: left;
    margin-left: 0;
}

.section-header.left h2::after {
    margin-left: 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--border-radius-md);
    transition: var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
    gap: 10px;
}

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

.btn-primary:hover {
    background-color: var(--color-primary-light);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-glow);
}

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

.btn-secondary:hover {
    background-color: var(--color-secondary-light);
    color: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

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

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

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

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

/* ==========================================================================
   NAVIGATION HEADER
   ========================================================================== */
.header-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
}

.header-nav.scrolled {
    padding: 5px 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
    transition: var(--transition-normal);
}

.header-nav.scrolled .nav-container {
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 280px;
}

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

.header-nav.scrolled .logo-link img {
    height: 58px;
}

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

.nav-list {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-item a {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    position: relative;
    padding: 8px 0;
}

.nav-item a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: var(--transition-fast);
}

.nav-item a:hover::after,
.nav-item.active a::after {
    width: 100%;
}

.nav-item.active a {
    color: var(--color-secondary-dark);
}

.nav-cta {
    margin-left: 10px;
}

/* Hamburger menu for mobile */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-primary);
    margin-bottom: 5px;
    transition: var(--transition-normal);
    border-radius: 3px;
}

.nav-toggle span:last-child {
    margin-bottom: 0;
}

.nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -7px);
}

/* ==========================================================================
   HERO / ANIMATED BANNER (HOME)
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #020c18 0%, #051830 50%, #09284d 100%);
    color: var(--color-white);
    padding-top: 100px;
    overflow: hidden;
}

/* Animated interactive canvas */
#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: auto;
    opacity: 0.7;
}

/* Background grid overlay */
.hero-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(208, 169, 51, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 169, 51, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: center;
    z-index: 2;
    pointer-events: none;
}

/* Futuristic geometric shapes floating */
.hero-shape {
    position: absolute;
    border-radius: var(--border-radius-circle);
    background: radial-gradient(circle, rgba(208, 169, 51, 0.08) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 2;
    pointer-events: none;
    animation: floatShape 20s infinite ease-in-out alternate;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    top: -100px;
    right: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    animation-delay: -5s;
    background: radial-gradient(circle, rgba(22, 78, 141, 0.15) 0%, transparent 70%);
}

.hero-content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards ease-out 0.2s;
}

.hero-text .badge {
    display: inline-block;
    padding: 6px 16px;
    background-color: rgba(208, 169, 51, 0.15);
    border: 1px solid rgba(208, 169, 51, 0.3);
    color: var(--color-secondary-light);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    border-radius: 50px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-text h1 {
    font-size: 3.5rem;
    color: var(--color-white);
    margin-bottom: 20px;
    font-weight: 900;
    line-height: 1.15;
}

.hero-text h1 span {
    color: var(--color-secondary);
    background: linear-gradient(120deg, var(--color-secondary-light), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-text p {
    font-size: 1.15rem;
    color: var(--color-gray-300);
    margin-bottom: 35px;
    max-width: 600px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Right side graphic */
.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-services-showcase {
    width: 100%;
    position: relative;
    z-index: 4;
}

.hero-services-grid {
    display: none; /* obsolete */
}

/* High-impact highlight classes for hero title */
.highlight-cyan {
    color: #00f2fe;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.4);
}
.highlight-gold {
    color: var(--color-secondary, #d0a933);
    text-shadow: 0 0 10px rgba(208, 169, 51, 0.4);
}

/* Futuristic Tech Gear Showcase */
.hero-gear-showcase {
    position: relative;
    width: 100%;
    max-width: 550px;
    height: 400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Constellation & Hex Grid Background */
.tech-constellation-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.constellation-svg {
    width: 100%;
    height: 100%;
}

/* Gear Container (Centered, glowing and animated on load) */
.gear-outer-container {
    position: relative;
    width: 320px;
    height: 320px;
    z-index: 3;
    animation: scaleInGear 1.2s cubic-bezier(0.25, 1, 0.5, 1) 0.3s forwards;
    opacity: 0;
    filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.25));
}

/* Circle Cropped Image Wrapper */
.gear-image-wrapper {
    position: absolute;
    width: 76%; /* Fits exactly inside the inner ring (r=38 is 76% diameter) */
    height: 76%;
    left: 12%;
    top: 12%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 2;
    box-shadow: inset 0 0 20px rgba(0, 242, 254, 0.6);
}

.gear-image-wrapper .gear-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: autoPanImage 24s infinite ease-in-out alternate;
}

.gear-image-wrapper .gear-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(9, 40, 77, 0) 40%, rgba(9, 40, 77, 0.65) 100%);
    z-index: 3;
    pointer-events: none;
}

/* Gear and HUD overlays */
.gear-svg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
}

/* Rotating Gear (Teeth + Ring) */
.rotating-gear {
    transform-origin: 50px 50px;
    animation: rotateClockwise 45s linear infinite;
}

/* Rotating HUD concentric circles */
.rotating-hud {
    transform-origin: 50px 50px;
    animation: rotateCounterClockwise 30s linear infinite;
}

/* Inner Pulsing Ring */
.pulsing-inner-ring {
    transform-origin: 50px 50px;
    animation: pulseInnerRing 3.5s infinite ease-in-out;
}

/* Animations Keyframes */
@keyframes rotateClockwise {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes rotateCounterClockwise {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

@keyframes pulseInnerRing {
    0%, 100% { stroke-width: 0.8px; stroke: #00f2fe; opacity: 0.85; filter: drop-shadow(0 0 1px #00f2fe); }
    50% { stroke-width: 1.4px; stroke: #00ffff; opacity: 1; filter: drop-shadow(0 0 5px #00ffff); }
}

@keyframes scaleInGear {
    0% {
        opacity: 0;
        transform: scale(0.4) rotate(-45deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Automatic Image Panning (Ken Burns) */
@keyframes autoPanImage {
    0% { transform: scale(1.02) translate(0, 0); }
    50% { transform: scale(1.12) translate(-2%, -1%); }
    100% { transform: scale(1.02) translate(0, 0); }
}

/* Callout Connectors SVG Layer */
.callout-connectors-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Pulsing Dot at the end of the callout lines */
.pulsing-callout-dot {
    animation: pulseCalloutDot 2s infinite ease-in-out;
    transform-origin: center;
}

@keyframes pulseCalloutDot {
    0%, 100% { r: 2.5px; opacity: 0.65; }
    50% { r: 4.5px; opacity: 1; filter: drop-shadow(0 0 3px currentColor); }
}

/* Floating Callouts (HUD Tags) */
.hud-callout {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(5, 20, 38, 0.9);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(0, 242, 254, 0.15);
    border-radius: 12px;
    padding: 10px 14px;
    width: 220px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    opacity: 0;
    animation: fadeInCallout 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Delay entries for callouts to match gear landing */
.hud-callout.callout-tl { left: -110px; top: 15px; animation-delay: 1.1s; }
.hud-callout.callout-tr { right: -110px; top: 15px; animation-delay: 1.3s; border-color: rgba(208, 169, 51, 0.15); }
.hud-callout.callout-bl { left: -110px; bottom: 15px; animation-delay: 1.5s; border-color: rgba(208, 169, 51, 0.15); }
.hud-callout.callout-br { right: -110px; bottom: 15px; animation-delay: 1.7s; }

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

.hud-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 0.95rem;
    transition: transform 0.4s ease;
}

.hud-icon-circle.icon-cyan {
    background-color: #00f2fe;
    box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
}

.hud-icon-circle.icon-gold {
    background-color: var(--color-secondary, #d0a933);
    box-shadow: 0 0 10px rgba(208, 169, 51, 0.3);
}

.hud-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hud-title {
    color: var(--color-white, #ffffff);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    transition: color 0.3s ease;
    text-transform: uppercase;
}

.hud-desc {
    color: var(--color-gray-400, #a0aec0);
    font-size: 0.62rem;
    font-weight: 500;
    line-height: 1.2;
}

/* Hover effects */
.hud-callout:hover {
    transform: translateY(-4px) scale(1.03) !important;
    border-color: #00f2fe;
    box-shadow: 0 12px 25px rgba(0, 242, 254, 0.3);
    background: rgba(9, 31, 62, 0.95);
}

.hud-callout.callout-tr:hover,
.hud-callout.callout-bl:hover {
    border-color: var(--color-secondary, #d0a933);
    box-shadow: 0 12px 25px rgba(208, 169, 51, 0.3);
}

.hud-callout:hover .hud-title {
    color: #00f2fe;
}
.hud-callout.callout-tr:hover .hud-title,
.hud-callout.callout-bl:hover .hud-title {
    color: var(--color-secondary, #d0a933);
}

.hud-callout:hover .hud-icon-circle {
    transform: scale(1.1) rotate(15deg);
}

/* Mobile Responsiveness for Gear Showcase & Callouts */
@media (max-width: 992px) {
    .callout-connectors-svg {
        display: none;
    }
    .hero-gear-showcase {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 20px 0;
    }
    .hud-callout {
        position: static !important;
        width: 100%;
        max-width: 290px;
        margin: 5px auto;
        animation: none;
        opacity: 1;
    }
}

@media (max-width: 576px) {
    .gear-outer-container {
        width: 240px;
        height: 240px;
    }
}

/* ==========================================================================
   CARDS & SECTIONS (GENERAL)
   ========================================================================== */

/* Inner Section Hero Headers */
.inner-hero {
    padding: 140px 0 80px 0;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 50%, #030a14 100%);
    background-size: 200% 200%;
    animation: gradientShift 15s infinite ease-in-out alternate;
    color: var(--color-white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Background animations inside inner heroes */
.inner-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 30%, rgba(208, 169, 51, 0.09) 0%, transparent 40%),
                radial-gradient(circle at 70% 70%, rgba(22, 78, 141, 0.22) 0%, transparent 45%);
    animation: rotateBg 25s infinite linear;
    z-index: 1;
    pointer-events: none;
}

.inner-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(208, 169, 51, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(208, 169, 51, 0.04) 1px, transparent 1px);
    background-size: 30px 30px;
    background-position: center;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0.2) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 30%, rgba(0,0,0,0.2) 100%);
    animation: gridPulse 8s infinite ease-in-out alternate;
    z-index: 2;
    pointer-events: none;
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

@keyframes gridPulse {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.04); }
}


.inner-hero h1 {
    color: var(--color-white);
    margin-bottom: 15px;
}

.inner-hero p {
    color: var(--color-gray-300);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.breadcrumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.9rem;
}

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

.breadcrumbs span {
    color: rgba(255, 255, 255, 0.4);
}

/* Choose Us (Inicio / Nosotros) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    background-color: var(--color-white);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-gray-100);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover h3,
.feature-card:hover p {
    color: var(--color-white);
}

.feature-icon-wrapper {
    width: 65px;
    height: 65px;
    border-radius: var(--border-radius-md);
    background-color: rgba(208, 169, 51, 0.12);
    color: var(--color-secondary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    font-size: 1.75rem;
    transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
    background-color: rgba(255, 255, 255, 0.2);
    color: var(--color-secondary-light);
}

.feature-card h3 {
    margin-bottom: 15px;
    transition: var(--transition-normal);
}

.feature-card p {
    margin-bottom: 0;
    transition: var(--transition-normal);
}

/* ==========================================================================
   SERVICES (PAGE & COMPONENT)
   ========================================================================== */
.services-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.service-card-image {
    height: 200px;
    background-color: var(--color-primary-dark);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
    opacity: 0.8;
}

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

.service-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: rgba(9, 40, 77, 0.9);
    border: 1px solid rgba(208, 169, 51, 0.5);
    color: var(--color-secondary-light);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.service-card-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.service-card-icon {
    font-size: 2.25rem;
    color: var(--color-secondary-dark);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--color-gray-600);
    margin-bottom: 20px;
    flex-grow: 1;
}

.service-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.service-tag {
    background-color: var(--color-gray-100);
    color: var(--color-primary-light);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--color-primary);
    gap: 8px;
}

.service-link i {
    transition: var(--transition-fast);
}

.service-card:hover .service-link {
    color: var(--color-secondary-dark);
}

.service-card:hover .service-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   ABOUT US (NOSOTROS PAGE)
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-image img {
    width: 100%;
    border-radius: var(--border-radius-lg);
}

.about-experience-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 15px;
}

.about-experience-badge .num {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
}

.about-experience-badge .text {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.about-text p {
    text-align: justify;
}

.about-text h3 {
    margin-bottom: 15px;
    font-size: 1.75rem;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.stat-item {
    border-left: 3px solid var(--color-secondary);
    padding-left: 15px;
}

.stat-item h4 {
    font-size: 2rem;
    font-family: var(--font-heading);
    color: var(--color-primary-light);
    margin-bottom: 2px;
}

.stat-item p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-gray-600);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Values Grid (Nosotros) */
.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.value-card {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    text-align: center;
    border-top: 4px solid var(--color-primary);
    transition: var(--transition-normal);
}

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

.value-card .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: rgba(9, 40, 77, 0.05);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    font-size: 1.5rem;
}

.value-card:hover .icon-box {
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
}

.value-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   NEWS (NOTICIAS PAGE & COMPONENT)
   ========================================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.news-card {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    border: 1px solid var(--color-gray-200);
    display: flex;
    flex-direction: column;
    height: 100%;
}

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

.news-image {
    height: 250px;
    overflow: hidden;
    position: relative;
    background-color: #051426;
    display: flex;
    align-items: center;
    justify-content: center;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition-slow);
}

.news-card:hover .news-image img {
    transform: scale(1.08);
}

.news-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background-color: var(--color-secondary);
    color: var(--color-primary-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    text-transform: uppercase;
}

.news-content {
    padding: 30px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--color-gray-600);
    margin-bottom: 15px;
    font-weight: 500;
}

.news-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.news-content h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.news-content h3 a {
    color: var(--color-primary);
}

.news-content h3 a:hover {
    color: var(--color-primary-light);
}

.news-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1;
}

.news-readmore {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
}

.news-readmore i {
    transition: var(--transition-fast);
}

.news-card:hover .news-readmore {
    color: var(--color-secondary-dark);
}

.news-card:hover .news-readmore i {
    transform: translateX(4px);
}

/* ==========================================================================
   CONTACT (CONTACTO PAGE & FORM)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 50px;
}

.contact-info-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-info-card {
    background-color: var(--color-light);
    padding: 30px;
    border-radius: var(--border-radius-lg);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info-icon {
    width: 55px;
    height: 55px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.contact-info-details h3 {
    font-size: 1.15rem;
    margin-bottom: 5px;
}

.contact-info-details p {
    margin: 0;
    font-size: 0.95rem;
}

.contact-socials-wrapper {
    margin-top: 10px;
}

.contact-socials-wrapper h4 {
    margin-bottom: 15px;
    font-size: 1rem;
}

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

.social-link {
    width: 45px;
    height: 45px;
    border-radius: var(--border-radius-md);
    background-color: var(--color-gray-100);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

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

.social-link.facebook:hover {
    background-color: #1877F2;
}

.social-link.whatsapp:hover {
    background-color: #25D366;
}

.social-link.instagram:hover {
    background-color: #E1306C;
}

.social-link.linkedin:hover {
    background-color: #0077B5;
}

/* Contact Form */
.contact-form-column {
    background-color: var(--color-white);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-gray-100);
}

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

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    border: 1px solid var(--color-gray-300);
    border-radius: var(--border-radius-md);
    background-color: var(--color-light);
    color: var(--color-gray-800);
    transition: var(--transition-fast);
}

.form-control:focus {
    border-color: var(--color-primary-light);
    background-color: var(--color-white);
    outline: none;
    box-shadow: 0 0 0 4px rgba(22, 78, 141, 0.1);
}

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

.form-message {
    padding: 15px;
    border-radius: var(--border-radius-md);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: none;
    font-weight: 500;
}

.form-message.success {
    display: block;
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.form-message.error {
    display: block;
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

/* Map Iframe Style */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    margin-top: 50px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================================================
   CALL TO ACTION & FOOTER
   ========================================================================== */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-white);
    padding: 70px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 80% 20%, rgba(208, 169, 51, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: 2.25rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.cta-content p {
    color: var(--color-gray-300);
    max-width: 650px;
    margin: 0 auto 30px auto;
    font-size: 1.1rem;
}

/* Footer */
.main-footer {
    background-color: #0b0f14;
    color: var(--color-gray-300);
    padding: 70px 0 20px 0;
    border-top: 4px solid var(--color-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1.2fr;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    color: var(--color-white);
    font-size: 1.15rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--color-secondary);
}

.footer-about .footer-logo {
    max-width: 220px;
    margin-bottom: 20px;
}

.footer-about p {
    font-size: 0.9rem;
    line-height: 1.6;
}

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

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

.footer-links a:hover {
    color: var(--color-secondary-light);
    padding-left: 5px;
}

.footer-contact-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-size: 0.9rem;
}

.footer-contact-list li {
    display: flex;
    gap: 10px;
}

.footer-contact-list i {
    color: var(--color-secondary-light);
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 0.85rem;
}

.footer-bottom p {
    margin: 0;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: var(--color-gray-600);
}

.footer-bottom-links a:hover {
    color: var(--color-white);
}

/* ==========================================================================
   FLOATING WHATSAPP & BACK TO TOP BUTTON
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: var(--transition-normal);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    background-color: #128C7E;
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.5);
}

.whatsapp-float::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    top: 0;
    left: 0;
    opacity: 0.7;
    z-index: -1;
    animation: whatsappPulse 2s infinite;
}

/* ==========================================================================
   KEYFRAME ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatShape {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

@keyframes pulseBlueprint {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes floatOverlay {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-10px);
    }
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVE DESIGN)
   ========================================================================== */
@media (max-width: 992px) {
    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.85rem; }
    
    .hero-section {
        min-height: auto;
        padding-top: 130px;
        padding-bottom: 70px;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-text h1 {
        font-size: 2.75rem;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-graphic {
        max-width: 550px;
        width: 100%;
        margin: 0 auto;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr;
    }
    
    .footer-col:last-child {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    /* Navbar styling on mobile */
    .nav-toggle {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 100px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 100px);
        background-color: var(--color-white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        padding: 50px 20px;
        transition: var(--transition-normal);
        box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
        z-index: 999;
    }
    
    .header-nav.scrolled .nav-menu {
        top: 90px;
        height: calc(100vh - 90px);
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-list {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        width: 100%;
    }
    
    .nav-item a {
        font-size: 1.25rem;
    }
    
    .nav-cta {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }
    
    .nav-cta .btn {
        width: 80%;
    }
    
    /* Footer columns response */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .footer-col:first-child, .footer-col:last-child {
        grid-column: span 2;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .section {
        padding: 50px 0;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }
    
    .hero-text h1 {
        font-size: 2.25rem;
    }
    
    .hero-btns .btn {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        grid-column: span 1 !important;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }
}

/* ==========================================================================
   GALERÍA DE PROYECTOS Y MUESTRAS (NUEVO)
   ========================================================================== */
.gallery-filter-wrapper {
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background-color: var(--color-light);
    border: 1px solid var(--color-gray-200);
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-primary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    background-color: var(--color-gray-200);
    transform: translateY(-1px);
}

.filter-btn.active {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.gallery-item {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
}

.gallery-item.show {
    display: block;
    animation: fadeInScale 0.45s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item.hide {
    display: none;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.gallery-item-inner {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(5, 24, 48, 0.95) 15%, rgba(5, 24, 48, 0.4) 65%, transparent 100%);
    opacity: 0;
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 25px;
    z-index: 2;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

/* Technical grid blueprint lines overlay inside cards */
.gallery-item-overlay::before {
    content: '';
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: 12px;
    right: 12px;
    border: 1px dashed rgba(208, 169, 51, 0.4);
    transform: scale(0.94);
    opacity: 0;
    transition: var(--transition-normal);
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover .gallery-item-overlay::before {
    transform: scale(1);
    opacity: 1;
}

.gallery-item-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-secondary-light);
    letter-spacing: 1.5px;
    margin-bottom: 5px;
    display: inline-block;
}

.gallery-item-overlay h3 {
    color: var(--color-white);
    font-size: 1.25rem;
    margin-bottom: 5px;
    font-weight: 700;
}

.gallery-item-overlay p {
    color: var(--color-gray-300);
    font-size: 0.85rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gallery-item-overlay p i {
    color: var(--color-secondary);
}

/* ==========================================================================
   LIGHTBOX MODAL DE GALERÍA (NUEVO)
   ========================================================================== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 24, 48, 0.95);
    backdrop-filter: blur(15px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.lightbox-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-container {
    display: flex;
    align-items: center;
    width: 90%;
    max-width: 950px;
    position: relative;
    gap: 20px;
}

.lightbox-content {
    background-color: var(--color-primary-dark);
    border: 2px solid var(--color-secondary);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-glow);
    overflow: hidden;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.lightbox-content img {
    max-height: 60vh;
    width: 100%;
    object-fit: contain;
    background-color: #030a14;
    display: block;
}

.lightbox-caption {
    padding: 25px 30px;
    background-color: rgba(9, 40, 77, 0.98);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-caption h3 {
    color: var(--color-secondary-light);
    margin-bottom: 8px;
    font-size: 1.35rem;
    font-weight: 700;
}

.lightbox-caption p {
    color: var(--color-gray-300);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    font-size: 3rem;
    color: var(--color-white);
    cursor: pointer;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--color-secondary);
    transform: scale(1.1);
}

.lightbox-nav {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-white);
    font-size: 1.5rem;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.lightbox-nav:hover {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
    color: var(--color-primary-dark);
    box-shadow: var(--shadow-glow);
}

@media (max-width: 768px) {
    .lightbox-container {
        width: 95%;
        gap: 10px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .lightbox-close {
        top: -45px;
        font-size: 2.5rem;
    }
}

/* ==========================================================================
   IMÁGENES DE TARJETAS DE SERVICIOS (NUEVO)
   ========================================================================== */
.service-detail-image {
    margin: -40px -30px 25px -30px;
    height: 200px;
    overflow: hidden;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0;
    border-bottom: 3px solid var(--color-secondary);
    position: relative;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.service-detail-card:hover .service-detail-image img {
    transform: scale(1.06);
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS (NUEVO)
   ========================================================================== */
.reveal {
    position: relative;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
}

.reveal.fade-bottom {
    transform: translateY(50px);
}

.reveal.fade-left {
    transform: translateX(-50px);
}

.reveal.fade-right {
    transform: translateX(50px);
}

.reveal.scale-up {
    transform: scale(0.92);
}

.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Stagger delay classes for grid items */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }

/* Legal transparency section inside Nosotros */
.legal-wrapper {
    max-width: 1050px;
    margin: 0 auto;
    text-align: center;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 30px;
    border-radius: var(--border-radius-md);
    background-color: rgba(255, 255, 255, 0.03);
    margin-top: 30px;
}

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

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

/* ==========================================================================
   WHATSAPP MINI-CHAT WIDGET
   ========================================================================== */
.wa-chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 350px;
    background-color: #f0f2f5;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: var(--font-primary, inherit);
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.wa-chat-widget.open {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

.wa-chat-header {
    background: linear-gradient(135deg, var(--color-primary, #09284d) 0%, var(--color-primary-dark, #051830) 100%);
    color: var(--color-white, #ffffff);
    padding: 18px 16px;
    display: flex;
    align-items: center;
    position: relative;
    border-bottom: 2px solid var(--color-secondary, #d0a933);
}

.wa-chat-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: var(--color-white, #ffffff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-right: 12px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.wa-chat-online-dot {
    position: absolute;
    width: 11px;
    height: 11px;
    background-color: #25d366;
    border-radius: 50%;
    bottom: 0;
    right: 0;
    border: 2px solid var(--color-primary, #09284d);
}

.wa-chat-header-info {
    flex: 1;
}

.wa-chat-agent-name {
    font-size: 0.95rem;
    font-weight: 700;
    margin: 0;
    color: var(--color-white, #ffffff);
    letter-spacing: 0.5px;
}

.wa-chat-agent-status {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
    margin-top: 2px;
}

.wa-chat-close-btn {
    background: none;
    border: none;
    color: var(--color-white, #ffffff);
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.2s;
    position: absolute;
    top: 15px;
    right: 15px;
    line-height: 1;
}

.wa-chat-close-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.wa-chat-body {
    padding: 16px;
    height: 220px;
    overflow-y: auto;
    background-image: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    background-color: #efeae2;
    background-size: cover;
    background-repeat: repeat;
}

.wa-chat-msg-bubble {
    background-color: var(--color-white, #ffffff);
    padding: 10px 14px;
    border-radius: 0 12px 12px 12px;
    max-width: 88%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    position: relative;
}

.wa-chat-msg-sender {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--color-primary, #09284d);
    display: block;
    margin-bottom: 4px;
}

.wa-chat-msg-text {
    font-size: 0.83rem;
    color: #333333;
    line-height: 1.45;
    margin: 0;
}

.wa-chat-msg-time {
    font-size: 0.65rem;
    color: #999999;
    display: block;
    text-align: right;
    margin-top: 4px;
}

.wa-chat-footer {
    background-color: #f0f2f5;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.wa-chat-input {
    flex: 1;
    border: 1px solid #e1e4e8;
    border-radius: 20px;
    padding: 10px 15px;
    font-size: 0.88rem;
    resize: none;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background-color: var(--color-white, #ffffff);
    height: 40px;
    max-height: 80px;
    box-sizing: border-box;
    line-height: 1.2;
}

.wa-chat-input:focus {
    border-color: var(--color-primary, #09284d);
    box-shadow: 0 0 0 2px rgba(9, 40, 77, 0.1);
}

.wa-chat-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #25d366;
    color: var(--color-white, #ffffff);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    box-shadow: 0 3px 6px rgba(37, 211, 102, 0.3);
    transition: background-color 0.2s, transform 0.2s, box-shadow 0.2s;
    flex-shrink: 0;
}

.wa-chat-send-btn:hover {
    background-color: #128c7e;
    transform: scale(1.08);
    box-shadow: 0 4px 8px rgba(18, 140, 126, 0.4);
}

.wa-chat-send-btn:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .wa-chat-widget {
        bottom: 85px;
        right: 20px;
        width: calc(100% - 40px);
        max-width: 340px;
    }
}

/* Floating Social Menu (Left Side) */
.social-float-menu {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    z-index: 999;
}

.social-float-trigger {
    width: 60px;
    height: 60px;
    background: #09284d;
    border: 2px solid #00f2fe;
    color: #00f2fe;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    outline: none;
    position: relative;
    z-index: 2;
    padding: 0;
}

.social-float-trigger:hover {
    transform: scale(1.08);
    box-shadow: 0 0 15px rgba(0, 242, 254, 0.6);
    background: #00f2fe;
    color: #09284d;
}

.social-float-menu.open .social-float-trigger {
    transform: rotate(180deg);
    background: #ff3366;
    border-color: #ff3366;
    color: #ffffff;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.6);
}

/* Sub-buttons list container (positioned 10px above the main trigger) */
.social-float-sub-buttons {
    position: absolute;
    bottom: 70px;
    left: 6px; /* Centered relative to the 60px trigger ( (60 - 48)/2 = 6px ) */
    display: flex;
    flex-direction: column-reverse; /* WhatsApp at bottom, Facebook at top */
    gap: 12px;
    pointer-events: none;
    z-index: 1;
}

.social-float-menu.open .social-float-sub-buttons {
    pointer-events: auto;
}

/* Sub-buttons base styling */
.social-sub-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.25rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: scale(0.3) translateY(20px);
    text-decoration: none;
}

/* Individual Social Brand Colors */
.social-sub-btn.wa { background-color: #25D366; box-shadow: 0 0 10px rgba(37, 211, 102, 0.4); }
.social-sub-btn.ln { background-color: #0077B5; box-shadow: 0 0 10px rgba(0, 119, 181, 0.4); }
.social-sub-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); box-shadow: 0 0 10px rgba(220, 39, 67, 0.4); }
.social-sub-btn.fb { background-color: #1877F2; box-shadow: 0 0 10px rgba(24, 119, 242, 0.4); }

.social-sub-btn:hover {
    transform: scale(1.1) !important;
    filter: brightness(1.15);
    transition: transform 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
    transition-delay: 0s !important;
}

/* Reveal transition when open */
.social-float-menu.open .social-sub-btn {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Staggered delay for spring animation */
.social-sub-btn.wa { transition-delay: 0.05s; }
.social-sub-btn.ln { transition-delay: 0.1s; }
.social-sub-btn.ig { transition-delay: 0.15s; }
.social-sub-btn.fb { transition-delay: 0.2s; }

/* Mobile adaptation */
@media (max-width: 768px) {
    .social-float-menu {
        bottom: 20px;
        left: 20px;
    }
}

