﻿/* ============================================================
   DaKa Innova - Pagina: Nosotros
   Interactivo: contadores, timeline animada, tabs MVision,
   flip cards de valores y equipo expandible.
   ============================================================ */

/* -- PAGE HERO ----------------------------------------------- */
.page-hero {
    background: var(--dark-2);
    padding: calc(var(--sp-24) + 70px) 0 var(--sp-20);
    position: relative;
    overflow: hidden;
}

.page-hero__pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; left: -120px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(219,0,125,0.14) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -100px; right: -100px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0,142,231,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero__tag-top {
    text-align: center;
    margin-bottom: var(--sp-8);
}

.page-hero__content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-12);
    align-items: center;
    position: relative;
    z-index: 1;
}

.page-hero__title {
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: var(--fw-black);
    color: var(--white);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.page-hero__sub {
    font-size: var(--text-lg);
    color: var(--text-inv-75);
    line-height: 1.75;
}

.page-hero__stats {
    display: flex;
    align-items: center;
    gap: var(--sp-10);
    margin-top: var(--sp-16);
    padding-top: var(--sp-10);
    border-top: 1px solid var(--glass-border);
    position: relative;
    z-index: 1;
}

.page-hero__stat { text-align: center; }

.page-hero__stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: var(--text-4xl);
    font-weight: var(--fw-black);
    background: var(--grad-rosa-azul);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
}

.page-hero__stat-label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-inv-50);
    font-family: var(--font-head);
    font-weight: var(--fw-semibold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--sp-2);
}

.page-hero__stat-divider {
    width: 1px;
    height: 52px;
    background: var(--glass-border);
    flex-shrink: 0;
}

/* -- Separador hero a historia ------------------------------ */
.hero-sep {
    height: 5px;
    background: linear-gradient(to right, var(--rosa), var(--azul), var(--teal), var(--amarillo));
    margin: 0;
}

/* -- TIMELINE ------------------------------------------------ */
.timeline {
    position: relative;
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-4) 0 var(--sp-8);
    overflow: visible;
}

/* Linea vertical de gradiente */
.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 30px;
    bottom: 60px;
    width: 3px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        #db007d  0%,
        #008ee7 38%,
        #079aaa 68%,
        #ffc50f 100%
    );
    border-radius: 3px;
    z-index: 0;
}

/* Cada fila de la timeline */
.timeline__row {
    position: relative;
    width: calc(50% - 36px);
    margin-bottom: var(--sp-14);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.timeline__row--left  { margin-right: calc(50% + 36px); transform: translateX(-30px); }
.timeline__row--right { margin-left:  calc(50% + 36px); transform: translateX(30px); }

.timeline__row.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.timeline__row:nth-child(1) { transition-delay: 0.05s; }
.timeline__row:nth-child(2) { transition-delay: 0.20s; }
.timeline__row:nth-child(3) { transition-delay: 0.35s; }
.timeline__row:nth-child(4) { transition-delay: 0.50s; }

/* El punto / dot sobre la linea */
.timeline__dot {
    position: absolute;
    top: var(--sp-6);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-xl);
    z-index: 3;
    transition: transform var(--t-normal), box-shadow var(--t-normal);
}

/* Posicion del dot: izquierda = a la derecha de la tarjeta */
.timeline__row--left  .timeline__dot { right: -68px; }
/* Posicion del dot: derecha = a la izquierda de la tarjeta */
.timeline__row--right .timeline__dot { left:  -68px; }

.timeline__row:hover .timeline__dot { transform: scale(1.15); }

/* Variantes de color para dot */
.timeline__row--rosa .timeline__dot {
    border: 3px solid var(--rosa);
    box-shadow: 0 0 0 6px rgba(219,0,125,0.12), 0 0 24px rgba(219,0,125,0.45);
    color: var(--rosa);
}
.timeline__row--azul .timeline__dot {
    border: 3px solid var(--azul);
    box-shadow: 0 0 0 6px rgba(0,142,231,0.12), 0 0 24px rgba(0,142,231,0.45);
    color: var(--azul);
}
.timeline__row--teal .timeline__dot {
    border: 3px solid var(--teal);
    box-shadow: 0 0 0 6px rgba(7,154,170,0.12), 0 0 24px rgba(7,154,170,0.45);
    color: var(--teal);
}
.timeline__row--amarillo .timeline__dot {
    border: 3px solid var(--amarillo);
    box-shadow: 0 0 0 6px rgba(255,197,15,0.15), 0 0 24px rgba(255,197,15,0.45);
    color: var(--amarillo-dark);
}

