/* ========================================
   ZXSOFT - Landing Page
   Colores: blanco, gris, acento azul oscuro
   ======================================== */

:root {
    --white: #ffffff;
    --bg: #fafafa;
    --text: #1a1a2e;
    --text-light: #555;
    --text-muted: #888;
    --accent: #1a3a5c;
    --accent-light: #2a5a8c;
    --red: #c0392b;
    --red-light: #e74c3c;
    --border: #e8e8e8;
    --code-bg: #1a1a2e;
    --radius: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    margin: 0;
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
    padding: 0 24px;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* ---- HERO ---- */
.hero {
    padding: 160px 24px 100px;
    text-align: center;
    background: var(--white);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent);
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-light);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.btn-primary {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.1s;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-1px);
}

/* ---- SERVICIOS ---- */
.servicios {
    padding: 80px 24px;
    text-align: center;
    background: var(--bg);
}

.servicios h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-sub {
    color: var(--text-light);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    max-width: 800px;
    margin: 0 auto;
}

.servicio-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px 32px;
    text-decoration: none;
    color: var(--text);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.servicio-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

.servicio-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.servicio-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.servicio-card p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* ---- DETALLE (Desarrollo / Seguridad) ---- */
.detalle {
    padding: 100px 24px;
}

.detalle-alt {
    background: var(--bg);
}

.detalle-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.detalle-reverse {
    direction: rtl;
}

.detalle-reverse > * {
    direction: ltr;
}

.tag {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(26,58,92,0.08);
    color: var(--accent);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.tag-red {
    background: rgba(192,57,43,0.08);
    color: var(--red);
}

.detalle-texto h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.2;
}

.detalle-texto p {
    color: var(--text-light);
    margin-bottom: 24px;
    line-height: 1.7;
}

.detalle-lista {
    list-style: none;
    padding: 0;
}

.detalle-lista li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--text-light);
    font-size: 0.95rem;
}

.detalle-lista li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.detalle-alt .detalle-lista li::before {
    background: var(--red);
}

/* ---- CODE BLOCKS ---- */
.code-block, .terminal-block {
    background: var(--code-bg);
    border-radius: var(--radius);
    padding: 24px;
    overflow: hidden;
}

.code-dots {
    display: flex;
    gap: 6px;
    margin-bottom: 16px;
}

.code-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #444;
}

.code-dots span:first-child { background: #e74c3c; }
.code-dots span:nth-child(2) { background: #f1c40f; }
.code-dots span:nth-child(3) { background: #2ecc71; }

pre {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.7;
}

code {
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    color: #ccc;
}

.kw { color: #c792ea; }
.cl { color: #82aaff; }
.fn { color: #ffcb6b; }
.prompt { color: #82aaff; }
.ok { color: #2ecc71; }
.warn { color: #f1c40f; }
.err { color: #e74c3c; }

/* ---- CONTACTO ---- */
.contacto {
    padding: 100px 24px;
    text-align: center;
}

.contacto h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.contacto-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.contacto-form textarea {
    resize: vertical;
}

.contacto-form .btn-primary {
    align-self: flex-start;
    width: 100%;
}

/* ---- FOOTER ---- */
footer {
    background: var(--code-bg);
    color: #ccc;
    padding: 64px 24px 24px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid #333;
}

.footer-brand .logo {
    color: #fff;
    font-size: 1.3rem;
}

.footer-brand .logo span {
    color: #82aaff;
}

.footer-brand p {
    margin-top: 12px;
    font-size: 0.9rem;
    color: #888;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: #555;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }

    .detalle-container,
    .detalle-reverse {
        grid-template-columns: 1fr;
        direction: ltr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        display: none;
    }
}
