/* ============================================
   SYSTEMIS — Corporate Design System
   ============================================ */

:root {
    /* Paleta corporativa */
    --orange: #D9694A;
    --orange-deep: #B8543A;
    --orange-soft: #E8907A;
    --orange-pale: #F5D5C5;
    --cream: #FAF7F2;
    --cream-warm: #F5EDE3;
    --white: #FFFFFF;
    --ink: #1F1410;
    --ink-soft: #4A3A33;
    --ink-mute: #7A6B63;
    --line: rgba(31, 20, 16, 0.08);
    --line-warm: rgba(217, 105, 74, 0.12);

    /* Tipografías */
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', -apple-system, sans-serif;

    /* Sistema espacial */
    --container: 1240px;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Transiciones */
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--cream);
    color: var(--ink);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

::selection { background: var(--orange); color: var(--white); }

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0.035;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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)'/%3E%3C/svg%3E");
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 2;
}

/* ============================================
   NAVIGATION
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line-warm);
    transition: box-shadow 0.3s var(--ease);
}

.nav.scrolled {
    box-shadow: 0 4px 24px rgba(217, 105, 74, 0.06);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    transition: opacity 0.3s var(--ease);
}

.nav-logo:hover { opacity: 0.85; }

.nav-icon {
    width: 38px;
    height: 38px;
    border-radius: 9px;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 21px;
    color: var(--ink);
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 14.5px;
    font-weight: 500;
    color: var(--ink-soft);
    position: relative;
    padding: 6px 0;
    transition: color 0.3s var(--ease);
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 1.5px;
    background: var(--orange);
    transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

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

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
    left: 0;
}

.nav-cta {
    padding: 10px 22px;
    background: var(--ink);
    color: var(--cream);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s var(--ease);
}

.nav-cta:hover {
    background: var(--orange);
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s var(--ease);
    border-radius: 2px;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    padding: 16px 32px 24px;
    gap: 4px;
    border-top: 1px solid var(--line-warm);
}

.mobile-menu a {
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
}

.mobile-menu a.active { color: var(--orange); }

/* ============================================
   PAGE HEADER (interior pages)
   ============================================ */

.page-header {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream) 100%);
    border-bottom: 1px solid var(--line-warm);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -150px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--orange-pale) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
}

.page-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
    color: var(--orange);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.breadcrumb-dot {
    width: 5px;
    height: 5px;
    background: var(--orange);
    border-radius: 50%;
}

.page-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 6vw, 72px);
    line-height: 1.02;
    font-weight: 400;
    letter-spacing: -0.035em;
    color: var(--ink);
    margin-bottom: 24px;
}

.page-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--orange);
}

.page-lead {
    font-size: clamp(17px, 1.4vw, 20px);
    line-height: 1.6;
    color: var(--ink-soft);
    max-width: 640px;
}

/* ============================================
   SECTION HEADER (in-page)
   ============================================ */

.section-header {
    margin-bottom: 64px;
    max-width: 720px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--orange);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-tag.light { color: var(--orange-pale); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(34px, 4.5vw, 56px);
    line-height: 1.06;
    font-weight: 400;
    letter-spacing: -0.03em;
    color: var(--ink);
    margin-bottom: 16px;
}

.section-title em {
    font-style: italic;
    font-weight: 300;
    color: var(--orange);
}

.section-title.light { color: var(--cream); }
.section-title.light em { color: var(--orange-pale); }

.section-desc {
    font-size: 17px;
    color: var(--ink-soft);
    max-width: 560px;
    line-height: 1.65;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 26px;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 100px;
    transition: all 0.4s var(--ease);
    letter-spacing: -0.005em;
    cursor: pointer;
}

.btn-primary {
    background: var(--ink);
    color: var(--cream);
}

.btn-primary:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(217, 105, 74, 0.3);
}

.btn-primary svg { transition: transform 0.4s var(--ease); }
.btn-primary:hover svg { transform: translateX(4px); }

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

.btn-ghost:hover {
    background: var(--ink);
    color: var(--cream);
    transform: translateY(-2px);
}

.btn-light {
    background: var(--cream);
    color: var(--orange-deep);
}

.btn-light:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.btn-outline-light {
    background: transparent;
    color: var(--cream);
    border: 1.5px solid rgba(250, 247, 242, 0.4);
}

.btn-outline-light:hover {
    background: rgba(250, 247, 242, 0.1);
    border-color: var(--cream);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--ink);
    color: var(--cream);
    padding: 72px 0 32px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(250, 247, 242, 0.1);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 320px;
}

.footer-brand-row {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
}

.footer-brand h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.footer-brand p {
    font-size: 14px;
    color: rgba(250, 247, 242, 0.65);
    line-height: 1.6;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    color: var(--orange-soft);
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}

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

.footer-col a {
    font-size: 14px;
    color: rgba(250, 247, 242, 0.7);
    transition: color 0.3s var(--ease);
}

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

.footer-bottom {
    padding-top: 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: rgba(250, 247, 242, 0.5);
}

.footer-legal { display: flex; gap: 12px; align-items: center; }
.footer-legal a { transition: color 0.3s var(--ease); }
.footer-legal a:hover { color: var(--orange-soft); }

/* ============================================
   COMMON UTILITIES
   ============================================ */

.section { padding: 100px 0; }
.section-warm { background: var(--cream-warm); }
.section-dark { background: var(--ink); color: var(--cream); }

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE — shared
   ============================================ */

@media (max-width: 968px) {
    .nav-links, .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .mobile-menu.open { display: flex; }

    .page-header { padding: 130px 0 60px; }
    .section { padding: 70px 0; }
    .section-header { margin-bottom: 48px; }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 540px) {
    .container, .nav-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 3px;
    border-radius: 4px;
}


.hero-icon-wrap,
.hero-icon {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}