/* =========================================================
   COACHING · VINICIO JARQUÍN
   CSS MAESTRO
   Portada · Herramientas · Programas · Aplicaciones
========================================================= */

:root {
    --bg: #090909;
    --surface: #111111;
    --surface-soft: #151515;
    --text: #f3f1ed;
    --text-soft: #aaa6a0;
    --text-dim: #77736e;
    --accent: #a88358;
    --accent-light: #c1a27e;
    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.18);
    --max-width: 1180px;
    --content-width: 760px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
}

h1 {
    margin: 0 0 28px;
    font-size: clamp(56px, 7vw, 90px);
    line-height: .97;
    letter-spacing: -.04em;
}

h2 {
    margin: 0 0 24px;
    font-size: clamp(40px, 5vw, 60px);
    line-height: 1.05;
    letter-spacing: -.025em;
}

h3 {
    margin: 0 0 16px;
    font-size: 30px;
    line-height: 1.15;
}

.eyebrow {
    margin: 0 0 18px;
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

/* HEADER */

.site-header {
    width: 100%;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

.logo-wrap {
    padding: 34px 20px 20px;
    text-align: center;
}

.logo-link {
    display: inline-block;
}

.site-logo {
    width: 380px;
    max-width: 82vw;
    margin: auto;
}

/* MENÚ */

.main-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 20px 18px;
}

.main-nav a {
    position: relative;
    padding: 10px 14px;
    color: var(--text-soft);
    font-size: 14px;
    text-decoration: none;
    transition: color .2s ease;
}

.main-nav a:hover {
    color: var(--text);
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 5px;
    height: 1px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.admin-link {
    opacity: .65;
}

/* PORTADA */

.hero {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 70px auto 115px;
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.hero-copy {
    padding: 35px 0;
}

.hero-description {
    max-width: 500px;
    margin: 0 0 32px;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.75;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-photo {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.hero-photo img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* BOTONES */

.button,
.peace-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.button {
    background: var(--text);
    color: #090909;
    border: 1px solid var(--text);
}

.button:hover,
.peace-button:hover {
    transform: translateY(-2px);
}

.button:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.button-main {
    width: 195px;
}

.button-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
}

.button-secondary:hover {
    border-color: var(--accent-light);
    background: transparent;
}

.button-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 18px;
}

/* PORTADA · SOBRE ESTE ESPACIO */

.about-section {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 105px 0 125px;
    border-top: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 90px;
    align-items: start;
}

.about-section h2 {
    margin: 0;
    max-width: 500px;
}

.about-copy {
    max-width: 610px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.85;
}

.about-copy p {
    margin: 0 0 25px;
}

.about-copy p:first-child {
    color: var(--text);
    font-size: 20px;
}

/* CABECERA INTERIOR */

.page-intro {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 80px auto 70px;
}

.page-intro-inner {
    max-width: 760px;
}

.page-intro h1 {
    margin: 0 0 24px;
}

.page-intro-text {
    max-width: 650px;
    margin: 0;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

/* =========================================================
   PAZ
========================================================= */

.peace-app {
    width: 100%;
    min-height: 650px;
    background: var(--bg);
}

.peace-screen {
    display: none;
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 85px 0 110px;
}

.peace-screen-active {
    display: block;
}

.peace-content {
    position: relative;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.peace-eyebrow {
    margin: 0 0 18px;
    color: var(--accent-light);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.peace-content h1 {
    max-width: 760px;
    margin: 0 auto 32px;
}

.peace-content h2 {
    max-width: 700px;
    margin: 0 auto 26px;
}

.peace-intro {
    max-width: 650px;
    margin: 0 auto 18px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.85;
}

.peace-highlight {
    margin: 30px auto;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 27px;
    line-height: 1.4;
}

.peace-preparation {
    max-width: 620px;
    margin: 42px auto;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.peace-preparation p {
    margin: 8px 0;
    color: var(--text-soft);
    font-size: 15px;
}

.peace-duration {
    margin: 28px auto;
    color: var(--accent-light);
    font-size: 13px;
    font-weight: 600;
}

.peace-button {
    min-width: 180px;
}

.peace-button-primary {
    background: var(--text);
    color: #090909;
    border: 1px solid var(--text);
}

.peace-button-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
}

.peace-button-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--line-strong);
}

.peace-button-secondary:hover {
    border-color: var(--accent-light);
}

.peace-small-note,
.peace-experience-note {
    max-width: 530px;
    margin: 24px auto 0;
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.7;
}

.peace-experience-content {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.peace-time {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 22px;
    color: var(--text-dim);
    font-size: 12px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.peace-time strong {
    color: var(--text);
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0;
}

.peace-progress {
    width: min(500px, 100%);
    height: 2px;
    margin: 0 auto 55px;
    overflow: hidden;
    background: rgba(255,255,255,.08);
}

.peace-progress-bar {
    width: 0;
    height: 100%;
    background: var(--accent-light);
    transition: width .5s linear;
}

.peace-step-label {
    margin: 0 0 15px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.peace-step-text {
    max-width: 580px;
    margin: 0 auto;
    color: var(--text-soft);
    font-size: 18px;
    line-height: 1.8;
}

.peace-breath {
    width: 190px;
    height: 190px;
    margin: 55px auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.peace-breath-circle {
    width: 112px;
    height: 112px;
    border-radius: 50%;
    border: 1px solid rgba(193,162,126,.55);
    box-shadow: 0 0 70px rgba(168,131,88,.12);
    animation: coaching-breathe 8s ease-in-out infinite;
}

@keyframes coaching-breathe {
    0%, 100% {
        transform: scale(.82);
        opacity: .55;
    }

    50% {
        transform: scale(1.35);
        opacity: 1;
    }
}

.peace-controls {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.peace-final-content {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.peace-back {
    display: inline-block;
    margin-top: 20px;
    color: var(--text-soft);
    font-size: 14px;
    text-decoration: none;
}

.peace-back:hover {
    color: var(--text);
}

.peace-glow,
.peace-ambient-light {
    display: none;
}

.peace-counter {
    margin-top: 8px;
    color: var(--text-dim);
    font-size: 11px;
    letter-spacing: .08em;
}

.peace-counter-divider {
    margin: 0 3px;
}

/* =========================================================
   RESPIRACIÓN CONSCIENTE
========================================================= */

.breathing-main {
    width: 100%;
    border-top: 1px solid var(--line);
}

.breathing-page {
    width: min(920px, calc(100% - 48px));
    margin: 0 auto;
    padding: 70px 0 120px;
}

.breathing-page button,
.breathing-page input {
    font: inherit;
}

.breathing-introduction {
    max-width: 760px;
    margin: 0 0 42px;
}

.breathing-introduction p,
.breathing-screen-introduction p {
    margin: 0 0 14px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.breathing-introduction p:last-child,
.breathing-screen-introduction p:last-child {
    margin-bottom: 0;
}

.breathing-note {
    color: var(--text-dim) !important;
    font-size: 14px !important;
}

.breathing-navigation {
    min-height: 42px;
    margin-bottom: 22px;
}

.breathing-back {
    display: none;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-weight: 600;
    cursor: pointer;
}

.breathing-back:hover,
.breathing-back:focus-visible {
    color: var(--text);
}

.breathing-screen {
    display: none;
    max-width: 760px;
}

.breathing-screen.is-visible {
    display: block;
    animation: breathing-fade-in .3s ease;
}

@keyframes breathing-fade-in {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.breathing-screen-introduction {
    margin-bottom: 30px;
}

.breathing-screen h2,
.breathing-panel h2,
.breathing-result h2 {
    margin-bottom: 18px;
    font-size: clamp(34px, 4.5vw, 52px);
}

.breathing-panel,
.breathing-result {
    margin-bottom: 24px;
    padding: 0 0 26px;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.breathing-panel p,
.breathing-result p {
    margin: 0 0 13px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

.breathing-panel p:last-child,
.breathing-result p:last-child {
    margin-bottom: 0;
}

.breathing-option {
    display: flex;
    align-items: flex-start;
    width: 100%;
    min-height: 86px;
    margin-bottom: 12px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
}

.breathing-option:hover,
.breathing-option:focus-visible {
    transform: translateY(-2px);
    background: var(--surface-soft);
    border-color: var(--line-strong);
    outline: none;
}

.breathing-option-label {
    display: block;
    margin-bottom: 5px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.2;
}

.breathing-option-description {
    display: block;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.55;
}

.breathing-full-button {
    width: 100%;
}

.breathing-stage {
    padding: 45px 10px 30px;
    text-align: center;
}

.breathing-orb {
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
    border: 1px solid rgba(193,162,126,.55);
    border-radius: 50%;
    background: transparent;
    box-shadow: 0 0 70px rgba(168,131,88,.12);
    transform: scale(.85);
}

.breathing-status {
    min-height: 42px;
    margin-bottom: 5px;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
}

.breathing-round {
    min-height: 24px;
    margin-bottom: 16px;
    color: var(--text-dim);
    font-size: 13px;
}

.breathing-label {
    margin: 28px 0 12px;
    color: var(--accent-light);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
}

label[for="nombreRespiracion"] {
    display: block;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 14px;
}

.breathing-input {
    width: 100%;
    min-height: 50px;
    margin-bottom: 8px;
    padding: 12px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
}

.breathing-input::placeholder {
    color: var(--text-dim);
}

.breathing-input:focus {
    border-color: var(--accent-light);
    outline: 2px solid rgba(193,162,126,.18);
}

.breathing-anchor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.breathing-anchor {
    min-height: 50px;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text-soft);
    font-weight: 600;
    cursor: pointer;
}

.breathing-anchor:hover,
.breathing-anchor:focus-visible {
    border-color: var(--line-strong);
    color: var(--text);
    outline: none;
}

.breathing-anchor.is-selected {
    border-color: var(--accent-light);
    background: rgba(168,131,88,.12);
    color: var(--text);
}

.breathing-variant {
    margin-bottom: 12px;
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.breathing-variant h3 {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 23px;
}

.breathing-variant p {
    margin: 0;
    color: var(--text-soft);
    font-size: 15px;
    line-height: 1.6;
}

.breathing-variant .button {
    margin-top: 18px;
}

.breathing-credit {
    max-width: 760px;
    margin-top: 46px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
    text-align: left;
}

.breathing-credit p {
    margin: 0;
    color: var(--text-dim);
    font-size: 13px;
    font-style: italic;
    line-height: 1.65;
}

/* FOOTER */

.site-footer {
    border-top: 1px solid var(--line);
    background: #050505;
}

.footer-inner {
    width: min(var(--max-width), calc(100% - 48px));
    margin: auto;
    padding: 48px 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
}

.footer-brand,
.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-brand strong {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 400;
}

.footer-brand span,
.footer-contact span {
    color: var(--text-dim);
    font-size: 13px;
}

.footer-contact a {
    color: var(--text-soft);
    text-decoration: none;
    font-weight: 600;
}

.footer-contact a:hover {
    color: var(--text);
}

/* TABLET */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 40px;
        margin-top: 45px;
    }

    .hero-photo {
        order: -1;
    }

    .hero-photo img {
        aspect-ratio: 16 / 10;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* MÓVIL */

@media (max-width: 600px) {
    .logo-wrap {
        padding: 24px 16px 16px;
    }

    .site-logo {
        width: 290px;
    }

    .main-nav {
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-left: 10px;
        padding-right: 10px;
        scrollbar-width: none;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav a {
        flex: 0 0 auto;
        padding: 10px 12px;
        font-size: 13px;
    }

    .hero,
    .about-section,
    .peace-screen,
    .page-intro,
    .breathing-page {
        width: calc(100% - 28px);
    }

    .hero {
        margin-top: 28px;
        margin-bottom: 70px;
    }

    h1 {
        font-size: 52px;
    }

    h2 {
        font-size: 39px;
    }

    .hero-description,
    .page-intro-text {
        font-size: 16px;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .button-main {
        width: 100%;
    }

    .hero-photo img {
        aspect-ratio: 1 / 1;
    }

    .about-section {
        padding: 70px 0 85px;
    }

    .about-copy {
        font-size: 16px;
    }

    .page-intro {
        margin-top: 55px;
        margin-bottom: 55px;
    }

    .peace-screen {
        padding: 60px 0 80px;
    }

    .peace-intro {
        font-size: 16px;
    }

    .peace-highlight {
        font-size: 24px;
    }

    .peace-preparation {
        margin: 34px auto;
        padding: 25px 0;
    }

    .peace-breath {
        width: 160px;
        height: 160px;
        margin: 42px auto;
    }

    .peace-breath-circle {
        width: 95px;
        height: 95px;
    }

    .peace-controls {
        flex-direction: column;
    }

    .peace-controls .peace-button {
        width: 100%;
    }

    .breathing-page {
        padding: 50px 0 80px;
    }

    .breathing-introduction p,
    .breathing-screen-introduction p,
    .breathing-panel p,
    .breathing-result p {
        font-size: 16px;
    }

    .breathing-option {
        padding: 19px;
    }

    .breathing-option-label {
        font-size: 19px;
    }

    .breathing-anchor-grid {
        grid-template-columns: 1fr;
    }

    .breathing-stage {
        padding-top: 35px;
    }

    .breathing-orb {
        width: 120px;
        height: 120px;
    }

    .breathing-credit .button {
        width: 100%;
    }

    .footer-inner {
        width: calc(100% - 32px);
        padding: 38px 0;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .breathing-screen.is-visible {
        animation: none;
    }

    .breathing-orb {
        transition: none !important;
    }
}

/* =========================================================
   LOS VALORES
========================================================= */

.values-main{width:100%;border-top:1px solid var(--line);}
.values-page{width:min(980px,calc(100% - 48px));margin:0 auto;padding:70px 0 120px;}
.exercise-area{width:100%;}
.exercise-progress{max-width:760px;margin:0 auto 42px;text-align:center;}
.embudo{display:flex;flex-direction:column;align-items:center;gap:5px;min-height:130px;}
.barra{border-radius:999px;background:rgba(255,255,255,.10);transition:background .2s ease,transform .2s ease,opacity .2s ease;}
.barra.pasada{background:rgba(193,162,126,.35);}
.barra.activa{background:var(--accent-light);box-shadow:0 0 30px rgba(168,131,88,.18);}
.nota{margin:12px 0 0;color:var(--text-dim);font-size:13px;line-height:1.6;}
.centrado{text-align:center;}
.pantalla{display:none;}
.pantalla.visible{display:block;}
.exercise-panel{max-width:860px;margin:0 auto;}
.exercise-title{margin-bottom:20px;font-size:clamp(38px,5vw,58px);}
.exercise-description{max-width:680px;margin:0 auto 34px;color:var(--text-soft);font-size:17px;line-height:1.8;}
.grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;}
.mt-2{margin-top:28px;}
.mb-2{margin-bottom:34px;}
.summary-card{min-height:120px;padding:22px 18px;border:1px solid var(--line);border-radius:16px;background:var(--surface);display:flex;flex-direction:column;justify-content:center;}
.summary-card strong{display:block;margin-bottom:4px;color:var(--text);font-family:Georgia,"Times New Roman",serif;font-size:34px;font-weight:400;}
.summary-card span{color:var(--text-soft);font-size:13px;}
.values-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;margin:28px auto 24px;}
.chip{min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--text-soft);font-size:14px;cursor:pointer;transition:transform .2s ease,background .2s ease,border-color .2s ease,color .2s ease;}
.chip:hover,.chip:focus-visible{transform:translateY(-1px);border-color:var(--line-strong);color:var(--text);outline:none;}
.chip.elegido{background:rgba(168,131,88,.18);border-color:var(--accent-light);color:var(--text);}
.aviso{min-height:24px;margin:12px 0;color:var(--accent-light);text-align:center;font-size:13px;}
.contador{margin:20px 0 0;color:var(--text-soft);text-align:center;font-size:14px;}
.contador.completo{color:var(--accent-light);}
.exercise-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:30px;}
.exercise-actions .button[disabled]{opacity:.35;cursor:not-allowed;transform:none;}
.reflection-list{display:grid;gap:16px;margin-top:30px;}
.reflection-card{padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface);}
.reflection-card h3{margin-bottom:8px;color:var(--text);font-size:25px;}
.reflection-card p{margin:0 0 12px;color:var(--text-soft);font-size:14px;}
.reflection-card textarea{width:100%;min-height:120px;resize:vertical;padding:14px;border:1px solid var(--line);border-radius:12px;background:#0c0c0c;color:var(--text);line-height:1.6;}
.reflection-card textarea:focus{border-color:var(--accent-light);outline:2px solid rgba(193,162,126,.15);}
.result-canvas{display:block;width:min(900px,100%);height:auto;margin:28px auto 0;border-radius:16px;background:#fffdf9;box-shadow:0 20px 60px rgba(0,0,0,.25);}

@media (max-width:700px){
    .values-page{width:calc(100% - 28px);padding:50px 0 80px;}
    .exercise-description{font-size:16px;}
    .grid-3{grid-template-columns:1fr;}
    .summary-card{min-height:100px;}
    .values-grid{justify-content:flex-start;}
    .chip{min-height:42px;padding:0 14px;font-size:13px;}
    .exercise-actions{flex-direction:column;}
    .exercise-actions .button{width:100%;}
}

/* =========================================================
   LA PÉRDIDA
========================================================= */
.loss-page-intro{margin-bottom:60px;}
.loss-routes-section{width:min(var(--max-width),calc(100% - 48px));margin:0 auto;padding:70px 0 120px;border-top:1px solid var(--line);}
.loss-routes-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;}
.loss-route-card{position:relative;display:flex;flex-direction:column;min-height:250px;padding:32px;border:1px solid var(--line);border-radius:18px;background:var(--surface);color:var(--text);text-decoration:none;}
.loss-route-active{transition:transform .2s ease,border-color .2s ease,background .2s ease;}
.loss-route-active:hover{transform:translateY(-3px);background:var(--surface-soft);border-color:var(--line-strong);}
.loss-route-status{display:inline-block;align-self:flex-start;margin-bottom:24px;color:var(--accent-light);font-size:11px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;}
.loss-route-card h2{margin:0 0 16px;font-size:30px;line-height:1.15;}
.loss-route-card p{max-width:500px;margin:0;color:var(--text-soft);font-size:15px;line-height:1.7;}
.loss-route-arrow{margin-top:auto;padding-top:30px;color:var(--accent-light);font-size:24px;}
.loss-route-pending{opacity:.45;}

/* LA PÉRDIDA · VIDA HUMANA */
.loss-human-body{background:radial-gradient(circle at 50% 28%,rgba(168,131,88,.055),transparent 34%),var(--bg);}
.loss-human-main{min-height:700px;}
.loss-human-screen{display:none;width:min(900px,calc(100% - 48px));margin:0 auto;padding:85px 0 120px;}
.loss-human-screen-active{display:block;}
.loss-human-content{width:100%;max-width:760px;margin:0 auto;text-align:center;}
.loss-human-content h1{max-width:760px;margin-left:auto;margin-right:auto;}
.loss-human-intro-copy{max-width:600px;margin:0 auto 44px;}
.loss-human-intro-copy p{margin:0 0 18px;color:var(--text-soft);font-size:17px;line-height:1.8;}
.loss-human-intro-copy p:first-child{color:var(--text);font-family:Georgia,"Times New Roman",serif;font-size:24px;}
.loss-player{width:min(760px,100%);margin:0 auto;padding:24px;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:22px;align-items:center;border:1px solid var(--line);border-radius:22px;background:rgba(17,17,17,.84);backdrop-filter:blur(8px);}
.loss-play-button{width:72px;height:72px;flex:0 0 auto;border:1px solid var(--accent-light);border-radius:50%;background:transparent;color:var(--text);font-size:25px;line-height:1;cursor:pointer;transition:transform .2s ease,background .2s ease,border-color .2s ease;}
.loss-play-button:hover,.loss-play-button:focus-visible{transform:scale(1.03);background:rgba(168,131,88,.10);outline:none;}
.loss-player-main{min-width:0;}
.loss-progress,.loss-volume{appearance:none;-webkit-appearance:none;width:100%;height:4px;border-radius:999px;background:rgba(255,255,255,.10);outline:none;}
.loss-progress::-webkit-slider-thumb,.loss-volume::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:16px;height:16px;border:0;border-radius:50%;background:var(--accent-light);cursor:pointer;}
.loss-progress::-moz-range-thumb,.loss-volume::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:var(--accent-light);cursor:pointer;}
.loss-player-meta{margin-top:10px;display:flex;justify-content:space-between;gap:20px;color:var(--text-dim);font-size:12px;font-variant-numeric:tabular-nums;}
.loss-volume-wrap{width:120px;display:flex;align-items:center;gap:9px;}
.loss-volume-button{width:34px;height:34px;padding:0;border:0;background:transparent;color:var(--text-soft);font-size:18px;cursor:pointer;}
.loss-volume{height:3px;}
.loss-volume::-webkit-slider-thumb{width:12px;height:12px;}
.loss-volume::-moz-range-thumb{width:12px;height:12px;}
.loss-human-small-note{margin:24px auto 0;color:var(--text-dim);font-size:13px;}
.loss-player-status{min-height:22px;margin:12px auto 0;color:var(--accent-light);font-size:12px;}
.loss-human-final-content{min-height:520px;display:flex;flex-direction:column;justify-content:center;align-items:center;}
.loss-human-final-content h2{max-width:650px;}
.loss-human-final-content p{max-width:560px;margin:0 auto 32px;color:var(--text-soft);font-size:17px;line-height:1.8;}
.loss-human-footer .footer-contact{max-width:520px;text-align:right;}

@media (max-width:800px){
  .loss-routes-list{grid-template-columns:1fr;}
  .loss-player{grid-template-columns:auto minmax(0,1fr);}
  .loss-volume-wrap{grid-column:1/-1;width:min(260px,100%);justify-self:center;}
}
@media (max-width:600px){
  .loss-routes-section,.loss-human-screen{width:calc(100% - 28px);}
  .loss-routes-section{padding:50px 0 80px;}
  .loss-route-card{min-height:220px;padding:26px;}
  .loss-route-card h2{font-size:27px;}
  .loss-human-screen{padding:60px 0 85px;}
  .loss-human-intro-copy p{font-size:16px;}
  .loss-player{padding:20px;gap:16px;border-radius:18px;}
  .loss-play-button{width:62px;height:62px;font-size:22px;}
  .loss-volume-wrap{display:none;}
  .loss-human-footer .footer-contact{max-width:none;text-align:left;}
}

/* =========================================================
   NOTA GENERAL DE USO
========================================================= */

.coaching-disclaimer {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
    padding: 34px 0 42px;
    text-align: center;
}

.coaching-disclaimer p {
    max-width: 980px;
    margin: 0 auto;
    color: var(--accent-light);
    font-size: 13px;
    line-height: 1.75;
}

@media (max-width: 600px) {
    .coaching-disclaimer {
        width: calc(100% - 28px);
        padding: 28px 0 36px;
    }

    .coaching-disclaimer p {
        font-size: 12px;
    }
}


/* =========================================================
   ADMINISTRACIÓN · HERRAMIENTAS
========================================================= */

.admin-login-shell,
.admin-shell {
    width: min(var(--max-width), calc(100% - 48px));
    margin: 0 auto;
}

.admin-login-shell {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 0;
}

.access-card {
    width: min(520px, 100%);
    padding: 38px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: 0 24px 70px rgba(0,0,0,.28);
}

.access-card h1 {
    margin-bottom: 28px;
    font-size: clamp(46px, 7vw, 68px);
}

.access-form {
    display: grid;
    gap: 18px;
}

.access-form label,
.admin-create-form label {
    display: grid;
    gap: 8px;
    color: var(--text-soft);
    font-size: 13px;
    font-weight: 600;
}

.access-form input,
.admin-create-form input,
.admin-create-form select,
.admin-row-form input,
.admin-row-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 11px;
    background: #0c0c0c;
    color: var(--text);
    outline: none;
}

.access-form input:focus,
.admin-create-form input:focus,
.admin-create-form select:focus,
.admin-row-form input:focus,
.admin-row-form select:focus {
    border-color: var(--accent-light);
    box-shadow: 0 0 0 3px rgba(193,162,126,.10);
}

.access-message {
    margin: 0 0 24px;
    padding: 14px 16px;
    border: 1px solid rgba(193,162,126,.28);
    border-radius: 12px;
    background: rgba(168,131,88,.09);
    color: var(--accent-light);
    font-size: 14px;
}

.nav-inline-form {
    margin: 0;
    display: inline-flex;
}

.nav-inline-form button {
    min-height: 38px;
    padding: 8px 14px;
    border: 0;
    background: transparent;
    color: var(--text-soft);
    font-size: 14px;
    cursor: pointer;
}

.nav-inline-form button:hover,
.nav-inline-form button:focus-visible {
    color: var(--text);
    outline: none;
}

.admin-shell {
    padding: 72px 0 120px;
}

.admin-head {
    max-width: 850px;
    margin-bottom: 50px;
}

.admin-head h1 {
    margin-bottom: 22px;
    font-size: clamp(50px, 7vw, 78px);
}

.admin-head > p:last-child {
    max-width: 720px;
    margin: 0;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.admin-code-box {
    margin: 0 0 30px;
    padding: 22px 24px;
    border: 1px solid rgba(193,162,126,.30);
    border-radius: 16px;
    background: rgba(168,131,88,.09);
    color: var(--text);
}

.admin-code-box strong {
    display: block;
    margin-bottom: 4px;
    color: var(--accent-light);
    font-family: Georgia, \"Times New Roman\", serif;
    font-size: 24px;
    font-weight: 400;
}

.admin-code-box span {
    color: var(--text-soft);
    font-size: 14px;
}

.admin-panel {
    margin-top: 28px;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.admin-panel h2 {
    margin-bottom: 28px;
    font-size: clamp(34px, 4vw, 48px);
}

.admin-create-form {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(120px, .6fr) minmax(130px, .7fr) minmax(150px, .8fr) auto;
    gap: 14px;
    align-items: end;
}

.admin-create-form .button {
    min-width: 150px;
    min-height: 46px;
}

.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #0c0c0c;
}

.admin-table {
    width: 100%;
    min-width: 860px;
    border-collapse: collapse;
    color: var(--text);
    font-size: 14px;
}

.admin-table th,
.admin-table td {
    padding: 15px 16px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
}

.admin-table th {
    color: var(--accent-light);
    background: rgba(255,255,255,.02);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table tbody tr:hover {
    background: rgba(255,255,255,.018);
}

.admin-row-form {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 3px 7px 3px 0;
}

.admin-row-form input[type=\"number\"] {
    width: 70px;
}

.admin-row-form select {
    width: auto;
    min-width: 98px;
}

.admin-row-form button,
.admin-table td > form button {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: transparent;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.admin-row-form button:hover,
.admin-table td > form button:hover {
    border-color: var(--accent-light);
    background: rgba(168,131,88,.10);
}

.admin-table td > form {
    margin: 0;
}

.admin-table td > form:not(.admin-row-form) {
    display: inline-flex;
}

.admin-table strong {
    color: var(--accent-light);
}

@media (max-width: 980px) {
    .admin-create-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-create-form .button {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .admin-login-shell,
    .admin-shell {
        width: calc(100% - 28px);
    }

    .admin-login-shell {
        padding: 42px 0;
    }

    .access-card {
        padding: 26px 20px;
        border-radius: 18px;
    }

    .access-card h1 {
        font-size: 46px;
    }

    .admin-shell {
        padding: 50px 0 80px;
    }

    .admin-head {
        margin-bottom: 34px;
    }

    .admin-head h1 {
        font-size: 50px;
    }

    .admin-head > p:last-child {
        font-size: 16px;
    }

    .admin-panel {
        padding: 22px 18px;
        border-radius: 16px;
    }

    .admin-panel h2 {
        font-size: 36px;
    }

    .admin-create-form {
        grid-template-columns: 1fr;
    }

    .admin-create-form .button {
        width: 100%;
    }

    .admin-table-wrap {
        margin-right: 0;
        -webkit-overflow-scrolling: touch;
    }

    .admin-row-form {
        display: flex;
        min-width: 430px;
    }
}
