/* ============================================================
   COMPONENTS — Navbar, Hero, Cards, Botones, Footer, etc.
   ============================================================ */

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition:
        background var(--transition-theme),
        border-color var(--transition-theme),
        box-shadow var(--transition-normal);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--gold-border);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Logo */
.navbar__logo {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    user-select: none;
    transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
    opacity: 0.85;
}

.navbar__logo-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    transition: color var(--transition-theme);
}

.navbar__logo-sub {
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    transition: color var(--transition-theme);
}

/* Links */
.navbar__links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav-link {
    position: relative;
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), background var(--transition-fast);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--gold-subtle);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 24px);
}

.nav-link.active {
    color: var(--gold);
    background: var(--gold-subtle);
}

/* Botón Ingresar */
.nav-link--cta {
    background: var(--electric-subtle) !important;
    color: var(--electric) !important;
    border: 1px solid var(--electric-border);
    padding: var(--space-2) var(--space-4) !important;
    font-weight: 600;
}

.nav-link--cta:hover {
    background: var(--electric) !important;
    color: #fff !important;
    border-color: var(--electric);
    box-shadow: var(--shadow-electric);
}

.nav-link--cta::after {
    display: none;
}

/* Controles del navbar (theme toggle + hamburguesa) */
.navbar__controls {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

/* Theme toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        transform var(--transition-fast);
}

.theme-toggle:hover {
    border-color: var(--gold-border);
    background: var(--gold-subtle);
    color: var(--gold);
    transform: rotate(15deg);
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

/* Hamburger */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    padding: 0;
    background: none;
}

.nav-hamburger span {
    display: block;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform var(--transition-normal), opacity var(--transition-normal), width var(--transition-normal);
    transform-origin: left center;
}

.nav-hamburger.open span:nth-child(1) {
    transform: rotate(38deg) translateY(-2px);
}

.nav-hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-hamburger.open span:nth-child(3) {
    transform: rotate(-38deg) translateY(2px);
}

/* Mobile nav */
.nav-mobile {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--gold-border);
    padding: var(--space-6);
    display: none;
    flex-direction: column;
    gap: var(--space-2);
    z-index: 999;
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    transition: transform var(--transition-normal);
}

.nav-mobile.open {
    transform: translateY(0);
}

.nav-mobile .nav-link {
    font-size: var(--text-base);
    padding: var(--space-3) var(--space-4);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-height);
    background: var(--gradient-hero);
}

/* Fondo decorativo con partículas / líneas */
.hero__backdrop {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.12;
}

.hero__circle--gold {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--gold), transparent 70%);
    top: -100px;
    right: -50px;
    animation: floatY 8s ease-in-out infinite;
}

.hero__circle--electric {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--electric), transparent 70%);
    bottom: -80px;
    left: 10%;
    animation: floatY 10s ease-in-out infinite reverse;
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: var(--space-6);
}

.hero__eyebrow::before {
    content: '';
    width: 32px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

.hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.05;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.hero__title em {
    font-style: italic;
    color: var(--gold);
}

.hero__quote {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--text-secondary);
    border-left: 3px solid var(--gold);
    padding-left: var(--space-6);
    margin-bottom: var(--space-8);
    line-height: 1.5;
}

.hero__quote cite {
    display: block;
    font-size: var(--text-sm);
    font-style: normal;
    color: var(--text-muted);
    margin-top: var(--space-2);
}

.hero__description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin-bottom: var(--space-10);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-xs);
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1.5s both;
}

.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, var(--gold), transparent);
    animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    border: 1px solid transparent;
    transition:
        background var(--transition-normal),
        color var(--transition-normal),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-fast);
    text-decoration: none;
    white-space: nowrap;
    user-select: none;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

/* Gold primary */
.btn-gold {
    background: var(--gradient-gold);
    color: #0a0800;
    border-color: var(--gold);
}

