@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@1,400&family=Inter:wght@400;700;800&display=swap');

/* --- Variables y Estilos Globales --- */
:root {
    --primary-color: #ffffff;
    --background-color: #0a0a0a;
    --secondary-text: #a3a3a3;
    --accent-color: #00ff6a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--primary-color);
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    overflow-x: hidden;
}

.main-content {
    opacity: 0;
    transition: opacity 1s ease;
}

body.loaded .main-content {
    opacity: 1;
}

/* --- CURSOR: SOLO PARA ESCRITORIO --- */

/* Usamos este Media Query para que el cursor NI EXISTA en móviles */
@media (pointer: fine) {
    body, a, button {
        cursor: none;
    }

    .custom-cursor {
        position: fixed;
        top: 0;
        left: 0;
        width: 10px;
        height: 10px;
        background-color: var(--primary-color);
        border-radius: 50%;
        mix-blend-mode: difference;
        z-index: 2000;
        pointer-events: none;
        transform: translate(-50%, -50%);
        transition: width 0.3s ease, height 0.3s ease, border 0.3s ease, background-color 0.3s ease;
        display: block;
    }

    .custom-cursor.grow {
        width: 50px;
        height: 50px;
        background-color: transparent;
        border: 1px solid var(--primary-color);
        transition: opacity 0.5s ease, width 0.3s ease, height 0.3s ease; /* Añadimos opacity */
    opacity: 1; /* Visible por defecto */
    }
}

/* --- COMPORTAMIENTO PARA MÓVIL (TÁCTIL) --- */
@media (pointer: coarse) {
    .custom-cursor {
        /* Esto elimina el punto blanco visualmente y de la estructura */
        display: none !important; 
    }
    
    body, a, button {
        /* Esto asegura que el sistema use el puntero táctil normal */
        cursor: auto !important;
    }
}
/* --- Pantalla de Carga --- */
/* --- Pantalla de Carga (Versión High Performance) --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--background-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.loader-text {
    font-family: inherit; /* Usará la fuente de tu web */
    color: #ffffff;
    font-size: 1.2rem;
    letter-spacing: 0.6rem;
    font-weight: 300;
    text-transform: uppercase;
    /* Animación sutil de respiración */
    animation: pulseText 2s ease-in-out infinite;
}

.loader-text span {
    font-weight: 800;
}

