
@import url("https://fonts.googleapis.com/css2?family=Goldman:wght@400;700&family=Inter:wght@400;500;600;700;800&display=swap");

/* ==================================================
   AUTOCONTROL — CSS UNIFICADO
   INICIO / PLAN / MAPA
================================================== */

/* 01. TOKENS */

:root {
    --orange: #FF7A2E;
    --amber: #FFAB2E;
    --white: #FFFFFF;
    --slate: #2D313B;
    --dark: #1F2125;

    --font-title: "Goldman", sans-serif;
    --font-body: "Inter", sans-serif;

    --bg: var(--dark);
    --surface: var(--slate);
    --text: var(--white);
    --muted: rgba(255,255,255,.72);
    --line: rgba(255,255,255,.12);

    --gradient-orange: linear-gradient(
        120deg, var(--orange), var(--amber)
    );

    --gradient-dark: linear-gradient(
        145deg, var(--slate), var(--dark)
    );

    --gradient-card: linear-gradient(
        145deg, #343943, var(--slate) 60%, var(--dark)
    );

    --container: 1120px;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 16px 42px rgba(0,0,0,.22);
    --transition: .25s ease;
}

/* 02. RESET */

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    line-height: 1.2;
    overflow-wrap: break-word;
}

p {
    max-width: 75ch;
}

strong {
    font-weight: 700;
}

ul, ol {
    padding-left: 1.3rem;
}

li + li {
    margin-top: 6px;
}

::selection {
    background: var(--orange);
    color: var(--dark);
}

:focus-visible {
    outline: 3px solid var(--amber);
    outline-offset: 4px;
}

/* 03. CONTENEDORES */

.container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}

main {
    min-width: 0;
}

section {
    min-width: 0;
}

/* 04. HEADER — PLAN Y MAPA */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--dark);
    border-bottom: 1px solid var(--line);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    padding-block: 24px;
}

.brand {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand__small {
    margin-bottom: 6px;
    color: var(--amber);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .18em;
}

.brand__name {
    font-family: var(--font-title);
    font-size: 1.65rem;
    text-transform: uppercase;
}

.main-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav a {
    padding: 10px 16px;
    border-radius: 8px;
    font-family: var(--font-title);
    font-size: .85rem;
    transition: var(--transition);
}

.main-nav a:hover,
.main-nav a.active,
.main-nav a[aria-current="page"] {
    background: var(--gradient-orange);
    color: var(--dark);
}

/* 05. HERO — PLAN Y MAPA */

.page-hero {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 90px 0;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255,122,46,.18),
            transparent 65%
        ),
        var(--gradient-dark);
}

.hero__grid {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .18;
    pointer-events: none;
    background-image:
        linear-gradient(
            rgba(255,255,255,.12) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.12) 1px,
            transparent 1px
        );
    background-size: 45px 45px;
}

.hero__content,
.hero__text {
    width: 100%;
    text-align: center;
}

.hero__eyebrow {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .85rem;
    letter-spacing: .12em;
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    letter-spacing: -.045em;
    text-transform: uppercase;
}

.hero__title span {
    color: var(--orange);
}

.hero__subtitle {
    margin: 22px auto 0;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 700;
    text-align: center;
}

.hero__description {
    max-width: 700px;
    margin: 15px auto 0;
    color: var(--muted);
    text-align: center;
}

/* 06. SECCIONES COMPARTIDAS */

.section {
    padding: 85px 0;
}

.section--dark {
    background: var(--gradient-dark);
}

.section__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 48px;
    text-align: center;
}

.section__label {
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .8rem;
    letter-spacing: .13em;
}

.section__title {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
}

.section__rule {
    width: 80px;
    height: 4px;
    margin: 5px auto 0;
    border-radius: 20px;
    background: var(--gradient-orange);
}

.text-large {
    font-size: 1.15rem;
    line-height: 1.85;
}

/* 07. TARJETAS COMPARTIDAS */

.diagnostic-card,
.persona-card,
.quote-card,
.needs,
.benchmark-card,
.process-item,
.flow-card {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--gradient-card);
    box-shadow: var(--shadow);
}

.diagnostic-card,
.persona-card,
.benchmark-card {
    padding: 32px;
    text-align: center;
}

.diagnostic-card h3,
.persona-card h3,
.benchmark-card h3,
.process-content h3 {
    margin: 12px 0 16px;
    font-size: 1.2rem;
}

.diagnostic-card p,
.persona-card p,
.benchmark-card p {
    margin-inline: auto;
    color: var(--muted);
}

