﻿/* WORLD-CLASS ULTRA-PREMIUM UI/UX DESIGN */
:root {
    --color-white: #FFFFFF;
    --color-gray-ultra: #F9FAFB;
    --color-royal: #0B3C95; /* Deep Vibrant Royal Blue */
    --color-royal-dark: #072666;
    --color-gold: #D4AF37; /* Satin Gold Accent */
    --color-gold-hover: #C5A059;
    --color-text-main: #111827;
    --color-text-muted: #4B5563;
    
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-deep: 0 25px 50px -12px rgba(11, 60, 149, 0.15);
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Utilities */
.container { max-width: 1280px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 7rem 0; }
.section-white { background-color: var(--color-white); }
.section-gray { background-color: var(--color-gray-ultra); }
.section-royal-brand { background-color: var(--color-royal); }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3.5rem; }
.mb-5 { margin-bottom: 3.5rem; }
.pb-0 { padding-bottom: 0 !important; }
.text-gold { color: var(--color-gold) !important; }
.text-white { color: var(--color-white) !important; }
.text-large { font-size: 1.15rem; color: var(--color-text-muted); line-height: 1.8; }
.justify-center { justify-content: center; }

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--color-royal-dark); font-weight: 800; letter-spacing: -0.02em; }
.title-royal { font-size: 2.75rem; line-height: 1.15; color: var(--color-royal-dark); }
.title-white { font-size: 2.75rem; line-height: 1.15; color: var(--color-white); }
.subtitle { font-size: 1.25rem; color: var(--color-text-muted); max-width: 800px; line-height: 1.7; font-weight: 400; }

.badge-gold {
    display: inline-block; padding: 0.4rem 1.2rem;
    border: 1px solid var(--color-gold); color: var(--color-gold);
    font-size: 0.75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.15em; border-radius: 50px; margin-bottom: 1.5rem;
    background-color: rgba(212, 175, 55, 0.05);
}

/* Glassmorphism Navbar (Sticky) */
.navbar-glass {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-smooth);
}
.nav-content { display: flex; justify-content: space-between; align-items: center; height: 100px; transition: height var(--transition-smooth); }
.navbar-glass.scrolled .nav-content { height: 75px; }

.nav-logo { max-height: 65px; width: auto; transition: max-height var(--transition-smooth); }
.navbar-glass.scrolled .nav-logo { max-height: 48px; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }
.nav-links a { font-family: var(--font-heading); font-weight: 600; color: var(--color-text-main); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; transition: color var(--transition-smooth); }
.nav-links a:hover, .nav-links a.active { color: var(--color-royal); }
.hamburger { display: none; font-size: 1.5rem; color: var(--color-royal); cursor: pointer; }

/* Buttons Premium con Glint Effect */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.1rem 2.8rem; font-family: var(--font-heading); font-weight: 700; font-size: 0.95rem;
    text-transform: uppercase; letter-spacing: 0.1em;
    border-radius: 6px; cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative; overflow: hidden; z-index: 1;
}

.btn::after {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-25deg); z-index: -1; transition: none;
}

.btn:hover::after { animation: glint 0.8s forwards; }
@keyframes glint { 100% { left: 200%; } }
.btn:hover { transform: translateY(-4px); }

.btn-royal-glint { background-color: var(--color-royal); color: var(--color-white); border: 2px solid var(--color-gold); box-shadow: 0 10px 20px rgba(11, 60, 149, 0.3); }
.btn-royal-glint:hover { background-color: var(--color-royal-dark); border-color: var(--color-gold-hover); box-shadow: 0 15px 30px rgba(212, 175, 55, 0.4); }

.btn-transparent-glint { background-color: transparent; color: var(--color-white); border: 2px solid rgba(255,255,255,0.8); backdrop-filter: blur(4px); }
.btn-transparent-glint:hover { background-color: var(--color-white); color: var(--color-royal); border-color: var(--color-white); box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2); }

.btn-nav-action { padding: 0.8rem 1.8rem; background-color: transparent; border: 2px solid var(--color-gold); color: var(--color-royal) !important; }
.btn-nav-action:hover { background-color: var(--color-gold); color: var(--color-white) !important; }

/* Hero Premium */
.hero-premium { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; padding-top: 100px; background-color: #000; overflow: hidden; }
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; opacity: 0.8; transform: scale(1.05); animation: slowZoom 20s infinite alternate; }
@keyframes slowZoom { 0% { transform: scale(1.05); } 100% { transform: scale(1.1); } }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(135deg, rgba(7,38,102,0.9) 0%, rgba(0,0,0,0.6) 100%); }

