/* CSS Reset and Variables */
:root {
    --primary: #001b48;
    /* Official Navy Blue from Logo */
    --primary-light: #f0f4f8;
    --primary-dark: #000c24;
    --accent: #ffcc00;
    /* Official Yellow from Logo */
    --accent-dark: #e6b800;
    --text-main: #1c1c1e;
    --text-muted: #6e6e73;
    --bg-light: #f5f5f7;
    --bg-white: #ffffff;
    --border: rgba(0, 0, 0, 0.05);
    --shadow-premium: 0 20px 45px -10px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px 0 rgba(0, 27, 72, 0.07);
    --radius-lg: 18px;
    --radius-xl: 32px;
    --radius-button: 14px;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1200px;
    /* Wider, more breathable layout */
    --section-spacing: 8rem;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-main);
    line-height: 1.5;
    background-color: var(--bg-white);
    background-image: radial-gradient(#e5e7eb 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-main);
    hyphens: none;
    word-break: keep-all;
    overflow-wrap: break-word;
    /* Safety for very long single words */
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography Helpers */
.text-center {
    text-align: center;
}

.section-padding {
    padding: var(--section-spacing) 0;
}

.section-title {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 1rem auto 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: var(--radius-button);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 0.95rem;
    gap: 0.6rem;
    text-align: center;
    white-space: nowrap;
    /* NUNCA en 2 renglones */
    min-width: 200px;
}

.btn-primary {
    background: var(--primary);
    color: white;
    box-shadow: 0 10px 20px rgba(0, 74, 153, 0.15);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 74, 153, 0.25);
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.15);
}

.btn-whatsapp:hover {
    background: #20b358;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.25);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header & Nav */
header {
    background: transparent;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    padding: 20px 0;
}

header.scrolled {
    padding: 12px 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px) saturate(160%);
    -webkit-backdrop-filter: blur(25px) saturate(160%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.06);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.logo {
    display: flex;
    align-items: center;
    transition: var(--transition);
}

.logo-img {
    height: 60px;
    /* Base height for desktop */
    width: auto;
    transition: var(--transition);
    filter: brightness(0) invert(1);
    /* Initial white logo */
}

header.scrolled .logo-img {
    height: 50px;
    /* Slightly smaller on scroll */
    filter: none;
    /* Return to original corporate colors */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: white;
    /* Initial white */
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

header.scrolled .nav-links a {
    color: var(--text-main);
}

.nav-links a:hover {
    color: var(--accent) !important;
}

header.scrolled .nav-links a:hover {
    color: var(--primary) !important;
}

.nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.85);
    /* Premium Frosted Base */
    backdrop-filter: blur(40px) saturate(200%);
    /* Strong attenuation of background */
    -webkit-backdrop-filter: blur(40px) saturate(200%);
    padding: 7rem 2rem 2rem;
    gap: 1.5rem;
    text-align: center;
    z-index: 1500;
    animation: fadeInMenu 0.4s ease-out;
}

@keyframes fadeInMenu {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-links.active a {
    color: var(--primary) !important;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem;
    transition: var(--transition);
}

.nav-links.active a:hover {
    color: var(--accent) !important;
    transform: scale(1.05);
}

/* Clearly visible X when menu is active */
#mobile-menu i.fa-times {
    color: var(--primary) !important;
    font-size: 2.2rem;
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 2500;
}

/* Close button hint or mobile toggle adjustment is handled by user interaction,
   but we ensure the menu doesn't feel like a simple list. */

header.scrolled .mobile-toggle {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: white;
    /* Initial white */
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 20, 40, 0.4), rgba(0, 50, 100, 0.9)), url('hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect for impact */
    color: white;
    padding-top: 60px;
}

.hero-content {
    max-width: 950px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1.2s ease-out;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: inline-block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    color: white;
    font-size: clamp(2.8rem, 6vw, 4.8rem);
    margin-bottom: 2rem;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -2px;
}

