/* ==========================================================================
   Rodríguez en Seco — Tectonic Precision Drywall Styles
   ========================================================================== */

@layer base {
  html,
  body {
    margin: 0;
    padding: 0;
    overflow-x: clip;
  }

  body {
    overscroll-behavior-y: none;
  }

  main > :first-child {
    margin-top: 0 !important;
  }

  main > :last-child {
    margin-bottom: 0 !important;
  }
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #0c0e11;
}

::-webkit-scrollbar-thumb {
  background: #333538;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b;
}

@keyframes radarPulse {
  0% {
    transform: scale(1);
    opacity: 0.85;
  }
  60% {
    transform: scale(1.48);
    opacity: 0;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

/* Subtle architectural blueprint grid background */
.blueprint-grid {
  background-image:
    linear-gradient(to right, rgba(156, 163, 175, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(156, 163, 175, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* H1 Masked Line Reveal */
.reveal-mask {
  display: block;
  overflow: hidden;
}

.reveal-line {
  display: inline-block;
  will-change: transform, opacity;
}

/* 3D Canvas Container */
.durlock-canvas-wrap {
  position: relative;
  width: 100%;
  height: 320px;
  touch-action: pan-y;
}

@media (min-width: 640px) {
  .durlock-canvas-wrap {
    height: 360px;
  }
}

#durlock-3d {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
}

/* ==========================================================================
   Architectural Dimension Lines & Corner Registration Marks (#servicios)
   ========================================================================== */
.arch-card {
  position: relative;
  border: 1px solid rgba(83, 68, 52, 0.28);
}

.arch-line {
  position: absolute;
  background: linear-gradient(90deg, rgba(245, 158, 11, 0.75), rgba(255, 193, 116, 0.35));
  pointer-events: none;
  z-index: 20;
}

.arch-line-top {
  top: 0;
  left: 0;
  width: 100%;
  height: 1.5px;
  transform-origin: left center;
  transform: scaleX(0);
}

.arch-line-bottom {
  bottom: 0;
  right: 0;
  width: 100%;
  height: 1.5px;
  transform-origin: right center;
  transform: scaleX(0);
}

.arch-line-left {
  top: 0;
  left: 0;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.75), rgba(255, 193, 116, 0.25));
  transform-origin: top center;
  transform: scaleY(0);
}

.arch-line-right {
  bottom: 0;
  right: 0;
  width: 1.5px;
  height: 100%;
  background: linear-gradient(0deg, rgba(245, 158, 11, 0.75), rgba(255, 193, 116, 0.25));
  transform-origin: bottom center;
  transform: scaleY(0);
}

/* Corner crosshair / CAD tick marks */
.arch-tick {
  position: absolute;
  width: 12px;
  height: 12px;
  pointer-events: none;
  opacity: 0;
  z-index: 30;
}

.arch-tick::before,
.arch-tick::after {
  content: "";
  position: absolute;
  background-color: #f59e0b;
}

.arch-tick::before {
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  transform: translateY(-50%);
}

.arch-tick::after {
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
}

.arch-tick-tl {
  top: -6px;
  left: -6px;
}

.arch-tick-tr {
  top: -6px;
  right: -6px;
}

.arch-tick-bl {
  bottom: -6px;
  left: -6px;
}

.arch-tick-br {
  bottom: -6px;
  right: -6px;
}

/* ==========================================================================
   Gallery Cards & Lightbox
   ========================================================================== */
.gallery-card {
  will-change: transform, opacity;
}

.gallery-card.is-hidden {
  display: none;
}

#projectLightbox {
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#projectLightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

#projectLightbox:not(.is-open) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#projectLightbox .lightbox-panel {
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

#projectLightbox.is-open .lightbox-panel {
  transform: scale(1) translateY(0);
}

#projectLightbox:not(.is-open) .lightbox-panel {
  transform: scale(0.96) translateY(10px);
}

/* Honeypot Anti-Spam Field (invisible to humans & screen readers) */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* FAQ Accordion */
.faq-item .faq-answer {
  display: none;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.faq-item.is-open .faq-icon {
  transform: rotate(180deg);
}

.faq-item.is-open {
  border-color: rgba(245, 158, 11, 0.45);
}

