:root {
    --bg-body: #050816;
    --bg-card: #0b1020;
    --bg-soft: #111827;
    --accent: #38bdf8;
    --accent-soft: rgba(56, 189, 248, 0.12);
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-soft: #1f2937;
    --radius-lg: 1.25rem;
    --radius-md: 0.75rem;
    --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.55);
    --transition-fast: 0.2s ease-out;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        sans-serif;
    background: radial-gradient(circle at top, #020617 0%, #020617 40%, #020617 100%);
    color: var(--text-main);
}

/* HERO */

.hero {
    padding: 4.5rem 0 3.5rem;
}

.hero__content {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr);
    gap: 3rem;
    align-items: center;
}

.hero__eyebrow {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero__title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    line-height: 1.2;
    margin: 0 0 0.75rem;
}

.hero__title-highlight {
    color: var(--accent);
}

.hero__subtitle {
    color: var(--text-muted);
    font-size: 0.98rem;
    max-width: 36rem;
    margin-bottom: 1.75rem;
}

.hero__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.hero__meta span {
    padding: 0.3rem 0.7rem;
    background: var(--bg-soft);
    border-radius: 999px;
    border: 1px solid var(--border-soft);
}

.hero__profile {
    justify-self: center;
}

.hero__avatar {
    width: 240px;
    height: 240px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid var(--accent-soft);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
}

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

.hero__tag {
    font-size: 0.9rem;
    color: var(--text-muted);
    padding: 0.6rem 0.8rem;
    background: var(--bg-soft);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
}

.top-contact a {
    color: var(--accent);
}

.top-contact a:hover {
    text-decoration: underline;
}

/* BOTONES */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.35rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast),
        transform var(--transition-fast), border-color var(--transition-fast),
        box-shadow var(--transition-fast);
}

.btn--primary {
    background: var(--accent);
    color: #020617;
    box-shadow: 0 12px 30px rgba(56, 189, 248, 0.4);
}

.btn--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(56, 189, 248, 0.55);
}

.btn--outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--border-soft);
}

.btn--outline:hover {
    border-color: var(--accent);
    background: rgba(15, 23, 42, 0.8);
}

/* SECCIONES */

section {
    padding: 3.5rem 0;
}

.section-title {
    font-size: 1.6rem;
    margin: 0 0 0.4rem;
}

.section-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
    max-width: 34rem;
    margin: 0.1rem 0 2.2rem;
}

/* SKILLS */

.skills__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.skill-card {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 1.2rem 1.2rem 1.3rem;
    border: 1px solid var(--border-soft);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.skill-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
}

