/* ============================================================
   TrustMarket — Custom Styles (Tailwind handles the bulk)
   ============================================================ */

/* --- Material Symbols baseline --- */
.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* --- Glass Nav helper --- */
.glass-nav {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Hero gradient --- */
.hero-gradient {
  background: linear-gradient(135deg, #00658d 0%, #00adef 100%);
}

/* --- Scroll-reveal animation --- */
.reveal {
  opacity: 0;
  visibility: hidden;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ============================================================
   SIDE PANEL — Diseño original
   ============================================================ */
.side-panel {
  position: fixed;
  top: 0;
  right: -450px;
  width: 450px;
  height: 100%;
  background: white;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
}

.side-panel.active {
  right: 0;
}

.side-panel-header {
  padding: 30px 25px 10px;
  background: #f8f9fa;
  border-bottom: 1px solid #eee;
  position: relative;
}

.side-panel-header h2 {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #161c21;
}

.side-panel-header p {
  color: #6e7881;
  font-size: 0.9rem;
  margin-top: 4px;
}

.side-panel-body {
  padding: 20px 25px;
  overflow-y: auto;
  flex-grow: 1;
}

.close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  line-height: 1;
  color: #3e4850;
}

/* --- Global Form Groups (used in side panel and standalone pages) --- */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #161c21;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group .required {
  color: #ba1a1a;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #bdc8d1;
  border-radius: 10px;
  display: block;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.3s;
  background: #fdfdfe;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #00adef;
  box-shadow: 0 0 0 4px rgba(0, 173, 239, 0.1);
  background: #fff;
}

/* Checkbox grids */
.checkbox-grid, .checkbox-grid-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.checkbox-grid label, .checkbox-grid-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1.5px solid #bdc8d1;
  border-radius: 12px;
  background: white;
  color: #3e4850;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: 0;
  white-space: nowrap;
}

@media (max-width: 480px) {
  .checkbox-grid label, .checkbox-grid-panel label {
    padding: 8px 12px;
    font-size: 0.85rem;
    flex: 1 1 calc(50% - 12px);
    justify-content: center;
  }
}

.checkbox-grid label:hover, .checkbox-grid-panel label:hover {
  border-color: #00adef;
  background: rgba(0, 173, 239, 0.05);
}

.checkbox-grid input[type="checkbox"], .checkbox-grid-panel input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00adef;
}


/* Panel overlay */
.panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  display: none;
  z-index: 2999;
}

.panel-overlay.active {
  display: block;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.15rem;
  cursor: pointer;
  background: linear-gradient(135deg, #00658d 0%, #00adef 100%);
  color: #fff;
  font-size: 0.95rem;
  transition: all 0.3s;
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(0, 101, 141, 0.3);
  transform: translateY(-1px);
}

.btn-full {
  width: 100%;
  padding: 15px;
  margin-top: 10px;
  text-align: center;
}

/* --- Floating Work Button --- */
.floating-work-btn-wrap {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 2500;
}

.floating-wa-btn-wrap {
  position: fixed;
  left: 1.25rem;
  top: 6rem;
  z-index: 2500;
}

.floating-work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  border: none;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  padding: 0.85rem 1.15rem 0.85rem 0.85rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.floating-work-btn:hover {
  filter: brightness(1.05);
  transform: scale(1.03);
}

.floating-work-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  font-size: 1rem;
}

/* --- Smooth scroll offset for fixed navbar --- */
html {
  scroll-padding-top: 5rem;
}

/* --- Logo Marquee (scroll continuo) --- */
.logo-marquee {
  width: 100%;
  overflow: hidden;
  padding: 10px 0;
}

.logo-marquee-track {
  display: flex;
  gap: 50px;
  width: max-content;
  animation: marqueeScroll 15s linear infinite;
}

.logo-card {
  flex-shrink: 0;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px;
  height: 160px;
}

.logo-card img {
  max-height: 90px;
  max-width: 240px;
  width: auto;
  height: auto;
  object-fit: contain;
}

@keyframes marqueeScroll {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

/* --- Mobile adjustments --- */
@media (max-width: 640px) {
  .floating-work-btn-wrap {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .floating-wa-btn-wrap {
    left: 0.8rem;
    top: 5rem;
  }

  .floating-work-btn {
    font-size: 0.92rem;
    padding: 0.75rem 0.95rem 0.75rem 0.75rem;
  }

  .side-panel {
    width: 100%;
    right: -100%;
  }
  
  .side-panel-header {
    padding: 20px 20px 10px;
  }
  
  .side-panel-body {
    padding: 15px 20px;
  }

  .logo-card {
    width: 240px;
    height: 120px;
    padding: 20px;
  }
}