/* =========================================================
   PUNTO ZERO · estilos
   Medidas tomadas del diseño de Figma (lienzo de 1600 px).
   ========================================================= */

:root {
  --verde: #36af90;
  --texto: #666;
  --negro: #000;
  --gris-pie: #f0f0f0;
  --gris-pastilla: #d9d9d9;
  --boton: #3c3c3b;
  --bloque: #bdbdbd;
  --texto-bloque: #2b2b2b;
  --linea: #cfcfcf;

  --margen: clamp(20px, 5vw, 80px);      /* margen lateral de toda la página */
  --lateral: clamp(170px, 15.25vw, 244px); /* ancho de la columna de filtros */
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Work Sans', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  font-size: 15px;
  color: var(--texto);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Idioma: se muestra solo el texto del idioma activo ---------- */
html:not([lang="en"]) .en { display: none !important; }
html[lang="en"] .es { display: none !important; }

/* ---------- Cabecera ---------- */
.cabecera {
  position: relative;
  max-width: 1600px;
  margin: 0 auto;
  height: 89px;
  padding: 0 var(--margen);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.cabecera .logo { margin: 30px 0 0 7px; }
.cabecera-der {
  display: flex;
  align-items: flex-start;
  gap: 42px;
  margin-top: 32px;
}

.logo { display: block; }
.logo img { width: 202px; height: auto; }
.logo-v { display: none; }

/* ---------- Menú ---------- */
.menu {
  display: flex;
  gap: 42px;
  font-size: 16px;
  line-height: 32px;
  padding-top: 4px;
}
.menu a { color: var(--texto); transition: color .15s; }
.menu a:hover { color: var(--negro); }
.menu a.activo,
.menu a.activo:hover { color: var(--verde); font-weight: 600; }

.btn-menu { display: none; }

/* ---------- Botón de idioma ---------- */
.btn-idioma {
  width: 89px;
  height: 36px;
  border-radius: 18px;
  background: var(--gris-pie);
  color: var(--texto);
  font-size: 14px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
  transition: color .15s, background .15s;
}
.btn-idioma:hover { color: var(--negro); background: #e6e6e6; }
.btn-idioma-pie { background: var(--gris-pastilla); }
.btn-idioma-pie:hover { background: #cdcdcd; }

/* ---------- Estructura de página: filtros a la izquierda + contenido ---------- */
.pagina {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--margen);
  display: grid;
  grid-template-columns: var(--lateral) minmax(0, 1fr);
  align-items: start;
}
.pg-home .pagina { padding-top: 46px; }

.contenido { min-width: 0; }
.pg-home .contenido { margin-bottom: 101px; }
.pg-proyecto .contenido { margin-bottom: 61px; }

/* ---------- Filtros (siempre visibles arriba a la izquierda) ---------- */
.lateral {
  position: sticky;
  top: 0;
  align-self: start;
}
.pg-proyecto .lateral { padding-top: 45px; }

/* Home: el primer filtro queda alineado con el borde superior de la primera imagen */
.filtros { padding: 0 0 10px 11px; }
.filtros a {
  display: block;
  font-size: 15px;
  line-height: 30px;
  color: var(--texto);
  transition: color .15s;
}
.filtros a:hover { color: var(--negro); }
.filtros a.activo { color: var(--negro); font-weight: 600; }
.filtros a.activo::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 14px;
  border-radius: 50%;
  background: var(--negro);
  vertical-align: middle;
}

/* Nombre de los filtros: completo en compu, abreviado en celular */
.f-mov { display: none; }

/* ---------- Imágenes protegidas: no se pueden arrastrar ni guardar con clic derecho ---------- */
img {
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.foto-wrap { position: relative; display: block; }
.foto-wrap::after,
.tarjeta::after {            /* capa transparente: el clic derecho cae sobre ella y no sobre la imagen */
  content: "";
  position: absolute;
  inset: 0;
}
.tarjeta .flecha { z-index: 1; }

/* ---------- Botón VOLVER ---------- */
.btn-volver {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 128px;
  height: 39px;
  padding-left: 13px;
  border-radius: 19.5px;
  background: var(--boton);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background .15s;
}
.btn-volver:hover { background: var(--verde); }
.btn-volver .ico-volver { flex: none; }
.btn-volver .ico-volver { width: 19px; height: 19px; }

/* ---------- Mosaico del home ---------- */
.mosaico { display: flex; flex-direction: column; gap: 26px; }

.tarjeta {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1196 / 512;
  max-height: 512px;
  background: #eee;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.tarjeta img { width: 100%; height: 100%; object-fit: cover; }
.tarjeta.oculta { display: none; }
.tarjeta-fija { cursor: default; }   /* proyecto "solo portada": sin link ni flecha */

/* El círculo aparece al pasar el mouse (gris) y se pone negro al presionar */
.tarjeta .flecha {
  position: absolute;
  right: 19px;
  bottom: 24px;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(105, 105, 105, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s, background .15s;
}
.tarjeta:hover .flecha { opacity: 1; }
.tarjeta:active .flecha { opacity: 1; background: var(--negro); }

.vacio { padding: 40px 0; font-size: 15px; }
.vacio[hidden] { display: none; }

/* ---------- Página de proyecto ---------- */
.foto { display: block; width: 100%; height: auto; }
.foto-link { display: block; cursor: pointer; }

/* ---------- Videos del proyecto (reproductor propio: sin controles nativos ni descarga) ---------- */
.v-caja { position: relative; display: block; background: #000; aspect-ratio: 16 / 9; overflow: hidden; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.v-video { display: block; width: 100%; height: 100%; object-fit: contain; background: #000; cursor: pointer; }
.v-grande {
  position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px;
  border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s, opacity .25s;
}
.v-grande svg { width: 44px; height: 44px; fill: currentColor; margin-left: 5px; }
.v-grande:hover, .v-grande:focus-visible { background: var(--verde); transform: scale(1.07); }
.v-caja.reproduciendo .v-grande { opacity: 0; pointer-events: none; }

.v-barra {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 8px; padding: 30px 20px 12px;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0), rgba(0, 0, 0, .72));
  color: #fff; transition: opacity .3s;
}
.v-caja.oculta .v-barra { opacity: 0; pointer-events: none; }
.v-btn { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; transition: color .15s; }
.v-btn svg { width: 24px; height: 24px; }
.v-btn:hover, .v-btn:focus-visible { color: var(--verde); }
.v-play svg { fill: currentColor; }
.v-play .i-pausa, .v-caja.reproduciendo .v-play .i-play { display: none; }
.v-caja.reproduciendo .v-play .i-pausa { display: block; }
.v-sonido .i-mudo, .v-caja.mudo .v-sonido .i-sonido { display: none; }
.v-caja.mudo .v-sonido .i-mudo { display: block; }
.v-tiempo { flex: none; min-width: 84px; font-size: 13px; font-variant-numeric: tabular-nums; text-align: center; }

.v-progreso { --p: 0%; flex: 1; min-width: 0; height: 24px; margin: 0 8px; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.v-progreso::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, var(--verde) var(--p), rgba(255, 255, 255, .35) var(--p)); }
.v-progreso::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .35); }
.v-progreso::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--verde); }
.v-progreso::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border: 0; border-radius: 50%; background: #fff; }
.v-progreso::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: #fff; }
.v-progreso:hover::-webkit-slider-thumb, .v-progreso:focus-visible::-webkit-slider-thumb { background: var(--verde); }
.v-progreso:hover::-moz-range-thumb, .v-progreso:focus-visible::-moz-range-thumb { background: var(--verde); }
.v-progreso:focus { outline: none; }