.hero p {
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    margin-bottom: 3.5rem;
    max-width: 750px;
    opacity: 0.9;
    font-weight: 400;
    text-align: justify;
}


.hero-btns {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
}


/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--bg-white);
    padding: 3.5rem 2rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary);
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px rgba(0, 74, 153, 0.08);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
    background: var(--primary-light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
}

/* Modalidades de Acompañamiento - Creative Glass Design */
.modalidades-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8eb 100%);
    position: relative;
    overflow: hidden;
}

.modalidades-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 27, 72, 0.03) 0%, transparent 70%);
    border-radius: 50%;
}

.section-subtitle-custom {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.modalidades-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    perspective: 1000px;
}

.modalidad-card {
    position: relative;
    transition: var(--transition);
}

.modalidad-glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-xl);
    padding: 3.5rem 2.5rem;
    text-align: center;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
}

.modalidad-card:hover .modalidad-glass {
    background: rgba(255, 255, 255, 0.7);
    border-color: var(--primary);
    transform: translateY(-10px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(0, 27, 72, 0.1);
}

.modalidad-icon {
    width: 70px;
    height: 70px;
    background: white;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.modalidad-card:hover .modalidad-icon {
    background: var(--primary);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.modalidad-divider {
    width: 40px;
    height: 3px;
    background: var(--accent);
    margin: 1.5rem 0;
    border-radius: 2px;
}

.modalidad-card h3 {
    font-size: 1.4rem;
    color: var(--primary);
    font-weight: 800;
}

.modalidad-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Featured / Active card */
.active-modalidad .modalidad-glass {
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid var(--primary);
    box-shadow: 0 20px 40px rgba(0, 27, 72, 0.08);
}

@media (max-width: 1024px) {
    .modalidades-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modalidades-grid {
        grid-template-columns: 1fr;
    }

    .modalidad-glass {
        padding: 3rem 2rem;
    }
}

/* Technology Ecosystem - Premium SaaS Look */
.software-section {
    background: #fdfdfd;
}

.section-padding_custom {
    padding: 8rem 0;
}

.software-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.software-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.software-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 40px 80px rgba(0, 27, 72, 0.12);
}

.software-img-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: #f8fbfd;
    /* Clean tech base */
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-img-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.08);
    /* Minimal light tint */
    backdrop-filter: blur(2px);
    /* Ultra-clear crystal feel */
    pointer-events: none;
    z-index: 2;
    transition: var(--transition);
}

.software-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
    /* High visibility start */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.software-card:hover .software-img-container::after {
    opacity: 0;
}

.software-card:hover .software-img-container img {
    width: 100%;
    height: 100%;
    border-radius: 0;
    opacity: 1;
    transform: scale(1.05);
}

.software-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #ffffff;
    /* Solid white for clear visibility */
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    z-index: 10;
    /* Above the light gray overlay */
}

.software-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    color: var(--primary);
    font-weight: 800;
}

.software-info {
    padding: 2.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.software-info p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.software-btn {
    width: 100%;
    text-align: center;
}

/* Contact Form */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    background: var(--bg-light);
    padding: 2.5rem;
    border-radius: 15px;
}

.full-width {
    grid-column: span 2;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: inherit;
}

.legal-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Footer Moderno & Simétrico */
.footer-main {
    background: var(--primary);
    padding: 6rem 0 3rem;
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
    /* Slightly adjusted for branding space */
    gap: 5rem;
    /* More air between columns */
    align-items: start;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    filter: brightness(0) invert(1);
    margin-bottom: 2rem;
}

.footer-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 2rem;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 2rem;
    position: relative;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent);
}

.footer-nav,
.footer-info {
    list-style: none;
}

