/* ============================================
   MAIN.CSS — gianstabile.av
   Optimized & deduplicated stylesheet
   ============================================ */

/* --- Critical: body fade-in (FOUC prevention) --- */
html {
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: #fff;
  font-family: "Lato", sans-serif;
  margin: 0;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
  overflow-x: clip;
}
body.loaded {
  opacity: 1;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #c5a059;
}

/* --- Scroll horizontal sin scrollbar visible (filtros) --- */
.fscroll {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}
.fscroll::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* --- Selection --- */
::selection {
  background: #c5a059;
  color: #000;
}

/* --- Preloader --- */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition:
    opacity 0.8s ease-out,
    visibility 0.8s;
}
.loader-hidden {
  opacity: 0;
  visibility: hidden;
}
.shutter {
  width: 60px;
  height: 60px;
  border: 2px solid #333;
  border-top: 2px solid #c5a059;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Video Overlay --- */
.video-overlay {
  background: linear-gradient(
    to bottom,
    rgb(5 5 5 / 0.3) 0%,
    rgb(5 5 5 / 0.6) 50%,
    rgb(5 5 5) 100%
  );
}

/* --- Reveal on scroll --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* --- Back to top --- */
@keyframes subtle-pulse {
  0% {
    box-shadow: 0 0 0 0 rgb(197 160 89 / 0.4);
  }
  70% {
    box-shadow: 0 0 0 10px #fff0;
  }
  100% {
    box-shadow: 0 0 0 0 #fff0;
  }
}
.back-to-top-active {
  animation: subtle-pulse 2s infinite;
}

/* --- Filter buttons --- */
.filter-btn {
  transition: all 0.3s ease;
  cursor: pointer;
}
.filter-btn.active {
  background-color: #c5a059;
  color: #000;
  border-color: #c5a059;
}
.filter-btn.active:hover {
  background-color: #d4af6a;
  color: #000;
}

/* --- Project cards --- */
.project-card {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block;
  border: none;
  outline: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}
.project-card * {
  margin-top: 0;
  margin-bottom: 0;
}
.project-card:hover .project-img {
  transform: scale(1.05);
}
.project-card:hover .play-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.project-card.fade-in {
  opacity: 0;
  animation: simpleFade 0.3s ease forwards;
}
@keyframes simpleFade {
  to {
    opacity: 1;
  }
}

/* --- Projects grid --- */
#projects-grid {
  display: grid !important;
  gap: 1.5rem !important;
  row-gap: 1.5rem !important;
  grid-template-columns: repeat(1, 1fr) !important;
}
@media (min-width: 768px) {
  #projects-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (min-width: 1024px) {
  #projects-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* --- Load more --- */
.load-more-hidden {
  display: none;
}

/* --- Modal --- */
.modal {
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}
.modal-content {
  transform: scale(0.95);
  transition: transform 0.3s ease;
}
.modal.open .modal-content {
  transform: scale(1);
}

/* --- Services --- */
#servicios .group {
  text-align: center;
}
#servicios .group .text-accent-gold {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  transition: transform 0.4s ease;
}
/* Service icon hover animation */
#servicios .group:hover .text-accent-gold {
  transform: scale(1.18);
  filter: drop-shadow(0 0 8px rgba(197, 160, 89, 0.35));
}
#servicios .group:hover .text-accent-gold svg {
  animation: icon-bounce 0.6s ease;
}
@keyframes icon-bounce {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-6px);
  }
  50% {
    transform: translateY(2px);
  }
  70% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

/* --- Modal details --- */
#modal-equipment,
#modal-software {
  word-break: break-word;
}

