/* -------------------------------------------------------------
   SISTEMA DE DISEÑO - ESPACIOS Y DIMENSIONES (Carpintería Premium)
   ------------------------------------------------------------- */
:root {
  /* Paleta de colores vibrantes y elegantes (Oliva + Madera) */
  --bg-color: #070905;          /* Negro mate profundo con matiz oliva */
  --surface-color: #10150b;     /* Fondo de tarjetas (verde oliva muy oscuro) */
  --surface-hover: #161d0f;     /* Estado hover de tarjetas */
  --primary: #6e963b;           /* Verde Oliva Vibrante */
  --primary-glow: rgba(110, 150, 91, 0.4);
  --accent: #d4924c;            /* Dorado de madera / Ámbar cálido */
  --accent-glow: rgba(212, 146, 76, 0.4);
  --accent-dark: #8c531d;       /* Tono madera oscura */
  --text-main: #f3f5f0;         /* Blanco marfil */
  --text-muted: #9ca693;        /* Gris salvia */
  
  /* Fuentes */
  --font-display: 'Syne', sans-serif;
  --font-body: 'Outfit', sans-serif;
  
  /* Transiciones */
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* Reset y Estilos Generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) var(--bg-color);
}

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Fondo blueprint (retícula técnica) */
.blueprint-bg {
  position: fixed;
  top: 0;
  left: 5;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  background-image: 
    linear-gradient(rgba(110, 150, 59, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 150, 59, 0.015) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
}

/* Contenedor principal */
.container {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía de Encabezados */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Enlaces sin formato base */
a {
  color: inherit;
  text-decoration: none;
}

/* -------------------------------------------------------------
   CABECERA & NAVEGACIÓN (Glassmorphism)
   ------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(7, 9, 5, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(110, 150, 59, 0.1);
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 8px 0;
  background-color: rgba(7, 9, 5, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Alineado abajo para asimetría con el logo grande */
  padding-bottom: 25px;  /* Espacio inferior de apoyo */
  height: 150px;         /* Cabecera mucho más grande */
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.logo {
  display: flex;
  align-items: center;
  margin-bottom: -240px; /* Desborde pronunciado para acentuar el diseño 3D */
  
  /* --- AJUSTE PARA MOVER A LA IZQUIERDA O DERECHA --- */
  position: relative;
  left: -80px; /* Ajusta este valor: números negativos lo mueven a la izquierda (-30px, -50px, etc.) y positivos a la derecha */
}

.logo img {
  height: 490px; /* Logotipo gigante y muy visible */
  width: auto;
  max-width: 300px;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 0 15px rgba(110, 150, 59, 0.4));
}

.logo img:hover {
  transform: scale(1.05);
}

/* Menú de Navegación */
.menu {
  list-style: none;
  display: flex;
  gap: 24px;          /* <--- CAMBIADO (antes era 32px) Reduce el espacio entre botones para que ocupen menos ancho */
  margin-bottom: 0;
  align-self: center;
  
  /* --- NUEVAS LÍNEAS PARA MOVER EL MENÚ A LA IZQUIERDA --- */
  position: relative;
  left: -20px;        /* <--- Ajusta este número (negativo lo mueve a la izquierda, por ejemplo: -20px, -40px, etc.) */
}
/* Busca esta regla (alrededor de la línea 125) */
.menu a {
  font-family: var(--font-body);
  font-size: 25px; /* Enlaces más grandes y legibles */
  font-weight: 600; /* Letra más gruesa */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  position: relative;
  padding: 8px 0;
  transition: var(--transition-fast);
  
  /* --- NUEVA LÍNEA A AGREGAR --- */
  white-space: nowrap; /* Evita que las palabras se dividan en dos renglones */
}

.menu a:hover {
  color: var(--accent);
}

/* Efecto hover estilo regla de carpintería */
.menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
  transform: translateX(-50%);
}

.menu a:hover::after {
  width: 100%;
}

/* Botón de Menú Móvil (Hamburger) */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 26px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.menu-toggle .bar {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  transition: var(--transition);
}

