/* carlosfoto.es — estilos del tema. Primero el móvil; los anchos grandes, al final de cada bloque. */

:root {
  --papel: #F3F4F1;
  --blanco: #FFFFFF;
  --tinta: #101314;
  --tinta-2: #2B3133;
  --gris: #545B5E;
  --linea: #D3D7D2;
  --fondo-hueco: #E4E7E2;
  --noche: #0D1011;
  --noche-2: #101314;
  --noche-linea: #2A3032;
  --noche-borde: #4A5254;
  --noche-texto: #C9CFCD;
  --noche-gris: #A9B1B0;
  --acento: #0A6B67;
  --acento-noche: #62D9CC;

  --letra: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, monospace;
  --ancho: 1280px;
  --margen: 16px;
  --seccion: 56px;
}

@media (min-width: 760px) {
  :root { --margen: 32px; --seccion: 72px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }

body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font-family: var(--letra);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

[hidden] { display: none !important; }

a { color: inherit; }
a:hover { color: var(--acento); }
:focus-visible { outline: 2px solid var(--acento); outline-offset: 3px; }

p { margin: 0; }

.cf-saltar {
  position: absolute;
  left: var(--margen);
  top: -100px;
  z-index: 10;
  padding: 12px 18px;
  background: var(--tinta);
  color: var(--papel);
}
.cf-saltar:focus { top: 12px; }

/* --- Rejilla general --- */

.cf-contenedor {
  width: 100%;
  max-width: var(--ancho);
  margin: 0 auto;
  padding-inline: var(--margen);
}

.cf-seccion { padding-block: var(--seccion); }
.cf-seccion--borde { border-top: 1px solid var(--linea); }
.cf-seccion--blanca { background: var(--blanco); border-block: 1px solid var(--linea); }
.cf-seccion--noche { background: var(--noche); color: var(--papel); }
.cf-seccion--noche a:not(.cf-boton):hover { color: var(--acento-noche); }

.cf-pila { display: flex; flex-direction: column; gap: 16px; }
.cf-pila--estrecha { gap: 12px; }
.cf-pila--ancha { gap: 32px; }

.cf-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cf-seccion > .cf-pila, .cf-seccion > .cf-contenedor.cf-pila { gap: 32px; }

.cf-rejilla { display: grid; gap: 24px; }
.cf-rejilla--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.cf-rejilla--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 40px 48px; }
.cf-rejilla--320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 32px; }
.cf-rejilla--360 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 16px; }

.cf-encabezado {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 40px;
}
.cf-encabezado > .cf-pila { flex: 1 1 420px; min-width: 0; }

.cf-dividida { display: flex; flex-wrap: wrap; gap: 40px 64px; align-items: center; }
.cf-dividida__texto { flex: 1 1 340px; min-width: 0; }
.cf-dividida__media { flex: 2 1 480px; min-width: 0; }

/* --- Tipografía --- */

.cf-titulo-1, .cf-titulo-2, .cf-titulo-3 {
  margin: 0;
  font-weight: 620;
  font-stretch: 125%;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.cf-titulo-1 { font-size: clamp(36px, 5.6vw, 76px); line-height: 0.98; letter-spacing: -0.025em; }
.cf-titulo-2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.03; }
.cf-titulo-3 { font-size: clamp(22px, 2vw, 27px); line-height: 1.12; font-stretch: 118%; letter-spacing: -0.015em; }

.cf-entradilla { max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--tinta-2); text-wrap: pretty; }

.cf-etiqueta, .cf-mono, .cf-pie-foto, .cf-lugar__fotos, .cf-tiempo__anio {
  font-family: var(--mono);
}
.cf-etiqueta {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gris);
}
.cf-etiqueta--acento { color: var(--acento); }
.cf-seccion--noche .cf-etiqueta { color: var(--noche-gris); }
.cf-texto-noche { color: var(--noche-texto); max-width: 32em; }

.cf-enlace {
  align-self: flex-start;
  display: inline-block;
  padding: 10px 0;
  font-weight: 600;
  color: var(--acento);
}

/* --- Botones --- */

