/* ==========================================================================
   STRUCTA Constructora - Hoja de Estilos Corporativa (Propuesta 2)
   Estética de Construcción Pesada, Edificación e Ingeniería
   ========================================================================== */

:root {
  --color-navy-dark: #0B1828;
  --color-navy-card: #132238;
  --color-navy-border: #1E3452;
  --color-orange: #E26D14;
  --color-orange-hover: #C85A09;
  --color-gray-bg: #F8FAFC;
  --color-text-dark: #0F172A;
  --color-text-muted: #64748B;
}

/* ==========================================================================
   ESCALAS VISUALES Y VIEWPORTS RESPONSIVOS
   ========================================================================== */

#inicio {
  min-height: calc(100vh - 65px);
  min-height: calc(100dvh - 65px);
}

#project-modal > div {
  max-height: 90vh;
  max-height: 90dvh;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #1E293B;
  background-color: #FFFFFF;
  overflow-x: hidden;
}

h1, h2, h3, .font-heading {
  font-family: 'Barlow Condensed', 'Montserrat', sans-serif;
  letter-spacing: 0.02em;
}

/* Header & Topbar */
.header-solid {
  background-color: #0B1828;
  border-bottom: 2px solid #E26D14;
}

.topbar-navy {
  background-color: #060D17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Botón Primario de Construcción (Naranja Industrial de Alta Visibilidad) */
.btn-primary {
  background-color: #E26D14;
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.75rem;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease-in-out;
  box-shadow: 0 4px 14px 0 rgba(226, 109, 20, 0.35);
}

.btn-primary:hover {
  background-color: #C85A09;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px 0 rgba(226, 109, 20, 0.45);
}

.btn-secondary {
  background-color: transparent;
  color: #FFFFFF;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.85rem 1.75rem;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.25s ease-in-out;
}

.btn-secondary:hover {
  background-color: #FFFFFF;
  color: #0B1828;
  border-color: #FFFFFF;
}

/* Tarjetas de Servicios Estilo Constructora */
.service-card {
  background-color: #132238;
  border: 1px solid #1E3452;
  border-radius: 2px;
  padding: 2.25rem 2rem;
  transition: all 0.3s ease;
  position: relative;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: #E26D14;
  transition: width 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: #E26D14;
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.4);
}

.service-card:hover::after {
  width: 100%;
}