.btn-gold:hover {
    box-shadow: var(--shadow-gold), 0 8px 24px rgba(201, 162, 39, 0.25);
    filter: brightness(1.1);
}

/* Electric */
.btn-electric {
    background: var(--gradient-electric);
    color: #fff;
    border-color: var(--electric);
}

.btn-electric:hover {
    box-shadow: var(--shadow-electric), 0 8px 24px rgba(0, 180, 255, 0.3);
    filter: brightness(1.1);
}

/* Outline gold */
.btn-outline-gold {
    background: transparent;
    color: var(--gold);
    border-color: var(--gold-border);
}

.btn-outline-gold:hover {
    background: var(--gold-subtle);
    border-color: var(--gold);
    box-shadow: var(--shadow-gold);
}

/* Ghost */
.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: var(--border);
}

.btn-ghost:hover {
    background: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--gold-border);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
}

.btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* ============================================================
   SECTION HEADER
   ============================================================ */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto var(--space-16);
}

.section-header__eyebrow {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    margin-bottom: var(--space-3);
}

.section-header__title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 3.5vw, var(--text-4xl));
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.2;
}

.section-header__desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-header--left {
    text-align: left;
    margin-left: 0;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        background var(--transition-theme),
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-normal);
}

.card:hover {
    border-color: var(--gold-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}

/* Card de sección (inicio) */
.section-card {
    padding: var(--space-8);
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.section-card__icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.section-card__icon--gold {
    background: var(--gold-subtle);
    border: 1px solid var(--gold-border);
}

.section-card__icon--electric {
    background: var(--electric-subtle);
    border: 1px solid var(--electric-border);
}

.section-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.section-card__desc {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-card__arrow {
    margin-top: auto;
    color: var(--gold);
    font-size: var(--text-lg);
    transition: transform var(--transition-normal);
}

.section-card:hover .section-card__arrow {
    transform: translateX(6px);
}

/* Card de artículo / reflexión */
.post-card {
    padding: var(--space-6);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.post-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    transition: color var(--transition-fast);
}

.post-card:hover .post-card__title {
    color: var(--gold);
}

.post-card__excerpt {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__read-more {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--electric);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: auto;
    transition: gap var(--transition-fast);
}

.post-card:hover .post-card__read-more {
    gap: var(--space-2);
}

/* Card de proyecto */
.project-card {
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.project-card__status {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-card__status::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.project-card__status--active::before {
    background: #22c55e;
    box-shadow: 0 0 6px #22c55e;
}

.project-card__status--paused::before {
    background: var(--gold);
}

.project-card__status--concept::before {
    background: var(--electric);
}

.project-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
}

.project-card__desc {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
    flex: 1;
}

.project-card__tags {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
}

/* ============================================================
   PAGE HEADER (interior)
   ============================================================ */
.page-header {
    padding-top: calc(var(--nav-height) + var(--space-16));
    padding-bottom: var(--space-16);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.page-header__bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(201, 162, 39, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 162, 39, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.page-header__content {
    position: relative;
    z-index: 1;
}

.page-header__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-6);
}

.page-header__breadcrumb span {
    color: var(--gold);
}

.page-header__breadcrumb a {
    cursor: pointer;
    transition: color var(--transition-fast);
}

.page-header__breadcrumb a:hover {
    color: var(--text-primary);
}

.page-header__title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.page-header__desc {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.8;
}

/* ============================================================
   HUB CARDS (pastoral, profesional)
   ============================================================ */
.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-6);
}

/* ============================================================
   TEXTO / ARTÍCULO INTERIOR
   ============================================================ */
.prose {
    font-size: var(--text-base);
    line-height: 1.85;
    color: var(--text-secondary);
    max-width: 720px;
}

.prose p {
    margin-bottom: var(--space-6);
}

.prose h2 {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-top: var(--space-12);
    margin-bottom: var(--space-4);
}

.prose h3 {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--text-primary);
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
}

.prose blockquote {
    border-left: 3px solid var(--gold);
    padding-left: var(--space-6);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--text-primary);
    margin: var(--space-8) 0;
}