/* La tarjeta */
.timeline__card {
    background: var(--neu-bg);
    border-radius: var(--r-2xl);
    padding: var(--sp-8);
    box-shadow: 6px 6px 16px var(--neu-dark), -6px -6px 16px var(--neu-light);
    position: relative;
    overflow: hidden;
    transition: transform var(--t-normal), box-shadow var(--t-normal);
}

.timeline__card:hover {
    transform: translateY(-4px);
    box-shadow: 10px 10px 26px var(--neu-dark), -10px -10px 26px var(--neu-light);
}

/* Bordes coloreados superiores */
.timeline__row--rosa     .timeline__card { border-top: 3px solid var(--rosa); }
.timeline__row--azul     .timeline__card { border-top: 3px solid var(--azul); }
.timeline__row--teal     .timeline__card { border-top: 3px solid var(--teal); }
.timeline__row--amarillo .timeline__card { border-top: 3px solid var(--amarillo); }

/* Esquina cortada apuntando al dot */
.timeline__row--left  .timeline__card { border-top-right-radius: var(--r-md); }
.timeline__row--right .timeline__card { border-top-left-radius: var(--r-md); }

/* Numero de anio como decoracion de fondo */
.timeline__card-year {
    position: absolute;
    font-family: var(--font-head);
    font-size: 6.5rem;
    font-weight: var(--fw-black);
    color: rgba(0,0,0,0.04);
    line-height: 1;
    top: 50%;
    transform: translateY(-50%);
    user-select: none;
    pointer-events: none;
    letter-spacing: -0.05em;
}

.timeline__row--left  .timeline__card-year { right: var(--sp-4); }
.timeline__row--right .timeline__card-year { left:  var(--sp-4); }

/* Badge de anio visible */
.timeline__card-badge {
    display: inline-block;
    padding: var(--sp-1) var(--sp-4);
    border-radius: var(--r-full);
    font-family: var(--font-head);
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--sp-4);
    position: relative;
    z-index: 1;
}

.timeline__row--rosa     .timeline__card-badge { background: rgba(219,0,125,0.12); color: var(--rosa); }
.timeline__row--azul     .timeline__card-badge { background: rgba(0,142,231,0.12);  color: var(--azul); }
.timeline__row--teal     .timeline__card-badge { background: rgba(7,154,170,0.12);  color: var(--teal); }
.timeline__row--amarillo .timeline__card-badge { background: rgba(255,197,15,0.18); color: var(--amarillo-dark); }

.timeline__card-title {
    font-family: var(--font-head);
    font-size: var(--text-xl);
    font-weight: var(--fw-bold);
    color: var(--text-dark);
    margin-bottom: var(--sp-3);
    position: relative;
    z-index: 1;
}

.timeline__card-text {
    font-size: var(--text-sm);
    color: var(--text-mid);
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

/* -- MISION / VISION / PROPOSITO (Tabs) --------------------- */
.mvp-tabs {
    max-width: 860px;
    margin: 0 auto;
}

.mvp-tabs__nav {
    display: flex;
    gap: var(--sp-2);
    border-bottom: 2px solid rgba(17,15,30,0.08);
    margin-bottom: var(--sp-10);
    padding-bottom: 0;
    flex-wrap: wrap;
}

.mvp-tabs__btn {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-4) var(--sp-6);
    border: none;
    background: none;
    font-family: var(--font-head);
    font-weight: var(--fw-semibold);
    font-size: var(--text-base);
    color: var(--text-mid);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    transition: color var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}

.mvp-tabs__btn:hover { color: var(--text-dark); background: rgba(0,0,0,0.03); }

.mvp-tabs__btn.is-active {
    color: var(--rosa);
    border-bottom-color: var(--rosa);
}

.mvp-tabs__btn i {
    font-size: var(--text-lg);
    opacity: 0.7;
}

.mvp-tabs__btn.is-active i { opacity: 1; }

/* Panels */
.mvp-tabs__panel {
    display: none;
    animation: tabFadeIn 0.35s ease;
}
.mvp-tabs__panel.is-active { display: block; }

@keyframes tabFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.mvp-panel {
    display: grid;
    grid-template-columns: 200px 1fr;
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: 8px 8px 24px var(--neu-dark), -8px -8px 24px var(--neu-light);
    position: relative;
}

/* Panel izquierdo: color solido + icono grande */
.mvp-panel__accent {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--sp-4);
    padding: var(--sp-10) var(--sp-6);
    position: relative;
    overflow: hidden;
}

