/* ============================================================
   IMHOTEP.OM — public/css/app.css
   Guardar en: /home/osiris/imhotep.osirismontes.com/public/css/app.css
   Estilos del app (sidebar, topbar, módulos internos)
   Se carga SOLO en páginas protegidas (is-app)
   ============================================================ */

/* ── Layout principal ────────────────────────────────────── */
.app-wrap {
    display: flex;
    height: 100dvh;
    overflow: hidden;
}

.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--negro);
}

.app-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.6rem 2rem 3rem;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar {
    width: 220px;
    flex-shrink: 0;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(92, 206, 89, .1);
    height: 100dvh;
    overflow-y: auto;
    transition: transform .3s ease;
    z-index: 50;
}

.sb-logo {
    padding: 1.4rem 1.3rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    flex-shrink: 0;
}

.sb-brand {
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 3px;
    color: var(--verde);
    text-shadow: 0 0 20px var(--verde-glow);
    text-decoration: none;
    display: block;
}

.sb-brand span {
    color: var(--blanco);
    font-weight: 300;
}

.sb-brand:hover {
    opacity: 1;
}

.sb-role {
    font-size: .62rem;
    color: rgba(255, 255, 255, .25);
    margin-top: .2rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

/* Nav items */
.sb-nav {
    flex: 1;
    padding: .7rem .6rem;
    overflow-y: auto;
}

.sb-item {
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .6rem .85rem;
    border-radius: 8px;
    margin-bottom: .15rem;
    background: transparent;
    border: 1px solid transparent;
    color: rgba(255, 255, 255, .4);
    font-size: .83rem;
    font-weight: 400;
    text-decoration: none;
    transition: all .15s ease;
    letter-spacing: .02em;
}

.sb-item:hover {
    color: rgba(255, 255, 255, .75);
    background: rgba(255, 255, 255, .04);
    opacity: 1;
}

.sb-item.active {
    background: rgba(92, 206, 89, .1);
    border-color: rgba(92, 206, 89, .2);
    color: var(--verde);
    font-weight: 700;
}

.sb-icon {
    width: 18px;
    text-align: center;
    font-size: 1rem;
    flex-shrink: 0;
}

/* User footer */
.sb-footer {
    padding: .9rem 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    gap: .6rem;
    flex-shrink: 0;
}

.sb-user {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    text-decoration: none;
    min-width: 0;
}

.sb-user:hover {
    opacity: .8;
}

.sb-user-info {
    min-width: 0;
}

.sb-user-info strong {
    display: block;
    font-size: .8rem;
    color: var(--blanco);
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sb-user-info span {
    font-size: .68rem;
    color: var(--verde);
    opacity: .7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.sb-logout {
    background: none;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 6px;
    color: rgba(255, 255, 255, .35);
    font-size: .9rem;
    padding: .3rem .5rem;
    cursor: pointer;
    text-decoration: none;
    transition: all .2s;
    flex-shrink: 0;
    line-height: 1;
}

.sb-logout:hover {
    border-color: rgba(226, 90, 90, .4);
    color: #f09090;
    opacity: 1;
}

/* Sidebar móvil */
@media (max-width: 900px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        transform: translateX(-100%);
        z-index: 200;
        box-shadow: 8px 0 30px rgba(0, 0, 0, .5);
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .app-content {
        padding: 1.2rem 1.2rem 3rem;
    }
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
    height: 58px;
    flex-shrink: 0;
    background: var(--negro-claro);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    padding: 0 1.5rem;
    gap: 1rem;
}

.topbar-menu {
    background: none;
    border: none;
    color: rgba(255, 255, 255, .5);
    font-size: 1.1rem;
    cursor: pointer;
    padding: .3rem;
    display: none;
}

@media (max-width: 900px) {
    .topbar-menu {
        display: block;
    }
}

.topbar-title {
    font-weight: 900;
    font-size: .88rem;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: .1em;
    flex: 1;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: .75rem;
}

/* Badges de suscripción */
.sub-badge {
    display: flex;
    align-items: center;
    gap: .35rem;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .28rem .75rem;
    border-radius: 20px;
}

.sub-badge.active {
    background: rgba(92, 206, 89, .1);
    color: var(--verde);
    border: 1px solid rgba(92, 206, 89, .2);
}

.sub-badge.trial {
    background: rgba(226, 180, 90, .1);
    color: #e2b45a;
    border: 1px solid rgba(226, 180, 90, .2);
}

.sub-badge.admin {
    background: rgba(92, 206, 89, .15);
    color: var(--verde);
    border: 1px solid rgba(92, 206, 89, .3);
}

.topbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--verde-border);
    color: var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s;
}

.topbar-avatar:hover {
    border-color: var(--verde);
    opacity: 1;
}

/* ── Avatar genérico ─────────────────────────────────────── */
.patient-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--panel);
    border: 1px solid var(--verde-border);
    color: var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .72rem;
    font-weight: 700;
    flex-shrink: 0;
}

