/* =========================================
   VARIABLES & RESET
   ========================================= */
:root {
    /* Exact Palette from colores.css */
    --color-primary: #003C5A;
    --color-secondary: #008CA5;

    --color-accent: #00B9CC;
    /* Brighter derived for interactions */

    --color-dark: #282828;
    /* As per palette */
    --color-light: #F0F0F0;
    /* As per palette */
    --color-surface: #ffffff;

    --color-white: #ffffff;
    --color-text-light: #666666;
    --color-navy-deep: #000F19;
    /* Deep Navy Overlay from brand palette */
    --color-highlight: #B4EAED;
    /* Highlight (Sky) from brand palette */

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 40px -10px rgba(0, 60, 90, 0.1);
    --shadow-hover: 0 20px 50px -10px rgba(0, 60, 90, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 70px;
    /* Compensates for fixed navbar height */
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    line-height: 1.6;
    background-color: var(--color-navy-deep);
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

.text-white {
    color: var(--color-white);
}

.mt-4 {
    margin-top: 1.5rem;
}

.mt-5 {
    margin-top: 3rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-width-700 {
    max-width: 700px;
}

.max-width-800 {
    max-width: 800px;
}

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

.dark-section {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 72, 90, 0.3) 100%), url('images/hero-3.webp');
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: #4fd1e3;
    color: #282828;
    box-shadow: 0 4px 15px rgba(0, 60, 90, 0.3);
    border: none;
    padding: 14px 32px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 60, 90, 0.4);
}

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

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

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-primary);
    /* Navy Blue */
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-light);
}

.dark-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.underline {
    width: 60px;
    height: 4px;
    background: var(--color-secondary);
    margin: 15px auto 0;
    border-radius: 2px;
}

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

/* =========================================
   NAVIGATION
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: var(--transition);
    background: var(--color-primary);
}

.navbar.scrolled {
    background: #ffffff;
    /* Blanco sólido sin transparencia */
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

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

/* Logo Styles */
.logo img {
    height: 48px;
    /* Slightly larger for better visibility */
    transition: var(--transition);
    /* Make the colored logo white for the dark hero background */
    filter: brightness(0) invert(1);
}

/* When navbar is scrolled (white background), show original colored logo */
.navbar.scrolled .logo img {
    filter: none;
}

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

.mobile-logo-item {
    display: none;
}

.nav-links li a {
    color: var(--color-white);
    font-weight: 400;
    font-size: 0.95rem;
    position: relative;
}

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

.nav-links li a:hover::after {
    width: 100%;
}

/* Remove underline effect from consultation button */
.btn-nav::after {
    display: none !important;
}

.navbar.scrolled .nav-links li a {
    color: var(--color-primary);
}

.btn-nav {
    border: 2px solid var(--color-secondary);
    padding: 8px 20px !important;
    border-radius: 20px;
}

.btn-nav:hover {
    background: var(--color-secondary);
    color: var(--color-white) !important;
}

.navbar.scrolled .btn-nav:hover {
    color: var(--color-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 1001;
    width: 30px;
    height: 24px;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0;
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.bar:nth-child(1) {
    top: 0;
}

.bar:nth-child(2) {
    top: 10px;
}

.bar:nth-child(3) {
    top: 20px;
}

/* Transform hamburger to X when active */
.menu-toggle.active .bar:nth-child(1) {
    top: 10px;
    transform: rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    top: 10px;
    transform: rotate(-45deg);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    /* Fallback for older browsers */
    height: 100dvh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    text-align: center;
    overflow: hidden;
    padding-top: 80px;
    /* Offset for fixed navbar to visual center */
}

/* Contrast Layer (High Performance) */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 29, 45, 0.5);
    mix-blend-mode: multiply;
    /* Navy Deep con 50% opacidad */
    z-index: 0;
    /* Encima del slider y overlay animado (-1), debajo del contenido (1) */
    pointer-events: none;
}

