/* ============================================================
   Alcanza Mejora Continua — styles.css  v3.0
   ============================================================ */

:root {
    --lime:       #B1C903;
    --lime-dark:  #8FA002;
    --black:      #0a0a0a;
    --white:      #ffffff;
    --gray-50:    #fafafa;
    --gray-100:   #f4f4f4;
    --gray-200:   #e8e8e8;
    --gray-500:   #888;
    --gray-700:   #333;

    --accent-orange: #F97316;
    --accent-blue:   #3B82F6;
    --accent-rose:   #F43F5E;
    --accent-violet: #8B5CF6;
    --accent-amber:  #F59E0B;
    --accent-teal:   #14B8A6;

    --font-head: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    --container:   1200px;
    --pad:         clamp(1.25rem, 5vw, 2.5rem);
    --radius-lg:   1.25rem;
    --radius-xl:   1.75rem;
    --radius-full: 9999px;

    --transition: 0.3s cubic-bezier(0.4,0,0.2,1);

    --shadow-card:  0 8px 32px rgba(0,0,0,0.08);
    --shadow-hover: 0 20px 60px rgba(0,0,0,0.15);
    --shadow-glow:  0 0 40px rgba(177,201,3,0.35);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font-body); color: var(--gray-700); background: var(--white); overflow-x: hidden; }
body.modal-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; color: var(--black); }
::selection { background: var(--lime); color: var(--black); }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }

.section-label {
    display: inline-block;
    font-family: var(--font-head); font-size: 1rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--lime-dark); background: rgba(177,201,3,0.12);
    border-radius: var(--radius-full); padding: 0.4em 1.2em; margin-bottom: 1rem;
}
.section-label--light { color: var(--lime); background: rgba(177,201,3,0.15); }
.section-title   { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.section-subtitle{ font-size: 1.25rem; color: var(--gray-500); max-width: 900px; line-height: 1.7; }

.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-head); font-size: 0.9rem; font-weight: 700;
    padding: 0.85rem 2rem; border-radius: var(--radius-full);
    border: 2px solid transparent; cursor: pointer; transition: var(--transition);
    white-space: nowrap; text-decoration: none;
}
.btn--primary { background: var(--lime); color: var(--black); }
.btn--primary:hover { background: var(--lime-dark); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.btn--outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { background: var(--white); color: var(--black); }
.btn--lg { padding: 1.1rem 2.5rem; font-size: 1rem; }

.skip-link {
    position: absolute; top: -100%; left: 1rem;
    background: var(--lime); color: var(--black);
    font-family: var(--font-head); font-weight: 700;
    padding: 0.5rem 1rem; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    z-index: 9999; transition: top var(--transition);
}
.skip-link:focus { top: 0; }

.scroll-progress {
    position: fixed;
    top: 72px;
    left: 0; right: 0;
    height: 3px;
    z-index: 199;
    background: transparent;
    pointer-events: none;
}
.scroll-progress__bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--lime) 0%, var(--lime-dark) 100%);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform 0.1s linear;
    will-change: transform;
}

