/* ========================================= */
/* 1. VARIABLES & RESET (BASE) */
/* ========================================= */
:root {
    --blue: #2d73e0; --orange: #ff914d; --yellow: #ffe75d;
    --text-main: #1e293b; --text-light: #64748b;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }
html { scroll-behavior: smooth; }
body { background: #e6f3ff; color: var(--text-main); overflow-x: hidden; }

/* --- 2. LAYOUT & FONDO --- */
.glass-wrapper {
    max-width: 1400px; margin: 20px auto;
    background: rgba(255, 255, 255, 0.4); backdrop-filter: blur(20px);
    border: 2px solid var(--glass-border); border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.05);
    overflow: hidden; min-height: 95vh; position: relative;
}

/* EL SOL ANIMADO */
.sun-container { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: -1; }
.the-sun {
    width: 160px; height: 160px;
    background: radial-gradient(circle, #ffd700 20%, #ff8c00 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(255, 140, 0, 0.6), 0 0 100px rgba(255, 215, 0, 0.4);
    position: absolute; top: 10%; left: -150px;
    animation: sunMove 60s infinite linear;
}
@keyframes sunMove {
    0% { transform: translate(0, 0); }
    50% { transform: translate(50vw, -30px); }
    100% { transform: translate(110vw, 30px); }
}

/* Formas flotantes */
.floating-shapes div { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.4; z-index: -2; }
.s1 { width: 400px; height: 400px; background: #bfdbfe; top: -100px; left: -100px; }
.s2 { width: 300px; height: 300px; background: #ffe75d; bottom: 10%; right: -50px; }
.s3 { width: 250px; height: 250px; background: #ffccbc; top: 30%; left: 40%; opacity: 0.2; }

/* Nubes */
.global-clouds-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; overflow: hidden; }
.cloud-3d { position: absolute; opacity: 0.9; filter: drop-shadow(0 10px 15px rgba(45,115,224,0.2)); }
.cloud-foreground { z-index: 100; filter: blur(4px); opacity: 0.5; }

/* Nube 1 (La que molestaba) */
.c-pos-1 { top: -5%; left: -120px; width: 280px; opacity: 0.5; }
.c-pos-2 { top: 15%; right: -5%; width: 180px; opacity: 0.7; z-index: -1; }
.c-pos-3 { top: 35%; left: -8%; width: 200px; opacity: 0.6; }
.c-pos-4 { top: 50%; right: -5%; width: 220px; opacity: 0.8; }
.c-pos-5 { bottom: 20%; left: 5%; width: 150px; opacity: 0.5; }
.c-front-1 { top: 25%; right: -15%; width: 350px; }
.c-front-2 { bottom: 10%; left: -15%; width: 400px; }

.float-pass { animation: floatPass 35s linear infinite; }
.float-pass-rev { animation: floatPassRev 40s linear infinite; }
@keyframes floatPass { 0% { transform: translateX(0); } 50% { transform: translateX(-60px); } 100% { transform: translateX(0); } }
@keyframes floatPassRev { 0% { transform: translateX(0); } 50% { transform: translateX(60px); } 100% { transform: translateX(0); } }

/* --- 3. NAVBAR --- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 50px; position: sticky; top: 0; z-index: 200;
    background: rgba(255,255,255,0.95); box-shadow: 0 5px 20px rgba(0,0,0,0.02);
}
.logo { display: flex; align-items: center; gap: 10px; }
.nav-logo-img { height: 35px; }
.logo-text { font-family: 'Mulish', sans-serif; font-weight: 800; font-size: 24px; color: #1a5bb8; }
.dot { color: #FFD700; font-family: 'Mulish', sans-serif; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { text-decoration: none; color: var(--text-main); font-weight: 500; transition: 0.3s; }
.nav-links a:hover { color: var(--blue); transform: translateY(-2px); display: inline-block;}
.btn-nav-contact { background: var(--blue); color: white !important; padding: 8px 20px; border-radius: 20px; transition: 0.3s; }
.btn-nav-contact:hover { background: var(--text-main); }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.bar { width: 25px; height: 3px; background: var(--text-main); transition: 0.3s; }

/* ========================================= */
/* 4. HERO SECTION (PORTADA) */
/* ========================================= */
.hero-section {
    display: grid;
    /* Grid Asimétrico: Texto 55%, Imagen 45% (PC) */
    grid-template-columns: 55% 45%; 
    padding: 60px 80px;
    align-items: center;
    gap: 0; 
    min-height: 85vh; 
    position: relative; 
    z-index: 10;
}

.main-title { font-size: 3.8rem; line-height: 1.1; font-weight: 800; color: #1a4fa0; margin-bottom: 20px; }
.highlight-anim {
    background: linear-gradient(90deg, var(--orange), var(--yellow), var(--orange));
    background-size: 200% auto; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: textShine 4s linear infinite;
}
@keyframes textShine { to { background-position: 200% center; } }

.btn-primary {
    background: var(--orange); color: white; padding: 15px 35px; border-radius: 50px;
    text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: 10px;
    box-shadow: 0 10px 25px rgba(255, 145, 77, 0.4); transition: 0.3s;
}
.pulse-btn:hover { transform: translateY(-3px); box-shadow: 0 15px 35px rgba(255, 145, 77, 0.6); }

/* --- BARRA DE CONFIANZA (Logos debajo del botón) --- */
.trust-bar {
    margin-top: 40px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.badges-container {
    border: 1px solid rgba(255, 255, 255, 0); padding: 12px 0; display: flex; align-items: center; gap: 20px;
}
.badge-img {
    height: 80px; width: auto; object-fit: contain; transition: all 0.3s ease;
}
.badge-img-1 {
    height: 160px; width: auto; object-fit: contain; transition: all 0.3s ease;
}
.separator { width: 1px; height: 30px; background: #cbd5e1; }

/* --- VISUAL DERECHA (Cohete) --- */
.hero-visual { 
    position: relative; 
    display: flex; 
    justify-content: flex-start; /* Alineado a la izquierda en PC */
    align-items: center; 
    height: 550px; 
    margin-left: -40px; /* Acercar al texto en PC */
}

.rocket-3d { 
    width: 100%; 
    max-width: 550px; 
    z-index: 5; 
    filter: drop-shadow(0 30px 50px rgba(45,115,224,0.3));
}

.glow-circle { 
    width: 400px; height: 400px; 
    background: radial-gradient(circle, rgba(45,115,224,0.2) 0%, transparent 70%); 
    position: absolute; animation: pulseGlow 4s infinite alternate; 
}
@keyframes pulseGlow { 0% { opacity: 0.5; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1.1); } }

/* ETIQUETAS FLOTANTES (Configuración PC) */
.floating-tag {
    position: absolute; background: rgba(255,255,255,0.95); backdrop-filter: blur(10px);
    padding: 8px 18px; border-radius: 30px; font-size: 0.8rem; font-weight: 800;
    color: var(--text-main); box-shadow: 0 10px 25px rgba(45,115,224,0.15); border: 1px solid white;
    display: flex; align-items: center; gap: 8px; z-index: 10; white-space: nowrap; transition: transform 0.3s;
}
.floating-tag:hover { transform: scale(1.1); background: white; z-index: 20; border-color: var(--blue); }
.dot-icon { width: 8px; height: 8px; border-radius: 50%; display: block; }
.dot-icon.blue { background: var(--blue); } .dot-icon.orange { background: var(--orange); } 
.dot-icon.yellow { background: #facc15; } .dot-icon.green { background: #10b981; } 
.dot-icon.purple { background: #8b5cf6; } .dot-icon.red { background: #ef4444; }
.dot-icon.indigo { background: #6366f1; }

/* Posiciones PC */
.tag-1 { top: 10%; left: 0%; } 
.tag-2 { top: 5%; right: 5%; } 
.tag-3 { bottom: 15%; left: 5%; } 
.tag-4 { bottom: 10%; right: 0%; }
.tag-5 { top: 45%; left: -10%; } 
.tag-6 { top: 50%; right: 0%; }

/* --- 5. SERVICIOS --- */
.services-section { padding: 60px 80px; position: relative; z-index: 10; }
.section-title { font-size: 2.5rem; font-weight: 800; color: #1a4fa0; text-align: center; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; margin-top: 40px; }
.glass-card {
    background: white; border-radius: 24px; padding: 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(255,255,255,0.8); transition: 0.3s; position: relative; overflow: hidden; cursor: pointer; z-index: 20;
}
.glass-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 15px 40px rgba(45,115,224,0.15); }
.glass-card:hover .float-icon { transform: scale(1.1) rotate(10deg); }
.shine-effect {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    transform: skewX(-20deg); transition: 0.6s;
}
.glass-card:hover .shine-effect { left: 150%; }
.icon-box { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 20px; font-size: 1.2rem; transition: 0.3s; }
.color-blue { background: var(--blue); } .color-orange { background: var(--orange); } .color-yellow { background: #facc15; } 
.color-purple { background: #8b5cf6; } .color-green { background: #10b981; } .color-red { background: #ef4444; }
.color-cyan { background: #00bcd4; } .color-indigo { background: #6366f1; }

/* --- 6. CARRUSEL --- */
.gallery-section { padding: 80px 0; position: relative; z-index: 10; overflow: hidden; }
.gallery-section .section-header { margin-bottom: 40px; padding: 0 40px; }
.slider-wrapper { max-width: 1400px; margin: 0 auto; position: relative; display: flex; align-items: center; padding: 20px 40px; }
.slider-arrow { 
    height: 50px; width: 50px; background: rgba(255, 255, 255, 0.8); backdrop-filter: blur(5px);
    text-align: center; line-height: 50px; border-radius: 50%; cursor: pointer; 
    position: absolute; top: 50%; transform: translateY(-50%); box-shadow: 0 5px 15px rgba(0,0,0,0.1); 
    z-index: 100; color: var(--blue); font-size: 1.2rem; transition: all 0.3s ease; border: 1px solid white;
}
.slider-arrow:hover { background: var(--blue); color: white; transform: translateY(-50%) scale(1.1); }
#left { left: 10px; } #right { right: 10px; }
.carousel { 
    display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% / 3) - 20px); gap: 25px; 
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; 
    scrollbar-width: none; list-style: none; width: 100%; padding-bottom: 20px; 
}
.carousel::-webkit-scrollbar { display: none; }
.carousel .card { 
    scroll-snap-align: start; height: 400px; border-radius: 25px; background: #fff; cursor: pointer; 
    position: relative; overflow: hidden; box-shadow: 0 15px 30px rgba(0,0,0,0.08); 
    transition: all 0.4s ease; border: 2px solid white;
}
.carousel .card:hover { transform: translateY(-10px); box-shadow: 0 25px 50px rgba(45, 115, 224, 0.2); border-color: var(--blue); }
.img-area.full-h { height: 100%; width: 100%; }
.placeholder-img { width: 100%; height: 100%; background-size: cover; background-position: center; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.carousel .card:hover .placeholder-img { transform: scale(1.1); }

/* --- IMÁGENES DE FONDO --- */
.bg-1 { background-image: url('1.jpeg'); } .bg-2 { background-image: url('2.jpeg'); } .bg-3 { background-image: url('3.jpeg'); }
.bg-4 { background-image: url('4.jpeg'); } .bg-5 { background-image: url('5.jpeg'); } .bg-6 { background-image: url('6.jpeg'); }
.bg-7 { background-image: url('7.jpeg'); } .bg-8 { background-image: url('8.jpeg'); } .bg-9 { background-image: url('9.jpeg'); }
.bg-10 { background-image: url('10.jpeg'); } .bg-11 { background-image: url('11.jpg'); } .bg-13 { background-image: url('13.jpeg'); }

/* --- 7. QUIENES SOMOS --- */
.about-section { padding: 80px; position: relative; z-index: 10; }
.about-glass-modern { background: rgba(255,255,255,0.6); backdrop-filter: blur(20px); border-radius: 40px; padding: 70px; box-shadow: 0 20px 60px rgba(45,115,224,0.05); position: relative; overflow: hidden; border: 2px solid white; }
.about-header-minimal { text-align: center; max-width: 850px; margin: 0 auto 60px; }
.about-highlight { font-size: 1.3rem; font-weight: 600; color: var(--blue); margin-bottom: 20px; line-height: 1.5; }
.about-desc { font-size: 1.1rem; color: var(--text-light); font-weight: 400; line-height: 1.6; }
.lego-card-modern { position: relative; border-radius: 30px; overflow: hidden; height: 320px; box-shadow: 0 20px 50px rgba(45,115,224,0.25); display: flex; align-items: center; justify-content: center; }
.lego-card-modern:hover { transform: translateY(-5px); transition: 0.3s; }
.lego-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: 0.8s; }
.lego-card-modern:hover .lego-bg { transform: scale(1.05); }
.lego-overlay-gradient { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(45,115,224,0.95) 0%, rgba(45,115,224,0.3) 100%); z-index: 1; }
.lego-content { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 0 60px; gap: 40px; }
.lego-content h3 { color: white; font-size: 2.2rem; font-weight: 800; line-height: 1.1; max-width: 750px; text-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.action-circle { width: 65px; height: 65px; background: var(--orange); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 1.5rem; box-shadow: 0 10px 20px rgba(255,145,77,0.4); transition: 0.3s; }
.lego-card-modern:hover .action-circle { transform: scale(1.1); background: #ff9e60; }
.r-float { position: absolute; top: -40px; right: -20px; width: 100px; opacity: 0.8; transform: rotate(15deg); filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1)); }

/* --- 8. CONTACTO & FOOTER --- */
.contact-section { padding: 60px 80px; position: relative; z-index: 10; }
.contact-container { max-width: 1100px; margin: 0 auto; }
.contact-glass-card { background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(25px); border-radius: 40px; border: 1px solid rgba(255, 255, 255, 0.9); box-shadow: 0 30px 60px rgba(45, 115, 224, 0.15); overflow: hidden; margin-bottom: 40px; }
.contact-grid-modern { display: grid; grid-template-columns: 1fr 1.2fr; }
.contact-info-modern { padding: 60px; background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(240,248,255,0.5) 100%); display: flex; flex-direction: column; justify-content: center; }
.contact-title { font-size: 2.5rem; font-weight: 800; color: var(--text-main); margin-bottom: 15px; line-height: 1.1; }
.highlight-text { color: var(--blue); }
.contact-subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 40px; }
.contact-details { display: flex; flex-direction: column; gap: 25px; margin-bottom: 40px; }
.detail-item { display: flex; align-items: center; gap: 20px; }
.icon-circle { width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; box-shadow: 0 10px 20px rgba(0,0,0,0.1); transition: 0.3s; }
.blue-icon { background: var(--blue); } .orange-icon { background: var(--orange); }
.detail-item:hover .icon-circle { transform: scale(1.1) rotate(10deg); }
.detail-text { display: flex; flex-direction: column; }
.detail-text .label { font-size: 0.85rem; color: var(--text-light); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; }
.detail-text .value { font-size: 1.1rem; color: var(--text-main); font-weight: 700; text-decoration: none; transition: 0.2s; }
.detail-text .value:hover { color: var(--blue); }
.btn-whatsapp-modern { background: #25D366; color: white; padding: 15px 30px; border-radius: 15px; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); transition: 0.3s; }
.btn-whatsapp-modern:hover { background: #1ebc57; transform: translateY(-3px); box-shadow: 0 15px 25px rgba(37, 211, 102, 0.4); }
.contact-form-modern { padding: 60px; background: white; }
.form-title { font-size: 1.5rem; font-weight: 700; color: var(--text-main); margin-bottom: 30px; }
.input-group-modern { position: relative; margin-bottom: 25px; }
.input-group-modern input, .input-group-modern textarea { width: 100%; padding: 15px; border: 2px solid #eef2f6; border-radius: 12px; background: #f8fafc; font-size: 1rem; color: var(--text-main); outline: none; transition: 0.3s; font-family: 'Poppins', sans-serif; }
.input-group-modern label { position: absolute; left: 15px; top: 15px; color: #94a3b8; pointer-events: none; transition: 0.3s; font-size: 1rem; background: transparent; padding: 0 5px; }
.input-group-modern input:focus, .input-group-modern textarea:focus, .input-group-modern input:not(:placeholder-shown), .input-group-modern textarea:not(:placeholder-shown) { border-color: var(--blue); background: white; }
.input-group-modern input:focus ~ label, .input-group-modern textarea:focus ~ label, .input-group-modern input:not(:placeholder-shown) ~ label, .input-group-modern textarea:not(:placeholder-shown) ~ label { top: -10px; left: 10px; font-size: 0.85rem; color: var(--blue); background: white; font-weight: 600; }
.btn-submit-modern { width: 100%; background: var(--blue); color: white; border: none; padding: 16px; border-radius: 12px; font-size: 1.1rem; font-weight: 700; cursor: pointer; transition: 0.3s; box-shadow: 0 10px 20px rgba(45, 115, 224, 0.25); display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-submit-modern:hover { background: #1a5bb8; transform: translateY(-3px); box-shadow: 0 15px 30px rgba(45, 115, 224, 0.35); }

/* FOOTER */
footer { text-align: center; color: var(--text-light); font-size: 0.9rem; margin-top: 20px; }
footer a { color: var(--blue); font-weight: 700; text-decoration: none; }
.footer-logo { height: 100px; margin-bottom: 10px; }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.6); backdrop-filter: blur(8px); z-index: 1000; display: none; justify-content: center; align-items: center; padding: 20px; opacity: 0; transition: 0.3s; }
.modal-overlay.active { display: flex; opacity: 1; }
.modal-window { background: rgba(255,255,255,0.95); width: 100%; max-width: 700px; max-height: 85vh; border-radius: 30px; padding: 40px; position: relative; overflow-y: auto; border: 1px solid white; transform: scale(0.8); transition: 0.3s; }
.modal-overlay.active .modal-window { transform: scale(1); }
.close-modal { position: absolute; top: 20px; right: 20px; background: #f1f5f9; border: none; width: 40px; height: 40px; border-radius: 50%; font-size: 1.2rem; color: var(--text-light); cursor: pointer; transition: 0.3s; }
.close-modal:hover { background: var(--text-main); color: white; transform: rotate(90deg); }
.modal-title { font-size: 2rem; font-weight: 800; margin-bottom: 5px; }
.modal-subtitle { font-size: 1.1rem; color: var(--text-light); margin-bottom: 20px; font-weight: 600; }
.modal-box { 
    background: #fff; padding: 25px; border-radius: 20px; margin: 25px 0; 
    border-left: 6px solid #ddd; box-shadow: 0 10px 30px rgba(0,0,0,0.04); 
}
.modal-list { margin-left: 20px; color: var(--text-main); }
.modal-note { background: #fffbe6; padding: 15px; border-radius: 10px; font-size: 0.95rem; margin-top: 20px; border: 1px solid #ffe58f; }
.text-indigo { color: #6366f1; }

/* --- COLORES PERSONALIZADOS PARA MODALES --- */
[data-id="seleccion"] .modal-box { border-left-color: var(--yellow); background: linear-gradient(to right, rgba(255, 231, 93, 0.08), transparent); }
[data-id="reclutamiento-it"] .modal-box { border-left-color: #6366f1; background: linear-gradient(to right, rgba(99, 102, 241, 0.08), transparent); }
[data-id="reclutamiento-it"] p { margin-bottom: 15px; line-height: 1.7; }
[data-id="liderazgo"] .modal-box { border-left-color: var(--orange); background: linear-gradient(to right, rgba(255, 145, 77, 0.08), transparent); }
[data-id="coaching-equipos"] .modal-box { border-left-color: var(--blue); background: linear-gradient(to right, rgba(45, 115, 224, 0.08), transparent); }
[data-id="teambuilding"] .modal-box { border-left-color: #8b5cf6; background: linear-gradient(to right, rgba(139, 92, 246, 0.08), transparent); }
[data-id="talento"] .modal-box { border-left-color: #10b981; background: linear-gradient(to right, rgba(16, 185, 129, 0.08), transparent); }
[data-id="bienestar"] .modal-box { border-left-color: #ef4444; background: linear-gradient(to right, rgba(239, 68, 68, 0.08), transparent); }

/* ANIMACIONES */
.float-slow { animation: floatY 6s ease-in-out infinite; }
.float-reverse { animation: floatYReverse 7s ease-in-out infinite; }
.float-slow-2 { animation: floatDiagonal 8s ease-in-out infinite; }
.float-reverse-2 { animation: floatCircular 9s ease-in-out infinite; }
.float-infinite { animation: floatY 6s ease-in-out infinite; }
@keyframes floatY { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
@keyframes floatYReverse { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(15px); } }
@keyframes floatDiagonal { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -8px); } }
@keyframes floatCircular { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-8px, -5px); } }
.reveal-up { opacity: 0; transform: translateY(30px); transition: 0.8s; }
.reveal-down { animation: slideDown 1s ease-out; }
@keyframes slideDown { from { transform: translateY(-100%); } to { transform: translateY(0); } }
.active-reveal { opacity: 1; transform: translate(0) scale(1); }

/* ==================================================== */
/* === RESPONSIVE UNIFICADO (TABLET Y MÓVIL) === */
/* ==================================================== */

@media (max-width: 1024px) {
    .glass-wrapper { margin: 0; border-radius: 0; border: none; }
    .hero-section { padding: 60px 40px; }
    .carousel { grid-auto-columns: calc((100% / 2) - 9px); }
}

@media (max-width: 900px) {
    /* 1. HERO SECTION: Stack Vertical */
    .hero-section { 
        display: flex; 
        flex-direction: column;
        padding: 40px 20px; 
        text-align: center; 
        gap: 40px; 
    }
    
    /* Ordenamos: Texto primero, Imagen después */
    .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: center; /* Centrar todo el texto */
        padding-left: 0; /* Resetear padding de PC */
    }

    .main-title { font-size: 2.5rem; margin-bottom: 20px; }

    /* 2. VISUAL COHETE */
    .hero-visual {
        order: 2; 
        height: 380px; 
        width: 100%;
        justify-content: center; /* Centrar cohete horizontalmente */
        margin-left: 0; /* Quitar el margen negativo de PC */
        margin-top: 20px;
    }

    .rocket-3d { 
        max-width: 260px; /* Tamaño controlado para móvil */
        transform: none; /* Reset transformaciones */
    }

    /* 3. ETIQUETAS: Reubicación segura */
    .floating-tag { 
        padding: 6px 12px; font-size: 0.65rem; 
    }
    .tag-1 { top: 0%; left: 0%; }
    .tag-2 { top: 0%; right: 0%; }
    .tag-3 { bottom: 0%; left: 0%; }
    .tag-4 { bottom: 0%; right: 0%; }
    /* Las etiquetas laterales se mueven un poco hacia adentro */
    .tag-5 { top: 40%; left: -5%; }
    .tag-6 { top: 45%; right: -5%; }

    /* 4. LOGOS (Badges) */
    .trust-bar {
        align-items: center; /* Centrar en móvil */
        margin-top: 30px;
    }
    .badge-img { height: 45px; }

    /* 5. NUBE: Ocultar o mover */
    .c-pos-1 { display: none; } /* Mejor ocultarla en móvil para limpiar la vista */
    
    /* 6. OTROS AJUSTES */
    .slider-wrapper { padding: 0 20px; }
    .carousel { grid-auto-columns: 85%; gap: 15px; padding-left: 10px; }
    .slider-arrow { display: none; }
    
    .services-grid { grid-template-columns: 1fr; padding: 0 10px; }
    .contact-grid-modern { grid-template-columns: 1fr; }
    .contact-info-modern, .contact-form-modern { padding: 40px 20px; text-align: center; }
    .contact-details { width: 100%; }
    .detail-item { justify-content: center; }
    .btn-whatsapp-modern { width: 100%; }
    
    /* MENÚ */
    .navbar { padding: 15px 20px; }
    .hamburger { display: flex; }
    .nav-links { position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px); background: white; flex-direction: column; justify-content: center; transition: 0.4s; z-index: 199; box-shadow: -5px 0 15px rgba(0,0,0,0.1); }
    .nav-links.active { right: 0; }
}
/* ==================================================== */
/* === RESPONSIVO MÓVIL (CORREGIDO Y ESPACIADO) === */
/* ==================================================== */

@media (max-width: 900px) {
    
    /* 1. HERO: Stack Vertical limpio */
    .hero-section { 
        display: flex; 
        flex-direction: column;
        padding: 100px 20px 40px 20px; /* Más espacio arriba para que no choque con el menú */
        text-align: center; 
        gap: 40px; 
    }
    
    .hero-content {
        order: 1;
        width: 100%;
        padding: 0;
    }

    .main-title { font-size: 2.2rem; margin-bottom: 20px; line-height: 1.2; }

    /* Cohete y Etiquetas */
    .hero-visual {
        order: 2; 
        height: 350px; 
        width: 100%;
        justify-content: center;
        margin: 0;
    }

    .rocket-3d { 
        max-width: 240px; 
        transform: none; 
    }

    /* Etiquetas flotantes ajustadas para no salirse */
    .floating-tag { padding: 6px 12px; font-size: 0.65rem; white-space: normal; text-align: center; }
    .tag-1 { top: -5%; left: 5%; }
    .tag-2 { top: 0%; right: 5%; }
    .tag-3 { bottom: 0%; left: 0%; }
    .tag-4 { bottom: 0%; right: 0%; }
    .tag-5 { top: 40%; left: -10%; }
    .tag-6 { top: 45%; right: -10%; }

    /* Trust Bar (Logos) */
    .trust-bar { align-items: center; margin-top: 25px; width: 100%; justify-content: center; }
    .badges-container { justify-content: center; width: 100%; }
    .badge-img { height: 40px; }

    /* Nube problemática: Ocultar en móvil para limpiar */
    .c-pos-1 { display: none; }
    
    /* ---------------------------------------------------- */
    /* 2. QUIÉNES SOMOS (Arreglo de "aplastado") */
    /* ---------------------------------------------------- */
    .about-section { 
        padding: 40px 15px; /* Menos padding lateral para ganar ancho */
    }
    
    .about-glass-modern { 
        padding: 40px 20px; /* Reducimos padding interno */
        border-radius: 25px; 
    }
    
    .about-header-minimal { 
        margin-bottom: 40px; /* Espacio antes de la tarjeta Lego */
    }
    
    .section-title { font-size: 2rem; }
    .about-highlight { font-size: 1.1rem; line-height: 1.5; margin-bottom: 20px; }
    
    .lego-card-modern { 
        height: auto; /* Altura automática para que no corte contenido */
        min-height: 280px;
        padding: 30px 20px; 
        text-align: center; 
    }
    
    .lego-content { 
        flex-direction: column; 
        gap: 25px; /* Espacio entre texto y flecha */
    }
    
    .lego-content h3 { font-size: 1.4rem; }
    .action-circle { margin: 0 auto; /* Centrar flecha */ }

    /* ---------------------------------------------------- */
    /* 3. SERVICIOS (Espaciado vertical) */
    /* ---------------------------------------------------- */
    .services-section { padding: 40px 15px; }
    
    .services-grid { 
        grid-template-columns: 1fr; /* Una columna */
        padding: 0; 
        gap: 25px; /* Espacio vertical entre tarjetas */
    }
    
    .glass-card {
        margin-bottom: 10px; /* Asegura separación extra */
        padding: 30px 20px; /* Buen espacio interno */
    }

    /* ---------------------------------------------------- */
    /* 4. CARRUSEL (Ajustes) */
    /* ---------------------------------------------------- */
    .slider-wrapper { padding: 0 10px; }
    .carousel { grid-auto-columns: 85%; gap: 15px; padding-left: 5px; }
    .slider-arrow { display: none; }
    
    /* ---------------------------------------------------- */
    /* 5. CONTACTO (Desapilado) */
    /* ---------------------------------------------------- */
    .contact-section { padding: 40px 15px; }
    
    .contact-grid-modern { 
        grid-template-columns: 1fr; 
        gap: 0; /* Quitamos gap del grid, usamos padding interno */
    }
    
    .contact-info-modern { 
        padding: 40px 25px; 
        text-align: center; 
        border-radius: 40px 40px 0 0; /* Redondear solo arriba */
    }
    
    .contact-form-modern { 
        padding: 40px 25px; 
        border-radius: 0 0 40px 40px; /* Redondear solo abajo */
    }
    
    .contact-details { width: 100%; margin: 30px 0; }
    .detail-item { justify-content: center; margin-bottom: 15px; }
    .btn-whatsapp-modern { width: 100%; justify-content: center; }
    
    /* MENÚ HAMBURGUESA */
    .navbar { padding: 15px 20px; }
    .hamburger { display: flex; }
    .nav-links { 
        position: fixed; top: 70px; right: -100%; width: 100%; height: calc(100vh - 70px); 
        background: rgba(255, 255, 255, 0.98); 
        backdrop-filter: blur(10px);
        flex-direction: column; justify-content: start; padding-top: 60px;
        transition: 0.4s; z-index: 199; 
        box-shadow: -5px 0 15px rgba(0,0,0,0.05); 
    }
    .nav-links li { margin: 20px 0; width: 100%; text-align: center; }
    .nav-links.active { right: 0; }
}

/* ==================================================== */
/* === MODALES "FULL COLOR" (Cero Gris) === */
/* ==================================================== */

/* 1. Estructura Base de la Caja */
.modal-box {
    padding: 30px;
    border-radius: 24px; /* Más redondeado */
    margin: 25px 0;
    position: relative;
    border-left-width: 0; /* Quitamos borde lateral simple */
    border: 2px solid transparent; /* Preparamos para color completo */
    box-shadow: 0 20px 40px rgba(0,0,0,0.05); /* Sombra suave */
}

/* Títulos pequeños dentro de la caja */
.modal-box h5 {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.9;
}

/* Listas y Texto */
.modal-list li, .modal-box p {
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 8px;
}

.modal-list li {
    padding-left: 20px;
    position: relative;
}


/* ==================================================== */
/* === MODALES "FULL VIBRANT" (Mucho Color) === */
/* ==================================================== */

/* 1. ESTRUCTURA BASE */
.modal-box {
    padding: 30px;
    border-radius: 20px;
    margin: 25px 0;
    position: relative;
    border: 2px solid transparent; /* El borde vendrá del color específico */
    box-shadow: 0 15px 30px rgba(0,0,0,0.05);
}

/* Títulos (H5) */
.modal-box h5 {
    font-size: 1.1rem;
    font-weight: 900; /* Más negrita */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Párrafos y Listas (Tipografía) */
.modal-box p, .modal-list li {
    font-weight: 600; /* Letra un poco más gruesa para que se lea bien en color */
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-list li {
    padding-left: 20px;
    position: relative;
}

/* ==================================================== */
/* === MODALES "FULL COLOR" (Estilo Intenso) === */
/* ==================================================== */

/* 1. ESTRUCTURA BASE DE LA CAJA */
.modal-box {
    padding: 25px 30px;
    border-radius: 20px;
    margin: 25px 0;
    position: relative;
    /* Borde sólido de 2px para definir bien la caja */
    border: 2px solid transparent; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Títulos dentro de la caja (H5) */
.modal-box h5 {
    font-size: 1.1rem;
    font-weight: 900; /* Negrita fuerte */
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Texto de párrafos y listas */
.modal-box p, .modal-list li {
    font-weight: 600; /* Letra con peso para leerse bien sobre color */
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-list li {
    padding-left: 25px; /* Espacio para el icono */
    position: relative;
}

/* ==================================================== */
/* === MODALES FULL COLOR (Títulos y Textos teñidos) === */
/* ==================================================== */

/* 1. ESTRUCTURA DE LA CAJA */
.modal-box {
    padding: 25px 30px;
    border-radius: 20px;
    margin: 25px 0;
    position: relative;
    border: 2px solid transparent; 
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* 2. TIPOGRAFÍA (Base) */
.modal-title { 
    font-size: 2.2rem; 
    font-weight: 800; 
    margin-bottom: 5px; 
    line-height: 1.1; 
    /* El color se define abajo por sección */
}

.modal-subtitle { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 20px; 
    opacity: 0.9;
}

/* Estilo de párrafos y listas dentro del modal */
.modal-content-container p, 
.modal-list li {
    font-weight: 500;
    line-height: 1.6;
    margin-bottom: 12px;
}


/* Título pequeño dentro de la caja */
.modal-box h5 {
    font-size: 1.1rem;
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ==================================================== */
/* === PALETA DE COLORES (Aquí ocurre la magia) === */
/* ==================================================== */

/* --- SELECCIÓN (Amarillo/Dorado) --- */
[data-id="seleccion"] .modal-title { color: #d97706; }      /* Título Principal */
[data-id="seleccion"] .modal-subtitle { color: #b45309; }   /* Subtítulo */
[data-id="seleccion"] p, 
[data-id="seleccion"] li { color: #78350f; }                /* Texto de párrafos */
[data-id="seleccion"] .modal-box {
    background-color: #fffbeb; /* Fondo caja */
    border-color: #fbbf24;     /* Borde caja */
}
[data-id="seleccion"] .modal-box h5 { color: #92400e; }     /* Título caja */

/* --- RECLUTAMIENTO IT (Indigo) --- */
[data-id="reclutamiento-it"] .modal-title { color: #4f46e5; }
[data-id="reclutamiento-it"] .modal-subtitle { color: #4338ca; }
[data-id="reclutamiento-it"] p,
[data-id="reclutamiento-it"] li { color: #312e81; }
[data-id="reclutamiento-it"] .modal-box {
    background-color: #eef2ff;
    border-color: #6366f1;
}
[data-id="reclutamiento-it"] .modal-box h5 { color: #3730a3; }

/* --- LIDERAZGO (Naranja) --- */
[data-id="liderazgo"] .modal-title { color: #ea580c; }
[data-id="liderazgo"] .modal-subtitle { color: #c2410c; }
[data-id="liderazgo"] p,
[data-id="liderazgo"] li { color: #7c2d12; }
[data-id="liderazgo"] .modal-box {
    background-color: #fff7ed;
    border-color: #f97316;
}
[data-id="liderazgo"] .modal-box h5 { color: #9a3412; }

/* --- COACHING (Azul) --- */
[data-id="coaching-equipos"] .modal-title { color: #2563eb; }
[data-id="coaching-equipos"] .modal-subtitle { color: #1d4ed8; }
[data-id="coaching-equipos"] p,
[data-id="coaching-equipos"] li { color: #1e3a8a; }
[data-id="coaching-equipos"] .modal-box {
    background-color: #eff6ff;
    border-color: #3b82f6;
}
[data-id="coaching-equipos"] .modal-box h5 { color: #1e40af; }

/* --- TEAM BUILDING (Violeta) --- */
[data-id="teambuilding"] .modal-title { color: #9333ea; }
[data-id="teambuilding"] .modal-subtitle { color: #7e22ce; }
[data-id="teambuilding"] p,
[data-id="teambuilding"] li { color: #581c87; }
[data-id="teambuilding"] .modal-box {
    background-color: #faf5ff;
    border-color: #a855f7;
}
[data-id="teambuilding"] .modal-box h5 { color: #6b21a8; }

/* --- TALENTO (Verde) --- */
[data-id="talento"] .modal-title { color: #16a34a; }
[data-id="talento"] .modal-subtitle { color: #15803d; }
[data-id="talento"] p,
[data-id="talento"] li { color: #14532d; }
[data-id="talento"] .modal-box {
    background-color: #f0fdf4;
    border-color: #22c55e;
}
[data-id="talento"] .modal-box h5 { color: #166534; }

/* --- BIENESTAR (Rojo) --- */
[data-id="bienestar"] .modal-title { color: #dc2626; }
[data-id="bienestar"] .modal-subtitle { color: #b91c1c; }
[data-id="bienestar"] p,
[data-id="bienestar"] li { color: #7f1d1d; }
[data-id="bienestar"] .modal-box {
    background-color: #fef2f2;
    border-color: #ef4444;
}
[data-id="bienestar"] .modal-box h5 { color: #991b1b; }

/* NOTA DE GARANTÍA */
.modal-note {
    margin-top: 25px;
    background: #fff;
    border: 2px dashed #fbbf24;
    color: #854d0e;
    padding: 15px;
    border-radius: 15px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}




:root {
    /* --- Paleta Vibrante --- */
    --c-yellow: #FFB300; --c-yellow-light: #FFF8E1;
    --c-indigo: #3F51B5; --c-indigo-light: #E8EAF6;
    --c-orange: #FF5722; --c-orange-light: #FBE9E7;
    --c-blue:   #2196F3; --c-blue-light:   #E3F2FD;
    --c-purple: #9C27B0; --c-purple-light: #F3E5F5;
    --c-green:  #4CAF50; --c-green-light:  #E8F5E9;
    --c-red:    #E53935; --c-red-light:    #FFEBEE;

    --text-main: #1a202c;
    --text-body: #4a5568;
    --bg-modal: #ffffff;
    --bg-overlay: rgba(15, 23, 42, 0.75);
    --font-stack: 'Poppins', sans-serif;
}

* { box-sizing: border-box; }

/* Animaciones */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(40px) scale(0.95); } to { opacity: 1; transform: translateY(0) scale(1); } }

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-overlay);
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    padding: 20px;
    animation: fadeIn 0.3s ease-out;
}

.modal-window {
    background: var(--bg-modal);
    width: 100%;
    
    /* CAMBIO PRINCIPAL: MÁS ANCHO */
    max-width: 850px; 
    
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.3);
    position: relative;
    max-height: 95vh; /* Aprovecha más altura si es necesario */
    display: flex;
    flex-direction: column;
    animation: slideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-content-container {
    padding: 40px 50px; /* Padding generoso */
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 transparent;
}

/* --- Layout Grid (Para reducir altura) --- */
/* Solo se activa en pantallas de PC/Tablet */
@media (min-width: 768px) {
    .modal-grid {
        display: grid;
        grid-template-columns: 1.3fr 0.9fr; /* Columna izq más ancha que derecha */
        gap: 40px;
        align-items: start; /* Alinea al inicio */
        margin-top: 20px;
    }
    
    /* Ajuste para que la caja no tenga margen superior en desktop */
    h2[class*="text-"] ~ .modal-grid .modal-box {
        margin-top: 0; 
    }
}

/* --- Botón Cerrar --- */
.close-modal {
    position: absolute;
    top: 25px; right: 25px;
    background: #f1f5f9;
    border: none;
    width: 38px; height: 38px;
    border-radius: 50%;
    font-size: 1.1rem;
    color: var(--text-body);
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    z-index: 10;
}
.close-modal:hover { background: var(--c-red); color: white; transform: rotate(90deg); }

/* --- Tipografía --- */
.modal-title {
    font-family: var(--font-stack);
    font-size: 2.2rem; /* Título grande */
    font-weight: 800;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

.modal-subtitle {
    font-family: var(--font-stack);
    font-size: 1.1rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
}

.modal-col-text p {
    font-family: var(--font-stack);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-body);
    margin-bottom: 20px;
}

/* --- Clases de Color (Motores) --- */
.text-yellow { color: var(--c-yellow); --theme-accent: var(--c-yellow); --theme-bg: var(--c-yellow-light); }
.text-indigo { color: var(--c-indigo); --theme-accent: var(--c-indigo); --theme-bg: var(--c-indigo-light); }
.text-orange { color: var(--c-orange); --theme-accent: var(--c-orange); --theme-bg: var(--c-orange-light); }
.text-blue   { color: var(--c-blue);   --theme-accent: var(--c-blue);   --theme-bg: var(--c-blue-light); }
.text-purple { color: var(--c-purple); --theme-accent: var(--c-purple); --theme-bg: var(--c-purple-light); }
.text-green  { color: var(--c-green);  --theme-accent: var(--c-green);  --theme-bg: var(--c-green-light); }
.text-red    { color: var(--c-red);    --theme-accent: var(--c-red);    --theme-bg: var(--c-red-light); }

/* --- Componentes --- */
/* Modificado el selector para buscar dentro del grid */
h2[class*="text-"] ~ .modal-grid .modal-box {
    background-color: var(--theme-bg, #f8f9fa);
    padding: 25px;
    border-radius: 16px;
    border-left: 5px solid var(--theme-accent, var(--text-main));
}

.modal-box h5 {
    font-family: var(--font-stack);
    font-size: 0.9rem;
    color: var(--theme-accent);
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 15px 0;
    letter-spacing: 0.5px;
}

.modal-list { list-style: none; padding: 0; margin: 0; }

.modal-list li {
    font-family: var(--font-stack);
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
}

h2[class*="text-"] ~ .modal-grid .modal-list li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: "\f00c";
    position: absolute; left: 0; top: 3px;
    color: var(--theme-accent);
    font-size: 0.9rem;
}

.modal-note {
    font-family: var(--font-stack);
    font-size: 0.9rem;
    padding: 15px;
    background: #f8fafc;
    border: 1px dashed #cbd5e0; /* Borde punteado moderno */
    border-radius: 10px;
    color: var(--text-body);
    display: flex; gap: 10px; align-items: center;
}
.modal-note::before {
     font-family: 'Font Awesome 6 Free'; font-weight: 900; content: "\f0eb";
     color: var(--text-main); font-size: 1rem;
}

/* --- RESPONSIVIDAD --- */
@media (max-width: 768px) {
    .modal-content-container {
        padding: 30px 25px;
    }
    
    /* En móviles vuelve a ser una sola columna automáticamente */
    .modal-grid {
        grid-template-columns: 1fr; 
        gap: 20px;
    }
    
    h2[class*="text-"] ~ .modal-grid .modal-box {
        margin-top: 10px;
    }
}
/* --- NUEVAS NUBES SOLICITADAS POR EL CLIENTE --- */

/* Nube Arriba Izquierda (Cerca del título/logo) */
.c-extra-top {
    top: 2%;        /* Altura: un poco por debajo del logo */
    left: -80px;    /* Posición: Asomando desde la izquierda */
    width: 220px;   /* Tamaño */
    opacity: 0.6;   /* Transparencia para no molestar la lectura */
    z-index: -1;    /* Detrás del texto */
}

/* Nube Abajo Izquierda (Debajo de los logos de certificación) */
.c-extra-bottom {
    bottom: 2%;     /* Altura: Casi al pie de la pantalla */
    left: -60px;    /* Posición: Asomando desde la izquierda */
    width: 260px;   /* Un poco más grande para rellenar base */
    opacity: 0.7;
    z-index: -1;
}
/* --- REFUERZO DE NUBES (ARRIBA Y ABAJO IZQUIERDA) --- */

/* 1. Arriba Izquierda: La grande de fondo */
.c-extra-top-1 {
    top: -5%;         
    left: -40px;      /* Más adentro que antes */
    width: 280px;     
    opacity: 0.7;     
    z-index: -1;
}

/* --- NUBES RODEANDO EL TEXTO "DESBLOQUEAMOS..." --- */

/* 1. Justo encima de "Desbloqueamos" */
.c-text-top {
    top: 15%;          /* Altura del inicio del título */
    left: 10%;         /* Alineado con el texto */
    width: 180px;      /* Tamaño mediano */
    opacity: 0.5;      /* Suave para no distraer */
    z-index: -1;       /* Detrás de las letras */
}

/* 1. Justo encima de "Desbloqueamos" */
.c-text-top-2 {
    top: 12%;          /* Altura del inicio del título */
    left: 40%;         /* Alineado con el texto */
    width: 150px;      /* Tamaño mediano */
    opacity: 0.5;      /* Suave para no distraer */
    z-index: -1;       /* Detrás de las letras */
}

/* ========================================================= */
/* === CORRECCIONES FINALES PARA CELULAR (PEGAR AL FINAL) === */
/* ========================================================= */

@media (max-width: 900px) {

    /* --- 1. ARREGLO DE TEXTO CORTADO (HERO & COHETE) --- */
    
    /* Aseguramos que nada se salga del ancho de la pantalla */
    body, html {
        overflow-x: hidden;
    }

    .hero-section {
        padding: 90px 15px 30px 15px; /* Más espacio a los lados para que no toque bordes */
        overflow: hidden; /* Corta cualquier elemento rebelde */
    }

    .main-title {
        font-size: 2rem !important; /* Reducir un poco el título para que no se parta mal */
        word-wrap: break-word;
    }

    /* CORRECCIÓN CRÍTICA: Las etiquetas flotantes se salían de la pantalla.
       Ahora las forzamos a estar DENTRO (left: 0 en vez de -10%) */
    .tag-1 { top: -5%; left: 0; }
    .tag-2 { top: 0%; right: 0; }
    .tag-3 { bottom: 0%; left: 0; }
    .tag-4 { bottom: 0%; right: 0; }
    
    /* Las etiquetas laterales que estaban muy afuera */
    .tag-5 { 
        top: 40%; 
        left: 0;   /* Antes era -10%, eso cortaba el texto */
        transform: translateX(-10px); /* Ajuste fino hacia adentro */
    }
    .tag-6 { 
        top: 45%; 
        right: 0;  /* Antes era -10% */
        transform: translateX(10px);
    }

    .floating-tag {
        font-size: 0.6rem; /* Letra un poco más chica para que quepa todo */
        padding: 5px 10px;
        white-space: normal; /* Permite que el texto baje de línea si es largo */
        max-width: 120px;    /* Limita el ancho máximo */
    }

    /* --- 2. ARREGLO DE LAS VENTANAS DE SERVICIOS (MODALES) --- */

    .modal-window {
        width: 95% !important;     /* Que ocupe casi todo el ancho */
        max-width: 95% !important;
        padding: 20px !important;  /* Reducir relleno (antes 40px era mucho) */
        max-height: 80vh;          /* Que no sea más alta que el 80% de la pantalla */
        border-radius: 15px;
    }

    .modal-content-container {
        padding: 10px 5px !important; /* Aprovechar todo el espacio interno */
    }

    .modal-title {
        font-size: 1.5rem !important; /* Título más pequeño */
        margin-top: 15px; /* Espacio para que no choque con el botón cerrar */
    }

    .modal-subtitle {
        font-size: 1rem !important;
    }

    /* Botón cerrar más visible y fácil de tocar */
    .close-modal {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        background: #ffe4e4; /* Un fondo rojizo suave para que se vea bien */
        color: #d32f2f;
    }

    /* Ajuste de las nubes en el modal para que no tapen texto en celular */
    .modal-box {
        padding: 15px !important;
        margin: 15px 0 !important;
    }
}

/* ========================================================= */
/* === CORRECCIÓN DEFINITIVA PARA CELULAR (LIMPIEZA) === */
/* ========================================================= */

@media (max-width: 900px) {

    /* --- 1. LIMPIEZA VISUAL URGENTE --- */
    /* OCULTAMOS TODAS LAS NUBES DE FONDO EN CELULAR */
    /* Esto limpiará el diseño y evitará que se rompa el ancho */
    .global-clouds-layer {
        display: none !important;
    }

    /* Aseguramos que NADA genere scroll horizontal */
    html, body {
        max-width: 100%;
        overflow-x: hidden !important;
        position: relative;
    }

    /* --- 2. AJUSTES DEL HERO (SECCIÓN PRINCIPAL) --- */
    .hero-section {
        /* Espaciado cómodo, sin tocar bordes */
        padding: 100px 20px 40px 20px !important; 
        overflow: hidden;
    }

    .main-title {
        font-size: 2.2rem; /* Tamaño legible */
        word-wrap: break-word; /* Evita que palabras largas rompan el layout */
    }

    /* --- 3. ETIQUETAS DEL COHETE (Con márgenes de seguridad) --- */
    .hero-visual {
        margin-top: 40px;
        height: 350px; 
        width: 100%;
        position: relative;
        /* Centramos el contenedor para que las etiquetas se calculen bien */
        left: 50%;
        transform: translateX(-50%);
        width: 95%; /* Un poco menos del ancho total */
    }

    .rocket-3d {
        max-width: 180px; /* Cohete tamaño medio */
    }

    .floating-tag {
        font-size: 0.65rem !important;
        padding: 8px 12px !important;
        white-space: normal !important;
        max-width: 110px;
        text-align: center;
        line-height: 1.2;
        z-index: 20;
        /* Sombra suave para que destaquen sobre el fondo limpio */
        box-shadow: 0 5px 15px rgba(0,0,0,0.05); 
    }

    .modal-window {
        width: 92% !important;
        max-width: 92% !important;
        margin: 0 auto;
        padding: 25px 20px !important;
        max-height: 85vh;
    }

    /* Arreglo nota DISC */
    .modal-note {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
        padding: 20px !important;
    }
    
    .modal-note::before { margin-bottom: 5px; font-size: 1.6rem; }
    
    .modal-title {
        font-size: 1.6rem !important;
        padding-right: 35px; 
        line-height: 1.2;
    }

    .close-modal { top: 15px; right: 15px; }
}

/* ========================================================= */
/* === CORRECCIÓN FINAL V6: TEXTO MODAL Y DISTRIBUCIÓN === */
/* ========================================================= */

@media (max-width: 900px) {

    /* --- 1. LIMPIEZA GENERAL --- */
    .global-clouds-layer { display: none !important; }
    html, body { max-width: 100%; overflow-x: hidden !important; }

    /* --- 2. AJUSTES DEL HERO --- */
    .hero-section {
        padding: 90px 20px 40px 20px !important;
        overflow: hidden;
    }
    
    .main-title { font-size: 2.2rem; word-wrap: break-word; }

    /* --- 3. COHETE Y ETIQUETAS --- */
    
    .hero-visual {
        margin-top: 40px; 
        height: 450px;    /* Aumentamos altura para que las etiquetas no se amontonen */
        width: 100%;
        position: relative;
    }

    .rocket-3d {
        max-width: 210px; 
        display: block;
        margin: 0 auto;
        position: relative;
        z-index: 10;
        top: 40px; /* Bajamos el cohete para separarlo de las etiquetas de arriba */
    }

    /* Estilo base de etiqueta */
    .floating-tag {
        font-size: 0.65rem !important;
        padding: 8px 12px !important;
        white-space: normal !important; 
        max-width: 115px; 
        line-height: 1.2;
        z-index: 20;
        box-shadow: 0 5px 15px rgba(0,0,0,0.08);
        
        /* Flexbox SOLO para alinear el puntito con el texto */
        display: flex !important;
        align-items: center !important;
        text-align: left !important; 
        justify-content: flex-start !important;
        gap: 8px; /* Espacio entre punto y texto */
        position: absolute; 
    }

    .dot-icon {
        flex-shrink: 0 !important; /* El punto NO se aplasta nunca */
        width: 8px !important; 
        height: 8px !important;
        min-width: 8px;
    }

    /* --- POSICIONES DISTRIBUIDAS (3 Niveles de Altura) --- */

    /* NIVEL 1: ARRIBA DEL TODO */
    .tag-1 { /* Selección */
        top: 19%; 
        left: 10px !important; 
        transform: none; 
    } 
    .tag-2 { /* Liderazgo */
        top: 25px; /* Ligeramente más abajo para dar ritmo */
        right: 10px !important; 
        transform: none; 
    } 

    /* NIVEL 2: MEDIO (A los lados del cohete) */
    .tag-5 { /* Reclutamiento IT */
        top: 55%; 
        left: 5px !important; 
        transform: translateY(-50%);
        z-index: 25;
    } 
    .tag-6 { /* Equipos */
        top: 43%; 
        right: 5px !important; 
        transform: translateY(-50%);
        z-index: 25;
    }

    /* NIVEL 3: ABAJO DEL TODO */
    .tag-3 { /* Coaching */
        bottom: 10px; 
        left: 10px !important; 
        transform: none; 
    } 
    .tag-4 { /* Bienestar */
        bottom: 25px; /* Escalado para no quedar igual al otro */
        right: 10px !important; 
        transform: none; 
    } 

    /* --- 4. CORRECCIÓN IMPORTANTE DEL MODAL (TEXTO ROTO) --- */
    
    .modal-window {
        width: 90% !important; max-width: 90% !important;
        margin: 0 auto; padding: 25px 20px !important; max-height: 85vh;
    }

    /* AQUÍ ESTÁ EL ARREGLO DEL TEXTO "DISC" */
    .modal-note {
        display: block !important; /* IMPORTANTE: Quitamos flex para que el texto fluya normal */
        text-align: center;
        padding: 20px !important;
        position: relative;
        margin-top: 20px;
    }
    
    /* El icono lo ponemos como bloque encima del texto */
    .modal-note::before { 
        content: "\f0eb"; /* Icono bombilla (FontAwesome) */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        display: block;      /* Comportamiento de bloque */
        margin: 0 auto 10px auto; /* Centrado horizontal y margen abajo */
        font-size: 1.8rem;
        color: var(--text-main); /* O el color que prefieras */
    }
    
    .modal-title {
        font-size: 1.6rem !important; padding-right: 30px; line-height: 1.2;
    }
    .close-modal { top: 15px; right: 15px; }
}
/* ========================================================= */
/* === CORRECCIÓN FINAL: ETIQUETA "RECLUTAMIENTO IT" === */
/* ========================================================= */

@media (max-width: 900px) {
    
    /* Apuntamos específicamente a la etiqueta 5 (Reclutamiento IT) */
    .tag-5 {
        /* Aseguramos que use flexbox */
        display: flex !important;
        /* Esta es la clave: centra verticalmente el texto respecto al punto */
        align-items: center !important; 
        /* Alinea el texto a la izquierda */
        text-align: left !important;
        /* Reduce un poco el espacio entre las dos líneas para que se vea más compacto */
        line-height: 1.1 !important; 
        /* Le damos un pelín más de ancho máximo por si ayuda a que no se rompa mal */
        max-width: 125px !important;
    }
}

@media (max-width: 900px) {
    /* 1. Damos más espacio vertical al contenedor */
    .hero-visual {
        height: 490px !important; /* Antes 450px */
    }

    /* 2. Agrandamos el cohete */
    .rocket-3d {
        max-width: 360px !important; /* Aumentado considerablemente (antes 210px) */
        top: 30px !important;        /* Lo subimos un pelín para centrarlo mejor */
    }
}

@media (max-width: 900px) {
    
    /* 1. Reducir espacio entre el botón naranja y los logos */
    .trust-bar {
        margin-top: 5px !important;   /* Mucho menos que en PC (que tiene 40px) */
        margin-bottom: 0px !important; /* Pegarlo un poco más al cohete */
        align-items: center;            /* Asegura que estén centrados */
    }

    /* 2. Reducir espacio entre los logos y el cohete */
    .hero-visual {
        margin-top: 0px !important;    /* Quitamos el margen superior extra */
    }
    
    /* Opcional: Ajustar el tamaño de los logos si se ven muy chicos o grandes */
    .badge-img { height: 70px; }       /* Logo DISC */
    .badge-img-1 { height: 150px; }     /* Logo Lego */
}