/* Hero Slider Styles */
.hero-slider,
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.hero-slider {
    z-index: -2;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Desktop Images */
.hero-slide.slide-1 {
    background-image: url('images/hero-1.webp');
}

.hero-slide.slide-2 {
    background-image: url('images/hero-2.webp');
}

.hero-slide.slide-3 {
    background-image: url('images/hero-3.webp');
}

/* Mobile Images */
@media (max-width: 768px) {
    .hero-slide.slide-1 {
        background-image: url('images/hero-1-m.webp');
    }

    .hero-slide.slide-2 {
        background-image: url('images/hero-2-m.webp');
    }

    .hero-slide.slide-3 {
        background-image: url('images/hero-3-m.webp');
    }
}

.hero-overlay {
    display: none;
}

/* Keyframes removed */

/* Center Logo in Hero */
.hero-logo-wrapper {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
}

.hero-logo-center {
    height: 100px;
    /* Adjust size as needed */
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
}

.hero-content {
    z-index: 1;
    max-width: 900px;
    width: 100%;
    padding: 0 20px;
}

/* Floating animation for logo potentially */
.hero-logo-center {
    animation: floatLogo 6s ease-in-out infinite;
}

@keyframes floatLogo {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Remove old gradient BG styles if present in this block */



.hero h1 {
    font-size: 3.8rem;
    font-weight: 500;
    margin-bottom: 25px;
    line-height: 1.2;
    color: #b0f2ff;
}

.highlight {
    color: inherit;
    position: relative;
    display: inline;
    font-weight: 500;
}

/* Optional: underline or gradient text - Removed for homogenization */
/* .highlight {
   ...
} */

.hero-subtitle {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 60px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
}

.hero-subtitle span {
    display: inline;
}

.hero-subtitle .plus-symbol {
    margin: 0 15px;
    color: var(--color-accent);
    font-weight: 600;
}

/* Control line breaks for different screen sizes */
.mobile-break {
    display: none;
}

.desktop-break {
    display: inline;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Specific Glass Style for Hero Primary Button */
.hero .btn-primary {
    background: rgba(0, 140, 165, 0.4);
    /* Slightly more opaque for better glass visibility */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 185, 204, 0.6);
    /* Stronger visible Cyan Accent Glow */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero .btn-primary:hover {
    background: var(--color-secondary);
    /* Solid Teal on hover */
    border-color: #ffffff;
    /* Maintain White Border */
    box-shadow: 0 0 35px var(--color-accent), 0 0 15px var(--color-accent);
    /* Even Stronger Glow */
    transform: translateY(-2px);
    color: var(--color-white);
}

/* Specific Glass Style for Hero Outline (Contact) Button - Inverted Scheme */
.hero .btn-outline {
    background: rgba(255, 255, 255, 0.1);
    /* Very subtly white glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid var(--color-accent);
    /* Cyan Border */
    color: #ffffff;
    /* White Text requested */
    box-shadow: 0 0 20px rgba(0, 185, 204, 0.4);
    /* Soft Cyan Glow */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero .btn-outline:hover {
    background: var(--color-white);
    /* Solid White on Hover */
    color: var(--color-secondary);
    /* Teal Text */
    border-color: var(--color-accent);
    /* Maintain Cyan Border or switch to Teal if preferred */
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.6), 0 0 15px var(--color-accent);
    /* White + Cyan Glow */
    transform: translateY(-2px);
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--color-white);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* Animation utilities */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   ABOUT SECTION
   ========================================= */
#somos {
    position: relative;
    /* Deep Navy Overlay like Hero + Corporate Gradient for the section */
    background: linear-gradient(to bottom, rgba(0, 15, 25, 0.95) 0%, rgba(0, 60, 90, 0.6) 100%),
        linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: var(--color-white);
    overflow: hidden;
}

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

#somos .section-title {
    color: var(--color-accent);
    font-weight: 600;
}

#somos .underline {
    background: var(--color-white);
}

.about-intro .lead {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--color-highlight);
    /* Light sky for better pop on dark */
    line-height: 1.3;
}

.max-width-700.mx-auto {
    color: var(--color-white);
    /* White for the descriptive text */
}

.subsection-title {
    font-size: 2.2rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 30px;
}

.why-intro p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    /* Subtle white for readability */
}

.differentiators-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    /* Forced 5 columns for desktop */
    gap: 15px;
    margin-top: 50px;
}