.skill-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.skill-card p {
    margin: 0 0 0.7rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.skill-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.skill-card li {
    font-size: 0.8rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
}

/* TABS SKILLS */

.skill-tabs .nav-link {
    border-radius: 999px 999px 0 0;
    border: none;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.skill-tabs .nav-link.active {
    background-color: var(--bg-soft);
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
}

.skill-extra-card {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 1rem 1.1rem;
    border: 1px solid var(--border-soft);
    font-size: 0.9rem;
}

.skill-extra-card h4 {
    margin-top: 0;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.skill-extra-card ul {
    padding-left: 1rem;
    margin: 0;
    color: var(--text-muted);
}

/* SERVICIOS */

.services {
    background: radial-gradient(circle at top, #020617 0%, #020617 45%, #020617 100%);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.3rem 1.4rem;
    border: 1px solid var(--border-soft);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast),
        border-color var(--transition-fast);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
    border-color: var(--accent);
}

.service-card h3 {
    margin: 0 0 0.4rem;
    font-size: 1.05rem;
}

.service-card p {
    margin: 0 0 0.55rem;
    font-size: 0.92rem;
    color: var(--text-muted);
}

.service-card__tag {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    color: var(--accent);
}

/* CONTACTO */

.contact__form {
    justify-self: center;
    width: 100%;
    margin-top: 1.4rem;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    padding: 1.5rem 1.4rem 1.6rem;
    border: 1px solid var(--border-soft);
    max-width: 650px;
}

.contact__row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact__field {
    flex: 1 1 200px;
    display: flex;
    flex-direction: column;
    margin-bottom: 0.9rem;
}

.contact__field label {
    font-size: 0.86rem;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
}

.contact__field input,
.contact__field select,
.contact__field textarea {
    background: #020617;
    border-radius: 0.5rem;
    border: 1px solid var(--border-soft);
    padding: 0.55rem 0.7rem;
    font-size: 0.9rem;
    color: var(--text-main);
    outline: none;
}

.contact__field input:focus,
.contact__field select:focus,
.contact__field textarea:focus {
    border-color: var(--accent);
}

/* BOTÓN SCROLL TOP */

.scroll-top-btn {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #020617;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 50;
}

.scroll-top-btn.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    transform: translateY(-3px);
}

/* ANIMACIONES DE APARICIÓN */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

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

/* RESPONSIVE */

@media (max-width: 900px) {
    .hero__content {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .hero__profile {
        justify-self: flex-start;
    }

    .skills__grid,
    .services__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 3rem;
    }

    .hero__buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Texto tipeado (máquina de escribir) */
.hero__subtitle--typed {
    margin-top: -0.4rem;
    font-size: 0.95rem;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.typed-role {
    min-height: 1.2em; /* para que no salte el layout mientras escribe */
    letter-spacing: 0.02em;
}

.typed-cursor {
    font-weight: 600;
    animation: blink-cursor 0.8s steps(2, start) infinite;
}

/* Animación del cursor */
@keyframes blink-cursor {
    0% {
        opacity: 1;
    }
    49% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
    100% {
        opacity: 0;
    }
}

.hero__title {
    /* lo que ya tenga */
    transform-origin: left bottom;
}

/* cuando se combine con .reveal.visible se ve más rico */
.reveal.visible .hero__title {
    transition: transform 0.4s ease-out, opacity 0.4s ease-out;
    transform: translateY(0) scale(1.01);
}

.hero__profile {
    justify-self: center;   /* puedes dejarlo o quitarlo si quieres */
    display: flex;
    flex-direction: column;
    align-items: center;    /* centra horizontalmente la imagen y el texto */
    text-align: center;     /* centra el texto de la etiqueta debajo */
}

.hero {
    position: relative;
    overflow: hidden; /* para que no se salgan los símbolos */
}

/* capa de fondo con símbolos de código */
.hero-code-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.18;
    font-family: "Fira Code", monospace;
}

.hero-code-bg span {
    position: absolute;
    color: var(--accent);
    font-size: 1.4rem;
    animation: float-code 14s linear infinite;
}

/* posiciones iniciales diversas */
.hero-code-bg span:nth-child(1) {
    top: 80%;
    left: 5%;
    animation-duration: 16s;
}

.hero-code-bg span:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-duration: 20s;
}

.hero-code-bg span:nth-child(3) {
    top: 10%;
    left: 50%;
    animation-duration: 18s;
}

.hero-code-bg span:nth-child(4) {
    top: 30%;
    left: 15%;
    animation-duration: 22s;
}

.hero-code-bg span:nth-child(5) {
    top: 70%;
    left: 60%;
    animation-duration: 19s;
}

/* animación de flotación vertical + pequeño movimiento horizontal */
@keyframes float-code {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate3d(10px, -50vh, 0);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate3d(-10px, -100vh, 0);
        opacity: 0;
    }
}

.hero__avatar {
    width: 240px;
    height: 240px;
    border-radius: 999px;
    overflow: hidden;
    border: 2px solid var(--accent-soft);
    box-shadow: var(--shadow-soft);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* halo animado detrás de la foto */
.hero__avatar::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: inherit;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.45), transparent);
    opacity: 0.25;
    filter: blur(6px);
    z-index: -1;
    animation: avatar-pulse 3.2s ease-in-out infinite;
}