.cf-acciones { display: flex; flex-wrap: wrap; gap: 12px; }

.cf-boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 24px;
  border: 1.5px solid var(--tinta);
  background: var(--tinta);
  color: var(--papel);
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cf-boton:hover { background: var(--acento); border-color: var(--acento); color: var(--blanco); }
.cf-boton--linea { background: transparent; color: var(--tinta); }
.cf-boton--linea:hover { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.cf-boton--claro { background: var(--papel); border-color: var(--papel); color: var(--tinta); }
.cf-boton--claro:hover { background: var(--blanco); border-color: var(--blanco); color: var(--tinta); }

/* --- El encuadre: las cuatro esquinas del logo, como marco de fotos, menú y enlaces --- */

.cf-encuadre,
.cf-marco::after,
.cf-tiempo__enlace::after,
.cf-nav__lista a::before {
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--l) var(--g),
    linear-gradient(var(--c), var(--c)) top left / var(--g) var(--l),
    linear-gradient(var(--c), var(--c)) top right / var(--l) var(--g),
    linear-gradient(var(--c), var(--c)) top right / var(--g) var(--l),
    linear-gradient(var(--c), var(--c)) bottom left / var(--l) var(--g),
    linear-gradient(var(--c), var(--c)) bottom left / var(--g) var(--l),
    linear-gradient(var(--c), var(--c)) bottom right / var(--l) var(--g),
    linear-gradient(var(--c), var(--c)) bottom right / var(--g) var(--l);
  background-repeat: no-repeat;
}

.cf-encuadre { --c: var(--tinta); --l: 22px; --g: 2px; padding: 16px; }
.cf-encuadre img { width: 100%; }

/* Al pasar por un enlace con imagen, las esquinas aparecen con un tintineo. */
.cf-marco { position: relative; display: block; }
.cf-marco::after {
  --c: var(--acento);
  --l: 16px;
  --g: 2px;
  content: '';
  position: absolute;
  inset: -8px;
  opacity: 0;
  pointer-events: none;
}
.cf-seccion--noche .cf-marco::after { --c: var(--acento-noche); }
a:hover .cf-marco::after,
a:focus-visible .cf-marco::after,
a.cf-marco:hover::after,
a.cf-marco:focus-visible::after { opacity: 1; animation: cf-tintineo 0.36s linear; }

@keyframes cf-tintineo {
  0% { opacity: 0; }
  20% { opacity: 1; }
  35% { opacity: 0.15; }
  55% { opacity: 1; }
  70% { opacity: 0.4; }
  100% { opacity: 1; }
}

@keyframes cf-recuadro {
  0% { opacity: 0; transform: scale(0.82); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.22); }
}

.cf-pie-foto {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 20px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris);
}

/* --- Cabecera --- */

.cf-cabecera__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 18px;
}

.cf-marca { display: flex; align-items: center; gap: 14px; min-height: 48px; text-decoration: none; }
.cf-marca:hover { color: var(--tinta); }
.cf-marca__texto { display: flex; flex-direction: column; gap: 2px; }
.cf-marca__nombre { font-weight: 650; font-stretch: 118%; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }
.cf-simbolo--vivo { overflow: visible; }
.cf-marca__oficios { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); line-height: 1.2; }

.cf-nav__boton {
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--tinta);
  background: transparent;
  color: var(--tinta);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.cf-nav { flex-basis: 100%; display: none; }
.cf-nav.is-abierto { display: block; }
.cf-nav__lista { list-style: none; margin: 0; padding: 0 0 8px; display: flex; flex-direction: column; }
.cf-nav__lista a { position: relative; display: block; padding: 12px 0; text-decoration: none; font-weight: 500; border-top: 1px solid var(--linea); }
.cf-nav__lista a[aria-current="page"], .cf-nav__lista .current-menu-item > a { font-weight: 700; }
.cf-nav__contacto { padding-top: 12px; }
.cf-nav__contacto a.cf-boton { display: inline-flex; border-top: 1.5px solid var(--tinta); }