.diff-item {
    background: var(--color-white);
    padding: 30px 20px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid rgba(0, 140, 165, 0.15);
    /* Light Teal border */
    box-shadow: 0 10px 30px rgba(0, 60, 90, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.diff-item:hover {
    transform: translateY(-8px);
    background: var(--color-white);
    box-shadow: 0 20px 50px rgba(0, 60, 90, 0.12);
    border-color: var(--color-accent);
    /* Pop of Cyan on hover */
}

.diff-icon {
    width: 65px;
    height: 65px;
    background: var(--color-accent);
    /* Cyan background */
    color: var(--color-white);
    /* White icon */
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 25px;
    transition: var(--transition);
}

.diff-item:hover .diff-icon {
    background: rgba(0, 185, 204, 0.1);
    /* Light Cyan tint */
    color: var(--color-accent);
    /* Cyan icon */
    transform: rotateY(360deg);
}

.diff-content h4 {
    color: var(--color-primary);
    /* Navy for titles */
    margin-bottom: 12px;
    font-size: 1.1rem;
    font-weight: 700;
}

.diff-content p {
    font-size: 0.95rem;
    color: var(--color-dark);
    /* Dark Neutral for text */
    line-height: 1.5;
}

/* =========================================
   ENFOQUE (SOLUTIONS) SECTION
   ========================================= */
#soluciones-negocio {
    /* Opaque gradient to cover dark body background */
    background: linear-gradient(to bottom, #ffffff 0%, #e0f7fa 100%);
}

.enfoque-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

#soluciones-negocio .lead {
    font-size: 1.4rem;
    /* Slightly larger for better balance */
    font-weight: 500;
    color: var(--color-dark);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 992px) {
    .enfoque-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.enfoque-card {
    background: var(--color-white);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 15px 45px rgba(0, 60, 90, 0.08);
    /* Soft shadows for premium feel */
    border: 1px solid rgb(164, 221, 231);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.enfoque-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0, 60, 90, 0.15);
    border: 1px solid rgb(142, 206, 218);
}

.enfoque-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.enfoque-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 185, 204, 0.1);
    color: var(--color-accent);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
}

.enfoque-card h3 {
    font-size: 1.4rem;
    color: var(--color-primary);
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.enfoque-intro {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-secondary);
    margin-bottom: 20px;
}

.enfoque-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.enfoque-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.enfoque-list i {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 5px;
}

.enfoque-footer-box {
    /* Increased visibility: Gradient from Accent (Cyan) to Highlight (Sky) */
    background: linear-gradient(135deg, rgba(0, 185, 204, 0.15) 0%, rgba(180, 234, 237, 0.25) 100%);
    padding: 25px 30px;
    border-radius: 20px;
    border: 1px solid rgba(0, 185, 204, 0.25);
    box-shadow: 0 15px 30px -10px rgba(0, 60, 90, 0.08);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.enfoque-footer-box:hover {
    background: linear-gradient(135deg, rgba(0, 185, 204, 0.25) 0%, rgba(180, 234, 237, 0.35) 100%);
    box-shadow: 0 20px 40px -12px rgba(0, 60, 90, 0.15);
    border-color: rgba(0, 185, 204, 0.4);
    transform: translateY(-2px);
}

/* Subtle accent line inside instead of thick border */
.enfoque-footer-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-secondary));
    opacity: 0.8;
}

.enfoque-footer-box p {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin: 0;
    font-weight: 500;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Premium Icon Box Style */
.enfoque-footer-box p i {
    font-size: 1.2rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-secondary), var(--color-accent));
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 185, 204, 0.3);
    flex-shrink: 0;
}

/* =========================================
   TÉCNICAS DE INVESTIGACIÓN SECTION
   ========================================= */
#tecnicas {
    background: linear-gradient(to bottom, #e0f7fa 0%, #ffffff 100%);
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.tecnicas-subheading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #b0f2ff; /* Light Sky Blue, matches card title */
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tecnicas-group {
    margin-bottom: 30px;
}

.tecnicas-group:last-child {
    margin-bottom: 0;
}

.tecnicas-footer-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(224, 247, 250, 0.45) 100%);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 185, 204, 0.2);
    border-radius: 20px;
    padding: 25px 35px;
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
    max-width: 960px; /* Aumentado para dar espacio a la frase en una sola línea */
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 15px 35px rgba(0, 60, 90, 0.05);
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.tecnicas-footer-box::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, var(--color-accent), var(--color-secondary));
}

.tecnicas-footer-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(0, 60, 90, 0.12);
    border-color: rgba(0, 185, 204, 0.4);
}

.tecnicas-footer-icon {
    font-size: 1.4rem;
    color: var(--color-white);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    min-width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 60, 90, 0.15);
    flex-shrink: 0;
}

.tecnicas-footer-content {
    flex-grow: 1;
}