.card__label {
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .78rem;
    letter-spacing: .1em;
}

.card__number {
    margin-bottom: 12px;
    color: var(--orange);
    font-family: var(--font-title);
    font-size: 2.5rem;
}

.diagnostic-card ul,
.persona-card ul {
    margin: 22px auto 0;
    max-width: 420px;
    text-align: left;
}

.diagnostic-card li::marker,
.persona-card li::marker {
    color: var(--orange);
}

/* 08. PLAN — PROYECTO */

.project-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    align-items: stretch;
    gap: 28px;
}

.project__intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.project__intro p {
    margin-inline: auto;
    color: var(--muted);
}

.project__intro strong {
    color: var(--white);
}

.project__quote {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    min-height: 270px;
    padding: 35px;
    border-radius: var(--radius);
    background: var(--gradient-orange);
    color: var(--dark);
    text-align: center;
}

.project__quote > span {
    font-family: var(--font-title);
    font-size: .8rem;
    letter-spacing: .15em;
}

.project__quote strong {
    font-family: var(--font-title);
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    line-height: 1.5;
}

/* 09. PLAN — DIAGNÓSTICO */

.diagnostic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.diagnostic-card {
    border-top: 4px solid var(--orange);
}

.diagnostic-card--objective {
    border-top-color: var(--amber);
}

.objective-list {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.objective-list > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    font-weight: 700;
}

.objective-list span {
    color: var(--amber);
    font-family: var(--font-title);
}

/* 10. PLAN — USER PERSONAS */

.persona-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
}

.persona-card {
    border-top: 4px solid var(--amber);
}

.persona-card--red {
    border-top-color: var(--orange);
}

.persona-card__top {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .75rem;
}

.persona-card__name {
    margin-top: 24px;
    color: var(--white);
    font-family: var(--font-title);
    font-size: 2.5rem;
}

.persona-card__section {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.persona-card__section > span {
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .8rem;
}

/* 11. PLAN — INVESTIGACIÓN */

.research-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 25px;
}

.quotes {
    display: grid;
    gap: 15px;
}

.quote-card {
    padding: 24px;
    text-align: center;
}

.quote-card > span {
    display: block;
    margin-bottom: 10px;
    color: var(--amber);
    font-family: var(--font-title);
}

.quote-card p {
    margin-inline: auto;
    font-style: italic;
}

.needs {
    padding: 28px;
    text-align: center;
}

.need {
    display: grid;
    grid-template-columns: 45px minmax(0, 1fr);
    align-items: start;
    gap: 15px;
    margin-top: 24px;
    text-align: left;
}

.need > strong {
    color: var(--orange);
    font-family: var(--font-title);
    font-size: 1.4rem;
}

.need h3 {
    margin-bottom: 7px;
    font-size: 1rem;
}

.need p {
    color: var(--muted);
    font-size: .9rem;
}

/* 12. PLAN — SISTEMA DE ESTADOS */

.status-system {
    margin-top: 45px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--dark);
}

.status-system__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 25px;
}

.status-system__header > span {
    color: var(--amber);
    font-family: var(--font-title);
}

.status-system__header small {
    color: var(--muted);
    letter-spacing: .12em;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-width: 0;
    padding: 20px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--slate);
}

.status-dot {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
}

.status-item--green .status-dot {
    background: var(--white);
}

.status-item--yellow .status-dot {
    background: var(--amber);
}

.status-item--red .status-dot {
    background: var(--orange);
}

.status-item strong {
    display: block;
    font-family: var(--font-title);
    font-size: .9rem;
}

.status-item small {
    color: var(--muted);
}

/* 13. PLAN — BENCHMARKING */

.benchmark-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.benchmark-card__number {
    display: block;
    color: var(--orange);
    font-family: var(--font-title);
    font-size: 2rem;
}

.benchmark-card__category {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .75rem;
}

.benchmark-card__take {
    margin-top: 25px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: rgba(31,33,37,.75);
}

.benchmark-card__take > span {
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .75rem;
}

.benchmark-card__take p {
    margin-top: 10px;
}

/* 14. PLAN — METODOLOGÍA */

.process {
    display: grid;
    gap: 20px;
    max-width: 950px;
    margin-inline: auto;
}

.process-item {
    display: grid;
    grid-template-columns: 75px minmax(0, 1fr);
    align-items: start;
    gap: 25px;
    padding: 30px;
}

.process-number {
    color: var(--orange);
    font-family: var(--font-title);
    font-size: 2.4rem;
    text-align: center;
}