/* --- Contact tooltips --- */
.contact-tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.contact-tooltip small {
  visibility: hidden;
  background-color: #c5a059;
  color: #000;
  text-align: center;
  border-radius: 6px;
  padding: 6px 12px;
  position: absolute;
  z-index: 1;
  top: 125%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: normal;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.2);
}
.contact-tooltip small::after {
  content: "";
  position: absolute;
  bottom: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #fff0 #fff0 #c5a059 #fff0;
}
.contact-tooltip:hover small {
  visibility: visible;
  opacity: 1;
}
@media (max-width: 640px) {
  .contact-tooltip small {
    white-space: normal;
    width: max-content;
    max-width: 200px;
    text-align: center;
  }
}

/* --- Inline SVG icons --- */
.icon {
  display: inline-block;
  width: 1.25em;
  height: 1.25em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
  vertical-align: middle;
}
.icon-lg {
  width: 1.5em;
  height: 1.5em;
}
.icon-sm {
  width: 1em;
  height: 1em;
}
.fa-bars,
.fa-arrow-up,
.fa-chevron-down,
.fa-search,
.fa-times,
.fa-check,
.fa-angle-left,
.fa-angle-right,
.fa-angle-double-left,
.fa-angle-double-right {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  stroke: currentColor;
  fill: currentColor;
}

/* --- Testimonials / Opiniones --- */
.opiniones-section {
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  /* Slightly lighter than site background, cool gray tone */
  background-color: #131316;
}

/* 35mm film grain noise — grayscale, subtle */
.opiniones-section::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='6' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23g)'/%3E%3C/svg%3E");
  opacity: 0.035;
  pointer-events: none;
  z-index: 1;
  animation: grain-shift 0.8s steps(6) infinite;
}
@keyframes grain-shift {
  0% {
    transform: translate(0, 0);
  }
  16% {
    transform: translate(-1%, -0.5%);
  }
  33% {
    transform: translate(0.5%, 1%);
  }
  50% {
    transform: translate(-0.5%, 0.5%);
  }
  66% {
    transform: translate(1%, -0.5%);
  }
  83% {
    transform: translate(-0.3%, 0.3%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Subtle vertical scratches — very discrete, grayscale */
.opiniones-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 240px,
      rgba(180, 180, 180, 0.012) 240px,
      rgba(180, 180, 180, 0.012) 241px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 380px,
      rgba(160, 160, 160, 0.008) 380px,
      rgba(160, 160, 160, 0.008) 381px
    );
  pointer-events: none;
  z-index: 1;
}

/* Vignette overlay — subtle */
.opin-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 60%,
    rgba(0, 0, 0, 0.25) 100%
  );
  pointer-events: none;
  z-index: 1;
}

/* Opinion cards — more square, neutral at rest, gold on hover */
.opin-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(18, 18, 22, 0.9);
  backdrop-filter: blur(6px);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 400px;
  box-sizing: border-box;
  border-radius: 6px;
  position: relative;
  aspect-ratio: 3 / 4;
  transition:
    border-color 0.4s,
    transform 0.4s,
    box-shadow 0.4s;
}
.opin-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c5a059, transparent);
  opacity: 0;
  transition: opacity 0.4s;
}
.opin-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-6px) scale(1.02);
  box-shadow:
    0 16px 48px rgba(197, 160, 89, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.3);
}
.opin-card:hover::before {
  opacity: 1;
}
.opin-card:hover .quote-icon {
  color: #c5a059;
  opacity: 0.2;
}
.opin-card:hover .client-detail {
  color: #c5a059;
}
.opin-card .stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1rem;
}
.opin-card .stars svg {
  width: 14px;
  height: 14px;
  color: #c5a059;
  transition: color 0.3s ease;
}
.opin-card .quote-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
  opacity: 0.12;
  color: #c5a059;
  transition:
    opacity 0.3s ease,
    color 0.3s ease;
}
.opin-card .opinion-text {
  font-size: 0.875rem;
  line-height: 1.7;
  color: #a0a0a0;
  margin-bottom: 1.5rem;
  flex: 1;
  font-style: italic;
}
.opin-card .opinion-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1rem;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.opin-card .client-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #999;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.opin-card .client-info {
  display: flex;
  flex-direction: column;
}
.opin-card .client-name {
  color: #d0d0d0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.opin-card .client-detail {
  color: #707070;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
  transition: color 0.3s ease;
}

