/* ==========================================================================
   TURNERO NUXETICA — LANDING PAGE STYLES
   Estándar Institucional: Modo Sepia LiGesIn (NUXÉTICA)
   Cero JS/CSS Inline
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Michroma&family=Outfit:wght@400;500;600;700;800;900&display=swap');

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

:root {
    /* ---- PALETA INSTITUCIONAL SEPIA LIGESIN ---- */
    --bg:             #f5f0e8; /* Fondo principal */
    --bg-card:        #fdf3e0; /* Fondo de tarjetas */
    --bg-alt:         #ede8df; /* Fondo alternativo/superficie */
    --bg-surface:     #fcf8f2;
    --text-primary:   #402203; /* Espresso profundo */
    --text-secondary: #5c3a21; /* Café cálido */
    --text-muted:     #7a6050; /* Taupe atenuado */
    --sepia-primary:  #8b4513; /* SaddleBrown institucional */
    --sepia-hover:    #70360e;
    --border-main:    #c8b89a; /* Borde contenedor */
    --border-light:   #d7c5ae; /* Divisores secundarios */
    
    /* Estados y acentos */
    --accent-glow:    rgba(139, 69, 19, 0.15);
    --color-exito:    #2d6a4f;
    --color-alerta:   #d97706;
    --color-error:    #b91c1c;
    
    /* Gradientes */
    --gradient-sepia: linear-gradient(135deg, #8b4513 0%, #5c3a21 100%);
    --gradient-gold:  linear-gradient(70deg, #8b4513 0%, #b45309 100%);
    
    /* Tipografías */
    --font-main:      'Outfit', system-ui, -apple-system, sans-serif;
    --font-accent:    'Michroma', system-ui, sans-serif;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.animate { animation: fadeIn 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; opacity: 0; }
.delay-1  { animation-delay: 0.2s; }
.delay-2  { animation-delay: 0.4s; }
.delay-3  { animation-delay: 0.6s; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
}

/* ── Navbar ── */
.nav-enterprise {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2.5rem;
    background: rgba(253, 243, 224, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border-main);
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.05);
}
.nav-left   { display: flex; align-items: center; }
.nav-center { flex: 1; text-align: center; }
.nav-right  { display: flex; align-items: center; }

.nav-nuxetica-fallback {
    font-size: 1.5rem;
}
.nav-brand-group {
    display: inline-block;
    text-align: center;
}
.nav-brand-main {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.nav-brand-slogan {
    font-size: .75rem;
    color: var(--text-muted);
    letter-spacing: .08em;
    margin-top: 1px;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.hide-mobile {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .9rem;
    font-weight: 600;
    transition: color .2s ease;
}
.hide-mobile:hover {
    color: var(--sepia-primary);
}
.btn-nav {
    background: var(--gradient-sepia);
    color: #ffffff !important;
    padding: .55rem 1.4rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .85rem;
    text-decoration: none;
    transition: all .25s ease;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.2);
}
.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(139, 69, 19, 0.3);
}

/* ── Hero ── */
.hero-landing {
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(139, 69, 19, 0.12) 0%, #f5f0e8 65%);
    text-align: center;
    padding: 9.5rem 1.5rem 4rem;
    position: relative;
}

.hero-badge {
    background: var(--bg-alt);
    border: 1px solid var(--border-main);
    color: var(--sepia-primary);
    padding: .5rem 1.25rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 700;
    margin-bottom: 1.75rem;
    text-transform: uppercase;
    letter-spacing: .12em;
    display: inline-block;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.06);
}

.hero-title {
    font-family: var(--font-accent);
    font-size: clamp(2rem, 4.5vw, 3.8rem);
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    line-height: 1.2;
    max-width: 900px;
}
.hero-title span {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 2.75rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.65;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3.5rem;
}

