/* ===== GALERÍA MIXTA: Imágenes + Videos + PDFs ===== */

/* Tipos de archivo - badges */
.media-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 4px;
  z-index: 2;
}
.media-badge.video { background: #e74c3c; }
.media-badge.pdf { background: #3498db; }
.media-badge.image { background: #27ae60; }

/* Overlay al hacer hover */
.gallery-item {
  position: relative;
  cursor: pointer;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
  pointer-events: none;
}
.gallery-item:hover::after {
  background: rgba(0,0,0,0.3);
}

/* Icono de play para videos */
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}
.play-icon::before {
  content: '▶';
  color: #333;
  font-size: 20px;
  margin-left: 3px;
}
.gallery-item:hover .play-icon {
  opacity: 1;
}

/* Modal para videos/PDFs */
.media-modal {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 3000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.media-modal.active { display: flex; }

.modal-content {
  background: #fff;
  border-radius: 8px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  position: relative;
  width: 100%;
}

/* Video responsive */
.video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  background: #000;
}
.video-container video,
.video-container iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* PDF viewer */
.pdf-container {
  width: 100%;
  height: 70vh;
  border: none;
}

/* Botón cerrar modal */
.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px 10px;
}
.modal-close:hover { color: #ffeb00; }

/* Info del archivo */
.media-info {
  padding: 15px 20px;
  border-top: 1px solid #eee;
  background: #f9f9f9;
}
.media-info h4 {
  margin: 0 0 8px;
  color: #2c3e50;
  font-size: 14px;
}
.media-info p {
  margin: 0;
  font-size: 11px;
  color: #666;
}
.media-info a.btn-download {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  background: #0066cc;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-size: 11px;
}
.media-info a.btn-download:hover {
  background: #0052a3;
  text-decoration: none;
}


/* ===== FORMULARIO DE CONTACTO - ESTILO CONOTECH ===== */

/* Contenedor principal del formulario */
.contact-form-wrapper {
  background: #f5f5f7;  /* Suave, contrasta con #e3e3e3 del body */
  padding: 30px 15px;
  border-radius: 8px;  /* Menos redondeado para coincidir con el template */
}

.form-container {
  max-width: 600px;
  margin: 0 auto;
  background: #ffffff;
  padding: 28px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(161, 136, 0, 0.15);  /* Sombra con tu color dorado #a18800 */
  border: 1px solid #e0e0e0;
}

/* Títulos del formulario */
.form-container h2,
.form-container h3 {
  color: #a18800;  /* Tu color principal */
  margin: 0 0 20px 0;
  text-align: center;
}

.form-container h3 {
  font-size: 16px;
  color: #565656;
  margin: 24px 0 12px 0;
  text-align: left;
}

/* Grupos de formulario */
.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  color: #565656;  /* Color de h2 en tu template */
  font-size: 12px;  /* Tamaño base del template */
  font-family: Tahoma, "Trebuchet MS", Verdana;
}

/* Campos de entrada - adaptados al estilo original */
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c1c1c1;  /* Similar a .templatemo_h_line */
  border-radius: 4px;  /* Bordes sutiles como el template */
  font-family: Tahoma, "Trebuchet MS", Verdana;
  font-size: 11px;  /* Tamaño base del template */
  color: #484848;  /* Color de párrafos */
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* Estado focus - usando tu color dorado */
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #a18800;
  box-shadow: 0 0 0 3px rgba(161, 136, 0, 0.1);
}

/* Placeholder */
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999999;  /* Color de .date en tu template */
  font-style: italic;
}

/* Textarea específico */
.form-group textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5em;  /* Coincide con body */
}

/* Select con flecha personalizada */
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a18800' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 35px;
  cursor: pointer;
}

