/* ── RESET ── */
    *, *::before, *::after {
        margin: 0; padding: 0; box-sizing: border-box;
    }

    /* ── VARIABLES DE COLOR ── */
    :root {
        --black:  #000000;
        --white:  #FFFFFF;
        --coral:  #FF4D2E;
        --violet: #7B2FFF;
        --cyan:   #00D4FF;
        --gold:   #FFB800;
        --gray:   #1A1A1A;
        --gray2:  #111111;
    }

    html { scroll-behavior: smooth; }

    body {
        background: var(--black);
        color: var(--white);
        font-family: 'Space Grotesk', sans-serif;
        overflow-x: hidden;
    }

    nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;

    display: flex;
    align-items: center;
    justify-content: center; /* Centra todo el contenido */

    padding: 10px 30px;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

    .nav-container {
        width: 100%;
        max-width: 1400px;

        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 180px;
    }

    .nav-logo {
        width: 80px;
        height: auto;
    }

    nav ul {
        list-style: none;
        display: flex;
        gap: 50px;
    }

    nav ul a {
        color: rgba(255,255,255,0.6);
        text-decoration: none;
        font-size: 0.85rem;
        letter-spacing: 2px;
        text-transform: uppercase;
        font-weight: 500;
        transition: .3s;
    }

    nav ul a:hover {
        color: white;
    }

    /* ── RESPONSIVE NAV ── */
    @media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        gap: 25px;
    }

    .nav-logo {
        display: none;
    }

    nav ul {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul a {
        font-size: 0.75rem;
    }
}

/* ── HERO ── */
#hero {
    min-height: 60vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    padding: 120px 20px 80px;
}

/* Blobs de color de fondo */
#hero::before {
    content:''; position:absolute;
    width:700px; height:700px; border-radius:50%;
    background: radial-gradient(circle, rgba(123,47,255,0.25) 0%, transparent 70%);
    top:-150px; right:-200px; pointer-events:none;
    animation: blobPulse 8s ease-in-out infinite alternate;
}
#hero::after {
    content:''; position:absolute;
    width:500px; height:500px; border-radius:50%;
    background: radial-gradient(circle, rgba(255,77,46,0.2) 0%, transparent 70%);
    bottom:-100px; left:-100px; pointer-events:none;
    animation: blobPulse 10s ease-in-out infinite alternate-reverse;
}
@keyframes blobPulse {
    from { transform: scale(1); }
    to   { transform: scale(1.15); }
}

/* ── LOGO ANIMADO ── */
.hero-logo-wrap {
    width: 100%; max-width: 1100px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 32px;
    position: relative; z-index: 2;
    overflow: hidden;
}

.logo-text {
    font-family: 'Stack Sans Headline', sans-serif;
    font-size: clamp(60px, 14vw, 200px);
    letter-spacing: 0.05em; line-height: 1;
    color: var(--white);
    display: flex; align-items: center; gap: 0.06em;
    white-space: nowrap;
}

/* El ícono entra desde la izquierda */
.logo-icon {
    width: clamp(60px, 9vw, 140px);
    height: clamp(60px, 9vw, 140px);
    flex-shrink: 0;
    opacity: 0;
    transform: translateX(-120%);
    animation: iconSlide 1.4s cubic-bezier(.16,1,.3,1) 0.3s forwards;
}
@keyframes iconSlide {
    0%   { opacity:0; transform: translateX(-120%); }
    60%  { opacity:1; }
    100% { opacity:1; transform: translateX(0); }
}

/* Cada letra cae desde arriba en secuencia */
.logo-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
    animation: letterRise 0.6s cubic-bezier(.16,1,.3,1) forwards;
}
.logo-letter:nth-child(2) { animation-delay: 0.9s; }
.logo-letter:nth-child(3) { animation-delay: 1.0s; }
.logo-letter:nth-child(4) { animation-delay: 1.1s; }
.logo-letter:nth-child(5) { animation-delay: 1.2s; }

@keyframes letterRise {
    to { opacity:1; transform: translateY(0); }
}

/* "DESIGN LAB" a la derecha del logo */
.logo-sub {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(10px, 1.6vw, 22px);
    letter-spacing: 0.45em; text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    display: flex; flex-direction: column;
    justify-content: flex-end; padding-bottom: 0.12em; padding-left: 0.5em;
    opacity: 0;
    animation: fadeUp .6s ease 1.5s forwards;
    align-items: center;
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(16px); }
    to   { opacity:1; transform:translateY(0); }
}