.patient-avatar.sm {
    width: 32px;
    height: 32px;
    font-size: .68rem;
}

/* ── Stats row ───────────────────────────────────────────── */
.stats-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.3rem;
}

.stat-card {
    flex: 1;
    min-width: 150px;
    background: rgba(17, 17, 17, .7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    padding: 1.3rem 1.5rem;
    transition: border-color .3s;
}

.stat-card:hover {
    border-color: var(--verde-border);
}

.stat-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.stat-label {
    font-size: .65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .35);
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .4rem;
}

.stat-value {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--blanco);
    line-height: 1;
}

.stat-sub {
    font-size: .72rem;
    color: var(--verde);
    margin-top: .3rem;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(92, 206, 89, .1);
    border: 1px solid var(--verde-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ── Dashboard grid ──────────────────────────────────────── */
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.3rem;
}

@media (max-width: 900px) {
    .dash-grid {
        grid-template-columns: 1fr;
    }
}

.dash-card {
    background: rgba(17, 17, 17, .7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    overflow: hidden;
}

.dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
    font-size: .78rem;
    font-weight: 700;
    color: var(--blanco);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.dash-link {
    font-size: .72rem;
    color: var(--verde);
    text-decoration: none;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
}

.dash-link:hover {
    opacity: .8;
}

/* ── Agenda rows ─────────────────────────────────────────── */
.agenda-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .85rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: background .15s;
}

.agenda-row:last-child {
    border-bottom: none;
}

.agenda-row.now {
    background: rgba(92, 206, 89, .05);
}

.agenda-row.done {
    opacity: .4;
}

.agenda-time {
    width: 48px;
    text-align: right;
    flex-shrink: 0;
}

.agenda-time strong {
    display: block;
    font-size: .85rem;
    color: var(--blanco);
}

.agenda-time span {
    font-size: .68rem;
    color: rgba(255, 255, 255, .35);
}

.agenda-bar {
    width: 3px;
    height: 32px;
    border-radius: 2px;
    background: rgba(255, 255, 255, .12);
    flex-shrink: 0;
}

.agenda-row.now .agenda-bar {
    background: var(--verde);
}

.agenda-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--blanco);
}

.agenda-type {
    font-size: .72rem;
    color: rgba(255, 255, 255, .4);
}

.agenda-info {
    flex: 1;
}

/* ── Patient rows ────────────────────────────────────────── */
.patient-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .8rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.patient-row:last-child {
    border-bottom: none;
}

.patient-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--blanco);
}

.patient-email {
    font-size: .72rem;
    color: rgba(255, 255, 255, .4);
}

.patient-rem {
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
    font-style: italic;
}

.patient-date {
    font-size: .72rem;
    color: rgba(255, 255, 255, .35);
    margin-left: auto;
    white-space: nowrap;
}

