/* =========================================================
   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;
    }
}

/* RELAXATION-COMPLETE-MARKER */
/* =========================================================
   RELAJACIÓN
========================================================= */

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

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

.relaxation-introduction {
    max-width: 760px;
    margin: 0 0 48px;
}

.relaxation-introduction p {
    margin: 0 0 14px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.8;
}

.relaxation-section {
    max-width: 760px;
}

.relaxation-stage {
    min-height: 430px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 50px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.relaxation-title {
    margin-bottom: 20px;
}

.relaxation-description {
    max-width: 560px;
    margin: 0 0 34px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.75;
}

.sos-button {
    width: 140px;
    height: 140px;
    border: 1px solid rgba(193,162,126,.55);
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 0 70px rgba(168,131,88,.12);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.sos-button:hover,
.sos-button:focus-visible {
    transform: scale(1.04);
    border-color: var(--accent-light);
    box-shadow: 0 0 90px rgba(168,131,88,.18);
    outline: none;
}

.relaxation-faded {
    opacity: .12;
    pointer-events: none;
    transition: opacity .6s ease;
}

.relaxation-message {
    display: none;
    max-width: 640px;
    margin-top: 28px;
}

.relaxation-message.visible {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.relaxation-message span {
    display: block;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.18;
}

#botonVolver {
    margin-top: 34px;
}

.hidden {
    display: none !important;
}

@media (max-width: 600px) {
    .relaxation-page {
        width: calc(100% - 28px);
        padding: 50px 0 80px;
    }

    .relaxation-introduction p,
    .relaxation-description {
        font-size: 16px;
    }

    .relaxation-stage {
        min-height: 360px;
        padding: 38px 0;
    }

    .sos-button {
        width: 120px;
        height: 120px;
        font-size: 24px;
    }
}