.loader-line {
    width: 100px;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

/* La línea que recorre de izquierda a derecha */
.loader-line::after {
    content: '';
    position: absolute;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #ffffff; /* O el color principal de tu marca */
    animation: lineRun 1.5s infinite cubic-bezier(0.65, 0.05, 0.36, 1);
}

@keyframes pulseText {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

@keyframes lineRun {
    0% { left: -100%; }
    50% { left: 0; }
    100% { left: 100%; }
}

/* Ajuste opcional para móviles muy pequeños */
@media (max-width: 480px) {
    .loader-text {
        font-size: 1rem; /* Un poco más pequeño para que el tracking (espaciado) no rompa */
        letter-spacing: 0.4rem;
    }
    .loader-line {
        width: 80px; /* Acortamos un poco la línea */
    }
}

/* --- Encabezado y Navegación --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem 5%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    mix-blend-mode: difference;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.header-hidden {
    transform: translateY(-100%);
}

header, header a, .hamburger .bar {
    color: white;
    background-color: transparent;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}
.logo a {
    text-decoration: none;
    display: flex; 
    align-items: center;
}

.logo-text {
    font-weight: bold;
    font-size: 1.2rem;
}

.desktop-nav {
    display: flex;
    width: 100%;
    justify-content: space-between;
}
.desktop-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.desktop-nav a {
    text-decoration: none;
    transition: opacity 0.3s;
}
.desktop-nav a:hover {
    opacity: 0.7;
}

.hamburger {
    display: none; border: none; background: none; z-index: 1001;
}
.hamburger .bar {
    display: block; width: 25px; height: 2px; margin: 5px auto;
    background-color: white; transition: all 0.3s ease-in-out;
}


/* --- ESTILOS DEL NUEVO MENÚ MÓVIL --- */

.mobile-nav {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background-color: #0a0a0a;
    z-index: 999;
    padding: 2.5rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-nav-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.mobile-nav::after {
    content: 'Aluja Studio';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    font-size: 20vw;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.05);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease 0.5s;
}

.mobile-nav.active::after {
    opacity: 1;
}

.primary-nav-links {
    list-style: none;
    margin-top: 5rem;
}

.primary-nav-links li {
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.primary-nav-links a {
    display: block;
    color: white;
    text-decoration: none;
    font-size: clamp(2.5rem, 10vw, 4.5rem);
    font-weight: 700;
    position: relative;
    padding: 0.25rem 0;
    opacity: 0;
    transform: translateY(100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.primary-nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.primary-nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-number {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--secondary-text);
    margin-right: 1.5rem;
    display: inline-block;
}

.mobile-nav.active .primary-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav.active .primary-nav-links li:nth-child(1) a { transition-delay: 0.3s; }
.mobile-nav.active .primary-nav-links li:nth-child(2) a { transition-delay: 0.4s; }
.mobile-nav.active .primary-nav-links li:nth-child(3) a { transition-delay: 0.5s; }

.mobile-nav-footer {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.6s, transform 0.5s ease 0.6s;
}

.mobile-nav.active .mobile-nav-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-footer h4 {
    color: var(--secondary-text);
    font-size: 0.8rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.mobile-nav-footer ul {
    list-style: none;
}
.mobile-nav-footer li {
    margin-bottom: 0.5rem;
}
.mobile-nav-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    transition: opacity 0.3s;
}
.mobile-nav-footer a:hover {
    opacity: 0.7;
}

.hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav.active { transform: translateX(0); }
body.no-scroll { overflow: hidden; }

/* ============================================= */
/* --- HERO SECTION --- */
/* ============================================= */

/* --- Contenedor Principal --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 0 5%;
    overflow: hidden; /* Evita que el video se desborde */
}

/* --- Fondo de Video --- */
.hero-video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Posiciona el video detrás de todo */
}

.hero-video-background video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que el video cubra todo el contenedor */
    opacity: 1;
}

/* --- Capa de Superposición (Overlay) --- */
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Entre el video y el contenido */
    /* Crea una viñeta para oscurecer los bordes y centrar la atención */
    background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0.674), rgba(0, 0, 0, 0.13) 90%);
}

/* --- Contenido Principal (Texto) --- */
.hero-content {
    max-width: 1000px;
    z-index: 1; /* Asegura que el contenido esté por encima del overlay */
}

.hero-content h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 500;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: #f7f7f7;
}

.hero-content .italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    margin-right: 0.4em;
}

.hero-content p {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--primary-color);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.5;
}

/* --- Elementos Inferiores (Trusted by y Logos) --- */
.trusted-by {
    position: absolute;
    bottom: 9rem;
    left: 50%;
    text-align: center;
    width: 100%;
}

.trusted-by p {
    font-size: 0.8rem;
    color: var(--primary-color);
}