/* ── Badges ──────────────────────────────────────────────── */
.badge-now {
    background: var(--verde);
    color: var(--negro);
    font-size: .65rem;
    font-weight: 900;
    padding: .2rem .6rem;
    border-radius: 20px;
    letter-spacing: .08em;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-xs {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    padding: .28rem .65rem;
    font-size: .72rem;
    color: rgba(255, 255, 255, .45);
    cursor: pointer;
    text-decoration: none;
    transition: all .15s;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: 'Montserrat', sans-serif;
}

.btn-xs:hover {
    border-color: var(--verde);
    color: var(--verde);
    opacity: 1;
}

/* ── Trial banner ────────────────────────────────────────── */
.trial-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(226, 180, 90, .08);
    border: 1px solid rgba(226, 180, 90, .25);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    margin-top: 1.3rem;
    font-size: .88rem;
    color: rgba(255, 255, 255, .65);
    flex-wrap: wrap;
}

.trial-banner strong {
    color: #e2b45a;
}

/* ── Tabla genérica ──────────────────────────────────────── */
.table-card {
    background: rgba(17, 17, 17, .7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 12px;
    overflow: hidden;
}

.table-head {
    display: grid;
    grid-template-columns: 1fr 60px 90px 160px 110px 70px;
    padding: .75rem 1.5rem;
    background: rgba(255, 255, 255, .02);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: .65rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .35);
    text-transform: uppercase;
    letter-spacing: .1em;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 60px 90px 160px 110px 70px;
    padding: .9rem 1.5rem;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    transition: background .15s;
}

.table-row:last-child {
    border-bottom: none;
}

.table-row:hover {
    background: rgba(92, 206, 89, .03);
}

.patient-cell {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.italic-cell {
    font-style: italic;
    font-size: .82rem;
    color: rgba(255, 255, 255, .55);
}

/* ── Toolbar ─────────────────────────────────────────────── */
.page-toolbar {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.3rem;
    flex-wrap: wrap;
}

.search-form {
    display: flex;
    gap: .6rem;
    flex: 1;
}

.search-form input {
    flex: 1;
    padding: .65rem 1rem;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 8px;
    font-size: .88rem;
    color: var(--blanco);
    outline: none;
    font-family: 'Montserrat', sans-serif;
    transition: border-color .2s;
}

.search-form input:focus {
    border-color: var(--verde);
}

/* ── Agenda slots ────────────────────────────────────────── */
.agenda-slot {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .55rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    min-height: 52px;
}

.slot-time {
    width: 44px;
    flex-shrink: 0;
    font-size: .75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .35);
}

.agenda-slot.now .slot-time {
    color: var(--verde);
}

.agenda-slot.has-cita {
    background: rgba(92, 206, 89, .03);
}

.slot-cita {
    flex: 1;
}

.slot-name {
    font-size: .88rem;
    font-weight: 600;
    color: var(--blanco);
}

.slot-type {
    font-size: .72rem;
    color: rgba(255, 255, 255, .4);
}

/* ── Tab pills ───────────────────────────────────────────── */
.tab-pills {
    display: flex;
    gap: .4rem;
}

.tab-pill {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 6px;
    padding: .4rem .9rem;
    font-size: .75rem;
    font-weight: 700;
    color: rgba(255, 255, 255, .45);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: all .2s;
}

.tab-pill.active,
.tab-pill:hover {
    background: var(--verde);
    color: var(--negro);
    border-color: var(--verde);
}

/* ── Consulta rows ───────────────────────────────────────── */
.consulta-row {
    display: grid;
    grid-template-columns: 140px 1fr 180px 60px;
    gap: 1rem;
    align-items: center;
    padding: .9rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
}

.consulta-row:last-child {
    border-bottom: none;
}

.consulta-fecha {
    font-size: .78rem;
    color: rgba(255, 255, 255, .5);
}

.consulta-motivo {
    font-size: .88rem;
    color: var(--blanco);
}

.consulta-dx {
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    font-style: italic;
}

/* ── Homeopatía: widget repertorio ──────────────────────── */
.repert-widget {
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--verde-border);
    border-radius: 15px;
    overflow: hidden;
}

.rw-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--verde);
}

.rw-count {
    color: rgba(255, 255, 255, .3);
    font-size: .68rem;
}