@media (min-width: 960px) {
  .cf-nav__boton { display: none; }
  .cf-nav, .cf-nav.is-abierto { display: block; flex-basis: auto; }
  .cf-nav__lista { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 0; }
  .cf-nav__lista a { border-top: 0; font-size: 16px; padding: 10px 12px; }
  .cf-nav__lista a[aria-current="page"], .cf-nav__lista .current-menu-item > a { font-weight: 500; }
  /* Al pasar: un recuadro fino que crece y se desvanece. En la sección actual o al pulsar: las esquinas del logo. */
  .cf-nav__lista li:not(.cf-nav__contacto) a::after {
    content: '';
    position: absolute;
    inset: 3px 0;
    border: 1px solid var(--acento);
    opacity: 0;
    pointer-events: none;
  }
  .cf-nav__lista li:not(.cf-nav__contacto) a:hover::after { animation: cf-recuadro 0.5s ease-out; }
  .cf-nav__lista li:not(.cf-nav__contacto) a::before {
    --c: var(--acento);
    --l: 7px;
    --g: 1px;
    content: '';
    position: absolute;
    inset: 3px 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }
  .cf-nav__lista li:not(.cf-nav__contacto) a[aria-current="page"]::before,
  .cf-nav__lista li.current-menu-item:not(.cf-nav__contacto) > a::before,
  .cf-nav__lista li:not(.cf-nav__contacto) a:active::before { opacity: 1; }
  .cf-oscuro .cf-nav__lista a::after { border-color: var(--acento-noche); }
  .cf-oscuro .cf-nav__lista a::before { --c: var(--acento-noche); }
  .cf-nav__contacto { padding-top: 0; margin-left: 14px; }
  .cf-nav__contacto a.cf-boton { min-height: 44px; padding: 0 18px; border-top-width: 1.5px; box-shadow: none; }
}

.cf-oscuro { background: var(--noche); color: var(--papel); }
.cf-oscuro .cf-marca:hover { color: var(--papel); }
.cf-oscuro .cf-marca__oficios { color: var(--noche-gris); }
.cf-oscuro .cf-nav__boton, .cf-oscuro .cf-boton--linea { border-color: var(--papel); color: var(--papel); }
.cf-oscuro .cf-nav__lista a { border-color: var(--noche-linea); }
.cf-oscuro a:not(.cf-boton):hover { color: var(--acento-noche); }
.cf-oscuro .cf-etiqueta { color: var(--noche-gris); }
.cf-oscuro .cf-etiqueta--acento { color: var(--acento-noche); }
.cf-oscuro .cf-entradilla, .cf-oscuro .cf-vacio { color: var(--noche-texto); }
.cf-oscuro .cf-enlace { color: var(--acento-noche); }
.cf-oscuro .cf-encuadre { --c: var(--papel); }
.cf-oscuro .cf-marco::after { --c: var(--acento-noche); }
.cf-oscuro .cf-entrada { background: var(--noche); border-color: var(--papel); color: var(--papel); }

/* Una sección clara dentro de una página oscura (el visor de Obras). */
.cf-claro { background: var(--papel); color: var(--tinta); }
.cf-claro .cf-etiqueta { color: var(--gris); }
.cf-claro .cf-enlace { color: var(--acento); }
.cf-claro .cf-encuadre { --c: var(--tinta); }
.cf-claro .cf-marco::after { --c: var(--acento); }
.cf-claro a:not(.cf-boton):hover { color: var(--acento); }

/* --- Portada --- */