.process-content {
    min-width: 0;
    text-align: left;
}

.process-content > span {
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .75rem;
}

.process-content p {
    margin-top: 12px;
    color: var(--muted);
}

/* 15. MAPA — FLUJOS */

.flows-list {
    display: grid;
    gap: 34px;
}

.flow-card {
    overflow: hidden;
    padding: 34px;
    border-top: 4px solid var(--orange);
}

.flow-card--dark {
    border-top-color: var(--amber);
    background: var(--gradient-dark);
}

.flow-card__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-bottom: 22px;
    text-align: center;
}

.flow-card__number {
    flex-shrink: 0;
    color: var(--orange);
    font-family: var(--font-title);
    font-size: 3rem;
    line-height: 1;
}

.flow-card__titles {
    min-width: 0;
    text-align: left;
}

.flow-card__badge {
    display: inline-block;
    margin-bottom: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255,122,46,.13);
    color: var(--orange);
    font-family: var(--font-title);
    font-size: .72rem;
    letter-spacing: .07em;
}

.flow-card__badge--yellow {
    background: rgba(255,171,46,.13);
    color: var(--amber);
}

.flow-card__badge--red {
    background: rgba(255,122,46,.18);
    color: var(--orange);
}

.flow-card__titles h3 {
    font-size: clamp(1.15rem, 2.5vw, 1.65rem);
}

.flow-card__description {
    max-width: 760px;
    margin: 0 auto 28px;
    color: var(--muted);
    text-align: center;
}

.flow-card__image-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--dark);
}

.flow-card__image-container img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* 16. CIERRE — PLAN Y MAPA */

.final-section {
    padding: 100px 0;
    background:
        radial-gradient(
            ellipse at 50% 100%,
            rgba(255,122,46,.17),
            transparent 65%
        ),
        var(--gradient-dark);
    text-align: center;
}

.final-section__label {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--amber);
    font-family: var(--font-title);
    font-size: .8rem;
    letter-spacing: .15em;
}

.final-section h2 {
    font-size: clamp(2rem, 6vw, 4.5rem);
    line-height: 1.4;
}

.final-section h2 span {
    color: var(--orange);
}

/* 17. FOOTER — PLAN Y MAPA */

.site-footer {
    padding: 50px 0 30px;
    border-top: 1px solid var(--line);
    background: var(--dark);
}

.footer__top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 25px;
    text-align: center;
}

.footer__top > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.footer__top strong {
    font-family: var(--font-title);
}

.footer__top span,
.footer__bottom span {
    color: var(--muted);
    font-size: .85rem;
}

.footer__line {
    height: 1px;
    margin: 30px 0;
    background: var(--line);
}

.footer__bottom {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 30px;
    text-align: center;
}

/* ================================================
   18. INICIO — ESTILOS EXCLUSIVOS
   Se aplican solo al HTML sin .site-header
================================================ */

body:has(> header:not(.site-header)) > header {
    padding: 55px 24px 45px;
    border-bottom: 1px solid var(--line);
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(255,122,46,.18),
            transparent 65%
        ),
        var(--gradient-dark);
    text-align: center;
}

body:has(> header:not(.site-header)) > header h1 {
    margin-bottom: 12px;
    color: var(--white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
}

body:has(> header:not(.site-header)) > header h2 {
    margin-bottom: 10px;
    color: var(--amber);
    font-size: clamp(1.1rem, 3vw, 1.8rem);
}

body:has(> header:not(.site-header)) > header p {
    margin: 0 auto 35px;
    color: var(--muted);
}

body:has(> header:not(.site-header)) > header h3 {
    margin: 25px 0 15px;
    color: var(--orange);
    font-size: 1rem;
    letter-spacing: .06em;
}

body:has(> header:not(.site-header)) > header nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    max-width: 1050px;
    margin-inline: auto;
    padding: 0;
    list-style: none;
}

body:has(> header:not(.site-header)) > header nav li {
    margin: 0;
}

body:has(> header:not(.site-header)) > header nav a {
    display: inline-block;
    padding: 11px 17px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--slate);
    font-family: var(--font-title);
    font-size: .8rem;
    transition: var(--transition);
}

body:has(> header:not(.site-header)) > header nav a:hover {
    background: var(--gradient-orange);
    color: var(--dark);
    transform: translateY(-3px);
}

/* INICIO — CONTENIDO */

body:has(> header:not(.site-header)) > main {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    width: min(calc(100% - 40px), var(--container));
    margin: 0 auto;
    padding: 75px 0;
}