/* Tagline y botón */
.hero-tagline {
    font-size: clamp(16px, 2.8vw, 42px);
    font-weight: 300; color: rgba(255,255,255,0.55);
    text-align: center; max-width: 700px; line-height: 1.4;
    margin-bottom: 48px;
    position: relative; z-index: 2;
    opacity: 0;
    animation: fadeUp .7s ease 1.7s forwards;
}
.hero-tagline strong { color: var(--white); font-weight: 600; }

.btn-primary {
    display: inline-block;
    padding: 18px 48px;
    background: var(--white); color: var(--black);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none; border: none; cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    position: relative; z-index: 2;
    opacity: 0;
    animation: fadeUp .6s ease 2s forwards;
    border-radius: 8px;

}
.btn-primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.377);
}

/* ── SEPARADORES DE COLOR ── */
.color-bridge {
    width:100%; height:3px;
    background: linear-gradient(90deg, var(--violet), var(--coral), var(--cyan), var(--gold));
    background-size: 300% 100%;
    animation: gradShift 4s linear infinite;
}
.color-bridge-2 {
    width:100%; height:3px;
    background: linear-gradient(90deg, var(--cyan), var(--violet), var(--coral));
    background-size: 300% 100%;
    animation: gradShift 10s linear infinite reverse;
}
@keyframes gradShift {
    0%   { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

/* ── SCROLL REVEAL (global, se usa en todas las secciones) ── */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity .5s, transform .5s;
}
.reveal.visible { opacity:1; transform:translateY(0); }


/* ── BANNER CATÁLOGO ── */
#banner-catalogo {
    background: linear-gradient(135deg, rgba(123,47,255,0.15), rgba(0,212,255,0.1));
    border-top: 1px solid rgba(123,47,255,0.3);
    border-bottom: 1px solid rgba(0,212,255,0.3);
    padding: 60px;
    display: flex; align-items: center;
    justify-content: space-between; gap: 40px;
    position: relative; overflow: hidden;
}

/* Líneas verticales decorativas de fondo */
#banner-catalogo::before {
    content:''; position:absolute; inset:0;
    background: repeating-linear-gradient(
        30deg,
        transparent 0px, transparent 80px,
        rgba(255,255,255,0.015) 80px, rgba(255,255,255,0.015) 81px
    );
    pointer-events:none;
}

.banner-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 1; color: var(--white);
}

.btn-outline {
    flex-shrink: 0;
    padding: 18px 48px;
    border: 2px solid var(--white);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 0.85rem;
    letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none; background: transparent;
    cursor: pointer;
    transition: transform .25s, box-shadow .25s, background .25s, color .25s;
    white-space: nowrap;
    border-radius: 8px;
}
.btn-outline:hover {
    transform: translateY(-6px);
    background: var(--white); color: var(--black);
    box-shadow: 0 20px 50px rgba(255,255,255,0.15);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    #banner-catalogo {
        flex-direction: column;
        text-align: center;
        padding: 60px 24px;
    }

    .banner-title {
        font-size: clamp(28px, 6vw, 48px);
    }
}

/* ─── SERVICIOS (imanes) ─── */
#servicios {
    padding: 120px 60px;
    position: relative;
}
#servicios::before {
    content:''; position:absolute; top:0; left:50%; transform:translateX(-50%);
    width:600px; height:600px; border-radius:50%;
    background: radial-gradient(circle, rgba(255,184,0,0.08) 0%, transparent 70%);
    pointer-events:none;
}

.section-label {
    font-size: 11px; letter-spacing: 5px; text-transform: uppercase;
    color: var(--coral); font-weight: 600; margin-bottom: 16px;
    display: block;
}
.section-title {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(48px, 7vw, 100px);
    line-height: 0.9; margin-bottom: 72px;
    max-width: 700px;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
}

.servicio-card {
    position: relative; overflow: hidden;
    background: var(--gray);
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform .4s cubic-bezier(.16,1,.3,1);
}
.servicio-card::before {
    content: '';
    position: absolute; inset:0;
    background: var(--accent, var(--violet));
    opacity: 0;
    transition: opacity .4s;
    z-index: 1;
}
.servicio-card:hover { transform: scale(1.04) translateY(-8px); z-index: 5; }
.servicio-card:hover::before { opacity: 0.85; }

  /* acento por tarjeta */
.sc-1 { --accent: rgba(123,47,255,0.92); }
.sc-2 { --accent: rgba(255,77,46,0.92); }
.sc-3 { --accent: rgba(0,212,255,0.92); }
.sc-4 { --accent: rgba(255,184,0,0.92); }
.sc-5 { --accent: rgba(123,47,255,0.92); }
.sc-6 { --accent: rgba(255,77,46,0.92); }