.logo-carousel {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    width: 60%;
    max-width: 900px;
    overflow: hidden;
    white-space: nowrap;
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logos-slide {
    display: inline-block;
    animation: 20s slide infinite linear; /* Aumentado a 20s para un movimiento más lento */
}

.logos-slide img {
    height: 40px;
    margin: 0 40px;
    filter: grayscale(1);
    opacity: 1;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logos-slide img:hover {
    filter: grayscale(0);
    opacity: 1;
}

/* ============================================= */
/* --- ANIMACIONES DE ENTRADA --- */
/* ============================================= */

/* --- Animación de las líneas del H1 --- */
@keyframes slideUp {
    from { transform: translateY(110%); }
    to { transform: translateY(0); }
}

.line-wrapper {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.line {
    display: inline-block;
    transform: translateY(110%);
    animation: slideUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* --- Animación para elementos no centrados (párrafo) --- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    opacity: 0;
    animation: fadeInUp 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* --- Animación para elementos centrados (Trusted By y Logos) --- */
@keyframes fadeInUpCentered {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.fade-in-up-centered {
    opacity: 0;
    animation: fadeInUpCentered 1s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

/* --- Retrasos de Animación (Staggering) --- */
h1 .line-wrapper:nth-of-type(1) .line { animation-delay: 0.2s; }
h1 .line-wrapper:nth-of-type(2) .line { animation-delay: 0.4s; }
h1 .line-wrapper:nth-of-type(3) .line { animation-delay: 0.6s; }

.hero-content p.fade-in-up { animation-delay: 0.9s; }
.trusted-by.fade-in-up-centered { animation-delay: 1.1s; }
.logo-carousel.fade-in-up-centered { animation-delay: 1.2s; }


/* --- Animación del carrusel de logos --- */
@keyframes slide {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* --- Sección de Proyectos --- */
.projects-section {
    padding: 8rem 0; display: flex; flex-direction: column;
    gap: 4rem; overflow: hidden;
}
.projects-row-wrapper { position: relative; }
.project-category-title {
    font-size: 1.5rem; font-weight: bold; color: var(--primary-color);
    margin: 0 0 1.5rem 5%;
}
.projects-row { display: flex; flex-wrap: nowrap; gap: 2rem; padding: 0 1rem; user-select: none; touch-action: pan-y; cursor: grab;  }
.project-card {
    flex: 0 0 auto; width: 45vw; max-width: 600px; height: 60vh;
    position: relative; border-radius: 0; overflow: hidden;
}
.projects-row.active {
    cursor: grabbing;
}
.project-card:hover { transform: scale(1.02); }
.project-card:hover .project-info { opacity: 1; transform: translateY(0); }
.project-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    pointer-events: none; transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-info {
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 2rem 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    opacity: 0; transform: translateY(15px);
    transition: opacity 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.project-info h3 { font-size: 1.5rem; font-weight: bold; color: var(--primary-color); margin: 0 0 0.25rem 0; }
.project-info p { font-size: 1rem; color: var(--secondary-text); margin: 0; }


/* --- NUEVA SECCIÓN DE CONTACTO MÁS MODERNA --- */
.contact-new-section {
    position: relative;
    padding: 10rem 5%;
    border-top: 1px solid #727272; /* Borde superior como en tu CTA */
    border-bottom: 1px solid #2a2a2a; /* Borde inferior */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh; /* Para que ocupe buena parte de la pantalla */
}

/* El interactive-background ya lo tienes, solo asegúrate de que esté dentro de esta sección también */

.contact-new-section .interactive-background {
    z-index: 1; /* Asegura que esté detrás del contenido */
}

.contact-container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.contact-header {
    margin-bottom: 5rem;
}

.contact-pre-heading {
    font-size: 1rem;
    color: var(--accent-color); /* Verde brillante para el pre-encabezado */
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-weight: 500;
}

.contact-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--primary-color);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem; /* Espacio entre las tarjetas */
}

.contact-card {
    background: rgba(19, 19, 19, 0.5); /* Fondo semitransparente como tu CTA */
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.4s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 48px 0 rgba(0, 0, 0, 0.5);
}

.card-title {
    font-size: 1.8rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.card-description {
    font-size: 1rem;
    color: var(--secondary-text);
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1; /* Para que ocupe el espacio disponible y los botones se alineen */
}

/* Nuevos estilos de botones para las tarjetas */
.btn-primary-alt, .btn-secondary-alt {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-primary-alt {
    background-color: var(--accent-color);
    color: var(--background-color);
}

.btn-primary-alt:hover {
    background-color: #00e65c; /* Un verde un poco más claro al pasar el ratón */
    transform: translateY(-3px);
}

.btn-primary-alt svg {
    color: var(--background-color); /* Asegura que el SVG sea oscuro */
    transition: transform 0.3s ease;
}

.btn-primary-alt:hover svg {
    transform: translateX(5px);
}

.btn-secondary-alt {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary-alt:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-color); /* Borde de color acento al pasar el ratón */
    transform: translateY(-3px);
}

.btn-secondary-alt svg {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.btn-secondary-alt:hover svg {
    transform: translateX(5px);
    color: var(--accent-color);
}


.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto; /* Empuja los enlaces al final de la tarjeta */
}

.social-btn {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.social-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.social-btn:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Responsive para la nueva sección de contacto */
@media (max-width: 768px) {
    .contact-new-section {
        padding: 6rem 5%;
        min-height: auto;
    }

    .contact-header {
        margin-bottom: 3rem;
    }

    .contact-heading {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-card {
        padding: 2.5rem 1.5rem;
    }
}

/* --- Footer --- */
footer {
    padding: 6rem 5% 4rem; border-top: 1px solid #2a2a2a;
}
.footer-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; flex-wrap: wrap; }
.footer-copyright { flex-grow: 1; }
.footer-copyright p { color: var(--secondary-text); font-size: 0.9rem; margin: 0; }
.footer-links { display: flex; gap: 5rem; }
.footer-column h4 { font-size: 0.9rem; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; color: var(--primary-color); margin: 0 0 1.5rem 0; }
.footer-column ul { list-style: none; padding: 0; margin: 0; }
.footer-column li { margin-bottom: 0.85rem; }
.footer-column a { color: var(--secondary-text); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer-column a:hover { color: var(--primary-color); }
@media (max-width: 900px) { .footer-content { flex-direction: column; } }
@media (max-width: 500px) { .footer-links { flex-direction: column; gap: 2.5rem; } }


/* --- Sección "Sobre mí" --- */
.about-section {
    display: flex; flex-direction: column; justify-content: center; align-items: center;
padding: 12rem 4% 2rem 4%; background-color: #c7c7be;
    text-align: left; min-height: 80vh; position: relative;
}
.availability-badge {
    display: flex; align-items: center; gap: 8px; background-color: #1c1c1c;
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem;
    color: var(--secondary-text); border: 1px solid #2a2a2a; margin-bottom: 4rem;
}
.pulsing-dot { width: 8px; height: 8px; background-color: var(--accent-color); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(0, 255, 106, 0.7); } 70% { box-shadow: 0 0 0 10px rgba(0, 255, 106, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 255, 106, 0); } }
.about-content { max-width:1100px;}
.about-content p {
    font-size: clamp(1.2rem, 2vw, 2.2rem); line-height: 1.4;
    margin-bottom: 5rem; font-family: 'Inter', sans-serif; color: #000;
}
.about-content .italic-serif, .tagline .italic-serif { font-family: '', serif; font-style: italic; font-weight: 400; color: #0a0a0a;}
.about-content .muted { color: #e0e0e0; }
.tagline { font-size: clamp(1rem, 2.5vw, 1.5rem); color: #888; margin-top: 4rem; }
.reveal-text { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.reveal-text.visible { opacity: 1; transform: translateY(0); }
p.reveal-text:nth-child(2) { transition-delay: 0.2s; }
p.reveal-text:nth-child(3) { transition-delay: 0.4s; }
h2.reveal-text { transition-delay: 0.6s; }

/* Título reutilizable para las nuevas secciones */
.section-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-text);
    text-align: center;
    margin-bottom: 4rem;
}


/* 2. Sección de Enfoque (Proceso) */
.approach-section {
    padding: 8rem 5%;
    position: relative; /* Esencial para que las capas de fondo funcionen */
    overflow: hidden; /* Evita que los gradientes se desborden */

    /* El fondo es una combinación de 3 gradientes radiales sobre un color base */
    background-color: #0a0a0a;
    background-image: 
        /* Luz blanca suave arriba a la izquierda */
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
        /* Luz gris en el medio a la derecha */
        radial-gradient(circle at 85% 60%, rgba(180, 180, 180, 0.1) 0%, transparent 30%),
        /* Sombra oscura abajo al centro */
        radial-gradient(circle at 50% 90%, rgba(0, 0, 0, 0.2) 0%, transparent 40%);
}

/* --- INICIO DEL CAMBIO: Añade la capa de grano y ajusta el contenido --- */

/* Esta es la capa que genera la textura de grano */
.approach-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Se coloca por encima del fondo, pero por debajo del texto */
    
    /* Ruido generado con SVG y repetido */
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
    
    opacity: 0.05; /* La opacidad del grano, ajústala a tu gusto (0.02 es muy sutil, 0.1 es más notable) */
    pointer-events: none; /* Evita que la capa interfiera con el ratón */
}

/* Aseguramos que el contenido de la sección esté por encima de la capa de grano */
.approach-section .section-title,
.approach-section .approach-steps {
    position: relative;
    z-index: 2;
}

/* --- FIN DEL CAMBIO --- */

.approach-steps {
    max-width: 900px;
    margin: 0 auto;
}

.approach-step {
    padding: 3rem 0;
    border-bottom: 1px solid #2a2a2a;
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    align-items: center;
}

.approach-step:first-child {
    padding-top: 0;
}

.approach-step:last-child {
    border-bottom: none;
}

.step-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-text);
}

.approach-step h3 {
    grid-column: 2;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1;
}

.approach-step p {
    grid-column: 2;
    padding-top: 1rem;
    line-height: 1.7;
    color: var(--secondary-text);
}

/* --- FLECHA DE SCROLL EN 'V' CON ANIMACIÓN DE BARRIDO Y ESTELA --- */

@media (min-width: 769px) { /* La flecha solo aparecerá en pantallas de más de 768px */

    .scroll-down-arrow {
        position: relative;
        left: 50%;
        width: 20px;
        height: 20px;
        margin-top: 2rem;
        

        /* Hacemos el contenedor invisible, la magia la hacen los pseudo-elementos */
    }

    /* Usamos ::before y ::after para dibujar las dos líneas de la 'V' */
    .scroll-down-arrow::before,
    .scroll-down-arrow::after {
        content: '';
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        border-style: solid;
        border-color: var(--primary-color);
        border-width: 0 2px 2px 0; /* Solo los bordes derecho e inferior */
        transform: rotate(45deg);
        
        /* Aplicamos la animación */
        animation: slide-arrow 2s infinite ease-in-out;
    }
    
    /* La estela es el pseudo-elemento ::after, con menor opacidad y retraso */
    .scroll-down-arrow::after {
        opacity: 0.3;
        animation-delay: 0.2s; /* El retraso crea el efecto de estela */
    }

    /* Nueva animación de "barrido" hacia abajo */
    @keyframes slide-arrow {
        0% {
            opacity: 0;
            transform: translateY(-15px) rotate(45deg);
        }
        50% {
            opacity: 1;
        }
        100% {
            opacity: 0;
            transform: translateY(15px) rotate(45deg);
        }
    }
}
/* --- INICIO: NUEVAS SECCIONES 'SOBRE MÍ' (EQUIPO Y FILOSOFÍA) --- */

/* Título reutilizable para las nuevas secciones */
.section-title {
    font-size: 1rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--secondary-text);
    text-align: center;
    margin-bottom: 4rem;
}

/* 1. Sección de Equipo */
.team-section {
padding: 12rem 4% 2rem 4%;
    background-color: #101010;
}

.team-grid {
    display: grid;
    /* Crea columnas automáticas que se adaptan al espacio */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: 8rem;
}

.team-member {
    text-align: center;
}

.team-member-photo {
    overflow: hidden; /* Oculta el sobrante de la imagen en el hover */
    margin-bottom: 1.5rem;
}

.team-member-photo img {
    width: 100%;
    display: block;
    filter: grayscale(100%); /* Imágenes en blanco y negro por defecto */
    transition: transform 0.4s ease, filter 0.4s ease;
}

.team-member:hover .team-member-photo img {
    transform: scale(1.05); /* Sutil efecto de zoom */
    filter: grayscale(0%);   /* La imagen recupera el color */
}

.team-member h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: var(--secondary-text);
    font-size: 0.9rem;
}

/* 2. Sección de Filosofía */
.philosophy-section {
    padding-top: 2rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.philosophy-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.philosophy-item {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding-top: 0.2rem;
    border-top: 1px solid #2a2a2a;
}
.philosophy-list div:first-child.philosophy-item {
    border-top: none; /* La primera no necesita línea superior */
    padding-top: 0;
}

.ph-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-text);
}

.philosophy-item h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.philosophy-item p {
    grid-column: 2; /* <-- AÑADE ESTA LÍNEA */
    line-height: 1.7;
    color: var(--secondary-text);
}


/* 4. Responsive para las nuevas secciones */
@media (max-width: 768px) {
    .philosophy-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    /* Reduce el espacio de la primera sección */
.about-section {
    min-height: auto; /* Anula la altura mínima en móvil */
}

/* Reduce el espacio de la sección de Equipo */
.team-section {
padding: 4rem 5%;
}

/* Reduce el espacio de la sección de Filosofía */
.philosophy-section {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Reduce el espacio del CTA final */
.about-cta {
    padding-top: 6rem;
    padding-bottom: 6rem;
}

}
/* --- FIN: NUEVAS SECCIONES 'SOBRE MÍ' --- */


/* 4. Responsive para las nuevas secciones */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .approach-step {
        grid-template-columns: 1fr; /* Apila los elementos */
        gap: 1rem;
        padding: 2rem 0;
    }

    .approach-step h3, .approach-step p {
        grid-column: 1;
    }
}


/* --- FIN: NUEVOS ESTILOS PARA LA PÁGINA "SOBRE MÍ" --- */






/* ============================================= */
/* --- ESTILOS PÁGINA: PROYECTOS (ARCHIVE) --- */
/* ============================================= */

/* Contenedor principal con efecto de grano (Noise) */
.projects-archive-page {
    position: relative;
    background-color: var(--background-color);
    min-height: 100vh;
    padding-top: 15vh; /* Espacio para el header */
}

/* Reutilizamos el efecto de ruido del Index para consistencia */
.projects-archive-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
}

/* --- 1. HERO DE ARCHIVO --- */
.archive-hero {
    position: relative;
    z-index: 2;
    padding: 0 5% 8rem 5%;
    text-align: left;
    max-width: 1400px;
    margin: 0 auto;
}

.archive-hero h1 {
    font-size: clamp(3rem, 8vw, 7rem);
    line-height: 1;
    margin-bottom: 2rem;
    font-weight: 700;
}

.archive-hero .italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: var(--secondary-text); /* Opcional: un tono más suave para la itálica */
}

.archive-hero p {
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    color: var(--secondary-text);
    max-width: 500px;
    line-height: 1.6;
}

/* --- 2. GRID DE PROYECTOS --- */
.archive-grid {
    position: relative;
    z-index: 2;
    display: grid;
    /* 2 Columnas en escritorio */
    grid-template-columns: repeat(2, 1fr); 
    gap: 4vw; /* Espacio responsivo entre columnas */
    padding: 0 5% 10rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

/* Estilo de cada Item */
.archive-item {
    text-decoration: none;
    display: block;
    position: relative;
    margin-bottom: 2rem;
}

/* Desplazar la segunda columna hacia abajo para efecto asimétrico "Masonry" */
@media (min-width: 769px) {
    .archive-item:nth-child(even) {
        margin-top: 8rem; /* Baja los elementos pares */
    }
}

.archive-media {
    width: 100%;
    /* Ratio 4:3 para imágenes más elegantes verticalmente */
    aspect-ratio: 4/3; 
    overflow: hidden;
    position: relative;
    margin-bottom: 1.5rem;
    background-color: #1a1a1a;
}

.archive-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: grayscale(0%); /* Puedes poner 100% si quieres B/N inicial */
}

/* Hover Effect: Zoom suave */
.archive-item:hover .archive-media img {
    transform: scale(1.05);
}

.archive-info {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    transition: border-color 0.3s ease;
}

.archive-item:hover .archive-info {
    border-color: rgba(255, 255, 255, 0.5);
}

.archive-info h3 {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: 0;
}

.archive-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
}

/* --- 3. CTA SIMPLE FINAL --- */
.cta-section-simple {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 6rem 5% 10rem;
    border-top: 1px solid #2a2a2a;
}
.cta-section-simple p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-text);
}