/* -------------------------------------------------------------
   SECCIONES GENERALES
   ------------------------------------------------------------- */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  margin-bottom: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.section-number {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 700;
  opacity: 0.8;
}

.section-header h2 {
  font-size: 2.5rem;
  text-transform: uppercase;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.header-divider {
  flex-grow: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.3;
}

/* -------------------------------------------------------------
   DETALLES DE DIBUJO TÉCNICO (Reglas e Indicadores)
   ------------------------------------------------------------- */
.draft-ruler {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: rgba(212, 146, 76, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  position: absolute;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
}

.horizontal-ruler {
  top: 220px; /* Ajustado para bajar de acuerdo a la nueva cabecera de 180px */
  left: 24px;
  right: 50px;
}

.horizontal-ruler::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 1px, transparent 1px, transparent 8px);
  opacity: 0.25;
}

.vertical-ruler {
  left: 24px;
  top: 250px;
  transform: rotate(-90deg);
  transform-origin: left top;
}

.vertical-ruler::after {
  content: '';
  display: inline-block;
  width: 100px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--accent) 0px, var(--accent) 1px, transparent 1px, transparent 8px);
  opacity: 0.25;
  margin-left: 15px;
}

/* Ángulo de carpintero para marcos */
.carpenter-angle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--accent);
  border-style: solid;
  z-index: 5;
  opacity: 0.6;
  pointer-events: none;
}

.carpenter-angle.top-left {
  top: -4px;
  left: -4px;
  border-width: 2px 0 0 2px;
}

.carpenter-angle.bottom-right {
  bottom: -4px;
  right: -4px;
  border-width: 0 2px 2px 0;
}

/* -------------------------------------------------------------
   SECCIÓN HERO / PORTAFOLIO
   ------------------------------------------------------------- */
.hero-section {
  padding-top: 260px; /* Ajustado para dar espacio a la cabecera gigante de 180px */
  padding-bottom: 120px;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.portafolio-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
}

.portafolio-text-card {
  z-index: 10;
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--primary);
  background-color: rgba(110, 150, 59, 0.1);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(110, 150, 59, 0.2);
  margin-bottom: 24px;
}

.main-title {
  font-size: 4rem;
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  margin-bottom: 30px;
  color: var(--text-main);
  background: linear-gradient(135deg, var(--text-main) 30%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.description-text {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 35px;
  font-weight: 300;
  text-align: justify;
}

/* Línea de medición de carpintería */
.blueprint-dimension {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  opacity: 0.7;
}

.dimension-line {
  height: 1px;
  flex-grow: 1;
  background-color: var(--accent);
  position: relative;
}

.dimension-line::before, .dimension-line::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  top: -2px;
  transform: rotate(45deg);
}

.dimension-line:first-child::before { left: 0; }
.dimension-line:last-child::after { right: 0; }

/* Contenedor de la Imagen del Hero */
.portafolio-image-wrapper {
  position: relative;
  width: 100%;
}

.image-border-decoration {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--primary);
  border-radius: 12px;
  z-index: 1;
  pointer-events: none;
  transition: var(--transition);
}

.main-hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--transition);
}

.portafolio-image-wrapper:hover .main-hero-img {
  transform: translate(-8px, -8px);
  box-shadow: 10px 30px 50px rgba(0, 0, 0, 0.8);
}

.portafolio-image-wrapper:hover .image-border-decoration {
  transform: translate(8px, 8px);
  border-color: var(--accent);
}

.image-caption {
  position: absolute;
  bottom: 25px;
  right: 25px;
  background-color: rgba(7, 9, 5, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 146, 76, 0.3);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  z-index: 3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* -------------------------------------------------------------
   SECCIÓN PROYECTOS (CSS Grid Galería)
   ------------------------------------------------------------- */
.projects-section {
  background-color: rgba(16, 21, 11, 0.3);
  border-top: 1px solid rgba(110, 150, 59, 0.05);
  border-bottom: 1px solid rgba(110, 150, 59, 0.05);
}

.proyectos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px;
}

.proyecto {
  background-color: var(--surface-color);
  border: 1px solid rgba(110, 150, 59, 0.08);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.proyecto:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 35px rgba(110, 150, 59, 0.15);
}

