/* contacto.css
   Estilos específicos para contacto.html
   Depende de variables definidas en common.css y light/dark.css
*/

/* ============================
   Card / intro (.contacto)
   ============================ */
.contacto {
  max-width: 1100px;
  margin: 40px auto;
  padding: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  background-color: var(--muted-bg, #fff);
  color: var(--text, #222);
  box-shadow: 0 12px 40px rgba(12,22,35,0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: justify;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.25s;
}

#contact-subtitle {
  text-align: center;
  margin: 0;
  font-size: 50px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

/* micro efecto elevación */
.contacto:hover { transform: translateY(-4px); }

/* títulos y subtítulos */
.contact-details h3, .contact-map h3 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  margin: 0 0 4px 0;
  font-weight: 800;
  font-size: 30px;
  color: var(--primary, #002f6c);
}

.subtitles { color: var(--primary, #002f6c); }

/* texto */
.contacto p.descripcion {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0;
}

/* ============================
   Contact details section
   (left: datos / right: horario + CTA)
   ============================ */
.contact-details {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(0,0,0,0.02));
  background-color: var(--muted-bg, #fff);
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(12,22,35,0.12);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.contact-details:hover {
  transform: translateY(-4px);
}

/* grid interno */
.details-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}

/* columnas */
.left-col, .right-col {
  padding: 6px 6px;
}

.contact-list, .hours-list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

.contact-list li, .hours-list li {
  padding: 8px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--muted-bg) 30%, #ddd 70%);
  font-size: 15.5px;
  color: var(--text);
}

/* último item sin línea */
.contact-list li:last-child, .hours-list li:last-child {
  border-bottom: none;
}

/* CTA específico en esta sección */
.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 18px;
  background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, white 30%), var(--accent));
  color: var(--btn-text, #fff);
  font-weight: 800;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(37,211,102,0.12);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s;
}

.contact-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37,211,102,0.18); }

/* ============================
   Map section
   ============================ */
.contact-map {
  max-width: 1200px;
  margin: 40px auto 60px;
  padding: 0 20px;
}


.map-wrapper {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(2,18,33,0.12);
  transition: transform .22s ease, box-shadow .22s ease;
}

.map-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(2,18,33,0.18);
}

/* iframe full width responsive */
.map-wrapper iframe {
  width: 100%;
  height: 420px;
  display: block;
  border: 0;
}

/* ============================
   Responsive tweaks
   ============================ */
@media (max-width: 1150px) {
    .details-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-details {
    margin: 28px 18px;
    padding: 28px;
    text-align: center;
  }
  .contacto {
    padding: 28px;
    margin: 28px 18px;
  }
  .map-wrapper iframe { height: 360px; }
}


@media (max-width: 980px) {
  .details-wrapper {
    grid-template-columns: 1fr;
  }
  .contact-details {
    margin: 28px 18px;
    padding: 28px;
  }
  .contacto {
    padding: 28px;
    margin: 28px 18px;
  }
  .map-wrapper iframe { height: 360px; }
}

@media (max-width: 480px) {
  .contacto { padding: 20px; margin: 18px 12px; border-radius: 10px; }
  .contact-details { padding: 20px; margin: 18px 12px; border-radius: 10px; }
  .contact-cta { width: 100%; justify-content: center; }
  .map-wrapper iframe { height: 300px; }
  .contact-list li, .hours-list li { font-size: 15px; }
}


/* ============================
   Small helper utilities
   ============================ */
.centered {
  display: flex;
  align-items: center;
  justify-content: center;
}
