:root {
    --purple: #7b2ff7;
    --purple-light: #a855f7;
    --bg-dark: #080808;
    --card-bg: #111111;
    --text-main: #ffffff;
    --text-dim: #999999;
    --border: rgba(255, 255, 255, 0.1);
    --mono-font: 'JetBrains Mono', monospace;
    /* Configuración del patrón de puntos */
    --dot-color: rgba(255, 255, 255, 0.388);
    --dot-size: 1px;
    --dot-space: 22px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    position: fixed;
    width: 100%;
    top: 0;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    transition: 0.3s;
}

nav a:hover {
    color: #fff;
}

.nav-btn {
    padding: 8px 16px;
    border: 1px solid var(--purple);
    border-radius: 4px;
    color: var(--purple) !important;
}

.logo img {
    height: 24px;
}

/* HERO SECTION */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 8%;
    border-bottom: 1px solid var(--border);
    position: relative;
    /* Fondo de puntos estilo Codecademy */
    background-image: radial-gradient(var(--dot-color) var(--dot-size), transparent 0);
    background-size: var(--dot-space) var(--dot-space);
}

/* Degradado suave para que los puntos no terminen de golpe */
.hero::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-dark), transparent);
    pointer-events: none;
}

.badge {
    font-family: var(--mono-font);
    color: var(--purple);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin: 20px 0;
    font-weight: 800;
    position: relative;
    z-index: 2;
}

.highlight {
    color: transparent;
    -webkit-text-stroke: 1px #fff;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* centra todo el contenido horizontalmente */
    justify-content: center;
    text-align: center;
    /* mantiene centrado el texto */
    max-width: 900px;
    /* opcional: limita ancho total del hero */
    margin: 0 auto;
    /* centra el hero-content en el contenedor */
    padding: 0 20px;
    /* espacio interno para que no toque los bordes */
}

/* HERO PARÁGRAFO */
.hero p {
    color: var(--text-dim);
    max-width: 650px;
    /* aumenta un poco para desktop, mantiene legible */
    font-size: 1.15rem;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
    text-align: center;
    /* asegura que siempre esté centrado */
}

/* BUTTONS */
.btn {
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.95rem;
    border: none;
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--purple);
    color: white;
}

.btn-primary:hover {
    background: var(--purple-light);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
    margin-left: 15px;
}

.btn-outline:hover {
    background: var(--border);
}

/* SERVICES GRID */
section {
    padding: 100px 8%;
}

.section-title {
    font-family: var(--mono-font);
    font-size: 1.8rem;
    margin-bottom: 50px;
    border-left: 4px solid var(--purple);
    padding-left: 20px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.card {
    background: var(--card-bg);
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease-in-out;
    /* Transición más rápida para el efecto clicky */
    position: relative;
    box-shadow: 0 0 0 transparent;
    /* Estado inicial sin sombra */
}

.card:hover {
    /* Crea la sombra sólida blanca desplazada hacia abajo y la derecha */
    box-shadow: 8px 8px 0px 0px #ffffff;
    /* Desplaza la tarjeta levemente hacia arriba/izquierda para compensar */
    transform: translate(-4px, -4px);
    border-color: #ffffff;
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

.card h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.card p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

/* CONTACT FORM */
.contact-container {
    max-width: 800px;
    margin: 0 auto;
}

.input-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

}

input,
textarea {
    background: #151515;
    border: 1px solid var(--border);
    padding: 15px;
    color: white;
    border-radius: 4px;
    margin-bottom: 20px;
    width: 100%;
    resize: none;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--purple);
}

.full-width {
    width: 100%;
    margin-top: 10px;
}

/* FOOTER */
footer {
    padding: 80px 8% 40px 8%;
    border-top: 1px solid var(--border);
    background-color: #050505;
    /* Fondo de puntos en el footer */
    background-image: radial-gradient(var(--dot-color) var(--dot-size), transparent 0);
    background-size: var(--dot-space) var(--dot-space);
    position: relative;
}

