/* main.css - Sistema de Diseño SaaS Artesanal, Natural y Humanizado | SadminSoft */

:root {
    /* ───────── PALETA CROMÁTICA NATURAL & EQUILIBRADA ───────── */
    --bg-page: #f8fafc;
    --bg-page-alt: #f1f5f9;
    --bg-surface: #ffffff;
    --bg-subtle: #f8fafc;
    
    /* Tipografía y Textos de Alto Confort Visual */
    --text-navy: #0f172a;
    --text-navy-deep: #020617;
    --text-blue: #2563eb;
    --text-blue-dark: #1d4ed8;
    --text-slate: #475569;
    --text-slate-light: #64748b;
    --text-muted: #94a3b8;
    
    /* Acentos de Marca Sobrios */
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --primary-border: #dbeafe;
    
    --accent-amber: #f59e0b;
    --accent-amber-hover: #d97706;
    --accent-green: #10b981;
    --accent-green-hover: #059669;
    --accent-red: #ef4444;
    
    --dark-navy: #0f172a;
    --dark-navy-2: #1e293b;

    /* Bordes y Líneas de Alta Precisión (1px) */
    --border-light: #e2e8f0;
    --border-subtle: rgba(15, 23, 42, 0.08);
    --border-blue: #dbeafe;
    --border-focus: #93c5fd;

    /* Tipografía */
    --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Fraunces', Georgia, serif;

    /* Sombras Multi-Capa Naturales y Orgánicas (Estilo Stripe / Linear) */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
    --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    --shadow-lg: 0 10px 25px -4px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.03);
    --shadow-xl: 0 20px 35px -6px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.05);
    --shadow-win: 0 18px 40px -8px rgba(15, 23, 42, 0.35);
    --shadow-pill: 0 2px 8px rgba(37, 99, 235, 0.06);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: #f8fafc;
    color: var(--text-navy);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    color: var(--text-navy);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.bg-light {
    background-color: #ffffff;
}

.bg-texture {
    position: relative;
    background: 
        radial-gradient(circle at 95% 5%, rgba(37, 99, 235, 0.04), transparent 50%),
        radial-gradient(circle at 5% 95%, rgba(245, 158, 11, 0.03), transparent 50%),
        #f8fafc;
}

/* ───────── ENCABEZADOS DE SECCIÓN REFINADOS ───────── */
.section {
    padding: 90px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}

.section-kicker {
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--border-blue);
    padding: 5px 16px;
    border-radius: 9999px;
    margin-bottom: 16px;
    display: inline-block;
    box-shadow: var(--shadow-xs);
}

.section-title {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text-navy);
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.section-title b, .section-title .highlight {
    color: var(--text-blue);
    font-weight: 850;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-slate);
    line-height: 1.7;
}

/* Grillas */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
}

/* ───────── NAVBAR FROSTED GLASS & NATURAL ───────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    transition: all 0.25s ease;
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.logo-text {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-navy);
}

.logo-text b {
    color: var(--text-blue);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 650;
    color: var(--text-slate);
    transition: color 0.18s ease;
    position: relative;
    padding: 4px 0;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-navy);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--text-blue);
    border-radius: 2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ───────── HERO SECTION HUMANIZADA & EDITORIAL ───────── */
.hero {
    position: relative;
    padding: 135px 24px 75px;
    background: linear-gradient(180deg, #f0f5fd 0%, #edf3fe 50%, #f8fafc 100%);
    color: var(--text-navy);
    overflow: hidden;
    text-align: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 860px;
    height: 480px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, rgba(240, 245, 253, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 880px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Kicker con indicador de estado pulsante sutil */
.hero-kicker-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid rgba(37, 99, 235, 0.18);
    color: #1e40af;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 9999px;
    margin-bottom: 22px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.hero-kicker-pill::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
    display: inline-block;
    animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.85); }
}

.hero-title {
    font-size: clamp(2.35rem, 5.2vw, 3.7rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--text-navy);
    margin-bottom: 20px;
}