.tecnicas-footer-content p {
    font-size: 1.15rem;
    color: var(--color-primary);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.tecnicas-footer-content p strong {
    font-weight: 700;
    color: var(--color-secondary);
}

@media (min-width: 992px) {
    .tecnicas-footer-content p {
        white-space: nowrap;
    }
}

.live-indicator {
    width: 8px;
    height: 8px;
    background-color: #28a745;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    vertical-align: middle;
    margin-right: 6px;
    margin-left: 2px;
    transform: translateY(-1px);
}

.live-indicator::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border: 2px solid #28a745;
    border-radius: 50%;
    animation: livePulse 1.5s infinite ease-in-out;
    opacity: 0;
}

@keyframes livePulse {
    0% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    #tecnicas {
        padding: 60px 0;
    }
    
    .tecnicas-footer-box {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 25px;
        gap: 15px;
        margin-top: 35px;
    }
    
    .tecnicas-footer-box::before {
        left: 0;
        top: 0;
        right: 0;
        height: 5px;
        width: 100%;
        background: linear-gradient(to right, var(--color-accent), var(--color-secondary));
    }
    
    .tecnicas-footer-content p {
        font-size: 1.05rem;
    }
}

/* =========================================
   SOLUCIONES IM / IC SECTION
   ========================================= */
#soluciones-im-ic {
    /* Opaque gradient to cover dark body background */
    background: linear-gradient(to bottom, #ffffff 0%, #e0f7fa 100%);
    position: relative;
    z-index: 1;
}

#soluciones-im-ic .lead {
    font-size: 1.6rem;
    /* Increased size for presence */
    font-weight: 500;
    color: var(--color-primary);
    /* Stronger color */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.5px;
    /* Tighter tracking for modern look */
}

#soluciones-im-ic::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Subtle geometric pattern or texture could go here */
    opacity: 0.05;
    background-image: radial-gradient(var(--color-primary) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

.im-ic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.im-ic-card {
    background: var(--color-primary);
    /* Dark Navy */
    color: var(--color-white);
    padding: 50px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 30, 60, 0.2);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.im-ic-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 30, 60, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

/* Premium Gloss Effect */
.im-ic-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.im-ic-header {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.im-ic-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-accent);
    /* Cyan */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    backdrop-filter: blur(5px);
}

.im-ic-icon img {
    max-width: 60%;
    max-height: 60%;
    object-fit: contain;
}

.im-ic-card h3 {
    color: #b0f2ff;
    /* Light Sky Blue */
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.im-ic-intro {
    font-size: 1.05rem;
    margin-bottom: 25px;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.6;
}

.im-ic-list {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
}

.im-ic-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.im-ic-list i {
    color: var(--color-accent);
    font-size: 0.9rem;
    margin-top: 5px;
}

.im-ic-footer {
    margin-top: auto;
    margin-left: auto;
    margin-right: auto;
    width: 60%;
    /* Centered and reduced width */

    /* Use Accent (Cyan) transparency - Increased opacity for better contrast */
    background: linear-gradient(135deg, rgba(0, 185, 204, 0.25) 0%, rgba(0, 185, 204, 0.1) 100%);
    padding: 25px 30px;
    border-radius: 20px;
    /* Subtle Cyan border to define edges */
    border: 1px solid rgba(0, 185, 204, 0.3);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.im-ic-footer:hover {
    background: linear-gradient(135deg, rgba(0, 185, 204, 0.35) 0%, rgba(0, 185, 204, 0.15) 100%);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
    border-color: rgba(0, 185, 204, 0.6);
    transform: translateY(-2px);
}

/* Vertical Accent Line */
.im-ic-footer::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, var(--color-secondary), var(--color-accent));
    /* Cyans */
    opacity: 0.8;
}

.im-ic-footer p {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 500;
    font-style: normal;
    color: var(--color-white);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    /* Stack Vertical */
    align-items: center;
    /* Center Horizontally */
    text-align: center;
    /* Center Text */
    gap: 15px;
}

/* Premium Icon Box for im-ic-footer */
.im-ic-footer p i {
    font-size: 1.2rem;
    color: var(--color-primary);
    /* Dark Icon */
    background: linear-gradient(135deg, var(--color-white), var(--color-highlight));
    min-width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

/* IC Intro Text */
.ic-intro-text {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-highlight);
    margin-top: 30px;
    margin-bottom: 15px;
    line-height: 1.6;
    opacity: 0.95;
}