.header {
    position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 200;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent; transition: var(--transition);
}
.header.scrolled { border-bottom-color: var(--gray-200); box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.header__inner {
    display: flex; align-items: center; justify-content: center; height: 100%;
    max-width: var(--container); margin: 0 auto; padding: 0 var(--pad);
}
.header__logo { display: flex; align-items: center; gap: 0.75rem; }
.header__logo img { height: 65px; width: auto; margin-top: 15px; margin-bottom: 15px; }
.header__logo-fallback { display: flex; align-items: center; gap: 0.6rem; }
.logo-mark { width: 38px; height: 38px; background: var(--black); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.logo-mark span { color: var(--lime); font-family: var(--font-head); font-weight: 900; font-size: 1.1rem; }
.header__logo-text strong { font-family: var(--font-head); font-size: 1rem; font-weight: 800; color: var(--black); display: block; }
.header__logo-text small  { font-size: 0.65rem; color: var(--gray-500); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }

.hero {
    min-height: 100vh; background: var(--black);
    display: flex; align-items: center;
    position: relative; overflow: hidden; padding-top: 72px;
}
.hero__bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(177,201,3,0.10) 0%, transparent 65%),
        radial-gradient(ellipse 50% 70% at 10% 80%, rgba(177,201,3,0.07) 0%, transparent 60%),
        linear-gradient(160deg, #0a0a0a 0%, #111408 55%, #0a0a0a 100%);
    pointer-events: none;
}
.hero__content {
    position: relative; z-index: 2;
    max-width: var(--container); margin: 0 auto; padding: 4rem var(--pad);
    display: grid; grid-template-columns: 1fr; gap: 3.5rem;
    text-align: center; width: 100%;
}
.hero__text-block { max-width: 1200px; margin: 0 auto; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: var(--font-head); font-size: 1.5rem; font-weight: 700;
    letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--lime); background: rgba(177,201,3,0.1);
    border: 1px solid rgba(177,201,3,0.2);
    padding: 0.4em 1.2em; border-radius: var(--radius-full); margin-bottom: 1.5rem;
}
.hero__eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }
.hero__title-line:first-child{
    white-space: nowrap;
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 4.2rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.hero__title-line { 
    display: block; 
}

.hero__title-line:not(:first-child){
    font-size: 1em;
}

.hero__title-white { color: var(--white); }
.hero__title-green { color: var(--lime); }

.hero__subtitle {
    font-size: clamp(1.05rem, 1.9vw, 1.2rem);
    color: rgba(255,255,255,0.62); line-height: 1.65; margin-bottom: 0.2rem;
    max-width: 750px; margin-left: auto; margin-right: auto;
}
.hero__buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__team-label {
    font-size: 1rem; text-transform: uppercase; letter-spacing: 0.15em;
    color: var(--lime); font-family: var(--font-head); font-weight: 900; margin-bottom: 1.5rem;
}
.hero__team { display: flex; justify-content: center; gap: 2.5rem; flex-wrap: wrap; }
.hero__member {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    position: relative;
}

.hero__member-avatar {
    width: 110px; height: 110px; border-radius: 50%;
    border: 3px solid rgba(177,201,3,0.3);
    background: linear-gradient(135deg, #1a1a1a, #333);
    overflow: hidden; position: relative; transition: var(--transition);
    display: flex; align-items: center; justify-content: center;
}
.hero__member:hover .hero__member-avatar {
    border-color: var(--lime);
    box-shadow: 0 0 30px rgba(177,201,3,0.4);
    transform: translateY(-5px);
}

.hero__member-avatar--c1 { border-color: rgba(249,115,22,0.4); }
.hero__member-avatar--c2 { border-color: rgba(59,130,246,0.4);  }
.hero__member-avatar--c3 { border-color: rgba(20,184,166,0.4);  }

.hero__member:nth-child(1):hover .hero__member-avatar--c1 {
    border-color: var(--accent-orange);
    box-shadow: 0 0 30px rgba(249,115,22,0.35);
}
.hero__member:nth-child(2):hover .hero__member-avatar--c2 {
    border-color: var(--accent-blue);
    box-shadow: 0 0 30px rgba(59,130,246,0.35);
}
.hero__member:nth-child(3):hover .hero__member-avatar--c3 {
    border-color: var(--accent-teal);
    box-shadow: 0 0 30px rgba(20,184,166,0.35);
}

.hero__member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero__member-avatar .avatar-placeholder { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--lime); }
.hero__member-badge {
    position: absolute;
    bottom: calc(100% - 100px - 5px);
    right: calc(50% - 55px + 2px);
    width: 24px;
    height: 24px;
    background: var(--lime);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.hero__member-badge svg { width: 12px; height: 12px; }
.hero__member-info { text-align: center; }
.hero__member-info strong { display: block; font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; color: var(--white); }
.hero__member-info span  { font-size: 0.7rem; color: rgba(255,255,255,0.5); }

.hero__stats {
    display: flex; justify-content: center; gap: 3rem; flex-wrap: wrap;
    padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,0.08);
}
.hero__stat { text-align: center; }
.hero__stat-num   { font-family: var(--font-head); font-size: 2rem; font-weight: 900; color: var(--lime); display: block; line-height: 1; }
.hero__stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 0.35rem; }

.enfoque { padding: 5.5rem 0; background: var(--gray-50); position: relative; overflow: hidden; }
.enfoque::before {
    content: ''; position: absolute; inset: 0;
    background-image: url('../img/office.jpg');
    background-size: cover; background-position: center;
    opacity: 0.09; filter: grayscale(1); pointer-events: none; z-index: 0;
}
.enfoque__header, .enfoque__slider-wrap { position: relative; z-index: 1; }
.enfoque__header { text-align: center; margin-bottom: 3.5rem; }
.enfoque__header .section-subtitle { margin: 0 auto; }

.enfoque__slider-wrap { position: relative; }
.enfoque__slider { overflow: hidden; }
.enfoque__track { display: flex; gap: 1.5rem; transition: transform 0.5s cubic-bezier(0.4,0,0.2,1); will-change: transform; }

