/* CMS Arquitectes — cambios web noviembre 2026 (Edyma Digital)
   Se carga después de dist/styles/main.css. Todo va con prefijo cms26- salvo
   los ajustes de Empresa (fotos de socios) y del formulario de contacto. */

:root {
  --cms26-red: #b52220;
  --cms26-ink: #212529;
  --cms26-dark: #4a4a4a;
  --cms26-grey: #6c6c6c;
  --cms26-panel: #f5f5f5;
  --cms26-line: #c4c4c4;
}

/* ---------- Empresa: fotos de socios al mismo tamaño y encuadre ---------- */
.list--team .item-list img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ---------- Proyectos: tipologías + galería ---------- */
.cms26-proyectos { padding-bottom: 40px; }

.cms26-panel {
  background: var(--cms26-panel);
  padding: 20px 20px 16px;
  margin-bottom: 8px;
}
.cms26-panel__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 12px;
}
.cms26-panel__title,
.cms26-panel__top a {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--cms26-dark);
}
.cms26-panel__top a:hover { color: var(--cms26-red); text-decoration: none; }

.cms26-tips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 30px;
}
.cms26-tips a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--cms26-dark);
  text-decoration: none;
}
.cms26-tips a span { color: #aaa; font-weight: 400; margin-left: 6px; font-size: 12px; }
.cms26-tips a:hover,
.cms26-tips a[aria-current="true"] { color: var(--cms26-red); text-decoration: none; }
.cms26-tips a[aria-current="true"] { font-weight: 700; }

.cms26-tname {
  margin: 28px 0 14px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #444;
}
.cms26-gal {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 8px;
}
.cms26-ph {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}
.cms26-ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s;
}
.cms26-ph:hover img { transform: scale(1.04); }
.cms26-ph:focus-visible { outline: 2px solid var(--cms26-red); outline-offset: 2px; }

/* Con JS solo se ve la tipología elegida; sin JS se ven todas seguidas */
.cms26-js .cms26-tipo { display: none; }
.cms26-js .cms26-tipo.is-on { display: block; }

.cms26-more {
  background: var(--cms26-panel);
  margin-top: 32px;
  padding: 16px 20px;
  text-align: right;
  font-size: 14px;
}
.cms26-more a { color: var(--cms26-dark); text-transform: uppercase; font-weight: 600; }
.cms26-more a:hover { color: var(--cms26-red); text-decoration: none; }

