:root {
    --primary-blue: #0a1f44;
    --primary-green: #7cb342;
    --light-gray: #f5f5f5;
    --dark-gray: #333;
    --white: #ffffff;
    --accent-blue: #15305b;
    --light-bg: #f8f9fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { overflow-x: hidden; background-color: var(--white);}

body, textarea, input{ font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;  color: var(--dark-gray); 
}

/* --- Loader --- */
#loader-wrapper {position: fixed;top: 0;left: 0;width: 100%;height: 100%;background-color: #ffffff; display: flex;justify-content: center;align-items: center;z-index: 9999;}
.minimal-spinner {width: 50px;height: 50px;border: 4px solid var(--primary-blue); border-top: 4px solid var(--primary-green); border-radius: 50%;animation: spin 1s linear infinite;}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --- Estilos Comunes / Contenedores --- */
.header-container, .hero-container, .about-container, 
.team-container, .footer-container, 
.services-container, .cta-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

.section-title h1 {
    font-size: 64px;
    color: var(--primary-blue);
    line-height: 1.1;
    margin-bottom: 25px;
}

.container{
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
    position: relative;
    z-index: 2;
}

.hero-container {
    width: 90%;
    padding: 20px 50px;
}

/* --- Header & Nav --- */
header {
    position: fixed;
    top: 0; width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 15px 0;
}
.header-container {
    display: flex; justify-content: space-between; align-items: center; position: relative;
}
.header-container .logo img{width: 250px;}
.logo { display: flex; align-items: center; }


nav { display: flex; gap: 40px; align-items: center; }
nav a {
    text-decoration: none; color: var(--primary-blue); font-size: 16px; font-weight: 500; transition: color 0.3s;
}
nav a:hover, nav a.active, .footer-links a:hover { color: var(--primary-green); }

.btn-contact {
    background: var(--primary-green); color: white; padding: 12px 30px;
    border-radius: 25px; text-decoration: none; font-weight: 600; transition: all 0.3s;
}
.btn-contact:hover {
    background: #6fa036; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(124, 179, 66, 0.3);
}

/* --- Mobile Menu --- */
.mobile-menu-toggle {
    display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; z-index: 1002; position: relative;
}
.mobile-menu-toggle span {
    width: 28px; height: 3px; background: var(--primary-blue); border-radius: 3px; transition: all 0.3s ease; display: block;
}
.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: linear-gradient(135deg, rgba(10, 31, 68, 0.97) 0%, rgba(15, 40, 75, 0.97) 100%);
    z-index: 2000; display: none; opacity: 0; visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active { display: flex; opacity: 1; visibility: visible; }
.mobile-menu-overlay.closing { opacity: 0; visibility: visible; }

.mobile-menu-content {
    width: 100%; height: 100%; display: flex; flex-direction: column; padding: 30px;
    position: relative; transform: scale(0.95); transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active .mobile-menu-content { transform: scale(1); }
.mobile-menu-overlay.closing .mobile-menu-content { transform: scale(0.95); }

.mobile-menu-header {
    display: flex; justify-content: space-between; align-items: center; margin-bottom: 60px;
    opacity: 0; transform: translateY(-20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active .mobile-menu-header { opacity: 1; transform: translateY(0); transition-delay: 0.1s; }
.mobile-menu-overlay.closing .mobile-menu-header { opacity: 0; transform: translateY(-20px); transition-delay: 0s; }
.mobile-menu-logo,.mobile-menu-logo img {width: 90%;}

.mobile-menu-close {
    width: 45px; height: 42px; background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease;
}
.mobile-menu-close:active { transform: scale(0.95); }
.mobile-menu-close:hover { background: var(--primary-green); border-color: var(--primary-green); transform: rotate(90deg); }
.mobile-menu-close::before, .mobile-menu-close::after {
    content: ''; position: absolute; width: 20px; height: 2px; background: white; border-radius: 2px;
}
.mobile-menu-close::before { transform: rotate(45deg); }
.mobile-menu-close::after { transform: rotate(-45deg); }

.mobile-menu-nav { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.mobile-menu-nav a {
    color: white; text-decoration: none; font-size: 32px; font-weight: 600; padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); opacity: 0; transform: translateX(-50px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding-left 0.3s ease, color 0.3s ease;
}
.mobile-menu-nav a:hover { color: var(--primary-green); padding-left: 20px; }
.mobile-menu-nav a:last-child { border-bottom: none; }

.mobile-menu-overlay.active .mobile-menu-nav a { opacity: 1; transform: translateX(0); }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(1) { transition-delay: 0.2s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(2) { transition-delay: 0.3s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(3) { transition-delay: 0.4s; }
.mobile-menu-overlay.active .mobile-menu-nav a:nth-child(4) { transition-delay: 0.5s; }
.mobile-menu-overlay.closing .mobile-menu-nav a { opacity: 0; transform: translateX(-50px); }
.mobile-menu-overlay.closing .mobile-menu-nav a:nth-child(1) { transition-delay: 0.3s; }
.mobile-menu-overlay.closing .mobile-menu-nav a:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu-overlay.closing .mobile-menu-nav a:nth-child(3) { transition-delay: 0.1s; }
.mobile-menu-overlay.closing .mobile-menu-nav a:nth-child(3) { transition-delay: 0s; }

.mobile-menu-cta { margin-top: 40px; }
.mobile-menu-cta .btn-contact {
    width: 100%; padding: 18px 40px; font-size: 18px; border-radius: 30px; text-align: center; display: block;
    opacity: 0; transform: translateY(30px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
}
.mobile-menu-overlay.active .mobile-menu-cta .btn-contact { opacity: 1; transform: translateY(0); transition-delay: 0.5s; }
.mobile-menu-overlay.closing .mobile-menu-cta .btn-contact { opacity: 0; transform: translateY(30px); transition-delay: 0s; }

.mobile-menu-footer { margin-top: auto; padding-top: 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
.mobile-menu-social {
    display: flex; justify-content: center; gap: 20px; margin-bottom: 20px;
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active .mobile-menu-social { opacity: 1; transform: translateY(0); transition-delay: 0.6s; }
.mobile-menu-overlay.closing .mobile-menu-social { opacity: 0; transform: translateY(20px); transition-delay: 0s; }

.mobile-menu-social a, .social-icon {
    width: 45px; height: 45px; background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-social a:hover, .social-icon:hover {
    background: var(--primary-green); border-color: var(--primary-green); transform: translateY(-5px) scale(1.1);
}
.mobile-menu-social a:active { transform: translateY(-2px) scale(1.05); }
.mobile-menu-social svg, .social-icon svg { width: 20px; height: 20px; }

.mobile-menu-copyright {
    text-align: center; color: rgba(255, 255, 255, 0.6); font-size: 12px;
    opacity: 0; transform: translateY(10px);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu-overlay.active .mobile-menu-copyright { opacity: 1; transform: translateY(0); transition-delay: 0.7s; }
.mobile-menu-overlay.closing .mobile-menu-copyright { opacity: 0; transform: translateY(10px); transition-delay: 0s; }

/* --- Hero Section --- */
.hero-section {
    position: relative; width: 100%; min-height: 100vh; display: flex; align-items: center; margin-top: 70px;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.95) 60%, rgba(255,255,255,0) 100%), url('../images/mtconsulting-1.png') center no-repeat;
    background-size: cover; overflow: hidden;
}
.hero-content { max-width: 100%; padding-top: 60px; text-align: center; position: relative; z-index: 3; }

#typing-title {
    font-size: 2.5rem; color: var(--primary-blue); line-height: 1.2;
    font-weight: 700; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.highlight { color: var(--primary-green); }
#hero-text { font-size: 1rem; color: #555; margin-bottom: 35px; line-height: 1.6; }

.cta-button {
    display: inline-block; background-color: var(--primary-green); color: white; padding: 18px 45px;
    text-decoration: none; border-radius: 30px; font-weight: 600; font-size: 18px;
    box-shadow: 0 10px 25px rgba(124, 179, 66, 0.3); transition: transform 0.3s ease, background-color 0.3s, box-shadow 0.3s;
}
.cta-button:hover { transform: translateY(-3px); background-color: #6fa036; box-shadow: 0 15px 35px rgba(124, 179, 66, 0.4); }
.hero-movil-image { display: none; }

/* Animations */
@keyframes letterAppear { to { opacity: 1; transform: translateY(0); } }
.char-animate {
    opacity: 0; display: inline-block; transform: translateY(15px);
    animation: letterAppear 0.4s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation-delay: calc(var(--char-index) * 45ms);
}
.hide-initial { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.show-element { opacity: 1; transform: translateY(0); }

/* --- Partners / Scroller --- */
.partners, .partners-bottom, .partners-services { background: white; padding: 70px 0; overflow: hidden; }
.partners-bottom { padding: 80px 0 50px; }
.partners-services { background: #f9f9f9; padding: 50px 0; }

.scroller {
    max-width: 1400px; margin: 0 auto; position: relative; overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.scroller-inner { display: flex; gap: 40px; width: max-content; flex-wrap: nowrap; }
.scroller[data-animated="true"] .scroller-inner { animation: scroll 40s linear infinite; }
.scroller[data-direction="right"] .scroller-inner { animation-direction: reverse; }
@keyframes scroll { to { transform: translate(calc(-50% - 20px)); } }

.partner-logo, .partner-logo-bottom {
    height: 50px; opacity: 0.7; transition: opacity 0.3s; filter: grayscale(100%); flex-shrink: 0;
}
.partner-logo:hover, .partner-logo-bottom:hover { opacity: 1; filter: grayscale(0%); }

/* --- About Section --- */
.about {
    padding: 120px 0; position: relative; overflow: hidden;
    background: linear-gradient(to right, rgb(255 255 255 / 90%) 35%, rgb(255 255 255 / 80%) 46%, rgba(255, 255, 255, 0) 80%), url(../images/mtconsulting-3.jpg) right top/cover no-repeat;
}
.about-container { display: flex; align-items: center; position: relative; z-index: 2; }
.about-content { max-width: 50%; position: relative; z-index: 3; padding-right: 50px; }
.about-content h2 { font-size: 56px; line-height: 1.2; margin-bottom: 35px; }
.about-content h2 .question { color: var(--primary-blue); }
.about-content h2 .somos { color: var(--primary-green); }
.about-content .description { font-size: 18px; color: #555; line-height: 1.7; margin-bottom: 50px; }

.features { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.feature-box {
    background: #ffffff; padding: 30px; border-radius: 10px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(0,0,0,0.05); position: relative; overflow: hidden;
}
.feature-box::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px;
    background: var(--primary-green); transform: scaleX(0); transform-origin: left; transition: transform 0.4s ease;
}
.feature-box:hover::after { transform: scaleX(1); }
.feature-box:hover { background: #fff; transform: translateY(-8px); box-shadow: 0 15px 40px rgba(0,0,0,0.12); }
.feature-icon { width: 60px; height: 60px; margin-bottom: 20px; color: var(--primary-green); overflow: visible; }
.feature-box h3 { font-size: 18px; color: var(--primary-blue); margin-bottom: 10px; line-height: 1.4; }
.about-mobile-image, .about-image { display: none; }

/* SVG Animation */
.draw-svg :is(path, circle, rect, line, polyline), 
.value-card .value-icon :is(path, circle, line),
.service-icon svg :is(path, line, rect, circle, polyline) {
    stroke-dasharray: 1000; stroke-dashoffset: 1000; transition: stroke-dashoffset 4s ease-in-out 1s;
}
.feature-box.in-view .draw-svg :is(path, circle, rect, line, polyline),
.value-card.in-view .value-icon :is(path, circle, line),
.service-item.in-view .service-icon svg :is(path, line, rect, circle, polyline) { stroke-dashoffset: 0; }

.icon-building, .icon-people { stroke: var(--primary-green); stroke-width: 2; fill: none; }


/* --- Team Section --- */
.team { background: white; padding: 100px 0; }
.team h2 { font-size: 56px; line-height: 1.2; margin-bottom: 70px; }
.team h2 .nuestro { color: var(--primary-blue); }
.team h2 .equipo { color: var(--primary-green); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.team-card {
    background: white; border-radius: 15px; overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1); transition: all 0.3s; position: relative; cursor: pointer;
}
.team-photo-wrapper { overflow: hidden; height: 400px; width: 100%; position: relative; }
.team-photo { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.team-card:hover .team-photo { transform: scale(1.1); }

.team-social-overlay {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 31, 68, 0.8); display: flex; align-items: center; justify-content: center; gap: 15px;
    opacity: 0; transform: translateY(20px); transition: all 0.4s ease;
}
.team-card:hover .team-social-overlay { opacity: 1; transform: translateY(0); }
.team-social-icon {
    width: 40px; height: 40px; background: var(--primary-green); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: white;
    transform: scale(0); transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.team-card:hover .team-social-icon { transform: scale(1); }
.team-card:hover .team-social-icon:nth-child(1) { transition-delay: 0.1s; }
.team-card:hover .team-social-icon:nth-child(2) { transition-delay: 0.2s; }
.team-card:hover .team-social-icon:nth-child(3) { transition-delay: 0.3s; }

.team-info { padding: 30px; background: white; position: relative; z-index: 2; }
.team-name { font-size: 22px; font-weight: 700; color: var(--primary-blue); margin-bottom: 8px; }
.team-position { font-size: 16px; color: #666; }
.team-card:last-child { grid-column: span 1; }
.team-card:last-child .team-info { display: flex; flex-direction: column; gap: 15px; }
.contact-item { display: flex; align-items: center; gap: 10px; font-size: 15px; color: #333; }
.contact-icon { width: 20px; height: 20px; color: var(--primary-green); }

/* --- Services Section --- */
.services { background: white; position: relative; overflow: hidden; }
.services-top-part { padding: 100px 0 40px 0; position: relative; background-color: white; }
.services-bottom-part {
    padding: 0px 0 100px 0;
    background-image: linear-gradient(to right, #f1f2f6 40%, #f1f2f6e8 55%, #fefefe14 80%);
}
.services-bottom-grid { display: flex; align-items: center; gap: 60px; }
.services-list-remaining { flex: 1; }
.services-bottom-image { flex: 1; position: relative; }
.services-bottom-image img {
    width: 100%; height: auto; border-radius: 15px; box-shadow: 0 20px 60px rgba(0,0,0,0.15); transition: transform 0.3s ease;
}
.services-bottom-image img:hover { transform: translateY(-5px); }

.services-top-content h2 { font-size: 56px; line-height: 1.2; margin-bottom: 20px; }
.services-top-content h2 .nuestros { color: var(--primary-blue); }
.services-top-content h2 .servicios { color: var(--primary-green); }
.services-subtitle { font-size: 20px; color: #666; margin-bottom: 50px; font-style: italic; }

.service-item { display: flex; gap: 25px; align-items: flex-start; margin-bottom: 40px; }
.service-item:last-child { margin-bottom: 0; }
.services-top-content .service-item {margin-top: 3rem;}
.service-icon { width: 70px; height: 70px; flex-shrink: 0; }
.service-icon svg { width: 100%; height: 100%; stroke: var(--primary-green); stroke-width: 2; fill: none; }
.service-info h3 { font-size: 24px; color: var(--primary-blue); margin-bottom: 12px; font-weight: 700; }
.service-info p { font-size: 16px; color: #555; line-height: 1.7; }
.services-container .cta-button{margin-top: 15px; padding: 14px 44px;}



/* =========================================
   NUEVAS SECCIONES DE SERVICIOS (SPLIT LAYOUT V2)
   ========================================= */
.service-text-block h2.section-title-serv { margin-bottom: 10px; padding-bottom: 10px; }

.service-subtitle-large { font-size: 36px; font-weight: 700; margin-bottom: 20px; line-height: 1.2; letter-spacing: -0.5px; }
.white-bg .service-subtitle-large { color: var(--primary-blue); }
.blue-bg .service-subtitle-large { color: var(--white); }

.service-lead { font-size: 18px; line-height: 1.7; margin-bottom: 30px; }
.service-lead strong { font-weight: 600; display: inline-block; margin-bottom: 5px; }
.white-bg .service-lead { color: #555; }
.blue-bg .service-lead { color: rgba(255,255,255,0.9); }
.blue-bg .service-lead strong { color: var(--white); }

.list-title { font-size: 20px; font-weight: 600; margin-bottom: 15px; }
.white-bg .list-title { color: var(--primary-blue); }
.blue-bg .list-title { color: var(--primary-green); }

/* Listas con layout flexible (2 columnas por defecto o 1 columna forzada) */
.custom-service-list { list-style: none; padding: 0; margin-bottom: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 25px; }
.custom-service-list.single-col { grid-template-columns: 1fr; }
.custom-service-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 16.5px; line-height: 1.5; font-weight: 500; }
.white-bg .custom-service-list li { color: #444; }
.blue-bg .custom-service-list li { color: rgba(255,255,255,0.85); }
.custom-service-list li i { color: var(--primary-green); font-size: 14px; margin-top: 6px; flex-shrink: 0; }






/* --- CTA Section --- */
.cta-section {
    padding: 170px 0; position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(145deg, #091731 0%, var(--primary-blue) 50%, #11397ef5 100%);
}
.cta-container { display: flex; justify-content: center; align-items: center; flex-direction: column; z-index: 2; position: relative; }
.cta-content { width: 100%; max-width: 800px; }
.cta-content h2 { font-size: 48px; color: var(--white); line-height: 1.2; margin-bottom: 30px; font-weight: 700; }
.btn-cta {
    display: inline-block; background: var(--primary-green); color: white; padding: 15px 45px;
    border-radius: 30px; text-decoration: none; font-size: 18px; font-weight: 600;
    transition: all 0.3s; box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2); animation: heartbeat 2.5s infinite;
}
@keyframes heartbeat {
    0%, 10%, 20%, 100% { transform: scale(1); } 5%, 15% { transform: scale(1.05); }
}
.btn-cta:hover { background: #6fa036; animation: none; transform: translateY(-3px); box-shadow: 0 15px 35px rgba(124, 179, 66, 0.4); }

.cta-lines { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.line { position: absolute; width: 1px; height: 100%; top: 0; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.line::after {
    content: ''; display: block; position: absolute; height: 40%; width: 100%; top: 100%;
    background: linear-gradient(to top, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: moveUp 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes moveUp { 0% { top: 100%; opacity: 0; } 10%, 90% { opacity: 1; } 100% { top: -100%; opacity: 0; } }
.line:nth-child(1) { left: 10%; } .line:nth-child(1)::after { animation-duration: 3s; }
.line:nth-child(2) { left: 30%; } .line:nth-child(2)::after { animation-duration: 4s; animation-delay: 1.5s; }
.line:nth-child(3) { left: 50%; } .line:nth-child(3)::after { animation-duration: 3.5s; animation-delay: 0.5s; }
.line:nth-child(4) { left: 70%; } .line:nth-child(4)::after { animation-duration: 4.5s; animation-delay: 2s; }
.line:nth-child(5) { left: 90%; } .line:nth-child(5)::after { animation-duration: 3.2s; animation-delay: 1s; }

/* --- Footer --- */
footer { background: var(--primary-blue); color: white; padding: 50px 0; }
.footer-container { text-align: center; }
.footer-logo img {width: 270px;}
.footer-logo { margin-bottom: 20px; }
.footer-description, .footer-description a {font-size: 16px; color: rgba(255, 255, 255, 0.8); margin: 0 auto 27px; max-width: 600px; text-decoration: none; line-height: 1.7rem;}
.footer-social { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; }
.social-icon { width: 40px; height: 40px; border-radius: 50%; text-decoration: none; }
.social-icon:hover { background: var(--primary-green); transform: translateY(-3px); }
.footer-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; margin-bottom: 25px; }
.footer-links a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 14px; transition: color 0.3s; }
.footer-bottom { padding-top: 25px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* --- MEDIA QUERIES --- */

/* Desktop > 768px */
@media (min-width: 769px) {
    .mobile-menu-overlay { display: none !important; }
    .hero-section {
        background-image: linear-gradient(to right, rgb(225 231 237 / 89%) 35%, rgb(225 230 234 / 86%) 40%, rgba(255, 255, 255, 0) 70%), url(../images/mtconsulting-1.png);
        background-position: center right; align-items: center;
    }
    .hero-content { max-width: 50%; text-align: left; padding-top: 0; }
    #typing-title { font-size: 55px; }
    #hero-text { font-size: 18px; max-width: 90%; }
        
    .services-top-part {
        background: linear-gradient(to right, #f1f2f6 40%, #f1f2f6e8 55%, #fefefe14 80%), url(../images/mtconsulting-6.png) center right/cover no-repeat;
    }
    .services-bottom-image { margin-top:40px }
    .services-top-content { max-width: 50%; }
}

/* Tablet / Small Desktop <= 1024px */
@media (max-width: 1024px) {
    .feature-box { background: #f9f9f9; }
    .about-content { max-width: 60%; }
    .about-content h2, .services-content h2, .services-top-content h2 { font-size: 44px; }
    .hero-container, .about-container { grid-template-columns: 1fr; gap: 40px; }
    .hero-content h1 { font-size: 56px; }
    nav { gap: 20px; }
    .who-container, .services-container, .team-grid { grid-template-columns: 1fr; }
    .services-bottom-grid { flex-direction: column; gap: 50px; }
    .services-bottom-image { width: 100%; max-width: 600px; }
    .cta-container { flex-direction: column; text-align: center; }
    .cta-content h2 { font-size: 32px; }
    .cta-image { order: -1; }
}

/* Mobile <= 768px */
@media (max-width: 768px) {
    .header-container { padding: 0 25px; }
    .header-container .logo img{width: 90%;}
    .mobile-menu-toggle { display: flex; }
    nav { display: none; }
    
    .hero-section {
        background: #ffffff; flex-direction: column; min-height: auto; padding: 15% 0 0;
    }
    .hero-container { padding-top: 100px; padding-bottom: 40px; }
    .hero-content { max-width: 100%; padding-top: 0; }
    .hero-content h1 { font-size: 42px; }
    #hero-logo{display: none;}
    #typing-title { font-size: 35px; }
    #hero-text { font-size: 18px; }
    .cta-button { padding: 15px 35px; font-size: 16px; }
    
    .hero-movil-image {
        display: block; background: linear-gradient(to bottom, rgba(255, 255, 255, 1) 5%, rgba(255, 255, 255, 0.9) 35%, rgba(255, 255, 255, 0) 70%), url(../images/mtconsulting-1.png) right/164% no-repeat;
        height: 400px; width: 100%; margin-top: -120px;
    }

    .about {padding: 0 0 120px; background: white; padding-bottom: 0; display: flex; flex-direction: column;}
    .about-container { padding: 0 25px 40px; display: block; }
    .about-content { max-width: 100%; padding-right: 0; }
    .about-content h2, .team h2, .services-content h2, .services-top-content h2 { font-size: 36px; }
    .features { grid-template-columns: 1fr; }
    .about-mobile-image {
        display: block; width: 100%; height: 400px; background: url(../images/mtconsulting-4.jpg) center top/cover;
        margin: 5px 0 40px; border: 28px solid #ffffff; border-radius: 40px;
    }
    
    .services-container, .team-container, .cta-container, .footer-container { padding: 0 25px !important; }
    .services-top-part { padding: 0 0 20px 0; background-image: none; }
    .services-bottom-part { padding: 20px 0 60px 0; }
    .services-top-content { max-width: 100%; }
    .services-bottom-image { margin-top: 20px; }
    .service-item { flex-direction: column; align-items: center; text-align: center; margin-bottom: 50px; }
    .service-icon { margin-bottom: 15px; }
    
    .cta-content h2 { font-size: 35px; line-height: 1.4; }
    .line:nth-child(1), .line:nth-child(5) { display: none; }
    .footer-logo img {width: 77%;}
    .footer-social { gap: 15px; }
    .social-icon { width: 36px; height: 36px; }
}



/* =========================================
   3. HERO SECTIONS (Internal Pages)
   ========================================= */
.internal-hero {
    position: relative;
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%); /* Base default */
    overflow: hidden;
}

/* Modificador: Servicios */
.internal-hero.hero-services {
    background: linear-gradient(to right, #f1f2f6 0%, #ffffff 100%);
}
.internal-hero.hero-contactos {
    content: ''; position: absolute; top: 0; right: 0; width: 50%; height: 100%;
    background-image: url('../images/mtconsulting-3.jpg'); 
    background-size: cover; background-position: center;
    opacity: 0.1;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, transparent, black);
}
/* Modificador: Contacto (Radial deco) */
.internal-hero.hero-contact::before {
    content: '';
    position: absolute;
    top: 0%;
    right: -1%;
    width: 50%;
    height: 120%;
    background-image: url(../images/mtconsulting-2.png);
    background-size: cover;
    background-position: center;
    opacity: 0.5;
    mask-image: linear-gradient(to right, transparent, black);
}

/* Modificador: Nosotros (Imagen deco) */
.internal-hero.hero-about::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url(../images/mtconsulting-3.jpg);
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    mask-image: linear-gradient(to right, transparent, black);
    -webkit-mask-image: linear-gradient(to right, #000000, #00000000);
}

.hero-title { 
    font-size: 64px; color: var(--primary-blue); line-height: 1.1; margin-bottom: 25px;
    opacity: 0; transform: translateY(30px); animation: fadeUpAnim 1s ease-out forwards;
}
.hero-title .highlight { color: var(--primary-green); }

.hero-subtitle, .hero-lead { 
    font-size: 20px; color: #666; max-width: 700px; line-height: 1.5;
    opacity: 0; transform:  translateY(30px); animation: fadeUpAnim 1s ease-out 0.3s forwards;
}

#hero-subtitle {margin: 24px 0;line-height: 2.2rem;font-size: 1.3rem;}

/* =========================================
   4. MODULO: SERVICIOS (Grids & Icons)
   ========================================= */
.service-section {position: relative; }
.service-section.white-bg, .service-section.blue-bg { background-repeat: no-repeat;background-size: cover;}
.service-section.blue-bg { 
    color: white; 
}
.service-gradient{
    padding: 100px 50px;
}
.service-gradient .blue-bg{
    background: linear-gradient(135deg, var(--primary-blue) 0%, #15305b00 100%);
}
@media (min-width: 969px) {
    .service-section.blue-bg .container{
    margin-left: 50%;
}
}

#estrategia.service-section.white-bg {
    background-image: url(../images/mtconsulting-9.jpg);
}
#gobernanza.service-section.white-bg {
    background-image: url(../images/mtconsulting-8.jpg);
}
#ejecucion.service-section.white-bg {
    background-image: url(../images/mtconsulting-10.jpg);
}
#planeacion.service-section.blue-bg {
    background-image: url(../images/mtconsulting-11.jpg);
}
#nextgen.service-section.blue-bg {
    background-image: url(../images/mtconsulting-14.jpg);
}
#expansion.service-section.blue-bg{
    background-image: url(../images/mtconsulting-13.jpg);
}


.section-title-wrapper {
    margin-bottom: 55px; border-bottom: 1px solid rgba(0,0,0,0.1); padding-bottom: 20px;
}
.blue-bg .section-title-wrapper { border-bottom-color: rgba(255,255,255,0.2); }

.section-title-serv { /* Renombrado para evitar conflicto con Home */
    font-size: 48px; font-weight: 300; letter-spacing: -1px; position: relative; display: inline-block;
    opacity: 0; transform: translateX(-100px); transition: all 1s cubic-bezier(0.215, 0.610, 0.355, 1.000); 
}
.white-bg .section-title-serv { color: var(--primary-blue); }
.blue-bg .section-title-serv { color: white; }
.section-title-serv.title-visible { opacity: 1; transform: translateX(0); }
.section-title-serv::after {
    content: ''; position: absolute; bottom: -31px; left: 0; width: 0%; height: 3px;
    background-color: var(--primary-green); transition: width 0.8s ease 0.5s;
}
.section-title-serv.title-visible::after { width: 60px; }



.service-detail-item {
    padding: 60px 40px; display: flex; flex-direction: column; align-items: center; text-align: center;
    opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; cursor: pointer;
}
.service-detail-item.item-visible { opacity: 1; transform: translateY(0); }

/* Icono Shine */
.service-detail-icon {
    width: 120px; height: 120px; border-radius: 50%; margin-bottom: 35px;
    display: flex; align-items: center; justify-content: center;
    font-size: 55px; position: relative; overflow: hidden; 
    transition: transform 0.4s ease, background-color 0.3s;
}
.white-bg .service-detail-icon, .value-prop-item .service-detail-icon { /* Reutilizado en Nosotros */
    background-color: var(--primary-green); color: var(--white);
}
.blue-bg .service-detail-icon {
    background-color: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-detail-icon::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.7) 100%);
    transform: skewX(-25deg); z-index: 1;
}
.service-detail-item:hover .service-detail-icon, .value-prop-item:hover .service-detail-icon { transform: scale(1.1); }
.service-detail-item:hover .service-detail-icon::before, .value-prop-item:hover .service-detail-icon::before { animation: shineEffect 1.0s; }

@keyframes shineEffect { 100% { left: 125%; } }

.service-detail-item h3 { font-size: 24px; font-weight: 600; margin-bottom: 20px; position: relative; z-index: 2; }
.service-detail-item p { font-size: 16px; line-height: 1.7; opacity: 0.9; max-width: 400px; position: relative; z-index: 2; }
.white-bg h3 { color: var(--primary-blue); } .white-bg p { color: #555; }
.blue-bg h3 { color: white; } .blue-bg p { color: rgba(255,255,255,0.85); }

/* =========================================
   5. MODULO: NOSOTROS (Cards & Philosophy)
   ========================================= */
/* Value Props (Grid de Iconos Vertical) */
.value-props-section { padding: 80px 50px; background: var(--white); }
.value-props-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 50px; max-width: 1400px; margin: 0 auto; }
.value-prop-item {
    text-align: center; display: flex; flex-direction: column; align-items: center; cursor: default; padding: 10px; transition: transform 0.3s ease;
}
.value-prop-item .value-icon { margin-bottom: 20px; font-size: 48px; color: var(--primary-blue); display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; }
.value-prop-item:hover { transform: translateY(-5px); }

/* Philosophy (Split Layout) */
.philosophy { padding: 100px 0; background: white; }
.split-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.text-block h2 { font-size: 42px; color: var(--primary-blue); margin-bottom: 30px; }
.text-block p { font-size: 18px; line-height: 1.8; color: #555; margin-bottom: 20px; }
.text-block strong { color: var(--primary-green); }
.image-block { position: relative; }
.image-block img { width: 100%; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.1); transition: transform 0.3s ease; }
.hover-up img:hover { transform: translateY(-5px); }
.image-block::after {
    content: ''; position: absolute; bottom: -20px; width: 100%; height: 100%;
    border: 2px solid var(--primary-green); border-radius: 20px; z-index: -1;
}

/* Essence Grid (Gradient Borders) */
.essence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 60px; align-items: stretch; }
.essence-card {
    padding: 40px; background: #f8f9fa; border-radius: 15px; box-shadow: 0 15px 30px rgba(0,0,0,0.08); height: 100%; transition: transform 0.3s;
}
.essence-card h3 { font-size: 22px; color: var(--primary-blue); margin-bottom: 15px; }
.essence-card p { color: #666; line-height: 1.6; }

.gradient-border {
    --border-width: 1px; position: relative; padding: 1px; height: 100%; box-sizing: border-box; transition: transform 0.3s; border-radius: 15px;
}
.gradient-border::after {
    position: absolute; content: ""; top: calc(-1 * var(--border-width)); left: calc(-1 * var(--border-width)); z-index: -1;
    width: calc(100% + var(--border-width) * 2); height: calc(100% + var(--border-width) * 2);
    background: linear-gradient(140deg, hsla(89, 46%, 48%, 0.616), hsla(0, 0%, 100%, 0.603), hsla(218, 74%, 15%, 0.315));
    background-size: 300% 300%; background-position: 0 50%; border-radius: 15px;
    animation: moveGradient 5s alternate infinite; opacity: 0; transition: opacity 0.7s ease-in-out;
}
@keyframes moveGradient { 50% { background-position: 100% 50%; } }
.gradient-border:hover::after { opacity: 1; }
.gradient-border:hover { transform: translateY(-3px); }

/* Detailed Team Row */
.team-row {
    display: grid; grid-template-columns: 350px 1fr; gap: 60px; background: white; padding: 40px; border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05); position: relative; overflow: hidden;
    opacity: 0; transform: translateY(50px) scale(0.95); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.team-row.visible { opacity: 1; transform: translateY(0) scale(1); }
.team-row:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.12); }

.member-image { width: 100%; height: 400px; object-fit: cover; border-radius: 15px; transition: transform 0.6s ease; }
.team-row:hover .member-image { transform: scale(1.03); }

.member-info h3 { font-size: 36px; color: var(--primary-blue); margin-bottom: 5px; }
.member-role { font-size: 18px; color: var(--primary-green); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 25px; display: block; }
.member-bio { font-size: 17px; line-height: 1.8; color: #555; margin-bottom: 30px; }

.trajectory { border-top: 1px solid #eee; padding-top: 25px; }
.trajectory-title { font-size: 14px; color: #999; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 15px; }
.trajectory-logos { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; color: #555;}

/* Especial para márgenes de la sección team */
.gradient-border:has(.team-row){ margin-bottom: 100px; }
.gradient-border:has(.team-row)::after{ border-radius: 20px; }

/* =========================================
   6. MODULO: CONTACTO
   ========================================= */
.contact-container {
    display: grid; grid-template-columns: 60% 40%; gap: 80px; padding: 80px 50px 120px; align-items: center; justify-content: center; justify-items: center;
}

.contact-info-wrapper {
    background: white; padding: 40px; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.08); width: 100%;
}
.contact-details { margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px solid #eee; }
.contact-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; font-size: 18px; color: #555; }
.contact-item i { color: var(--primary-green); font-size: 20px; width: 25px; }
.contact-item a { color: #555; text-decoration: none; transition: 0.3s; }
.contact-item a:hover { color: var(--primary-blue); }

/* Form Styles */
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-control {
    width: 100%; padding: 15px 0; border: none; border-bottom: 2px solid #ddd;
    background: transparent; font-size: 16px; color: var(--primary-blue); transition: all 0.3s;
}
.form-control:focus { outline: none; border-bottom-color: var(--primary-green); }
.form-control::placeholder { color: #aaa; }

.btn-submit {
    margin-top: 20px; padding: 15px 40px; background: var(--primary-blue); color: white; border: none; border-radius: 30px;
    font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.3s; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
}
.btn-submit:hover { background: var(--primary-green); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(124, 179, 66, 0.3); }

/* Success State */
#contactForm.sent { opacity: 0; pointer-events: none; transition: opacity 1s; }
.success-message { position: relative; display: none; text-align: center; opacity: 0; transition: opacity 1s; }
.success-message.visible { opacity: 1; display: block; }
.success-icon { font-size: 50px; color: var(--primary-green); margin-bottom: 20px; }

/* Envelope Animation (CSS Art) */
.envelope-container {
    height: 24rem; width: 24rem; border-radius: 20%; position: relative; background: #6fa036; overflow: hidden; z-index: 1;
}
.envelope-container:before {
    content: ''; position: absolute; height: 21.5rem; width: 21.5rem; display: block; top: 14.7rem; left: 7.6rem;
    transform: rotate(-33deg); background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
}
.envelope {
    height: 8rem; width: 12rem; border-radius: 5px; border-width: 6rem 9rem; border-style: solid; background: none;
    border-color: transparent #e9e9e9 #f9f9f9 #e9e9e9; margin: auto; position: absolute; top: 8rem; left: 0; bottom: 0; right: 0;
    box-shadow: 3px 3px 4px 0 rgba(0, 0, 0, 0.1);
}
.envelope:after, .envelope:before { content: ''; display: block; position: absolute; border-style: solid; width: 0; height: 0; }
.envelope:before {
    content: "Hablemos"; text-align: center; height: 15rem; width: 15rem; border: 0; background: #ffffff;
    left: -7.5rem; top: -10rem; z-index: -1; line-height: 50px; font-size: 2rem; text-transform: uppercase;
    animation: envelope-letter-slide 5s infinite ease-in-out;
}
.envelope:after {
    border-width: 8rem 9rem; border-color: transparent transparent #cccccc transparent;
    box-shadow: 0 40px 0 0 #b4b4b4; top: -22rem; left: -9rem; z-index: -2;
}
@keyframes envelope-letter-slide { 
    0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-30px); } 
}


/* =========================================
   8. UTILIDADES & ANIMACIONES
   ========================================= */
@keyframes fadeUpAnim { to { opacity: 1; transform: translateY(0); } }
.fade-in, .fade-up { opacity: 0; transform: translateY(20px); transition: all 0.8s ease; }
.fade-in.visible, .fade-up.visible { opacity: 1; transform: translateY(0); }

/* =========================================
   9. RESPONSIVE GLOBAL
   ========================================= */
@media (max-width: 1024px) {
    .split-layout { grid-template-columns: 1fr; gap: 40px; }
    .team-row { grid-template-columns: 1fr; gap: 30px; }
    .member-image { height: 350px; }
}

@media (max-width: 968px) {
    .header-container, .hero-container, .container, .footer-container { padding: 0 25px; }
    .hero-container{width: 100%;}
    .mobile-menu-toggle, .mobile-toggle { display: flex; }
    nav { display: none; }
    
    .hero-title, .section-title h1, .section-title-serv { font-size: 44px; }
    .hero-subtitle, .hero-lead { font-size: 21px;}

    .philosophy .image-block img{
        width: 90%;}
    .philosophy .image-block::after {
        content: '';
        position: absolute;
        bottom: -10px;
        right: 10px;
        width: 90%;
        height: 90%;
        border: 2px solid var(--primary-green);
        border-radius: 20px;
        z-index: -1;
    }    
    .value-props-section {padding: 0% 5% 5%; padding-top: 10px !important;}
    .value-props-section .container {padding: 0;}

    .value-props-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .value-props-grid .service-detail-icon {width: 7pc; height: 7pc; margin-bottom: 1pc;}
    .team-row{padding: 1.3pc 1.2pc;}
    .member-info h3{font-size: 33px;}

    /* Servicios */
    .service-section { padding: 80px 0px;}
    .service-detail-item { padding: 40px 10px; border-bottom: 1px solid rgba(0,0,0,0.1); }
    
    /* Contacto */
    .internal-hero.hero-contact::before {
        content: '';
        position: absolute;
        top: 0%;
        right: -1%;
        width: 100%;
        height: 120%;
        background-image: url(../images/mtconsulting-2.png);
        background-size: cover;
        background-position: center;
        opacity: 0.2;
        mask-image: linear-gradient(to right, #0000004a, #000000);
    }
    .contact-container { grid-template-columns: 1fr; gap: 50px; }
    .envelope-wrapper { height: 300px; order: -1; }
    .envelope-container { height: 20rem; width: 20rem; border-radius: 10%;}
    .envelope-container:before { content: ''; position: absolute; height: 7rem;width: 17rem;top: 12.5rem;left: 3.5rem;
        transform: rotate(-33deg); background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0) 80%);
    }
    .envelope { border-width: 4.5rem 7.5rem; top: 6rem;}
    .envelope:after { border-width: 6rem 7.5rem; top: -16.5rem; left: -7.5rem;}
    .envelope:before {
        content: "Hablemos"; text-align: center; height: 8rem; width: 13rem; border: 0; background: #ffffff;
        left: -6.5rem; top: -5rem; z-index: -1; line-height: 50px; font-size: 1.6rem; text-transform: uppercase;
        animation: envelope-letter-slide 5s infinite ease-in-out;
    }
    .contact-info-wrapper{padding: 25px;}


    /* Nosotros */
    .essence-grid { grid-template-columns: 1fr; }
    .image-block { order: -1; }

}

.error-title {font-size: 2.4rem;margin: 10px 0 12px;}
.error-code{font-size: 2rem;}



/* =========================================
   NUEVA SECCIÓN: TIMELINE DE MÉTODO
   ========================================= */
#metodo-section.service-section.white-bg {
background-image: url(../images/mtconsulting-10.jpg);}
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px;
    position: relative;
    margin-top: 60px;
    z-index: 2;
}
.steps-timeline::before {
    content: '';
    position: absolute;
    top: 45px;
    left: 40px;
    right: 40px;
    height: 2px;
    background: linear-gradient(to right, var(--primary-green) 0%, rgba(10, 31, 68, 0.05) 100%);
    z-index: 1;
}
.step-card {
    background: var(--white);
    padding: 35px 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    z-index: 2;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
}
.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-color: rgba(124, 179, 66, 0.3);
}
.step-number {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-green);
    background: var(--white);
    border: 2px solid var(--primary-green);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    position: relative;
    z-index: 3;
}
.step-icon {
    font-size: 36px;
    color: var(--primary-blue);
    margin-bottom: 20px;
    transition: transform 0.3s ease, color 0.3s ease;
}
.step-card:hover .step-icon {
    transform: scale(1.1);
    color: var(--primary-green);
}
.step-card h3 {
    font-size: 20px;
    color: var(--primary-blue);
    margin-bottom: 12px;
    font-weight: 700;
}
.step-card p {
    font-size: 14.5px;
    color: #666;
    line-height: 1.6;
}



/* =========================================
   NUEVA SECCIÓN: GRID DIAGNÓSTICO
   ========================================= */
.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}
.diagnostic-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 30px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    height: 100%;
}
.diagnostic-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(124, 179, 66, 0.1) 0%, rgba(10, 31, 68, 0) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}
.diagnostic-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.diagnostic-card:hover::after {
    opacity: 1;
}
.diagnostic-icon-wrapper {
    font-size: 32px;
    color: var(--primary-green);
    margin-bottom: 25px;
    position: relative;
    z-index: 2;
}
.diagnostic-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}
.diagnostic-text {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    font-style: italic;
    margin-bottom: 30px;
}
.diagnostic-link-btn {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s ease;
}
.diagnostic-card:hover .diagnostic-link-btn {
    color: var(--primary-green);
}
.diagnostic-link-btn i {
    transition: transform 0.3s ease;
}
.diagnostic-card:hover .diagnostic-link-btn i {
    transform: translateX(5px);
}



/* =========================================
   RESPONSIVE: TIMELINE & DIAGNÓSTICO
   ========================================= */
@media (max-width: 1024px) {
    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 30px;
        padding-left: 20px;
    }
    /* La línea horizontal se vuelve vertical en móvil */
    .steps-timeline::before {
        top: 0;
        bottom: 0;
        left: 35px;
        width: 2px;
        height: auto;
        background: linear-gradient(to bottom, var(--primary-green) 0%, rgba(10, 31, 68, 0.05) 100%);
    }
    .step-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        padding: 25px 30px 25px 80px;
    }
    .step-number {
        position: absolute;
        left: 19px;
        top: 25px;
        margin: 0;
    }
    .step-icon {
        margin-bottom: 10px;
    }
    .diagnostic-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
@media (max-width: 768px) {
    .diagnostic-grid {
        grid-template-columns: 1fr;
    }
    .steps-timeline {padding-left: 0px;}
}

