/* ==========================================================================
   CSS Variables (Beca Proyectos + MPSystemPack Model)
   ========================================================================== */
:root {
    --clr-obsidian: #1A1F2C;
    /* Slightly lighter black for text reads */
    --clr-obsidian-dark: #0D111A;
    --clr-coral: #E63946;
    /* Adjusted to match the vibrant red in the screenshot */
    --clr-taupe: #7A8089;
    --clr-silver: #D1D5DB;
    --clr-white: #FFFFFF;

    /* Backgrounds matching the screenshot */
    --clr-light-gray: #F3F3F5;
    --clr-light-gray-2: #EAEAEA;

    --clr-border: #E5E7EB;

    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;

    --transition: all 0.4s ease;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--clr-light-gray);
    color: var(--clr-obsidian);
    line-height: 1.5;
    overflow-x: hidden;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* Typography Utilities */
.text-coral {
    color: var(--clr-coral) !important;
}

.text-taupe {
    color: var(--clr-taupe) !important;
}

.text-obsidian {
    color: var(--clr-obsidian) !important;
}

.text-white {
    color: var(--clr-white) !important;
}

.text-sm {
    font-size: 0.875rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.bg-white {
    background-color: var(--clr-white) !important;
}

.bg-coral {
    background-color: var(--clr-coral) !important;
}

.bg-obsidian {
    background-color: var(--clr-obsidian-dark) !important;
}

.bg-silver {
    background-color: var(--clr-silver) !important;
}

.bg-light-gray {
    background-color: var(--clr-light-gray) !important;
}

.bg-light-gray-2 {
    background-color: var(--clr-light-gray-2) !important;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================================================
   Navbar (Pill Layout)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    color: var(--clr-obsidian);
}

.navbar.scrolled {
    top: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.1rem 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled .nav-center-pill {
    background-color: transparent;
    box-shadow: none;
    padding: 0.2rem 0;
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: inline-block;
}

.brand-logo {
    height: 180px; 
    width: auto;
    object-fit: contain;
    transition: var(--transition);
}

.brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.navbar.scrolled .brand-logo {
    height: 75px;
}

.navbar.scrolled .brand-link:hover .brand-logo {
    transform: scale(1.05);
}

.nav-center-pill {
    background-color: var(--clr-white);
    padding: 0.75rem 2.5rem;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-item {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--clr-taupe);
}

.nav-item:hover {
    color: var(--clr-obsidian);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-circle {
    width: 50px;
    height: 50px;
    background-color: var(--clr-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-obsidian);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    cursor: pointer;
    transition: var(--transition);
}

.lang-circle:hover {
    color: var(--clr-coral);
    transform: scale(1.05);
}

.nav-cta-btn {
    padding: 0.9rem 2.5rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(230, 57, 70, 0.35);
}

.mobile-only {
    display: none;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--clr-obsidian);
    font-size: 1.5rem;
}

/* ==========================================================================
   WhatsApp Floating
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.3);
    z-index: 999;
}

.wp-pulse {
    animation: wp-pulse-anim 2s infinite;
}

@keyframes wp-pulse-anim {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* ==========================================================================
   Hero Section & Stats unified (Image Based)
   ========================================================================== */
.hero-image-section {
    position: relative;
    padding: 16rem 0 6rem;
    /* Distancia máxima entre header y título */
    height: auto;
    /* Cambiado de 100vh fijo a auto para evitar estallamientos en movil */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #EFEFEF;
    /* Matches reference image light gray */
    overflow: hidden;
}

.hero-map-bg {
    position: absolute;
    bottom: -15%;
    /* Subido un poco */
    left: 50%;
    transform: translateX(-50%);
    width: 140vw;
    height: 80vh;
    z-index: 0;
    opacity: 0.65;
    /* Más transparente para el equilibrio visual */
    pointer-events: auto;
    /* Allow interaction with Mapbox */
    border-radius: 50% 50% 0 0;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
}

#hero-globe {
    width: 100%;
    height: 100%;
    margin-left: 20px;
    border-radius: 50% 50% 0 0;
}

.hero-image-container {
    position: relative;
    z-index: 1;
    pointer-events: none;
    /* Let drag events pass through to globe */
}

/* Re-enable interactions for textual/clickable elements */
.hero-new-title,
.hero-cta-wrapper,
.hero-stats-row {
    pointer-events: auto;
}

.hero-new-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 3.7vw, 3.8rem);
    /* Tamaño reducido a petición */
    font-weight: 500;
    /* Punto intermedio solicitado por el usuario */
    line-height: 1.05;
    letter-spacing: -0.05em;
    color: var(--clr-obsidian);
    margin-bottom: 3rem;
    /* Margen aumentado ligeramente */
    max-width: 1100px;
}