.servicio-bg {
    position: absolute; inset:0;
    background-size: cover; background-position: center;
    filter: grayscale(60%);
    transition: filter .4s, transform .5s;
}
.servicio-card:hover .servicio-bg {
    filter: grayscale(100%) brightness(0.3);
    transform: scale(1.08);
}

.servicio-icon {
    position: absolute; top: 32px; left: 32px; z-index: 2;
    font-size: 2.5rem; line-height: 1;
    transition: transform .4s;
}
.servicio-card:hover .servicio-icon { transform: scale(0.7) translateY(-10px); opacity:.6; }

.servicio-info {
    position: absolute; inset:0; z-index: 3;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
    transition: background .4s;
}
.servicio-card:hover .servicio-info {
    background: transparent;
    justify-content: center; align-items: center; text-align: center;
}

.servicio-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(24px, 2.5vw, 36px);
    letter-spacing: 2px;
    transform: translateY(0); transition: transform .4s;
}
.servicio-card:hover .servicio-name { transform: translateY(-12px); }

.servicio-desc {
    font-size: 0.85rem; color: rgba(255,255,255,0.85);
    line-height: 1.5; margin-top: 12px;
    opacity: 0; max-height: 0; overflow:hidden;
    transition: opacity .4s .1s, max-height .4s;
    }
.servicio-card:hover .servicio-desc { opacity:1; max-height: 200px; }
    
.servicio-cta {
    display: inline-block; margin-top: 20px;
    padding: 10px 28px;
    border: 1.5px solid rgba(255,255,255,0.8);
    color: var(--white); font-size: 0.75rem;
    letter-spacing: 3px; text-transform: uppercase;
    text-decoration: none; font-weight: 600;
    opacity: 0; transform: translateY(10px);
    transition: opacity .4s .2s, transform .4s .2s, background .25s;
}
.servicio-card:hover .servicio-cta {
    opacity: 1; transform: translateY(0);
}
.servicio-cta:hover { background: var(--white); color: var(--black); }

/* ── NOSOTROS ── */
#nosotros {
    padding: 140px 60px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: center;
    position: relative; overflow: hidden;
}

/* Blob decorativo */
#nosotros::after {
    content:''; position:absolute;
    bottom:-200px; right:-200px;
    width:600px; height:600px; border-radius:50%;
    background: radial-gradient(circle, rgba(0,212,255,0.08) 0%, transparent 70%);
    pointer-events:none;
}

/* Imagen con overlay */
.nosotros-img-wrap {
    position: relative;
    aspect-ratio: 4/5; overflow: hidden;
}
.nosotros-img-wrap img {
    width:100%; height:100%; object-fit:cover;
    filter: grayscale(30%);
    transition: filter .4s, transform .5s;
}
.nosotros-img-wrap:hover img {
    filter: grayscale(80%) brightness(0.35);
    transform: scale(1.05);
}

/* Texto que aparece sobre la imagen */
.nosotros-img-overlay {
    position: absolute; inset:0;
    display: flex; flex-direction:column;
    align-items:center; justify-content:center;
    padding: 40px; text-align:center;
    background: rgba(0,0,0,0);
    transition: background .4s;
}
.nosotros-img-wrap:hover .nosotros-img-overlay {
    background: rgba(0,0,0,0.4);
}
.nosotros-overlay-text {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(32px, 3.5vw, 52px);
    color: var(--white); line-height:1.1;
    opacity:0; transform: translateY(20px);
    transition: opacity .4s .1s, transform .4s .1s;
}
.nosotros-img-wrap:hover .nosotros-overlay-text {
    opacity:1; transform:translateY(0);
}

/* Contenido de texto */
.nosotros-content { position: relative; z-index: 2; }
.nosotros-content p {
    font-size: clamp(15px, 1.5vw, 19px);
    color: rgba(255,255,255,0.65);
    line-height: 1.8; margin-bottom: 32px;
}

/* Lista de características */
.nosotros-feat {
    display: flex; gap: 16px; align-items: flex-start;
    margin-bottom: 20px;
}
.nosotros-feat-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--coral); flex-shrink: 0; margin-top: 8px;
}
.nosotros-feat span {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.75); line-height:1.6;
}