.footer-nav li,
.footer-info li {
    margin-bottom: 1.2rem;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-nav a:hover {
    color: white;
    padding-left: 5px;
}

.footer-info li {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.wa-direct-foot {
    color: white !important;
    font-weight: 700;
}

.footer-social {
    display: flex;
    gap: 1.2rem;
}

.footer-social a {
    color: white;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: var(--transition);
}

.footer-social a:hover {
    opacity: 1;
    transform: translateY(-3px);
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 3.5rem 0 2.5rem;
}

.footer-copyright-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.footer-norm {
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 968px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 600px) {
    .footer-glass-box {
        padding: 4rem 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3.5rem;
    }

    .footer-description {
        text-align: justify;
    }

    /* Transform links into symmetric buttons for Mobile */
    .footer-nav li,
    .footer-info li {
        width: 100%;
        margin-bottom: 0.8rem;
    }

    .footer-nav a,
    .footer-info li {
        display: flex;
        justify-content: center;
        align-items: center;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        padding: 1rem;
        border-radius: var(--radius-button);
        width: 100%;
        color: white;
        opacity: 1;
        font-size: 0.9rem;
    }

    .footer-info li i {
        position: static;
        margin-right: 0.8rem;
    }

    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-social {
        justify-content: center;
    }

    .footer-copyright-box {
        flex-direction: column;
        gap: 1.2rem;
        text-align: center;
    }
}

/* Responsive */
/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

/* Base styles for animated elements */
.service-card,
.eco-item {
    opacity: 0;
}

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        min-width: unset;
    }

    form {
        grid-template-columns: 1fr;
    }

    .full-width {
        grid-column: span 1;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.2;
        margin-bottom: 2rem;
    }

    .section-title::after {
        margin: 0.8rem auto 0;
    }
}

/* Geography Section - 3D Hubs */
.geography-section {
    background: var(--bg-light);
    /* Matching the web's light gray */
    padding-top: 4rem !important;
    /* Reduced space from previous section */
}

.geography-header {
    text-align: center;
    margin-bottom: 4rem;
}

.badge-accent {
    display: inline-block;
    background: var(--accent);
    color: var(--primary);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(255, 204, 0, 0.3);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

.geography-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.geography-hubs {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.hub-card {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.hub-card:hover {
    transform: translateX(10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--primary);
}

.geography-hubs:last-child .hub-card:hover {
    transform: translateX(-10px);
}

.hub-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.3rem;
}

.hub-info h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.hub-info p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.geography-map {
    position: relative;
    display: flex;
    justify-content: center;
}

.map-floating-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    animation: floatMap 6s ease-in-out infinite;
    display: flex;
    justify-content: center;
}

.map-silhouette {
    width: 100%;
    height: auto;
    max-height: 500px;
    fill: var(--primary);
    filter: drop-shadow(0 20px 40px rgba(0, 27, 72, 0.15));
    /* Elegant shadow for the silhouette */
}

@keyframes floatMap {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@media (max-width: 1024px) {
    .geography-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .geography-hubs {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hub-card {
        width: 250px;
    }

    .section-subtitle {
        text-align: justify;
    }
}

@media (max-width: 600px) {
    .hub-card {
        width: 100%;
        transform: none !important;
    }

    .section-subtitle {
        font-size: 1.1rem;
    }
}

/* About Section Enhancements */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: justify;
    opacity: 0.9;
}

.expertise-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2.5rem;
}

.tag {
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(0, 74, 153, 0.1);
    transition: var(--transition);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
}

.tag:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.about-image-container {
    position: relative;
}

.glass-img {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-premium);
    filter: saturate(1.1);
    transition: var(--transition);
}

.glass-img:hover {
    transform: scale(1.02);
}

/* Contact Glass Card */
.contact-card-glass {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-xl);
    padding: 5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-premium);
    position: relative;
    overflow: hidden;
}

.contact-card-glass::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.contact-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.btn-whatsapp-lg {
    background: #25d366;
    color: white;
    padding: 1.2rem 3.5rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.btn-whatsapp-lg:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.35);
    background: #20b358;
}