.hero-cta-wrapper {
    margin-bottom: 6.5rem;
    /* Margen aumentado para bajar las cajas de estadísticas aún más */
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.6rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: var(--transition);
}

.hero-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(230, 57, 70, 0.35);
}

.hero-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.h-stat-card {
    background-color: rgba(255, 255, 255, 0.25);
    /* Ultra transparencia (25%) para que el glaseado deje ver el mapa */
    backdrop-filter: blur(6px);
    /* Disminución de blur */
    -webkit-backdrop-filter: blur(6px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

.h-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

.h-stat-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    color: var(--clr-obsidian);
}

.h-stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--clr-taupe);
}

.h-stat-top i {
    font-size: 1.25rem;
}

.h-stat-val {
    font-family: var(--font-heading);
    font-size: clamp(3.5rem, 5vw, 4.5rem);
    font-weight: 300;
    color: var(--clr-obsidian);
    line-height: 1;
    letter-spacing: -0.05em;
    display: flex;
}

.h-stat-plus {
    font-size: 2rem;
    font-weight: 700;
    margin-top: 0rem;
    margin-left: 0.15rem;
}

/* ==========================================================================
   Common Section Styles
   ========================================================================== */
.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 4rem;
}

/* ==========================================================================
   Portfolio Section (MP Sticky Layout Replica)
   ========================================================================== */
.mp-sticky-section {
    padding: 10rem 0;
    background-color: var(--clr-white);
    /* Reference site is white for this section */
    position: relative;
    z-index: 10;
}

.mp-sticky-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 4rem;
}

.mp-sticky-title-wrap {
    position: sticky;
    top: 30vh;
    width: 40%;
}

.mp-sticky-content {
    width: 55%;
    display: flex;
    flex-direction: column;
    /* Big gap ensures the "scrolling past" effect like MP System */
    gap: 25vh;
    padding-bottom: 20vh;
    /* Allow last card to scroll completely */
}

.mp-card {
    background-color: var(--clr-white);
    /* MP System approach: clean, barely visible cards */
    padding: 3rem 2.5rem;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    /* Subtle MP system style border */
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s;
}

.mp-card-icon {
    width: 64px;
    height: 64px;
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.1);
    /* Circular outline icon style */
    color: var(--clr-obsidian);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    /* Larger icon based on design */
    margin-bottom: 1rem;
}

.mp-card-text {
    display: flex;
    flex-direction: column;
}

.mp-card-text h3 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 3.5vw, 3.5rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--clr-obsidian);
    letter-spacing: -0.03em;
}

.mp-card-text p {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--clr-taupe);
    font-weight: 500;
}

.category-badge-new {
    border: 1px solid var(--clr-coral);
    color: var(--clr-coral);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    align-self: flex-start;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* ==========================================================================
   Typography Utilities (Preserved)
   ========================================================================== */
.giant-heading {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    /* Proporciones reducidas para evitar saltos o recortes de letra */
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.03em;
    word-break: keep-all;
    /* Mantiene la integridad total de la palabra indivisible */
    overflow-wrap: normal;
    hyphens: none;
    /* Fuerza la desaparición de los guiones (-) en todas las pantallas */
}

/* ==========================================================================
   Expertise Section
   ========================================================================== */
/* ==========================================================================
   Expertise Section (MP System Replica)
   ========================================================================== */
.mp-expertise-section {
    padding: 8rem 0;
    background-color: var(--clr-obsidian);
    /* As requested, adapting to brand context or using light gray. We'll use the MP reference (#efefef) or keep it consistent */
    background-color: #F8F9FA;
    /* Off-white for section separation just like MP */
}

.mp-exp-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.mp-exp-title h2 {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--clr-obsidian);
}

.mp-exp-desc {
    font-size: 1.15rem;
    color: var(--clr-taupe);
    max-width: 400px;
    margin-top: 1.5rem;
}

.mp-contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--clr-obsidian);
    border-radius: 100px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.mp-contact-btn:hover {
    background-color: var(--clr-obsidian);
    color: var(--clr-white);
}

.mp-exp-contain {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.mp-exp-card {
    background-color: var(--clr-white);
    padding: 3rem 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 480px;
    transition: transform 0.4s ease;
}

.mp-exp-card:hover {
    transform: translateY(-5px);
}

/* Base Card (White Focus) */
.mp-exp-card h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 2.5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.1;
    margin-top: 2rem;
    color: var(--clr-obsidian);
}

/* Card Icons (Square System) */
.mp-icon-wrap {
    display: flex;
    gap: 0.4rem;
}

.mp-icon-square {
    width: 20px;
    height: 20px;
    background-color: var(--clr-silver);
    border-radius: 4px;
}

.mp-icon-square.is-highlighted {
    background-color: var(--clr-obsidian);
}

/* Taupe Card Variation */
.mp-exp-card.is-taupe {
    background-color: #6c6064;
}

