/* ==========================================================================
   Fotostep.site - Elementos 3D & Fotogrametría Stylesheet (modelos3d.css)
   De 3D Studio en MS-DOS a Blender, Impresión 3D y Realidad Aumentada
   ========================================================================== */

:root {
  --3d-cyan: #00e5ff;
  --3d-cyan-glow: rgba(0, 229, 255, 0.4);
  --3d-purple: #a855f7;
  --3d-gold: #f59e0b;
  --3d-emerald: #10b981;
  --3d-bg-dark: #040d18;
  --3d-card-bg: rgba(10, 22, 40, 0.75);
  --3d-border: rgba(0, 229, 255, 0.25);
}

/* 3D Hero Section */
.hero-3d {
  position: relative;
  padding: calc(var(--header-height) + 3.5rem) 0 5rem;
  background: 
    radial-gradient(circle at 70% 30%, rgba(0, 229, 255, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 20% 70%, rgba(168, 85, 247, 0.12) 0%, transparent 50%),
    linear-gradient(180deg, #030811 0%, #061224 100%);
  border-bottom: 1px solid var(--3d-border);
  overflow: hidden;
}

.hero-3d-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-3d-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(0, 229, 255, 0.12);
  color: var(--3d-cyan);
  border: 1px solid var(--3d-cyan);
  box-shadow: 0 0 20px var(--3d-cyan-glow);
  margin-bottom: 1.5rem;
}

.hero-3d-title {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero-3d-subtitle {
  font-size: 1.2rem;
  color: var(--3d-gold);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-3d-manifesto {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #cbd5e1;
  background: rgba(7, 16, 32, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--3d-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

.hero-3d-manifesto p {
  color: #94a3b8;
  margin-bottom: 1.2rem;
}

.hero-3d-manifesto p:last-child {
  margin-bottom: 0;
}

/* 3D Interactive Polyhedral Canvas Widget */
.wireframe-widget-card {
  position: relative;
  background: radial-gradient(circle, #0e203c 0%, #061122 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--3d-cyan);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px var(--3d-cyan-glow);
  padding: 1.5rem;
  overflow: hidden;
  text-align: center;
}

.wireframe-canvas-container {
  width: 100%;
  height: 320px;
  cursor: grab;
  position: relative;
}

.wireframe-canvas-container.dragging {
  cursor: grabbing;
}

.wireframe-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.wireframe-telemetry {
  display: flex;
  justify-content: space-around;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-display);
  font-size: 0.8rem;
  color: var(--3d-cyan);
}

/* Evolution Timeline: MS-DOS 3D Studio -> Blender -> 3D Printing */
.timeline-3d-section {
  padding: 5.5rem 0;
  background: #030812;
  position: relative;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.timeline-card {
  background: var(--3d-card-bg);
  border: 1px solid var(--3d-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.timeline-card:hover {
  transform: translateY(-5px);
  border-color: var(--3d-cyan);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 229, 255, 0.15);
}

.timeline-year-tag {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--3d-cyan);
  margin-bottom: 0.5rem;
}

.timeline-year-tag.gold {
  color: var(--3d-gold);
}

.timeline-year-tag.purple {
  color: #c084fc;
}

.timeline-title {
  font-size: 1.25rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Applications 4 Pillars (Videos, AR, Expos, 3D Printing) */
.pillars-3d-section {
  padding: 5.5rem 0;
  background: linear-gradient(180deg, #030812 0%, #061120 100%);
  border-top: 1px solid var(--3d-border);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3.5rem;
}

.pillar-card {
  background: var(--3d-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.pillar-card:hover {
  border-color: var(--3d-gold);
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(245, 158, 11, 0.2);
}

.pillar-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--3d-gold);
  margin-bottom: 1.5rem;
}

.pillar-title {
  font-size: 1.3rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.pillar-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

/* Sketchfab Showcase Banner */
.sketchfab-banner {
  margin: 5rem 0 3rem;
  background: radial-gradient(circle at 80% 50%, rgba(0, 229, 255, 0.15) 0%, rgba(6, 17, 34, 0.95) 70%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--3d-cyan);
  padding: 3.5rem;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 229, 255, 0.15);
}

/* Sketchfab Interactive Embed Section */
.sketchfab-embed-section {
  padding: 1rem 0 4rem;
}

.sketchfab-embed-card {
  background: var(--3d-card-bg);
  border: 1px solid var(--3d-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg), 0 0 45px rgba(0, 229, 255, 0.12);
  margin-top: 1.5rem;
}

.sketchfab-embed-wrapper {
  position: relative;
  width: 100%;
  border-radius: 14px;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sketchfab-embed-wrapper iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 500px;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  background: #000000;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85);
  display: block;
}

/* Taller de Artesanía Digital & Impresión 3D Box */
.artesania-box-section {
  padding: 3rem 0 5.5rem;
  position: relative;
}

.artesania-card {
  background: linear-gradient(135deg, rgba(8, 24, 46, 0.95) 0%, rgba(6, 17, 34, 0.98) 100%);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(245, 158, 11, 0.15);
  position: relative;
  overflow: hidden;
}

.artesania-header-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 3rem;
  align-items: center;
  margin-bottom: 3rem;
}

.artesania-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  background: rgba(245, 158, 11, 0.15);
  color: var(--3d-gold);
  border: 1px solid var(--3d-gold);
  margin-bottom: 1rem;
}

.artesania-title {
  font-size: 2.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.artesania-lead {
  font-size: 1.05rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.artesania-process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 3rem;
}

.process-step-box {
  background: rgba(4, 13, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-fast);
}

.process-step-box:hover {
  transform: translateY(-4px);
  border-color: var(--3d-gold);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
}

.process-step-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--3d-gold);
  margin-bottom: 0.4rem;
}

.process-step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.process-step-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.artesania-footer-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .hero-3d-grid,
  .artesania-header-grid {
    grid-template-columns: 1fr;
  }
  .artesania-process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sketchfab-banner,
  .artesania-card {
    padding: 2.5rem 1.5rem;
  }
  .sketchfab-embed-wrapper,
  .sketchfab-embed-wrapper iframe {
    min-height: 380px;
  }
}

@media (max-width: 640px) {
  .artesania-process-grid {
    grid-template-columns: 1fr;
  }
  .artesania-footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }
}