.enfoque__card {
    flex: 0 0 calc((100% - 3rem) / 3);
    background: var(--white); border-radius: var(--radius-xl); padding: 2rem;
    border: 1px solid var(--gray-200); cursor: pointer; transition: var(--transition);
    position: relative; overflow: hidden;
}
.enfoque__card::before {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.enfoque__card:hover::before { transform: scaleX(1); }
.enfoque__card:hover { box-shadow: var(--shadow-hover); transform: translateY(-6px); }

.enfoque__card-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; transition: var(--transition);
    background: rgba(177,201,3,0.1);
}
.enfoque__card-icon svg { width: 28px; height: 28px; color: var(--lime-dark); transition: var(--transition); }

.enfoque__card--empresa   .enfoque__card-icon { background: rgba(177,201,3,0.12); }
.enfoque__card--empresa   .enfoque__card-icon svg { color: var(--lime-dark); }
.enfoque__card--liderazgo .enfoque__card-icon { background: rgba(59,130,246,0.1); }
.enfoque__card--liderazgo .enfoque__card-icon svg { color: var(--accent-blue); }
.enfoque__card--compliance .enfoque__card-icon { background: rgba(249,115,22,0.1); }
.enfoque__card--compliance .enfoque__card-icon svg { color: var(--accent-orange); }
.enfoque__card--mejora    .enfoque__card-icon { background: rgba(20,184,166,0.1); }
.enfoque__card--mejora    .enfoque__card-icon svg { color: var(--accent-teal); }
.enfoque__card--coaching  .enfoque__card-icon { background: rgba(139,92,246,0.1); }
.enfoque__card--coaching  .enfoque__card-icon svg { color: var(--accent-violet); }
.enfoque__card--estructura .enfoque__card-icon { background: rgba(245,158,11,0.1); }
.enfoque__card--estructura .enfoque__card-icon svg { color: var(--accent-amber); }

.enfoque__card--empresa:hover    .enfoque__card-icon { background: var(--lime); }
.enfoque__card--empresa:hover    .enfoque__card-icon svg { color: var(--black); }
.enfoque__card--liderazgo:hover  .enfoque__card-icon { background: var(--accent-blue); }
.enfoque__card--liderazgo:hover  .enfoque__card-icon svg { color: var(--white); }
.enfoque__card--compliance:hover .enfoque__card-icon { background: var(--accent-orange); }
.enfoque__card--compliance:hover .enfoque__card-icon svg { color: var(--white); }
.enfoque__card--mejora:hover     .enfoque__card-icon { background: var(--accent-teal); }
.enfoque__card--mejora:hover     .enfoque__card-icon svg { color: var(--white); }
.enfoque__card--coaching:hover   .enfoque__card-icon { background: var(--accent-violet); }
.enfoque__card--coaching:hover   .enfoque__card-icon svg { color: var(--white); }
.enfoque__card--estructura:hover .enfoque__card-icon { background: var(--accent-amber); }
.enfoque__card--estructura:hover .enfoque__card-icon svg { color: var(--white); }

.enfoque__card--liderazgo::before  { background: var(--accent-blue); }
.enfoque__card--compliance::before { background: var(--accent-orange); }
.enfoque__card--mejora::before     { background: var(--accent-teal); }
.enfoque__card--coaching::before   { background: var(--accent-violet); }
.enfoque__card--estructura::before { background: var(--accent-amber); }

.enfoque__card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.enfoque__card p  { font-size: 0.875rem; color: var(--gray-500); line-height: 1.6; }

.enfoque__card-arrow {
    position: absolute; top: 1.5rem; right: 1.5rem;
    width: 28px; height: 28px; background: var(--gray-100); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; transition: var(--transition);
}
.enfoque__card:hover .enfoque__card-arrow { background: var(--lime); }
.enfoque__card-arrow svg { width: 14px; height: 14px; color: var(--gray-500); }
.enfoque__card:hover .enfoque__card-arrow svg { color: var(--black); }

.enfoque__controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2rem; }
.enfoque__btn {
    width: 40px; height: 40px; border-radius: 50%; background: var(--white);
    border: 2px solid var(--gray-200); display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); flex-shrink: 0;
}
.enfoque__btn:hover { background: var(--lime); border-color: var(--lime); }
.enfoque__btn:hover svg { color: var(--black); }
.enfoque__btn svg { width: 16px; height: 16px; color: var(--gray-700); transition: var(--transition); }
.enfoque__dots { display: flex; gap: 0.5rem; }
.enfoque__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-200); border: none; cursor: pointer; transition: var(--transition); padding: 0; }
.enfoque__dot.active { background: var(--lime); transform: scale(1.25); }