.btn-primary-landing {
    background: var(--gradient-sepia);
    color: #ffffff;
    padding: .9rem 2.2rem;
    border-radius: 999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 8px 24px rgba(139, 69, 19, 0.25);
    border: none;
}
.btn-primary-landing:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(139, 69, 19, 0.35);
    color: #ffffff;
}

.btn-secondary-landing {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: .9rem 2.2rem;
    border-radius: 999px;
    border: 1px solid var(--border-main);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    text-decoration: none;
    transition: all .3s ease;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.06);
}
.btn-secondary-landing:hover {
    background: var(--bg-alt);
    border-color: var(--sepia-primary);
    transform: translateY(-2px);
    color: var(--text-primary);
}

/* ── Stats ── */
.stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    padding-top: 3rem;
    border-top: 1px solid var(--border-main);
    width: 100%;
    max-width: 900px;
}
.stat          { text-align: center; }
.stat-num      { font-size: 2.2rem; font-weight: 900; color: var(--sepia-primary); font-family: var(--font-accent); }
.stat-label    { font-size: .75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-top: .2rem; font-weight: 600; }

/* ── Sections ── */
.section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    text-align: center;
    font-family: var(--font-accent);
    font-size: clamp(1.4rem, 3vw, 2.1rem);
    font-weight: 600;
    margin-bottom: .75rem;
    color: var(--text-primary);
}
.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3.5rem;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Feature cards ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.75rem;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: 1.25rem;
    padding: 2rem 1.75rem;
    transition: all .25s ease;
    box-shadow: 0 4px 16px rgba(139, 69, 19, 0.05);
}
.feature-card:hover {
    border-color: var(--sepia-primary);
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(139, 69, 19, 0.12);
}
.feature-icon  { font-size: 2.2rem; margin-bottom: 1rem; }
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; color: var(--text-primary); }
.feature-desc  { font-size: .9rem; color: var(--text-secondary); line-height: 1.6; }
.feature-code  {
    background: var(--bg-alt);
    color: var(--sepia-primary);
    padding: .15rem .45rem;
    border-radius: .35rem;
    font-size: .82rem;
    border: 1px solid var(--border-light);
    font-weight: 600;
}

/* Nichos Grid */
.features-grid-nichos {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.1rem;
}
.feature-card-nicho {
    text-align: center;
    padding: 1.35rem 1rem;
}
.feature-icon-nicho {
    font-size: 2.2rem;
    margin-bottom: .6rem;
}
.feature-title-nicho {
    font-size: .88rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* ── Flow section ── */
.flow-section {
    background: var(--bg-alt);
    border-top:    1px solid var(--border-main);
    border-bottom: 1px solid var(--border-main);
    padding: 5.5rem 2rem;
}
.flow-inner { max-width: 950px; margin: 0 auto; }
.flow-steps {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
    gap: 1.1rem;
    margin-top: 2.75rem;
}
.flow-step {
    text-align: center;
    padding: 1.75rem 1rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.05);
    transition: transform .2s ease;
}
.flow-step:hover {
    transform: translateY(-3px);
    border-color: var(--border-main);
}
.flow-step-num {
    width: 2.6rem; height: 2.6rem;
    background: var(--gradient-sepia);
    color: #ffffff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: .95rem;
    margin: 0 auto .85rem;
    box-shadow: 0 4px 10px rgba(139, 69, 19, 0.25);
}
.flow-step-title { font-size: .9rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.flow-step-desc  { font-size: .8rem; color: var(--text-secondary); line-height: 1.5; }

/* ── CTA ── */
.cta-section { padding: 5.5rem 2rem; text-align: center; }
.cta-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-alt) 100%);
    border: 1px solid var(--border-main);
    border-radius: 2rem;
    padding: 4.5rem 2.5rem;
    max-width: 760px;
    margin: 0 auto;
    box-shadow: 0 16px 40px rgba(139, 69, 19, 0.08);
}
.cta-title {
    font-family: var(--font-accent);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1.1rem;
    color: var(--text-primary);
}
.cta-sub {
    color: var(--text-secondary);
    margin-bottom: 2.2rem;
    font-size: 1.05rem;
    line-height: 1.6;
}
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
.landing-footer {
    padding: 3rem 2rem 2.5rem;
    text-align: center;
    background: var(--bg-alt);
    border-top: 1px solid var(--border-main);
}
.footer-brand-title {
    font-family: var(--font-accent);
    font-size: 1.15rem;
    font-weight: 700;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: .4rem;
}
.footer-brand-sub {
    color: var(--text-muted);
    font-size: .82rem;
    font-weight: 500;
}
.footer-links-group {
    margin-top: 1.25rem;
    display: flex;
    gap: 1.75rem;
    justify-content: center;
    flex-wrap: wrap;
}
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: color .2s ease;
}
.footer-link:hover {
    color: var(--sepia-primary);
}
.footer-copy {
    margin-top: 1.75rem;
    color: var(--text-muted);
    font-size: .78rem;
}