/* Degradado superior para el footer */
footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(to bottom, var(--bg-dark), transparent);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-dim);
    font-size: 0.85rem;
    position: relative;
    z-index: 2;
}

.footer-links a {
    color: var(--text-dim);
    margin-left: 20px;
    text-decoration: none;
    transition: 0.3s;
}

.footer-links a:hover {
    color: white;
}

/* CURSOR */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--purple);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
}

/* Subtítulo del formulario */
.contact-form .form-subtitle {
    font-size: 0.9rem;
    color: var(--text-dim);
    margin-bottom: 15px;
    font-style: italic;
    line-height: 1.4;
    max-width: 100%;
    text-align: center;
}

/* Si querés un efecto más visual en hover del textarea */
.contact-form textarea:focus+.form-subtitle {
    color: var(--purple);
    /* resalta el subtítulo cuando el usuario escribe */
}

/* ===== DESACTIVAR CURSOR PERSONALIZADO EN MOBILE ===== */
@media (max-width: 768px) {

    body {
        cursor: auto;
        /* vuelve el cursor normal */
    }

    .cursor,
    .cursor-follower {
        display: none !important;
        /* oculta el efecto */
    }

}

/* ===== HAMBURGUESA ===== */

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

/* ===== MOBILE MENU FUNCIONAL ===== */
.hamburger span {
    width: 25px;
    height: 2px;
    background: white;
    transition: 0.3s;
}

@media (max-width: 768px) {

    .input-group {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }

    /* ===== HAMBURGUESA ===== */

    .hamburger {
        display: flex;
        z-index: 1200;
    }

    nav ul {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 75%;
        background: #0a0a0a;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.4s ease;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1100;
    }

    nav ul.active {
        right: 0;
    }

    nav ul li a {
        color: white;
        font-size: 1.3rem;
        font-weight: 600;
    }

    /* Cursor normal en mobile */
    body {
        cursor: auto;
    }

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

.tech-stack {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.tech-stack img {
    height: 22px;
    opacity: 0.8;
    filter: grayscale(100%) drop-shadow(0 0 3px rgba(255, 255, 255, 0.3));
    transition: 0.3s ease;
}

.card:hover .tech-stack img {
    filter: grayscale(0%) drop-shadow(0 0 1.1px rgba(255, 255, 255, 0.6));
    opacity: 1;
}

/* ===== ABOUT HERO MEJORADO ===== */

.hero h1 {
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.15rem;
    font-weight: 300;
}

/* ===== TÍTULO SOBRE NOSOTROS ===== */

.section-title {
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, var(--purple), transparent);
}

/* ===== PÁRRAFOS MÁS ELEGANTES ===== */

section p {
    font-size: 1.05rem;
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.pillar {
    background: linear-gradient(145deg, #111111, #0d0d0d);
    padding: 35px;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pillar::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--purple);
    transition: 0.4s ease;
}

.pillar:hover::before {
    left: 0;
}

.pillar:hover {
    transform: translateY(-6px);
    border-color: var(--purple);
    box-shadow: 0 10px 30px rgba(123, 47, 247, 0.2);
}

.pillar h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.pillar p {
    color: var(--text-dim);
}

nav a {
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -3px;
    width: 0%;
    height: 1px;
    background: var(--purple);
    transition: 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

/* =========================
   TABLET
========================= */

@media (max-width: 1024px) {

    section {
        padding: 80px 6%;
    }

    .hero {
        padding: 0 6%;
    }

    .hero p {
        font-size: 1.05rem;
        max-width: 600px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    nav {
        padding: 18px 6%;
    }

    section {
        padding: 70px 6%;
    }

    .hero {
        height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 2.4rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1rem;
        max-width: 95%;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card {
        padding: 30px;
    }

    .pillar {
        padding: 28px;
    }

    .tech-stack {
        gap: 10px;
    }

    .tech-stack img {
        height: 20px;
    }

}

/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 480px) {

    nav {
        padding: 16px 5%;
    }

    section {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .card {
        padding: 25px;
    }

    .pillar {
        padding: 24px;
    }

    .section-title {
        font-size: 1.3rem;
    }

    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

}