.rw-body {
    padding: .8rem;
}

.rw-foot {
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, .06);
}

.rw-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: rgba(92, 206, 89, .12);
    border: 1px solid var(--verde-border);
    color: var(--verde);
    border-radius: 8px;
    padding: .65rem;
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    transition: all .3s;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rw-btn:hover {
    background: var(--verde);
    color: var(--negro);
    opacity: 1;
}

.remedy-row {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem .9rem;
    border-radius: 8px;
    margin-bottom: .35rem;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    cursor: pointer;
    transition: background .2s;
}

.remedy-row.top {
    background: rgba(92, 206, 89, .08);
    border-color: var(--verde-border);
}

.remedy-row:hover {
    background: rgba(255, 255, 255, .05);
}

.r-name {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--blanco);
    flex: 1;
}

.remedy-row.top .r-name {
    color: var(--verde);
}

.r-info {
    font-size: .68rem;
    color: rgba(255, 255, 255, .35);
}

.r-pot {
    background: rgba(92, 206, 89, .15);
    color: var(--verde);
    font-size: .65rem;
    font-weight: 700;
    padding: .18rem .5rem;
    border-radius: 20px;
}

.r-dots {
    display: flex;
    gap: 3px;
}

.r-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
}

.r-dots .dot.on {
    background: var(--verde);
}

/* ── Home / landing dentro del app layout ────────────────── */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 5rem 5%;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    top: 10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(92, 206, 89, .1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    animation: floatOrb 12s infinite alternate ease-in-out;
}

.hero-glyph {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10rem;
    opacity: .04;
    user-select: none;
    z-index: 0;
    animation: floatOrb 9s infinite alternate ease-in-out;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 820px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(92, 206, 89, .08);
    border: 1px solid rgba(92, 206, 89, .2);
    border-radius: 50px;
    padding: .4rem 1.1rem;
    font-size: .72rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--verde);
    margin-bottom: 2rem;
}

.hero-h1 {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
}

.hl {
    color: var(--verde);
}

.hero-serif {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    color: rgba(255, 255, 255, .7);
}

.hero-p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, .6);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    max-width: 560px;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.hero-price {
    display: flex;
    align-items: baseline;
    gap: .5rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.price-big {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--verde);
    line-height: 1;
}

.price-per {
    font-size: .85rem;
    color: rgba(255, 255, 255, .4);
}

.price-trial {
    background: rgba(92, 206, 89, .1);
    border: 1px solid rgba(92, 206, 89, .2);
    border-radius: 20px;
    padding: .25rem .8rem;
    font-size: .72rem;
    font-weight: 700;
    color: var(--verde);
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* Trust bar (landing) */
.trust-bar {
    background: rgba(92, 206, 89, .04);
    border-top: 1px solid rgba(92, 206, 89, .1);
    border-bottom: 1px solid rgba(92, 206, 89, .1);
    padding: 1.1rem;
}

.trust-inner {
    max-width: var(--ancho-max);
    margin: 0 auto;
    width: 90%;
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: rgba(255, 255, 255, .45);
}

.trust-item i {
    font-style: normal;
    color: var(--verde);
}

/* Sections (landing) */
.s-section {
    padding: 6rem 0;
}

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

.s-wrap {
    max-width: var(--ancho-max);
    margin: 0 auto;
    width: 90%;
}

.s-intro {
    font-size: 1rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.8;
    max-width: 540px;
    margin-top: .8rem;
    margin-bottom: 3rem;
}

h2 {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900;
    letter-spacing: -.03em;
}

h2 span {
    color: var(--verde);
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.8rem;
    margin-top: 1rem;
}

.feature-card {
    background: rgba(17, 17, 17, .7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 14px;
    padding: 2.2rem 2rem;
    transition: all .35s ease;
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    border-color: var(--verde-border);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .5);
}

.card-icon {
    width: 50px;
    height: 50px;
    border-radius: 11px;
    background: rgba(92, 206, 89, .1);
    border: 1px solid rgba(92, 206, 89, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 1.3rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 900;
    color: var(--blanco);
    margin-bottom: .8rem;
    position: relative;
    padding-bottom: .8rem;
}

.feature-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--verde);
}