body:has(> header:not(.site-header)) > main > h2 {
    grid-column: 1 / -1;
    margin-bottom: 20px;
    font-size: clamp(1.7rem, 4vw, 2.7rem);
    text-align: center;
}

body:has(> header:not(.site-header)) > main > section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 0;
    padding: 35px 25px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--orange);
    border-radius: var(--radius);
    background: var(--gradient-card);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

body:has(> header:not(.site-header)) > main > section:hover {
    transform: translateY(-5px);
    border-color: var(--orange);
}

body:has(> header:not(.site-header)) > main > section img {
    width: 120px;
    height: 120px;
    margin-bottom: 10px;
    border: 3px solid var(--amber);
    border-radius: 50%;
    object-fit: cover;
}

body:has(> header:not(.site-header)) > main > section h4 {
    font-size: 1.2rem;
}

body:has(> header:not(.site-header)) > main > section p {
    color: var(--muted);
}

body:has(> header:not(.site-header)) > main > section a {
    display: inline-block;
    margin-top: 10px;
    padding: 11px 18px;
    border-radius: 8px;
    background: var(--gradient-orange);
    color: var(--dark);
    font-family: var(--font-title);
    font-size: .8rem;
    transition: var(--transition);
}

body:has(> header:not(.site-header)) > main > section a:hover {
    filter: brightness(1.1);
}

body:has(> header:not(.site-header)) > main > hr {
    display: none;
}

/* 19. FOOTER DE INICIO */

body > footer:not(.site-footer) {
    padding: 40px 20px;
    border-top: 1px solid var(--line);
    background: var(--dark);
    text-align: center;
}

body > footer:not(.site-footer) p {
    margin: 5px auto;
    color: var(--muted);
    font-size: .85rem;
}

/* 20. RESPONSIVE — TABLET */

@media (max-width: 900px) {

    .header__inner {
        flex-direction: column;
        text-align: center;
    }

    .brand {
        align-items: center;
    }

    .main-nav {
        width: 100%;
    }

    .page-hero {
        min-height: 340px;
        padding: 70px 0;
    }

    .section {
        padding: 65px 0;
    }

    .project-grid,
    .research-grid {
        grid-template-columns: 1fr;
    }

    .project__quote {
        min-height: 230px;
    }
}

/* 21. RESPONSIVE — CELULAR */

@media (max-width: 650px) {

    .container {
        width: min(calc(100% - 30px), var(--container));
    }

    .main-nav {
        gap: 5px;
    }

    .main-nav a {
        padding: 8px 10px;
        font-size: .72rem;
    }

    .page-hero {
        min-height: 300px;
        padding: 55px 0;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero__eyebrow {
        font-size: .7rem;
    }

    .hero__description {
        font-size: .9rem;
    }

    .section {
        padding: 50px 0;
    }

    .section__header {
        margin-bottom: 32px;
    }

    .diagnostic-grid,
    .persona-grid,
    .benchmark-grid,
    .status-grid {
        grid-template-columns: 1fr;
    }

    .diagnostic-card,
    .persona-card,
    .benchmark-card {
        padding: 24px 20px;
    }

    .process-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 24px;
    }

    .process-content {
        text-align: center;
    }

    .flow-card {
        padding: 22px 16px;
    }

    .flow-card__header {
        flex-direction: column;
        gap: 12px;
    }

    .flow-card__titles {
        text-align: center;
    }

    .flow-card__number {
        font-size: 2.5rem;
    }

    .flow-card__image-container {
        overflow-x: auto;
    }

    .footer__top {
        flex-direction: column;
        align-items: center;
    }

    .final-section {
        padding: 70px 0;
    }

    body:has(> header:not(.site-header)) > main {
        grid-template-columns: 1fr;
        padding: 50px 0;
    }

    body:has(> header:not(.site-header)) > header {
        padding: 40px 16px;
    }
}

/* 22. ACCESIBILIDAD */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}


/* =========================================
   FLUJO GENERAL DE LA APLICACIÓN
========================================= */

.flow-card--general {
    width: 100%;
}

.flow-card__image-container--general {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 20px;
    box-sizing: border-box;
}

.flow-card__image-container--general img {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
}

/* ADAPTACIÓN PARA CELULARES */

@media (max-width: 768px) {

    .flow-card__image-container--general {
        padding: 12px;
    }

    .flow-card__image-container--general img {
        width: 1000px;
        max-width: none;
    }

}