.texto-bloque {
  background: var(--bloque);
  min-height: 450px;
  padding: 87px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.texto {
  width: min(705px, 100%);
  color: var(--texto-bloque);
  font-size: 16px;
  line-height: 2;
  text-align: justify;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.texto p + p { margin-top: 15px; }
.t-mov { display: none; }

/* ---------- Datos del cliente (columna izquierda del proyecto) ---------- */
.ficha { margin-top: 44px; }

.datos {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 8px 15px;
  border-left: 1px solid #e2e2e2;
}
.dato dt { font-size: 15px; font-weight: 600; line-height: 24px; color: var(--negro); }
.dato dd { font-size: 15px; line-height: 24px; color: var(--boton); }
.dato dd.pais { font-size: 14px; font-style: italic; }

.dato-url a {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: -1px;
  font-size: 14px;
  font-style: italic;
  line-height: 24px;
  color: var(--verde);
  word-break: break-all;
}
.dato-url a:hover span { text-decoration: underline; }
.dato-url svg { flex: none; }

.etiquetas {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 4px;
}
.datos + .etiquetas { margin-top: 45px; }
.etiquetas a {
  display: block;
  height: 31px;
  padding: 0 25px;
  border-radius: 19.5px;
  background: var(--gris-pie);
  color: var(--texto);
  font-size: 13px;
  line-height: 31px;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.etiquetas a:hover { background: #e2e2e2; color: var(--negro); }

/* Etiquetas libres (debajo de las categorías): solo se ven; sin link ni hover */
.etiquetas + .etiquetas-libres, .datos + .etiquetas-libres { margin-top: 45px; }
.etiqueta-libre {
  display: block;
  height: 31px;
  padding: 0 25px;
  border: .5px solid #80ccb9;
  border-radius: 19.5px;
  color: #80ccb9;
  font-size: 13px;
  font-style: italic;
  line-height: 30px;
  white-space: nowrap;
  cursor: default;
}

/* Si la pantalla es muy baja, la columna deja de acompañar el scroll */
@media (max-height: 640px) {
  .pg-proyecto .lateral { position: static; }
}

.fila-final {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 23px;
}
.enlace-web {
  font-size: 15px;
  font-weight: 600;
  color: var(--boton);
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.enlace-web:hover { color: var(--verde); border-bottom-color: var(--verde); }

/* ---------- Página Bio ---------- */
.bio { padding-top: 100px; }
.bio-col { width: min(954px, calc(100% - 2 * var(--margen))); margin: 0 auto; }
.bio-titulo {
  font-size: 38px;
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -.05em;
  color: var(--negro);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.bio-texto {
  margin: 34px 6px 0 3px;
  font-size: 16px;
  line-height: 1.94;
  color: var(--texto);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.bio-texto p + p { margin-top: 15px; }
.bio-texto .t-mov { display: none; }

.equipo {
  display: flex;
  justify-content: center;
  gap: 38px;
  margin-top: 195px;
  padding: 0 0 61px 20px;
  background: linear-gradient(to bottom, #fff 0, #fff 166px, #ddd 166px);
}
.persona { width: 305px; text-align: center; }
.persona .foto-wrap img { width: 305px; height: 333px; object-fit: cover; object-position: center bottom; }
.persona-nombre { margin-top: 41px; font-size: 20px; font-weight: 600; letter-spacing: -.045em; line-height: 30px; color: var(--negro); }
.persona-rol { font-size: 16px; font-weight: 500; line-height: 24px; letter-spacing: -.05em; color: var(--verde); }
.rol-corto { display: none; }
.persona-in { display: flex; justify-content: center; margin-top: 19px; line-height: 0; transition: opacity .15s; }
.persona-in:hover { opacity: .6; }
.persona-in img { width: 14px; height: auto; }

/* ---------- Página Servicios (acordeón) ---------- */
.servicios { padding: 65px var(--margen) 0; }
.serv-h1 {
  font-size: 48px;
  font-weight: 600;
  line-height: 1.81;
  letter-spacing: -.05em;
  color: var(--negro);
  margin-left: 1px;
}
.serv-intro {
  width: min(1193px, 100%);
  font-size: 16px;
  line-height: 2.06;
  color: var(--texto);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.serv-intro p + p { margin-top: 15px; }
.serv-intro .t-mov { display: none; }

.acordeon { margin: 65px 6px 0 3.5px; }
.serv { position: relative; border-bottom: 1px solid #c5c5c5; transition: border-color .3s; }
.serv.abierto { border-bottom-color: #404040; }

.serv-cab { font-size: inherit; font-weight: inherit; }
.serv-boton {
  display: block;
  width: 100%;
  height: 90px;
  padding: 10px 110px 0 5.5px;
  text-align: left;
  cursor: pointer;
}
.serv-nombre {
  display: block;
  font-size: 48px;
  font-weight: 600;
  line-height: 87px;
  letter-spacing: -.05em;
  color: var(--negro);
  white-space: nowrap;
}

.serv-flecha {
  position: absolute;
  right: 31px;
  bottom: 10px;
  width: 79.2px;
  height: 79.2px;
  color: #666;
  pointer-events: none;
  transition: color .15s;
}
.serv-flecha svg { width: 100%; height: 100%; transform: rotate(90deg); transition: transform .65s cubic-bezier(.34, 1.56, .64, 1); }
.serv.abierto .serv-flecha { color: #bdbdbd; }
.serv.abierto .serv-flecha svg { transform: rotate(0deg); }
.serv-boton:hover .serv-flecha,
.serv-boton:focus-visible .serv-flecha,
.serv.abierto .serv-boton:hover .serv-flecha { color: var(--verde); }
.serv.abierto .serv-flecha { pointer-events: auto; cursor: pointer; z-index: 2; }   /* abierto: la flecha de la base también cierra */
.serv-boton:focus-visible { outline: 2px solid var(--verde); outline-offset: -2px; }

.serv-detalle { height: 12px; overflow: hidden; }   /* cerrado: solo el pequeño espacio que completa los 103 px de la fila */
.serv.abierto .serv-detalle { height: auto; }
.serv-detalle-in {
  position: relative;
  display: flow-root;
  min-height: 100px;
  padding: 16px 130px 14px 240.5px;   /* 16 px de aire arriba: cerrado (12 px visibles) no se asoma nada */
}
.serv-detalle-in p {
  max-width: 845px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--texto);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
}
.serv-linea { position: absolute; left: 0; top: 35px; width: 219px; height: 2px; background: var(--verde); }

.serv-cierre { margin: 85px 0 0 2px; padding-bottom: 76px; }
.serv-cierre p { font-size: 17px; line-height: 1.1; color: var(--texto); text-align: justify; }
.serv-cierre p + p { margin-top: 15px; }
.btn-escribinos {
  display: block;
  width: 178px;
  height: 39px;
  margin: 37px 0 0 -3px;
  border-radius: 19.5px;
  background: var(--boton);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 39px;
  text-align: center;
  transition: background .15s;
}
.btn-escribinos:hover, .btn-escribinos:focus-visible { background: var(--verde); }

/* ---------- Página Contacto ---------- */
.contacto {
  max-width: 1600px;
  margin: 51px auto 58px;
  display: grid;
  grid-template-columns: 443fr 737fr 420fr;
  grid-template-areas:
    "intro form foto"
    "datos form foto";
  grid-template-rows: auto 1fr;
  align-items: start;
}
.cto-intro { grid-area: intro; margin-top: -20px; padding: 0 20px 0 var(--margen); }
.cto-h1 {
  font-size: clamp(34px, 3vw, 48px);
  font-weight: 600;
  line-height: 1.81;
  letter-spacing: -.05em;
  color: var(--negro);
  margin-left: 1px;
}
.cto-texto {
  max-width: 337px;
  margin: 9px 0 0 2px;
  font-size: 15px;
  line-height: 1.56;
  color: var(--negro);
}

.cto-datos { grid-area: datos; padding: 50px 20px 0 calc(var(--margen) + 4px); }
.cto-datos::before { content: ""; display: block; max-width: 335px; height: 1px; margin-bottom: 92px; background: #c5c5c5; }
.cto-datos ul { padding-left: 31px; }
.cto-datos li { display: flex; align-items: flex-start; gap: 29px; }
.cto-datos li + li { margin-top: 26px; }
.cto-datos .cto-in { margin-top: 16px; }
.cto-ico { flex: none; width: 33px; display: flex; justify-content: center; }
.cto-ico svg { width: 33px; height: 33px; }
.cto-ico img { width: 20px; height: 21px; }
.cto-txt { font-size: 16px; line-height: 35px; color: var(--boton); }
.cto-txt a { display: block; transition: color .15s; }
.cto-txt a:hover { color: var(--verde); }
.cto-tel .cto-txt a { line-height: 24.5px; letter-spacing: -.05em; }
.cto-tel .cto-txt a + a { margin-top: 15px; }
.cto-tel .cto-txt b { font-weight: 500; }
.cto-datos li:first-child .cto-ico { margin-top: 3px; }
.cto-tel .cto-ico { margin-top: -3px; }
.cto-tel .cto-txt { margin-top: -2px; }
.cto-in .cto-ico { margin-top: 8px; }
.cto-datos li:first-child .cto-txt { margin-top: -2px; }

/* Panel negro con el formulario */
.cto-form {
  grid-area: form;
  background: #000;
  min-height: 580px;
  padding: 60px 26px 51px 37px;
  display: grid;
  grid-template-columns: 296fr 341fr;
  column-gap: 37px;
  align-content: start;
}
.cto-campo { display: flex; flex-direction: column; min-width: 0; }
.cto-campo label {
  padding-left: 7px;
  font-size: 15px;
  font-weight: 600;
  line-height: 30px;
  letter-spacing: 0;
  color: #fff;
}
.cto-campo label i { font-style: normal; color: var(--verde); }
.cto-correo label { padding-left: 0; }
.cto-nombre label, .cto-correo label { margin-bottom: 15px; }
.cto-asunto label, .cto-mensaje label { margin-bottom: 7px; }
.cto-asunto, .cto-mensaje { grid-column: 1 / -1; }
.cto-asunto { margin-top: 17px; }
.cto-mensaje { margin-top: 11px; }
.cto-mensaje label { margin-bottom: 6px; }

.cto-campo input,
.cto-campo textarea {
  width: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(255, 255, 255, .5);
  color: #000;
  font: inherit;
  font-size: 16px;
  padding: 0 14px;
  outline: 0;
  transition: background .15s, box-shadow .15s;
}
.cto-campo input { height: 41px; }
.cto-campo textarea { height: 167px; padding: 12px 14px; resize: none; line-height: 1.5; margin-left: 3px; width: calc(100% - 3px); }
.cto-campo input:focus,
.cto-campo textarea:focus { background: rgba(255, 255, 255, .62); box-shadow: 0 0 0 2px var(--verde); }
.cto-campo [aria-invalid="true"] { box-shadow: 0 0 0 2px #ff7b7b; }

.cto-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cto-pie-form { grid-column: 1 / -1; display: flex; align-items: center; gap: 24px; margin-top: 35px; padding-left: 12px; }
.btn-enviar {
  flex: none;
  width: 195px;
  height: 39px;
  border-radius: 19.5px;
  background: var(--verde);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: background .15s;
}
.btn-enviar:hover, .btn-enviar:focus-visible { background: #48d5b1; }
.btn-enviar[disabled] { opacity: .7; cursor: default; }
.cto-error { font-size: 14px; line-height: 1.4; color: #fff; }
.cto-error[hidden], .cto-error [hidden] { display: none; }

.cto-foto { grid-area: foto; align-self: start; }
.cto-foto .foto-wrap, .cto-foto picture, .cto-foto img { display: block; width: 100%; }
.cto-foto img { height: 580px; object-fit: cover; object-position: center bottom; }

/* ---------- Cartel "Mensaje enviado" ---------- */
.cartel {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .7);
  animation: cartel-fondo .25s ease both;
}
.cartel[hidden] { display: none; }
.cartel-caja {
  position: relative;
  width: min(534px, 100%);
  padding: 51px 20px 28px;
  background: var(--verde);
  color: #fff;
  text-align: center;
  animation: cartel-caja .3s cubic-bezier(.34, 1.4, .64, 1) both;
}
.cartel-caja h2 { font-size: clamp(28px, 7.5vw, 40px); font-weight: 600; line-height: 1.8; letter-spacing: -.05em; }
.cartel-caja p { margin-top: 4px; font-size: clamp(16px, 4.3vw, 20px); line-height: 1.125; letter-spacing: -.05em; }
.cartel-x { position: absolute; top: 23px; right: 21px; width: 20px; height: 20px; padding: 0; }
.cartel-x svg { width: 20px; height: 20px; }
.cartel-x::after { content: ""; position: absolute; inset: -12px; }   /* zona de toque más grande */
.cartel-volver {
  display: block;
  width: min(195px, 100%);
  height: 39px;
  margin: 30px auto 0;
  border-radius: 19.5px;
  background: #000;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 39px;
  transition: background .15s;
}
.cartel-volver:hover, .cartel-volver:focus-visible { background: var(--boton); }
body.cartel-abierto { overflow: hidden; }
@keyframes cartel-fondo { from { opacity: 0; } to { opacity: 1; } }
@keyframes cartel-caja { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ---------- Páginas simples (provisorias) ---------- */
.simple {
  max-width: 1600px;
  margin: 0 auto;
  padding: 40px var(--margen) 140px;
  min-height: 360px;
}
.simple h1 { font-size: 28px; font-weight: 600; color: var(--negro); margin-bottom: 14px; }
.simple p { font-size: 16px; line-height: 2; }

/* ---------- Pie de página ---------- */
.pie { background: var(--gris-pie); height: 147px; }
.pie-in {
  max-width: 1600px;
  margin: 0 auto;
  height: 128px;
  padding: 0 calc(var(--margen) + 11px) 0 var(--margen);   /* en el diseño el pie termina 11 px antes que la cabecera */
  display: flex;
  align-items: center;
}
.pie .logo { margin-left: -1px; }
.redes {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 89px;
}
.redes a { display: block; opacity: 1; transition: opacity .15s; }
.redes a:hover { opacity: .6; }
.sep-v { display: block; width: 1px; height: 26px; background: var(--linea); }
.sep-grande { height: 76px; margin: 0 59px; }
.menu-pie { margin-left: auto; padding-top: 0; }

/* =========================================================
   CELULAR / TABLET CHICA
   Medidas tomadas de los diseños de Figma de 700 px de ancho.
   "u" es la unidad: 1u = 1 px del diseño, escalado al ancho real de la pantalla.
   ========================================================= */
@media (max-width: 900px) {
  :root {
    --u: calc(100vw / 700);
    --margen: calc(28 * var(--u));
  }
  body { overflow-x: hidden; }

  /* ----- Cabecera: logo, ENG y menú, ubicados como en el diseño ----- */
  .cabecera { max-width: none; height: calc(150 * var(--u)); padding: 0; }
  .cabecera .logo { position: absolute; left: calc(25 * var(--u)); top: calc(46 * var(--u)); margin: 0; }
  .logo img { width: calc(325 * var(--u)); }
  .cabecera-der { display: contents; }

  .cabecera .btn-idioma {
    position: absolute;
    left: calc(442 * var(--u));
    top: calc(51 * var(--u));
    width: calc(120 * var(--u));
    height: calc(49 * var(--u));
    border-radius: calc(35 * var(--u));
    background: #f1f1f1;
    font-size: max(12px, calc(20 * var(--u)));
    line-height: calc(49 * var(--u));
  }
  .btn-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    left: calc(598 * var(--u));
    top: calc(48 * var(--u));
    width: calc(70 * var(--u));
    height: calc(52 * var(--u));
  }
  .btn-menu svg { width: calc(39.7 * var(--u)); height: calc(26 * var(--u)); }

  .cabecera .menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 30;
    flex-direction: column;
    gap: 0;
    padding: calc(10 * var(--u)) calc(50 * var(--u)) calc(30 * var(--u));
    background: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, .08);
  }
  .cabecera .menu.abierto { display: flex; }
  .cabecera .menu a { font-size: max(16px, calc(28 * var(--u))); line-height: 2.2; }

  /* ----- Estructura ----- */
  .pagina { display: block; padding: 0 var(--margen); }
  .pg-home .pagina { padding-top: 0; }

  /* ----- Filtros: botones redondeados que se deslizan hacia el costado ----- */
  .pg-home .lateral {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: calc(13 * var(--u)) calc(var(--margen) * -1) 0;
    padding: calc(14 * var(--u)) calc(var(--margen)) calc(14 * var(--u)) calc(29 * var(--u));
    background: #fff;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }
  .pg-home .lateral::-webkit-scrollbar { display: none; }
  .filtros { display: flex; gap: calc(24.5 * var(--u)); padding: 0; }
  .filtros li { flex: none; }
  .filtros a {
    display: block;
    height: calc(48 * var(--u));
    padding: 0 calc(31 * var(--u));
    border-radius: calc(30 * var(--u));
    background: var(--gris-pie);
    color: var(--texto);
    font-size: max(12px, calc(22 * var(--u)));
    line-height: calc(48 * var(--u));
  }
  .filtros a:hover { color: var(--texto); }
  .filtros a.activo { background: var(--negro); color: #fff; font-weight: 600; }
  .filtros a.activo::after { display: none; }
  .f-desk { display: none; }
  .f-mov { display: inline; }

  /* ----- Portadas del home ----- */
  .mosaico { gap: calc(26 * var(--u)); margin-top: calc(36 * var(--u)); }
  .pg-home .contenido { margin-bottom: calc(32 * var(--u)); }
  .tarjeta { max-height: none; aspect-ratio: 647 / 374; }   /* misma imagen que en compu, centrada y recortada a los costados */
  .tarjeta .flecha {
    width: calc(82 * var(--u));
    height: calc(82 * var(--u));
    right: calc(35 * var(--u));
    bottom: calc(32 * var(--u));
    opacity: 1;
  }
  .tarjeta .flecha svg { width: calc(38 * var(--u)); height: calc(38 * var(--u)); }

  /* ----- Proyecto: VOLVER, fotos con el texto, datos, botoncitos y VOLVER final ----- */
  .pg-proyecto .pagina { display: flex; flex-direction: column; }
  .pg-proyecto .lateral, .pg-proyecto .contenido { display: contents; }
  .pg-proyecto .lateral > .btn-volver { order: 1; margin: calc(33 * var(--u)) 0 calc(31 * var(--u)) calc(-4 * var(--u)); align-self: flex-start; }
  .galeria { order: 2; }
  .ficha { order: 3; margin: calc(24 * var(--u)) 0 0; }
  .fila-final { order: 4; justify-content: flex-start; margin: calc(48 * var(--u)) 0 calc(25 * var(--u)) calc(22 * var(--u)); }

  .btn-volver {
    width: calc(184 * var(--u));
    height: calc(60.75 * var(--u));
    padding-left: calc(19 * var(--u));
    gap: calc(9 * var(--u));
    border-radius: calc(30 * var(--u));
    font-size: max(13px, calc(22 * var(--u)));
  }
  .btn-volver .ico-volver { width: calc(27 * var(--u)); height: calc(29.6 * var(--u)); }


  /* Videos */
  .v-grande { width: max(64px, calc(104 * var(--u))); height: max(64px, calc(104 * var(--u))); margin: calc(max(64px, calc(104 * var(--u))) / -2) 0 0 calc(max(64px, calc(104 * var(--u))) / -2); }
  .v-grande svg { width: 42%; height: 42%; }
  .v-barra { gap: 2px; padding: 26px 8px 6px; }
  .v-btn { width: 42px; height: 42px; }
  .v-tiempo { min-width: 0; font-size: 12px; padding: 0 2px; }
  .v-progreso { margin: 0 6px; }

  .texto-bloque { min-height: calc(375 * var(--u)); padding: calc(66 * var(--u)) calc(73 * var(--u)); }
  .texto { width: 100%; color: var(--texto-bloque); font-size: max(13px, calc(22 * var(--u))); line-height: 1.73; text-align: justify; }
  .texto p + p { margin-top: calc(15 * var(--u)); }
  .texto-bloque { background: var(--gris-pie); }
  .texto:not(.sin-mov) .t-desk { display: none; }
  .t-mov { display: block; }

  /* Datos del cliente: tres columnas */
  .datos {
    display: grid;
    grid-template-columns: calc(248 * var(--u)) calc(205 * var(--u)) 1fr;
    gap: 0;
    padding: 0 0 0 calc(24 * var(--u));
    border-left: 0;
  }
  .dato dt { font-size: max(12px, calc(18 * var(--u))); line-height: calc(30 * var(--u)); }
  .dato dd { font-size: max(13px, calc(22 * var(--u))); line-height: calc(36 * var(--u)); }
  .dato.d-pais dt { font-size: max(11px, calc(15 * var(--u))); }
  .dato dd.pais { font-size: max(12px, calc(18 * var(--u))); }
  .dato-url { grid-column: 1 / -1; margin-top: calc(12 * var(--u)); margin-left: calc(-6 * var(--u)); }
  .dato-url a { gap: calc(5 * var(--u)); font-size: max(12px, calc(20 * var(--u))); line-height: calc(44 * var(--u)); }
  .dato-url svg { width: calc(24 * var(--u)); height: calc(24 * var(--u)); }

  .etiquetas { gap: calc(8 * var(--u)) calc(22 * var(--u)); padding-left: calc(22 * var(--u)); }
  .datos + .etiquetas { margin-top: calc(14 * var(--u)); }
  .etiquetas + .etiquetas-libres, .datos + .etiquetas-libres { margin-top: calc(14 * var(--u)); }
  .etiqueta-libre {
    height: calc(41 * var(--u));
    padding: 0 calc(29 * var(--u));
    border-radius: calc(20.5 * var(--u));
    font-size: max(12px, calc(20 * var(--u)));
    line-height: calc(40 * var(--u));
  }
  .etiquetas a {
    height: calc(41 * var(--u));
    padding: 0 calc(29 * var(--u));
    border-radius: calc(20.5 * var(--u));
    font-size: max(12px, calc(20 * var(--u)));
    line-height: calc(41 * var(--u));
  }

  /* Bio */
  .bio { padding-top: calc(34 * var(--u)); }
  .bio-col { width: calc(543 * var(--u)); margin: 0 0 0 calc(78 * var(--u)); }
  .bio-titulo { font-size: max(18px, calc(39 * var(--u))); letter-spacing: -.03em; }
  .bio-texto { width: calc(549 * var(--u)); margin: calc(53 * var(--u)) 0 0 calc(-2 * var(--u)); font-size: max(13px, calc(26 * var(--u))); line-height: 1.78; }
  .bio-texto p + p { margin-top: calc(15 * var(--u)); }
  .bio-texto:not(.sin-mov) .t-desk { display: none; }
  .bio-texto .t-mov { display: block; }
  .equipo {
    gap: calc(11 * var(--u));
    margin-top: calc(47 * var(--u));
    padding: 0 0 calc(69 * var(--u)) calc(76 * var(--u));
    justify-content: flex-start;
    background: linear-gradient(to bottom, #fff 0, #fff calc(181 * var(--u)), #ddd calc(181 * var(--u)));
  }
  .persona:first-child { width: calc(270 * var(--u)); }
  .persona:last-child { width: calc(266 * var(--u)); }
  .persona .foto-wrap img { width: 100%; height: calc(358 * var(--u)); }
  .persona-nombre { margin-top: calc(31 * var(--u)); font-size: max(16px, calc(36 * var(--u))); line-height: calc(35 * var(--u)); letter-spacing: -.025em; }
  .persona-nombre span { display: block; }
  .persona-rol { margin-top: calc(7 * var(--u)); font-size: max(13px, calc(28 * var(--u))); line-height: calc(32 * var(--u)); letter-spacing: 0; }
  .rol-largo { display: none; }
  .rol-corto { display: inline; }
  .persona-rol::after { content: ""; display: block; width: calc(40 * var(--u)); height: 1px; margin: calc(20 * var(--u)) auto 0; background: #b5b5b5; }
  .persona-in { margin-top: calc(18 * var(--u)); }
  .persona-in img { width: calc(27 * var(--u)); }

  /* Servicios */
  .servicios { padding: calc(15 * var(--u)) calc(47.5 * var(--u)) 0; }
  .serv-h1 { font-size: max(24px, calc(48 * var(--u))); margin-left: calc(2.5 * var(--u)); }
  .serv-intro { width: calc(601 * var(--u)); margin-left: calc(1.5 * var(--u)); font-size: max(14px, calc(28 * var(--u))); line-height: 1.69; color: var(--boton); }
  .serv-intro div:not(.sin-mov) > .t-desk { display: none; }
  .serv-intro .t-mov { display: block; }
  .acordeon { margin: calc(51 * var(--u)) 0 0; }
  .serv-boton { height: calc(94 * var(--u)); padding: calc(9 * var(--u)) 0 0 calc(5.5 * var(--u)); }
  .serv-nombre { font-size: max(18px, calc(42 * var(--u))); line-height: calc(76 * var(--u)); white-space: normal; }
  .serv-nombre .comp { display: none; }
  .serv-flecha { right: calc(-1.5 * var(--u)); bottom: calc(8 * var(--u)); width: calc(79 * var(--u)); height: calc(79 * var(--u)); }
  .serv-detalle { height: 0; }
  .serv-detalle-in { min-height: 0; padding: calc(21 * var(--u)) calc(3.5 * var(--u)) calc(89 * var(--u)); }
  .serv-detalle-in p { max-width: none; width: calc(549 * var(--u)); margin-top: 0; font-size: max(13px, calc(24 * var(--u))); line-height: 1.66; }
  .serv-linea { top: calc(6 * var(--u)); left: calc(3.5 * var(--u)); width: calc(574 * var(--u)); height: 0.7pt; }
  .serv-cierre { margin: calc(104 * var(--u)) 0 0 calc(3.5 * var(--u)); padding-bottom: calc(76 * var(--u)); }
  .serv-cierre p { font-size: max(14px, calc(28 * var(--u))); line-height: 1.68; color: var(--negro); }
  .btn-escribinos { width: calc(272 * var(--u)); height: calc(75 * var(--u)); margin: calc(45 * var(--u)) 0 0 calc(-3.5 * var(--u)); border-radius: calc(62 * var(--u)); font-size: max(14px, calc(24 * var(--u))); line-height: calc(75 * var(--u)); }

  /* Contacto */
  .contacto {
    display: block;
    margin: 0;
  }
  .cto-intro { margin: 0; padding: calc(15 * var(--u)) calc(50 * var(--u)) 0; }
  .cto-h1 { font-size: max(24px, calc(48 * var(--u))); margin-left: 0; }
  .cto-texto { max-width: none; width: calc(599 * var(--u)); margin: 0 0 0 calc(1 * var(--u)); font-size: max(14px, calc(28 * var(--u))); line-height: 1.69; color: var(--boton); }

  .cto-form {
    width: calc(620 * var(--u));
    min-height: calc(580 * var(--u));
    margin: calc(34 * var(--u)) auto 0;
    padding: calc(39 * var(--u)) calc(47 * var(--u)) calc(29 * var(--u)) calc(48 * var(--u));
    column-gap: calc(28 * var(--u));
    grid-template-columns: 231fr 266fr;
  }
  .cto-campo label { padding-left: calc(7 * var(--u)); font-size: max(12px, calc(20 * var(--u))); line-height: calc(30 * var(--u)); }
  .cto-correo label { padding-left: 0; }
  .cto-nombre label { margin-bottom: calc(16 * var(--u)); }
  .cto-correo label { margin-bottom: calc(12 * var(--u)); margin-top: calc(2 * var(--u)); }
  .cto-asunto { margin-top: calc(22 * var(--u)); }
  .cto-asunto label { margin-bottom: calc(11 * var(--u)); }
  .cto-mensaje { margin-top: calc(8 * var(--u)); }
  .cto-mensaje label { margin-bottom: calc(6 * var(--u)); }
  .cto-campo input, .cto-campo textarea { font-size: max(16px, calc(22 * var(--u))); padding: 0 calc(16 * var(--u)); }
  .cto-nombre input { height: max(40px, calc(57 * var(--u))); }
  .cto-correo input { height: max(40px, calc(59 * var(--u))); }
  .cto-asunto input { height: max(40px, calc(61 * var(--u))); }
  .cto-campo textarea { height: calc(167 * var(--u)); min-height: 110px; margin-left: calc(2 * var(--u)); width: calc(100% - 2 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); }
  .cto-pie-form { margin-top: calc(34 * var(--u)); padding-left: calc(7 * var(--u)); flex-wrap: wrap; gap: calc(14 * var(--u)) calc(24 * var(--u)); }
  .btn-enviar { width: max(120px, calc(195 * var(--u))); height: max(40px, calc(39 * var(--u))); border-radius: 30px; font-size: max(14px, calc(20 * var(--u))); }
  .cto-error { flex-basis: 100%; font-size: max(13px, calc(20 * var(--u))); }

  .cto-foto { width: calc(620 * var(--u)); margin: calc(-1 * var(--u)) auto 0; }
  .cto-foto img { height: auto; aspect-ratio: 620 / 353; }

  .cto-datos { padding: calc(52 * var(--u)) calc(30 * var(--u)) calc(107 * var(--u)) calc(49 * var(--u)); }
  .cto-datos::before { display: none; }
  .cto-datos ul { padding-left: 0; }
  .cto-datos li { gap: calc(47 * var(--u)); }
  .cto-datos li + li { margin-top: calc(27 * var(--u)); }
  .cto-datos .cto-in { margin-top: 0; }
  .cto-ico { width: calc(59 * var(--u)); }
  .cto-ico svg { width: calc(59 * var(--u)); height: calc(59 * var(--u)); }
  .cto-ico img { width: calc(36 * var(--u)); height: calc(38 * var(--u)); }
  .cto-txt { font-size: max(14px, calc(28 * var(--u))); line-height: calc(63 * var(--u)); min-width: 0; overflow-wrap: anywhere; }
  .cto-tel .cto-txt a { line-height: calc(43 * var(--u)); }
  .cto-tel .cto-txt a + a { margin-top: calc(15 * var(--u)); }
  .cto-datos li:first-child .cto-ico { margin-top: calc(5 * var(--u)); }
  .cto-tel .cto-ico { margin-top: calc(-2 * var(--u)); }
  .cto-datos li:first-child .cto-txt { margin-top: 0; }
  .cto-tel .cto-txt { margin-top: 0; padding-top: calc(2 * var(--u)); padding-bottom: calc(5 * var(--u)); }
  .cto-in .cto-ico { margin-top: calc(10 * var(--u)); }

  /* Páginas simples (provisorias) */
  .simple { padding: calc(60 * var(--u)) calc(50 * var(--u)) calc(120 * var(--u)); min-height: calc(500 * var(--u)); }
  .simple h1 { font-size: max(24px, calc(48 * var(--u))); letter-spacing: -.05em; }
  .simple p { font-size: max(14px, calc(26 * var(--u))); }

  /* ----- Pie: logo vertical, menú en una fila; redes y ENG abajo ----- */
  .pie { height: calc(193 * var(--u)); }
  .pie-in { position: relative; display: block; max-width: none; height: calc(193 * var(--u)); padding: 0; }
  .pie .logo { position: absolute; left: calc(30 * var(--u)); top: calc(27 * var(--u)); margin: 0; }
  .pie .logo-h { display: none; }
  .pie .logo-v { display: block; width: calc(145 * var(--u)); height: auto; }
  .sep-grande { position: absolute; left: calc(200 * var(--u)); top: calc(18 * var(--u)); height: calc(148 * var(--u)); margin: 0; }
  .menu-pie {
    position: absolute;
    left: calc(220 * var(--u));
    top: calc(25 * var(--u));
    margin: 0;
    padding: 0;
    gap: calc(33 * var(--u));
    font-size: max(12px, calc(22 * var(--u)));
    line-height: calc(44 * var(--u));
    flex-wrap: nowrap;
    white-space: nowrap;
  }
  .redes { position: absolute; left: calc(408 * var(--u)); top: calc(100 * var(--u)); height: calc(40 * var(--u)); margin: 0; gap: calc(25 * var(--u)); }
  .redes img:not(.x) { width: auto; }
  .redes a:first-child img { width: calc(24.65 * var(--u)); height: calc(24.65 * var(--u)); }
  .redes a:last-child img { width: calc(22 * var(--u)); height: calc(22 * var(--u)); }
  .redes .sep-v { height: calc(40 * var(--u)); }
  .btn-idioma-pie {
    position: absolute;
    left: calc(552 * var(--u));
    top: calc(97 * var(--u));
    width: calc(120 * var(--u));
    height: calc(49 * var(--u));
    border-radius: calc(35 * var(--u));
    font-size: max(12px, calc(20 * var(--u)));
    line-height: calc(49 * var(--u));
  }
}

/* Pantallas táctiles: no hay "hover", por eso el círculo se muestra siempre */
@media (hover: none) {
  .tarjeta .flecha { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .serv-flecha svg { transition: transform .65s cubic-bezier(.34, 1.56, .64, 1) !important; }   /* la flecha del acordeón también rebota */
}
