/* ==========================================================================
   SitoWebs Hub — Shared stylesheet
   Design system usado tanto en el hub principal como en las landings de apps
   ========================================================================== */

:root {
    /* Paleta principal — dark + coral como acento primario */
    --bg-base: #0A0A0F;
    --bg-elevated: #12121A;
    --bg-card: #16161F;
    --bg-soft: #1E1E28;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);

    --ink: #F4F4F7;
    --ink-soft: #9E9EA8;
    --ink-faded: #6B6B75;
    --ink-muted: #4A4A54;

    /* Acentos — por defecto coral; cada app puede sobreescribirlos */
    --accent: #FF6B4A;
    --accent-deep: #E8502E;
    --accent-soft: rgba(255, 107, 74, 0.15);
    --accent-glow: rgba(255, 107, 74, 0.35);

    --success: #4ADE80;
    --warning: #FACC15;

    /* Tipografía */
    --font-display: 'Fraunces', 'Times New Roman', serif;
    --font-body: 'Inter Tight', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    /* Sizing */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 60px var(--accent-glow);

    /* Easing */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-base);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    font-feature-settings: 'ss01', 'ss02', 'cv01';
}

/* Background effects */
.bg-gradient {
    position: fixed;
    inset: 0;
    z-index: -2;
    background: radial-gradient(ellipse at 20% 0%, var(--accent-soft) 0%, transparent 50%),
                radial-gradient(ellipse at 80% 100%, rgba(80, 70, 200, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.bg-grain {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); font-weight: 500; }
h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h4 { font-size: 1.25rem; font-weight: 600; }

em {
    font-style: italic;
    color: var(--accent);
}

a { color: inherit; text-decoration: none; }

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 120px 0;
    position: relative;
}

.section-small {
    padding: 80px 0;
}

.eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid var(--accent-soft);
    border-radius: 100px;
    background: var(--accent-soft);
}

/* Navbar */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 20px 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 15, 0.6);
    border-bottom: 1px solid transparent;
    transition: all 0.3s var(--ease-out);
}

.nav.scrolled {
    border-bottom-color: var(--border);
    background: rgba(10, 10, 15, 0.85);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a {
    color: var(--ink-soft);
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--ink);
}

@media (max-width: 768px) {
    .nav-links { display: none; }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 24px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s var(--ease-out);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-base);
}

.btn-primary:hover {
    background: var(--accent-deep);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
    background: var(--bg-soft);
    border-color: var(--ink-faded);
}

/* Utility: SVG icons */
.icon {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* Scroll reveal utility */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer — shared across all pages */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

@media (max-width: 900px) {
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 560px) {
    .footer-top { grid-template-columns: 1fr; }
}

.footer-brand {
    font-family: var(--font-display);
    font-size: 1.75rem;
    margin-bottom: 12px;
}

.footer-tagline {
    color: var(--ink-soft);
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h5 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-soft);
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: var(--ink);
    font-size: 0.95rem;
    transition: color 0.2s;
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--ink-faded);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 20px;
}

/* Responsive */
@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .container { padding: 0 20px; }
}