/* Botón de envío - adaptado a tu paleta */
.submit-btn {
  width: 92%;
  padding: 12px 24px;
  background: #a18800;  /* Tu color principal dorado */
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-family: 'Conotech', Tahoma, "Trebuchet MS", Verdana;
  font-size: 13px;  /* Tamaño de menú */
  font-weight: normal;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.submit-btn:hover {
  background: #8a7400;  /* Dorado más oscuro para hover */
  transform: translateY(-1px);
}

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

.submit-btn:disabled {
  background: #cccccc;
  cursor: not-allowed;
  transform: none;
}
/*--------------------------------------------------------------------------------------------------*/
/* Mensajes de estado */
/* Ocultar por defecto con CSS (no depender de JS) */
.form-message {
  padding: 12px 16px;
  border-radius: 4px;
  margin-bottom: 20px;
  font-size: 11px;
  display: none;  /* ← CLAVE: oculto por defecto */
  animation: fadeIn 0.3s ease-out;
}

/* Clases para mostrar con JS */
.form-message.show {
  display: block;
}

.form-message.success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

.form-message.error {
  background: #ffebee;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

/* Errores de validación en campos */
.form-group input.error,
.form-group textarea.error,
.form-group select.error {
  border-color: #c62828;
  background: #fff5f5;
}

.error-msg {
  display: block;
  color: #c62828;
  font-size: 10px;
  margin-top: 4px;
  font-style: normal;
}

/* Información de contacto lateral (para layout de 2 columnas) */
.contact-info-box {
  background: #f9f9f9;
  padding: 20px;
  border-left: 3px solid #a18800;
  border-radius: 0 4px 4px 0;
}

.contact-info-box h3 {
  margin-top: 0;
  color: #a18800;
}

.contact-info-box p {
  margin: 8px 0;
  font-size: 11px;
  color: #484848;
}

.contact-info-box .icon {
  color: #a18800;
  margin-right: 6px;
}

/* Responsive para formulario */
@media (max-width: 768px) {
  .form-container {
    padding: 24px 20px;
  }
  
  .contact-form-wrapper {
    padding: 20px 10px;
  }
  
  .contact-grid {
    grid-template-columns: 1fr !important;
  }
  
  .contact-info-box {
    border-left: none;
    border-top: 3px solid #a18800;
    border-radius: 4px 4px 0 0;
    margin-top: 20px;
  }
}

/* Accesibilidad: foco visible para teclado */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.form-group select:focus-visible,
.submit-btn:focus-visible {
  outline: 2px solid #ffeb00;  /* Tu color de hover de menú */
  outline-offset: 2px;
}

/* Animación suave al cargar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-container {
  animation: fadeInUp 0.4s ease-out;
}
/* ===== CONTACTO - LAYOUT CENTRADO ===== */

/* Contenedor principal que agrupa formulario + info */
.contact-wrapper-centered {
  max-width: 600px;  /* Mismo ancho que .form-container */
  margin: 0 auto;    /* Centrar todo el bloque */
  width: 100%;
}

/* Asegurar que el formulario ocupe todo el ancho disponible */
.contact-wrapper-centered .form-container {
  max-width: 100%;   /* Anular el max-width anterior */
  margin: 0;         /* Sin margen automático */
  box-shadow: 0 4px 20px rgba(161, 136, 0, 0.15);
}

/* Información de contacto inline (debajo del formulario) */
.contact-info-inline {
  background: #f9f9f9;
  padding: 20px 24px;
  border-radius: 0 0 8px 8px;  /* Redondear solo abajo para unir visualmente */
  border: 1px solid #e0e0e0;
  border-top: none;             /* Sin borde arriba para efecto "unido" */
  margin-top: -1px;             /* Pegar visualmente al formulario */
}

.contact-info-inline h3 {
  margin: 0 0 16px 0;
  color: #a18800;
  font-size: 14px;
  text-align: center;
}

.contact-info-inline p {
  margin: 10px 0;
  font-size: 11px;
  color: #484848;
  text-align: center;  /* Centrar texto para consistencia */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-info-inline .icon {
  color: #a18800;
  font-size: 14px;
}

/* Responsive: ajustar padding en móviles */
@media (max-width: 480px) {
  .contact-wrapper-centered {
    padding: 0 10px;
  }
  .form-container,
  .contact-info-inline {
    padding: 20px 16px;
  }
}
/*----------------------------------------------------------------------------------------------------------*/
/* ===== COMPAÑÍA - 3 COLUMNAS ===== */

/* Grid principal */
.compania-grid {
  display: grid;
  grid-template-columns: 1fr;  /* Móvil: 1 columna */
  gap: 30px;
  margin: 30px 0;
}

/* Desktop: 3 columnas iguales */
@media (min-width: 769px) {
  .compania-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Tablet: 2 columnas (opcional, si prefieres) */
@media (min-width: 769px) and (max-width: 1024px) {
  .compania-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Columna individual */
.compania-column {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.compania-column:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(161, 136, 0, 0.15);
}

/* Enlace de imagen (lightbox-ready) */
.compania-img-link {
  display: block;
  margin: 0 auto 20px;
  max-width: 100%;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  background: #f5f5f7;
  min-height: 180px;  /* Altura mínima si no hay imagen */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Imagen dentro del enlace */
.compania-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s;
}

.compania-img-link:hover .compania-img {
  transform: scale(1.05);
}

/* Placeholder cuando no hay imagen */
.img-placeholder {
  position: absolute;
  color: #999999;
  font-size: 11px;
  font-style: italic;
  z-index: 1;
}

.compania-img-link:hover .img-placeholder {
  color: #a18800;
}

/* Títulos de columnas */
.compania-column h2 {
  color: #a18800;  /* Tu color dorado */
  font-size: 16px;
  margin: 0 0 16px 0;
  text-align: center;
  font-weight: bold;
  font-family: 'Conotech', Tahoma, "Trebuchet MS", Verdana;
}

/* Contenido de texto */
.compania-content {
  text-align: justify;
  font-size: 11px;
  color: #484848;
  line-height: 1.6em;
}

.compania-content p {
  margin: 0 0 12px 0;
}

/* Sección extra opcional (valores, historia, etc.) */
.compania-extra {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #c1c1c1;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.valor-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 6px;
  border-left: 3px solid #a18800;
}

.valor-item h3 {
  color: #a18800;
  font-size: 13px;
  margin: 0 0 10px 0;
}

.valor-item p {
  font-size: 11px;
  color: #484848;
  margin: 0;
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .compania-column {
    padding: 16px;
  }
  .compania-column h2 {
    font-size: 14px;
  }
  .compania-img-link {
    min-height: 140px;
  }
}

/*--------------------------------------------------------------------------------------------------------------------------------------------*/

/* ===== PROYECTOS - GRID MEJORADO ===== */

/* Contenedor principal de proyectos */
#proyectos-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 30px 0;
  padding: 0;
}

/* Desktop: 3 columnas */
@media (min-width: 992px) {
  #proyectos-container {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

/* Desktop grande: 4 columnas */
@media (min-width: 1200px) {
  #proyectos-container {
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
  }
}

/* Tablet: 2 columnas */
@media (min-width: 576px) and (max-width: 991px) {
  #proyectos-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Móvil: 1 columna */
@media (max-width: 575px) {
  #proyectos-container {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ===== TARJETA DE PROYECTO ===== */
.proyecto-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.proyecto-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(161, 136, 0, 0.2);
  border-color: #a18800;
}

/* Imagen del proyecto */
.proyecto-card a:first-child {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
  background: #f5f5f7;
}

.proyecto-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  display: block;
}

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

/* Overlay al hacer hover */
.proyecto-card a:first-child::after {
  content: '🔍 Ver detalle';
  position: absolute;
  inset: 0;
  background: rgba(161, 136, 0, 0.85);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-family: 'Conotech', Tahoma, sans-serif;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.proyecto-card:hover a:first-child::after {
  opacity: 1;
}

/* Información del proyecto */
.proyecto-info {
  padding: 18px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.proyecto-info .categoria {
  display: inline-block;
  background: linear-gradient(135deg, #a18800 0%, #c4a800 100%);
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  align-self: flex-start;
  box-shadow: 0 2px 6px rgba(161, 136, 0, 0.3);
}

.proyecto-info h3 {
  margin: 0 0 10px 0;
  font-size: 14px;
  color: #2c3e50;
  font-weight: bold;
  font-family: 'Conotech', Tahoma, sans-serif;
  line-height: 1.4;
}

.proyecto-info h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.proyecto-info h3 a:hover {
  color: #a18800;
}

.proyecto-info p {
  font-size: 11px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 12px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.proyecto-info small {
  font-size: 10px;
  color: #999;
  display: block;
  margin-bottom: 14px;
}

/* Botón Ver Detalle */
.proyecto-info .templatemo_readmore_2 {
  float: none;
  display: inline-block;
  margin-top: auto;
  font-size: 11px;
  font-weight: bold;
  color: #a18800;
  background: url(images/templatemo_readmore_2.png) left top no-repeat;
  padding: 0 0 0 15px;
  background-position: 0 4px;
  text-decoration: none;
  transition: color 0.2s;
}

.proyecto-info .templatemo_readmore_2:hover {
  color: #8a7400;
  text-decoration: underline;
}

/* ===== FILTROS DE PROYECTOS ===== */
.filtro-proyectos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 30px 0;
  justify-content: center;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.filtro-btn {
  padding: 8px 18px;
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #565656;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 500;
  font-size: 11px;
  font-family: 'Conotech', Tahoma, sans-serif;
  transition: all 0.2s ease;
}

.filtro-btn:hover {
  border-color: #a18800;
  color: #a18800;
  background: #fffef5;
}

.filtro-btn.active {
  background: linear-gradient(135deg, #a18800 0%, #c4a800 100%);
  color: #fff;
  border-color: #a18800;
  box-shadow: 0 4px 12px rgba(161, 136, 0, 0.3);
}

/* ===== PROYECTO DETALLE - GALERÍA ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 30px 0;
}

/* Desktop: Grid asimétrico para galería */
@media (min-width: 992px) {
  .gallery-grid {
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
  }
  
  .gallery-item.featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f7;
  aspect-ratio: 4/3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(161, 136, 0, 0.2);
}

.gallery-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

/* Caption en galería */
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: #fff;
  padding: 40px 12px 10px 12px;
  font-size: 10px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

/* ===== PROYECTO DETALLE - CONTENIDO ===== */
.proyecto-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
}

.proyecto-header h1 {
  color: #a18800;
  font-size: 26px;
  margin: 0 0 15px 0;
  font-family: 'Conotech', Tahoma, sans-serif;
}

.proyecto-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
  padding: 15px 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.proyecto-meta span {
  font-size: 11px;
  color: #565656;
  display: flex;
  align-items: center;
  gap: 6px;
}

.proyecto-meta strong {
  color: #a18800;
}

/* Descripción del proyecto */
.proyecto-descripcion {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  margin: 30px 0;
}

.proyecto-descripcion h2 {
  color: #a18800;
  font-size: 18px;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #f5f5f7;
}

.proyecto-descripcion p {
  font-size: 11px;
  color: #484848;
  line-height: 1.8;
  text-align: justify;
  margin: 0 0 15px 0;
}

/* Ficha técnica */
.proyecto-ficha {
  background: linear-gradient(135deg, #f9f9f9 0%, #fff 100%);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  border-left: 4px solid #a18800;
  margin: 30px 0;
}

.proyecto-ficha h3 {
  color: #a18800;
  font-size: 16px;
  margin: 0 0 20px 0;
  font-weight: bold;
  font-family: 'Conotech', Tahoma, sans-serif;
}

.proyecto-ficha dl {
  margin: 0;
}

.proyecto-ficha dt {
  font-weight: bold;
  color: #565656;
  font-size: 11px;
  margin-top: 14px;
  margin-bottom: 4px;
}

.proyecto-ficha dd {
  margin: 0 0 10px 0;
  color: #484848;
  font-size: 11px;
  padding-left: 0;
}

/* Botón de cotización */
.proyecto-ficha .btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #a18800 0%, #c4a800 100%);
  color: #fff;
  padding: 12px 28px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(161, 136, 0, 0.3);
}

.proyecto-ficha .btn-primary:hover {
  background: linear-gradient(135deg, #8a7400 0%, #a18800 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(161, 136, 0, 0.4);
  text-decoration: none;
  color: #fff;
}

/* Navegación entre proyectos */
.proyecto-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 2px solid #e0e0e0;
  flex-wrap: wrap;
  gap: 15px;
}

.proyecto-nav a {
  font-size: 11px;
  color: #565656;
  text-decoration: none;
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.2s;
  background: #fff;
}

.proyecto-nav a:hover {
  border-color: #a18800;
  color: #a18800;
  background: #fffef5;
}

/* Responsive para proyecto-detalle */
@media (max-width: 768px) {
  .proyecto-header h1 {
    font-size: 20px;
  }
  
  .proyecto-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  
  .proyecto-nav {
    flex-direction: column;
    text-align: center;
  }
  
  .proyecto-nav a {
    width: 100%;
    text-align: center;
  }
}

/* ===== ANIMACIONES DE CARGA ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.proyecto-card {
  animation: fadeInUp 0.5s ease-out;
}

.proyecto-card:nth-child(2) { animation-delay: 0.1s; }
.proyecto-card:nth-child(3) { animation-delay: 0.2s; }
.proyecto-card:nth-child(4) { animation-delay: 0.3s; }
.proyecto-card:nth-child(5) { animation-delay: 0.4s; }
.proyecto-card:nth-child(6) { animation-delay: 0.5s; }

/* ===== PLACEHOLDER PARA IMÁGENES ===== */
.proyecto-card img[src=""],
.proyecto-card img:not([src]) {
  background: linear-gradient(135deg, #f5f5f7 0%, #e0e0e0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.proyecto-card img:not([src])::before {
  content: '📷 Sin imagen';
  color: #999;
  font-size: 11px;
}

/* Asegúrate que #panorama-container tenga esto en CSS */
#panorama-container {
  width: 100%;
  height: 800px;  /* ← Altura explícita es CRÍTICA */
  min-height: 700px;
}

/* ====********************************= INDEX - PROYECTOS CON SCROLL TRANSPARENTE =**********************************==== */

/* Container con scroll y efecto glassmorphism */
.proyectos-scroll-container {
  position: relative;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(161, 136, 0, 0.3);
  border-radius: 8px;
  padding: 12px;
  margin: 10px 0 15px 0;
  /*----container size--340---*/
  max-height: 180px;
  /*----container size-----*/
  overflow-y: auto;
  scroll-behavior: smooth;
  box-shadow: 0 4px 20px rgba(161, 136, 0, 0.1);
  scrollbar-width: thin;
  scrollbar-color: #a18800 rgba(161, 136, 0, 0.1);
}

/* Scrollbar para Chrome/Safari */
.proyectos-scroll-container::-webkit-scrollbar {
  width: 6px;
}
.proyectos-scroll-container::-webkit-scrollbar-track {
  background: rgba(161, 136, 0, 0.1);
  border-radius: 3px;
}
.proyectos-scroll-container::-webkit-scrollbar-thumb {
  background: #a18800;
  border-radius: 3px;
  transition: background 0.2s;
}
.proyectos-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #8a7400;
}

/* Track interno para las tarjetas */
.proyectos-scroll-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-right: 4px;
}

/* Tarjeta individual de proyecto */
.proyecto-mini-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  opacity: 0.95;
}
.proyecto-mini-card:hover {
  transform: translateX(4px);
  border-color: #a18800;
  box-shadow: 0 4px 12px rgba(161, 136, 0, 0.15);
  opacity: 1;
  background: linear-gradient(135deg, #fff 0%, #fffef5 100%);
}

/* Imagen miniatura */
.proyecto-mini-img {
  position: relative;
  width: 90px;
  min-width: 90px;
  height: 70px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
  background: #f5f5f7;
}
.proyecto-mini-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.proyecto-mini-card:hover .proyecto-mini-img img {
  transform: scale(1.08);
}

/* Overlay dorado sutil al hover */
.proyecto-mini-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(161,136,0,0) 0%, rgba(161,136,0,0.2) 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.proyecto-mini-card:hover .proyecto-mini-overlay {
  opacity: 1;
}

/* Badge de categoría */
.proyecto-mini-categoria {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(161, 136, 0, 0.9);
  color: #fff;
  font-size: 9px;
  font-weight: bold;
  padding: 3px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

/* Info del proyecto */
.proyecto-mini-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.proyecto-mini-info h4 {
  margin: 0 0 4px 0;
  font-size: 12px;
  color: #2c3e50;
  font-weight: bold;
  font-family: 'Conotech', Tahoma, "Trebuchet MS", Verdana;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.proyecto-mini-info p {
  margin: 0 0 6px 0;
  font-size: 10px;
  color: #666;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.proyecto-mini-ubicacion {
  font-size: 9px;
  color: #999;
  font-style: italic;
}

/* Indicador de scroll */
.scroll-indicator {
  position: sticky;
  bottom: 8px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.scroll-indicator span {
  display: inline-block;
  background: rgba(161, 136, 0, 0.85);
  color: #fff;
  font-size: 9px;
  padding: 4px 12px;
  border-radius: 12px;
  animation: bounce 2s infinite;
}
.proyectos-scroll-container.can-scroll .scroll-indicator {
  opacity: 1;
}
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-4px); }
  60% { transform: translateY(-2px); }
}

/* Botón "Ver todos" */
.btn-ver-todos {
  display: inline-block;
  padding: 8px 20px;
  background: linear-gradient(135deg, #a18800 0%, #c4a800 100%);
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  font-size: 11px;
  font-weight: bold;
  font-family: 'Conotech', Tahoma, sans-serif;
  transition: all 0.25s ease;
  box-shadow: 0 3px 10px rgba(161, 136, 0, 0.25);
}
.btn-ver-todos:hover {
  background: linear-gradient(135deg, #8a7400 0%, #a18800 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(161, 136, 0, 0.35);
  text-decoration: none;
  color: #fff;
}

/* Responsive */
@media (max-width: 768px) {
/*----container size--280---*/
  .proyectos-scroll-container {
    max-height: 280px;
  }
/*----container size-----*/
  .proyecto-mini-img {
    width: 80px;
    height: 60px;
  }
  .proyecto-mini-info h4 {
    font-size: 11px;
  }
  .proyecto-mini-info p {
    font-size: 9px;
  }
}

/*--------------------------------------------------------Galeria Grid-----------------------------------------------------------*/
/* ===== GALERÍA DE PROYECTO DETALLE - 4 COLUMNAS ===== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);  /* 4 columnas iguales en desktop */
  gap: 16px;
  margin: 30px 0;
}

/* Tablet: 3 columnas */
@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }
}

/* Móvil grande: 2 columnas */
@media (min-width: 481px) and (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
}

/* Móvil pequeño: 1 columna */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Estilo de cada item de galería */
.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #f5f5f7;
  aspect-ratio: 4/3;  /* Mantiene proporción consistente */
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(161, 136, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* Overlay al hacer hover */
.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(161, 136, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-overlay span {
  color: #fff;
  font-size: 28px;
}

/* ===== LOGO EN MÓVIL ===== */

/* Asegurar que solo haya UN logo visible */
#templatemo_header_logo {
  display: block !important;
  position: relative;
}

/* Si hay un logo dentro del menú móvil, ocultarlo */
#templatemo_menu .logo,
#templatemo_menu img,
.mobile-logo {
  display: none !important;
}

/* En móvil, ajustar el header para que no duplique contenido */
@media (max-width: 768px) {
  #templatemo_header {
    position: relative;
  }
  
  #templatemo_header_logo {
    width: 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  
  /* Asegurar que el logo no se repita */
  #templatemo_header_logo img {
    max-width: 200px;  /* Ajusta según tu logo */
    height: auto;
    display: block;
    margin: 0 auto;
  }

/* ===================================================================
   CORRECCIONES GLOBALES: Ancho visual + Justify mejorado
   =================================================================== */

/* 1. AUMENTAR ANCHO DEL CONTENEDOR PRINCIPAL (de 960px a 1200px) */
#templatemo_container {
    max-width: 1200px !important;  /* Antes era 960px */
    padding: 0 20px !important;
}


/* 3. AJUSTAR COLUMNAS INTERNAS para el nuevo ancho */
@media (min-width: 1025px) {
    #templatemo_left {
        width: 320px !important;
        padding: 0 20px !important;
    }
    #templatemo_mid {
        width: 480px !important;    /* Antes 326px - ahora más ancho */
        padding: 0 20px !important;
    }
    #templatemo_right {
        width: 320px !important;    /* Antes 230px - ahora más ancho */
        padding: 0 20px !important;
    }
}

/* 4. SECCIÓN HERO: mejor distribución en pantalla ancha */
@media (min-width: 1025px) {
    .templatemo_section_1_contentarea .templatemo_text {
        width: 50% !important;
        margin: 35px 0 0 30px !important;
    }
    .templatemo_section_1_contentarea .templatemo_img {
        width: 45% !important;
        margin: 35px 30px 0 0 !important;
    }
}

/* 5. HEADER: logo más grande para aprovechar el espacio */
#templatemo_header_logo img {
    max-width: 300px !important;    /* Antes 250px */
}

/* 6. MENÚ: más espacio entre items */
@media (min-width: 769px) {
    #templatemo_menu ul li a {
        padding: 11px 28px !important;  /* Más espacio horizontal */
        font-size: 14px !important;
    }
}

/* 7. FOOTER: aprovechar el ancho completo */
#templatemo_footer {
    max-width: 1200px;
    margin: 20px auto 0 auto;
    padding: 15px 20px;
    text-align: center;
}

/* 8. PROYECTOS: grid más amplio */
@media (min-width: 1200px) {
    #proyectos-container {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 28px !important;
    }
}

/* 9. GALERÍA: más columnas en pantallas grandes */
@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* 10. FORMULARIO: más ancho */
.form-container,
.contact-wrapper-centered {
    max-width: 700px !important;    /* Antes 600px */
}

/* 11. COMPAÑÍA: 3 columnas más amplias */
@media (min-width: 1025px) {
    .compania-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 30px !important;
    }
}

}