.cf-portada {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px 56px;
  padding-block: 24px var(--seccion);
}
.cf-portada__texto { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
/* Carrusel de novedades: las diapositivas se apilan en la misma celda y se funden. */
.cf-carrusel { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cf-carrusel__fotos { display: grid; aspect-ratio: 3 / 2; overflow: hidden; background: var(--blanco); }
.cf-carrusel__foto { grid-area: 1 / 1; display: block; overflow: hidden; opacity: 0; transition: opacity 0.7s ease; }
.cf-carrusel__foto.is-activa { opacity: 1; z-index: 1; }
.cf-carrusel__img { width: 100%; height: 100%; object-fit: cover; }
.cf-carrusel__img--pequena { position: relative; object-fit: contain; }
.cf-carrusel__foto--entera { position: relative; }
.cf-carrusel__foto--entera::before {
  content: '';
  position: absolute;
  inset: -40px;
  background: var(--fondo) center / cover no-repeat;
  filter: blur(28px) saturate(1.1);
  opacity: 0.6;
}
.cf-carrusel__foto.is-activa .cf-carrusel__img:not(.cf-carrusel__img--pequena) { animation: cf-acercar 6s ease-out both; }
.cf-carrusel__pies { display: grid; }
.cf-carrusel__pie { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 0.4s ease, visibility 0.4s; }
.cf-carrusel__pie.is-activa { opacity: 1; visibility: visible; }
.cf-carrusel__puntos { display: flex; gap: 2px; margin-left: -11px; }
.cf-carrusel__punto {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cf-carrusel__punto span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--tinta);
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.cf-carrusel__punto:hover span { border-color: var(--acento); }
.cf-carrusel__punto[aria-current="true"] span { background: var(--tinta); transform: scale(1.15); }

@keyframes cf-acercar {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

/* «He trabajado para»: en negativo, una cinta que pasa sola y se para al poner el ratón encima. */
.cf-clientes { background: var(--tinta); color: var(--papel); padding-block: 24px 30px; display: flex; flex-direction: column; gap: 12px; }
.cf-clientes__titulo { margin: 0; font-weight: 400; color: var(--noche-gris); }
.cf-cinta {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.cf-cinta__pista { display: flex; width: max-content; animation: cf-cinta 48s linear infinite; }
.cf-cinta:hover .cf-cinta__pista { animation-play-state: paused; }
.cf-cinta__lista { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; }
.cf-cinta__lista li {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
  font-weight: 620;
  font-stretch: 125%;
  font-size: clamp(24px, 3vw, 40px);
  letter-spacing: -0.015em;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.cf-cinta__lista li:hover { color: var(--acento-noche); }
.cf-cinta__marca { flex: none; color: var(--acento-noche); }

@keyframes cf-cinta {
  to { transform: translateX(-50%); }
}

.cf-encabezado__texto { max-width: 46em; }

.cf-destacado { display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.cf-destacado__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border: 1px solid var(--linea); }
.cf-destacado__titulo { font-weight: 620; font-stretch: 118%; font-size: 22px; line-height: 1.15; }
.cf-destacado__texto { margin-top: -6px; color: var(--tinta-2); font-size: 16px; }
.cf-destacado:hover .cf-destacado__titulo { color: var(--acento); }

.cf-foto-enlace { display: block; }

/* --- Páginas interiores: entrada, datos y vuelta --- */

.cf-intro { padding-block: 32px var(--seccion); display: flex; flex-direction: column; gap: 20px; }
.cf-intro--ficha { gap: 28px; }
.cf-volver { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; text-decoration: none; }
.cf-volver svg { transform: scaleX(-1); }
.cf-titulo-1--ficha { font-size: clamp(34px, 4.4vw, 60px); }
.cf-dividida--arriba { align-items: flex-start; }

.cf-datos { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.cf-datos > div { padding: 14px 0; border-top: 1px solid var(--linea); }
.cf-datos dt { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gris); }
.cf-datos dd { margin: 4px 0 0; font-weight: 600; }
.cf-datos:empty { display: none; }
.cf-datos > div:only-child { grid-column: 1 / -1; }
.cf-pila > .cf-boton { align-self: flex-start; }

/* Destacados de Proyectos: el mismo carrusel de la portada, en dos columnas y con el texto al lado. */
.cf-carrusel--destacados { flex-flow: row wrap; align-items: flex-start; gap: 32px 56px; }
.cf-carrusel--destacados > .cf-encuadre { flex: 3 1 520px; min-width: 0; }
.cf-carrusel--destacados .cf-carrusel__fotos { aspect-ratio: 16 / 11; }
.cf-carrusel--destacados .cf-carrusel__img { object-position: top; }
.cf-carrusel__lado { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cf-carrusel--destacados .cf-carrusel__pie { gap: 20px; }

/* --- Archivo de proyectos: filtros y pastillas --- */

.cf-filtros { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; }
.cf-filtros__tipos { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 10px; }
.cf-filtro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--tinta);
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.cf-filtro span { font-family: var(--mono); font-size: 12px; font-weight: 400; opacity: 0.7; }
.cf-filtro:hover { border-color: var(--acento); }
.cf-filtro[aria-current="true"] { background: var(--tinta); border-color: var(--tinta); color: var(--papel); }
.cf-contador { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gris); }

.cf-campo { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cf-select, .cf-entrada {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--tinta);
  border-radius: 0;
  background: var(--papel);
  color: var(--tinta);
  font: inherit;
  font-size: 16px;
}
.cf-select { min-width: min(260px, 100%); }
.cf-entrada:focus, .cf-select:focus { outline: 2px solid var(--acento); outline-offset: 1px; }

.cf-fichas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 28px 24px; }
.cf-fichas > li[hidden], .cf-filtro[hidden] { display: none; }
.cf-fichas > li.is-nueva { animation: cf-entra 0.3s ease both; }

@keyframes cf-entra {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.cf-ficha { height: 100%; display: flex; flex-direction: column; background: var(--blanco); border: 1px solid var(--linea); text-decoration: none; }
a.cf-ficha:hover { color: var(--tinta); }
.cf-ficha__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top; border-bottom: 1px solid var(--linea); }
.cf-ficha__texto { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 8px; }
.cf-ficha__cliente { font-weight: 620; font-stretch: 118%; font-size: 19px; line-height: 1.2; }
.cf-ficha__trabajo { color: var(--tinta-2); font-size: 15.5px; line-height: 1.4; }
.cf-ficha__accion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin: 0 18px;
  border-top: 1px solid var(--linea);
  font-weight: 600;
  font-size: 15.5px;
  transition: color 0.15s ease;
}
a.cf-ficha:hover .cf-ficha__accion { color: var(--acento); }
.cf-vacio { color: var(--gris); }
.cf-vacio[hidden] { display: none; }

.cf-ficha-grande__img { width: 100%; border: 1px solid var(--linea); }

.cf-lugares { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cf-lugar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--noche-borde);
  text-decoration: none;
  font-weight: 500;
}
.cf-lugar:hover { border-color: var(--papel); }
.cf-lugar__fotos { font-size: 12px; color: var(--noche-gris); }
.cf-lugar[aria-current] { background: var(--papel); border-color: var(--papel); color: var(--tinta); }
.cf-lugar[aria-current] .cf-lugar__fotos { color: var(--gris); }

/* --- Fotografía: pestañas, buscador de lugares, galería y visor --- */

.cf-pestanas { align-self: flex-start; display: inline-flex; border: 1.5px solid currentColor; }
.cf-pestanas a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 22px; font-weight: 600; text-decoration: none; }
.cf-pestanas a[aria-current="page"] { background: var(--tinta); color: var(--papel); }
.cf-oscuro .cf-pestanas a[aria-current="page"] { background: var(--papel); color: var(--tinta); }

