/* Conóceme. Usa inicio.css (ix-*) y pauta.css (pa-*) y agrega sus piezas (cn-*). */

/* ── Portada ── */
.cn-hero { position: relative; min-height: max(100svh, 720px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 4vw;
  padding: 130px 4vw 70px; overflow: hidden; isolation: isolate; background: radial-gradient(55% 60% at 80% 50%, rgba(201,168,76,.15), transparent 70%), #0A0A0A; }
.cn-hero-txt { position: relative; z-index: 2; }
.cn-gigante { text-align: left; font-size: clamp(70px, 11vw, 190px); margin: 6px 0 18px; }
.cn-gigante > span { display: inline-block; margin-right: .18em; }
.cn-h1 { margin: 0; max-width: 18em; font: 700 clamp(24px, 2.4vw, 38px)/1.2 'Playfair Display', serif; color: #F4EFE3; }
.cn-h1 em { color: #C9A84C; }
.cn-cifras { border-top-color: rgba(244,239,227,.18); margin: 34px 0 36px; }
.cn-cifras b { color: #C9A84C; }
.cn-cifras > div > span { color: rgba(244,239,227,.65); }
.cn-foto { position: relative; margin: 0; justify-self: center; width: min(100%, 460px); }
.cn-foto img { position: relative; z-index: 2; display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; border-radius: 220px 220px 18px 18px;
  clip-path: inset(100% 0 0 0 round 220px 220px 18px 18px); animation: cn-revelar 1.6s cubic-bezier(.7,0,.2,1) .4s forwards; }
@keyframes cn-revelar { to { clip-path: inset(0 0 0 0 round 220px 220px 18px 18px); } }
.cn-marco { position: absolute; inset: 0; z-index: 1; border: 1.5px solid #C9A84C; border-radius: 220px 220px 18px 18px; transform: translate(22px, 22px); opacity: 0; animation: cn-marco 1s ease 1.6s forwards; }
@keyframes cn-marco { from { opacity: 0; transform: translate(0, 0); } to { opacity: 1; transform: translate(22px, 22px); } }
.cn-foto figcaption { position: absolute; z-index: 3; left: -30px; bottom: 40px; padding: 12px 20px; border-radius: 999px; background: #F4EFE3; color: #0A0A0A; font-size: 13.5px; font-weight: 600;
  box-shadow: 0 20px 40px rgba(0,0,0,.4); animation: pa-entra .8s cubic-bezier(.2,.9,.25,1.2) 2s both, pa-flotar 6s ease-in-out 2.8s infinite; }

/* ── Frase ── */
.cn-frase { padding: 150px 4vw; }
.cn-frase .ix-frase-txt { max-width: 17em; }

/* ── Historia ── */
.cn-historia { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6vw; align-items: center; padding: 130px 4vw; background: #F4EFE3; color: #0A0A0A; }
.cn-hist-foto { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; }
.cn-hist-foto img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; transform: scale(1.15); transition: transform 1.8s cubic-bezier(.2,.7,.2,1); }
.cn-hist-foto.ix-in img { transform: none; }
.cn-hist-txt > p { margin: 24px 0 40px; max-width: 34em; font-size: 17.5px; line-height: 1.75; color: #3B3A36; }
.cn-linea { position: relative; list-style: none; margin: 0; padding: 0 0 0 34px; }
.cn-linea::before, .cn-linea::after { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgba(10,10,10,.12); }
.cn-linea::after { background: #C9A84C; transform: scaleY(var(--p, 0)); transform-origin: top; }
.cn-linea li { position: relative; padding: 0 0 26px; font-size: 15px; line-height: 1.6; color: #6b6a64; transition: color .4s; }
.cn-linea li::before { content: ""; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: #F4EFE3; box-shadow: inset 0 0 0 2px rgba(10,10,10,.2); z-index: 1; transition: background .4s, box-shadow .4s, transform .5s cubic-bezier(.2,.9,.3,1.6); }
.cn-linea b { display: block; font: 700 20px 'Playfair Display', serif; color: #0A0A0A; }
.cn-linea li.cn-on { color: #3B3A36; }
.cn-linea li.cn-on::before { background: #C9A84C; box-shadow: none; transform: scale(1.2); }

/* ── Principios ── */
.cn-principios { padding: 140px 4vw; background: #0A0A0A; }
.cn-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.cn-principio { padding: 40px 34px 44px; border-radius: 22px; background: #121211; box-shadow: inset 0 0 0 1px rgba(201,168,76,.2); }
.cn-principio.ix-rv:nth-child(2) { transition-delay: .12s; } .cn-principio.ix-rv:nth-child(3) { transition-delay: .24s; }
.cn-principio:nth-child(2) { background: #C9A84C; color: #0A0A0A; box-shadow: none; }
.cn-principio .ix-num { display: block; font-size: 56px; line-height: 1; color: #C9A84C; margin-bottom: 24px; }
.cn-principio:nth-child(2) .ix-num { color: #0A0A0A; }
.cn-principio h3 { margin: 0 0 12px; font: 700 26px/1.15 'Playfair Display', serif; }
.cn-principio p { margin: 0; font-size: 15.5px; line-height: 1.7; color: rgba(244,239,227,.65); }
.cn-principio:nth-child(2) p { color: rgba(10,10,10,.75); }

/* ── Cita ── */
.cn-cita { position: relative; min-height: 90svh; display: flex; align-items: center; padding: 120px 4vw; overflow: hidden; isolation: isolate; background: #0A0A0A; }
.cn-cita-foto { position: absolute; top: 0; bottom: 0; right: 0; width: 50%; z-index: -2; background-size: cover; background-position: 50% 0; transform-origin: 50% 100%; will-change: scale; }
.cn-cita::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0A0A0A 48%, rgba(10,10,10,.2) 62%, rgba(10,10,10,0) 80%); }
.cn-cita blockquote { margin: 0; max-width: min(760px, 52%); }
.cn-cita p { margin: 0 0 26px; font: italic 700 clamp(30px, 3.8vw, 58px)/1.18 'Playfair Display', serif; color: #F4EFE3; }
.cn-cita cite { font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: #C9A84C; }
.cn-cita cite::before { content: ""; display: inline-block; width: 46px; height: 2px; margin-right: 14px; vertical-align: middle; background: #C9A84C; }

@media (max-width: 980px) {
  .cn-hero, .cn-historia, .cn-tres { grid-template-columns: minmax(0, 1fr); }
  .cn-hero { padding-top: 120px; }
  .cn-foto { width: min(80%, 360px); margin-top: 20px; }
  .cn-foto figcaption { left: -10px; bottom: 24px; font-size: 12px; }
  .cn-hist-foto { max-width: 420px; }
  .cn-cita-foto { width: 100%; opacity: .35; }
  .cn-cita blockquote { max-width: none; }
  .cn-cita::before { background: linear-gradient(180deg, rgba(10,10,10,.4), #0A0A0A 85%); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
  .cn-foto img { animation: none; clip-path: none; } .cn-marco { animation: none; opacity: 1; } .cn-linea::after { transform: none; }
}