.phone-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.benefit-pills {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pill {
    background: rgba(0, 74, 153, 0.05);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-text-sm {
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.7;
}

/* Responsive Overrides */
@media (max-width: 968px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .about-text {
        text-align: justify;
    }

    .expertise-tags {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem;
        margin-top: 3rem;
    }

    .tag {
        width: 100%;
        text-align: center;
        justify-content: center;
        display: flex;
        font-size: clamp(0.7rem, 2.5vw, 0.8rem);
        padding: 0.8rem 0.5rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 600px) {
    .section-spacing {
        --section-spacing: 3rem;
        /* More compact sections on mobile */
    }

    .about-text {
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .contact-card-glass {
        padding: 2.5rem 1.2rem;
        /* Reduced internal spacing */
    }

    .contact-card-glass p {
        margin-bottom: 1.5rem !important;
        /* Tighter vertical flow */
    }

    .contact-actions {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }

    /* Override the previously defined btn style if needed for symmetry */
    .btn-whatsapp-lg {
        width: 100%;
        padding: 1rem 1.2rem;
        font-size: 1.1rem;
    }

    .phone-link {
        font-size: 1.1rem;
    }

    .benefit-pills {
        flex-direction: column;
        align-items: center;
        gap: 0.6rem;
        margin-bottom: 1.5rem;
    }

    .pill {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }

    .logo-img {
        height: 45px;
    }
}

/* Botón WhatsApp Flotante Estilo Chat */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}


.chat-bubble {
    position: absolute;
    right: 80px;
    background: white;
    color: var(--primary);
    padding: 12px 20px;
    border-radius: 20px 20px 0 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float:hover .chat-bubble,
.chat-bubble.active-bubble {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }

    .chat-bubble {
        display: block;
        right: 65px;
        bottom: 15px;
        padding: 10px 16px;
        font-size: 0.8rem;
        border-radius: 18px 18px 0 18px;
    }
}



/* Stats & Sectors Section Refinement */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 4rem 0;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: transparent;
    transition: var(--transition);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
    color: var(--accent);
}

.sectors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.sector-pill {
    justify-content: flex-start !important;
    background: white !important;
    padding: 1.2rem 1.5rem !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    transition: var(--transition);
    white-space: nowrap;
    /* NUNCA en 2 renglones */
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sector-pill:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.05);
    border-color: var(--primary) !important;
}

.sector-cta {
    margin-top: 5rem;
}

.cta-inner {
    background: white;
    padding: 3rem;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(0, 27, 72, 0.05);
}

.cta-inner i {
    font-size: 3.5rem;
    color: var(--primary);
    opacity: 0.2;
}

.cta-inner h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.cta-inner p {
    color: var(--text-muted);
}

@media (max-width: 968px) {
    .stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stat-item {
        background: white;
        box-shadow: var(--shadow-premium);
    }

    .sectors-grid {
        grid-template-columns: 1fr;
    }

    .sector-pill {
        width: 100%;
        font-size: 0.82rem !important;
        /* Smaller text on mobile to avoid wrapping */
        padding: 0.8rem 1rem !important;
        /* Tighter padding on mobile */
        gap: 0.8rem;
    }

    .cta-inner i {
        display: none;
    }

    /* Specific title adjustments for better grouping */
    #software .section-title,
    #contacto .section-title,
    h1,
    h2 {
        font-size: 1.6rem !important;
        letter-spacing: -0.01em;
        line-height: 1.2;
        margin-bottom: 1rem !important;
    }

    .hero h1 {
        font-size: 1.8rem !important;
        letter-spacing: 0 !important;
        line-height: 1.4 !important;
    }

    .btn {
        width: 100%;
        /* Full width on mobile to avoid side-by-side overlap */
        min-width: none;
        padding: 1rem 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }

    .contact-card-glass {
        padding: 2rem 1rem;
    }

    .contact-card-glass p {
        font-size: 0.95rem !important;
        margin-bottom: 1.2rem !important;
    }

    #cta-text {
        text-align: justify !important;
        font-size: 1rem !important;
    }

    #cta-title {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        hyphens: none !important;
        word-break: keep-all !important;
    }

    .geography-section {
        padding-top: 0 !important;
    }

    .sector-cta {
        margin-top: 2.5rem;
    }
}