/* ==========================================================================
   HERO DEMO MOCKUP — Simulación animada del dashboard en Modo Sepia
   ========================================================================== */

.hero-demo {
    width: 100%;
    max-width: 920px;
    margin: 3.5rem auto 0;
    perspective: 1200px;
}

.demo-mockup {
    width: 100%;
    box-sizing: border-box;
    background: var(--bg-card);
    border-radius: 1.25rem;
    border: 1px solid var(--border-main);
    overflow: hidden;
    box-shadow: 0 30px 60px -15px rgba(64, 34, 3, 0.15), 0 0 25px rgba(139, 69, 19, 0.05);
    transform: rotateX(6deg);
    transition: transform .5s ease, box-shadow .5s ease;
}
.demo-mockup:hover {
    transform: rotateX(0);
    box-shadow: 0 35px 70px -10px rgba(64, 34, 3, 0.2);
}

/* Barra de browser */
.demo-navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-alt);
    padding: .65rem 1.2rem;
    border-bottom: 1px solid var(--border-light);
}
.demo-dots { display: flex; gap: .4rem; }
.demo-dot  { width: .65rem; height: .65rem; border-radius: 50%; }
.demo-dot.red    { background: #ef4444; }
.demo-dot.yellow { background: #f59e0b; }
.demo-dot.green  { background: #10b981; }
.demo-url {
    font-size: .72rem;
    color: var(--text-secondary);
    background: var(--bg);
    padding: .25rem .85rem;
    border-radius: 999px;
    border: 1px solid var(--border-main);
    font-family: var(--font-accent);
    letter-spacing: .03em;
    font-weight: 500;
}
.demo-spacer { width: 60px; }

/* Cuerpo del dashboard mock */
.demo-body {
    width: 100%;
    box-sizing: border-box;
    padding: 1.5rem;
    background: var(--bg-surface);
}

.demo-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}
.demo-logo-text {
    font-family: var(--font-accent);
    font-size: .95rem;
    font-weight: 700;
    color: var(--text-primary);
}
.demo-header-right { display: flex; align-items: center; gap: .6rem; }
.demo-avatar {
    width: 1.85rem; height: 1.85rem;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 1px solid var(--border-main);
    color: var(--sepia-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: .75rem; font-weight: 800;
}

/* Pills */
.demo-pill {
    font-size: .65rem; font-weight: 700;
    padding: .2rem .65rem; border-radius: 999px;
    letter-spacing: .04em;
}
.demo-pill.green { background: rgba(45, 106, 79, 0.12); color: var(--color-exito); border: 1px solid rgba(45, 106, 79, 0.3); }
.demo-pill.blue  { background: rgba(139, 69, 19, 0.1); color: var(--sepia-primary); border: 1px solid rgba(139, 69, 19, 0.25); }
.demo-pill.small { font-size: .58rem; padding: .15rem .45rem; }

/* Stats row */
.demo-stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
    gap: .75rem;
    margin-bottom: 1.2rem;
}
.demo-stat-box {
    min-width: 0;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: .75rem;
    padding: .85rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.04);
}
.demo-stat-num   { font-size: 1.5rem; font-weight: 900; font-family: var(--font-accent); color: var(--text-primary); line-height: 1; }
.demo-stat-label { font-size: .65rem; color: var(--text-muted); margin-top: .35rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

.sepia-amber { color: var(--color-alerta) !important; }
.sepia-green { color: var(--color-exito) !important; }
.sepia-red   { color: var(--color-error) !important; }

/* Tarjetas de negocios */
.demo-cards-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    box-sizing: border-box;
    gap: .75rem;
    margin-bottom: 1.2rem;
}
.demo-card {
    min-width: 0;
    box-sizing: border-box;
    background: var(--bg-card);
    border: 1px solid var(--border-main);
    border-radius: .75rem;
    padding: 1rem;
    transition: all .25s ease;
    box-shadow: 0 2px 8px rgba(139, 69, 19, 0.04);
}
.demo-card:hover {
    border-color: var(--sepia-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(139, 69, 19, 0.08);
}
.demo-card-icon  { font-size: 1.6rem; margin-bottom: .4rem; }
.demo-card-name  { font-size: .82rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.demo-card-badges { display: flex; gap: .3rem; margin-bottom: .4rem; flex-wrap: wrap; }
.demo-card-stat  { font-size: .7rem; color: var(--text-muted); font-weight: 600; }

/* TV pública simulada */
.demo-tv {
    background: var(--bg-alt);
    border: 1px solid var(--border-main);
    border-radius: .75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(139, 69, 19, 0.05);
}
.demo-tv-label {
    background: rgba(200, 184, 154, 0.25);
    padding: .45rem .85rem;
    font-size: .68rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-light);
    letter-spacing: .05em;
    font-weight: 700;
}
.demo-tv-body {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    padding: 1.25rem 2rem;
    background: var(--bg-card);
}
.demo-tv-ticket { text-align: center; }
.demo-tv-letra  { font-size: 1.3rem; font-weight: 900; color: var(--text-muted); font-family: var(--font-accent); }
.demo-tv-num    { font-size: 3.2rem; font-weight: 900; color: var(--text-primary); font-family: var(--font-accent); line-height: 1; }
.demo-tv-puesto {
    font-size: .78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 700;
}
.demo-tv-puesto-num {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--sepia-primary);
    font-family: var(--font-accent);
    display: block;
    line-height: 1;
    margin-top: .25rem;
}

/* Animaciones */
@keyframes cardIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.demo-card--anim1 { animation: cardIn .5s .8s both; }
.demo-card--anim2 { animation: cardIn .5s 1s both; }
.demo-card--anim3 { animation: cardIn .5s 1.2s both; }

@keyframes ticketPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .7; }
}
.demo-ticket-pulse .demo-tv-num { animation: ticketPulse 2s ease-in-out infinite; }

.demo-counter { transition: all .1s; }

/* ── Responsive ── */
@media (max-width: 768px) {
    .nav-enterprise { padding: .75rem 1.25rem; }
    .hide-mobile    { display: none; }
    .hero-landing   { padding: 7.5rem 1rem 3rem; }
    .section        { padding: 3.5rem 1rem; }
    .flow-section   { padding: 3.5rem 1rem; }
    .features-grid  { grid-template-columns: 1fr; gap: 1rem; }
    .feature-card   { padding: 1.35rem; }
    .flow-steps     { grid-template-columns: 1fr 1fr; }
    .stats          { gap: 1.5rem; }
}

@media (max-width: 600px) {
    .demo-stats-row  { grid-template-columns: repeat(2, 1fr); }
    .demo-cards-row  { grid-template-columns: 1fr; }
    .demo-mockup     { transform: none; }
}
