/* ==========================================================
   Reforma y Acabados 360 - Custom Industrial Design System
   Bootstrap 5.3 Extension & Variables
   Administrado por Gestoría AdminZapata | Universo Cicerón
   ========================================================== */

:root {
  --app-primary: #070a0c;
  --app-primary-container: #1e2124;
  --app-secondary: #fe6b00;
  --app-secondary-hover: #e55e00;
  --app-secondary-soft: rgba(254, 107, 0, 0.12);
  --app-surface: #f9f9f9;
  --app-surface-low: #f3f3f4;
  --app-surface-container: #eeeeee;
  --app-surface-high: #e8e8e8;
  --app-surface-white: #ffffff;
  --app-on-surface: #1a1c1c;
  --app-on-surface-variant: #44474a;
  --app-outline: #75777a;
  --app-outline-variant: #d5d7da;
  --app-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --app-radius-sm: 6px;
  --app-radius-md: 10px;
  --app-radius-lg: 16px;
  --app-radius-xl: 24px;
  --app-shadow-card: 0 2px 10px rgba(0, 0, 0, 0.04);
  --app-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.08);
}

body {
  font-family: var(--app-font-family);
  background-color: var(--app-surface);
  color: var(--app-on-surface);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Material Symbols alignment */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
}
.material-symbols-fill {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Header & Top Navigation */
.app-header {
  background: rgba(249, 249, 249, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.brand-icon-box {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background-color: var(--app-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(254, 107, 0, 0.35);
}

/* Desktop Nav items */
.desktop-nav .nav-link {
  color: var(--app-on-surface-variant);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  border-radius: var(--app-radius-md);
  transition: all 0.2s ease;
  position: relative;
}

.desktop-nav .nav-link:hover {
  color: var(--app-on-surface);
  background-color: var(--app-surface-container);
}

.desktop-nav .nav-link.active {
  color: var(--app-secondary);
  font-weight: 600;
  background-color: var(--app-secondary-soft);
}

/* Hero Section */
.hero-card {
  position: relative;
  min-height: 500px;
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  background-color: var(--app-primary-container);
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2.5rem;
  box-shadow: 0 12px 36px rgba(7, 10, 12, 0.2);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.42;
  filter: contrast(1.15) brightness(0.85);
  transition: transform 12s ease-out;
}

.hero-card:hover .hero-bg {
  transform: scale(1.04);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 12, 0.95) 0%, rgba(30, 33, 36, 0.75) 50%, rgba(30, 33, 36, 0.25) 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(254, 107, 0, 0.22);
  color: #ffb693;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(254, 107, 0, 0.3);
  width: fit-content;
}

.hero-title {
  font-size: clamp(1.85rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #ffffff;
}

/* Hero: vídeo corporativo junto al titular */
.hero-content {
  width: 100%;
}

.hero-video-wrap {
  padding: 10px;
  border-radius: var(--app-radius-lg);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(7, 10, 12, 0.45);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.hero-video-wrap:hover,
.hero-video-wrap:focus-within {
  transform: translateY(-4px);
  border-color: rgba(254, 107, 0, 0.5);
  box-shadow: 0 22px 48px rgba(7, 10, 12, 0.5), 0 0 0 1px rgba(254, 107, 0, 0.25);
}

.hero-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--app-radius-md);
  background-color: #000000;
}

.hero-video-caption {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 4px 2px;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.62);
}

.hero-video-caption .material-symbols-outlined {
  font-size: 1rem;
  color: var(--app-secondary);
}

/* En pantallas medianas el vídeo aún no tiene columna propia: lo centramos */
@media (max-width: 991.98px) {
  .hero-video-wrap {
    max-width: 620px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Custom Buttons */
.btn-primary-orange {
  background-color: var(--app-secondary);
  color: #ffffff !important;
  border: none;
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--app-radius-md);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(254, 107, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary-orange:hover {
  background-color: var(--app-secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(254, 107, 0, 0.45);
}

.btn-hero-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 600;
  padding: 0.85rem 1.6rem;
  border-radius: var(--app-radius-md);
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-hero-dark:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Surface Cards */
.surface-card {
  background-color: var(--app-surface-low);
  border-radius: var(--app-radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--app-outline-variant);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.surface-card:hover {
  border-color: rgba(254, 107, 0, 0.4);
  box-shadow: var(--app-shadow-hover);
  transform: translateY(-3px);
}

.card-icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: var(--app-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(254, 107, 0, 0.25);
}

/* Category & Status Tags */
.tag-chip {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--app-radius-sm);
  background-color: var(--app-surface-container);
  color: var(--app-on-surface-variant);
  letter-spacing: 0.02em;
}

/* Quick Project Configurator */
.configurator-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 576px) {
  .configurator-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.selector-card {
  background-color: var(--app-surface-white);
  border: 2px solid transparent;
  border-radius: var(--app-radius-md);
  padding: 1.25rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.selector-card:hover {
  border-color: var(--app-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
}

.selector-card.active {
  border-color: var(--app-secondary);
  background-color: #fff9f5;
  box-shadow: 0 6px 18px rgba(254, 107, 0, 0.15);
}

.selector-card .selector-icon {
  font-size: 30px;
  color: var(--app-secondary);
  transition: transform 0.2s ease;
}

.selector-card:hover .selector-icon {
  transform: scale(1.1);
}

.selector-card .selector-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--app-on-surface);
}

/* Gallery & Portfolio items */
.gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--app-radius-md);
  overflow: hidden;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7, 10, 12, 0.85) 0%, rgba(7, 10, 12, 0.2) 60%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-end;
  padding: 1rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* Video multimedia cards */
.video-card-thumb {
  position: relative;
  height: 200px;
  border-radius: var(--app-radius-md) var(--app-radius-md) 0 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(7, 10, 12, 0.35);
  transition: background 0.3s ease;
}

.video-card:hover .video-card-thumb::before {
  background: rgba(7, 10, 12, 0.2);
}

.play-button {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--app-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease;
  border: none;
}

.video-card:hover .play-button {
  transform: scale(1.12);
  background-color: var(--app-secondary-hover);
}

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(7, 10, 12, 0.82);
  color: #ffffff;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

/* Methodology Steps */
.methodology-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--app-secondary);
  line-height: 1;
}

/* Floating Bottom Navigation Bar (Mobile) */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1040;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 6px 12px;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04);
}

