:root {
    --bg-color: #0F172A;
    --bg-alt: #1E293B;
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --accent-color: #06B6D4;
    --aux-color: #06CBD4;
    --vertex-color: #FF6B35;
    --edge-color: #F59E0B;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
}


.roboto-bean, html {
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}


.space-paw, h1, h2, h3, h4, h5, h6 {
  font-family: "Space Grotesk", sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-style: normal;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   NAV
========================================= */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-color) opacity(0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    border-bottom: 1px solid color-mix(in srgb, var(--accent-color) 50%, transparent);
}

.nav-logo {
    height: 40px;
    width: auto;
    margin-right: 15px;
}

.nav-logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: bold;
    letter-spacing: 2px;
    color: var(--text-primary);
    text-transform: uppercase;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Clase activa para saber en qué sección estamos */
.nav-links a.active {
    color: var(--accent-color);
    border-bottom: 2px solid var(--accent-color);
}

/* =========================================
   SECCIONES GNRAL
========================================= */
.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Fondos para separar visualmente*/
.bg-alt {
    background-color: var(--bg-alt);
}

/* =========================================
   SECCIÓN HERO PORTADA
========================================= */
.hero-section {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-height));
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Contenedor para video de fondo */
.hero-media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover; 
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(18, 18, 18, 0.3) 0%,
    rgba(18, 18, 18, 0.75) 60%,
    var(--bg-color) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.hero-badge {
  background: color-mix(in srgb, var(--edge-color) 10%, transparent);
  color: var(--vertex-color);
  border: 1px solid color-mix(in srgb, var(--vertex-color) 60%, transparent);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(135deg, #ffffff 0%, #b0b0b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  line-height: 1.05;
}

.hero-subtitle {
  max-width: 680px;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-primary);
  line-height: 1.5;
}

.scroll-indicator {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.scroll-indicator:hover {
  color: var(--accent-color);
}

.arrow-down {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--accent-color);
  border-bottom: 2px solid var(--accent-color);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
  40% { transform: translateY(6px) rotate(45deg); }
  60% { transform: translateY(3px) rotate(45deg); }
}

h1 {
    font-size: 4rem;
    margin-bottom: 10px;
}

    
h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--accent-color);
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
}


.slider-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: var(--bg-color);
    margin: 0 auto;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.image-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wireframe-layer {
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    z-index: 1;
}

.slider-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    z-index: 3;
    cursor: ew-resize;
    margin: 0;
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background-color: white;
    z-index: 2;
    transform: translateX(-50%);
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* =========================================
   SECCIÓN PRODUCCIÓN
========================================= */

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 80px; 
  margin-bottom: 100px;
}

.step-row {
  display: flex;
  align-items: center;
  gap: 50px;
}

.step-row.reverse {
  flex-direction: row-reverse;
}

.step-text {
  flex: 1;
}

.step-number {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.05);
  line-height: 1;
  margin-bottom: -15px; /*Esto superpone un poco el número sobre el título */
  font-family: monospace;
}