.prose ul {
    list-style: none;
    margin-bottom: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.prose ul li {
    padding-left: var(--space-6);
    position: relative;
    color: var(--text-secondary);
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

/* ============================================================
   FORMULARIO DE LOGIN
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--nav-height);
    padding: var(--space-8);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: var(--space-12) var(--space-10);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg);
}

.login-card__header {
    text-align: center;
    margin-bottom: var(--space-8);
}

.login-card__icon {
    width: 64px;
    height: 64px;
    background: var(--electric-subtle);
    border: 1px solid var(--electric-border);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto var(--space-5);
}

.login-card__title {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.login-card__sub {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.form-group {
    margin-bottom: var(--space-5);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
    letter-spacing: 0.03em;
}

.form-input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    color: var(--text-primary);
    font-size: var(--text-base);
    transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
    outline: none;
}

.form-input:focus {
    border-color: var(--electric);
    box-shadow: 0 0 0 3px var(--electric-subtle);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-input--pin {
    text-align: center;
    font-size: var(--text-3xl);
    font-family: var(--font-mono);
    letter-spacing: 0.5em;
    padding: var(--space-4);
}

.form-submit {
    width: 100%;
    margin-top: var(--space-3);
}

.login-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-6);
    line-height: 1.6;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: var(--space-12) 0 var(--space-6);
    transition: background var(--transition-theme), border-color var(--transition-theme);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-10);
    padding-bottom: var(--space-10);
    border-bottom: 1px solid var(--border);
}

.footer__brand-name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.footer__brand-sub {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: var(--space-4);
}

.footer__brand-desc {
    font-size: var(--text-sm);
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer__col-title {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-primary);
    margin-bottom: var(--space-5);
}

.footer__links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer__link {
    font-size: var(--text-sm);
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--gold);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer__copyright {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.footer__gold-line {
    width: 60px;
    height: 2px;
    background: var(--gradient-gold);
    border-radius: var(--radius-full);
}

/* ============================================================
   FILTROS (Escritos)
   ============================================================ */
.filter-bar {
    display: flex;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.filter-btn {
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        background var(--transition-fast),
        color var(--transition-fast),
        border-color var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--gold-subtle);
    color: var(--gold);
    border-color: var(--gold-border);
}

/* ============================================================
   RESPONSIVE NAVBAR
   ============================================================ */
@media (max-width: 900px) {
    .navbar__links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .nav-mobile {
        display: flex;
    }
}

@media (max-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer__bottom {
        justify-content: center;
        text-align: center;
    }
}

/* ============================================================
   DASHBOARD — LOGIN (mejorado con PIN dots)
   ============================================================ */

/* Input oculto que captura el teclado — visualmente invisible */
.pin-hidden-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
    top: 0;
    left: 0;
}

/* Contenedor de los 6 dots del PIN */
.pin-dots {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
    padding: var(--space-6) 0;
    cursor: text;
}

.pin-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: transparent;
    transition:
        background var(--transition-fast),
        border-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}

/* Dot activo (cursor) */
.pin-dot.active {
    border-color: var(--electric);
    box-shadow: 0 0 8px rgba(0, 180, 255, 0.4);
    animation: pulse 1.2s ease-in-out infinite;
}

/* Dot lleno */
.pin-dot.filled {
    background: var(--electric);
    border-color: var(--electric);
    transform: scale(1.2);
    box-shadow: 0 0 12px rgba(0, 180, 255, 0.5);
}

/* Mensaje de error del login */
.login-error {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    border-radius: var(--radius-md);
    color: #ef4444;
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
}

/* Badge de intentos restantes */
.login-attempts {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    color: #f97316;
    padding: var(--space-2) var(--space-3);
    background: rgba(249, 115, 22, 0.08);
    border: 1px solid rgba(249, 115, 22, 0.2);
    border-radius: var(--radius-full);
    text-align: center;
}