/* --- RESPONSIVE PARA PROYECTOS --- */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr; /* 1 Columna en móvil */
        gap: 4rem;
    }
    
    .archive-item:nth-child(even) {
        margin-top: 0; /* Quitamos el efecto masonry en móvil */
    }

    .archive-hero h1 {
        margin-top: 0px;
    }

    .archive-hero p {
    visibility:hidden;
}
    
}







/* ========================================= */
/* --- ESTILO DE PROYECTO "DARK CINEMA" --- */
/* ========================================= */

.project-dark-theme {
    background-color: var(--background-color); /* Fondo Negro #0a0a0a */
    color: var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* Capa de ruido/grano (Igual que en Index) */
.project-dark-theme::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
}

/* --- 1. HERO IMMERSIVO --- */
.p-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: flex-end; /* Texto abajo */
    padding: 0 5% 6rem 5%;
    z-index: 1;
}

.p-hero-media {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
}

.p-hero-media img, .p-hero-media video {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Gradiente para que se lea el texto sobre la imagen */
.p-overlay {
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
}

.p-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

.p-hero-content h1 {
    font-size: clamp(4rem, 12vw, 9rem);
    line-height: 0.9;
    margin-bottom: 1rem;
    font-weight: 700;
}

.p-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-family: 'Playfair Display', serif;
    font-style: italic;
    color: var(--accent-color); /* O blanco si prefieres */
}