.testimonios { padding: 5.5rem 0; background: var(--white); }
.testimonios__header { text-align: center; margin-bottom: 3.5rem; }
.testimonios__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; margin-bottom: 4rem; }

.testimonio__card {
    background: var(--gray-50); border-radius: var(--radius-xl);
    padding: 0 2rem 2rem;
    border: 1px solid var(--gray-200); transition: var(--transition);
    display: flex; flex-direction: column; justify-content: space-between;
    overflow: hidden; position: relative;
}
.testimonio__card:hover { box-shadow: var(--shadow-hover); transform: translateY(-5px); border-color: rgba(177,201,3,0.25); }

.testimonio__stripe {
    height: 4px;
    margin: 0 -2rem 1.5rem;
    background: linear-gradient(90deg, var(--lime) 0%, var(--lime-dark) 100%);
}
.testimonio__card:nth-child(2) .testimonio__stripe {
    background: linear-gradient(90deg, var(--accent-blue) 0%, var(--accent-teal) 100%);
}

.testimonio__text { font-size: 1rem; line-height: 1.8; color: var(--gray-700); margin-bottom: 1.5rem; font-style: italic; }
.testimonio__author { display: flex; align-items: center; gap: 0.85rem; }
.testimonio__avatar {
    width: 46px; height: 46px; border-radius: 50%; background: var(--gray-200);
    overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--lime);
}
.testimonio__card:nth-child(2) .testimonio__avatar { border-color: var(--accent-blue); }
.testimonio__avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonio__avatar .av-init { font-family: var(--font-head); font-weight: 800; font-size: 1rem; color: var(--lime-dark); }
.testimonio__name { font-family: var(--font-head); font-size: 0.875rem; font-weight: 700; display: block; }
.testimonio__role { font-size: 0.78rem; color: var(--gray-500); }

.empresas-header {
    text-align: center; font-family: var(--font-head); font-size: 0.9rem;
    font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--gray-500); margin-bottom: 1.75rem;
}
.empresas-slider { overflow: hidden; position: relative; padding: 0.5rem 0; }
.empresas-slider::before, .empresas-slider::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.empresas-slider::before { left: 0;  background: linear-gradient(to right, var(--white), transparent); }
.empresas-slider::after  { right: 0; background: linear-gradient(to left,  var(--white), transparent); }
.empresas-track { display: flex; gap: 1.5rem; animation: slide-logos 28s linear infinite; width: max-content; }
@media (hover: hover) and (pointer: fine) {
    .empresas-slider:hover .empresas-track {
        animation-play-state: paused;
    }
}
@keyframes slide-logos { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.empresa-logo {
    flex-shrink: 0; height: 52px; width: 140px;
    display: flex; align-items: center; justify-content: center;
    background: var(--gray-100); border-radius: 10px; padding: 0.6rem 1rem;
    transition: filter var(--transition), transform var(--transition), box-shadow var(--transition);
}
.empresa-logo:hover {
    filter: grayscale(0) opacity(1) saturate(1.2);
    transform: scale(1.5);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
}

@media (hover: none) and (pointer: coarse) {

    .empresa-logo:hover {
        transform: none;
        box-shadow: none;
        filter: none;
    }

    .empresa-logo:active {
        transform: scale(1.5);
        filter: grayscale(0) opacity(1) saturate(1.2);
        box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    }

}

.empresa-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; display: block; }

.problema { padding: 5.5rem 0; background: var(--black); position: relative; overflow: hidden; }
.problema::after {
    content: ''; position: absolute; inset: 0;
    background-image: url('../img/bg-problema.jpg'); 
    background-size: cover; background-position: center;
    opacity: 0.1; filter: grayscale(1) brightness(0.7); pointer-events: none; z-index: 0;
}
.problema::before {
    content: ''; position: absolute; inset: 0;
    background:
        repeating-linear-gradient(-45deg, transparent, transparent 38px, rgba(177,201,3,0.025) 38px, rgba(177,201,3,0.025) 39px),
        radial-gradient(ellipse 70% 50% at 80% 30%, rgba(177,201,3,0.06) 0%, transparent 65%);
    pointer-events: none; z-index: 1;
}
.problema__inner  { position: relative; z-index: 2; }
.problema__header { text-align: center; margin-bottom: 3.5rem; }
.problema__header h2 { color: var(--white); }
.problema__header .section-subtitle { color: rgba(255,255,255,0.5); margin: 0 auto; }

.problema__title-small   { font-size: clamp(1.5rem, 3.2vw, 2.5rem); }
.problema__subtitle-large {
    font-size: clamp(1.5rem, 3.2vw, 2.5rem);
    color: var(--white);
    margin: 2rem auto 0;
    max-width: 600px;
    line-height: 1.7;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
}

