:root {
    --color-primary: #077575;
    --color-secondary: #055C5C;
    --color-accent: #7ADFD6;

    /* Apple Palette */
    --color-background-white: #ffffff;
    --color-background-gray: #f5f5f7;
    --color-text-dark: #1d1d1f;
    --color-text-gray: #86868b;
    --color-text-light: #f5f5f7;

    /* Extended palette for article/formaciones pages */
    --color-teal-50: rgba(7, 117, 117, 0.06);
    --color-teal-500: #077575;
    --color-teal-600: #055C5C;
    --color-gray-900: #1d1d1f;

    --font-heading: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro", "Inter", sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro", "Inter", sans-serif;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--color-background-white);
    color: var(--color-text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Typography Base */
h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; letter-spacing: -0.05em; margin: 0; }
a { text-decoration: none; transition: all 0.2s ease; }
ul { list-style: none; }

/* Global Utilities */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.text-center { text-align: center; }

/* Sticky Transparent Navbar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    height: 48px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    z-index: 999;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: #000; letter-spacing: -0.01em;
}
.logo img { height: 18px; }

.nav-links {
    display: flex; gap: 1.5rem; align-items: center;
}
.nav-link { font-size: 12px; color: rgba(0,0,0,0.8); letter-spacing: -.01em; font-weight: 400; }
.nav-link:hover { color: #000; }

.btn-nav { font-size: 12px; background: #000; color: #fff; padding: 4px 12px; border-radius: 980px; font-weight: 500; }
.btn-nav:hover { background: #333; }

/* Hero Section */
.hero {
    padding-top: 48px;
    padding-bottom: 0;
    background-color: var(--color-background-gray);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-inner {
    display: flex;
    align-items: center;
    gap: 56px;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.hero h1 {
    font-size: 60px;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-text-dark);
    margin: 0 0 20px;
}

.hero p.subtitle {
    font-size: 20px;
    line-height: 1.45;
    font-weight: 400;
    letter-spacing: .009em;
    color: var(--color-text-gray);
    max-width: 420px;
    margin: 0 0 36px;
}

.hero-cta { display: flex; justify-content: flex-start; gap: 20px; align-items: center; margin-bottom: 0; }

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    font-size: 17px;
    line-height: 1.17648;
    font-weight: 400;
    letter-spacing: -.022em;
    padding: 12px 22px;
    border-radius: 980px;
    display: inline-block;
}
.btn-primary:hover { background: var(--color-secondary); }

.link-secondary {
    font-size: 17px; font-weight: 400; color: var(--color-primary); display: inline-flex; align-items: center; gap: 6px;
}
.link-secondary:hover { text-decoration: underline; }

/* Smooth Reveal Animations */
.fade-up {
    opacity: 0; transform: translateY(40px);
    animation: fadeUpAnim 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

@keyframes fadeUpAnim {
    to { opacity: 1; transform: translateY(0); }
}

/* Image Showcases */
.hero-image-wrapper {
    position: relative;
    flex: 1;
    max-width: 580px;
    align-self: flex-end;
    padding-top: 60px;
}
.hero-image-wrapper img {
    height: auto;
    width: 100%;
    display: block;
    filter: drop-shadow(0 32px 64px rgba(0,0,0,0.13));
    mask-image: linear-gradient(to bottom, black 62%, transparent 94%);
    -webkit-mask-image: linear-gradient(to bottom, black 62%, transparent 94%);
    opacity: 0.97;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom center;
}
.hero-image-wrapper:hover img {
    transform: scale(1.015) translateY(-6px);
    opacity: 1;
}

/* Sections */
.section-light {
    background-color: var(--color-background-white);
    padding: 140px 0;
}
.section-gray {
    background-color: var(--color-background-gray);
    padding: 140px 0;
}

.section-title {
    font-size: 48px;
    line-height: 1.08349;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    color: var(--color-text-dark);
}

.section-copy {
    font-size: 21px;
    line-height: 1.381;
    font-weight: 400;
    letter-spacing: .011em;
    color: var(--color-text-gray);
    max-width: 70% ;
}

/* Grid Layouts */
.split-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}
@media (min-width: 900px) {
    .split-split { grid-template-columns: 1fr 1fr; gap: 100px; }
}

.feature-list {
    margin-top: 40px; display: flex; flex-direction: column; gap: 24px;
}
.feature-item { margin-bottom: 24px; }
.feature-item h4 { font-size: 19px; font-weight: 600; color: var(--color-text-dark); margin-bottom: 8px; }
.feature-item p { font-size: 17px; color: var(--color-text-gray); line-height: 1.4; }

.visual-block {
    display: flex; justify-content: center; align-items: center;
}
.visual-block img {
    width: 100%;
    height: auto;
    max-width: 650px;
}

/* Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 60px;
}

@media (min-width: 900px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.bento-box {
    background: var(--color-background-gray);
    border-radius: 24px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.3s ease;
}
.bento-box.white {
    background: var(--color-background-white);
    border: 1px solid rgba(0,0,0,0.05);
}
.bento-box:hover {
    transform: scale(1.02);
}

.bento-icon {
    width: 40px; height: 40px; background: rgba(7, 117, 117, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--color-primary);
    margin-bottom: 24px;
}

.bento-box h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.bento-box p { font-size: 17px; color: var(--color-text-gray); line-height: 1.4; }

/* Responsive Overrides */
@media (max-width: 768px) {
    .container { padding: 0 8%; }
    .hero { min-height: auto; padding-top: 80px; }
    .hero-inner { flex-direction: column; gap: 32px; }
    .hero-text { text-align: center; }
    .hero h1 { font-size: 40px; text-align: center; }
    .hero p.subtitle { font-size: 18px; max-width: 100%; text-align: center; }
    .hero-cta { justify-content: center; }
    .hero-image-wrapper { max-width: 100%; padding-top: 0; align-self: auto; }
    .section-title { font-size: 36px; }
    header { height: auto; padding: 12px 0; }
    nav { flex-direction: column; gap: 12px; }
    .nav-links { flex-wrap: wrap; justify-content: center; }
    .hero-image-wrapper { margin-bottom: -50px; }
}

