/* Ajustes para la versión estática (sin la app de UENI) */
:root {
  --gp-accent: #ff8264;
  --gp-ink: #444d60;
  --gp-text: #4b556a;
  --gp-soft: #fff2ef;
}

/* Formulario de contacto oculto (y los botones "Enviar Mensaje" que llevan a él).
   Para reactivarlo, borrar esta regla. */
#message_request,
#header-msg { display: none !important; }

/* ---------- Menú "Más" (escritorio) ---------- */
.gp-more {
  position: absolute;
  z-index: 1300;
  min-width: 240px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .15);
}
.gp-more[hidden] { display: none; }
.gp-more a {
  display: block;
  padding: 12px 20px;
  color: var(--gp-text);
  font-size: 15px;
  text-decoration: none;
}
.gp-more a:hover { background: var(--gp-soft); }

/* ---------- Menú móvil ---------- */
.gp-mbar, .gp-mnav { display: none; }
@media (max-width: 768px) {
  .gp-mbar {
    position: sticky;
    top: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    background: #fff;
    box-shadow: 0 1px 6px rgba(0, 0, 0, .1);
  }
  ._21rudNjE { display: none !important; }
  #header-name { font-size: 34px !important; line-height: 1.2 !important; overflow-wrap: anywhere; }
  #header-subtitle { font-size: 20px !important; }
  .gp-mlogo img { display: block; height: 44px; width: auto; }
  .gp-burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .gp-burger span { display: block; height: 2px; background: var(--gp-ink); transition: transform .2s, opacity .2s; }
  .gp-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .gp-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .gp-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gp-mnav.is-open {
    position: fixed;
    inset: 60px 0 0 0;
    z-index: 1199;
    display: block;
    overflow-y: auto;
    background: #fff;
  }
  .gp-mnav ul { margin: 0; padding: 8px 0; list-style: none; }
  .gp-mnav a {
    display: block;
    padding: 14px 24px;
    border-bottom: 1px solid #f1f1f1;
    color: var(--gp-text);
    font-size: 16px;
    text-decoration: none;
  }
  /* galería de vídeos en columna */
  #gallery .slick-track { width: auto !important; transform: none !important; display: flex; flex-direction: column; gap: 12px; }
  #gallery .slick-slide { width: 100% !important; }
  #gallery .slick-list, #gallery ._3yuqC0ln, #gallery .slick-slider { height: auto !important; max-height: none !important; overflow: visible !important; }
  /* en móvil se muestran todos los proyectos seguidos */
  #services .KZqyO9ze[hidden] { display: block; margin-top: 32px; }
  /* pestañas de proyectos en horizontal con scroll */
  #services ._1kzRRagI { flex-direction: column; }
}

/* ---------- Pestañas de proyectos ---------- */
#services [role="tab"] { cursor: pointer; }
@media (min-width: 769px) {
  #services .KZqyO9ze[hidden] { display: none; }
}

/* ---------- Galería de vídeos ---------- */
#gallery [data-yt] { cursor: pointer; }

/* ---------- Mapa ---------- */
.gp-map { display: block; width: 100%; height: 100%; border: 0; }
.gp-map-link {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 10px 20px;
  border-radius: 20px;
  background: var(--gp-accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
._1uUdtfuF { position: relative; }

/* ---------- Formulario ---------- */
.gp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.gp-form input[type="checkbox"] {
  position: static !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
  opacity: 1 !important;
  accent-color: var(--gp-accent);
}
.gp-form .MuiCheckbox-root svg { display: none; }
.gp-form-msg { margin-top: 16px; text-align: center; font-weight: 600; }
.gp-form-msg.ok { color: #2e7d32; }
.gp-form-msg.err { color: #c62828; }

/* ---------- Subpáginas ---------- */
.gp-page { padding: 48px 16px 64px; background: #fff; color: var(--gp-text); font-family: "Open Sans", sans-serif; }
.gp-wrap { max-width: 1170px; margin: 0 auto; }
.gp-crumbs { margin-bottom: 24px; font-size: 14px; }
.gp-crumbs a { color: var(--gp-accent); text-decoration: none; }
.gp-crumbs span { margin: 0 4px; }
.gp-title {
  margin: 0;
  color: var(--gp-ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 400;
  text-align: center;
}
.gp-line { display: block; width: 120px; margin: 20px auto; border-top: 1px solid var(--gp-ink); }
.gp-sub { margin: 0 0 32px; font-size: 18px; text-align: center; }
.gp-text { font-size: 16px; line-height: 1.7; }
.gp-text h2, .gp-text h3 { color: var(--gp-ink); font-family: "Playfair Display", serif; font-weight: 400; }
.gp-text a { color: var(--gp-accent); }
.gp-legal { max-width: 820px; margin: 0 auto; }
.gp-split { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.gp-round { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
@media (max-width: 768px) {
  .gp-split { grid-template-columns: 1fr; }
  .gp-round { max-width: 260px; margin: 0 auto; }
}
.gp-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 32px 0;
}
.gp-thumb { position: relative; display: block; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; background: var(--gp-soft); }
.gp-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gp-thumb:hover img { transform: scale(1.05); }
.gp-video::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  margin: -18px 0 0 -12px;
  border-style: solid;
  border-width: 18px 0 18px 30px;
  border-color: transparent transparent transparent #fff;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, .5));
}
.gp-item { padding: 32px 0; border-bottom: 1px solid #eee; }
.gp-item:last-child { border-bottom: 0; }
.gp-item h2 { margin: 0 0 8px; color: var(--gp-ink); font-family: "Playfair Display", serif; font-weight: 400; font-size: 28px; }
.gp-item .gp-gallery { margin: 16px 0; }
.gp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.gp-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0, 0, 0, .12);
  color: var(--gp-text);
  text-decoration: none;
  transition: box-shadow .2s;
}
.gp-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.gp-card-img { display: block; aspect-ratio: 4 / 3; background-size: cover; background-position: center; }
.gp-card-title { padding: 16px 16px 4px; color: var(--gp-ink); font-family: "Playfair Display", serif; font-size: 20px; }
.gp-card-more { padding: 0 16px 16px; color: var(--gp-accent); font-size: 14px; }

/* ---------- Visor (fotos y vídeos) ---------- */
.gp-lb {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .9);
}
.gp-lb[hidden] { display: none; }
.gp-lb img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.gp-lb iframe { width: min(92vw, 1100px); aspect-ratio: 16 / 9; border: 0; }
.gp-lb button {
  position: absolute;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
}
.gp-lb button:hover { background: rgba(255, 255, 255, .25); }
.gp-lb .gp-lb-close { top: 16px; right: 16px; }
.gp-lb .gp-lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.gp-lb .gp-lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.gp-lb .gp-lb-count { position: absolute; bottom: 16px; left: 0; right: 0; color: #fff; text-align: center; font-size: 14px; }