@keyframes avatar-pulse {
    0% {
        transform: scale(0.98);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.4;
    }
    100% {
        transform: scale(0.98);
        opacity: 0.15;
    }
}

/* capa global con símbolos de código flotando */
.page-code-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    opacity: 0.18; /* baja para no molestar el contenido */
    font-family: "Fira Code", Consolas, monospace;
    z-index: 0; /* por debajo del contenido */
}

/* aseguramos que el contenido quede encima del fondo */
body > *:not(.page-code-bg) {
    z-index: 1;
}

.page-code-bg span {
    position: absolute;
    color: var(--accent);
    font-size: 1.2rem;
    animation: float-code 18s linear infinite;
}

/* posiciones iniciales variadas */
.page-code-bg span:nth-child(1) {
    top: 90%;
    left: 5%;
    animation-duration: 22s;
}

.page-code-bg span:nth-child(2) {
    top: 75%;
    left: 80%;
    animation-duration: 26s;
}

.page-code-bg span:nth-child(3) {
    top: 10%;
    left: 50%;
    animation-duration: 24s;
}

.page-code-bg span:nth-child(4) {
    top: 30%;
    left: 15%;
    animation-duration: 28s;
}

.page-code-bg span:nth-child(5) {
    top: 60%;
    left: 40%;
    animation-duration: 20s;
}

.page-code-bg span:nth-child(6) {
    top: 20%;
    left: 75%;
    animation-duration: 30s;
}

.page-code-bg span:nth-child(7) {
    top: 50%;
    left: 20%;
    animation-duration: 26s;
}

.page-code-bg span:nth-child(8) {
    top: 40%;
    left: 60%;
    animation-duration: 32s;
}

/* misma animación de antes pero pensada para todo el viewport */
@keyframes float-code {
    0% {
        transform: translate3d(0, 0, 0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        transform: translate3d(15px, -50vh, 0);
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translate3d(-15px, -110vh, 0);
        opacity: 0;
    }
}


.hero__name {
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 0.35rem;
    display: inline-block;
    position: relative;
}

/* subrayado animado */
.hero__name::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.25rem;
    height: 2px;
    width: 0;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform-origin: left;
    transition: width 0.9s ease-out;
}

/* cuando el bloque .reveal entra en pantalla */
.reveal.visible .hero__name::after {
    width: 100%;
}


/* TIMELINE (versión compacta) */

.timeline {
    background: #020617;
    border-top: 1px solid rgba(15, 23, 42, 0.9);
    padding: 2.2rem 0;
}

.timeline__wrapper {
    position: relative;
    margin-top: 1.2rem;
    padding: 0.5rem 0 1.2rem;
}

/* Línea central */
.timeline__line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(
        to bottom,
        rgba(148, 163, 184, 0.3),
        rgba(56, 189, 248, 0.5),
        rgba(148, 163, 184, 0.3)
        );
}

/* Ítems */
.timeline__item {
    position: relative;
    width: 50%;
    padding: 0.6rem 0.8rem; /* compactado */
}

.timeline__item--left {
    padding-right: 1.5rem;
    text-align: right;
    left: 0;
}

.timeline__item--right {
    padding-left: 1.5rem;
    text-align: left;
    left: 50%;
}

/* Punto en la línea */
.timeline__dot {
    position: absolute;
    top: 1.1rem;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18);
}

.timeline__item--left .timeline__dot {
    right: -6px;
}

.timeline__item--right .timeline__dot {
    left: -6px;
}

