/* ============================================================
   ONLINE8020 — PALETA CORPORATIVA
============================================================ */
:root {
    --bg-light: #050608;
    --bg-white: #0F0F0F;
    --bg-footer: #0A0A0A;

    --text-dark: #F9FAFB;
    --text-medium: #A5B4C3;
    --text-light: #64748B;

    --border-light: rgba(148,163,184,0.25);

    --primary: #FE5000;
    --primary-hover: #D94400;

    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   RESET + BASE
============================================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg-light);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    font-size: 18px;
}

h1, h2, h3 {
    color: var(--text-dark);
    font-weight: 700;
    line-height: 1.2;
}

p {
    color: var(--text-medium);
}

/* ============================================================
   HEADER
============================================================ */
.site-header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 999;
}

.site-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
}

.main-menu a {
    color: var(--text-dark);
    font-weight: 500;
    padding: 12px 18px;
    transition: color .2s ease;
}

.main-menu a:hover {
    color: var(--primary);
}

/* ============================================================
   MENÚ MÓVIL
============================================================ */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: .3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}
.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -4px 0 20px rgba(0,0,0,0.4);
    padding: 80px 30px;
    transition: right .3s ease;
    z-index: 9999;
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-list a {
    font-size: 20px;
    color: var(--text-dark);
    font-weight: 600;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: .3s ease;
    z-index: 9998;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   HERO
============================================================ */
.hero-section {
    padding: 120px 0;
    background: var(--bg-light);
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
}

.hero-title span {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-medium);
}

.hero-media img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ============================================================
   SERVICIOS
============================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    transition: .2s ease;
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================================
   BLOG
============================================================ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.blog-card {
    background: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    transition: .2s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
}

/* ============================================================
   FOOTER
============================================================ */
.site-footer {
    background: var(--bg-footer);
    padding: 50px 0;
    color: var(--text-medium);
}

.footer-copy {
    color: var(--text-dark);
}

/* ============================================================
   CONTACTO
============================================================ */
.page-contacto .o80f {
    padding: 56px 20px;
    background: var(--bg-light);
    color: var(--text-dark);
}

.page-contacto .o80f__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
}

.page-contacto .o80f-form-card,
.page-contacto .o80f-info-card {
    background: rgba(15,23,42,0.85);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 28px;
}

.page-contacto .o80f label {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
}

.page-contacto .o80f input,
.page-contacto .o80f textarea {
    width: 100%;
    padding: 14px;
    border-radius: 10px;
    border: 1px solid var(--border-light);
    background: #0b1120;
    color: var(--text-dark);
}

.page-contacto .o80f-btn {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #fff;
    font-weight: 600;
}

.page-contacto .o80f-btn:hover {
    background: var(--primary-hover);
    border-color: var(--primary-hover);
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-contacto .o80f__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 36px;
    }

    .services-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}