/* IC Buttons Group Styles (Inside IC Card) */
.ic-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
    margin-bottom: 20px;
    align-items: center;
    /* Center buttons horizontally */
}

.ic-btn {
    /* More visible background using brand colors (Navy -> Teal) - Inverted to Left */
    background: linear-gradient(to left, rgba(0, 60, 90, 0.75), rgba(0, 140, 165, 0.5));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);

    /* Clearer border - Explicit 1px */
    border: 1px solid rgba(0, 185, 204, 0.6);

    color: var(--color-white);
    padding: 14px 22px;
    border-radius: 50px;
    /* Increased radius for button look */
    width: 70%;
    /* 70% width relative to container */
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    font-family: var(--font-body);
    text-transform: none;
    letter-spacing: 0.3px;

    /* Shadow for differentiation */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.ic-btn i {
    font-size: 1.2rem;
    color: var(--color-highlight);
    /* Lighter cyan for icon */
    min-width: 24px;
    text-align: center;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.5));
}

.ic-btn:hover {
    /* Solid/Brighter look on hover - Inverted to Left */
    background: linear-gradient(to left, var(--color-primary), var(--color-secondary));

    /* Ensure border thickness remains exactly 1px and same color as initial */
    border: 1px solid rgba(0, 185, 204, 0.6);

    transform: translateX(5px) scale(1.02);
    /* Slight scale */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.ic-btn:hover i {
    color: var(--color-white);
    /* Icon turns white */
    transform: scale(1.1);
}

/* IC Tagline */
.ic-tagline {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 1;
    /* Fully visible for vibrant color */
}

@media (max-width: 992px) {
    .im-ic-grid {
        grid-template-columns: 1fr;
    }
}

/* Button Group Styles */
.buttons-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.buttons-group .btn {
    min-width: 250px;
    font-size: 0.95rem;
    padding: 16px 35px;

    /* Premium Glass Style (Dark Variation) */
    background: rgba(0, 60, 90, 0.8);
    /* Semi-transparent Navy */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 2px solid var(--color-accent);
    /* Cyan Border */
    color: var(--color-white);

    box-shadow: 0 10px 30px rgba(0, 60, 90, 0.2);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.buttons-group .btn:hover {
    background: var(--color-accent);
    /* Solid Cyan on Hover */
    border-color: var(--color-accent);
    color: var(--color-white);
    /* White text as requested */

    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 185, 204, 0.4);
    /* Cyan Glow */
}

/* Modal Styles */
.modal {
    display: none;
    /* Hidden by default */
    position: fixed;
    z-index: 2000;
    /* High z-index to sit on top of everything */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 15, 25, 0.9);
    /* Dark Navy transparent bg */
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: transparent;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1000px;
    /* Large max width for images */
    position: relative;
    border-radius: 20px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

.close-modal {
    position: absolute;
    top: 0;
    right: 0;
    color: var(--color-accent);
    font-size: 35px;
    font-weight: 300;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
    background: transparent;
    border: none;
    padding: 0 10px;
    z-index: 10;
}

.close-modal:hover,
.close-modal:focus {
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .buttons-group .btn {
        width: 100%;
        /* Full width on mobile */
    }

    .modal-content {
        width: 95%;
    }
}

/* =========================================
   IM / IC CARD CTA BUTTON
   ========================================= */
.im-ic-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
}

.im-ic-btn-cta {
    background: rgba(0, 140, 165, 0.35);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.8) !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(0, 185, 204, 0.5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    letter-spacing: 0.8px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    max-width: 340px;
    text-align: center;
    text-transform: uppercase;
    white-space: nowrap;
}

.im-ic-btn-cta:hover {
    background: var(--color-secondary);
    border-color: #ffffff !important;
    box-shadow: 0 0 30px var(--color-accent), 0 0 12px var(--color-accent);
    transform: translateY(-2px);
    color: var(--color-white) !important;
}

/* =========================================
   MODAL ESQUEMA (Investigación / Inteligencia)
   ========================================= */
.modal-esquema {
    background: rgba(0, 15, 25, 0.6);
    backdrop-filter: blur(5px);
    border-radius: 20px;
    padding: 20px;
    max-width: 1100px;
    width: 92%;
}

.modal-esquema-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--color-accent);
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 15px 0;
    opacity: 0.9;
}