.problema__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

.problema__card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg); padding: 1.5rem 1.25rem;
    transition: var(--transition);
    display: flex; flex-direction: column; align-items: center;
    text-align: center; gap: 0.75rem; position: relative; overflow: hidden;
}
.problema__card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    transform: scaleX(0); transform-origin: left; transition: transform var(--transition);
}
.problema__card:hover::before { transform: scaleX(1); }
.problema__card:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); transform: translateY(-4px); }

.problema__card--orange::before { background: var(--accent-orange); }
.problema__card--blue::before   { background: var(--accent-blue);   }
.problema__card--rose::before   { background: var(--accent-rose);   }
.problema__card--lime::before   { background: var(--lime);          }
.problema__card--violet::before { background: var(--accent-violet); }
.problema__card--amber::before  { background: var(--accent-amber);  }

.problema__card--orange:hover { border-color: rgba(249,115,22,0.3); }
.problema__card--blue:hover   { border-color: rgba(59,130,246,0.3);  }
.problema__card--rose:hover   { border-color: rgba(244,63,94,0.3);   }
.problema__card--lime:hover   { border-color: rgba(177,201,3,0.3);   }
.problema__card--violet:hover { border-color: rgba(139,92,246,0.3);  }
.problema__card--amber:hover  { border-color: rgba(245,158,11,0.3);  }

.problema__card-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); flex-shrink: 0;
}

.problema__card--orange .problema__card-icon { background: rgba(249,115,22,0.15); }
.problema__card--orange .problema__card-icon svg { color: var(--accent-orange); }
.problema__card--blue   .problema__card-icon { background: rgba(59,130,246,0.15); }
.problema__card--blue   .problema__card-icon svg { color: var(--accent-blue); }
.problema__card--rose   .problema__card-icon { background: rgba(244,63,94,0.15); }
.problema__card--rose   .problema__card-icon svg { color: var(--accent-rose); }
.problema__card--lime   .problema__card-icon { background: rgba(177,201,3,0.15); }
.problema__card--lime   .problema__card-icon svg { color: var(--lime); }
.problema__card--violet .problema__card-icon { background: rgba(139,92,246,0.15); }
.problema__card--violet .problema__card-icon svg { color: var(--accent-violet); }
.problema__card--amber  .problema__card-icon { background: rgba(245,158,11,0.15); }
.problema__card--amber  .problema__card-icon svg { color: var(--accent-amber); }

.problema__card-icon svg { width: 22px; height: 22px; }
.problema__card h3 { font-size: 0.9rem; font-weight: 700; color: var(--white); line-height: 1.3; }

.proceso { padding: 5.5rem 0; background: var(--white); position: relative; overflow: hidden; }
.proceso::after {
    content: ''; position: absolute; inset: 0;
    background-image: url('../img/texture.jpg'); 
    background-size: cover; background-position: center;
    opacity: 0.04; filter: grayscale(1); pointer-events: none; z-index: 0;
}
.proceso__header, .proceso__timeline { position: relative; z-index: 1; }
.proceso__header { text-align: center; margin-bottom: 4rem; }
.proceso__timeline {
    display: flex; align-items: flex-start; justify-content: center;
    position: relative; max-width: 1000px; margin: 0 auto;
}
.proceso__timeline::before {
    content: ''; position: absolute; top: 28px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, var(--lime) 0%, rgba(177,201,3,0.3) 100%); z-index: 0;
}
.proceso__step {
    display: flex; flex-direction: column; align-items: center;
    text-align: center; flex: 1; position: relative; z-index: 1; padding: 0 0.5rem;
}

.proceso__step-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.proceso__step-circle {
    width: 56px; height: 56px; border-radius: 50%; background: var(--white);
    border: 3px solid var(--gray-200); display: flex; align-items: center; justify-content: center;
    font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--gray-500);
    transition: var(--transition); margin-bottom: 1.25rem; cursor: pointer; position: relative; z-index: 2;
}
.proceso__step.active .proceso__step-circle,
.proceso__step-circle:hover {
    background: var(--lime); border-color: var(--lime); color: var(--black);
    box-shadow: var(--shadow-glow); transform: scale(1.1);
}
.proceso__step h3 { 
    font-size: 1.2rem; 
    font-weight: 700; 
    margin-bottom: 0.3rem; 
    transition: var(--transition);
    width: 100%;
    word-break: break-word;
}