.step-text h3 {
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.step-text p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

.step-media {
  flex: 1.2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.step-media img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.step-media:hover img {
  transform: scale(1.02);
}

/* Deslizador */
.slider-showcase {
  background: var(--bg-alt);
  padding: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-info {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.slider-info h3 {
  font-size: 1.6rem;
  color: var(--accent-color);
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .step-row, .step-row.reverse {
    flex-direction: column;
    gap: 30px;
  }
  
  .step-media {
    width: 100%;
  }
  
  .slider-showcase {
    padding: 30px 15px;
  }
}

.viewer-section {
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--bg-color);
}

model-viewer {
    width: 100%;
    height: 100%;
    --poster-color: transparent;
}

/* Aquí está el estilo de los hotspots */
.hotspot {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 0 4px color-mix(in srgb, var(--secondary) 30%, transparent);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.hotspot:hover,
.hotspot:focus {
    background-color: #00d2ff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25), 0 0 0 6px color-mix(in srgb, var(--accent-color) 40%, transparent);
    outline: none;
}

.annotation {
    background-color: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(4px);
    color: white;
    position: absolute;
    top: 50%;
    left: 30px;
    transform: translateY(-50%);
    width: 220px;
    padding: 16px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.annotation strong {
    display: block;
    font-family: sans-serif;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--accent-color);
}

.annotation p {
    font-family: sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    color: var(--text-primary);
}

/* Para mostrar la tarjeta al hacer hover en el hotspot */
.hotspot:hover .annotation,
.hotspot:focus .annotation,
.hotspot.active .annotation {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(10px);
}

/* =========================================
   SECCIÓN IDENTIDAD Y TRASFONDO
========================================= */

#overview {
position: relative;
  background-image: 
    linear-gradient(
      180deg, 
      rgba(18, 18, 18, 0.65) 0%, 
      rgba(18, 18, 18, 0.85) 100%
    ),
    url('images/image_7.png'); 
  background-size: cover;
  background-position: center;  
  background-repeat: no-repeat;  
}

.section-header {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  color: var(--accent-color);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 8px;
}

.section-lead {
  font-size: 1.2rem;
  color: var(--text-primary);
  line-height: 1.5;
  margin-top: 10px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.overview-card {
  /* grid-column: 2; */
  background-color: color-mix(in srgb, var(--bg-alt) 70%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.overview-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.3);
}

.overview-card h3 {
  font-size: 1.4rem;
  color: var(--text-primary);
}

.overview-card p {
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.65;
}

.overview-card strong {
  color: var(--text-primary);
}

.overview-card em {
  color: #e0e0e0;
  font-style: italic;
}

.specs-bar {
  background: color-mix(in srgb, var(--bg-alt) 70%, transparent);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 25px 30px;
  display: grid;
  grid-template-columns: repeat( auto-fit , minmax(220px, 1fr));
  gap: 25px;
}

.spec-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.spec-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--accent-color);
  font-weight: 600;
}

.spec-detail {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.spec-detail code {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  font-family: monospace;
  font-size: 0.85rem;
}

/* =========================================
   SECCIÓN PRE-PRODUCCIÓN
========================================= */

.preprod-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 60px;
}

.gallery-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 300px;
}

.gallery-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
  background-color: var(--bg-color);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.featured-item img {
  height: 100%;
  object-fit: cover;
}

.item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

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

.gallery-item:hover .item-overlay {
  opacity: 1;
  transform: translateY(0);
}

.proportion-showcase {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 40px;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
}

.proportion-text h3 {
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 15px;
}

.proportion-text p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.proportion-image {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  cursor: zoom-in;
}

.proportion-image img {
  width: 100%;
  display: block;
}

.zoom-hint {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(5px);
  padding: 8px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: white;
}


@media (max-width: 768px) {
  .proportion-showcase {
    grid-template-columns: 1fr;
  }
}

/* =========================================
   LIGHTBOX 
========================================= */
.lightbox {
  display: none; 
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(10px);
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox-content {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: fadeIn 0.3s ease;
}

.lightbox-caption {
  margin-top: 15px;
  color: #ccc;
  font-size: 1rem;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

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

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* =========================================
   SECCIÓN FINAL
========================================= */
.conclusions-content {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 60px;
}


.findings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.finding-card {
  background: rgba(255, 255, 255, 0.02);
  border-top: 3px solid var(--accent-color);
  padding: 30px;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.finding-card h4 {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 15px;
  font-weight: 600;
}

.finding-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =========================================
   FOOTER
========================================= */
.site-footer {
  background-color: #080808;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 60px 0 40px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}

.footer-brand {
  font-size: 1.2rem;
  font-weight: bold;
  letter-spacing: 4px;
  color: rgba(255, 255, 255, 0.2);
}

.footer-credits {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.footer-credits strong {
  color: var(--text-primary);
}

.footer-links {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.footer-links a {
  color: var(--accent-color);
  text-decoration: none;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.footer-links a:hover {
  opacity: 0.7;
}