/* Variables */
:root {
  --blue: #0082C9;
  --yellow: #FFC107;
  --white: #FFFFFF;
  --red: #E53935;
  --light-gray: #f9f9f9;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', sans-serif;
  background-color: var(--white);
  color: #333;
  line-height: 1.6;
}

.main-content {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Sección HERO (Inicio) */
.hero-section {
  background-image: url("../images/paseadores-de-perros-paseacan.png");
  background-size: cover;
  background-position: center;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  border-radius: 10px;
  opacity: 0.9;
}

.hero-text {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  padding: 20px 40px;
  border-radius: 10px;
  width: 70%;
  max-width: 700px;
  color: var(--white);
}

.hero-text h1 {
  font-size: 2.7rem;
  margin-bottom: 10px;
}

.hero-text p {
  font-size: 1.5rem;
}

/* Cómo funciona */
.how-it-works {
  text-align: center;
  padding: 60px 20px 40px;
}

.how-it-works h2 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 40px;
}

.steps-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.step {
  max-width: 260px;
}

.circle {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  border: 2px solid var(--red);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--red);
  font-weight: bold;
  font-size: 1.2rem;
}

.step h3 {
  margin: 10px 0;
  color: #000;
  font-size: 1.1rem;
}

.step p {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

/* Servicios */
.services-showcase {
  margin: 60px 0;
  text-align: center;
}

.services-showcase h2 {
  color: var(--blue);
  margin-bottom: 30px;
  font-size: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.service-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.service-card h3 {
  color: var(--blue);
  margin-bottom: 10px;
}

.service-card ul {
  list-style: none;
  padding-left: 0;
}

.service-card ul li {
  margin-bottom: 8px;
  font-size: 1rem;
}

/* TOP Preferidos */
.top-services {
  margin-top: 60px;
  text-align: center;
}

.top-services h2 {
  color: var(--blue);
  margin-bottom: 30px;
  font-size: 2rem;
}

.top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.top-item {
  background-color: var(--light-gray);
  border: 1px solid #ccc;
  border-radius: 10px;
  overflow: hidden;
  padding: 20px;
}

.top-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.top-item h3 {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.stars {
  font-size: 1.2rem;
  color: var(--yellow);
}

/* Suscripción */
.subscribe-section {
  background-color: #f1f8fe;
  border-radius: 10px;
  padding: 40px 20px;
  margin: 60px 0;
  text-align: center;
}

.subscribe-section h2 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.subscribe-section p {
  margin-bottom: 20px;
}

.subscribe-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.subscribe-form input[type="email"] {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 300px;
}

.subscribe-form button {
  background-color: var(--yellow);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.subscribe-form button:hover {
  background-color: var(--red);
}

/* Buscador y Resultados */
.search-box {
  background-color: #f6f6f6;
  border-radius: 10px;
  padding: 30px;
  margin-bottom: 40px;
}

.search-box h2 {
  font-size: 1.8rem;
  color: var(--blue);
  margin-bottom: 20px;
  text-align: center;
}

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.search-form label {
  font-weight: bold;
}

.search-form select {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 200px;
  font-size: 1rem;
}

.btn-search {
  background-color: var(--yellow);
  color: var(--white);
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-search:hover {
  background-color: var(--red);
}

.results-grid.single-column {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.result-card {
  display: flex;
  justify-content: space-between;
  background-color: var(--light-gray);
  border-radius: 10px;
  padding: 20px;
  gap: 20px;
  align-items: center;
}

.result-img {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

.result-info {
  flex: 1;
}

.result-info h2 {
  margin: 0 0 5px;
  font-size: 1.3rem;
  color: var(--blue);
}

.zone {
  font-size: 0.95rem;
  color: #777;
}

.desc {
  font-size: 0.95rem;
  margin: 10px 0;
}

.price {
  font-weight: bold;
  margin-top: 10px;
}

.badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.badge {
  background-color: #eee;
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 0.75rem;
}

.badge.green {
  background-color: #dff0d8;
  color: #3c763d;
}

.badge.yellow {
  background-color: #fff3cd;
  color: #856404;
}

.btn-reservar {
  background-color: var(--blue);
  color: var(--white);
  border: none;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-reservar:hover {
  background-color: #005b91;
}

/* Contacto */
.contact-header {
  text-align: center;
  margin-bottom: 40px;
}

.contact-header h1 {
  font-size: 2rem;
  color: var(--blue);
  margin-bottom: 10px;
}

.contact-header p {
  font-size: 1rem;
  color: #555;
}

.contact-info {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  text-align: center;
}

.contact-card {
  background-color: var(--light-gray);
  padding: 20px;
  border-radius: 10px;
  min-width: 200px;
  flex: 1 1 200px;
}

.contact-card i {
  font-size: 1.5rem;
  color: var(--blue);
  margin-bottom: 10px;
  display: block;
}

.contact-form-section {
  margin-bottom: 50px;
  text-align: center;
}

.contact-form-section h2 {
  font-size: 1.6rem;
  color: var(--blue);
  margin-bottom: 20px;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.contact-form label {
  font-weight: bold;
  color: #333;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-family: inherit;
  font-size: 1rem;
  width: 100%;
}

.btn-send {
  background-color: var(--yellow);
  color: var(--white);
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-send:hover {
  background-color: var(--red);
}

.contact-map {
  text-align: center;
  margin-top: 40px;
}

.contact-map h2 {
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 1.6rem;
}

.map-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .result-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .result-img {
    width: 140px;
    height: 140px;
  }

  .btn-reservar {
    align-self: center;
    margin-top: 10px;
  }

  .hero-text {
    width: 80%;
    padding: 8px;
    height: 80%;
  }

  .hero-text h1 {
    font-size: 2rem;
  }

  .hero-text p {
    font-size: 1.2rem;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-contact {
    margin-top: 20px;
    text-align: center;
  }

  .contact-info {
    flex-direction: column;
    align-items: center;
  }

  .contact-form {
    padding: 0 10px;
  }

  .map-container iframe {
    height: 300px;
  }
}