.hero-content { position: relative; z-index: 1; max-width: 950px; color: var(--color-white); display: flex; flex-direction: column; align-items: center; }
.hero-logo-main { max-height: 140px; width: auto; margin-bottom: 2.5rem; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4)); }
.hero-title { color: var(--color-white); font-size: 3.5rem; margin-bottom: 1.5rem; line-height: 1.1; font-weight: 900; }
.hero-subtitle { font-size: 1.25rem; font-weight: 300; max-width: 800px; line-height: 1.7; opacity: 0.9; }
.hero-actions { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Servicios Premium Grid (Strict 3 top, 2 centered bottom) */
.services-premium-wrapper { display: flex; flex-wrap: wrap; justify-content: center; gap: 2.5rem; }
.card-service-premium {
    flex: 0 1 calc(33.333% - 1.66rem);
    min-width: 320px;
    background: var(--color-white);
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
    border-bottom: 3px solid transparent;
    overflow: hidden;
    display: flex; flex-direction: column;
}
.card-service-premium:hover {
    transform: scale(1.03) translateY(-8px);
    box-shadow: var(--shadow-deep);
    border-bottom: 3px solid var(--color-gold);
}
.card-img { width: 100%; height: 240px; background-size: cover; background-position: center; transition: transform 0.6s ease; }
.card-service-premium:hover .card-img { transform: scale(1.08); }
.card-content { padding: 2.5rem 2rem; background: var(--color-white); position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; text-align: left; }
.card-content h3 { font-size: 1.35rem; margin-bottom: 1rem; color: var(--color-royal-dark); }
.card-content p { color: var(--color-text-muted); font-size: 1rem; margin-bottom: 2rem; flex: 1; line-height: 1.6; }
.link-gold { color: var(--color-gold); font-family: var(--font-heading); font-weight: 700; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; display: inline-flex; align-items: center; gap: 0.5rem; transition: color var(--transition-smooth); }
.link-gold:hover { color: var(--color-royal); }

/* Asymmetric Tech Section */
.flex-asymmetric { display: flex; align-items: center; flex-wrap: wrap; gap: 4rem; }
.split-text { flex: 1.2; min-width: 320px; }
.split-image { flex: 1; min-width: 320px; position: relative; }

.tech-list { display: flex; flex-direction: column; gap: 2rem; }
.tech-list li { display: flex; gap: 1.5rem; align-items: flex-start; }
.icon-circle-gold { width: 56px; height: 56px; border-radius: 50%; background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.3); display: flex; align-items: center; justify-content: center; color: var(--color-gold); font-size: 1.5rem; flex-shrink: 0; }
.tech-list h4 { color: var(--color-royal-dark); font-size: 1.15rem; margin-bottom: 0.3rem; }
.tech-list p { color: var(--color-text-muted); font-size: 1rem; line-height: 1.5; margin: 0; }

/* Control Tower UI Card */
.control-tower-card {
    background: #0F172A; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-deep);
    border: 1px solid rgba(255,255,255,0.1); transform: perspective(1000px) rotateY(-5deg); transition: transform var(--transition-smooth);
}
.control-tower-card:hover { transform: perspective(1000px) rotateY(0deg) translateY(-10px); }
.ct-header { background: #1E293B; padding: 1rem 1.5rem; color: var(--color-white); font-family: var(--font-heading); font-weight: 600; font-size: 0.9rem; display: flex; align-items: center; gap: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.05); }
.ct-dot { width: 10px; height: 10px; background: #10B981; border-radius: 50%; display: block; box-shadow: 0 0 10px #10B981; }
.blink { animation: blink 2s infinite; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.ct-body { position: relative; height: 350px; background-size: cover; background-position: center; }
.ct-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,23,42,0.95), rgba(15,23,42,0.4)); display: flex; flex-direction: column; justify-content: space-between; padding: 2rem; }
.ct-stats-row { display: flex; gap: 1.5rem; }
.ct-stat-mini { background: rgba(255,255,255,0.05); backdrop-filter: blur(8px); padding: 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); display: flex; flex-direction: column; }
.ct-stat-mini span { color: #94A3B8; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.3rem; }
.ct-stat-mini strong { color: var(--color-white); font-size: 1.5rem; font-family: var(--font-heading); }
.ct-radar-ui { align-self: flex-end; width: 120px; height: 120px; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 50%; position: relative; display: flex; align-items: center; justify-content: center; }
.ct-radar-ui::before { content: ''; position: absolute; width: 60px; height: 60px; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 50%; }
.radar-scan { position: absolute; width: 50%; height: 50%; top: 0; right: 0; background: linear-gradient(45deg, rgba(212,175,55,0) 0%, rgba(212,175,55,0.5) 100%); transform-origin: bottom left; animation: scan 4s linear infinite; border-radius: 0 100% 0 0; }
@keyframes scan { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* Stats Premium */
.stats-premium-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 4rem; }
.stat-premium-box { display: flex; flex-direction: column; align-items: center; }
.stat-number { font-family: var(--font-heading); font-size: 4rem; font-weight: 900; color: var(--color-gold); line-height: 1; margin-bottom: 1rem; text-shadow: 0 4px 15px rgba(212, 175, 55, 0.3); }
.stat-label { font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.9); font-size: 0.95rem; }