/* --- 2. INTRO Y CREDITOS --- */
.p-intro {
    position: relative;
    z-index: 2;
    padding: 8rem 5%;
    display: grid;
    grid-template-columns: 1fr 2fr; /* 1 parte créditos, 2 partes texto */
    gap: 4rem;
    border-bottom: 1px solid #1a1a1a;
}

.p-credits {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.credit-item {
    display: flex;
    flex-direction: column;
}

.credit-item .label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
    margin-bottom: 0.5rem;
}

.credit-item .value {
    font-size: 1.1rem;
    font-weight: 500;
}

.p-description h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 400;
}

.p-description p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #d0d0d0;
    max-width: 800px;
}

/* --- 3. GALERÍA E IMÁGENES --- */
.p-gallery {
    position: relative;
    z-index: 2;
    padding: 0 15%;
}

.p-media-full {
    margin: 6rem 0;
    width: 100%;
}

.p-media-full img, .p-media-full video {
    width: 100%;
    height: auto;
    display: block;
}

.caption {
    display: block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--secondary-text);
    text-align: right;
}

.p-text-block {
    max-width: 700px;
    margin: 6rem auto;
    text-align: center;
}

.p-text-block h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.p-text-block p {
    color: var(--secondary-text);
    font-size: 1.1rem;
    line-height: 1.7;
}

