/* ===== VARIABLES BASE - TENDENCIA 2026 MINIMALISTA ===== */
:root {
    /* Paleta de color minimalista */
    --black: #030303;
    --black-soft: #080808;
    --white: #FFFFFF;
    --white-soft: #F4F4F4;
    --gray-light: #E0E0E0;
    --gray-dark: #222222;

    /* Acento vibrante (Naranja neón) */
    --accent-primary: #FF4500;
    --accent-secondary: #FF6600;
    --accent-glow: rgba(255, 69, 0, 0.3);

    /* Sistema tipográfico Oversized */
    --font-display: 'Clash Display', 'Syne', sans-serif;
    --font-body: 'Inter', 'Satoshi', sans-serif;
    --font-mono: 'Space Mono', monospace;

    /* Escala tipográfica extrema (Mobile to Desktop) */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1.125rem;
    --text-lg: 1.5rem;
    --text-xl: clamp(2rem, 4vw, 3rem);
    --text-2xl: clamp(2.5rem, 6vw, 4.5rem);
    --text-3xl: clamp(3.5rem, 8vw, 6.5rem);
    --text-huge: clamp(4rem, 12vw, 9rem);

    /* Espaciado Breathable Edge-to-edge */
    --edge-padding: clamp(2rem, 8vw, 6rem);
    --section-gap: clamp(6rem, 15vh, 12rem);
    --container-max: 1800px;

    /* Efectos y animaciones fluidas */
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET VISUAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    background: var(--black);
    color: var(--white);
}

body {
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--black);
}

/* ===== TIPOGRAFÍA ===== */
h1,
h2,
h3,
h4,
h5,
h6,
.display-text {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

h1 {
    font-size: var(--text-huge);
}

h2 {
    font-size: var(--text-3xl);
    margin-bottom: 2rem;
}

h3 {
    font-size: var(--text-2xl);
}

p {
    font-size: var(--text-base);
    color: var(--gray-light);
    max-width: 65ch;
    margin-bottom: 2rem;
}

p.lead {
    font-size: var(--text-lg);
    line-height: 1.4;
    color: var(--white-soft);
    max-width: 800px;
}

/* ===== LAYOUT & UTILIDADES ===== */
.edge-container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--edge-padding);
}

.section {
    padding: var(--section-gap) 0;
    position: relative;
}

/* Espaciadores (Whitespace) */
.spacer-sm {
    height: 2rem;
}

.spacer-md {
    height: 5rem;
}

.spacer-lg {
    height: 10rem;
}

/* ===== BOTONES MINIMALISTAS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1.25rem 3rem;
    background: transparent;
    color: var(--white);
    border: 1px solid var(--gray-dark);
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--text-base);
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    transform: translateY(100%);
    transition: transform 0.4s var(--transition-smooth);
    z-index: -1;
}

.btn:hover {
    color: var(--black);
    border-color: var(--white);
}

.btn:hover::before {
    transform: translateY(0);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--black);
    border-color: var(--accent-primary);
    font-weight: 600;
}

.btn-primary::before {
    background: var(--white);
}

.btn-primary:hover {
    color: var(--black);
    border-color: var(--white);
}

/* ===== HEADER ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 2rem var(--edge-padding);
    transition: all 0.5s var(--transition-smooth);
    mix-blend-mode: difference;
    /* Efecto tendencia 2026 */
}

header.scrolled {
    padding: 1rem var(--edge-padding);
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(12px);
    mix-blend-mode: normal;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo-link {
    display: flex;
    align-items: center;
    z-index: 101;
}

.nav-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.nav-menu {
    display: flex;
    gap: 3rem;
}

.nav-menu a {
    color: var(--white);
    text-decoration: none;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--white);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--transition-smooth);
}

.nav-menu a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1;
    /* Establece el contexto de apilamiento para los fondos */
    padding: var(--edge-padding);
    padding-top: calc(var(--edge-padding) + 120px);
    /* Ajuste por el header fixed */
    overflow: hidden;
    background: var(--black);
    /* Asegura que no se cruce con el fondo del body */
}

/* ===== DYNAMIC GEOMETRIC BG ===== */
.geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -2;
    background: var(--black);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.7;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: var(--accent-primary);
    top: -20%;
    right: -10%;
    animation-duration: 25s;
}

.orb-2 {
    width: 50vw;
    height: 50vw;
    max-width: 700px;
    max-height: 700px;
    background: #ff1a1a;
    bottom: -15%;
    left: -15%;
    animation-delay: -5s;
    animation-duration: 30s;
}