/* Competencies Grid */
.competencies-premium-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; }
.comp-premium-box {
    background: var(--color-white); border-radius: 12px;
    padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1rem;
    box-shadow: var(--shadow-soft); transition: all var(--transition-smooth);
    min-width: 280px; flex: 1 1 auto; border: 1px solid rgba(0,0,0,0.03);
}
.comp-premium-box:hover { transform: translateY(-5px); box-shadow: var(--shadow-deep); border-color: rgba(212, 175, 55, 0.3); }
.comp-premium-box i { font-size: 1.6rem; }
.comp-premium-box span { font-family: var(--font-heading); font-weight: 700; color: var(--color-royal-dark); font-size: 1rem; }

/* Footer */
.footer-ultra { border-top: 1px solid #E5E7EB; padding: 4rem 0; background: var(--color-white); }
.footer-logo-img { max-height: 60px; width: auto; opacity: 0.9; }
.copyright { color: var(--color-text-muted); font-size: 0.95rem; }

/* Animations Scroll (Fade-In Slide-Up) */
.reveal { opacity: 0; transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.fade-in-up { transform: translateY(40px); }
.fade-in-up.active { opacity: 1; transform: translateY(0); }
.fade-in { opacity: 0; transform: scale(0.97); }
.fade-in.active { opacity: 1; transform: scale(1); }

/* HYBRID NAVBAR OFF-CANVAS DESIGN */
.navbar-hybrid {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: all var(--transition-smooth);
}
.nav-content-hybrid { display: flex; justify-content: space-between; align-items: center; height: 100px; transition: height var(--transition-smooth); }
.navbar-hybrid.scrolled .nav-content-hybrid { height: 80px; }

/* Left */
.nav-left { display: flex; align-items: center; gap: 1.5rem; }
.hamburger-btn { width: 30px; height: 22px; position: relative; cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; }
.hamburger-btn span { display: block; width: 100%; height: 3px; background-color: var(--color-royal-dark); border-radius: 3px; transition: all 0.3s ease; }
.hamburger-btn:hover span { background-color: var(--color-gold); }
.nav-logo-hybrid { max-height: 65px; width: auto; transition: max-height var(--transition-smooth); }
.navbar-hybrid.scrolled .nav-logo-hybrid { max-height: 50px; }

/* Center Pill */
.contact-bar-pill { background: var(--color-gray-ultra); padding: 0.5rem 1.5rem; border-radius: 50px; display: flex; align-items: center; gap: 2rem; border: 1px solid rgba(0,0,0,0.03); box-shadow: inset 0 2px 4px rgba(0,0,0,0.02); }
.contact-info-block { display: flex; align-items: center; gap: 0.8rem; }
.contact-info-block i { color: var(--color-gold); font-size: 1.2rem; }
.contact-info-block span { font-size: 0.75rem; color: var(--color-text-muted); line-height: 1.2; font-family: var(--font-body); }
.contact-info-block strong { color: var(--color-royal-dark); font-size: 0.85rem; font-weight: 700; }

/* Right */
.nav-right { display: flex; align-items: center; gap: 1rem; }
.btn-contact-hybrid { background-color: var(--color-royal); color: var(--color-white); border: 2px solid var(--color-gold); border-radius: 6px; padding: 0.8rem 1.5rem; font-family: var(--font-heading); font-weight: 800; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; transition: all var(--transition-smooth); display: inline-block; }
.btn-contact-hybrid:hover { background-color: var(--color-royal-dark); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4); transform: translateY(-2px); color: white; }
.header-badges i { color: var(--color-gold); font-size: 1.5rem; opacity: 0.9; }

/* OVERLAY */
.menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px); z-index: 1999; opacity: 0; pointer-events: none; transition: opacity 0.4s ease; }
.menu-overlay.active { opacity: 1; pointer-events: auto; }

