/* ==========================================================================
   Nosotros (templates/about.php). Se carga después de home.css y usa sus
   variables (paleta de Thirdway) y piezas (.th-btn, .th-eyebrow, .th-h2…).
   ========================================================================== */

/* ---------- Hero ---------- */
.ta-hero { padding: 140px var(--gutter) 96px; display: flex; flex-direction: column; gap: 22px; }
.ta-hero-title { font-size: clamp(48px, 8.4vw, 148px); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; }
.ta-hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-top: 24px; }
.ta-hero-foot p { font-size: clamp(17px, 1.4vw, 21px); color: var(--ink-60); max-width: 34em; }

/* Sello: texto en círculo que gira + logo al centro. */
.ta-stamp { position: relative; flex: none; width: 150px; height: 150px; }
.ta-stamp svg { width: 100%; height: 100%; animation: ta-spin 22s linear infinite; }
.ta-stamp text { font-size: 13.2px; font-weight: 600; letter-spacing: 0.16em; fill: var(--ink); }
.ta-stamp img { position: absolute; left: 50%; top: 50%; width: 64px; height: auto; transform: translate(-50%, -50%); }
@keyframes ta-spin { to { transform: rotate(360deg); } }

/* ---------- Historia ---------- */
.ta-story {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px;
    padding: 110px var(--gutter); border-top: 1px solid var(--ink-15);
}
.ta-story-head { display: flex; flex-direction: column; gap: 18px; }
.ta-story-body { display: flex; flex-direction: column; gap: 18px; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; }
.ta-story-body p:first-child { font-size: clamp(22px, 2vw, 30px); line-height: 1.25; letter-spacing: -0.02em; }
.ta-story-body p:not(:first-child) { color: var(--ink-60); }

/* ---------- Cifras (OKC / FMI) ---------- */
.ta-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--gutter) 110px; }
.ta-stat { padding: 22px 24px 0 0; border-top: 1px solid var(--ink); }
.ta-stat + .ta-stat { padding-left: 24px; border-left: 1px solid var(--ink-15); }
.ta-stat-num { font-size: clamp(56px, 7vw, 112px); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; }
.ta-stat-num::first-letter { color: inherit; }
.ta-stat-label { margin-top: 14px !important; font-size: 15px; color: var(--ink-60); max-width: 16em; }

/* ---------- Misión y visión ---------- */
.ta-mv {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 72px;
    padding: 110px var(--gutter); background: var(--teal); color: var(--paper-text);
}
.ta-mv-item { display: flex; flex-direction: column; gap: 22px; }
.ta-mv-text { font-size: clamp(28px, 3.2vw, 48px); font-weight: 500; line-height: 1.05; letter-spacing: -0.04em; }

/* ---------- Valores ---------- */
.ta-values { padding: 120px var(--gutter); }
.ta-values-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 56px; }
.ta-values-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
.ta-value { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 0 44px; border-top: 1px solid var(--ink-15); }
.ta-value h3 { font-size: clamp(26px, 2.6vw, 40px); font-weight: 500; line-height: 1; letter-spacing: -0.045em; }
.ta-value p { color: var(--ink-60); font-size: 16px; max-width: 26em; }
/* El 3.º (hecho y curado a mano) resalta: es el sello de la marca. */
.ta-value:nth-child(3) h3 { color: var(--brand); }

/* ---------- Frase grande sobre foto ---------- */
.ta-aim { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden; color: var(--paper-text); }
.ta-aim-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ta-aim-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 22, 16, 0.15) 30%, rgba(20, 22, 16, 0.72)); }
.ta-aim-copy { position: relative; padding: 96px var(--gutter) 72px; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 64px; align-items: end; width: 100%; }
.ta-aim-title { font-size: clamp(44px, 6.6vw, 112px); font-weight: 500; line-height: 0.92; letter-spacing: -0.055em; color: var(--paper-text); }
.ta-aim-quote { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.ta-aim-quote p { font-size: 19px; line-height: 1.4; }
.ta-aim-quote footer { font-size: 13px; color: rgba(246, 240, 232, 0.7); }

/* ---------- Equipo ---------- */
.ta-team { padding: 120px var(--gutter); }
.ta-team-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 48px; }
.ta-team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 320px)); gap: 20px; }
.ta-member { margin: 0; display: flex; flex-direction: column; gap: 14px; }
/* Cuadradas y en blanco y negro. */
.ta-member img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 30%; border-radius: 4px; background: var(--ink-06); filter: grayscale(1) contrast(1.05); transition: transform 0.9s var(--ease); }
.ta-member:hover img { transform: translateY(-4px); }
.ta-member figcaption { display: flex; flex-direction: column; gap: 2px; padding-top: 12px; border-top: 1px solid var(--ink-15); }
.ta-member strong { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.ta-member span { font-size: 14px; color: var(--ink-60); }

/* ---------- Cierre ---------- */
.ta-close { padding: 120px var(--gutter) 140px; border-top: 1px solid var(--ink-15); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.ta-close-title { font-size: clamp(56px, 9vw, 160px); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em; }
.ta-close > p { font-size: 18px; color: var(--ink-60); max-width: 32em; }
.ta-close-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 20px; margin-top: 10px; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
    .ta-hero { padding: 112px var(--gutter) 72px; }
    .ta-hero-foot { flex-direction: column; align-items: flex-start; }
    .ta-stamp { width: 124px; height: 124px; align-self: flex-end; }
    .ta-story, .ta-mv { grid-template-columns: 1fr; padding-block: 88px; }
    .ta-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; padding-bottom: 88px; }
    .ta-stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .ta-values { padding-block: 88px; }
    .ta-values-list { grid-template-columns: 1fr; }
    .ta-aim { min-height: 80vh; }
    .ta-aim-copy { grid-template-columns: 1fr; padding-block: 72px 48px; }
    .ta-team { padding-block: 88px; }
    .ta-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .ta-close { padding-block: 88px 110px; }
}
@media (prefers-reduced-motion: reduce) {
    .ta-stamp svg { animation: none; }
}