.mp-exp-card.is-taupe h3 {
    color: var(--clr-white);
}

.mp-exp-card.is-taupe .mp-icon-square {
    background-color: rgba(255, 255, 255, 0.2);
}

.mp-exp-card.is-taupe .mp-icon-square.is-highlighted {
    background-color: var(--clr-white);
}

.mp-exp-card.is-taupe ul,
.mp-exp-card.is-taupe li,
.mp-exp-card.is-taupe li::before {
    color: var(--clr-white);
}

/* Red Card Variation */
.mp-exp-card.is-red {
    background-color: #b66959;
}

.mp-exp-card.is-red h3 {
    color: var(--clr-white);
}

.mp-exp-card.is-red .mp-icon-square {
    background-color: rgba(255, 255, 255, 0.3);
}

.mp-exp-card.is-red .mp-icon-square.is-highlighted {
    background-color: var(--clr-white);
}

.mp-exp-card.is-red ul,
.mp-exp-card.is-red li,
.mp-exp-card.is-red li::before {
    color: var(--clr-white);
}

/* Black Card Variation */
.mp-exp-card.is-black {
    background-color: #b0b0b0;
}

.mp-exp-card.is-black h3 {
    color: var(--clr-white);
}

.mp-exp-card.is-black .mp-icon-square {
    background-color: rgba(255, 255, 255, 0.2);
}

.mp-exp-card.is-black .mp-icon-square.is-highlighted {
    background-color: var(--clr-white);
}

.mp-exp-card.is-black ul,
.mp-exp-card.is-black li,
.mp-exp-card.is-black li::before {
    color: var(--clr-white);
}

.mp-exp-list {
    margin-top: 3rem;
    list-style: none;
    padding: 0;
}

.mp-exp-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.05rem;
    color: var(--clr-taupe);
    font-weight: 500;
    line-height: 1.4;
}

.mp-exp-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--clr-coral);
    font-size: 1.2rem;
}

.mp-exp-card.is-red li::before,
.mp-exp-card.is-black li::before {
    color: var(--clr-white);
}

/* ==========================================================================
   Footer Contact (Grey Section)
   ========================================================================== */
.footer-contact {
    padding: 8rem 0 4rem;
}

.footer-header {
    margin-bottom: 6rem;
}

.f-logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--clr-taupe);
    margin-bottom: 1rem;
}

.footer-title {
    color: var(--clr-obsidian);
}

.footer-grid {
    display: grid;
    grid-template-columns: 5fr 3fr 2fr;
    /* Form en izq (mas grande), Datos y Redes al final */
    gap: 4rem;
    margin-bottom: 8rem;
}

.f-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--clr-taupe);
    margin-bottom: 0.5rem;
}

.f-link {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    text-decoration: underline;
}

.f-badge {
    border: 1px solid var(--clr-coral);
    color: var(--clr-coral);
    padding: 0.2rem 0.5rem;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 1rem;
}

.f-badge-light {
    border: 1px solid var(--clr-silver);
    color: var(--clr-silver);
}

.f-address {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.f-contact-info i {
    color: var(--clr-taupe);
    margin-right: 0.5rem;
}

.f-form-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.f-form-card {
    background-color: var(--clr-white);
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    color: var(--clr-obsidian);
}

.f-form-card .f-form-title {
    color: var(--clr-obsidian);
}

.f-input,
.f-input-light {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--clr-border);
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.f-input-light {
    color: var(--clr-obsidian);
}

.f-input:focus,
.f-input-light:focus {
    outline: none;
    border-color: var(--clr-coral);
}

.f-submit-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}

.f-disclaimer {
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--clr-taupe);
    max-width: 55%;
}

.f-submit-btn {
    background: transparent;
    border: 2px solid var(--clr-coral);
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
}

.f-submit-btn:hover {
    background-color: var(--clr-coral);
    color: var(--clr-white) !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--clr-border);
    padding-top: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--clr-taupe);
}

.f-nav {
    display: flex;
    gap: 2rem;
}

.f-legal {
    text-align: right;
}

/* ==========================================================================
   Animations Setup (Controlled via JS)
   ========================================================================== */
.reveal-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.2, 0.8, 0.2, 1), transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-anim.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

/* ==========================================================================
   Responsive Logic
   ========================================================================== */
