/* ================== Fuentes y variables ================== */
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap");

:root {
  --primary-color: #3da35b;
  --primary-color-dark: #54bb0f;
  --text-dark: #2c3e50;
  --text-light: #777;
  --white: #ebebeb;
  --max-width: 1200px;
}

/* ================== Reset y base ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f7f7f7;
  color: var(--text-dark);
}

/* ================== Sección de Ubicación ================== */
.location__container {
  padding: 50px 20px;
  text-align: center;
  max-width: var(--max-width);
  margin: auto;
}

.section__subheader {
  font-size: 18px;
  font-weight: 900;
  color: var(--text-dark);
}

.section__header {
  font-size: 28px;
  color: var(--primary-color);
  margin-top: 10px;
  font-weight: 700;
  text-align: justify;
}

/* ================== Layout Mapa + Video ================== */
.location__map-video {
  display: flex;
  gap: 20px;
  justify-content: center; /* Centrado horizontal */
  align-items: stretch;    /* Igual altura para todos */
  flex-wrap: wrap;
  margin-top: 30px;
}

.location__map,
.location__video {
  flex: 1 1 500px;        /* Mínimo 500px */
  max-width: 600px;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.location__map iframe,
.location__video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* ================== Chat WhatsApp ================== */
.location__chat {
  margin-top: 40px;
  display: inline-block;
  background-color: var(--primary-color);
  padding: 20px 40px;
  border-radius: 8px;
  color: var(--white);
  text-align: center;
  max-width: 90%;
}

.location__chat p {
  font-size: 18px;
  margin-bottom: 12px;
}

.btn--whatsapp {
  background-color: #1fec5d;
  color: #fff;
  padding: 12px 20px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--whatsapp i {
  margin-right: 10px;
}

.btn--whatsapp:hover {
  background-color: var(--primary-color-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.btn--whatsapp:focus {
  outline: none;
}

/* ================== Responsive ================== */
@media (max-width: 992px) {
  .section__header {
    font-size: 24px;
  }
  .section__subheader {
    font-size: 16px;
  }

  .location__map,
  .location__video {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .location__map-video {
    flex-direction: column; /* Mapa arriba, video abajo */
    align-items: center;
    gap: 15px;
  }

  .location__chat {
    padding: 20px 25px;
  }
}

@media (max-width: 480px) {
  .section__header {
    font-size: 20px;
  }
  .section__subheader {
    font-size: 14px;
  }
  .location__chat p {
    font-size: 16px;
  }
  .btn--whatsapp {
    padding: 10px 16px;
    font-size: 14px;
  }
}
