/* =========================
 * Variables y base
 * ========================= */
:root {
  --bg: #ffffff;
  --text: #0b0b0b;
  --muted: #666;
  --accent: #ffcc00;
  --radius: 10px;
  --max-width: 100%;
  --container-padding: 4vw;
  --type-sans: 'Helvetica', 'Arial', sans-serif;
  --type-serif: 'Helvetica', 'Arial', sans-serif;
}

/* =========================
 * Base Global
 * ========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%; 
}

body {
  margin: 0;
  font-family: var(--type-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
  /* Añadimos un poco de padding inferior para forzar el scroll de la marquesina */
  padding-bottom: 200px; 
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  width: auto;
  height: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  z-index: 999;
  border-radius: 6px;
}

/* =========================
 * Header y Navegación
 * ========================= */

.site-header {
  /* SUBIMOS EL HEADER */
  padding: 10px 0 10px; 
  border-bottom: none;
}

.top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 94%; 
  margin: 0 auto;
  padding: 14px 0; 
  border-bottom: none; 
  background: none; 
  position: relative; 
  top: auto;
  z-index: 100;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
}

.nav-title {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--type-sans);
  letter-spacing: -0.5px;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  font-family: var(--type-sans);
}

.chat-btn { 
  background: #000;
  color: #fff;
  padding: 10px 22px; 
}
.chat-btn:hover {
  background: #222;
  transform: none; 
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  border: 1px solid #000; 
  border-radius: 999px; 
  padding: 0 30px; 
  background: var(--bg);
  height: 38px; 
  
}

.search-bar input {
  border: none;
  background: transparent;
  padding: 8px 20px 8px 0px; 
  font-family: var(--type-sans);
  width: 280px; 
}

.search-bar .search-icon {
  display: none;
}

/* =========================
 * Hero y Home Frame
 * ========================= */

/* Contenedor Principal (Marco) */
.home-frame {
  width: 94%;
  /* SUBIMOS LA CAJA */
  margin: 3px auto;
  border: 3px solid #000;
  border-radius: 28px;
  /* MENOS MARGEN IZQUIERDO */
  padding: 40px 60px 100px 40px; 
  position: relative;
  z-index: 1; 
  /* ALTURA AJUSTADA */
  min-height: 80vh; 
  max-height: 900px; 
}

/* Título principal */
.hero-title-big {
  font-size: 11rem;
  font-weight: 800;
  line-height: 0.9;
  margin-bottom: 20px; 
  margin-top: 0;
  position: relative;
  z-index: 10;
  letter-spacing: 0px;
} 

/* Introducción */
.intro-block {
  margin-top: 30px;
  font-size: 1.1rem;
  max-width: 400px; 
}

.intro-block strong {
  font-weight: 700;
}

.intro-block mark {
  background: #fffd6c;
}

/* IMAGEN DEL HERO (Centrada y subida para mostrar botones) */
.hero-image-wrap {
  position: absolute;
  top: 46%; /* Subimos la imagen */
  left: 50%; /* Centramos horizontalmente */
  transform: translate(-50%, -30%); /* Ajustamos la posición */
  width: 100%;
  max-width: 550px; /* Tamaño más grande */
  height: auto;
  aspect-ratio: 3 / 4;
  z-index: 5; 
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* =========================
 * Botones Sociales
 * ========================= */

.social-bottom {
  display: flex;
  gap: 16px; 
  position: absolute;
  bottom: 40px; 
  /* ALINEADO CON NUEVO MARGEN */
  left: 40px; 
  z-index: 10;
}

.social-bottom a {
  width: 100px; 
  height: 100px;
  border-radius: 14px;
  color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2.2rem;
  text-decoration: none;
  background: #000;
  transition: 0.2s;
}

.social-bottom a.yellow-block { 
  background:#f6ff00
}

.social-bottom a.black-block {
  background: #000;
  color: #fff;
}

.social-bottom a:hover {
  transform: translateY(-4px);
}

.behance-btn {
  position: absolute;
  bottom: 40px;
  right: 60px;
  width: 100px;
  height: 100px;
  border: 3px solid #000;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  background: #fff;
  font-size: 2rem;
  z-index: 10;
}

/* =========================
 * Scroll Velocity Effect (Marquesina)
 * ========================= */
.scroll-velocity {
  width: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--type-sans);
  font-weight: 700;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  white-space: nowrap;
  padding: 1.5rem 0;
  position: relative;
  margin-top: 100px;
}

.scroll-text {
  display: inline-block;
  white-space: nowrap;
  transform: translateX(0);
  will-change: transform;
  transition: transform 0.1s linear;
}


/* =========================
 * Responsive
 * ========================= */

@media (max-width: 1000px) {
  /* En pantallas medianas, la imagen no puede ser tan grande */
  .hero-image-wrap {
    max-width: 400px;
  }
}