/* Carousel track */
.opin-carousel-track {
  padding: 0 48px;
}
@media (min-width: 768px) {
  .opin-carousel-track {
    padding: 0 56px;
  }
}
@media (min-width: 1024px) {
  .opin-carousel-track {
    padding: 0 64px;
  }
}

/* Opinion nav buttons — clean, gold on hover */
.opinion-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}
.opinion-nav svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}
.opinion-nav:hover {
  background: rgba(197, 160, 89, 0.15);
  border-color: rgba(197, 160, 89, 0.5);
  color: #c5a059;
  box-shadow: 0 0 20px rgba(197, 160, 89, 0.15);
}
.opinion-nav:hover svg {
  transform: scale(1.15);
}
.opinion-nav.prev {
  left: 0;
}
.opinion-nav.next {
  right: 0;
}
@media (min-width: 768px) {
  .opinion-nav {
    width: 46px;
    height: 46px;
  }
  .opinion-nav svg {
    width: 20px;
    height: 20px;
  }
}
@media (min-width: 1024px) {
  .opinion-nav {
    width: 50px;
    height: 50px;
  }
  .opinion-nav svg {
    width: 22px;
    height: 22px;
  }
}

/* Testimonial dots — neutral */
#testimonial-dots {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
}
#testimonial-dots button {
  height: 6px;
  width: 6px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: all 0.35s ease;
  padding: 0;
  background: transparent;
}
#testimonial-dots button:hover {
  border-color: rgba(197, 160, 89, 0.5);
  background: rgba(197, 160, 89, 0.2);
}
#testimonial-dots button.active {
  width: 28px;
  border-radius: 4px;
  background: #c5a059;
  border-color: #c5a059;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .opin-card {
    padding: 1.5rem;
    min-height: 300px;
    aspect-ratio: auto;
  }
  .opin-card .stars svg {
    width: 11px;
    height: 11px;
  }
  .opin-card .quote-icon {
    width: 22px;
    height: 22px;
  }
  .opin-card .opinion-text {
    font-size: 0.8rem;
    margin-bottom: 1rem;
  }
  .opinion-nav {
    width: 36px;
    height: 36px;
  }
  .opinion-nav svg {
    width: 16px;
    height: 16px;
  }
  .opin-carousel-track {
    padding: 0 40px;
  }
}

/* --- Responsive overrides --- */
@media (max-width: 768px) {
  #work .flex.flex-col.md\:flex-row.justify-between.items-end {
    text-align: center !important;
    align-items: center !important;
  }
  #work .flex.flex-col.md\:flex-row.justify-between.items-end > div {
    width: 100%;
  }
  #work .flex.flex-col.md\:flex-row.justify-between.items-end .text-right {
    text-align: center !important;
    margin-top: 1rem !important;
  }
  #work .h-1.w-20.bg-accent-gold {
    margin-left: auto;
    margin-right: auto;
  }
  #about .flex.flex-col.md\:flex-row.items-center.gap-16 {
    text-align: center;
  }
  #about .flex.flex-col.md\:flex-row.items-center.gap-16 h2 {
    text-align: center;
  }
  #about .h-1.w-20.bg-accent-gold {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
  }
  #about .grid.grid-cols-3.gap-4 {
    justify-items: center;
    text-align: center;
  }
  footer .flex.flex-col.md\:flex-row.justify-between.items-center {
    text-align: center;
    gap: 1rem;
  }
  footer .mb-4.md\:mb-0 {
    margin-bottom: 0.5rem;
  }
  footer .text-gray-600.text-xs.uppercase.tracking-wider {
    margin: 0.5rem 0;
  }
  footer .flex.space-x-6 {
    justify-content: center;
    margin-top: 0.5rem;
  }
}

/* --- Toast notification --- */
.toast-notification {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: #c5a059;
  color: #000;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  transition: opacity 0.3s;
  pointer-events: none;
  white-space: nowrap;
  max-width: 90vw;
}