/* Tarjeta */
.timeline__content {
    width: 100%;
    text-align: justify;
    display: inline-block;
    max-width: 600px;
    background: var(--bg-soft);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    padding: 0.6rem 0.75rem 0.7rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.timeline__date {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.timeline__title {
    margin: 0.15rem 0 0.1rem;
    font-size: 0.95rem;
}

.timeline__subtitle {
    margin: 0;
    font-size: 0.8rem;
    color: var(--accent);
}

.timeline__desc {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: var(--text-muted);
}

/* Animación de entrada usando .reveal + .visible */
.timeline__item.reveal {
    opacity: 0;
    transform: translateY(14px);
}

.timeline__item.reveal.visible.timeline__item--left {
    opacity: 1;
    transform: translateY(0) translateX(-4px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.timeline__item.reveal.visible.timeline__item--right {
    opacity: 1;
    transform: translateY(0) translateX(4px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Responsive: se apilan en móvil */
@media (max-width: 900px) {
    .timeline__line {
        left: 10px;
        transform: none;
    }

    .timeline__item,
    .timeline__item--left,
    .timeline__item--right {
        width: 100%;
        left: 0;
        padding-left: 2.1rem;
        padding-right: 0;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        text-align: left;
    }

    .timeline__dot {
        left: 6px;
        right: auto;
    }

    .timeline__content {
        max-width: 100%;
    }

    .timeline__item.reveal.visible.timeline__item--left,
    .timeline__item.reveal.visible.timeline__item--right {
        transform: translateY(0);
    }
}

/* Cabecera del ítem con imagen + texto */
.timeline__header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

/* Imagen pequeña redonda */
.timeline__thumb {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 6px 12px rgba(15, 23, 42, 0.7);
    background: radial-gradient(circle at top, #0f172a, #020617);
}

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

/* Aseguramos que texto no se pegue demasiado */
.timeline__header-text .timeline__date {
    display: block;
}
.timeline__header-text .timeline__title {
    margin: 0.1rem 0 0.05rem;
}
.timeline__header-text .timeline__subtitle {
    margin: 0;
}


/* FOOTER */

.site-footer {
    margin-top: 4rem;
    background: #020617;              /* igual al fondo oscuro de tu página */
    border-top: 1px solid rgba(148, 163, 184, 0.25);
    color: #e5e7eb;
    font-size: 0.875rem;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1.75rem;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.footer-col {
    flex: 1 1 0;
    min-width: 220px;
}

.footer-brand {
    max-width: 360px;
}

.footer-kicker {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: #38bdf8;                    /* acento celeste */
    margin-bottom: 0.5rem;
}

.footer-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #f9fafb;
}

.footer-text {
    color: #9ca3af;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

/* Enlaces y listas */

.footer-heading {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.footer-links,
.footer-contact {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links li + li,
.footer-contact li + li {
    margin-top: 0.45rem;
}

.footer-links a,
.footer-contact a {
    color: #cbd5f5;
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: #38bdf8;
}

/* Social */

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.footer-social a {
    font-size: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    color: #e5e7eb;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease,
        transform 0.1s ease;
}

.footer-social a:hover {
    background-color: #0f172a;
    border-color: #38bdf8;
    color: #f9fafb;
    transform: translateY(-1px);
}

/* Contacto */

.footer-contact .footer-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.footer-contact span + span,
.footer-contact .footer-label + a {
    margin-top: 0.15rem;
    display: inline-block;
    color: #e5e7eb;
}

/* Línea inferior */

.footer-bottom {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem 1.5rem 1.75rem;
    border-top: 1px solid rgba(148, 163, 184, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
    color: #6b7280;
    font-size: 0.75rem;
}

.footer-brand2 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.6rem;
    margin: 0 0.25rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;

    background: linear-gradient(135deg, #feca39, #00d4ff);
    color: #020617; /* casi negro, combínalo con tu fondo */
    box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.3),
        0 10px 25px rgba(15, 23, 42, 0.7);
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        filter 0.18s ease;
}

.footer-brand2:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 0 1px rgba(248, 250, 252, 0.6),
        0 14px 30px rgba(15, 23, 42, 0.9);
    filter: brightness(1.05);
}


.footer-meta {
    opacity: 0.9;
}

/* Responsive */

@media (max-width: 900px) {
    .footer-inner {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}


/* Sección de sistemas creados */
.section--systems {
    padding: 3rem 1.5rem;
    background: #020617; /* similar a tu paleta oscura */
    border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.section--systems .section__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.section--systems .section__header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.section--systems .section__title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
}

.section--systems .section__subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    max-width: 620px;
    margin: 0.5rem auto 0;
}

/* Tira horizontal (scroll suave) */
.systems-strip {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    padding-top: 20px;
    scroll-snap-type: x mandatory;
}

.systems-strip::-webkit-scrollbar {
    height: 6px;
}
.systems-strip::-webkit-scrollbar-track {
    background: transparent;
}
.systems-strip::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.5);
    border-radius: 999px;
}

/* Tarjeta de sistema */
.system-card {
    scroll-snap-align: start;
    min-width: 220px;
    max-width: 240px;
    background: rgba(15, 23, 42, 0.95);
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.85);
    flex-shrink: 0;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.system-card:hover {
    transform: translateY(-4px);
    border-color: #38bdf8;
    box-shadow: 0 24px 60px rgba(8, 47, 73, 0.9);
}

.system-card__figure {
    margin: 0;
}

.system-card__body {
    padding: 0.75rem 0.9rem 0.9rem;
}

.system-card__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.15rem;
}

.system-card__client {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #facc15;
    margin-bottom: 0.25rem;
}

.system-card__desc {
    font-size: 0.85rem;
    color: #cbd5f5;
    margin-bottom: 0.25rem;
}

.system-card__date {
    font-size: 0.78rem;
    color: #94a3b8;
}

.system-card__figure {
    margin: 0;
    /* Contenedor visual para la imagen */
    width: 100%;
    aspect-ratio: 16 / 9;         /* Alto proporcional (tipo screenshot/video) */
    background: #020617;          /* Fondo oscuro por si la imagen no llena todo */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.4rem;              /* Un poquito de aire alrededor */
    overflow: hidden;
}

.system-card__figure img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;          /* Ahora se adapta SIN cortarse */
    border-radius: 0.4rem;
}

/* Contenedor: grid responsive */
.systems-strip {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

/* 1 columna en móviles */
@media (max-width: 599px) {
    .systems-strip {
        grid-template-columns: 1fr;
    }
}

/* 2 columnas en tablets pequeñas */
@media (min-width: 600px) and (max-width: 899px) {
    .systems-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 3 columnas en pantallas medianas */
@media (min-width: 900px) and (max-width: 1199px) {
    .systems-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* 4 columnas en desktop grande */
@media (min-width: 1200px) {
    .systems-strip {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Tarjeta base */
.system-card {             /* mismo fondo oscuro que el resto de la web */
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(148, 163, 184, 0.14);
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.system-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0, 0, 0, 0.5);
    border-color: rgba(252, 211, 77, 0.55); /* amarillito highlight */
}

/* Imagen: misma altura para todas, centrada */
.system-card__figure {
    width: 100%;
    aspect-ratio: 4 / 3;               /* todas con misma proporción */
    background: #020617;
    border-radius: 10px;
    padding: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.system-card__figure img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;               /* mantiene logos sin recortar */
    display: block;
}

/* Título */
.system-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin: 0;
    line-height: 1.3;
}

.system-card__title a {
    color: inherit;
    text-decoration: none;
}

.system-card__title a:hover {
    text-decoration: underline;
}

/* Cliente / subtítulo (unificamos estilos) */
.system-card__client {
    font-size: 0.85rem;
    color: #9ca3af;
    margin: 0;
}

/* Descripción */
.system-card__desc {
    font-size: 0.85rem;
    color: #cbd5f5;
    margin: 0;
}

/* Fecha / meta (unificamos también) */
.system-card__date,
.system-card__meta {
    font-size: 0.78rem;
    color: #6b7280;
    margin-top: 0.25rem;
}