@media (max-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .hero-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mp-exp-contain {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .f-col-form {
        order: -1;
    }

    /* Bring form to top on mobile footer */
}

@media (max-width: 900px) {
    .nav-actions {
        display: none;
        /* Hide UI complex controls to free mobile layout */
    }

    .mobile-menu-btn {
        display: block;
        z-index: 2000;
        /* Asegura estar sobre el nav-links */
        cursor: pointer;
        position: relative;
    }

    .brand-logo {
        height: 165px;
    }

    .navbar.scrolled .brand-logo {
        height: 140px;
    }

    .nav-center-pill {
        background-color: transparent;
        padding: 0;
        box-shadow: none;
    }

    .navbar.scrolled .nav-center-pill {
        box-shadow: none;
        transform: translateY(0);
    }

    .hero-image-section {
        padding-top: 10rem;
    }

    .hero-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .mobile-only {
        display: block;
        /* Muestra iconos de contacto e idioma perdidos en menu */
        text-align: center;
        margin-top: 1rem;
    }

    .country-list {
        flex-direction: column;
        gap: 2rem;
        align-items: center;
        text-align: center;
    }

    .mp-exp-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .f-legal {
        text-align: center;
    }

    .f-nav {
        flex-direction: column;
        gap: 1rem;
    }

    .f-form-card {
        padding: 2rem 1.5rem;
    }

    .f-submit-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .f-disclaimer {
        max-width: 100%;
        text-align: center;
    }

    .f-submit-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 768px) {

    .mp-expertise-section {
        padding: 6rem 0;
    }

    .mp-exp-card {
        padding: 2.5rem 1.5rem;
        min-height: auto;
    }

    .mp-sticky-section {
        padding: 6rem 0;
        /* Less vertical whitespace in mobile */
    }

    .mp-sticky-wrap {
        flex-direction: column;
        gap: 3rem;
        /* Brings cards closer to the title on mobile */
    }

    .mp-sticky-title-wrap {
        position: relative;
        top: 0;
        width: 100%;
        margin-bottom: 1rem;
    }

    .mp-sticky-content {
        width: 100%;
        gap: 4rem;
        padding-bottom: 4rem;
    }

    /* Mobile Horizontal Carousel System */
    .mobile-carousel {
        display: flex !important;
        flex-direction: row !important;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        gap: 1.5rem !important;
        padding: 0 4vw 2rem 4vw !important;
        /* Side padding inside scroll */
        margin-left: -4vw;
        /* Break out of container constraints */
        margin-right: -4vw;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        scrollbar-width: none;
    }

    .mobile-carousel::-webkit-scrollbar {
        display: none;
    }

    .mobile-carousel>* {
        flex: 0 0 85% !important;
        /* Leave 15% to spy the next card */
        scroll-snap-align: center;
        margin-bottom: 0 !important;
        min-width: 0;
        /* Fix flex child overflow limits */
        height: auto;
    }

    .mp-card {
        padding: 1.8rem 1.2rem;
        gap: 1rem;
    }

    .mp-card-text h3 {
        font-size: 1.8rem;
    }

    .mp-card-text p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .mp-card-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 0.5rem;
    }

    .category-badge-new {
        margin-bottom: 0.8rem;
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }

    .mp-exp-card h3 {
        font-size: 1.6rem;
        margin-top: 1rem;
    }

    .mp-exp-list li {
        font-size: 0.95rem;
        padding-left: 1.25rem;
        margin-bottom: 0.75rem;
        line-height: 1.4;
    }

    .hero-map-bg {
        width: 180vw;
        bottom: 25%;
        /* Elevado considerablemente para asegurar visibilidad bajo el título */
        height: 65vh;
        /* Re-proporcionado para dispositivos móviles */
        -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
        mask-image: linear-gradient(to top, rgba(0, 0, 0, 1) 40%, rgba(0, 0, 0, 0) 100%);
    }

    .h-stat-card {
        padding: 1.5rem 1rem;
    }

    .h-stat-top {
        margin-bottom: 1rem;
    }

    .h-stat-val {
        font-size: 2.5rem;
    }

    .h-stat-plus {
        font-size: 1.5rem;
    }

    .h-stat-label {
        font-size: 0.65rem;
    }

    /* Navbar Mobile Menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        left: auto;
        width: 100vw;
        height: 100vh;
        background-color: var(--clr-obsidian);
        /* Match a dark corporate mode menu */
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        text-align: right;
        padding-right: 2.5rem;
        gap: 2rem;
        transition: var(--transition);
        z-index: 1000;
        visibility: hidden;
        /* Fix performance draw */
    }

    .nav-links.active {
        right: 0;
        visibility: visible;
    }

    .nav-links li a {
        font-size: 1.5rem;
        color: var(--clr-white);
        display: inline-block;
    }

    .whatsapp-float {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1001;
    }

    .nav-lang {
        margin-left: 0;
        justify-content: center;
    }

    .section-heading {
        font-size: 2.5rem;
    }

    .giant-heading {
        font-size: 3rem;
    }

    .f-form-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .hero-stats-row {
        grid-template-columns: 1fr;
        /* Una sola columna para los stats en móvil muy pequeño */
        gap: 0.75rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        /* Romper el layout del equipo 2x2 a una lista */
    }
}