.cf-intro__fila { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 56px; }
.cf-intro__fila > .cf-pila { flex: 1 1 460px; min-width: 0; }
.cf-buscador { flex: 0 1 380px; }
.cf-lugares-todos { display: flex; flex-direction: column; gap: 28px; padding-bottom: var(--seccion); }
.cf-seccion--linea-noche { border-top: 1px solid var(--noche-linea); }
.cf-encabezado--base { align-items: baseline; }

.cf-galeria { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cf-galeria::after { content: ''; flex-grow: 1000; }
.cf-galeria li { flex: calc(var(--r) * 100) 1 calc(var(--r) * 150px); min-width: 0; }
.cf-galeria__foto { position: relative; display: block; }
.cf-galeria__foto.cf-marco::after { inset: -5px; --l: 12px; }
.cf-galeria__foto[aria-current] { outline: 2px solid var(--acento); outline-offset: 3px; }
.cf-galeria__img { width: 100%; height: auto; aspect-ratio: var(--r); object-fit: cover; background: var(--fondo-hueco); }
.cf-oscuro .cf-galeria__foto[aria-current] { outline-color: var(--acento-noche); }
.cf-oscuro .cf-galeria__img { background: var(--noche-linea); }
.cf-galeria__nombre {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 5px 9px;
  background: rgba(13, 16, 17, 0.8);
  color: var(--papel);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (min-width: 760px) {
  .cf-galeria li { flex-basis: calc(var(--r) * 230px); }
}

.cf-visor-seccion { padding-block: 32px var(--seccion); }
.cf-visor { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 32px 56px; }
.cf-visor__foto { flex: 3 1 560px; min-width: 0; }
.cf-visor__img { width: 100%; max-height: 78vh; object-fit: contain; }
.cf-visor__texto { flex: 1 1 280px; min-width: 0; }
.cf-visor__pie { color: var(--tinta-2); font-size: 15.5px; }
.cf-visor__nav { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--linea); }
.cf-visor__nav .cf-enlace { margin-left: auto; }
.cf-boton-icono {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--tinta);
  color: var(--tinta);
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cf-boton-icono[rel="prev"] svg { transform: scaleX(-1); }
.cf-claro .cf-boton-icono:hover, .cf-boton-icono:hover { background: var(--tinta); color: var(--papel); }

/* --- Trayectoria: exposiciones desplegables y publicaciones --- */

.cf-expos { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--linea); }
.cf-expo { border-top: 1px solid var(--linea); }
.cf-expos > li:first-child .cf-expo { border-top-color: var(--tinta); }
.cf-expo summary { display: flex; align-items: flex-start; gap: 20px; padding: 16px 0; cursor: pointer; list-style: none; }
.cf-expo summary::-webkit-details-marker { display: none; }
.cf-expo__anio { flex: 0 0 52px; padding-top: 2px; font-family: var(--mono); font-size: 15px; }
.cf-expos > li:first-child .cf-expo__anio { color: var(--acento); }
.cf-expo__nombre { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cf-expo__nombre strong { font-weight: 620; font-stretch: 112%; font-size: 18.5px; line-height: 1.25; transition: color 0.15s ease; }
.cf-expo__nombre span { color: var(--gris); font-size: 15.5px; }
.cf-expo summary:hover strong { color: var(--acento); }
.cf-expo__fotos {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-top: 3px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gris);
}
.cf-expo__fotos::after { content: '+'; font-size: 20px; line-height: 1; color: var(--tinta); transition: transform 0.2s ease; }
.cf-expo[open] .cf-expo__fotos::after { transform: rotate(45deg); }
.cf-expo__cuerpo { display: flex; flex-direction: column; gap: 16px; padding: 0 0 24px; }
.cf-expo[open] .cf-expo__cuerpo { animation: cf-entra 0.3s ease both; }
.cf-expo__cuerpo p { max-width: 46em; color: var(--tinta-2); font-size: 15.5px; }
.cf-expo__cuerpo .cf-galeria li { flex-basis: calc(var(--r) * 110px); }

