/* Estilos Ultra-Profesionales y Modernización Completa para ALUCOBOND MASTERS */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

:root {
  --acm-black: #080d1a;
  --acm-dark: #0f172a;
  --acm-card-bg: #141f36;
  --acm-accent: #e5a93b;
  --acm-accent-hover: #d99726;
  --acm-text-main: #f8fafc;
  --acm-text-muted: #94a3b8;
  --acm-border: rgba(255, 255, 255, 0.08);
  --acm-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --acm-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  font-family: var(--acm-font) !important;
  background-color: var(--acm-black) !important;
  color: var(--acm-text-main);
  overflow-x: hidden !important;
}

/* Encabezado y Tipografías */
h1, h2, h3, h4 {
  font-family: 'Montserrat', var(--acm-font) !important;
  letter-spacing: -0.02em !important;
}

/* Grid de Vitrina de Trabajos */
.acm-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* Filtros de la Vitrina de Trabajos */
.acm-filter-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.acm-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--acm-text-muted);
  border: 1px solid var(--acm-border);
  padding: 10px 22px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.acm-filter-btn:hover, .acm-filter-btn.active {
  background: var(--acm-accent);
  color: #040711;
  border-color: var(--acm-accent);
  box-shadow: 0 0 20px rgba(229, 169, 59, 0.4);
  transform: translateY(-2px);
}

/* Tarjetas de Proyectos en Grid */
.acm-project-card {
  background: var(--acm-card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--acm-border);
  box-shadow: var(--acm-shadow);
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.acm-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(229, 169, 59, 0.5);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.acm-project-thumb-wrapper {
  overflow: hidden;
  position: relative;
}

.acm-project-thumb {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.acm-project-card:hover .acm-project-thumb {
  transform: scale(1.06);
}

.acm-project-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.acm-project-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.acm-project-text {
  font-size: 0.92rem;
  color: var(--acm-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.acm-btn-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  padding: 12px 24px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.3s ease;
  border: 1px solid var(--acm-border);
  cursor: pointer;
  width: 100%;
}

.acm-btn-project:hover {
  background: var(--acm-accent);
  color: #040711;
  border-color: var(--acm-accent);
  box-shadow: 0 4px 15px rgba(229, 169, 59, 0.35);
}

/* Modal Lightbox Galería */
.acm-modal {
  display: none;
  position: fixed;
  z-index: 999999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(4, 7, 17, 0.95);
  backdrop-filter: blur(12px);
  opacity: 0;
  transition: opacity 0.3s ease;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.acm-modal.show {
  display: flex !important;
  opacity: 1;
}

.acm-modal-content, .acm-modal-container {
  margin: auto;
  max-width: 1100px;
  width: 100%;
  background: var(--acm-dark);
  border: 1px solid var(--acm-border);
  border-radius: 16px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.9);
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.acm-modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  color: var(--acm-text-muted);
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}

.acm-modal-close:hover {
  color: var(--acm-accent);
}

.acm-modal-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  padding-right: 40px;
}

.acm-modal-desc {
  color: var(--acm-text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--acm-border);
}

.acm-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.acm-modal-img-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4/3;
  border: 1px solid var(--acm-border);
}

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

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

@media (max-width: 767px) {
  .acm-filter-container {
    gap: 8px;
  }
  .acm-filter-btn {
    padding: 8px 16px;
    font-size: 0.78rem;
  }
  .acm-modal-content {
    padding: 20px 16px;
  }
}