.proceso__step.active h3 { color: var(--lime-dark); }
.proceso__step p { 
    font-size: 1rem; 
    color: var(--gray-500); 
    max-width: 120px; 
    line-height: 1.5;
    width: 100%;
}

.diagnostico {
    padding: 5.5rem 0;
    background: linear-gradient(135deg, #f7fae0 0%, #eef2c0 40%, #f4f7d6 100%);
    position: relative; overflow: hidden;
}
.diagnostico::after {
    content: ''; position: absolute; right: -100px; top: 50%; transform: translateY(-50%);
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(177,201,3,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.diagnostico__inner {
    position: relative; z-index: 1; text-align: center;
    max-width: 750px; margin: 0 auto; padding: 0 var(--pad);
}
.diagnostico__inner h2 { color: var(--black); font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.diagnostico__inner p  { color: var(--gray-900); font-size: 1.2rem; line-height: 1.7; margin-bottom: 2.5rem; }

.footer { background: var(--black); padding: 4.5rem 0 2rem; }
.footer__grid {
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.4fr; gap: 3rem;
    margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand .footer__logo { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.footer__brand .footer__logo img { height: 100%; }
.footer__brand > p { font-size: 0.875rem; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 300px; margin-bottom: 1.25rem; }
.footer__social { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.footer__social a {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); transition: var(--transition);
}
.footer__social a:hover { background: var(--lime); border-color: var(--lime); color: var(--black); transform: translateY(-3px); }
.footer__social svg { width: 16px; height: 16px; }
.footer__col h4 { font-size: 0.8rem; font-weight: 700; color: var(--white); margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.1em; }
.footer__col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer__col ul li a:hover { color: var(--lime); }
.footer__contact-items { display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 1.5rem; }
.footer__contact-item { display: flex; align-items: center; gap: 0.75rem; }
.footer__contact-item svg { width: 15px; height: 15px; color: var(--lime); flex-shrink: 0; }
.footer__contact-item span,
.footer__contact-item a { font-size: 0.83rem; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer__contact-item a:hover { color: var(--lime); }
.footer__wa-btn {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: #25D366; color: var(--white); font-family: var(--font-head);
    font-size: 0.82rem; font-weight: 700; padding: 0.65rem 1.35rem;
    border-radius: var(--radius-full); transition: var(--transition);
}
.footer__wa-btn:hover { background: #1da851; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,0.35); }
.footer__wa-btn svg { width: 17px; height: 17px; }
.footer__bottom {
    display: flex; align-items: center; justify-content: space-between;
    font-size: 0.8rem; color: rgba(255,255,255,0.25);
}
.footer__bottom a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer__bottom a:hover { color: var(--lime); }

.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.85); backdrop-filter: blur(8px);
    z-index: 500; display: flex; align-items: flex-end; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition); padding: 0; overflow: hidden;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal {
    background: var(--white); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-width: 480px; width: 100%; padding: 2.5rem; position: relative;
    transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.4,0,0.2,1), opacity 0.4s;
    max-height: 95dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
}
.modal-overlay.active .modal { transform: translateY(0); }

.modal::before {
    content: ''; display: block; width: 40px; height: 4px;
    background: var(--gray-200); border-radius: 2px; margin: 0 auto 1.5rem;
}

@media (min-width: 640px) {
    .modal-overlay { align-items: center; padding: 1.5rem; }
    .modal {
        border-radius: var(--radius-xl);
        transform: translateY(20px) scale(0.97);
        max-height: 90dvh;
    }
    .modal-overlay.active .modal { transform: translateY(0) scale(1); }
    .modal::before { display: none; }
}

.modal__close {
    position: absolute; top: 1.25rem; right: 1.25rem;
    width: 32px; height: 32px; border-radius: 50%; background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); border: none; z-index: 10;
}
.modal__close:hover { background: var(--black); color: var(--white); }
.modal__close svg { width: 16px; height: 16px; }

.modal__avatar {
    width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--lime);
    margin-bottom: 1.25rem; overflow: hidden; background: var(--gray-100);
    display: flex; align-items: center; justify-content: center;
}
.modal__avatar img { width: 100%; height: 100%; object-fit: cover; }
.modal__avatar .av-ph { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--lime-dark); }
.modal__name  { font-size: 1.3rem; font-weight: 800; margin-bottom: 0.25rem; }
.modal__role  { font-size: 0.85rem; color: var(--lime-dark); font-weight: 600; margin-bottom: 1rem; }
.modal__bio   { font-size: 0.9rem; color: var(--gray-500); line-height: 1.75; }
.modal__tags  { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1.25rem; }
.modal__tag   { font-size: 0.72rem; font-weight: 600; font-family: var(--font-head); background: rgba(177,201,3,0.1); color: var(--lime-dark); border-radius: var(--radius-full); padding: 0.3em 0.9em; }

.modal--service .modal__icon { width: 56px; height: 56px; background: rgba(177,201,3,0.1); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.25rem; }
.modal--service .modal__icon svg { width: 28px; height: 28px; color: var(--lime-dark); }
.modal--service .modal__title { font-size: 1.4rem; font-weight: 800; margin-bottom: 1rem; }
.modal--service .modal__desc  { font-size: 0.9rem; color: var(--gray-500); line-height: 1.8; }
.modal--service .modal__benefits { margin-top: 1.25rem; }
.modal--service .modal__benefits li { display: flex; align-items: center; gap: 0.6rem; font-size: 0.875rem; padding: 0.4rem 0; color: var(--gray-700); }
.modal--service .modal__benefits li::before { content: ''; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; flex-shrink: 0; }

.modal--vcard { padding: 0; overflow: hidden; max-width: 420px; }
.modal--vcard .vcard__scrollable {
    overflow-y: auto; max-height: calc(95dvh - 2rem);
    -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding-bottom: 1rem;
}
@media (min-width: 640px) {
    .modal--vcard .vcard__scrollable { max-height: calc(90dvh - 2rem); }
}

.vcard__header {
    background: linear-gradient(135deg, var(--black) 0%, #1a1f00 100%);
    padding: 2rem 2rem 1.5rem; display: flex; align-items: center; gap: 1.25rem; position: relative;
}
.vcard__header::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--lime), transparent);
}
.vcard__avatar {
    width: 80px; height: 80px; border-radius: 50%; border: 3px solid var(--lime);
    overflow: hidden; flex-shrink: 0; background: #222;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 20px rgba(177,201,3,0.3);
}
.vcard__avatar img { width: 100%; height: 100%; object-fit: cover; }
.vcard__avatar-ph  { font-family: var(--font-head); font-size: 1.8rem; font-weight: 800; color: var(--lime); }