.p-media-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 6rem 0;
}

.p-media-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .p-hero {
        padding-bottom: 4rem;
    }
    .p-intro {
        grid-template-columns: 1fr; /* Apilamos créditos y texto */
        gap: 3rem;
        padding: 4rem 5%;
    }
    .p-credits {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .p-media-grid {
        grid-template-columns: 1fr;
    }
    .p-gallery {
    position: relative;
    z-index: 2;
    padding: 0 5%;
}
}

/* --- VIDEO RESPONSIVE YOUTUBE --- */
.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* Proporción 16:9 (Estándar de YouTube) */
    height: 0;
    overflow: hidden;
    width: 100%;
    background: #000; /* Fondo negro mientras carga */
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ========================================= */
/* --- PÁGINA DE CONTACTO (DARK THEME) --- */
/* ========================================= */

.contact-dark-theme {
    background-color: var(--background-color); /* Negro */
    color: var(--primary-color);
    min-height: 100vh;
    position: relative;
    padding-top: 20vh; /* Espacio superior */
}

/* Capa de Ruido (Noise) - Consistencia Visual */
.contact-dark-theme::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    opacity: 0.05;
    pointer-events: none;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noise)"/></svg>');
}

/* --- 1. HERO CONTACTO --- */
.c-hero {
    position: relative;
    z-index: 2;
    padding: 0 5% 6rem 5%;
}

