/* ============================================================
   EcoServices — Mejoras de conversión y SEO
   Barra de llamada móvil + bloque de contacto en footer.
   No modifica los estilos existentes del sitio.
   ============================================================ */

/* ---------- Barra fija de llamada (solo móvil) ---------- */
.eco-callbar {
  display: none;
}

@media (max-width: 820px) {
  .eco-callbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    gap: 8px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    border-top: 1px solid var(--border-soft, #e2e8f0);
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.12);
    z-index: 9998;
  }

  .eco-callbar a {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 10px;
    border-radius: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .eco-callbar__call {
    background: var(--primary-dark, #558b2f);
    color: #ffffff;
  }

  .eco-callbar__wa {
    background: #25d366;
    color: #08331a;
  }

  .eco-callbar a:active {
    transform: scale(0.98);
  }

  body {
    padding-bottom: 78px;
  }
}

/* ---------- Bloque de contacto en el footer (escritorio y móvil) ---------- */
.eco-footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 1rem 0;
  font-size: 0.95rem;
  text-align: center;
}

.eco-footer-contact a {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 1px;
}

.eco-footer-contact a:hover {
  opacity: 0.82;
}

/* ---------- Selector de ciudad (home) ---------- */
.eco-city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.eco-city-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 2rem;
  border: 2px solid var(--border-soft, #e2e8f0);
  border-radius: var(--radius-lg, 20px);
  background: var(--bg-light, #f9f9f6);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eco-city-card:hover {
  border-color: var(--primary, #7cb342);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover, 0 20px 50px rgba(0, 0, 0, 0.08));
}

.eco-city-card__name {
  font-family: "Outfit", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary-dark, #558b2f);
}

.eco-city-card__sub {
  color: var(--text-muted, #64748b);
  font-size: 0.95rem;
}

.eco-city-card__cta {
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--primary-dark, #558b2f);
}

/* ---------- Selector de ciudad en el cotizador ---------- */
#city-picker .card-selector.selected {
  background: var(--primary-dark, #558b2f);
  color: #ffffff;
  border-color: var(--primary-dark, #558b2f);
}

/* ---------- Navegaci�n compacta en pantallas medianas ---------- */
.nav-content .desktop-nav a,
.nav-content > .btn {
  white-space: nowrap;
}

@media (min-width: 768px) and (max-width: 1150px) {
  .nav-content {
    gap: 1rem;
  }
  .nav-content .desktop-nav {
    gap: 1.1rem;
  }
  .nav-content .desktop-nav a {
    font-size: 0.85rem;
  }
  .nav-content .logo-container {
    font-size: 1.05rem;
  }
  .nav-content > .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 768px) and (max-width: 880px) {
  .nav-content .desktop-nav a:nth-child(2) {
    display: none;
  }
}

/* ---------- Fix de tarjetas de servicio ----------
   Las im�genes se renderizaban a tama�o natural (1024x1024) dentro de
   tarjetas de ~440 px, dejando cada tarjeta en 1.342 px de alto. */
.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.service-card .service-image img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-md, 12px);
}

.service-card .service-image {
  margin-bottom: 1.5rem;
}

/* Cabecera gr�fica para la tarjeta de office cleaning */
.eco-service-image--office {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  border-radius: var(--radius-md, 12px);
  background: linear-gradient(135deg, #558b2f 0%, #7cb342 100%);
  color: #ffffff;
  font-size: 3.5rem;
  line-height: 1;
}


/* ---------- Hero con imagen (paginas Melbourne) ---------- */
.eco-hero-img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.12);
}

.eco-hero-media {
  align-self: center;
}

@media (max-width: 900px) {
  .eco-hero-cols {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .eco-hero-media {
    max-width: 560px;
    margin-top: 0.5rem;
  }
}


/* ---------- Tarjetas de suburbios (hub Melbourne) ---------- */
.eco-suburb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 1.5rem;
}

.eco-suburb-card {
    display: block;
    background: var(--bg-light);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.eco-suburb-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}

.eco-suburb-card img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.eco-suburb-card__body {
    padding: 1rem 1.1rem 1.15rem;
}

.eco-suburb-card__body h3 {
    color: var(--primary-dark);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.eco-suburb-card__body span {
    color: var(--text-muted);
    font-size: 0.85rem;
}


/* ---------- Skip link (accesibilidad teclado) ---------- */
.eco-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    z-index: 10000;
    background: var(--primary-dark);
    color: #ffffff;
    padding: 0.75rem 1.25rem;
    border-radius: 0 0 10px 0;
    font-weight: 600;
    text-decoration: none;
}

.eco-skip-link:focus {
    left: 0;
    top: 0;
    color: #ffffff;
}