.modal-esquema img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 991px) {
    .im-ic-btn-cta {
        font-size: 0.82rem;
        padding: 12px 22px;
    }

    .modal-esquema {
        width: 95%;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .im-ic-cta {
        margin-top: 25px;
    }

    .im-ic-btn-cta {
        max-width: 100%;
        font-size: 0.8rem;
        padding: 13px 20px;
        gap: 8px;
    }

    .modal-esquema {
        width: 98%;
        padding: 12px;
    }

    .modal-esquema-label {
        font-size: 0.7rem;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }
}

/* =========================================
   SECTORS SECTION (Dark)
   ========================================= */
#sectores {
    position: relative;
}

.sectores-overlay {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 29, 45, 0.5);
    mix-blend-mode: multiply;
    z-index: 0;
    pointer-events: none;
}

#sectores .container {
    position: relative;
    z-index: 1;
}

#sectores .section-title {
    color: #b0f2ff;
}

#sectores .section-subtitle {
    font-size: 1.6rem;
    /* Increased size for presence */
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    /* Stronger white */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    letter-spacing: -0.5px;
    /* Tighter tracking for modern look */
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    gap: 15px;
    max-width: 650px;
    /* Constraints the width to look like a board */
    margin: 0 auto;
}

.sector-item {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    width: 140px;
    height: 140px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sector-item:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
}

.sector-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--color-white);
}

.sector-item span {
    font-size: 0.9rem;
    text-align: center;
    color: var(--color-white);
    line-height: 1.2;
}

/* Integrated CTA Styles */
.cta-glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 60px 40px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 800px;
    margin: 100px auto 40px;
    /* Stronger separation from icons and centered */
    text-align: center;
    /* Ensures text and buttons are centered */
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.cta-glass-card h2 {
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 20px;
    color: #b0f2ff;
    line-height: 1.2;
}

.cta-glass-card p {
    font-size: 1.2rem;
    margin-bottom: 35px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-white);
}

/* CTA specific Premium Button Style (Matches Hero Primary) */
.cta-glass-card .btn {
    background: rgba(0, 140, 165, 0.8);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 2px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 0 25px rgba(0, 185, 204, 0.6);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    font-size: 1rem;
}

.cta-glass-card .btn:hover {
    background: var(--color-secondary);
    border-color: #ffffff;
    box-shadow: 0 0 35px var(--color-accent), 0 0 15px var(--color-accent);
    transform: translateY(-2px);
    color: var(--color-white);
}

/* =========================================
   CONTACT SECTION (Premium)
   ========================================= */
#contacto {
    /* Opaque gradient to cover dark body background */
    background: linear-gradient(to bottom, #ffffff 0%, #e0f7fa 100%);
    position: relative;
    overflow: hidden;
}

#contacto::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 185, 204, 0.1) 0%, transparent 70%);
    z-index: 0;
}

/* Contact Lead Text - Desktop only (same style as Enfoque) */
@media (min-width: 768px) {
    #contacto .lead {
        font-size: 1.4rem;
        /* Same as #soluciones-negocio .lead */
        font-weight: 500;
        color: var(--color-dark);
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

.contact-wrapper {
    display: flex;
    box-shadow: 0 30px 60px rgba(0, 30, 60, 0.15);
    border: 1px solid rgb(164, 221, 231);
    border-radius: 30px;
    overflow: hidden;
    background: var(--color-white);
    position: relative;
    z-index: 1;
    margin-top: 50px;
}

/* Info Panel (Left) */
.contact-info-panel {
    flex: 2;
    background: var(--color-primary);
    /* Dark Navy */
    color: var(--color-white);
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.contact-info-panel h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--color-highlight);
    /* Light sky */
}

.contact-info-panel p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    margin-bottom: 50px;
    line-height: 1.6;
}

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

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--color-accent);
    /* Cyan */
    flex-shrink: 0;
}

.info-text h5 {
    margin: 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-text a {
    font-size: 1.1rem;
    color: var(--color-white);
    font-weight: 500;
}

.info-text a:hover {
    color: var(--color-accent);
}

/* Decorative rocket logo in panel */
.rocket-deco {
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 150px;
    height: auto;
    pointer-events: none;
    z-index: 10;
    opacity: 0.5;
    display: block !important;
}

/* Form Panel (Right) */
.contact-form-panel {
    flex: 3;
    padding: 60px 50px;
    background: var(--color-white);
}

.contact-form .form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form .form-group {
    margin-bottom: 25px;
    flex: 1;
}

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

.contact-form .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    background: #fdfdfd;
    transition: var(--transition);
    font-family: var(--font-body);
}