.label-text {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    display: block;
}

.c-hero h1 {
    font-size: clamp(3.5rem, 9vw, 8rem);
    line-height: 1.1;
    font-weight: 700;
    margin: 0;
}

.c-hero .italic-serif {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    color: #dcdcdc;
}

/* --- 2. GRID DE INFORMACIÓN --- */
.c-info-grid {
    position: relative;
    z-index: 2;
    padding: 4rem 5% 8rem 5%;
    border-top: 1px solid #1a1a1a;
    display: grid;
    grid-template-columns: 2fr 1fr; /* Columna ancha para email, estrecha para redes */
    gap: 4rem;
}

.c-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--secondary-text);
    margin-bottom: 1.5rem;
}

/* Estilo del enlace de email gigante */
.big-contact-link {
    font-size: clamp(1.5rem, 4vw, 3.5rem);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: color 0.3s ease;
}

.big-contact-link .arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.big-contact-link:hover {
    color: var(--secondary-text);
}

.big-contact-link:hover .arrow {
    transform: translate(5px, -5px);
}

.c-note {
    margin-top: 1.5rem;
    color: var(--secondary-text);
    font-size: 1rem;
    max-width: 400px;
}

/* Estilos columna lateral (Redes) */
.c-col-side {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    border-left: 1px solid #1a1a1a; /* Línea vertical separadora */
    padding-left: 4rem;
}

.c-links-list {
    list-style: none;
}

.c-links-list li {
    margin-bottom: 0.5rem;
}

.c-links-list a {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
}