.login-attempts__icon {
    font-size: 0.85em;
}

/* Estado bloqueado */
.login-card--locked .login-card__icon {
    filter: grayscale(1);
    opacity: 0.6;
}

.login-locked-msg {
    text-align: center;
    padding: var(--space-6);
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: var(--text-sm);
}

.login-locked-msg strong {
    color: #ef4444;
}

/* Animación de sacudida */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    15%       { transform: translateX(-10px); }
    30%       { transform: translateX(10px); }
    45%       { transform: translateX(-8px); }
    60%       { transform: translateX(8px); }
    75%       { transform: translateX(-5px); }
    90%       { transform: translateX(5px); }
}

.shake {
    animation: shake 0.55s cubic-bezier(.36,.07,.19,.97) both;
}

/* ============================================================
   DASHBOARD — PANEL DE EMERGENCIA
   ============================================================ */
.dashboard-panel {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-16);
    background: var(--bg-primary);
    transition: background var(--transition-theme);
}

/* Header del panel */
.dashboard-header {
    max-width: 860px;
    margin: 0 auto var(--space-8);
    padding: 0 var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.dashboard-header__warning {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ef4444;
    padding: var(--space-2) var(--space-4);
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-full);
}

.dashboard-header__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    animation: pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 6px #ef4444;
    flex-shrink: 0;
}

.dashboard-header__meta {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-left: auto;
}

/* Botón de logout */
.dashboard-logout-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition:
        color var(--transition-fast),
        border-color var(--transition-fast),
        background var(--transition-fast);
}

.dashboard-logout-btn:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.06);
}

/* Instrucción principal */
.dashboard-instruction {
    max-width: 860px;
    margin: 0 auto var(--space-10);
    padding: var(--space-6) var(--space-8);
    background: rgba(239, 68, 68, 0.07);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-left: 4px solid #ef4444;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.dashboard-instruction .dashboard-instruction__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.dashboard-instruction__text {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.6;
}

/* Sección de contactos */
.dashboard-contacts {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.dashboard-contacts__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-6);
}

.dashboard-contacts__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-5);
}

/* Tarjeta de contacto */
.emergency-contact {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    animation: fadeInUp 0.4s ease both;
    transition:
        border-color var(--transition-normal),
        box-shadow var(--transition-normal),
        transform var(--transition-normal);
}

.emergency-contact:hover {
    border-color: rgba(239, 68, 68, 0.3);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.08);
    transform: translateY(-3px);
}

.emergency-contact__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.emergency-contact__name {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--text-primary);
}

.emergency-contact__badge {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    white-space: nowrap;
}

.emergency-contact__phone {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--electric);
    font-family: monospace;
    letter-spacing: 0.04em;
}

.emergency-contact__instruccion {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

/* Botón de llamada */
.emergency-contact__call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-5);
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: #fff;
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition:
        filter var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    margin-top: auto;
}

.emergency-contact__call:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

/* Footer del panel */
.dashboard-footer {
    max-width: 860px;
    margin: var(--space-12) auto 0;
    padding: var(--space-4) var(--space-6);
    border-top: 1px solid var(--border);
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-align: center;
}

/* ============================================================
   RESPONSIVE — Dashboard
   ============================================================ */
@media (max-width: 768px) {
    .dashboard-header {
        flex-wrap: wrap;
        gap: var(--space-3);
    }

    .dashboard-header__meta {
        margin-left: 0;
        order: 3;
        width: 100%;
    }

    .dashboard-instruction {
        flex-direction: column;
        gap: var(--space-3);
    }

    .dashboard-contacts__grid {
        grid-template-columns: 1fr;
    }

    .pin-dots {
        gap: 10px;
    }

    .pin-dot {
        width: 14px;
        height: 14px;
    }
}