/* Bloque del founder */
.founder-block {
    display: flex; gap: 20px; align-items: center;
    margin-top: 48px; padding-top: 40px;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.founder-avatar {
    width: 72px; height: 72px; border-radius: 50%;
    overflow:hidden; flex-shrink:0;
    border: 2px solid rgba(255,255,255,0.15);
}
.founder-avatar img { width:100%; height:100%; object-fit:cover; }
.founder-name {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; letter-spacing: 2px;
}
.founder-role {
    font-size: 0.78rem; letter-spacing: 3px;
    color: var(--violet); text-transform: uppercase; margin-top: 2px;
}
.founder-quote {
    font-size: 0.85rem; color: rgba(255,255,255,0.4);
    font-style: italic; margin-top: 8px; line-height: 1.6;
}

/* ── GALERÍA / TRABAJOS ── */
#trabajos {
    padding: 120px 60px;
    position: relative;
}

.trabajos-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 300px 300px;
    gap: 4px;
}

/* Imagen grande ocupa las 2 filas */
.trabajo-item { position: relative; overflow: hidden; cursor: pointer; background: var(--gray2); }
.trabajo-item:first-child { grid-row: 1 / 3; }

.trabajo-item img {
    width:100%; height:100%; object-fit:cover;
    transition: transform .5s, filter .4s;
    filter: grayscale(20%);
}
.trabajo-item:hover img {
    transform: scale(1.07);
    filter: grayscale(70%) brightness(0.35);
}

/* Texto que aparece al hover */
.trabajo-overlay {
    position: absolute; inset:0;
    display:flex; flex-direction:column;
    align-items:center; justify-content:center;
    padding: 24px; text-align:center;
    opacity:0; transition: opacity .4s;
}
.trabajo-item:hover .trabajo-overlay { opacity:1; }
.trabajo-overlay h3 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(20px, 2.5vw, 36px);
    letter-spacing: 2px; margin-bottom: 8px;
}
.trabajo-overlay p {
    font-size: 0.8rem; color: rgba(255,255,255,0.6);
    letter-spacing: 2px; text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    #nosotros { grid-template-columns: 1fr; padding: 80px 24px; }
    #trabajos { padding: 80px 24px; }
    .trabajos-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .trabajo-item:first-child { grid-row: auto; }
}

/* ── CONTACTO ── */
#contacto {
    padding: 140px 60px;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 80px; align-items: start;
    position: relative; overflow: hidden;
}

/* Blob decorativo */
#contacto::before {
    content:''; position:absolute;
    top:-200px; left:-200px;
    width:600px; height:600px; border-radius:50%;
    background: radial-gradient(circle, rgba(123,47,255,0.12) 0%, transparent 70%);
    pointer-events:none;
}

.contact-big {
    font-family: 'Bebas Neue', sans-serif;
    font-size: clamp(56px, 8vw, 120px);
    line-height: 0.9; color: var(--white);
}
.contact-big span { color: var(--violet); }

.contact-sub {
    font-size: clamp(14px, 1.4vw, 18px);
    color: rgba(255,255,255,0.4);
    margin-top: 24px; line-height: 1.7;
    max-width: 380px;
}

/* Formulario */
.form-group {
    display: flex; flex-direction: column; gap: 4px;
    margin-bottom: 20px;
}
.form-group label {
    font-size: 0.72rem; letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
}
.form-group input,
.form-group textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--white);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1rem; padding: 14px 18px;
    outline: none; resize: none;
    transition: border-color .25s;
    border-radius: 8px;
}
.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--violet);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-submit {
    width: 100%; padding: 18px;
    background: var(--white); color: var(--black);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: 0.9rem;
    letter-spacing: 3px; text-transform: uppercase;
    border: none; cursor: pointer;
    transition: transform .25s, box-shadow .25s;
    margin-top: 8px;
    border-radius: 8px;
}
.btn-submit:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(255,255,255,0.18);
}

/* ── FOOTER ── */
footer {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 40px 60px;
    display: flex; align-items: center; justify-content: space-between;
}
.footer-logo {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 1.4rem; letter-spacing: 4px; color: var(--white);
}
.footer-copy {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.3); letter-spacing: 2px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a {
    font-size: 0.75rem; color: rgba(255,255,255,0.4);
    text-decoration: none; letter-spacing: 2px;
    text-transform: uppercase; transition: color .25s;
}
.footer-links a:hover { color: var(--white); }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    #contacto {
        grid-template-columns: 1fr;
        padding: 80px 24px;
    }
    .form-row { grid-template-columns: 1fr; }
    footer {
        flex-direction: column;
        gap: 24px; text-align: center;
        padding: 40px 24px;
    }
}