.contact-form .form-control:focus {
    outline: none;
    border-color: var(--color-secondary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 140, 165, 0.1);
}

.contact-form textarea.form-control {
    resize: none;
}

.contact-form .btn {
    width: 100%;
    margin-top: 10px;
    padding: 16px;
    font-weight: 600;
    letter-spacing: 1.5px;

    /* Premium Glass Style (Dark Variation) */
    background: rgba(0, 60, 90, 0.9);
    /* Slightly more opaque Navy */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    border: 2px solid var(--color-accent);
    /* Cyan Border */
    color: var(--color-white);

    box-shadow: 0 10px 30px rgba(0, 60, 90, 0.2);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.contact-form .btn:hover {
    background: var(--color-accent);
    /* Solid Cyan on Hover */
    border-color: var(--color-accent);
    color: var(--color-white);
    /* White text */

    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 185, 204, 0.4);
    /* Cyan Glow */
}

@media (max-width: 992px) {
    .contact-wrapper {
        flex-direction: column;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 30px;
    }

    .contact-form .form-row {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }
}

.footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.6);
    padding: 40px 0;
    margin-top: 0;
    text-align: center;
}

.footer-logo {
    height: 35px;
    margin: 0 auto 20px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    margin: 0 10px;
}

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

/* Social Icons */
.social-icons {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-icons a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icons a:hover {
    color: var(--color-white);
    background: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 185, 204, 0.3);
    border-color: var(--color-accent);
}

/* Scroll To Top Float Button */
.scroll-top-float {
    position: fixed;
    width: 45px;
    height: 45px;
    bottom: 110px;
    right: 37.5px;
    background-color: rgba(0, 60, 90, 0.25);
    /* More transparent */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    text-align: center;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.scroll-top-float:hover {
    background-color: rgba(0, 140, 165, 0.5);
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 185, 204, 0.3);
    color: var(--color-white);
    border-color: rgba(255, 255, 255, 0.4);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    transform: scale(1.1);
    color: #FFF;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
}

.whatsapp-float i {
    margin-top: 2px;
    /* Optical correction for centering icon */
}

/* Mobile Adjustment for WhatsApp Button and Scroll Top */
@media (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .scroll-top-float {
        width: 40px;
        height: 40px;
        bottom: 85px;
        /* 20 + 50 + 15 */
        right: 25px;
        /* 20 + (50-40)/2 */
        font-size: 1rem;
    }
}

/* =========================================
   RESPONSIVE DESIGN
   ========================================= */
/* =========================================
   RESPONSIVE DESIGN
   ========================================= */

/* Tablet & Mobile (max-width: 991px) */
@media (max-width: 991px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
    }

    .logo img {
        height: 40px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: var(--transition);
        backdrop-filter: blur(10px);
    }

    .mobile-logo-item {
        display: block;
        text-align: center;
        margin-bottom: -5px;
        margin-top: 0px;
        width: 100%;
    }

    .mobile-logo-item img {
        height: 40px;
        width: auto;
        margin: 0 auto;
        display: block;
    }

    .mobile-logo-item a::after {
        display: none;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li a {
        color: var(--color-primary);
        font-size: 1.2rem;
        font-weight: 500;
    }

    .hero h1 {
        font-size: 2.8rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.5rem;
        padding: 0 15px;
    }

    .differentiators-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .im-ic-grid,
    .enfoque-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}

