/* ============================================================
   SERVICE TRUCK DUITAMA — Galería, Contacto, Footer, Misc
   ============================================================ */

/* ── GALERÍA ── */
#galeria {
  padding: var(--section-padding);
  background: var(--black);
}

.gallery-header {
  margin-bottom: 3rem;
}

.gallery-filters {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-filter-btn {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.45rem 1.1rem;
  background: transparent;
  color: var(--gray);
  border: 1px solid rgba(138, 144, 153, 0.3);
  cursor: pointer;
  clip-path: var(--clip-btn);
  transition: all var(--transition);
}

.gallery-filter-btn:hover,
.gallery-filter-btn.active {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* Carrusel */
.gallery-carousel {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
  background: var(--steel);
  border: 1px solid rgba(245, 197, 24, 0.1);
}

.gallery-carousel-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  touch-action: pan-y;
  cursor: pointer;
}

.gallery-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.gallery-carousel-slide.active {
  opacity: 1;
  z-index: 1;
}

.gallery-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-carousel-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem 1.5rem 1.2rem;
  background: linear-gradient(to top, rgba(10, 10, 10, 0.85) 0%, transparent 100%);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  z-index: 2;
}

.gallery-carousel-counter {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--yellow);
  background: rgba(10, 10, 10, 0.6);
  padding: 0.3rem 0.7rem;
  z-index: 2;
}

/* Flechas */
.gallery-carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid rgba(245, 197, 24, 0.2);
  color: var(--yellow);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  clip-path: var(--clip-icon);
}

.gallery-carousel-arrow:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: var(--yellow);
}

.gallery-carousel-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gallery-carousel-prev {
  left: 1rem;
}

.gallery-carousel-next {
  right: 1rem;
}

/* Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: 4px;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--steel-dark);
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 56px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.4;
  border: 2px solid transparent;
  transition: opacity var(--transition), border-color var(--transition);
}

.gallery-thumb:hover {
  opacity: 0.7;
}

.gallery-thumb.active {
  opacity: 1;
  border-color: var(--yellow);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 500;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}

.lightbox-inner img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  color: var(--yellow);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

/* ── CONTACTO ── */
#contacto {
  padding: var(--section-padding);
  background: var(--steel-dark);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: start;
}

/* Formulario */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gray);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--steel);
  border: 1px solid rgba(245, 197, 24, 0.15);
  color: var(--white);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition);
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
}

/* En móvil, font-size 16px para evitar el zoom automático de iOS Safari */
@media (max-width: 820px) {
  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
  }
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 144, 153, 0.6);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  background: var(--steel-mid);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23f5c518' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group select option {
  background: var(--steel);
  color: var(--white);
}

.form-group textarea {
  resize: vertical;
  min-height: 110px;
}

.form-submit-wrap {
  margin-top: 0.5rem;
}

.form-feedback {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #25d366;
  margin-top: 0.8rem;
  display: none;
}

.form-feedback.visible {
  display: block;
}

.contact-info-title-heading {
  font-size: 2rem;
}

/* Info de contacto */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

.contact-info-header {
  margin-bottom: 1rem;
}

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(245, 197, 24, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: var(--clip-icon);
  transition: background var(--transition);
}

.contact-info-item:hover .contact-info-icon {
  background: rgba(245, 197, 24, 0.2);
}

.contact-info-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--yellow);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-info-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.25rem;
}

.contact-info-text {
  font-size: 0.9rem;
  color: var(--light);
  line-height: 1.5;
}

.contact-info-text a {
  color: var(--light);
  transition: color var(--transition);
}

.contact-info-text a:hover {
  color: var(--yellow);
}

/* Tarjeta de ubicación */
.location-card {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  border: 1px solid rgba(245, 197, 24, 0.15);
  overflow: hidden;
}

.location-card-info {
  background: var(--steel);
  padding: 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.8rem;
}

.location-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(245, 197, 24, 0.1);
  clip-path: var(--clip-icon);
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-card-icon svg {
  width: 22px;
  height: 22px;
}

.location-card-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--white);
}

.location-card-address {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.location-card-btn {
  margin-top: 0.5rem;
  align-self: flex-start;
  font-size: 0.8rem;
  padding: 0.7rem 1.6rem;
}

.location-card-map {
  min-height: 320px;
  position: relative;
  background: var(--steel-dark);
}

#map {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: var(--steel-dark);
}

/* ── MARCADOR PERSONALIZADO ── */
.custom-map-marker {
  position: relative;
  background: transparent !important;
  border: none !important;
}

.map-marker-pin {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 44px;
  background: var(--yellow);
  border-radius: 50% 50% 50% 0;
  transform: translateX(-50%) rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 4px 16px rgba(245, 197, 24, 0.5),
    0 0 0 4px rgba(245, 197, 24, 0.15);
  color: var(--black);
  z-index: 2;
}

.map-marker-pin svg {
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  margin-top: -4px;
}

.map-marker-pulse,
.map-marker-pulse-2 {
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(245, 197, 24, 0.35);
  animation: mapMarkerPulse 2.2s ease-out infinite;
  z-index: 1;
}

.map-marker-pulse-2 {
  animation-delay: 1.1s;
}

@keyframes mapMarkerPulse {
  0% {
    transform: translate(-50%, -50%) scale(0.6);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(3.5);
    opacity: 0;
  }
}

