/* NOTARÍA 67 — La notaría (sobre css/app.css) */

.not {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Perfil: retrato protagonista + voz del notario */
.not-perfil {
  grid-column: 1 / -1;
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(14px, 1.6vw, 18px) clamp(22px, 4vw, 56px) clamp(14px, 1.6vw, 18px) clamp(14px, 1.6vw, 18px);
  border-radius: var(--r-xl);
  color: #fff;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(122, 188, 89, 0.16), transparent 60%),
    var(--tile-hero);
  overflow: hidden;
}

/* Retrato */
.not-retrato {
  position: relative;
  margin: 0;
  perspective: 900px;
}
.not-retrato-marco {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 22px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 30% 15%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(160deg, #3a6584, #1a2e3d);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}
.not-retrato-marco img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  filter: grayscale(1) contrast(1.05);
  transform: scale(1.04);
  transition: filter 0.8s var(--ease), transform 0.8s var(--ease);
}
.not-retrato:hover img,
.not-retrato:focus-within img {
  filter: none;
  transform: scale(1);
}
.not-retrato-marco::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(14, 26, 35, 0.85));
  pointer-events: none;
}
.not-retrato-vacio {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(64px, 8vw, 110px);
  font-weight: 650;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.85);
}
.not-retrato figcaption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  z-index: 1;
}
.not-retrato figcaption b {
  display: block;
  font-size: clamp(18px, 1.7vw, 22px);
  font-weight: 650;
  letter-spacing: -0.015em;
}
.not-retrato figcaption small {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

/* Voz */
.not-voz {
  padding: clamp(10px, 2vw, 24px) 0;
}
.not-voz .not-etq {
  color: var(--tile-hero-2) !important;
}
.not-comillas {
  display: block;
  font-size: 44px;
  color: var(--verde);
}
.not-voz blockquote {
  max-width: 28ch;
  margin: 8px 0 0;
  font-size: clamp(22px, 2.5vw, 34px);
  line-height: 1.25;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.not-voz blockquote span[aria-hidden] {
  display: inline-block;
}
.not-acciones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: clamp(24px, 3vw, 36px);
}
.not-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px;
  border-radius: 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: background-color 0.2s, transform 0.2s;
}
.not-btn i {
  font-size: 18px;
}
.not-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.not-btn-claro {
  background: #fff;
  color: var(--azul-900);
  box-shadow: none;
}
.not-btn-claro:hover {
  background: var(--verde);
  color: var(--azul-900);
}
[data-theme="dark"] .not-btn-claro {
  background: var(--verde);
  color: #0e1a23;
}

/* ── Animaciones (solo si el usuario no pidió reducir movimiento) ── */
@media (prefers-reduced-motion: no-preference) {
  .js-animar [data-animar] .not-voz blockquote span[aria-hidden] {
    opacity: 0;
    transform: translateY(0.4em);
    filter: blur(4px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), filter 0.6s var(--ease);
    transition-delay: calc(0.25s + var(--i) * 0.045s);
  }
  .js-animar [data-animar] .not-retrato {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js-animar [data-animar] .not-cargos li {
    opacity: 0;
    transform: translateX(-10px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
    transition-delay: calc(0.15s + var(--i) * 0.09s);
  }
  .js-animar [data-animar] .not-linea::after {
    transform: scaleY(0);
  }
  .js-animar [data-animar] .not-linea li {
    opacity: 0.35;
    transition: opacity 0.5s var(--ease);
    transition-delay: calc(0.2s + var(--i) * 0.16s);
  }
  .js-animar [data-animar] .not-linea li::before {
    transition: box-shadow 0.4s var(--ease), background-color 0.4s var(--ease);
    transition-delay: calc(0.2s + var(--i) * 0.16s);
  }
  .js-animar [data-animar].visto .not-voz blockquote span[aria-hidden] {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .js-animar [data-animar].visto .not-retrato {
    opacity: 1;
    transform: none;
  }
  .js-animar [data-animar].visto .not-cargos li {
    opacity: 1;
    transform: none;
  }
  .js-animar [data-animar].visto .not-linea::after {
    transform: scaleY(1);
  }
  .js-animar [data-animar].visto .not-linea li {
    opacity: 1;
  }
  .js-animar [data-animar].visto .not-linea li::before {
    background: var(--icono);
    box-shadow: 0 0 0 4px var(--primary-soft);
  }
}

.not-etq {
  margin: 0 0 12px !important;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-3) !important;
}
.tile-hero .not-etq {
  color: var(--tile-hero-2) !important;
}
.tile-cream .not-etq {
  color: #6b6458 !important;
}

/* Trayectoria */
.not-col {
  display: flex;
  flex-direction: column;
}
.not-dato {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 18px !important;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--text-2) !important;
  font-size: 15px !important;
  line-height: 1.45;
}
.not-dato b {
  flex: none;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--icono);
}
.not-cargos {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.not-cargos li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.not-cargos b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}
.not-cargos small {
  display: block;
  font-size: 13px;
  color: var(--text-2);
}

/* Formación como línea de tiempo */
.not-linea {
  position: relative;
  display: grid;
  gap: 18px;
  margin: 4px 0 0;
  padding: 0 0 0 26px;
  list-style: none;
}
.not-linea::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.not-linea::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
  background: var(--icono);
  transform-origin: top;
  transition: transform 1.2s var(--ease) 0.15s;
}
.not-linea li {
  position: relative;
  z-index: 1;
}
.not-linea li::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 3px var(--icono);
}
.not-linea b {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
}
.not-linea small {
  display: block;
  margin-top: 2px;
  font-size: 13.5px;
  color: var(--text-2);
}

/* Misión y visión */
.not-mv {
  min-height: 0;
}
.not-mv h2 {
  margin: 0 0 10px;
  font-size: clamp(19px, 1.8vw, 23px);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.not-mv p:last-child {
  font-size: 15px;
  line-height: 1.55;
}

.not-valores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.not-valores h3 {
  margin: 12px 0 4px !important;
  font-size: 16px !important;
}
.not-contacto {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.not-mapa {
  min-height: 300px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface-2);
}
.not-mapa iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
}
[data-theme="dark"] .not-mapa iframe {
  filter: invert(0.9) hue-rotate(180deg) saturate(0.6);
}

@media (max-width: 1100px) {
  .not-valores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  .not-perfil {
    grid-template-columns: 1fr;
    padding: 14px 14px 26px;
  }
  .not-retrato-marco {
    aspect-ratio: 1 / 1;
  }
  .not-voz {
    padding: 4px 10px 0;
  }
}
@media (max-width: 720px) {
  .not {
    grid-template-columns: 1fr;
  }
  .not-btn {
    flex: 1;
    justify-content: center;
  }
  .not-valores,
  .not-contacto {
    grid-template-columns: 1fr;
  }
}