/* SIDEBAR OFF-CANVAS */
.sidebar-menu { position: fixed; top: 0; left: -100%; width: 320px; height: 100vh; background: var(--color-white); z-index: 2000; transition: left 0.4s cubic-bezier(0.25, 1, 0.5, 1); box-shadow: 10px 0 30px rgba(0,0,0,0.1); display: flex; flex-direction: column; overflow-y: auto; }
.sidebar-menu.active { left: 0; }

.sidebar-header { padding: 1.5rem 2rem; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--color-gray-ultra); }
.sidebar-logo { max-height: 50px; width: auto; }
.close-btn { background: none; border: none; font-size: 1.8rem; color: var(--color-text-muted); cursor: pointer; transition: color 0.3s; }
.close-btn:hover { color: var(--color-royal); transform: rotate(90deg); }

.sidebar-nav { padding: 2rem 0; flex: 1; }
.sidebar-link { display: block; padding: 1rem 2rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-royal-dark); transition: all 0.3s ease; border-left: 4px solid transparent; }
.sidebar-link:hover, .sidebar-link.active { background: linear-gradient(90deg, var(--color-royal) 0%, var(--color-royal-dark) 100%); color: var(--color-white); border-left: 4px solid var(--color-gold); padding-left: 2.5rem; }

.sidebar-footer { padding: 2rem; border-top: 1px solid var(--color-gray-ultra); background: #FAFAFA; }
.social-icons { display: flex; gap: 1rem; margin-bottom: 1.5rem; }
.social-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--color-white); display: flex; align-items: center; justify-content: center; color: var(--color-royal); font-size: 1.2rem; border: 1px solid #EAEAEA; transition: all 0.3s ease; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.social-circle:hover { background: var(--color-gold); color: white; border-color: var(--color-gold); transform: translateY(-3px); }
.sidebar-copyright { font-size: 0.8rem; color: var(--color-text-muted); line-height: 1.5; }

/* Servicios de Traslado Specifics */
.grid-especialidades { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.card-especialidad {
    background: var(--color-white); border-radius: 16px;
    box-shadow: var(--shadow-soft); transition: all var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03); border-bottom: 3px solid transparent;
    overflow: hidden;
}
.card-especialidad:hover { transform: translateY(-5px); box-shadow: var(--shadow-deep); border-bottom-color: var(--color-gold); }
.card-especialidad-img { width: 100%; height: 220px; overflow: hidden; }
.card-especialidad-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; border-top-left-radius: 16px; border-top-right-radius: 16px; }
.card-especialidad:hover .card-especialidad-img img { transform: scale(1.05); }
.card-especialidad-body { padding: 2rem; }
.card-especialidad h4 { font-size: 1.25rem; color: var(--color-royal-dark); margin-bottom: 1rem; text-transform: uppercase; }

