/* ==========================================================================
   CaribeCode — variables y reset
   ========================================================================== */
:root {
    --bg: #04070d;
    --bg-soft: #0a1420;
    --bg-soft-2: #0d1b2a;
    --border: #16273a;

    --cyan: #22d3ee;
    --cyan-soft: #67e8f9;
    --blue: #3b82f6;

    --text: #f5fbff;
    --text-muted: #93a4b8;

    --font-display: 'Orbitron', 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Segoe UI', sans-serif;

    --container: 1120px;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

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

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(4, 7, 13, 0.75);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

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

.logo-text {
    color: var(--text);
    text-shadow: 0 0 16px rgba(34, 211, 238, 0.55);
}

.logo-text em {
    font-style: normal;
    color: var(--cyan);
}

.logo-img {
    height: 48px;
    width: 48px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 0 18px rgba(34, 211, 238, 0.4);
}

.logo-img--footer {
    height: 64px;
    width: 64px;
    border-radius: 14px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.site-nav a:hover {
    color: var(--cyan);
}

.nav-cta {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--cyan);
    color: var(--cyan) !important;
}

.nav-cta:hover {
    background: rgba(34, 211, 238, 0.1);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(34, 211, 238, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse at center, black 0%, transparent 75%);
}

.hero-glow {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-glow--cyan {
    background: var(--cyan);
    top: -140px;
    left: -120px;
}

.hero-glow--blue {
    background: var(--blue);
    bottom: -160px;
    right: -100px;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--cyan);
    margin: 0 0 16px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 24px;
}

.text-glow {
    color: var(--cyan);
    text-shadow: 0 0 24px rgba(34, 211, 238, 0.65);
}

.hero-lead {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 0 36px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cyan), var(--blue));
    color: #04070d;
    box-shadow: 0 0 28px rgba(34, 211, 238, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 36px rgba(34, 211, 238, 0.55);
}

.btn-ghost {
    border: 1px solid var(--border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

/* ==========================================================================
   Generic sections
   ========================================================================== */
.section {
    padding: 96px 0;
}

.section-alt {
    background: var(--bg-soft);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 700;
    margin: 0 0 16px;
}

.section-lead {
    color: var(--text-muted);
    max-width: 640px;
    font-size: 1.05rem;
    margin: 0;
}

/* ==========================================================================
   Misión / Visión
   ========================================================================== */
.mv-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 8px;
}

.mv-card {
    background: var(--bg-soft-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}

.mv-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 12px;
}

.mv-card h3 {
    font-family: var(--font-display);
    color: var(--cyan);
    margin: 0 0 12px;
}

.mv-card p {
    color: var(--text-muted);
    margin: 0;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 56px;
}

.value-item {
    text-align: center;
    padding: 20px 12px;
}

.value-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
}

.value-item h4 {
    margin: 0 0 8px;
    font-size: 1rem;
}

.value-item p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* ==========================================================================
   Proyectos
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.project-card {
    background: var(--bg-soft-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.project-card:hover {
    border-color: var(--cyan);
    transform: translateY(-3px);
}

.project-media {
    margin: -28px -28px 20px;
    border-radius: var(--radius) var(--radius) 0 0;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-tagline {
    color: var(--cyan-soft);
    font-weight: 600;
    font-size: 0.95rem;
    margin: -6px 0 12px;
}

.project-channels {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid var(--border);
    color: var(--text-muted);
    transition: border-color 0.2s ease, color 0.2s ease;
}

a.channel-badge:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.channel-badge--static {
    cursor: default;
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.project-card-top h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    margin: 0;
}

.badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 999px;
    white-space: nowrap;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.badge-produccion {
    color: var(--cyan);
    border-color: rgba(34, 211, 238, 0.4);
}

.badge-desarrollo {
    color: var(--blue);
    border-color: rgba(59, 130, 246, 0.4);
}

.project-desc {
    color: var(--text-muted);
    margin: 0 0 16px;
}

.project-link {
    font-weight: 600;
    color: var(--cyan);
    font-size: 0.9rem;
}

.project-link:hover {
    text-decoration: underline;
}

.projects-empty {
    margin-top: 40px;
    padding: 48px;
    text-align: center;
    color: var(--text-muted);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
}

/* ==========================================================================
   Contacto
   ========================================================================== */
.contact-inner {
    text-align: center;
}

.contact-inner .section-lead {
    margin-left: auto;
    margin-right: auto;
}

.contact-actions {
    margin-top: 32px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer-logo {
    justify-content: center;
    margin: 0 auto 12px;
}

.footer-tagline {
    color: var(--text-muted);
    margin: 0 0 8px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0;
    opacity: 0.7;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 720px) {
    .nav-toggle {
        display: flex;
    }

    .site-nav {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .site-nav.is-open {
        max-height: 300px;
    }

    .site-nav a {
        width: 100%;
        padding: 16px 24px;
        border-top: 1px solid var(--border);
    }

    .nav-cta {
        border-radius: 0;
        border: none;
        border-top: 1px solid var(--border);
    }

    .section {
        padding: 64px 0;
    }
}