/* --- Checkout — Payment method cards --- */
.pay-method-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 10, 10, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 4px;
}
.pay-method-card:hover {
  border-color: rgba(197, 160, 89, 0.3);
  background: rgba(197, 160, 89, 0.04);
}
.pay-method-active {
  border-color: rgba(197, 160, 89, 0.6) !important;
  background: rgba(197, 160, 89, 0.06) !important;
  box-shadow: 0 0 24px rgba(197, 160, 89, 0.08);
}

/* Custom radio */
.pay-method-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  transition: border-color 0.3s ease;
}
.pay-method-radio-active {
  border-color: #c5a059;
}
.pay-method-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #c5a059;
}

/* Checkout inputs */
.chk-input {
  width: 100%;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 12px 0;
  color: #fff;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}
.chk-input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.chk-input:focus {
  border-color: #c5a059;
}

/* Checkout warning box (amber) */
.chk-warning-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 4px;
}

/* Checkout deadline box (subtler, gold) */
.chk-deadline-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(197, 160, 89, 0.06);
  border: 1px solid rgba(197, 160, 89, 0.15);
  border-radius: 4px;
  color: #d4d4d4;
  font-size: 0.85rem;
  line-height: 1.5;
}
.chk-deadline-box svg {
  color: #c5a059;
  margin-top: 2px;
  flex-shrink: 0;
}

/* --- Season Pack Cards --- */
.season-pack-card {
  position: relative;
  background: linear-gradient(145deg, #0d0d0d 0%, #111111 50%, #0a0a0a 100%);
  border: 1px solid rgba(197, 160, 89, 0.15);
  overflow: hidden;
  transition: all 0.4s ease;
}
.season-pack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #c5a059, transparent);
  opacity: 0.6;
  transition: opacity 0.4s;
}
.season-pack-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at top center,
    rgba(197, 160, 89, 0.04) 0%,
    transparent 60%
  );
  pointer-events: none;
  transition: all 0.4s;
}
.season-pack-card:hover {
  border-color: rgba(197, 160, 89, 0.4);
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(197, 160, 89, 0.08),
    0 4px 12px rgba(0, 0, 0, 0.4);
}
.season-pack-card:hover::before {
  opacity: 1;
}
.season-pack-card:hover::after {
  background: radial-gradient(
    ellipse at top center,
    rgba(197, 160, 89, 0.08) 0%,
    transparent 60%
  );
}

/* Season pack ribbon diagonal */
.season-pack-ribbon {
  position: absolute;
  top: 16px;
  right: -28px;
  width: 110px;
  background: #c5a059;
  color: #000;
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 5px 0;
  transform: rotate(45deg);
  z-index: 10;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(197, 160, 89, 0.35);
}

/* Season pack badge pulse */
.season-badge {
  position: relative;
}
.season-badge::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: rgba(197, 160, 89, 0.3);
  animation: badge-pulse 2.5s ease-in-out infinite;
  z-index: -1;
}
@keyframes badge-pulse {
  0%,
  100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

/* --- Service pack card highlight --- */
.service-pack-card {
  background: linear-gradient(145deg, #0d0d0d 0%, #111111 50%, #0a0a0a 100%);
}
.service-pack-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #c5a059, transparent);
  opacity: 0.7;
}

/* Season pack countdown shimmer */
.season-countdown {
  position: relative;
  overflow: hidden;
}
.season-countdown::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(245, 158, 11, 0.15),
    transparent
  );
  animation: countdown-shimmer 3s ease-in-out infinite;
}
@keyframes countdown-shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* Season pack price emphasis */
.season-price {
  position: relative;
  display: inline-block;
}
.season-price::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #c5a059, transparent);
}

/* Season pack CTA button glow */
.season-pack-cta {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}
.season-pack-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}
.season-pack-cta:hover::before {
  left: 100%;
}

