/* ==========================
   HERO
========================== */

.hero {
  min-height: calc(100vh - 70px);
  min-height: calc(100dvh - 70px);
  padding: 2rem 1.5rem;
  text-align: center;
  background: #f9fafb;
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
    
.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
  
  .hero h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    white-space: nowrap;
  }
  
  .hero p {
    font-size: 1.05rem;
    color: #555;
    margin-bottom: 2rem;
  }
  
  /* Buttons */
  .btn-primary {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    background: var(--primary-color);
    color: white;
    cursor: pointer;
  }
  
  .btn-primary:hover {
    opacity: 0.9;
  }
  
/* ==========================
   HERO ANIMATION
========================== */
  
  /* SVG Background */
  .hero-flow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }
  
  /* Flow Lines */
  .hero-flow path {
    fill: none;
    stroke: var(--primary-color);
    stroke-width: 1;
    opacity: 0.08;
  }
  
  /* Moving Particles */
  .particle {
    fill: var(--primary-color);
    opacity: 0.5;
  }
  
  .finder {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  
  .finder-type {
    display: inline-flex;
    background: #eef2f6;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    margin: 0 auto;
  }
  
  .finder-option {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #555;
  }
  
  .finder-option.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  }

  .finder-option:not(.active):hover {
    background: rgba(0,0,0,0.05);
  }
  
  .finder-fields {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
  }

  .finder-fields select {
    width: 180px;
    flex: 0 0 180px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid #d0d7de;
    font-size: 0.9rem;
    background: white;
  }

  #finder-button {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
  }

  #finder-button:disabled {
    cursor: default;
    background-color: rgba(0,0,0,0.05);
    color: #333;
  }
  
  #finder-button:not(:disabled) {
    cursor: pointer;
  }

  #finder-deporte,
  #finder-ciudad {
    min-width: 0;
  }

/* ==========================
   FINDER DROPDOWNS
========================== */

.finder-filters select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  padding: 10px 36px 10px 14px;

  border-radius: 10px;
  border: 1px solid #dde6ee;

  background: white;
  font-size: 0.9rem;
  color: #333;

  cursor: pointer;

  transition: border-color 0.2s ease, box-shadow 0.2s ease;

  background-image:
    linear-gradient(45deg, transparent 50%, #667085 50%),
    linear-gradient(135deg, #667085 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.finder-filters select:hover {
  border-color: var(--primary-color);
}

.finder-filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(0,119,204,0.15);
}

.finder-filters select:disabled {
  background: #f4f6f8;
  color: #9aa4b2;
  cursor: not-allowed;
}

/* ==========================
   MOBILE HERO
========================== */

@media (max-width: 768px) {

  /* Create proportional side gutters */
  .hero {
    padding: 1.2rem clamp(16px, 6vw, 28px);
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(1.35rem, 5vw, 1.55rem);
    white-space: normal;
    margin-bottom: 0.5rem;
  }

  .hero p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }

  .finder {
    margin-top: 1rem;
    gap: 0.6rem;
    width: 100%;
  }

  /* Toggles fill the safe content width */
  .finder-type {
    width: 100%;
    display: flex;
  }

  .finder-option {
    flex: 1 1 0;
    padding: 8px 10px;
    font-size: clamp(0.72rem, 2.4vw, 0.9rem);
    white-space: nowrap;
  }

  /* Keep Deporte + Ciudad on one row and inside gutters */
  .finder-fields {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    width: 100%;
  }

  .finder-fields select {
    font-size: clamp(0.72rem, 2.4vw, 0.9rem);
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
  }

  /* Button aligns with the same content width */
  #finder-button {
    width: 100%;
    max-width: none;
  }

}