/* ==========================
   CODESV.JM - CSS FINAL
========================== */

:root {
    --primario: #DBA627;
    --secundario: #d59605;
    --negro: #0b0b0b;
    --gris: #282828;
    --blanco: #ffffff;
    --fuentePrincipal: "Space Grotesk", sans-serif;
    --fuenteSecundaria: "Fira Code", monospace;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--gris);
    font-family: var(--fuentePrincipal);
    color: var(--blanco);
    font-size: 1.6rem;
}

img,
picture {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
}

.contenedor {
    max-width: 120rem;
    width: min(90%, 120rem);
    margin: 0 auto;
}

/* ==========================
   HEADER
========================== */

.header {
    background-color: var(--negro);
    border-bottom: 1px solid rgba(255,255,255,.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .contenedor {
    min-height: 7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo img {
    width: 22rem;
}

.nav {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.nav a {
    padding: .5rem 0;
    color: var(--blanco);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: .05rem;
    transition: color .25s ease, transform .25s ease, background-color .25s ease;
}

.nav a:hover {
    color: var(--primario);
    transform: translateY(-2px);
}

.nav a.btn-hablemos {
    background-color: var(--primario);
    color: var(--blanco);
    padding: 1rem 2rem;
    border-radius: .6rem;
}

.nav a.btn-hablemos:hover {
    color: var(--negro);
    background-color: var(--secundario);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle img {
    width: 3rem;
}

/* ==========================
   HERO INDEX
========================== */

.hero {
    padding: 7rem 0 8rem;
}

.hero__contenedor {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
}

.hero__contenido,
.hero__codigo {
    min-width: 0;
    width: 100%;
}

.hero__tag,
.servicios__tag,
.proceso__tag,
.proyectos__tag,
.stack__tag,
.proyectos-hero__tag,
.servicios-hero__tag,
.servicios-lista__tag,
.servicios-proceso__tag {
    display: inline-block;
    padding: .8rem 1.8rem;
    margin-bottom: 2rem;
    border-radius: .6rem;
    border: 1px solid rgba(219,166,39,.2);
    background: rgba(219,166,39,.08);
    color: var(--primario);
    font-family: var(--fuenteSecundaria);
    font-size: 1.4rem;
    text-transform: uppercase;
}

.hero__heading {
    max-width: 70rem;
    margin-bottom: 3rem;
    font-size: clamp(4rem, 5vw, 6.4rem);
    line-height: 1.1;
    font-weight: 700;
}

.hero__heading span,
.stack__heading span,
.cta__heading span,
.servicios-hero__heading span,
.servicios-cta__contenido h2 span,
.proyectos-hero__heading span {
    color: var(--primario);
}

.hero__texto {
    max-width: 60rem;
    margin-bottom: 4rem;
    color: rgba(255,255,255,.75);
    font-size: 2rem;
    line-height: 1.8;
}

.hero__acciones {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.hero__btn,
.cta__btn,
.proyectos-cta__boton,
.servicios-cta__contenido a {
    display: inline-block;
    text-decoration: none;
    border-radius: .8rem;
    font-weight: 700;
    transition: .25s ease;
}

.hero__btn {
    padding: 1.4rem 2.8rem;
}

.hero__btn--primario,
.cta__btn--primario,
.proyectos-cta__boton,
.servicios-cta__contenido a {
    background: var(--primario);
    color: var(--negro);
}

.hero__btn--primario:hover,
.cta__btn--primario:hover,
.proyectos-cta__boton:hover,
.servicios-cta__contenido a:hover {
    background: var(--secundario);
    transform: translateY(-3px);
}

.hero__btn--secundario,
.cta__btn--secundario {
    border: 1px solid rgba(255,255,255,.15);
    color: var(--blanco);
}

.hero__btn--secundario:hover,
.cta__btn--secundario:hover {
    border-color: var(--primario);
    color: var(--primario);
    transform: translateY(-3px);
}

.hero__codigo {
    max-width: 52rem;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.4rem;
    padding: 3rem 2rem;
    box-shadow: 0 2rem 5rem rgba(0,0,0,.35);
    overflow: hidden;
}

.hero__codigo-comentario {
    margin-bottom: 2rem;
    font-family: var(--fuenteSecundaria);
    color: rgba(255,255,255,.35);
}

.hero__codigo pre {
    margin: 0;
    overflow: hidden;
    scrollbar-width: none;
    white-space: pre-wrap;
    word-break: normal;
}

.hero__codigo pre::-webkit-scrollbar {
    display: none;
}

.hero__codigo code {
    display: block;
    font-family: var(--fuenteSecundaria);
    color: #f5f5f5;
    font-size: 1.5rem;
    line-height: 1.8;
}

/* ==========================
   SECCIONES INDEX
========================== */

.servicios,
.proceso,
.proyectos,
.stack {
    padding: 7rem 0;
}

.servicios__header,
.proceso__header,
.proyectos__header,
.stack__header {
    max-width: 75rem;
    margin: 0 auto 6rem;
    text-align: center;
}

.servicios__heading,
.proceso__heading,
.proyectos__heading,
.stack__heading {
    margin-bottom: 2rem;
    font-size: clamp(3.8rem, 5vw, 5.5rem);
    line-height: 1.2;
}

.servicios__texto,
.proceso__texto,
.proyectos__texto,
.stack__texto {
    color: rgba(255,255,255,.7);
    font-size: 2rem;
    line-height: 1.8;
}

.servicios__grid,
.proceso__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    justify-content: center;
}

.servicio,
.proceso__card {
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.6rem;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.servicio:hover,
.proceso__card:hover,
.proyecto:hover,
.stack__card:hover,
.servicios-lista__card:hover,
.servicios-proceso__card:hover,
.proyecto-card:hover {
    transform: translateY(-8px);
    border-color: rgba(219,166,39,.35);
    box-shadow: 0 2rem 5rem rgba(0,0,0,.35);
}

.servicio {
    flex: 1 1 100%;
    max-width: 35rem;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.servicio__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
}

.servicio__icono {
    width: 6rem;
    height: 6rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(219,166,39,.08);
    border-radius: 1.2rem;
    color: var(--primario);
    font-size: 2.2rem;
    font-family: var(--fuenteSecundaria);
}

.servicio__numero {
    color: var(--primario);
    font-size: 2.2rem;
    font-weight: 700;
}

.servicio__titulo,
.proceso__card h3 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.servicio__descripcion,
.proceso__card p {
    color: rgba(255,255,255,.65);
    line-height: 1.8;
    font-size: 1.7rem;
}

.servicio__descripcion {
    margin-bottom: 4rem;
    flex-grow: 1;
}

.servicio__enlace,
.proyecto__link {
    color: var(--primario);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.6rem;
    transition: letter-spacing .25s ease;
}

.servicio__enlace:hover,
.proyecto__link:hover {
    letter-spacing: .1rem;
}

.proceso__card {
    flex: 1 1 28rem;
    max-width: 32rem;
    padding: 4rem 3rem;
    text-align: center;
}

.proceso__icono {
    width: 7rem;
    height: 7rem;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background: rgba(219,166,39,.08);
    border: 1px solid rgba(219,166,39,.2);
    color: var(--primario);
    font-size: 2.8rem;
    font-weight: 700;
}

.proceso__nota {
    margin-top: 6rem;
    padding: 3rem;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.6rem;
    text-align: center;
}

.proceso__nota p {
    color: rgba(255,255,255,.8);
    font-size: 1.8rem;
    line-height: 1.8;
}

/* ==========================
   PROYECTOS DESTACADOS INDEX
========================== */

.proyectos__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.proyecto {
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.6rem;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.proyecto--destacado {
    border-color: rgba(219,166,39,.6);
}

.proyecto__ventana {
    background: #0b0b0b;
    overflow: hidden;
}

.proyecto__barra {
    display: flex;
    gap: .8rem;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.proyecto__barra span {
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 50%;
}

.proyecto__barra span:nth-child(1) { background: #ff5f57; }
.proyecto__barra span:nth-child(2) { background: #ffbd2e; }
.proyecto__barra span:nth-child(3) { background: #28c840; }

.proyecto__ventana img,
.proyecto-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .4s ease;
}

.proyecto:hover .proyecto__ventana img,
.proyecto-card:hover img {
    transform: scale(1.04);
}

.proyecto__contenido {
    padding: 3rem;
}

.proyecto__label {
    color: var(--primario);
    font-family: var(--fuenteSecundaria);
    font-size: 1.3rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.proyecto__titulo {
    font-size: 2.6rem;
    margin-bottom: 1.5rem;
}

.proyecto__descripcion {
    color: rgba(255,255,255,.65);
    line-height: 1.8;
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
}

.proyecto__stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.proyecto__stack span {
    color: rgba(255,255,255,.75);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .6rem;
    padding: .8rem 1.4rem;
    font-size: 1.4rem;
}

.proyectos__acciones {
    display: flex;
    justify-content: center;
    margin-top: 5rem;
}

.proyectos__btn {
    color: var(--blanco);
    text-decoration: none;
    border: 1px solid rgba(219,166,39,.4);
    border-radius: .8rem;
    padding: 1.4rem 2.8rem;
    font-weight: 700;
    transition: .25s ease;
}

.proyectos__btn:hover {
    color: var(--negro);
    background: var(--primario);
    transform: translateY(-3px);
}

/* ==========================
   STACK
========================== */

.stack__grid {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

.stack__card {
    min-width: 0;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.6rem;
    padding: 3rem;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.stack__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.stack__numero {
    color: var(--primario);
    font-size: 2.4rem;
    font-weight: 700;
}

.stack__categoria {
    color: rgba(255,255,255,.25);
    font-family: var(--fuenteSecundaria);
    font-size: 3rem;
    font-weight: 700;
}

.stack__titulo {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.stack__descripcion {
    color: rgba(255,255,255,.68);
    font-size: 1.7rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.stack__descripcion::after {
    content: "";
    display: block;
    width: 6rem;
    height: .3rem;
    margin-top: 2rem;
    border-radius: 1rem;
    background: var(--primario);
}

.stack__tecnologias {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
}

.stack__item {
    min-width: 0;
    min-height: 12rem;
    padding: 2rem 1rem;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.2rem;
    background: rgba(255,255,255,.02);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.stack__item:hover {
    transform: translateY(-5px);
    border-color: rgba(219,166,39,.35);
    background: rgba(219,166,39,.05);
}

.stack__item img {
    width: 5rem;
    height: 5rem;
    object-fit: contain;
}

.stack__item span {
    max-width: 100%;
    font-size: clamp(1.25rem, 1.1vw, 1.6rem);
    font-weight: 700;
    text-align: center;
    line-height: 1.25;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.stack__frase {
    max-width: 85rem;
    margin: 5rem auto 0;
    padding: 3rem;
    border-radius: 1.6rem;
    border: 1px solid rgba(219,166,39,.25);
    background: #111;
    text-align: center;
}

.stack__frase blockquote {
    color: rgba(255,255,255,.8);
    font-size: 2rem;
    line-height: 1.7;
}

.stack__frase span {
    display: block;
    color: var(--blanco);
    font-weight: 700;
}

/* ==========================
   CTA INDEX
========================== */

.cta {
    padding: 10rem 0;
}

.cta .contenedor {
    max-width: 140rem;
}

.cta__contenido {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg,#111,#0b0b0b);
    border: 1px solid rgba(219,166,39,.18);
    border-radius: 2.4rem;
    padding: 8rem 6rem;
    text-align: center;
}

.cta__contenido::before {
    content: "";
    position: absolute;
    left: -10rem;
    top: 8rem;
    width: 18rem;
    height: 18rem;
    background-image: radial-gradient(var(--primario) 1px, transparent 1px);
    background-size: 2rem 2rem;
    opacity: .25;
}

.cta__contenido::after {
    content: "";
    position: absolute;
    right: -10rem;
    bottom: -10rem;
    width: 45rem;
    height: 45rem;
    border-radius: 50%;
    border: 1px solid rgba(219,166,39,.08);
    box-shadow: 0 0 0 5rem rgba(219,166,39,.03),
                0 0 0 10rem rgba(219,166,39,.02),
                0 0 0 15rem rgba(219,166,39,.01);
}

.cta__tag {
    display: inline-block;
    color: var(--primario);
    font-family: var(--fuenteSecundaria);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: .2rem;
    margin-bottom: 2rem;
}

.cta__heading {
    font-size: clamp(4.2rem,7vw,7.5rem);
    line-height: 1.05;
    margin-bottom: 3rem;
}

.cta__heading span {
    display: block;
}

.cta__texto {
    max-width: 75rem;
    margin: 0 auto;
    color: rgba(255,255,255,.72);
    font-size: 2.1rem;
    line-height: 1.8;
}

.cta__acciones {
    margin-top: 5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta__btn {
    padding: 1.8rem 3.5rem;
    font-size: 1.8rem;
}

.cta__btn--primario {
    box-shadow: 0 0 30px rgba(219,166,39,.25);
}

.cta__btn--secundario:hover {
    background: rgba(219,166,39,.08);
}

.cta__beneficios {
    margin-top: 7rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.cta__beneficio {
    display: flex;
    align-items: center;
    gap: 2rem;
    text-align: left;
}

.cta__icono {
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.cta__icono img {
    width: 3.2rem;
}

.cta__beneficio h3 {
    font-size: 2rem;
    margin-bottom: .8rem;
}

.cta__beneficio p {
    color: rgba(255,255,255,.65);
    line-height: 1.6;
    font-size: 1.6rem;
}

/* ==========================
   FOOTER
========================== */

.footer {
    background-color: var(--negro);
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 4rem 0 2rem;
}

.footer__contenedor {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.footer__brand {
    max-width: 70rem;
}

.footer__logo img {
    width: 20rem;
    margin: 0 auto 1.5rem;
}

.footer__texto {
    max-width: 60rem;
    margin: 0 auto;
    color: rgba(255,255,255,.7);
    font-size: 1.5rem;
    line-height: 1.6;
    word-break: normal;
    overflow-wrap: normal;
}

.footer__nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer__nav a {
    color: var(--blanco);
    text-decoration: none;
    text-transform: uppercase;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: .05rem;
    transition: color .25s ease;
}

.footer__nav a:hover {
    color: var(--primario);
}

.footer__copy {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,.08);
    text-align: center;
}

.footer__copy p {
    color: rgba(255,255,255,.5);
    font-size: 1.3rem;
}

/* ==========================
   SERVICIOS PAGE
========================== */

.servicios-hero,
.servicios-lista,
.servicios-proceso,
.servicios-cta {
    padding: 8rem 0;
}

.servicios-hero__contenedor {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    align-items: center;
}

.servicios-hero__contenido,
.servicios-hero__visual {
    width: 100%;
    min-width: 0;
}

.servicios-hero__visual {
    max-width: 60rem;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.8rem;
    padding: 1.5rem;
}

.servicios-hero__visual img {
    border-radius: 1.2rem;
    width: 100%;
}

.servicios-hero__heading,
.servicios-lista__heading,
.servicios-proceso__heading {
    font-size: clamp(4rem, 5vw, 6.4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.servicios-hero__heading {
    max-width: 65rem;
}

.servicios-hero__texto {
    max-width: 60rem;
    color: rgba(255,255,255,.72);
    font-size: 2rem;
    line-height: 1.8;
    margin-bottom: 4rem;
}

.servicios-hero__beneficios,
.servicios-lista__grid,
.servicios-proceso__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.servicios-hero__beneficios {
    gap: 2rem;
}

.servicios-hero__beneficio {
    flex: 1 1 24rem;
    min-width: 0;
    display: flex;
    gap: 1.8rem;
    align-items: center;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.4rem;
    padding: 2rem;
}

.servicios-hero__beneficio img {
    width: 4.5rem;
    height: 4.5rem;
    flex-shrink: 0;
}

.servicios-hero__beneficio h3 {
    font-size: 2rem;
    margin-bottom: .5rem;
}

.servicios-hero__beneficio p {
    color: rgba(255,255,255,.65);
    line-height: 1.6;
}

.servicios-lista__header,
.servicios-proceso__header {
    max-width: 75rem;
    margin: 0 auto 6rem;
    text-align: center;
}

.servicios-lista__card,
.servicios-proceso__card {
    flex: 1 1 100%;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.6rem;
    padding: 3rem;
    transition: .3s ease;
}

.servicios-lista__icono {
    width: 7rem;
    height: 7rem;
    border-radius: 1.4rem;
    background: rgba(219,166,39,.08);
    border: 1px solid rgba(219,166,39,.18);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 3rem;
}

.servicios-lista__icono img {
    width: 3.6rem;
    height: 3.6rem;
}

.servicios-lista__card h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
}

.servicios-lista__card p {
    color: rgba(255,255,255,.68);
    font-size: 1.7rem;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.servicios-lista__card ul {
    list-style: none;
}

.servicios-lista__card li {
    position: relative;
    padding-left: 2.5rem;
    margin-bottom: 1.2rem;
    color: rgba(255,255,255,.75);
    font-size: 1.6rem;
}

.servicios-lista__card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .7rem;
    width: .8rem;
    height: .8rem;
    background: var(--primario);
    border-radius: 50%;
}

.servicios-proceso__grid {
    justify-content: center;
}

.servicios-proceso__card {
    max-width: 32rem;
    text-align: center;
}

.servicios-proceso__numero {
    display: inline-block;
    color: var(--primario);
    font-family: var(--fuenteSecundaria);
    font-size: 1.6rem;
    margin-bottom: 2rem;
}

.servicios-proceso__card img {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 2rem;
}

.servicios-proceso__card h3 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
}

.servicios-proceso__card p {
    color: rgba(255,255,255,.65);
    font-size: 1.6rem;
    line-height: 1.7;
}

.servicios-cta__contenido {
    background: linear-gradient(180deg,#111,#0b0b0b);
    border: 1px solid rgba(219,166,39,.18);
    border-radius: 2rem;
    padding: 6rem 3rem;
    text-align: center;
}

.servicios-cta__contenido h2 {
    font-size: clamp(3.8rem,6vw,6rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.servicios-cta__contenido p {
    max-width: 60rem;
    margin: 0 auto 4rem;
    color: rgba(255,255,255,.72);
    font-size: 2rem;
    line-height: 1.8;
}

.servicios-cta__contenido a {
    padding: 1.6rem 3rem;
    font-size: 1.7rem;
}

/* ==========================
   PROYECTOS PAGE
========================== */

.proyectos-hero {
    padding: 8rem 0 5rem;
}

.proyectos-hero__contenido {
    max-width: 85rem;
    margin: 0 auto 5rem;
    text-align: center;
}

.proyectos-hero__heading {
    font-size: clamp(4rem,7vw,7rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.proyectos-hero__texto {
    max-width: 70rem;
    margin: 0 auto;
    color: rgba(255,255,255,.7);
    font-size: 2rem;
    line-height: 1.8;
}

.proyectos-hero__estadisticas {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.estadistica {
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.6rem;
    padding: 3rem;
    text-align: center;
    transition: .3s ease;
}

.estadistica:hover {
    transform: translateY(-6px);
    border-color: rgba(219,166,39,.35);
}

.estadistica img {
    width: 4.5rem;
    height: 4.5rem;
    margin: 0 auto 2rem;
}

.estadistica h3 {
    color: var(--primario);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.estadistica p {
    color: rgba(255,255,255,.68);
    font-size: 1.6rem;
}

.proyectos-page {
    padding: 5rem 0 8rem;
}

.proyectos-page__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.proyecto-card {
    flex: 1 1 100%;
    min-width: 0;
    background: #111;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 1.6rem;
    overflow: hidden;
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.proyecto-card__contenido {
    padding: 2.8rem;
}

.proyecto-card__contenido h3 {
    font-size: 2.6rem;
    margin-bottom: 1.4rem;
}

.proyecto-card__contenido p {
    color: rgba(255,255,255,.65);
    font-size: 1.7rem;
    line-height: 1.7;
}

.proyectos-cta {
    padding: 0 0 8rem;
}

.proyectos-cta__contenido {
    background: linear-gradient(180deg,#111,#0b0b0b);
    border: 1px solid rgba(219,166,39,.2);
    border-radius: 2rem;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    text-align: center;
}

.proyectos-cta__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.proyectos-cta__info img {
    width: 5rem;
    height: 5rem;
}

.proyectos-cta__info h2 {
    font-size: clamp(3rem,5vw,4.5rem);
    margin-bottom: 1rem;
}

.proyectos-cta__info p {
    color: rgba(255,255,255,.68);
    font-size: 1.8rem;
    line-height: 1.7;
}

.proyectos-cta__boton {
    padding: 1.6rem 3rem;
    font-size: 1.7rem;
}

/* ==========================
   RESPONSIVE GLOBAL
========================== */

@media (max-width: 767px) {
    .header .contenedor {
        min-height: 7rem;
    }

    .logo img {
        width: 16rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: none;
        flex-direction: column;
        gap: 1.5rem;
        padding: 2rem 0;
        background: var(--negro);
        border-top: 1px solid rgba(255,255,255,.08);
    }

    .nav.activo {
        display: flex;
    }

    .nav a {
        font-size: 1.8rem;
        padding: 1.5rem;
    }

    .nav a.btn-hablemos {
        width: 90%;
        margin: 1rem auto 0;
        text-align: center;
    }

    .hero,
    .servicios,
    .proceso,
    .proyectos,
    .stack,
    .servicios-hero,
    .servicios-lista,
    .servicios-proceso,
    .servicios-cta {
        padding: 6rem 0;
    }

    .hero__contenido,
    .servicios-hero__contenido {
        text-align: center;
    }

    .hero__heading,
    .servicios-hero__heading,
    .servicios-lista__heading,
    .servicios-proceso__heading,
    .proyectos-hero__heading {
        font-size: 4rem;
    }

    .hero__texto,
    .servicios__texto,
    .proceso__texto,
    .proyectos__texto,
    .stack__texto,
    .servicios-hero__texto,
    .servicios-cta__contenido p,
    .proyectos-hero__texto {
        font-size: 1.8rem;
    }

    .hero__texto,
    .hero__heading,
    .servicios-hero__heading,
    .servicios-hero__texto {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__acciones {
        justify-content: center;
    }

    .hero__btn,
    .cta__btn {
        width: 100%;
        text-align: center;
    }

    .hero__codigo {
        max-width: 100%;
    }

    .hero__codigo code {
        font-size: 1.4rem;
    }

    .servicios-hero__beneficio {
        flex: 1 1 100%;
        flex-direction: column;
        text-align: center;
    }

    .stack__card,
    .cta__contenido,
    .proyectos-cta__contenido {
        padding: 3rem 2rem;
    }

    .stack__titulo {
        font-size: 2.8rem;
    }

    .stack__tecnologias {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stack__item {
        min-height: 10rem;
        padding: 1.5rem .8rem;
    }

    .stack__item img {
        width: 3.8rem;
        height: 3.8rem;
    }

    .stack__item span {
        font-size: 1.25rem;
    }

    .cta {
        padding: 8rem 0;
    }

    .cta__heading {
        font-size: 4.5rem;
    }

    .cta__texto {
        font-size: 1.8rem;
    }
}

@media (min-width: 768px) {
    .servicio,
    .servicios-lista__card,
    .servicios-proceso__card,
    .proyecto-card {
        flex: 1 1 calc(50% - 3rem);
    }

    .proyectos__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .proyecto--destacado {
        grid-row: span 2;
    }

    .stack__grid {
        grid-template-columns: 1fr;
    }

    .stack__tecnologias {
        grid-template-columns: repeat(3, minmax(8.5rem, 1fr));
    }

    .cta__beneficios {
        grid-template-columns: 1fr;
    }

    .footer__contenedor {
        flex-direction: column;
        text-align: center;
    }

    .footer__nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 3rem;
    }
}

@media (min-width: 992px) {
    .hero__contenedor {
        display: grid;
        grid-template-columns: minmax(0, 1.1fr) minmax(32rem, .9fr);
        gap: 6rem;
    }

    .hero__codigo {
        justify-self: end;
    }

    .servicios-hero__contenedor {
        flex-direction: column;
        text-align: center;
    }

    .servicios-hero__heading,
    .servicios-hero__texto {
        margin-left: auto;
        margin-right: auto;
    }

    .servicios-hero__beneficios {
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    .servicio,
    .servicios-lista__card {
        flex: 1 1 calc(25% - 3rem);
    }

    .servicios-proceso__card {
        flex: 1 1 calc(20% - 3rem);
    }

    .proyectos__grid {
        grid-template-columns: 1.1fr 1fr 1fr;
    }

    .stack__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stack__tecnologias {
        grid-template-columns: repeat(3, minmax(9rem, 1fr));
    }

    .cta__beneficios {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta__beneficio:nth-child(2) {
        border-left: 1px solid rgba(255,255,255,.08);
        border-right: 1px solid rgba(255,255,255,.08);
        padding: 0 3rem;
    }

    .footer__contenedor {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .footer__logo img {
        margin: 0 0 1.5rem;
    }

    .servicios-hero__contenedor {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .servicios-hero__contenido,
    .servicios-hero__visual {
        flex: 0 1 55rem;
    }

    .proyecto-card {
        flex: 1 1 calc(33.333% - 3rem);
    }

    .proyectos-hero__estadisticas {
        flex-direction: row;
    }

    .estadistica {
        flex: 1;
    }

    .proyectos-cta__contenido {
        flex-direction: row;
        justify-content: space-between;
        text-align: left;
    }

    .proyectos-cta__info {
        flex-direction: row;
        align-items: center;
    }
}
