:root {
  --dark-blue:  #2C2C74;
  --purple:     #8C3692;
  --light:      #B988C8;
  --light-gray: #F2F2F2;
  --text-white: #FFFFFF;
  --text-dark:  #333333;
  --border-gray:#CCCCCC;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  background: var(--light-gray);
}

/* HEADER */
.site-header {
  text-align: center;
  padding: 20px 0;
  background: #fff;
}
.site-header img {
  width: 20%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* TEXTO INTRODUCTORIO */
.intro-text {
  background: #fff;
  padding: 1rem 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
.intro-text p {
  max-width: 800px;
  margin: 0 auto;
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-dark);
}

/* GRID PRINCIPAL */
.locations {
  display: grid;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1rem;
}
.location-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
}

/* TARJETAS */
.location-card {
  padding: 20px;
  border-radius: 8px;
  color: var(--text-white);
  transition: transform .2s;
}
.location-card:hover:not(.disabled) {
  transform: translateY(-4px);
}
.location-card[data-color="dark"]   { background: var(--dark-blue); }
.location-card[data-color="purple"] { background: var(--purple); }
.location-card[data-color="light"]  { background: var(--light); }
.location-card h2 { margin-bottom: 10px; font-size: 1.25rem; }
.location-card p  { opacity: 0.9; }

/* BOTÓN */
.btn-agendar {
  margin-top: 1rem;
  padding: 0.5rem 1rem;
  background: var(--purple);
  color: inherit;
  border: 2px solid var(--text-white);
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}
.btn-agendar:hover:not(:disabled) {
  background: var(--dark-blue);
}
.location-card.disabled .btn-agendar {
  opacity: 0.6;
  cursor: default;
}

/* DETALLES */
.location-details {
  background: #FFF;
  border: 1px solid var(--border-gray);
  border-radius: 8px;
  padding: 20px;
}
.location-details h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: bold;
}
.location-details p {
  margin-bottom: 6px;
  line-height: 1.4;
}
.hours p { font-size: 0.95rem; }

/* FOOTER */
.site-footer {
  text-align: center;
  padding: 20px 0;
  background: #fff;
}
.site-footer img {
  width: 20%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: #fff;
  padding: 1rem;
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  border-radius: 8px;
}
.modal-content iframe {
  width: 80vw;
  height: 80vh;
  border: none;
}
.modal-content .close {
  position: absolute;
  top: 0.5rem; right: 1rem;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Para tablets y móviles */
@media (max-width: 768px) {
  .location-row {
    grid-template-columns: 1fr;  /* una sola columna */
  }
}

/* Ajustar padding/márgenes en móviles pequeños */
@media (max-width: 480px) {
  .locations {
    padding: 0.5rem;
    gap: 1rem;
  }
  .intro-text p {
    font-size: 1rem;
    padding: 0 1rem;
  }
}