.vcard__header-info { flex: 1; min-width: 0; }
.vcard__name     { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 0.2rem; line-height: 1.2; }
.vcard__title    { font-size: 0.78rem; color: var(--lime); font-weight: 600; font-family: var(--font-head); line-height: 1.3; margin-bottom: 0.2rem; }
.vcard__subtitle { font-size: 0.72rem; color: rgba(255,255,255,0.45); font-weight: 400; }

.vcard__divider  { height: 1px; background: var(--gray-200); margin: 0; }
.vcard__section  { padding: 1.25rem 2rem 0; }
.vcard__section:last-of-type { padding-bottom: 0; }
.vcard__section-label {
    font-family: var(--font-head); font-size: 0.65rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--lime-dark);
    display: block; margin-bottom: 0.6rem;
}
.vcard__semblanza { font-size: 0.875rem; color: var(--gray-700); line-height: 1.7; }
.vcard__perfil { display: flex; flex-direction: column; gap: 0.35rem; }
.vcard__perfil li {
    font-size: 0.83rem; color: var(--gray-700); padding-left: 1rem;
    position: relative; line-height: 1.5;
}
.vcard__perfil li::before {
    content: ''; position: absolute; left: 0; top: 0.55em;
    width: 5px; height: 5px; background: var(--lime); border-radius: 50%;
}
.vcard__quote {
    margin: 1.25rem 2rem 0; padding: 1rem 1.25rem;
    background: rgba(177,201,3,0.06); border-left: 3px solid var(--lime);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.vcard__quote p { font-size: 0.83rem; color: var(--gray-700); line-height: 1.6; font-style: italic; }
.vcard__tags { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 1rem 2rem 0; }
.vcard__contact-row { padding: 1rem 2rem 0; }
.vcard__contact-link {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.8rem; color: var(--gray-500); transition: color var(--transition); word-break: break-all;
}
.vcard__contact-link:hover { color: var(--lime-dark); }
.vcard__contact-link svg { width: 14px; height: 14px; flex-shrink: 0; color: var(--lime); }
.vcard__save-btn {
    display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    width: calc(100% - 4rem); margin: 1.25rem 2rem 2rem;
    padding: 0.9rem 1.5rem; background: var(--lime); color: var(--black);
    border: none; border-radius: var(--radius-full);
    font-family: var(--font-head); font-size: 0.875rem; font-weight: 700;
    cursor: pointer; transition: var(--transition); letter-spacing: 0.03em;
}
.vcard__save-btn:hover { background: var(--lime-dark); transform: translateY(-2px); box-shadow: var(--shadow-glow); }

.wa-float {
    position: fixed; bottom: 1.75rem; right: 1.75rem; z-index: 300;
    width: 56px; height: 56px; border-radius: 50%; background: #25D366;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: var(--transition);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 6px 30px rgba(37,211,102,0.5); }
.wa-float svg { width: 28px; height: 28px; color: var(--white); }
.wa-float__pulse {
    position: absolute; inset: -4px; border-radius: 50%;
    border: 2px solid #25D366; opacity: 0; animation: pulse-wa 2s ease-out infinite;
}
@keyframes pulse-wa { 0% { transform: scale(0.9); opacity: 0.6; } 100% { transform: scale(1.4); opacity: 0; } }

.scroll-top {
    position: fixed; bottom: 1.75rem; left: 1.75rem; z-index: 300;
    width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255,255,255,0.9); border: 1px solid var(--gray-200);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: var(--transition); box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    opacity: 0; visibility: hidden; transform: translateY(12px);
}
.scroll-top.visible { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--lime); border-color: var(--lime); box-shadow: var(--shadow-glow); transform: translateY(-3px); }
.scroll-top svg { width: 18px; height: 18px; color: var(--gray-700); transition: var(--transition); }
.scroll-top:hover svg { color: var(--black); }

