/* css/style.css */

/* 1. Variables y Reset */
:root {
    --color-primary: #ff0000;
    --color-bg: #000000;
    --color-white: #ffffff;
    --color-gray: #9ca3af;
    --color-zinc-900: #18181b;
    
    --font-display: 'Space Grotesk', sans-serif;
    --font-brutal: 'Anton', sans-serif;
    
    --container-width: 1440px;
    --header-height: 80px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--color-bg);
    color: var(--color-white);
    font-family: var(--font-display);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* 2. Utilidades Generales y Componentes Globales */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem; /* px-6 equiv */
    width: 100%;
}

.relative { position: relative; }
.relative-z { position: relative; z-index: 10; }

.font-brutal { font-family: var(--font-brutal); }
.uppercase { text-transform: uppercase; }

/* Ruido de fondo */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    background-image: url(https://lh3.googleusercontent.com/aida-public/AB6AXuAAmlt9yncPqJnYSpn7igIEaTtGOSiydmIJ_pVoQlwhigdIuvxQ6B51lyzuT3H-JBPlsFOH7rK_O01591lRQraROIDn9mmEkwVxnl6UJJnftnvIALJcAE2ml3G1y1N2tTwf9dhRArBIsT0E53IkXxTiKzvEipEEiCmLtW1opotUWxi9aaW5acc5lFZccJkHfnuf4hiUIgbJkK6qOQl3et4klTu8RssXlAejCpZgWHD9uRFUyGjOBoQCqYqKMs0TO9mfkqX8hnBByFCN);
    opacity: 0.05;
    pointer-events: none;
}

/* 3. Header y Navegación */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 40;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-logo {
    color: var(--color-primary);
    transform: scale(1.25);
}

.brand-name {
    font-family: var(--font-brutal);
    font-size: 1.5rem;
    letter-spacing: -0.05em;
}

.main-nav {
    display: none; /* Oculto en móvil por defecto */
    gap: 2.5rem;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    align-items: center;
}

.main-nav a:not(.btn-nav-cta):hover {
    color: var(--color-primary);
}

.btn-nav-cta {
    background-color: var(--color-white);
    color: black;
    padding: 0.25rem 1rem;
    transition: background-color 0.3s, color 0.3s;
}

.btn-nav-cta:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* Media Query: Header Desktop */
@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

/* 4. Hero Section */
/* css/style.css */

/* Busca tu clase .hero-section existente y actualízala así: */

.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
    position: relative;
    overflow: hidden;

    /* --- NUEVO CÓDIGO DE FONDO --- */
    
    /* 1. El degradado negro al 40% (0.4) va PRIMERO (arriba) */
    /* 2. La URL de la imagen va SEGUNDO (debajo) */
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.9)),
        url('/img/bg-hero.png');
    
    /* Asegura que la imagen cubra todo el espacio sin deformarse */
    background-size: cover;
    
    /* Centra la imagen */
    background-position: center;
    
    /* Opcional: Para que la imagen se quede fija al hacer scroll (efecto Parallax simple) */
    background-attachment: fixed;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: baseline;
}

.hero-initial {
    font-family: var(--font-brutal);
    /* Clamp: (min, preferred, max) */
    font-size: clamp(8rem, 20vw, 24rem); 
    line-height: 0.8;
    letter-spacing: -0.05em;
    user-select: none;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-family: var(--font-brutal);
    font-size: 3.75rem;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-left: -0.5rem;
}

.hero-cta-wrapper {
    margin-top: 1rem;
    max-width: 36rem;
}

.hero-description {
    font-size: 1.25rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 4px solid var(--color-primary);
    padding-left: 1rem;
}

.btn-primary {
    margin-top: 2rem;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-family: var(--font-brutal);
    font-size: 1.5rem;
    padding: 1rem 2.5rem;
    border: none;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-white);
    color: black;
}

.bg-accent-text {
    position: absolute;
    right: -5rem;
    bottom: 0;
    font-size: 30rem;
    font-family: var(--font-brutal);
    opacity: 0.05;
    user-select: none;
    pointer-events: none;
}

@media (min-width: 768px) {
    .hero-content { flex-direction: row; }
    .hero-title { font-size: 8rem; margin-left: -2rem; }
    .hero-description { font-size: 1.5rem; }
}

/* 5. About Section */
.about-section {
    padding: 6rem 0;
    border-top: 2px solid rgba(255,255,255,0.2);
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title-alt {
    font-size: 2.25rem;
    font-family: var(--font-brutal);
    text-transform: uppercase;
    line-height: 1.2;
}

.highlight {
    background-color: var(--color-primary);
    padding: 0 1rem;
    display: inline-block;
}

.about-text {
    font-size: 1.25rem;
    max-width: 42rem;
    color: var(--color-gray);
    margin-top: 1.5rem;
    font-weight: 300;
}

@media (min-width: 768px) {
    .section-title-alt { font-size: 4.5rem; }
    .about-text { font-size: 1.5rem; }
}

/* 6. Services Section */
.services-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    color: black;
}