@media (max-width: 768px) {
  /* Ajustes del nav */
  .top-nav {
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
  }

  .nav-right {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Ajustes del home frame */
  .hero-image-wrap {
    position: relative; /* Cambia a relativo para que no se salga */
    right: auto;
    bottom: auto;
    top: auto;
    left: auto;
    transform: none;
    max-width: 80%;
    margin: 30px auto 0;
  }
  
  .home-frame {
    padding: 30px;
    padding-bottom: 30px;
    min-height: 400px;
    margin-top: 15px;
  }

  .hero-title-big {
    font-size: 4rem;
  }

  /* Botones sociales se mueven a posición relativa */
  .social-bottom,
  .behance-btn {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    margin-top: 20px;
    width: 80px; 
    height: 80px;
    font-size: 1.8rem;
  }

  .social-bottom {
    justify-content: flex-start;
    gap: 10px;
  }

  .behance-btn {
    margin-left: 0;
    margin-right: 0;
    float: right;
  }
}
/* ... (Todo tu CSS existente aquí) ... */

/* =========================
 * Secciones de Contenido (Proyectos)
 * ========================= */

.projects-section {
  padding: 60px 0; /* Espacio superior e inferior para la sección */
  position: relative;
  z-index: 10; /* Asegura que esté por encima de elementos del hero si se superponen */
}

/* Un contenedor genérico para centrar el contenido, similar al home-frame pero sin borde */
.container {
  max-width: 94%; /* Mismo ancho que el home-frame */
  margin: 0 auto;
  padding: 0 40px; /* Padding izquierdo para alinearse con los textos del home-frame */
}

/* Títulos de Sección */
.section-title {
  font-family: var(--type-sans); /* Ajustado a sans-serif como en la imagen */
  font-size: 2rem; /* Tamaño de fuente */
  font-weight: 800; /* Negrita */
  margin: 0 0 20px 0; /* Margen inferior */
  letter-spacing: -1px;
}

/* Botones de Filtro de Proyectos */
.project-filters {
  display: flex;
  gap: 10px; /* Espacio entre botones */
  margin-bottom: 40px; /* Margen debajo de los botones */
}

.filter-btn {
  background: none;
  border: 1px solid #000;
  border-radius: 999px; /* Botones redondeados */
  padding: 8px 18px;
  font-family: var(--type-sans);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.filter-btn.active,
.filter-btn:hover {
  background: #000;
  color: #fff;
}

/* Grid de Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); 
  gap: 18px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden; /* Necesario para contener el zoom y el texto oculto */
  background: #fafafa;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.06); 
  text-decoration: none; 
  color: var(--text);
  /* TRANSICIÓN general */
  transition: box-shadow 0.32s, transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1);
}

.project-card img {
  position: absolute;
  inset: 0; 
  width: 100%;
  height: 100%;
  object-fit: cover; 
  /* Estilo por defecto: Blanco y Negro */
  filter: grayscale(1) contrast(0.95) brightness(0.95); 
  /* Transiciones para el filtro y el zoom */
  transition: transform 0.6s ease, filter 0.6s ease; 
}

/* Efecto Hover: Zoom y Color */
.project-card:hover img {
  transform: scale(1.08); /* Zoom */
  filter: grayscale(0) contrast(1) brightness(1); /* Color */
}

.project-meta {
  /* Título Oculto por Defecto */
  position: absolute; 
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
 
  backdrop-filter: blur(4px); 
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  
  opacity: 0; 
  transform: translateY(100%); /* Lo desliza fuera de la vista */
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 10;
}

/* Efecto Hover: Mostrar Título */
.project-card:hover .project-meta {
  opacity: 1; /* Muestra */
  transform: translateY(0); /* Desliza a su posición final */
}


.footer {
  background: #f7e83a; /* amarillo */
  padding: 50px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-family: Helvetica, Arial, sans-serif;
}

.footer-left h1 {
  font-size: 120px;
  font-weight: 700;
  margin: 0;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: right;
}

.social {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.social img {
  width: 18px;   /* ajusta según tu icono */
  height: 18px;
}

.social span {
  font-size: 16px;
  font-weight: 500;
}


/* =========================
 * Responsive (AJUSTES PARA LA NUEVA SECCIÓN)
 * ========================= */

@media (max-width: 1000px) {
  .hero-image-wrap {
    max-width: 400px;
  }
  /* Ajustes para la grid de proyectos en pantallas medianas */
  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Menos columnas si es necesario */
  }
}

@media (max-width: 768px) {
  /* ... (Tus estilos responsive existentes) ... */

  .projects-section {
    padding: 40px 0;
  }

  .container {
    padding: 0 20px; /* Menor padding lateral en móvil */
  }

  .project-filters {
    flex-wrap: wrap; /* Los botones se envuelven en varias líneas */
    justify-content: center;
  }

  .projects-grid {
    grid-template-columns: 2fr; /* Una columna en móvil */
  }
}