.orb-3 {
    width: 40vw;
    height: 40vw;
    max-width: 500px;
    max-height: 500px;
    background: var(--accent-secondary);
    top: 30%;
    left: 20%;
    animation-delay: -10s;
    animation-duration: 20s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(15vw, -10vh) scale(1.1);
    }

    66% {
        transform: translate(-10vw, 15vh) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1.05);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(3, 3, 3, 0.8) 100%);
    z-index: 3;
}

.hero-content {
    position: relative;
    z-index: 4;
    max-width: 1400px;
}

.hero-title {
    margin-bottom: 2rem;
    word-break: break-word;
    color: var(--white);
    line-height: 0.85 !important;
    /* Extremely tight leading */
    font-size: clamp(5rem, 15vw, 12rem) !important;
    /* MASSIVE TEXT */
    letter-spacing: -0.04em;
    text-transform: uppercase;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-accent {
    color: var(--accent-primary);
}

.hero-subtitle {
    font-size: var(--text-lg);
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 4rem;
    color: var(--white-soft);
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ===== SECTION TITLES & LAYOUT ===== */
.section {
    padding: var(--section-padding) var(--edge-padding);
    position: relative;
}

.section-title {
    font-size: var(--text-2xl);
    text-transform: uppercase;
    margin-bottom: 4rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

/* ===== STATS BAR ===== */
.stats {
    padding: 2rem var(--edge-padding);
    background-color: var(--dark-grey);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--accent-primary);
    line-height: 1;
}

.stat-text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--white-soft);
    margin-top: 0.5rem;
}

/* ===== BENTO GRID SYSTEM ===== */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.bento-item {
    background: var(--dark-grey);
    border-radius: 20px;
    padding: 2.5rem;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s ease, border-color 0.4s ease;
    display: flex;
    flex-direction: column;
}

.bento-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    background: var(--black);
    border: none;
    padding: 0;
    justify-content: center;
}

.bento-large p {
    font-size: var(--text-base);
    color: var(--white-soft);
    max-width: 80%;
}

.bento-large h3 {
    font-size: var(--text-xl);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.bento-tall {
    grid-column: span 1;
    grid-row: span 2;
    padding: 0;
}

.bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: filter 0.5s ease;
}

.bento-image:hover img {
    filter: grayscale(0%) contrast(1);
}

.bento-accent {
    background: var(--accent-primary);
    color: var(--black);
}

.bento-accent h4 {
    color: var(--black);
    font-size: var(--text-lg);
    margin-bottom: 1rem;
}

.bento-dark p {
    color: var(--white-soft);
}

.bento-dark h4 {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
}

/* SERVICES BENTO */
.services-bento {
    grid-template-columns: repeat(3, 1fr);
}

.service-bento-card {
    padding: 3rem;
    min-height: 400px;
    justify-content: flex-end;
}

.service-bento-content {
    position: relative;
    z-index: 2;
}

.service-bento-card h3 {
    font-size: var(--text-lg);
    margin-bottom: 1rem;
    line-height: 1.1;
}