.proyecto-img-container {
  position: relative;
  width: 100%;
  padding-top: 75%; /* Ratio 4:3 */
  overflow: hidden;
  background-color: #000;
  cursor: pointer;
}

.proyecto-img-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.proyecto:hover .proyecto-img-container img {
  transform: scale(1.08);
}

/* Overlay al pasar el mouse por el proyecto */
.proyecto-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(7, 9, 5, 0.9) 0%, rgba(110, 150, 59, 0.2) 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
  z-index: 2;
}

.zoom-icon {
  font-size: 24px;
  color: var(--accent);
  background: var(--surface-color);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--accent);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: scale(0.8);
  transition: var(--transition);
}

.proyecto:hover .proyecto-overlay {
  opacity: 1;
}

.proyecto:hover .zoom-icon {
  transform: scale(1);
}

/* Detalles de Proyecto */
.proyecto-details {
  padding: 20px;
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  background-color: var(--surface-color);
}

.proyecto:hover .proyecto-details {
  background-color: var(--surface-hover);
}

.carpentry-joint {
  width: 4px;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  background-color: var(--primary);
  transition: var(--transition);
}

.proyecto:hover .carpentry-joint {
  background-color: var(--accent);
  width: 6px;
}

.proyecto-details p {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-main);
  padding-left: 10px;
  transition: var(--transition);
}

.proyecto:hover .proyecto-details p {
  color: var(--accent);
}

/* -------------------------------------------------------------
   SECCIÓN MISIÓN Y VISIÓN
   ------------------------------------------------------------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.mv-item {
  background-color: var(--surface-color);
  border: 1px solid rgba(110, 150, 59, 0.08);
  border-radius: 12px;
  padding: 30px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.mv-item:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  background-color: var(--surface-hover);
  box-shadow: 0 15px 35px rgba(212, 146, 76, 0.1);
}

.mv-image-frame {
  position: relative;
  width: 100%;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(212, 146, 76, 0.2);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mv-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

/* Si la imagen no carga o está vacía, se oculta y muestra el icono */
.mv-img:not([src]), .mv-img[src=""], .mv-img[src*="mv"] {
  opacity: 0;
  pointer-events: none;
}

.mv-fallback-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--accent);
  font-size: 32px;
  z-index: 1;
  opacity: 0.5;
  transition: var(--transition);
  filter: drop-shadow(0 0 10px rgba(212, 146, 76, 0.3));
}

.mv-item:hover .mv-fallback-icon {
  opacity: 0.85;
  transform: translate(-50%, -50%) scale(1.1) rotate(5deg);
}

.mv-content {
  position: relative;
}

.mv-content h3 {
  font-size: 1.6rem;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.mv-text {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: justify;
  font-weight: 300;
}

/* Detalle decorativo de ebanistería */
.mv-wood-grain {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 50px;
  height: 2px;
  background: var(--accent);
  opacity: 0.3;
  transition: var(--transition);
}

.mv-item:hover .mv-wood-grain {
  width: 80px;
  opacity: 0.8;
  background: var(--primary);
}

/* -------------------------------------------------------------
   SECCIÓN CONTACTO Y FORMULARIO (Floating Labels)
   ------------------------------------------------------------- */
.contacto-section {
  background-color: rgba(16, 21, 11, 0.2);
  border-top: 1px solid rgba(110, 150, 59, 0.05);
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contacto-info h2 {
  font-size: 3rem;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--text-main) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.contacto-lead {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 300;
}

.contacto-details-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.contacto-detail-item {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--surface-color);
  padding: 20px;
  border-radius: 8px;
  border: 1px solid rgba(110, 150, 59, 0.08);
}

.contacto-detail-item i {
  font-size: 28px;
  color: var(--accent);
}

.contacto-detail-item h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contacto-detail-item p {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-main);
}