/* Efecto hover subrayado sutil */
.c-links-list a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 1px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.c-links-list a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* --- 3. IMAGEN DE CIERRE --- */
.c-image-section {
    padding: 0 5% 0 5%; /* Sin padding abajo para que pegue al footer */
    position: relative;
    z-index: 2;
}

.c-image-wrapper {
    width: 100%;
    height: 60vh;
    overflow: hidden;
    position: relative;
}

.c-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%); /* Blanco y negro para elegancia */
    transition: filter 0.5s ease;
}

.c-image-wrapper:hover img {
    filter: grayscale(0%); /* Color al pasar el ratón */
}

.c-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.2); /* Oscurecer ligeramente */
}

/* --- 4. FOOTER SIMPLE --- */
.simple-footer {
    padding: 2rem 5%;
    border-top: 1px solid #1a1a1a;
    background-color: var(--background-color);
    position: relative;
    z-index: 2;
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {
    .c-info-grid {
        grid-template-columns: 1fr; /* Una sola columna */
        gap: 3rem;
        border-top: none; /* Quitamos borde superior en móvil para limpieza */
    }
    
    .c-col-side {
        border-left: none;
        padding-left: 0;
        padding-top: 3rem;
        border-top: 1px solid #1a1a1a;
    }

    .big-contact-link {
        font-size: 1.5rem; /* Ajuste para que quepa el email en móvil */
        word-break: break-all;
    }
    
    .c-hero h1 {
        margin-top: 1rem;
    }
}

/* --- FIN: ESTILOS PÁGINA DE CONTACTO --- */




/* --- Media Queries Consolidadas para Responsividad --- */
@media (max-width: 768px) {
    /* Reglas Generales para móvil */
    .desktop-nav { display: none; }
    .hamburger { display: block; }
    .logo { position: relative; left: 0; transform: none; }
    header {
        justify-content: space-between;
        mix-blend-mode: normal;
        background-color: rgba(23, 23, 23, 0.546);
        -webkit-backdrop-filter: blur(15px);
        backdrop-filter: blur(15px);
        padding: 0.8rem 5%;
    }

    header.header-hidden {
        transform: none;
    }

    header a, header .logo-text {
        color: #ebebeb;
    }

    .hamburger .bar {   
        background-color: #ebebeb;
    }
    
        /* Ocultamos el vídeo pesado en móvil */
    .hero-video-background video {
        display: none;
    }

    /* Mostramos una imagen de fondo de alta calidad en su lugar */
    .hero-video-background {
        background-image: url('../images/base.jpg'); /* Crea esta imagen */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Reglas para el carrusel de proyectos */
    .project-category-title { margin-left: 1rem; }
    .projects-row { padding: 0; gap: 1rem; }
    .project-card { width: 75vw; }
    .projects-section { padding-left: 1rem; padding-right: 1rem; }
    .projects-row-wrapper { margin-left: -1rem; margin-right: -1rem; }

    /* Reglas para reducir espacios en móvil */
    .about-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .cta-section {
        padding-top: 6rem;
        padding-bottom: 6rem;
    }
    
    .cta-content {
        padding: 2.5rem 1.5rem;
    }
    
    footer {
        padding-top: 4rem;
    }
    

/* Reglas para la página de proyecto (versión final en móvil) */
/* Reglas para la página de proyecto (versión final en móvil) */
.project-header-final {
    margin: 0;
    
    /* Clave: Fondo blanco sólido y color de texto oscuro */
    background: #ffffff;
    color: #1a1a1a;

    border-radius: 0;
    border: none;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    
    padding: 4rem 5%;
}
/* Alinea el título a la izquierda y añade la línea divisoria en móvil */
.project-header-final h1 {
    padding-bottom: 1.5rem; /* Espacio entre el texto y la línea */
    margin-bottom: 1.5rem;  /* Espacio entre la línea y los detalles de abajo */
    border-bottom: 1px solid #e0e0e0; /* Línea fina y sutil */
}



.project-details-grid {
    grid-template-columns: 1fr;
    gap: 2rem; /* Un poco más de espacio entre los detalles */
}

.project-content-final {
    /* Reducimos drásticamente el padding superior porque ya no hay nada solapado */
    padding: 4rem 5%;
}

.media-half {
    grid-template-columns: 1fr;
}
}

.project-link {
    color: white;
    text-decoration: none;
    font-size: 25px;
    font-weight: 400;
    position: relative;
}