.service-bento-card p {
    color: var(--white-soft);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.service-bento-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

.bg-hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.1;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.service-bento-card:hover .bg-hover-image {
    opacity: 0.4;
    filter: grayscale(50%);
    transform: scale(1.05);
}

.bento-wide {
    grid-column: span 2;
}

/* Responsive Resets */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large,
    .bento-wide {
        grid-column: span 2;
    }

    .services-bento {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .bento-grid,
    .services-bento {
        grid-template-columns: 1fr;
    }

    .bento-large,
    .bento-tall,
    .bento-wide {
        grid-column: span 1;
        grid-row: span 1;
    }

    .stats-container {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== PORTFOLIO MINIMAL ===== */
.grid-minimal {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.portfolio-item-minimal {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: var(--dark-grey);
    aspect-ratio: 4/3;
}

.portfolio-item-minimal img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.6s ease;
}

.portfolio-item-minimal:hover img {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.portfolio-info-minimal {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item-minimal:hover .portfolio-info-minimal {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.portfolio-info-minimal h3 {
    font-size: var(--text-xl);
    color: var(--white);
    margin: 0;
}

/* ===== CLIENTS MARQUEE ===== */
.clients {
    padding: 2rem 0;
    background: var(--dark-grey);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.marquee-container {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    animation: scroll-marquee 25s linear infinite;
    align-items: center;
}

.marquee-content span {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.marquee-content span:hover {
    color: var(--white);
    -webkit-text-stroke: 1px var(--white);
}

.marquee-content .separator {
    color: var(--accent-primary);
    -webkit-text-stroke: 0;
    margin: 0 3rem;
    font-weight: 300;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

/* ===== CONTACT SECTION ===== */
.contact-bento {
    background: var(--black-soft);
    border-radius: 20px;
    padding: 5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 4rem;
}

.massive-text {
    font-family: var(--font-display);
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 0.9;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--white);
}

.contact-header p {
    font-size: var(--text-lg);
    color: var(--white-soft);
    max-width: 400px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 300px;
}

.contact-link-item {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
    transition: border-color 0.3s ease;
    text-decoration: none;
}

.contact-link-item:hover {
    border-color: var(--accent-primary);
}

.link-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--white-soft);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.link-value {
    font-size: var(--text-xl);
    color: var(--white);
    font-weight: 500;
    transition: color 0.3s ease;
}

a.contact-link-item:hover .link-value {
    color: var(--accent-primary);
}

/* ===== FOOTER MINIMAL ===== */
.footer-minimal {
    padding: 4rem var(--edge-padding) 2rem;
    background: var(--black);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    letter-spacing: -0.05em;
}

.footer-socials {
    display: flex;
    gap: 2rem;
}

.footer-socials a {
    font-size: var(--text-lg);
    font-weight: 500;
    position: relative;
    color: var(--white);
    text-decoration: none;
}

.footer-socials a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.footer-socials a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--white-soft);
    font-size: 0.9rem;
}

/* RESPONSIVE ADDITIONS */
@media (max-width: 1024px) {
    .contact-bento {
        flex-direction: column;
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .grid-minimal {
        grid-template-columns: 1fr;
    }

    .contact-bento {
        padding: 2rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
}

/* ===== HERO MOCKUP SPECIFIC LAYOUT ===== */
.hero-container-mockup {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin-top: 80px;
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 80px);
}

.hero-top-row {
    flex: 1;
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.hero-title {
    word-break: keep-all;
    /* Evita partituras de palabras */
    overflow-wrap: normal;
    hyphens: none;
    font-size: clamp(3rem, 10vw, 8rem);
    line-height: 1;
}

/* ===== FULLSCREEN 3D BACKGROUND CARET ===== */
.hero-text-content {
    padding: 6rem 0 4rem 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-3d-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    z-index: -1;
    /* Detras de edge-container y textos, delante de grey-waves que tienen -2 */
    pointer-events: none;
    overflow: hidden;
}

.hero-3d-bg canvas {
    width: 100vw !important;
    height: 100% !important;
    display: block;
    object-fit: cover;
}

/* ===== DYNAMIC WAVES DELETED ===== */

.hero-bento-row {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    min-height: 200px;
}

.hero-bento-box {
    padding: 2rem var(--edge-padding);
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-bento-box:last-child {
    border-right: none;
    padding: 0;
}

.bento-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--white);
}

.bento-cities {
    font-size: 0.9rem;
    color: var(--white-soft);
    letter-spacing: 0.1em;
}

.explore-header {
    margin-bottom: 1rem;
}

.explore-thumbnails {
    display: flex;
    gap: 1.5rem;
}

.thumb-item {
    flex: 1;
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    height: 120px;
    background: var(--dark-grey);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.thumb-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    background-size: cover;
    background-position: center;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.thumb-item:hover .thumb-img {
    opacity: 0.6;
}

.thumb-bg-1 {
    background-image: linear-gradient(to right, #001f3f, #0052cc);
}

.thumb-bg-2 {
    background-image: linear-gradient(to right, #1a1a1a, #4d4d4d);
}

.thumb-bg-3 {
    background-image: linear-gradient(to right, #003366, #0099ff);
}

.thumb-title {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.thumb-num {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    font-size: 0.7rem;
    color: var(--white-soft);
}

.hero-bento-contact .btn-block {
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    background: #0d6efd;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.hero-bento-contact .btn-block:hover {
    background: #0b5ed7;
    color: var(--white);
}

/* Adjustments */
.hero-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 10vmin 10vmin;
    z-index: 2;
}

@media (max-width: 1024px) {
    .hero-top-row {
        flex-direction: column;
    }

    .hero-text-content {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .hero-visual-content {
        padding: 4rem 2rem;
    }

    .hero-3d-shape {
        width: 80%;
        transform: none;
        animation: none;
        filter: drop-shadow(0 0 30px rgba(0, 102, 255, 0.3));
    }

    .hero-bento-row {
        grid-template-columns: 1fr;
    }

    .hero-bento-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        min-height: 150px;
    }
}