@media (min-width: 600px) {
  .cf-expo__cuerpo { padding-left: 72px; }
}

.cf-trayectoria__fotos { display: flex; flex-direction: column; gap: 28px; }
.cf-trayectoria__fotos .cf-foto-16x10 { max-width: none; }
.cf-trayectoria__fotos .cf-pie-foto { margin-top: 10px; }

@media (min-width: 960px) {
  .cf-trayectoria__fotos { position: sticky; top: 24px; }
}

.cf-publicaciones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 48px; }
.cf-publicacion { display: flex; flex-direction: column; gap: 6px; padding: 20px 0; border-top: 1px solid var(--linea); }
.cf-publicacion .cf-mono { font-size: 13px; color: var(--gris); }
.cf-publicacion__titulo { margin: 0; font-weight: 620; font-stretch: 118%; font-size: 21px; line-height: 1.2; }
.cf-publicacion p { color: var(--tinta-2); font-size: 16px; }
.cf-publicacion .cf-enlace { padding: 6px 0; }

/* --- Arte --- */

.cf-indice { display: flex; flex-wrap: wrap; gap: 10px; }
.cf-indice a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--tinta); font-weight: 600; text-decoration: none; transition: background-color 0.15s ease, color 0.15s ease; }
.cf-indice a:hover { background: var(--tinta); color: var(--papel); }
.cf-texto-arte { max-width: 40em; color: var(--tinta-2); text-wrap: pretty; }