/* Mobile Specific (max-width: 768px) */
@media (max-width: 768px) {

    /* General Spacing */
    .section {
        padding: 50px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .section-title {
        font-size: 2rem;
        word-wrap: break-word;
        /* Prevent overflow on long words */
    }

    .lead,
    .section-subtitle {
        font-size: 1.1rem;
        /* Reduced from larger desktop sizes */
        line-height: 1.4;
        /* Tighter line spacing */
    }

    /* Specific adjustments for section lead texts */
    #soluciones-im-ic .lead,
    #sectores .section-subtitle,
    #soluciones-negocio .lead {
        font-size: 1.1rem;
        line-height: 1.4;
        letter-spacing: -0.3px;
    }

    /* Match subsection title size to section title on mobile */
    .subsection-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    /* Add space between paragraphs on mobile */
    .about-intro p,
    .why-intro p {
        margin-bottom: 20px;
    }

    /* Hero Improvements */
    .hero {
        padding-top: 60px;
        /* Reduced padding */
    }

    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.25;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1.3rem;
        margin-bottom: 35px;
        line-height: 1.15;
    }

    .hero-subtitle span {
        display: block;
    }

    .hero-subtitle .plus-symbol {
        font-size: 1.8rem;
        margin: 4px 0;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        max-width: 100%;
        padding: 0 20px;
        gap: 15px;
    }

    .hero-btns .btn,
    .buttons-group .btn,
    .cta-glass-card .btn,
    .ic-btn {
        width: 100%;
        white-space: nowrap;
        /* Prevent wrapping */
        font-size: 0.85rem;
        /* Smaller font */
        padding: 14px 15px;
        /* Reduce side padding significantly */
        overflow: hidden;
        text-overflow: ellipsis;
        /* Handle overflow gracefully */
        min-width: 0;
        /* Allow flex shrinking */
    }

    /* Cards Optimization (Soluciones & Enfoque) */
    .im-ic-card,
    .enfoque-card {
        padding: 30px 20px;
        /* Reduced padding */
        border-radius: 20px;
    }

    .im-ic-header,
    .enfoque-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .im-ic-icon,
    .enfoque-icon {
        margin: 0 auto;
        /* Center icon */
    }

    .im-ic-card h3,
    .enfoque-card h3 {
        font-size: 1.2rem;
        /* Adjusted title size */
    }

    /* Lists Readability */
    .im-ic-list li,
    .enfoque-list li {
        font-size: 0.95rem;
    }

    /* Footer Boxes - Stack Icon Above Text */
    .im-ic-footer p p,
    .enfoque-footer-box p {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        font-size: 0.95rem;
        /* Reduced size */
        line-height: 1.4;
        /* Tighter line spacing */
    }

    .im-ic-footer {
        width: 100%;
        /* Reset width for mobile */
    }

    .im-ic-footer p i,
    .enfoque-footer-box p i {
        margin: 0 auto;
        /* Center the icon */
    }

    /* Adjust IC Tagline for Mobile */
    .ic-tagline {
        font-size: 1.0rem;
        letter-spacing: 1.5px;
    }

    /* Sectores Grid */
    .sectors-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns enforced */
        gap: 12px;
        padding: 0 10px;
    }

    .sector-item {
        width: 100%;
        /* Fill grid cell */
        height: auto;
        aspect-ratio: 1;
        /* Square */
        padding: 10px;
    }

    .sector-item i {
        font-size: 2rem;
    }

    .sector-item span {
        font-size: 0.8rem;
    }

    /* Contact Form */
    .contact-info-panel,
    .contact-form-panel {
        padding: 40px 25px;
    }

    .contact-info-panel h3 {
        margin-bottom: 10px;
        /* Reduced from 20px */
        line-height: 1.2;
    }

    .contact-info-panel p {
        margin-bottom: 30px;
        /* Reduced from 50px */
        line-height: 1.4;
        /* Tighter line height */
    }

    .info-list {
        gap: 20px;
        /* Reduced gap between items */
    }

    .info-item {
        flex-direction: column;
        align-items: center;
        /* Center horizontally */
        text-align: center;
        gap: 10px;
    }

    .info-text a {
        font-size: 1rem;
        word-break: break-all;
        /* Ensure long emails don't overflow */
    }

    /* Rocket Deco Mobile Adjustment */
    .rocket-deco {
        width: 100px !important;
        /* Smaller size */
        bottom: 10px !important;
        /* Closer to bottom */
        right: 10px !important;
        /* Closer to right */
        opacity: 0.3 !important;
        /* Fainter to not distract */
    }

    /* Floating Buttons */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .scroll-top-float {
        width: 40px;
        height: 40px;
        bottom: 85px;
        right: 25px;
        font-size: 1rem;
    }

    /* Slightly increase font size for Differentiators titles as requested */
    .diff-content h4 {
        font-size: 1.25rem;
    }
}

/* Extra Small Devices (max-width: 480px) */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    .hero-subtitle {
        font-size: 1.15rem;
        line-height: 1.15;
    }
    .hero-subtitle .plus-symbol {
        font-size: 1.6rem;
        margin: 2px 0;
    }
}