.section-title {
    font-family: var(--font-brutal);
    font-size: 3rem;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: -0.05em;
}

.text-black { color: black; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    border: 2px solid black;
}

.service-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    cursor: default;
    border-bottom: 2px solid black;
    /* Brutalist feel: no smooth transition */
    transition: none; 
}

.service-card:last-child {
    border-bottom: none;
}

.service-icon {
    font-size: 3rem;
}

.service-title {
    font-family: var(--font-brutal);
    font-size: 1.875rem;
    text-transform: uppercase;
}

.service-card p {
    font-weight: 500;
}

/* Service Hover Effect */
.service-card:hover {
    background-color: #f00;
    color: white;
}

@media (min-width: 768px) {
    .section-title { font-size: 6rem; }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .service-card {
        border-bottom: none;
        border-right: 2px solid black;
    }
    
    .service-card:last-child {
        border-right: none;
    }
}

/* 7. Portfolio Section */
.portfolio-section {
    padding: 6rem 0;
    background-color: black;
}

.portfolio-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.portfolio-subtitle {
    font-weight: bold;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    display: none;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.project-card {
    position: relative;
    overflow: hidden;
    background-color: var(--color-zinc-900);
    border: 2px solid rgba(255,255,255,0.1);
    transition: border-color 0.3s;
}

.project-card:hover {
    border-color: var(--color-primary);
}

.project-image {
    aspect-ratio: 4/5;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.project-card:hover .project-image {
    filter: grayscale(0%);
}

.project-info {
    padding: 1.5rem;
}

.project-title {
    font-family: var(--font-brutal);
    font-size: 1.5rem;
    text-transform: uppercase;
}

.project-cat {
    font-size: 0.875rem;
    color: var(--color-gray);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
}

@media (min-width: 768px) {
    .portfolio-subtitle { display: block; }
    .portfolio-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 8. Process Section */
.process-section {
    padding: 6rem 0;
    border-top: 2px solid rgba(255,255,255,0.2);
}

.process-layout {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.process-main-title {
    font-family: var(--font-brutal);
    font-size: 3.75rem;
    text-transform: uppercase;
    line-height: 1;
}

.process-steps-col {
    display: flex;
    flex-direction: column;
}

.process-step {
    padding: 3rem;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    transition: background-color 0.3s, color 0.3s;
    cursor: default;
}

.process-step:last-child {
    border-bottom: none;
}

.process-step:hover {
    background-color: white;
    color: black;
}

.step-content {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.step-number {
    font-family: var(--font-brutal);
    font-size: 4.5rem;
    opacity: 0.2;
    transition: opacity 0.3s;
}

.process-step:hover .step-number {
    opacity: 1;
}

.step-title {
    font-family: var(--font-brutal);
    font-size: 2.25rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.step-desc {
    font-size: 1.25rem;
    max-width: 28rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.process-step:hover .step-desc {
    opacity: 1;
}

@media (min-width: 768px) {
    .process-layout { flex-direction: row; }
    .process-header-col { width: 33.33%; }
    .process-steps-col { width: 66.66%; border-left: 2px solid rgba(255,255,255,0.2); }
    .process-main-title { position: sticky; top: 8rem; }
    .step-number { font-size: 8rem; }
}

/* 9. Footer */
.main-footer {
    padding: 8rem 0;
    background-color: var(--color-primary);
    color: white;
    overflow: hidden;
    position: relative;
    text-align: center;
}

.footer-cta-title {
    font-family: var(--font-brutal);
    font-size: 3.75rem;
    line-height: 1;
    margin-bottom: 3rem;
    user-select: none;
    letter-spacing: -0.05em;
}

.footer-actions {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.btn-footer {
    background-color: black;
    color: white;
    font-family: var(--font-brutal);
    font-size: 1.875rem;
    padding: 1.5rem 3rem;
    transition: all 0.3s;
}

.btn-footer:hover {
    background-color: white;
    color: black;
}

.footer-address {
    text-align: left;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 4px solid black;
    padding-left: 1rem;
}

.footer-bg-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.1;
    pointer-events: none;
    user-select: none;
}

.footer-bg-text span {
    font-family: var(--font-brutal);
    font-size: 40rem;
    line-height: 1;
}

@media (min-width: 768px) {
    .footer-cta-title { font-size: 12rem; }
    .footer-actions { flex-direction: row; }
}

/* 10. Legal Footer */
.legal-footer {
    background-color: black;
    padding: 2rem 0;
    border-top: 2px solid rgba(255,255,255,0.1);
}

.legal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a:hover {
    color: var(--color-primary);
}

@media (min-width: 768px) {
    .legal-inner { flex-direction: row; }
}