.feature-card p {
    font-size: .9rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.65;
    flex: 1;
}

.card-tag {
    display: inline-block;
    margin-top: 1.1rem;
    background: rgba(92, 206, 89, .1);
    color: var(--verde);
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .22rem .65rem;
    border-radius: 20px;
    border: 1px solid rgba(92, 206, 89, .2);
}

/* Homeo section */
.homeo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    margin-top: 1rem;
    align-items: start;
}

@media (max-width: 900px) {
    .homeo-grid {
        grid-template-columns: 1fr;
    }
}

.homeo-list {
    display: flex;
    flex-direction: column;
    gap: .9rem;
}

.h-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .06);
    border-left: 3px solid var(--verde);
    border-radius: 10px;
    padding: 1.2rem;
    transition: all .25s;
}

.h-item:hover {
    background: rgba(92, 206, 89, .06);
    border-color: rgba(92, 206, 89, .35);
}

.h-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: .1rem;
}

.h-item h4 {
    font-size: .95rem;
    font-weight: 700;
    color: var(--blanco);
    margin-bottom: .25rem;
}

.h-item p {
    font-size: .83rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.6;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, var(--verde), rgba(92, 206, 89, .15));
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr 1fr;
    }

    .steps-grid::before {
        display: none;
    }
}

@media (max-width: 500px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--negro);
    border: 2px solid var(--verde);
    color: var(--verde);
    font-size: 1.3rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.4rem;
    box-shadow: 0 0 20px rgba(92, 206, 89, .2);
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.step p {
    font-size: .85rem;
    color: rgba(255, 255, 255, .5);
    line-height: 1.6;
}

/* Pricing */
.pricing-wrap {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 2rem;
    margin-top: 1rem;
}

@media (max-width: 800px) {
    .pricing-wrap {
        grid-template-columns: 1fr;
    }
}

.plan {
    background: rgba(17, 17, 17, .7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 2.5rem;
    position: relative;
    transition: all .35s;
}

.plan:hover {
    transform: translateY(-4px);
    border-color: rgba(92, 206, 89, .3);
}

.plan.featured {
    background: rgba(10, 26, 15, .95);
    border-color: var(--verde);
    box-shadow: 0 0 40px rgba(92, 206, 89, .1);
}

.plan-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--verde);
    color: var(--negro);
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .28rem 1.1rem;
    border-radius: 20px;
    white-space: nowrap;
}

.plan-name {
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--verde);
    margin-bottom: 1.1rem;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--blanco);
    margin-bottom: .3rem;
}

.plan-period {
    font-size: .78rem;
    color: rgba(255, 255, 255, .35);
    margin-bottom: 1.8rem;
}

.plan-feats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .8rem;
    margin-bottom: 2rem;
}

.plan-feats li {
    display: flex;
    gap: .6rem;
    font-size: .87rem;
    color: rgba(255, 255, 255, .65);
}

.plan-feats li::before {
    content: '→';
    color: var(--verde);
    font-weight: 700;
    flex-shrink: 0;
}

.plan-btn {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: .85rem;
    border-radius: 8px;
    font-size: .88rem;
    font-weight: 900;
    background: rgba(92, 206, 89, .12);
    color: var(--verde);
    border: 2px solid rgba(92, 206, 89, .3);
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    transition: all .25s;
}

.plan-btn:hover {
    background: var(--verde);
    color: var(--negro);
    opacity: 1;
}

.plan-btn.featured-btn {
    background: var(--verde);
    color: var(--negro);
    border-color: var(--verde);
}

.plan-btn.featured-btn:hover {
    background: #6dda6a;
    box-shadow: 0 8px 25px var(--verde-glow);
}

.stripe-note {
    text-align: center;
    margin-top: 1.2rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .3);
}

/* FAQ (landing) */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: .7rem;
    margin-top: 2.5rem;
    max-width: 760px;
}