.row-operadores { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.card-lista-premium { background: var(--color-white); padding: 2.5rem; border-radius: 16px; box-shadow: var(--shadow-card); border-top: 4px solid var(--color-gold); }
.list-premium-gold { list-style: none; padding: 0; margin: 0; }
.list-premium-gold li { position: relative; padding-left: 2.5rem; margin-bottom: 1.2rem; font-size: 1.05rem; color: var(--color-text-main); font-weight: 600; }
.list-premium-gold li::before {
    content: '\f058'; /* FontAwesome check-circle */
    font-family: 'Font Awesome 6 Free'; font-weight: 900;
    position: absolute; left: 0; top: 1px; color: var(--color-gold); font-size: 1.4rem;
}

.grid-infra { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem; }
.card-infra { background: var(--color-gray-ultra); padding: 3rem 2.5rem; border-radius: 12px; border-left: 4px solid var(--color-royal); transition: all var(--transition-smooth); }
.card-infra:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.card-infra h3 { color: var(--color-royal-dark); margin-bottom: 1.2rem; font-family: var(--font-heading); }

/* Subpage Specifics */
.hero-subpage { position: relative; min-height: 55vh; display: flex; align-items: center; justify-content: center; padding-top: 100px; background-color: #000; overflow: hidden; }

/* Distintivos Grid (Strict 4 cols) */
.distintivos-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.card-distintivo {
    background: var(--color-white); border-radius: 16px; padding: 2.5rem 2rem;
    box-shadow: var(--shadow-card); transition: all var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03); border-bottom: 3px solid transparent;
}
.card-distintivo:hover { transform: translateY(-8px); box-shadow: var(--shadow-deep); border-bottom-color: var(--color-gold); }
.card-distintivo h4 { font-size: 1.25rem; color: var(--color-royal-dark); margin-bottom: 1rem; }
.card-distintivo p { color: var(--color-text-muted); font-size: 0.95rem; }

/* Industrias Grid (Strict 4x2) */
.industrias-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.card-industria {
    background: var(--color-gray-ultra); border-radius: 12px; padding: 2rem 1rem;
    box-shadow: var(--shadow-soft); transition: all var(--transition-smooth);
    border: 1px solid rgba(0,0,0,0.03); display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.card-industria:hover { background: var(--color-royal); transform: scale(1.05); box-shadow: var(--shadow-deep); }
.card-industria h5 { font-size: 1.1rem; color: var(--color-royal-dark); transition: color var(--transition-smooth); }
.card-industria:hover h5, .card-industria:hover i { color: var(--color-white) !important; }

/* Responsive Adjustments for Hybrid Nav */
@media (max-width: 1100px) {
    .nav-center { display: none; }
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
    .card-service-premium { flex: 0 1 calc(50% - 1.25rem); } /* 2 per row */
    .hero-title { font-size: 2.8rem; }
    .stat-number { font-size: 3rem; }
    .distintivos-grid { grid-template-columns: repeat(2, 1fr); }
    .industrias-grid { grid-template-columns: repeat(2, 1fr); }
    .row-operadores { grid-template-columns: 1fr; gap: 2rem; }
    .grid-infra { gap: 1.5rem; }
}

@media (max-width: 768px) {
    .card-service-premium { flex: 0 1 100%; } /* 1 per row */
    .flex-asymmetric { flex-direction: column; gap: 3rem; }
    .hero-title { font-size: 2.2rem; }
    .section { padding: 4rem 0; }
    .stats-premium-grid { gap: 2.5rem; }
    .distintivos-grid { grid-template-columns: 1fr; }
    .industrias-grid { grid-template-columns: 1fr; }
    .grid-especialidades { grid-template-columns: 1fr; }
    .grid-infra { grid-template-columns: 1fr; }
    .nav-content-hybrid { height: 70px; position: relative; justify-content: flex-start; }
    .nav-left { width: 100%; justify-content: flex-start; }
    .logo-link { position: absolute; left: 50%; transform: translateX(-50%); }
    .nav-logo-hybrid { max-height: 45px !important; width: auto; }
    .nav-center, .nav-right, .btn-contact-hybrid { display: none !important; }
    .sidebar-menu { width: 85%; max-width: 300px; }
    .custom-voice-trigger-container { bottom: 20px; right: 20px; transform: scale(0.9); transform-origin: bottom right; }
    .quantum-voice-orb { width: 180px; height: 180px; }
    .voice-status-text { font-size: 1.2rem; }
    .sidebar-nav ul { padding: 0; margin: 0; list-style: none; }
    .sidebar-link { font-family: var(--font-heading) !important; font-size: 1.15rem; padding: 1.2rem 2rem; border-bottom: 1px solid rgba(0,0,0,0.03); }
}

/* MODAL DE COTIZACION */
.modal-royal-overlay {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 999999 !important;
    background-color: rgba(0, 0, 0, 0.75) !important; 
    backdrop-filter: blur(10px) !important; 
    -webkit-backdrop-filter: blur(10px) !important;
}

.modal-royal-card {
    width: 90% !important;
    max-width: 500px !important;
    max-height: 85vh !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    margin: auto !important;
    padding: 30px 25px !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    position: relative !important; 
    border-top: 6px solid #D4AF37 !important; 
    box-shadow: 0 15px 40px rgba(0,0,0,0.6) !important; 
    font-family: sans-serif !important;
}
.modal-royal-close { position: absolute !important; top: 10px !important; right: 18px !important; background: none !important; border: none !important; font-size: 32px !important; cursor: pointer !important; color: #333 !important; }
.modal-royal-field { margin-bottom: 18px !important; text-align: left !important; }
.modal-royal-field label { display: block !important; margin-bottom: 7px !important; font-weight: bold !important; color: #1E40AF !important; font-size: 14px !important; }
.modal-royal-field input { width: 100% !important; padding: 12px !important; border: 1px solid #bbbbbb !important; border-radius: 6px !important; font-size: 15px !important; color: #000000 !important; background: #ffffff !important; }
#royal_submit_btn { width: 100% !important; background-color: #1E40AF !important; color: #ffffff !important; border: 2px solid #D4AF37 !important; padding: 14px !important; border-radius: 6px !important; font-weight: bold !important; cursor: pointer !important; font-size: 15px !important; }

/* ==========================================================================
   AUDITORÍA Y BLINDAJE RESPONSIVO GLOBAL (Royal Tow and Haul)
   ========================================================================== */

/* 1. CONTROL PARA PANTALLAS ULTRA GRANDES (Monitores de Escritorio) */
@media screen and (min-width: 1440px) {
    section, .container, main {
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    /* Asegura que el contenido interno no se estire infinitamente */
    section > div {
        max-width: 1200px !important;
        margin: 0 auto !important;
    }
}

/* 2. CONTROL PARA TABLETAS Y DISPOSITIVOS MEDIANOS */
@media screen and (max-width: 1024px) {
    /* Forzar que los grids de 4 columnas pasen a 2 columnas para que no se amontonen */
    div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

/* 3. CONTROL CRÍTICO PARA DISPOSITIVOS MÓVILES (Celulares) */
@media screen and (max-width: 768px) {
    /* Forzar que todas las rejillas de dos columnas (imagen/texto) pasen a una sola columna */
    div[style*="grid-template-columns: 1fr 1fr"],
    div[style*="grid-template-columns: 1fr 1.2fr"],
    div[style*="grid-template-columns: 1.2fr 1fr"],
    div[style*="grid-template-columns: 1.1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    /* Asegurar que las imágenes ocupen el 100% de ancho en vertical y no se corten */
    img[style*="height: 250px"], 
    img[style*="height: 260px"], 
    img[style*="height: 280px"],
    img[style*="height: 300px"],
    img[style*="height: 320px"] {
        height: 220px !important;
        width: 100% !important;
        grid-column: 1 !important; /* Corrige el orden invertido en móvil */
    }

    /* Reducción sutil de paddings de cabecera para que no coman pantalla en celular */
    section[style*="padding: 180px"] {
        padding: 130px 15px 40px 15px !important;
    }
    
    section {
        padding: 40px 15px !important;
    }

    /* Ajuste de tipografía principal en móviles para evitar desbordes */
    h1 {
        font-size: 32px !important;
    }
    h2 {
        font-size: 24px !important;
    }

    /* Grids de tarjetas del footer y bloques a 1 sola columna */
    div[style*="grid-template-columns: repeat(4"],
    footer > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    /* El formulario de contacto se adapta al ancho total del celular */
    div[style*="padding: 40px"] {
        padding: 25px 15px !important;
    }
}

/* ==========================================================================
   PARCHE DE EMERGENCIA DE AJUSTE MÓVIL (Royal Tow and Haul)
   ========================================================================== */

@media screen and (max-width: 768px) {
    /* 1. BLINDAJE ANTI-DESBORDAMIENTO GLOBAL */
    html, body {
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* 2. FORZAR FLEX-WRAP EN LA BARRA DE CONTACTO DEL ENCABEZADO */
    /* Busca el contenedor de los teléfonos/correos y oblígalo a ordenarse verticalmente */
    div[style*="display: flex"], 
    header div, 
    .contact-bar {
        flex-wrap: wrap !important;
    }

    /* Ajuste individual de las burbujas de contacto para que no se encimen */
    div[style*="background: #ffffff"] span,
    div[style*="border-radius"] {
        font-size: 13px !important;
        padding: 5px 10px !important;
    }

    /* 3. AJUSTE ELÁSTICO DE TEXTOS Y TÍTULOS EN HERO */
    h1, .hero-title {
        font-size: 28px !important;
        line-height: 1.3 !important;
        word-break: break-word !important;
        overflow-wrap: break-word !important;
    }

    p, .hero-description {
        font-size: 15px !important;
        line-height: 1.5 !important;
    }

    /* 4. REDUCCIÓN DE ESPACIADO PARA EVITAR VACÍOS EN PANTALLAS PEQUEÑAS */
    section {
        padding: 40px 15px !important;
    }
    
    /* Corregir el padding superior del Hero en móviles para que libre el menú colapsado */
    section[style*="padding: 180px"] {
        padding: 140px 15px 40px 15px !important;
    }
}
