:root {
    --bg: #020617;
    --bg-alt: rgba(15, 23, 42, 0.9);
    --primary: #4f8cff;
    --accent: #2dd4bf;
    --text: #e5e7eb;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
@font-face {
    font-family: "Abnes";
    src: url("/css/fonts/AbnesRegular.otf") format("opentype");
    font-weight: normal;
    font-style: normal;
}

.brand-main {
    font-family: "Abnes", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 0.18em;
}

.brand-sub {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
}


body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #1f2937;
}

.nav {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: var(--muted);
}

.nav-links a {
    margin-left: 1.25rem;
    font-size: 0.9rem;
    color: var(--muted);
}

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

main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
}

/* SECCIÓN HERO PARALLAX */
.hero-parallax-wrapper {
    position: relative;
    min-height: 60vh;
    color: var(--text);
    margin-bottom: 3rem;
}

.hero-parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;
    background-image: url("/img/fondoComputacion.jpg");
    /* CAMBIA ESTA RUTA */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    filter: brightness(0.35);
    z-index: -1;
}

@media (max-width: 800px) {
    .hero-parallax-bg {
        background-attachment: scroll;
        /* móvil: mejor rendimiento */
        height: 50vh;
    }
}

.hero-parallax-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 3rem;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.5fr);
    gap: 2.5rem;
}

@media (max-width: 800px) {
    .hero-parallax-content {
        grid-template-columns: 1fr;
        padding-top: 3.2rem;
        padding-bottom: 2.4rem;
    }
}

.hero-panel {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
    border-radius: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.85);
    padding: 1.4rem 1.5rem 1.6rem;
}

.hero-title {
    font-size: clamp(1.9rem, 3vw, 2.4rem);
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.hero-subtitle {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0.75rem 0 1.25rem;
}

.tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    border: 1px solid #4b5563;
    color: var(--muted);
    background: rgba(15, 23, 42, 0.7);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #22d3ee);
    color: #0b1120;
    font-weight: 600;
}

.btn-outline {
    border-color: #4b5563;
    color: var(--muted);
    background: transparent;
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--text);
}

.hero-side {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(2, 6, 23, 0.95));
    border-radius: 1rem;
    border: 1px solid rgba(31, 41, 55, 0.85);
    padding: 1.3rem 1.4rem;
    font-size: 0.9rem;
}

.hero-side h2 {
    font-size: 0.95rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
    color: var(--muted);
}

.hero-list {
    list-style: none;
}

.hero-list li {
    margin-bottom: 0.45rem;
    color: var(--muted);
}

.hero-list strong {
    color: var(--text);
}

section {
    padding: 0 0 0;
    margin-bottom: 2.5rem;
}

section h2 {
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--muted);
    margin-bottom: 1.1rem;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.card {
    background: #020617;
    border-radius: 0.9rem;
    border: 1px solid #1f2937;
    padding: 1rem 1.1rem 1.1rem;
    font-size: 0.9rem;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.card-meta {
    font-size: 0.75rem;
    color: var(--muted);
    margin-bottom: 0.55rem;
}

.pill-row {
    margin-top: 0.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.pill {
    font-size: 0.7rem;
    border-radius: 999px;
    padding: 0.18rem 0.6rem;
    background: #020617;
    border: 1px solid #1f2937;
    color: var(--muted);
}

.list {
    list-style: none;
    padding-left: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.list li {
    margin-bottom: 0.45rem;
}

.contact-box {
    background: #020617;
    border-radius: 0.9rem;
    border: 1px solid #1f2937;
    padding: 1.1rem 1.2rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.contact-row {
    margin-top: 0.5rem;
}

footer {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #1f2937;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

/* === ANIMACIONES GENERALES === */

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease-out,
        transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax suave con el mouse */
.hero-parallax-bg {
    /* Asegúrate de que ya tienes background-image aquí */
    transition: transform 0.15s ease-out;
    will-change: transform;
}

/* Efecto máquina de escribir */
.typewriter {
    position: relative;
    white-space: nowrap;
    overflow: hidden;
}

.typewriter::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e5e7eb;
    animation: cursor-blink 0.8s steps(1) infinite;
}

@keyframes cursor-blink {

    0%,
    50% {
        opacity: 1;
    }

    50.01%,
    100% {
        opacity: 0;
    }
}

/* Micro‑animaciones en botones */
.btn {
    position: relative;
    overflow: hidden;
    transition:
        transform 0.15s ease-out,
        box-shadow 0.15s ease-out,
        background-position 0.3s ease-out;
}

.btn-primary {
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
    background-size: 150% 150%;
    background-position: 0% 50%;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.55);
    background-position: 100% 50%;
}

.btn-outline {
    transition:
        transform 0.15s ease-out,
        border-color 0.15s ease-out,
        background-color 0.15s ease-out,
        color 0.15s ease-out;
}

.btn-outline:hover {
    transform: translateY(-1px);
    background-color: rgba(15, 23, 42, 0.9);
}

/* Hover en cards */
.card {
    transform: translateY(0);
    transition:
        transform 0.2s ease-out,
        box-shadow 0.2s ease-out,
        border-color 0.2s ease-out,
        background 0.2s ease-out;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
    border-color: #334155;
}

/* Animar header al cargar */
header {
    opacity: 0;
    transform: translateY(-10px);
    transition:
        opacity 0.4s ease-out,
        transform 0.4s ease-out;
}

header.ready {
    opacity: 1;
    transform: translateY(0);
}