.service-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 2px;
  background-color: rgba(226, 109, 20, 0.12);
  border: 1px solid rgba(226, 109, 20, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E26D14;
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

/* Tarjeta de Proyecto */
.project-card {
  background-color: #FFFFFF;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  border: 1px solid #E2E8F0;
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
  border-color: #E26D14;
}

.project-card img {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Badge de Categoría */
.badge-orange {
  background-color: #E26D14;
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}

/* Modal de Ficha Técnica */
.modal-backdrop {
  background-color: rgba(11, 24, 40, 0.85);
  backdrop-filter: blur(8px);
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* ==========================================================================
   Storytelling Slider / Sticky Stacking Cards a Pantalla Completa
   ========================================================================== */
#servicios {
  position: relative;
  height: 380vh;
}

@media (max-width: 768px) {
  #servicios {
    height: 320vh;
  }
}

.services-sticky-viewport {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: #020617;
}

.services-top-hud {
  position: absolute;
  top: 108px;
  left: 0;
  right: 0;
  z-index: 30;
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 640px) {
  .services-top-hud {
    top: 124px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-top-hud {
    top: 132px;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.services-hud-badge {
  pointer-events: auto;
  background-color: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.375rem 0.625rem;
  border-left: 4px solid #E26D14;
  border-top: 1px solid rgba(51, 65, 85, 0.8);
  border-right: 1px solid rgba(51, 65, 85, 0.8);
  border-bottom: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 2px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.hud-desktop-text {
  display: none;
}

@media (min-width: 640px) {
  .hud-desktop-text {
    display: inline;
  }
}

@media (min-width: 640px) {
  .services-hud-badge {
    padding: 0.5rem 1rem;
    gap: 0.75rem;
  }
}

.services-hud-controls {
  pointer-events: auto;
  background-color: rgba(2, 6, 23, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.375rem 0.5rem;
  border: 1px solid rgba(51, 65, 85, 0.8);
  border-radius: 2px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .services-hud-controls {
    padding: 0.5rem 0.75rem;
    gap: 0.625rem;
  }
}

.services-container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .services-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .services-container {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

.services-content-wrapper {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 110px;
  padding-bottom: 40px;
}

@media (min-width: 640px) {
  .services-content-wrapper {
    padding-top: 125px;
    padding-bottom: 50px;
  }
}

@media (min-width: 1024px) {
  .services-content-wrapper {
    padding-top: 135px;
    padding-bottom: 60px;
  }
}

.storytelling-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  will-change: transform, filter, opacity;
  transform-origin: center center;
  backface-visibility: hidden;
}

.storytelling-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  will-change: transform;
  transform-origin: center center;
  backface-visibility: hidden;
}

.storytelling-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.97) 0%, rgba(2, 6, 23, 0.65) 50%, rgba(2, 6, 23, 0.15) 85%, transparent 100%);
}

@media (min-width: 1024px) {
  .storytelling-overlay {
    background: linear-gradient(to right, rgba(2, 6, 23, 0.96) 0%, rgba(2, 6, 23, 0.75) 35%, rgba(2, 6, 23, 0.2) 65%, transparent 100%);
  }
}

.storytelling-content-box {
  position: relative;
  will-change: transform, opacity;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  backface-visibility: hidden;
  background: linear-gradient(135deg, rgba(6, 13, 23, 0.97) 0%, rgba(11, 24, 40, 0.95) 100%);
  border: 1px solid rgba(226, 109, 20, 0.4);
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95);
  max-height: calc(100vh - 160px);
  max-height: calc(100dvh - 160px);
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.storytelling-content-box::-webkit-scrollbar {
  display: none;
}

/* Indicadores de esquina tecnológica (Brackets estilo ingeniería) */
.storytelling-content-box::before {
  content: '';
  position: absolute;
  top: -1px;
  right: -1px;
  width: 16px;
  height: 16px;
  border-top: 2px solid #E26D14;
  border-right: 2px solid #E26D14;
  pointer-events: none;
}

.storytelling-content-box::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -1px;
  width: 16px;
  height: 16px;
  border-bottom: 2px solid #E26D14;
  border-left: 2px solid #E26D14;
  pointer-events: none;
}

.storytelling-content-box:hover {
  border-color: rgba(226, 109, 20, 0.85) !important;
  box-shadow: 0 35px 80px -15px rgba(0, 0, 0, 0.95), 0 0 40px rgba(226, 109, 20, 0.28) !important;
}

/* Pulso láser de la línea de acento */
@keyframes laserGlow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(226, 109, 20, 0.7), 0 0 20px rgba(245, 158, 11, 0.4);
    opacity: 0.9;
  }
  50% {
    box-shadow: 0 0 18px rgba(226, 109, 20, 1), 0 0 32px rgba(245, 158, 11, 0.7);
    opacity: 1;
  }
}

.tech-accent-line {
  box-shadow: 0 0 12px rgba(226, 109, 20, 0.7);
  animation: laserGlow 3s infinite ease-in-out;
}

@media (max-height: 800px) {
  .services-content-wrapper {
    padding-top: 100px;
    padding-bottom: 25px;
  }
  .storytelling-content-box {
    max-height: calc(100vh - 135px);
  }
}

@media (max-height: 680px) {
  .services-content-wrapper {
    padding-top: 85px;
    padding-bottom: 20px;
  }
  .storytelling-content-box {
    max-height: calc(100vh - 110px);
    padding: 0.85rem 1.15rem !important;
  }
}

.storytelling-img {
  will-change: transform;
  transform-origin: center center;
  backface-visibility: hidden;
}

@media (min-width: 1024px) {
  .lg\:col-span-8 {
    grid-column: span 8 / span 8 !important;
  }
}