[data-anim] { opacity: 0; transform: translateY(30px); transition: opacity 0.65s ease, transform 0.65s ease; }
[data-anim="left"]  { transform: translateX(-30px); }
[data-anim="right"] { transform: translateX(30px);  }
[data-anim].visible { opacity: 1; transform: none; }
[data-anim][data-delay="1"] { transition-delay: 0.1s; }
[data-anim][data-delay="2"] { transition-delay: 0.2s; }
[data-anim][data-delay="3"] { transition-delay: 0.3s; }
[data-anim][data-delay="4"] { transition-delay: 0.4s; }
[data-anim][data-delay="5"] { transition-delay: 0.5s; }
[data-anim][data-delay="6"] { transition-delay: 0.6s; }

@media (max-width: 1024px) {
    .enfoque__card { flex: 0 0 calc((100% - 1.5rem) / 2); }
    .problema__grid { grid-template-columns: repeat(3, 1fr); }
    .footer__grid   { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .problema__grid { grid-template-columns: repeat(2, 1fr); }
    .testimonios__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer__bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

    .proceso__timeline { flex-direction: column; align-items: center; }
    .proceso__timeline::before { display: none; }
    .proceso__step {
        width: 100%; max-width: 320px; flex-direction: row;
        text-align: left; gap: 1.25rem; padding: 0; margin-bottom: 1rem;
    }
    .proceso__step-content {
        align-items: flex-start;
        text-align: left;
    }
    .proceso__step h3 {
        font-size: 1rem;
        text-align: left;
    }
    .proceso__step p {
        font-size: 0.875rem;
        text-align: left;
        max-width: none;
    }
    .proceso__step-circle { margin-bottom: 0; flex-shrink: 0; }

    .hero__team { gap: 1.5rem; }
    .enfoque__card { flex: 0 0 100%; }
    .modal--vcard { max-width: 100%; }
    .vcard__header { flex-direction: column; text-align: center; }
    .vcard__save-btn { width: calc(100% - 3rem); margin-left: 1.5rem; margin-right: 1.5rem; }

    .hero__eyebrow { font-size: 1rem; }

    .diagnostico__inner { padding: 0 1.25rem; }
    .diagnostico__inner .btn--lg {
        white-space: normal;
        text-align: center;
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.9rem;
    }
}
@media (max-width: 480px) {
    .hero__stat-num { font-size: 1.5rem; }
    .hero__member-avatar { width: 85px; height: 85px; }
    .hero__buttons { flex-direction: column; align-items: center; }
    .problema__grid { grid-template-columns: repeat(2, 1fr); }
    .hero__title {
        font-size: clamp(2.3rem, 7vw, 5.2rem);
    }

    .hero__eyebrow { font-size: 0.8rem; letter-spacing: 0.1em; padding: 0.35em 0.9em; }

    .hero__member-badge {
        bottom: calc(100% - 80px - 10px);
        right: calc(50% - 42.5px + 2px);
    }

    .diagnostico__inner .btn--lg {
        font-size: 0.85rem;
        padding: 0.9rem 1.25rem;
    }
}
@media (max-width: 360px) {
    .problema__grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero__title-line:first-child{
        white-space: normal;
    }
}

@media (prefers-color-scheme: dark) {
    
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .empresas-track { animation: none; }
    .scroll-progress__bar { transition: none; }
    [data-anim] { opacity: 1; transform: none; }
}