/* --- Sobre mí y contacto --- */

.cf-sobre__retrato { flex: 1 1 320px; max-width: 480px; }
.cf-sobre__img { width: 100%; max-height: 640px; object-fit: cover; }
.cf-contacto__directo { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.cf-contacto__directo a { align-self: flex-start; padding: 6px 0; font-size: 17px; }

.cf-formulario { display: flex; flex-direction: column; gap: 18px; }
.cf-formulario__fila { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 18px; }
.cf-entrada--texto { min-height: 160px; padding-block: 12px; resize: vertical; line-height: 1.5; }
.cf-formulario .cf-entrada, .cf-formulario .cf-select { background: var(--blanco); }
.cf-formulario__obra { display: flex; align-items: center; gap: 16px; padding: 12px; border: 1px solid var(--linea); }
.cf-formulario__obra > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cf-formulario__miniatura { width: auto; height: 72px; flex: none; }
.cf-campo--trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cf-casilla { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: var(--tinta-2); cursor: pointer; }
.cf-casilla input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--acento); }
.cf-formulario .cf-boton { align-self: flex-start; }
.cf-aviso { padding: 14px 18px; border-left: 0; font-weight: 600; animation: cf-entra 0.35s ease both; }
.cf-aviso:focus { outline: none; }
.cf-aviso--bien { background: #DDEFEC; color: #08514E; }
.cf-aviso--mal { background: #F6E3DF; color: #7A2A1C; }

/* --- Encargos --- */

.cf-encargos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 40px 32px; }
.cf-encargos__grande { grid-column: 1 / -1; }
.cf-encargo { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
a.cf-encargo:hover { color: var(--tinta); }
a.cf-encargo:hover .cf-encargo__nombre { color: var(--acento); }
.cf-encargo .cf-marco { margin-bottom: 6px; }
.cf-encargo__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cf-encargos__grande .cf-encargo__img { aspect-ratio: 21 / 9; }
.cf-encargo__nombre { font-weight: 620; font-stretch: 118%; font-size: 21px; line-height: 1.2; transition: color 0.15s ease; }
.cf-encargos__grande .cf-encargo__nombre { font-size: clamp(24px, 2.4vw, 32px); }
.cf-encargo__texto { max-width: 40em; color: var(--tinta-2); font-size: 16px; }
.cf-tambien { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; padding-top: 18px; border-top: 1px solid var(--linea); }
.cf-tambien a { padding: 8px 0; font-weight: 600; }

.cf-cita { margin: 0; max-width: 32em; font-size: clamp(18px, 1.6vw, 21px); color: var(--tinta-2); text-wrap: pretty; }
.cf-servicios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cf-servicios a { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; padding: 14px 0; border-top: 1px solid var(--linea); text-decoration: none; }
.cf-servicios li:last-child a { border-bottom: 1px solid var(--linea); }
.cf-servicios strong { font-weight: 620; font-stretch: 118%; font-size: 19px; line-height: 1.25; }
.cf-servicios span { grid-column: 1; color: var(--gris); font-size: 15.5px; }
.cf-servicios svg { grid-column: 2; grid-row: 1 / span 2; align-self: center; transition: transform 0.2s ease; }
.cf-servicios a:hover svg { transform: translateX(4px); }
.cf-tira { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 16px; }
.cf-tira__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.cf-promesas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 0 32px; }
.cf-promesas li { display: flex; gap: 16px; padding: 18px 0; border-top: 1px solid var(--tinta); }
.cf-promesas .cf-mono { color: var(--acento); }
.cf-promesas strong { font-weight: 600; font-stretch: 112%; }

.cf-foto-3x2 { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.cf-foto-16x10 { width: 100%; max-width: 460px; aspect-ratio: 16 / 10; object-fit: cover; }

.cf-grabados { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.cf-lamina { margin: 0; padding: 12px; background: var(--blanco); border: 1px solid var(--linea); }
.cf-lamina--ancha { grid-column: 1 / -1; }

.cf-tiempo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cf-tiempo li { border-top: 1px solid var(--linea); }
.cf-tiempo__enlace { position: relative; display: flex; gap: 24px; padding: 18px 0; text-decoration: none; }
.cf-tiempo__enlace::after {
  --c: var(--acento);
  --l: 12px;
  --g: 2px;
  content: '';
  position: absolute;
  inset: 6px -12px;
  opacity: 0;
  pointer-events: none;
}
.cf-tiempo__enlace:hover::after,
.cf-tiempo__enlace:focus-visible::after { opacity: 1; animation: cf-tintineo 0.36s linear; }
.cf-tiempo li:first-child { border-top-color: var(--tinta); }
.cf-tiempo li:last-child { border-bottom: 1px solid var(--linea); }
.cf-tiempo__anio { flex: 0 0 56px; font-size: 15px; padding-top: 3px; }
.cf-tiempo__enlace > span:last-child { display: flex; flex-direction: column; gap: 4px; color: var(--gris); }
.cf-tiempo strong { font-weight: 620; font-stretch: 118%; font-size: 19px; line-height: 1.2; color: var(--tinta); }

/* --- Llamada y pie --- */

.cf-llamada { background: var(--noche-2); color: var(--papel); }
.cf-llamada__fila {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
  padding-block: var(--seccion);
}
.cf-llamada__texto { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.cf-llamada__texto p { color: var(--noche-texto); max-width: 30em; }
.cf-llamada__acciones { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.cf-llamada__telefono { font-size: 17px; padding: 12px 0; }
.cf-llamada a:not(.cf-boton):hover { color: var(--acento-noche); }

.cf-pie { background: var(--noche-2); color: var(--noche-gris); border-top: 1px solid var(--noche-linea); font-size: 14.5px; }
.cf-pie__fila { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; padding-block: 20px; }
.cf-pie__enlaces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.cf-pie__enlaces a { display: inline-block; padding: 8px 0; }
.cf-pie a:hover { color: var(--papel); }

/* --- Páginas de texto --- */

.cf-pagina { padding-block: 32px var(--seccion); display: flex; flex-direction: column; gap: 24px; }
.cf-texto { max-width: 42em; color: var(--tinta-2); }
.cf-texto > * + * { margin-top: 1em; }
.cf-texto h2, .cf-texto h3 { color: var(--tinta); font-stretch: 118%; line-height: 1.2; }
.cf-lista-simple { margin: 0; padding-left: 1.2em; }

/* --- Apariciones al hacer scroll (solo con JavaScript; sin él todo se ve desde el principio) --- */

.cf-js .cf-titulo-2 { opacity: 0; }
.cf-js .cf-titulo-2.is-visto { opacity: 1; animation: cf-parpadeo 0.45s linear; }
.cf-js [data-aparece] { opacity: 0; transform: translateY(10px); transition: opacity 0.35s ease, transform 0.35s ease; transition-delay: var(--retardo, 0ms); }
.cf-js [data-aparece].is-visto { opacity: 1; transform: none; }

@keyframes cf-parpadeo {
  0% { opacity: 0; }
  18% { opacity: 0.85; }
  30% { opacity: 0.2; }
  48% { opacity: 1; }
  62% { opacity: 0.55; }
  100% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .cf-js .cf-titulo-2, .cf-js [data-aparece] { opacity: 1; transform: none; }
  .cf-cinta { -webkit-mask-image: none; mask-image: none; }
  .cf-cinta__pista { width: auto; padding-inline: var(--margen); }
  .cf-cinta__lista { flex-wrap: wrap; row-gap: 6px; }
  .cf-cinta__lista[aria-hidden="true"] { display: none; }
}