.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px 4px;
  color: var(--app-on-surface-variant);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
}

.mobile-nav-btn .material-symbols-outlined {
  font-size: 24px;
  margin-bottom: 2px;
  transition: transform 0.2s ease;
}

.mobile-nav-btn.active {
  color: var(--app-secondary);
  font-weight: 700;
}

.mobile-nav-btn.active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
  transform: translateY(-2px);
}

/* Form Controls Custom Styling */
.form-label-custom {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--app-on-surface);
  margin-bottom: 0.4rem;
}

.form-control-custom,
.form-select-custom {
  background-color: var(--app-surface-white);
  border: 1px solid var(--app-outline-variant);
  border-radius: var(--app-radius-md);
  padding: 0.75rem 1rem;
  color: var(--app-on-surface);
  font-size: 0.96rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control-custom:focus,
.form-select-custom:focus {
  border-color: var(--app-secondary);
  box-shadow: 0 0 0 3px rgba(254, 107, 0, 0.18);
  outline: none;
}

/* Interactive Before / After Comparison Slider */
.comparison-container {
  position: relative;
  width: 100%;
  height: 380px;
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  user-select: none;
}

.comparison-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.comparison-before {
  width: 50%;
  border-right: 3px solid #ffffff;
  z-index: 2;
}

.comparison-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--app-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  cursor: ew-resize;
  z-index: 3;
}

.badge-comparison {
  position: absolute;
  top: 14px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(7, 10, 12, 0.75);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 4;
}

/* View transitions */
.app-view {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-view.active-view {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Admin Dashboard Table */
.table-admin {
  background-color: var(--app-surface-white);
  border-radius: var(--app-radius-md);
  overflow: hidden;
}

.table-admin th {
  background-color: var(--app-surface-low);
  color: var(--app-on-surface-variant);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  padding: 12px 16px;
}

.table-admin td {
  padding: 12px 16px;
  vertical-align: middle;
  font-size: 0.9rem;
}

/* Safe margin for bottom nav */
.content-wrapper {
  padding-bottom: 90px;
}

@media (min-width: 992px) {
  .content-wrapper {
    padding-bottom: 40px;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float-btn {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 1040;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  color: #ffffff !important;
}

@media (min-width: 992px) {
  .whatsapp-float-btn {
    bottom: 28px;
    right: 28px;
  }
}

/* Real Media Video Card & Overlay */
.video-card-container {
  position: relative;
  border-radius: var(--app-radius-lg);
  overflow: hidden;
  background-color: #000000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.video-card-container video {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.video-overlay-play {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s ease;
}

.video-overlay-play:hover {
  background: rgba(0, 0, 0, 0.15);
}

.play-icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--app-secondary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(254, 107, 0, 0.5);
  transition: transform 0.25s ease;
}

.video-overlay-play:hover .play-icon-circle {
  transform: scale(1.12);
}

/* Step Process Timeline */
.process-step-card {
  background-color: var(--app-surface-white);
  border: 1px solid var(--app-outline-variant);
  border-radius: var(--app-radius-lg);
  padding: 1.5rem;
  height: 100%;
  position: relative;
  transition: all 0.25s ease;
}

.process-step-card:hover {
  border-color: var(--app-secondary);
  transform: translateY(-4px);
  box-shadow: var(--app-shadow-hover);
}

.process-step-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--app-secondary);
  line-height: 1;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

/* Interactive Category Filter Pills */
.category-btn-pill {
  border: 1px solid var(--app-outline-variant);
  background-color: var(--app-surface-white);
  color: var(--app-on-surface);
  border-radius: 999px;
  padding: 0.6rem 1.3rem;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.category-btn-pill:hover,
.category-btn-pill.active {
  background-color: var(--app-secondary);
  color: #ffffff;
  border-color: var(--app-secondary);
  box-shadow: 0 4px 12px rgba(254, 107, 0, 0.3);
}