/* ── POPUP CUSTOM ── */
.map-popup-wrap .leaflet-popup-content-wrapper {
  background: var(--steel) !important;
  color: var(--white) !important;
  border-radius: 0 !important;
  border: 1px solid rgba(245, 197, 24, 0.2);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
  padding: 0 !important;
}

.map-popup-wrap .leaflet-popup-content {
  margin: 0 !important;
  padding: 1.2rem 1.3rem !important;
  font-family: var(--font-body);
  min-width: 220px;
}

.map-popup-wrap .leaflet-popup-tip {
  background: var(--steel) !important;
  border: 1px solid rgba(245, 197, 24, 0.2);
}

.map-popup-wrap .leaflet-popup-close-button {
  color: var(--gray) !important;
  font-size: 22px !important;
  padding: 6px 8px !important;
  transition: color var(--transition);
}

.map-popup-wrap .leaflet-popup-close-button:hover {
  color: var(--yellow) !important;
}

.map-popup-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin-bottom: 0.6rem;
}

.map-popup-address {
  font-size: 0.82rem;
  color: var(--light);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.map-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--black) !important;
  background: var(--yellow);
  padding: 0.55rem 1rem;
  clip-path: var(--clip-btn);
  transition:
    background var(--transition),
    transform var(--transition);
}

.map-popup-btn:hover {
  background: var(--orange);
  transform: translateY(-2px);
}

/* ── CONTROLES DE LEAFLET CON ESTILO DARK ── */
.leaflet-control-zoom {
  border: none !important;
  margin: 1rem !important;
}

.leaflet-control-zoom a {
  background: var(--steel) !important;
  color: var(--yellow) !important;
  border: 1px solid rgba(245, 197, 24, 0.2) !important;
  width: 32px !important;
  height: 32px !important;
  line-height: 32px !important;
  font-size: 18px !important;
  transition:
    background var(--transition),
    color var(--transition) !important;
}

.leaflet-control-zoom a:hover {
  background: var(--yellow) !important;
  color: var(--black) !important;
}

.leaflet-control-attribution {
  background: rgba(10, 10, 10, 0.7) !important;
  color: var(--gray) !important;
  font-size: 9px !important;
  padding: 2px 6px !important;
}

.leaflet-control-attribution a {
  color: var(--yellow) !important;
}

/* ── FOOTER ── */
footer {
  background: var(--steel);
  border-top: 2px solid var(--yellow);
}

.footer-top {
  padding: 3.5rem 4vw 2.5rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
}

/* Marca */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-logo img {
  width: 45px;
  height: 45px;
  object-fit: cover;
  border-radius: 50%;
  background: var(--white);
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-brand-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.6;
  max-width: 300px;
}

/* Iconos sociales */
.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.footer-social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.15);
  color: var(--yellow);
  transition: background var(--transition), border-color var(--transition);
  clip-path: var(--clip-icon);
}

.footer-social-link:hover {
  background: rgba(245, 197, 24, 0.2);
  border-color: var(--yellow);
}

.footer-social-link svg {
  width: 18px;
  height: 18px;
}

/* Columnas */
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.footer-horario-title {
  margin-top: 1.5rem;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-links-list a,
.footer-horario {
  font-size: 0.85rem;
  color: var(--gray);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-links-list a::before {
  content: "›";
  color: var(--yellow);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-links-list a:hover {
  color: var(--yellow);
}

.footer-horario {
  font-size: 0.8rem;
  color: var(--light);
}

/* Bottom */
.footer-bottom {
  padding: 1.2rem 4vw;
  border-top: 1px solid rgba(245, 197, 24, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--gray);
}

.footer-location {
  font-size: 0.75rem;
  color: var(--gray);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── BOTÓN WHATSAPP ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  animation: waPulse 2.5s 3s infinite;
}

.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
}

.wa-float svg {
  width: 30px;
  height: 30px;
  fill: white;
}

/* ── CURSOR PERSONALIZADO ── */
.cursor-dot {
  width: 10px;
  height: 10px;
  background: var(--yellow);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition:
    transform 0.1s,
    width 0.2s,
    height 0.2s,
    background 0.2s;
}

.cursor-dot.expanded {
  width: 40px;
  height: 40px;
  background: transparent;
  border: 2px solid var(--yellow);
}

/* ── ANIMACIONES ── */
@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeSlideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}

@keyframes ticker {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes waPulse {
  0%,
  100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow:
      0 4px 30px rgba(37, 211, 102, 0.7),
      0 0 0 12px rgba(37, 211, 102, 0.08);
  }
}


/* ── RESPONSIVE GENERAL ── */
@media (max-width: 820px) {
  #contacto {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .gallery-carousel-arrow {
    width: 36px;
    height: 36px;
  }

  .gallery-carousel-prev {
    left: 0.5rem;
  }

  .gallery-carousel-next {
    right: 0.5rem;
  }

  .gallery-thumb {
    width: 64px;
    height: 44px;
  }

  .location-card {
    grid-template-columns: 1fr;
  }

  .location-card-map {
    min-height: 240px;
  }

  .nav-links,
  .nav-cta {
    display: none;
  }
  .nav-hamburger {
    display: flex;
  }

  .hero-stats {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 500px) {
  .gallery-carousel-label {
    font-size: 0.85rem;
    padding: 2rem 1rem 1rem;
  }

  .gallery-thumb {
    width: 52px;
    height: 36px;
  }

  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
