/* ==========================================================================
   Filoria - Impresión 3D Personalizada
   Design System & Modern Styling
   ========================================================================== */

:root {
  /* Paleta Corporativa Filoria */
  --bg-dark: #070d18;
  --bg-card: rgba(16, 26, 43, 0.75);
  --bg-card-hover: rgba(22, 36, 60, 0.9);
  --bg-surface: #0e1726;

  /* Dorados Metálicos */
  --gold-primary: #d4af37;
  --gold-light: #f3e198;
  --gold-dark: #aa8522;
  --gold-gradient: linear-gradient(135deg, #f7e7a9 0%, #d4af37 50%, #997316 100%);
  --gold-glow: rgba(212, 175, 55, 0.25);

  /* Texto */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-subtle: #64748b;

  /* Acentos de estado */
  --accent-blue: #38bdf8;
  --whatsapp-green: #25d366;

  /* Bordes y Cristales */
  --border-glass: rgba(212, 175, 55, 0.18);
  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Tipografía */
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout */
  --container-max: 1200px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Fondo Técnico tipo Cuadrícula Blueprint */
.grid-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow {
  position: fixed;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.glow-1 {
  top: -100px;
  right: -100px;
  background: var(--gold-primary);
}

.glow-2 {
  bottom: 10%;
  left: -150px;
  background: #0284c7;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* Tipografía y Utilidades */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.2;
}

.gold-gradient {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Botones */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-gold {
  background: var(--gold-gradient);
  color: #070d18;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* Header & Navegación */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(7, 13, 24, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  z-index: 100;
  padding: 0.75rem 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.nav-logo {
  height: 48px;
  width: auto;
  border-radius: 8px;
  border: 1px solid var(--border-glass);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tagline {
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--gold-light);
}

.nav-cta {
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-main);
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-glass);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-primary);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.hero-title {
  font-size: 3.25rem;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold-light);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

.stat-divider {
  width: 1px;
  height: 35px;
  background: var(--border-subtle);
}

/* Visual Hero */
.card-glow-wrapper {
  position: relative;
}

.banner-frame {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 30px var(--gold-glow);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.banner-frame:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Banner Central de Marca */
.brand-showcase {
  padding: 3rem 0;
}

.banner-container {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Secciones Generales */
section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Servicios Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 20px var(--gold-glow);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.5rem;
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Galería de Trabajos */
.gallery {
  background: rgba(10, 18, 32, 0.4);
}

/* Filtros de Categoría */
.gallery-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.filter-btn {
  background: rgba(16, 26, 43, 0.7);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 0.6rem 1.25rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(8px);
}

.filter-btn:hover {
  color: var(--gold-light);
  border-color: var(--border-glass);
  transform: translateY(-2px);
}

.filter-btn.active {
  background: var(--gold-gradient);
  color: #070d18;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.gallery-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.gallery-item.hide {
  display: none;
}

.gallery-item:hover {
  transform: translateY(-6px);
  border-color: var(--border-glass);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 25px var(--gold-glow);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
  background: #060b14;
}

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

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

.gallery-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(7, 13, 24, 0.85);
  border: 1px solid var(--border-glass);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  border-radius: 50px;
  backdrop-filter: blur(8px);
}

.gallery-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.gallery-meta {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.material-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.use-tag {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

.gallery-info h4 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.gallery-info p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.gallery-cta {
  display: inline-flex;
  align-items: center;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.gallery-cta:hover {
  color: #fff;
  transform: translateX(4px);
}

/* Materiales */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.material-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: var(--transition);
}

.material-card:hover {
  border-color: var(--border-glass);
  transform: translateY(-4px);
}

.material-card.featured {
  border-color: var(--border-glass);
  background: linear-gradient(180deg, rgba(22, 36, 60, 0.8) 0%, rgba(16, 26, 43, 0.9) 100%);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

.material-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.material-badge.highlight {
  background: rgba(212, 175, 55, 0.15);
  color: var(--gold-light);
  border: 1px solid var(--border-glass);
}

.material-card h4 {
  font-size: 1.35rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.material-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Proceso */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.step-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 2.25rem 2rem;
  position: relative;
}

.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(212, 175, 55, 0.2);
  line-height: 1;
  margin-bottom: 1rem;
}

.step-item h4 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.step-item p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Banner de Localización */
.location-box {
  background: linear-gradient(135deg, rgba(16, 26, 43, 0.9) 0%, rgba(8, 15, 26, 0.95) 100%);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  flex-wrap: wrap;
}

.location-content {
  max-width: 600px;
}

.location-content h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.location-highlight {
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.location-chips {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.chip {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
}

/* Contacto y Formulario */
.contact-card {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  padding: 3.5rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.contact-method:hover {
  border-color: var(--border-glass);
  background: rgba(255, 255, 255, 0.06);
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(212, 175, 55, 0.1);
  color: var(--gold-light);
}

.method-icon.whatsapp-icon {
  background: rgba(37, 211, 102, 0.15);
  color: var(--whatsapp-green);
}

.method-icon svg {
  width: 24px;
  height: 24px;
}

/* Estilos de Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(7, 13, 24, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

.btn-block {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.form-privacy {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* Botón flotante de WhatsApp */
.floating-whatsapp {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.floating-whatsapp:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0;
  background: #050a12;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  border-radius: 6px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links {
  text-align: right;
  color: var(--text-subtle);
  font-size: 0.85rem;
}

.footer-sub {
  color: var(--gold-light);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-description {
    margin: 0 auto 2rem;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .contact-card {
    grid-template-columns: 1fr;
    padding: 2.5rem;
  }
  .hero-title {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(7, 13, 24, 0.98);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.25rem;
    border-bottom: 1px solid var(--border-glass);
  }
  .nav-menu.active {
    display: flex;
  }
  .mobile-toggle {
    display: flex;
  }
  .hero-title {
    font-size: 2.25rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .location-box {
    padding: 2rem;
    text-align: center;
    justify-content: center;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-links {
    text-align: center;
  }
}