/* Enlaces Sociales Estilo Premium */
.contact-links {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: var(--surface-color);
  border: 1px solid rgba(110, 150, 59, 0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link.whatsapp { color: #25D366; }
.social-link.instagram { color: #E1306C; }
.social-link.email { color: var(--accent); }

.social-link:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  border-color: currentColor;
}

.social-link.whatsapp:hover {
  box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}
.social-link.instagram:hover {
  box-shadow: 0 0 20px rgba(225, 48, 108, 0.3);
}
.social-link.email:hover {
  box-shadow: 0 0 20px var(--accent-glow);
}

/* Contenedor del Formulario */
.contacto-form-container {
  background: var(--surface-color);
  padding: 45px;
  border-radius: 12px;
  border: 1px solid rgba(110, 150, 59, 0.08);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  position: relative;
}

.contacto-form-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

/* Campos de entrada con etiquetas flotantes */
.form-group {
  position: relative;
  width: 100%;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 0;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(110, 150, 59, 0.2);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  outline: none;
  transition: var(--transition-fast);
}

.form-group textarea {
  height: 120px;
  resize: none;
}

.form-group label {
  position: absolute;
  left: 0;
  top: 12px;
  color: var(--text-muted);
  font-size: 15px;
  pointer-events: none;
  transition: var(--transition);
}

/* Efecto focus / cuando no está vacío */
.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -12px;
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
}

.input-focus-line {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: var(--transition);
}

.form-group input:focus ~ .input-focus-line,
.form-group textarea:focus ~ .input-focus-line {
  width: 100%;
}

.form-group input:focus, .form-group textarea:focus {
  border-bottom-color: transparent;
}

/* Botón de Enviar */
.submit-btn {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-dark) 100%);
  color: var(--text-main);
  border: none;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(110, 150, 59, 0.2);
  transition: var(--transition);
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(110, 150, 59, 0.4);
  background: linear-gradient(135deg, #85b547 0%, var(--accent) 100%);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  transition: var(--transition);
}

.submit-btn:hover .btn-icon {
  transform: translateX(4px);
}

/* -------------------------------------------------------------
   LIGHTBOX OVERLAY
   ------------------------------------------------------------- */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(7, 9, 5, 0.95);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-wrapper {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.close-lightbox {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-main);
  background: transparent;
  border: none;
  font-size: 44px;
  font-weight: 200;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10000;
}

.close-lightbox:hover {
  color: var(--accent);
  transform: rotate(90deg);
}

.lightbox-caption {
  margin-top: 15px;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-align: center;
  background: rgba(0, 0, 0, 0.6);
  padding: 6px 16px;
  border-radius: 4px;
}

/* -------------------------------------------------------------
   PIE DE PÁGINA (Footer)
   ------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid rgba(110, 150, 59, 0.08);
  padding: 40px 0;
  text-align: center;
  background-color: #050604;
}

.site-footer p {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
}

/* -------------------------------------------------------------
   RESPONSIVIDAD (Media Queries)
   ------------------------------------------------------------- */
@media (max-width: 992px) {
  .portafolio-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  
  .main-hero-img {
    height: 380px;
  }
  
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .contacto-wrapper {
    grid-template-columns: 1fr;
    gap: 60px;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 15px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .main-title {
    font-size: 2.8rem;
  }
  
  /* Menú responsive en móvil */
  .navbar {
    height: 100px; /* Altura móvil del navbar */
    align-items: center;
    padding-bottom: 0;
  }
  
  .logo {
    margin-bottom: 0;
  }
  
  .logo img {
    height: 65px; /* Logo más moderado en pantallas móviles */
  }

  .menu-toggle {
    display: flex;
  }
  
  .menu {
    position: fixed;
    top: 100px; /* Alineado a la nueva altura móvil */
    left: 0;
    width: 100%;
    height: 0;
    background-color: rgba(7, 9, 5, 0.98);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 40px;
    gap: 40px;
    overflow: hidden;
    transition: var(--transition);
    border-bottom: 0 solid rgba(110, 150, 59, 0.1);
  }
  
  .menu.active {
    height: calc(100vh - 100px);
    border-bottom-width: 1px;
  }
  
  .menu a {
    font-size: 22px; /* Enlaces más grandes en móviles */
    font-weight: 600;
  }
  
  /* Hamburguesa animada */
  .menu-toggle.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}