.mvp-panel__accent-icon {
    font-size: 3.5rem;
    position: relative;
    z-index: 1;
    line-height: 1;
}

.mvp-panel__accent-label {
    font-family: var(--font-head);
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    z-index: 1;
}

/* Numero gigante de fondo en el acento */
.mvp-panel__accent::after {
    content: attr(data-num);
    position: absolute;
    font-family: var(--font-head);
    font-size: 7rem;
    font-weight: var(--fw-black);
    line-height: 1;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.12;
    pointer-events: none;
    letter-spacing: -0.05em;
    user-select: none;
}

/* Panel derecho: contenido */
.mvp-panel__content {
    background: var(--neu-bg);
    padding: var(--sp-10) var(--sp-12);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Colores por variante */
.mvp-panel--mision    .mvp-panel__accent { background: linear-gradient(160deg, #db007d 0%, #a80060 100%); color: #fff; }
.mvp-panel--vision    .mvp-panel__accent { background: linear-gradient(160deg, #008ee7 0%, #005bb5 100%); color: #fff; }
.mvp-panel--proposito .mvp-panel__accent { background: linear-gradient(160deg, #ffc50f 0%, #d49a00 100%); color: #fff; }

.mvp-panel__label {
    display: inline-block;
    font-family: var(--font-head);
    font-size: var(--text-xs);
    font-weight: var(--fw-black);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--sp-3);
    padding: var(--sp-1) var(--sp-4);
    border-radius: var(--r-full);
}

.mvp-panel--mision .mvp-panel__label    { background: rgba(219,0,125,0.10); color: var(--rosa); }
.mvp-panel--vision .mvp-panel__label    { background: rgba(0,142,231,0.10);  color: var(--azul); }
.mvp-panel--proposito .mvp-panel__label { background: rgba(255,197,15,0.18); color: #a37700; }

.mvp-panel__title {
    font-family: var(--font-head);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
    font-weight: var(--fw-black);
    color: var(--text-dark);
    line-height: 1.15;
    margin-bottom: var(--sp-5);
    letter-spacing: -0.02em;
}

.mvp-panel__text {
    font-size: var(--text-lg);
    color: var(--text-mid);
    line-height: 1.8;
    max-width: 600px;
}

.mvp-panel__highlight {
    margin-top: var(--sp-6);
    padding: var(--sp-4) var(--sp-6);
    border-left: 3px solid;
    border-radius: 0 var(--r-lg) var(--r-lg) 0;
    font-family: var(--font-head);
    font-size: var(--text-sm);
    font-weight: var(--fw-semibold);
    font-style: italic;
    line-height: 1.65;
}

.mvp-panel--mision .mvp-panel__highlight    { border-color: var(--rosa);     background: rgba(219,0,125,0.06);  color: #a60060; }
.mvp-panel--vision .mvp-panel__highlight    { border-color: var(--azul);     background: rgba(0,142,231,0.06);  color: #005bb5; }
.mvp-panel--proposito .mvp-panel__highlight { border-color: var(--amarillo); background: rgba(255,197,15,0.10); color: #a37700; }

/* -- FLIP CARDS DE VALORES ----------------------------------- */
/* Grid de 3 columnas en nosotros */
#nosotros .valores__grid {
    grid-template-columns: repeat(3, 1fr);
}

/* Reset de la tarjeta para modo flip */
.valor-card--flipable {
    height: 260px;
    perspective: 1200px;
    cursor: pointer;
    background: transparent;
    box-shadow: none;
    padding: 0;
    transform: none;
}
.valor-card--flipable:hover {
    box-shadow: none;
    transform: none;
}

/* Contenedor interno que rota */
.valor-card__inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.valor-card--flipable.is-flipped .valor-card__inner {
    transform: rotateY(180deg);
}

/* Cara frontal y trasera */
.valor-card__front,
.valor-card__back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--r-2xl);
    padding: var(--sp-8) var(--sp-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--sp-3);
}

/* Frente: neumorfismo */
.valor-card__front {
    background: var(--neu-bg);
    box-shadow: 6px 6px 16px var(--neu-dark), -6px -6px 16px var(--neu-light);
}

/* Reverso: pastel del color corporativo */
.valor-card__back {
    transform: rotateY(180deg);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.valor-card--rosa     .valor-card__back { background: linear-gradient(145deg, #fde8f3 0%, #fbd0ea 100%); }
.valor-card--azul     .valor-card__back { background: linear-gradient(145deg, #dbeeff 0%, #c5e1fb 100%); }
.valor-card--teal     .valor-card__back { background: linear-gradient(145deg, #d0f5f8 0%, #b8ecf0 100%); }
.valor-card--amarillo .valor-card__back { background: linear-gradient(145deg, #fff7d6 0%, #fdeeb4 100%); }

.valor-card__back-title {
    font-family: var(--font-head);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    position: relative;
    z-index: 1;
}

.valor-card--rosa     .valor-card__back-title { color: #8c0050; }
.valor-card--azul     .valor-card__back-title { color: #004d99; }
.valor-card--teal     .valor-card__back-title { color: #045c66; }
.valor-card--amarillo .valor-card__back-title { color: #7a5900; }

.valor-card__back-text {
    font-size: var(--text-sm);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    max-width: 240px;
}

.valor-card--rosa     .valor-card__back-text { color: #6b003d; }
.valor-card--azul     .valor-card__back-text { color: #003a7a; }
.valor-card--teal     .valor-card__back-text { color: #034850; }
.valor-card--amarillo .valor-card__back-text { color: #5e4400; }

/* Pista "toca para ver mas" */
.valor-card__hint {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: var(--font-head);
    font-weight: var(--fw-medium);
    letter-spacing: 0.05em;
    margin-top: var(--sp-1);
    display: flex;
    align-items: center;
    gap: 4px;
}

.valor-card__hint-icon {
    font-size: 0.65rem;
    opacity: 0.6;
    animation: hintPulse 2s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 0.9; transform: scale(1.2); }
}

/* -- EQUIPO: FILAS EXPANDIBLES ------------------------------ */
.specialist-row__expand {
    margin-top: var(--sp-5);
    position: relative;
    z-index: 2;
}

.specialist-row--reverse .specialist-row__expand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.specialist-row__skills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.45s ease, opacity 0.35s ease, margin-bottom 0.3s ease;
    margin-bottom: 0;
}

.specialist-row.is-expanded .specialist-row__skills {
    max-height: 160px;
    opacity: 1;
    margin-bottom: var(--sp-4);
}

.specialist-row--reverse .specialist-row__skills {
    justify-content: flex-end;
}

.skill-tag {
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    font-family: var(--font-head);
    background: var(--glass-bg);
    color: var(--text-inv-75);
    border: 1px solid var(--glass-border);
    transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
    cursor: default;
}

.skill-tag:hover {
    background: var(--glass-bg-h);
    border-color: var(--glass-border-h);
    transform: translateY(-2px);
}

.specialist-row__toggle {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: var(--r-full);
    color: var(--text-inv-75);
    font-size: var(--text-sm);
    font-family: var(--font-head);
    font-weight: var(--fw-semibold);
    cursor: pointer;
    padding: var(--sp-2) var(--sp-5);
    transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}

.specialist-row__toggle:hover {
    background: rgba(255,255,255,0.10);
    border-color: rgba(255,255,255,0.18);
    color: var(--white);
}

.specialist-row__toggle .tgl-chevron {
    transition: transform 0.3s ease;
}

.specialist-row.is-expanded .specialist-row__toggle .tgl-chevron {
    transform: rotate(180deg);
}

/* -- ZONA OPERATIVA ----------------------------------------- */
.zona__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-5);
    margin-top: var(--sp-10);
}

.zona-card {
    background-image:
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(145deg, rgba(16,10,28,0.97) 0%, rgba(10,12,24,0.94) 100%);
    background-size: 22px 22px, 100% 100%;
    border-radius: var(--r-2xl);
    padding: var(--sp-8);
    position: relative;
    overflow: hidden;
    transition: transform var(--t-normal), box-shadow var(--t-normal);
    height: fit-content;
}

.zona-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: var(--card-border-grad, rgba(255,255,255,0.10));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.zona-card > * { position: relative; z-index: 1; }

.zona-card--principal  { --card-border-grad: linear-gradient(135deg, var(--amarillo), rgba(255,197,15,0.22)); }
.zona-card--secundaria { --card-border-grad: linear-gradient(135deg, var(--teal), rgba(7,154,170,0.22)); }
.zona-card--remoto     { --card-border-grad: linear-gradient(135deg, var(--azul), rgba(0,142,231,0.22)); }

.zona-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.zona-card__icon {
    width: 52px; height: 52px;
    border-radius: var(--r-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: var(--sp-5);
}

.zona-card--principal  .zona-card__icon { background: rgba(255,197,15,0.14); color: var(--amarillo); }
.zona-card--secundaria .zona-card__icon { background: rgba(7,154,170,0.14);  color: var(--teal); }
.zona-card--remoto     .zona-card__icon { background: rgba(0,142,231,0.14);  color: var(--azul-light); }

.zona-card h3 {
    font-family: var(--font-head);
    font-size: var(--text-lg);
    font-weight: var(--fw-bold);
    color: var(--white);
    margin-bottom: var(--sp-3);
}

.zona-card p {
    font-size: var(--text-sm);
    color: var(--text-inv-75);
    line-height: 1.7;
    margin-bottom: var(--sp-5);
}

.zona-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
}

.zona-card__tag {
    display: inline-block;
    padding: var(--sp-1) var(--sp-3);
    border-radius: var(--r-full);
    font-size: var(--text-xs);
    font-weight: var(--fw-semibold);
    font-family: var(--font-head);
    background: rgba(255,255,255,0.07);
    color: var(--text-inv-75);
    border: 1px solid rgba(255,255,255,0.10);
}

/* -- CTA CONTACTO FINAL ------------------------------------- */
.nosotros-cta {
    text-align: center;
    padding: var(--sp-20) 0;
}

.nosotros-cta__title {
    font-family: var(--font-head);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: var(--fw-black);
    color: var(--white);
    line-height: 1.15;
    margin-bottom: var(--sp-6);
}

.nosotros-cta__sub {
    font-size: var(--text-lg);
    color: var(--text-inv-75);
    max-width: 520px;
    margin: 0 auto var(--sp-10);
    line-height: 1.7;
}

.nosotros-cta__actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--sp-4);
    flex-wrap: wrap;
}

/* -- RESPONSIVE --------------------------------------------- */
@media (max-width: 1024px) {
    .zona__grid { grid-template-columns: 1fr 1fr; }
    #nosotros .valores__grid { grid-template-columns: repeat(2, 1fr); }
    .mvp-panel { grid-template-columns: 160px 1fr; }
}

@media (max-width: 768px) {
    .page-hero__content { grid-template-columns: 1fr; gap: var(--sp-8); }
    .page-hero__stats { flex-wrap: wrap; gap: var(--sp-8); }
    .page-hero__stat-divider { display: none; }

    /* Timeline: pasa a columna unica a la izquierda */
    .timeline::before { left: 32px; }

    .timeline__row--left,
    .timeline__row--right {
        width: calc(100% - 70px);
        margin-left: 70px;
        margin-right: 0;
    }

    .timeline__row--left  { transform: translateX(20px); }
    .timeline__row--right { transform: translateX(20px); }

    .timeline__row--left  .timeline__dot { right: auto; left: -68px; }
    .timeline__row--right .timeline__dot { left: -68px; }

    .timeline__row--left  .timeline__card-year { right: auto; left: var(--sp-4); }
    .timeline__row--left  .timeline__card { border-top-right-radius: var(--r-2xl); border-top-left-radius: var(--r-md); }

    /* Ajuste del dot en pantallas pequeñas */
    .timeline__dot { background: var(--light); }

    /* Tabs: wrap */
    .mvp-tabs__btn { padding: var(--sp-3) var(--sp-4); font-size: var(--text-sm); }

    /* Panel MVP: colapsar a columna */
    .mvp-panel { grid-template-columns: 1fr; }
    .mvp-panel__accent { flex-direction: row; padding: var(--sp-6) var(--sp-8); gap: var(--sp-4); }
    .mvp-panel__accent::after { display: none; }
    .mvp-panel__accent-icon { font-size: 2rem; }
    .mvp-panel__content { padding: var(--sp-8) var(--sp-8); }

    .zona__grid { grid-template-columns: 1fr; }

    .valor-card--flipable { height: 240px; }
}
/* -- SEPARADOR LIGHT a DARK --------------------------------- */
.sec-break {
    height: 5px;
    background: linear-gradient(to right, var(--rosa), var(--azul), var(--teal), var(--amarillo));
    margin: 0;
}

/* -- TOOLTIP DE SKILL TAGS ---------------------------------- */
.skill-tooltip {
    position: absolute;
    top: 0; left: 0;
    background: var(--dark-3);
    color: var(--text-inv-75);
    font-family: var(--font-head);
    font-size: var(--text-xs);
    font-weight: var(--fw-medium);
    line-height: 1.5;
    padding: var(--sp-2) var(--sp-4);
    border-radius: var(--r-lg);
    border: 1px solid var(--glass-border);
    max-width: 220px;
    text-align: center;
    white-space: normal;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.skill-tooltip--visible {
    opacity: 1;
    transform: translateY(0);
}