/* CTA section */
.cta-section {
    background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(92, 206, 89, .07) 0%, transparent 70%);
    padding: 8rem 0;
    text-align: center;
}

.cta-sub {
    margin-top: 1rem;
    font-size: .78rem;
    color: rgba(255, 255, 255, .25);
}

/* Empty state */
.empty-state {
    padding: 3rem;
    text-align: center;
    color: rgba(255, 255, 255, .35);
    font-size: .9rem;
    line-height: 1.8;
}

/* ── Animaciones ─────────────────────────────────────────── */
@keyframes floatOrb {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(-30px, 60px) scale(1.1);
    }
}

/* ── NAV (Landing) ── */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    max-width: var(--ancho-max);
    margin: 0 auto;
    width: 90%;
    flex-wrap: wrap;
    gap: 1.3rem;
    z-index: 100;
    position: relative;
}

.logo-text {
    font-weight: 900;
    font-size: 1.9rem;
    letter-spacing: 3px;
    color: var(--verde);
    text-decoration: none;
    text-shadow: 0 0 20px var(--verde-glow);
    font-family: 'Montserrat', sans-serif;
}

.logo-text span {
    color: var(--blanco);
    font-weight: 900;
}

nav ul {
    list-style: none;
    display: flex;
    text-transform: uppercase;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

nav a {
    color: var(--blanco);
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all .3s ease;
}

nav a:hover {
    color: var(--verde);
    text-shadow: 0 0 10px rgba(92, 206, 89, .3);
}

.nav-cta {
    background: transparent;
    border: 2px solid var(--verde);
    color: var(--verde) !important;
    padding: .55rem 1.4rem;
    border-radius: 8px;
    font-weight: 700 !important;
    transition: all .3s ease !important;
}

.nav-cta:hover {
    background: var(--verde) !important;
    color: var(--negro) !important;
    box-shadow: 0 5px 15px var(--verde-glow);
}

/* Hamburguesa (Móvil) */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 999;
    margin-left: auto;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--blanco);
    transition: .35s ease;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

@media(max-width:1050px) {
    nav ul {
        position: fixed;
        inset: 0;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(17, 17, 17, .92);
        backdrop-filter: blur(16px);
        transform: translateY(-100%);
        transition: transform .45s ease;
        z-index: 998;
    }

    nav ul.active {
        transform: translateY(0);
    }

    nav ul li {
        margin: 1.2rem 0;
    }

    nav ul a {
        font-size: 1.8rem;
    }

    .hamburger {
        display: flex;
    }
}

/* ── FAQ ACCORDION ── */
details {
    background: rgba(17, 17, 17, .7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .3s;
}

details[open] {
    border-color: rgba(92, 206, 89, .3);
}

summary {
    padding: 1.3rem 1.5rem;
    font-weight: 700;
    font-size: .95rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--blanco);
    list-style: none;
    text-transform: uppercase;
    letter-spacing: .04em;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    font-size: 1.4rem;
    color: var(--verde);
}

details[open] summary::after {
    content: '−';
}

.faq-body {
    padding: 0 1.5rem 1.3rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.75;
}

/* ── MODAL (Para crear cuenta) ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0, 0, 0, .85);
    backdrop-filter: blur(6px);
    align-items: center;
    justify-content: center;
}

.modal-overlay.open {
    display: flex;
}

.modal {
    background: var(--negro-claro);
    border: 1px solid rgba(92, 206, 89, .2);
    border-radius: 15px;
    padding: 2.5rem;
    max-width: 440px;
    width: 90%;
}

.modal-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.modal h3 {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--blanco);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: rgba(255, 255, 255, .4);
}

.modal-price {
    background: rgba(92, 206, 89, .06);
    border: 1px solid rgba(92, 206, 89, .15);
    border-radius: 10px;
    padding: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-amount {
    font-size: 3rem;
    font-weight: 900;
    color: var(--verde);
    line-height: 1;
}

.modal-period {
    font-size: .8rem;
    color: rgba(255, 255, 255, .4);
    margin-top: .2rem;
}