/* --- Coupon / Discount Code --- */
.coupon-section {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1rem;
  margin-top: 0.5rem;
}
.coupon-input-wrap {
  display: flex;
  gap: 8px;
}
.coupon-input-wrap input {
  flex: 1;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 12px;
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  outline: none;
  transition: border-color 0.3s;
}
.coupon-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  text-transform: none;
  letter-spacing: normal;
}
.coupon-input-wrap input:focus {
  border-color: #c5a059;
}
.coupon-input-wrap button {
  padding: 8px 14px;
  background: rgba(197, 160, 89, 0.15);
  border: 1px solid rgba(197, 160, 89, 0.3);
  color: #c5a059;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}
.coupon-input-wrap button:hover {
  background: rgba(197, 160, 89, 0.25);
  border-color: #c5a059;
}
.coupon-applied {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(197, 160, 89, 0.08);
  border: 1px solid rgba(197, 160, 89, 0.2);
  font-size: 0.75rem;
}
.coupon-applied .coupon-code {
  color: #c5a059;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.coupon-applied .coupon-remove {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 1rem;
  line-height: 1;
}
.coupon-applied .coupon-remove:hover {
  color: #ef4444;
}
.coupon-discount-line {
  display: flex;
  justify-content: space-between;
  color: #22c55e;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- Filter bar: fade edges on scroll --- */
.filter-fade-wrap {
  position: relative;
}
.filter-fade-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 80px;
  height: 100%;
  background: linear-gradient(to right, transparent, #050505);
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.3s ease;
}
.filter-fade-wrap.fscroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-fade-wrap.fscroll::-webkit-scrollbar {
  display: none;
}

.filter-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 0.5rem;
}
.filter-scroll::-webkit-scrollbar {
  display: none;
}

/* --- Search clear button --- */
.search-clear {
  position: absolute;
  right: 8px;
  top: 0;
  bottom: 0;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.search-clear:hover {
  color: #c5a059;
}

/* Puntos animados para estados de carga */
@keyframes dots {
  0% {
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
}

.dots-anim::after {
  content: "...";
  display: inline-block;
  overflow: hidden;
  width: 0;
  vertical-align: bottom;
  animation: dots-width 1.5s steps(3, end) infinite;
}

@keyframes dots-width {
  0% {
    width: 0.3em;
  }
  33% {
    width: 0.6em;
  }
  66% {
    width: 0.9em;
  }
  100% {
    width: 0.3em;
  }
}

/* ─── CTA Presupuesto ─── */
.cta-presupuesto {
  position: relative;
  padding: 90px 48px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(197, 160, 89, 0.07) 0%, transparent 50%),
    linear-gradient(to bottom, #0d0d0d, #111);
  border-top: 1px solid rgba(197, 160, 89, 0.15);
  border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}

.cta-presupuesto::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, transparent, #c5a059, transparent);
}

.cta-presupuesto-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.cta-presupuesto-eyebrow {
  font-size: 11px;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #c5a059;
  margin-bottom: 16px;
}

.cta-presupuesto-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 18px;
}

.cta-presupuesto-sub {
  font-size: 15px;
  color: #9ca3af;
  line-height: 1.75;
  font-weight: 300;
}

.cta-presupuesto-sub strong {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 400;
}

.cta-presupuesto-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid #c5a059;
  color: #c5a059;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  text-decoration: none;
  padding: 22px 44px;
  white-space: nowrap;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.cta-presupuesto-btn:hover {
  background: #c5a059;
  color: #000;
  box-shadow: 0 0 30px rgba(197, 160, 89, 0.2);
}

.cta-presupuesto-btn svg {
  transition: transform 0.25s ease;
}

.cta-presupuesto-btn:hover svg {
  transform: translateX(5px);
}

@media (max-width: 768px) {
  .cta-presupuesto {
    padding: 60px 24px;
  }
  .cta-presupuesto-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 36px;
  }
  .cta-presupuesto-btn {
    width: 100%;
    justify-content: center;
  }
}