/* Visor de fotos */
.cms26-lb {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0, 0, 0, .92);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
}
.cms26-lb[hidden] { display: none; }
.cms26-lb img { max-width: min(1100px, 80vw); max-height: 86vh; object-fit: contain; }
.cms26-lb button {
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid #777;
  background: transparent;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.cms26-lb button:hover { border-color: #fff; }
.cms26-lb .cms26-lb__close { position: absolute; top: 16px; right: 16px; border: 0; }
body.cms26-noscroll { overflow: hidden; }

/* ---------- Archivo: buscador, filtro y tablas ---------- */
.cms26-archivo { padding-bottom: 40px; }
.cms26-filters {
  background: var(--cms26-panel);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cms26-filters label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #666;
}
.cms26-filters input[type="search"] {
  max-width: 520px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  text-transform: none;
  padding: 10px 12px;
  border: 1px solid var(--cms26-line);
  border-radius: 0;
  background: #fff;
  color: var(--cms26-ink);
}
.cms26-filters input[type="search"]:focus { outline: 2px solid var(--cms26-red); outline-offset: -1px; }
.cms26-chips { display: flex; flex-wrap: wrap; gap: 0 18px; }
.cms26-chips button {
  font: inherit;
  font-size: 12px;
  text-transform: uppercase;
  color: #777;
  background: none;
  border: 0;
  padding: 6px 0;
  min-height: 32px;
  cursor: pointer;
}
.cms26-chips button:hover { color: var(--cms26-red); }
.cms26-chips button[aria-pressed="true"] { color: var(--cms26-red); font-weight: 700; }
.cms26-sum { margin: 0; font-size: 12px; color: #888; }
.cms26-sum:empty { display: none; }

.cms26-grp { margin-top: 32px; }
.cms26-grp[hidden] { display: none; }
.cms26-grp h2 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cms26-red);
}
.cms26-count { color: #999; font-weight: 400; text-transform: none; margin-left: 8px; }
.cms26-tbl { overflow-x: auto; }
.cms26-tbl table { width: 100%; min-width: 760px; border-collapse: collapse; }
.cms26-tbl th {
  text-align: left;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  border-bottom: 1px solid #ccc;
  white-space: nowrap;
}
.cms26-tbl th.cms26-col-n { width: 40%; }
.cms26-tbl td {
  padding: 9px 10px;
  font-size: 13px;
  line-height: 1.35;
  border-bottom: 1px solid #eee;
  vertical-align: top;
}
.cms26-tbl tr[hidden] { display: none; }
.cms26-tbl tbody tr:hover td { background: #faf6f6; }
.cms26-tbl .n { font-weight: 500; }
.cms26-tbl .d { display: block; font-size: 12px; color: #888; }
.cms26-tbl .r { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Formulario de contacto (Contact Form 7, plantilla .cms-frm) ---------- */
.contact__form { max-width: 760px; margin: 0 auto; text-align: left; }
.wpcf7-form .cms-frm {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.wpcf7-form .cms-frm .full { grid-column: 1 / -1; }
.wpcf7-form .cms-frm .cms-f {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--cms26-ink);
}
.wpcf7-form .cms-frm .opt { font-weight: 400; color: var(--cms26-grey); }
.wpcf7-form .cms-frm .wpcf7-form-control-wrap { display: block; }
.wpcf7-form .cms-frm input[type="text"],
.wpcf7-form .cms-frm input[type="email"],
.wpcf7-form .cms-frm input[type="tel"],
.wpcf7-form .cms-frm textarea {
  width: 100%;
  margin: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--cms26-ink);
  background: #fff;
  border: 1px solid var(--cms26-line);
  border-radius: 0;
}
.wpcf7-form .cms-frm textarea { height: auto; min-height: 130px; resize: vertical; }
.wpcf7-form .cms-frm input:focus,
.wpcf7-form .cms-frm textarea:focus { outline: 2px solid var(--cms26-red); outline-offset: -1px; }
.wpcf7-form .cms-frm .chk { font-size: 13px; font-weight: 400; color: var(--cms26-ink); }
.wpcf7-form .cms-frm .chk label { display: flex; align-items: flex-start; gap: 10px; margin: 0; font-size: 13px; color: var(--cms26-ink); }
.wpcf7-form .cms-frm .chk input[type="checkbox"] { width: 18px; height: 18px; margin: 1px 0 0; flex: none; }
.wpcf7-form .cms-frm .chk a { color: var(--cms26-red); }
.wpcf7-form .cms-frm .cms-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.wpcf7-form .cms-frm input[type="submit"] {
  width: auto;
  min-height: 44px;
  margin: 0;
  padding: 0 36px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  background: var(--cms26-red);
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
.wpcf7-form .cms-frm input[type="submit"]:hover { background: #961c1a; }
.wpcf7-form .cms-frm .req { font-size: 12px; color: var(--cms26-grey); }
.wpcf7-form .cms-frm .wpcf7-spinner { margin: 0; }
.wpcf7-form .wpcf7-not-valid-tip { font-size: 12px; margin-top: 4px; }
.wpcf7-form .wpcf7-response-output { margin: 18px 0 0; padding: 10px 14px; font-size: 13px; }

@media (max-width: 767px) {
  .cms26-tips { grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .wpcf7-form .cms-frm { grid-template-columns: 1fr; }
  .cms26-lb { gap: 8px; padding: 12px; }
  .cms26-lb img { max-width: 100%; }
  .cms26-lb .cms26-lb__prev,
  .cms26-lb .cms26-lb__next { position: absolute; bottom: 16px; }
  .cms26-lb .cms26-lb__prev { left: 16px; }
  .cms26-lb .cms26-lb__next { right: 16px; }
}