/* Footer */
footer {
    background: var(--color-background-gray);
    padding: 40px 0;
    font-size: 12px;
    color: #86868b;
    border-top: 1px solid rgba(0,0,0,0.1);
}
footer p { margin-bottom: 12px; }

/* Nav active state */
.nav-link.active { color: var(--color-primary); font-weight: 600; }

/* Stats Strip */
.stats-strip {
    background: var(--color-background-white);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 48px 0;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    text-align: center;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: 1fr; gap: 32px; } }
.stat-number {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--color-text-dark);
    line-height: 1;
    margin-bottom: 6px;
}
.stat-label {
    font-size: 15px;
    color: var(--color-text-gray);
    font-weight: 400;
}
.stat-divider {
    width: 1px;
    background: rgba(0,0,0,0.08);
    align-self: center;
    height: 40px;
}

/* CTA Strip — dark */
.cta-strip {
    background: var(--color-text-dark);
    padding: 80px 0;
    text-align: center;
}
.cta-strip h2 {
    font-size: 40px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
}
.cta-strip p {
    font-size: 19px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 36px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}
.btn-primary-dark {
    background: #fff;
    color: var(--color-text-dark);
    font-size: 17px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 980px;
    display: inline-block;
    transition: all 0.2s ease;
}
.btn-primary-dark:hover { background: var(--color-accent); }

/* Article layout (masterclasses) */
.article-header {
    background: var(--color-background-gray);
    padding: 130px 0 60px;
}
.article-content {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 5%;
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-text-dark);
}
.article-content h2 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
    color: var(--color-text-dark);
}
.article-content p { margin-bottom: 24px; }
.article-content ul { padding-left: 0; margin-bottom: 24px; }
.article-content ul li {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    list-style: none;
}
.article-content blockquote {
    background: var(--color-teal-50);
    border-left: 4px solid var(--color-primary);
    padding: 24px 28px;
    border-radius: 12px;
    margin: 32px 0;
    font-style: italic;
    font-size: 17px;
    color: var(--color-text-dark);
}
.article-author {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid rgba(0,0,0,0.08);
}
.author-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--color-primary);
    flex-shrink: 0;
}
.author-name { font-size: 16px; font-weight: 600; color: var(--color-text-dark); }
.author-title { font-size: 13px; color: var(--color-text-gray); margin-top: 2px; }
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 32px;
}
.back-btn:hover { text-decoration: underline; }

/* Home product strip */
.home-strip {
    background: var(--color-background-white);
    padding: 100px 0;
}
.home-products-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}
@media (max-width: 768px) { .home-products-mini { grid-template-columns: 1fr; } }
.home-mini-card {
    border: 1px solid rgba(0,0,0,0.07);
    border-radius: 20px;
    padding: 28px 24px;
    text-decoration: none;
    display: block;
    transition: all 0.25s ease;
    background: var(--color-background-gray);
}
.home-mini-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); background: white; }
.home-mini-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.home-mini-card h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--color-text-dark); margin-bottom: 8px; }
.home-mini-card p { font-size: 14px; color: var(--color-text-gray); line-height: 1.5; margin: 0; }
.home-mini-arrow { font-size: 13px; font-weight: 600; margin-top: 16px; display: flex; align-items: center; gap: 4px; }

/* Masterclass card hover fix */
.masterclass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
    border-color: rgba(0,0,0,0.1) !important;
}
/* ===================== ORBITAL LOGO ===================== */
.orbital-system {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 32px;
    flex-shrink: 0;
}
.orbital-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px dashed rgba(7,117,117,0.25);
}
.orbital-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 46px; height: 46px;
    border-radius: 50%;
    background: white;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 2;
}
.orbital-center img { width: 28px; height: 28px; object-fit: contain; }
.orbital-arm {
    position: absolute;
    top: 50%; left: 50%;
    width: 0; height: 0;
    animation: orbit-spin 12s linear infinite;
}
.orbital-arm:nth-child(3) { animation-delay:  0s; }
.orbital-arm:nth-child(4) { animation-delay: -4s; }
.orbital-arm:nth-child(5) { animation-delay: -8s; }
@keyframes orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
.orbital-satellite {
    position: absolute;
    top: -15px;
    left: 56px;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    animation: orbit-counter 12s linear infinite;
    box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}
@keyframes orbit-counter {
    from { transform: rotate(0deg); }
    to   { transform: rotate(-360deg); }
}
.sat-reading  { background: rgba(59,130,246,0.12);  border: 1.5px solid rgba(59,130,246,0.35); }
.sat-speed    { background: rgba(245,158,11,0.12);   border: 1.5px solid rgba(245,158,11,0.35); }
.sat-neuronal { background: rgba(168,85,247,0.12);   border: 1.5px solid rgba(168,85,247,0.35); }