.hero-title b, .hero-title .highlight {
    color: var(--text-blue);
    font-weight: 900;
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-slate);
    line-height: 1.72;
    max-width: 740px;
    margin-bottom: 36px;
}

.hero-subtitle b {
    color: var(--text-navy);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 46px;
}

/* Cinta de Estadísticas Limpia */
.hero-cinta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 860px;
    margin-top: 10px;
}

.cinta-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 16px 14px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.cinta-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-focus);
}

.cinta-num {
    font-size: 1.9rem;
    font-weight: 850;
    color: var(--text-navy);
    line-height: 1.1;
    margin-bottom: 4px;
    letter-spacing: -0.03em;
}

.cinta-num span {
    color: var(--text-blue);
    font-weight: 700;
}

.cinta-label {
    font-size: 0.78rem;
    color: var(--text-slate);
    font-weight: 600;
    line-height: 1.35;
}

.hero-stamp-wrapper {
    margin-top: 25px;
}

.sello {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, 0.35);
    background: rgba(255, 255, 255, 0.85);
    color: var(--text-navy);
    font-size: 0.72rem;
    text-transform: uppercase;
    transform: rotate(-7deg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease;
}

.sello:hover {
    transform: rotate(0deg) scale(1.05);
}

.sello b {
    font-size: 0.84rem;
    color: var(--primary);
    line-height: 1.1;
}

.sello span {
    font-size: 0.62rem;
    color: var(--text-slate-light);
    letter-spacing: 0.08em;
}

/* ───────── FOOTER LIMPIO & PROFESIONAL ───────── */
.footer {
    background: var(--dark-navy);
    color: #f8fafc;
    padding: 65px 0 30px;
    border-top: 1px solid #1e293b;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 45px;
}

.footer-brand h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    color: #ffffff;
    letter-spacing: -0.03em;
}

.footer-brand b {
    color: #60a5fa;
}

.footer-brand p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 420px;
}

.footer-col h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 18px;
    font-weight: 750;
}

.footer-col p, .footer-col a {
    color: #94a3b8;
    font-size: 0.88rem;
    margin-bottom: 10px;
    transition: color 0.15s ease;
}

.footer-col a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 25px;
    text-align: center;
    color: #64748b;
    font-size: 0.82rem;
}

/* ───────── BANNER DE HARDWARE EN HOME ───────── */
.hardware-cta-banner {
    background: linear-gradient(135deg, #102244 0%, #173264 60%, #1e3a8a 100%);
    border-radius: 20px;
    padding: 48px;
    color: #ffffff;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
    gap: 35px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hardware-cta-content h2 {
    font-size: 2.2rem;
    color: #ffffff;
    margin-bottom: 14px;
    line-height: 1.2;
}

.hardware-cta-content h2 b {
    color: #60a5fa;
}

.hardware-cta-content p {
    color: #cbd5e1;
    font-size: 1.02rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.hardware-preview-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.hw-preview-badge {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ───────── HEADER PÁGINA HARDWARE (hardware.html) ───────── */
.hardware-header-page {
    padding: 135px 24px 50px;
    background: linear-gradient(180deg, #f0f5fd 0%, #edf3fe 60%, #f8fafc 100%);
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.hardware-header-page h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    color: var(--text-navy);
    margin-bottom: 14px;
    letter-spacing: -0.03em;
}

.hardware-header-page h1 b {
    color: var(--text-blue);
}

.hardware-header-page p {
    font-size: 1.1rem;
    color: var(--text-slate);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Media Queries Responsivas */
@media (max-width: 992px) {
    .hero-title { font-size: 2.8rem; }
    .hero-cinta { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr; gap: 30px; }
    .hardware-cta-banner { grid-template-columns: 1fr; text-align: center; }
    .hardware-preview-badges { justify-content: center; }
}

@media (max-width: 640px) {
    .hero-title { font-size: 2.2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-cinta { grid-template-columns: 1fr; }
    .hero-buttons { flex-direction: column; width: 100%; }
    .hero-buttons .btn { width: 100%; }
    .section { padding: 60px 0; }
    .section-title { font-size: 1.9rem; }
}
