/* EFECTOS (03/11, aprobados por Juan) · js/efectos.js pone la clase html.efectos en todas las páginas.
   Ideas de la skill de webs premium: barra de avance, cursor de dos círculos, botones magnéticos,
   fotos que se destapan y títulos que suben palabra por palabra. */
.efectos-avance{position:fixed;z-index:9001;top:0;left:0;width:100%;height:2px;background:#fff;mix-blend-mode:difference;transform-origin:left;transform:scaleX(0);pointer-events:none}
/* Fotos que se destapan */
html.efectos .destapa{clip-path:inset(100% 0 0 0);transition:clip-path 1.3s cubic-bezier(.2,.7,.2,1)}
html.efectos .destapa.visto{clip-path:inset(0 0 0 0)}
/* Títulos */
html.efectos .sube .p{display:inline-block;overflow:hidden;vertical-align:top;padding-bottom:.1em;margin-bottom:-.1em}
html.efectos .sube .p>span{display:inline-block;transform:translateY(110%);transition:transform 1s cubic-bezier(.2,.7,.2,1)}
html.efectos .sube.visto .p>span{transform:none}
html.efectos .aparece-suave{opacity:0;transform:translateY(28px);transition:opacity 1s ease,transform 1s cubic-bezier(.2,.7,.2,1)}
html.efectos .aparece-suave.visto{opacity:1;transform:none}
/* Cursor */
.efectos-cursor{position:fixed;inset:0 auto auto 0;z-index:9002;pointer-events:none;mix-blend-mode:difference;opacity:0;transition:opacity .25s}
.efectos-cursor.listo{opacity:1}
.efectos-cursor i{position:fixed;top:0;left:0;border-radius:50%;will-change:transform}
.efectos-cursor .punto{width:6px;height:6px;margin:-3px;background:#fff}
.efectos-cursor .aro{width:34px;height:34px;margin:-17px;border:1px solid #fff;transition:width .35s,height .35s,margin .35s}
.efectos-cursor.sobre-link .aro{width:62px;height:62px;margin:-31px}
/* Solo el cursor nuevo: se esconde la flechita (menos al escribir en campos de texto) */
html.con-cursor, html.con-cursor * {cursor:none !important}
html.con-cursor input:not([type=button]):not([type=submit]):not([type=radio]):not([type=checkbox]), html.con-cursor textarea, html.con-cursor select {cursor:text !important}

/* Títulos "Mi obra" y "Mi trabajo": entran como un sello (pedido de Juan, 03/11) */
/* v379: versión más formal (el sello con rebote le quitaba seriedad): aparece enfocándose, con las letras que se juntan */
html.efectos .sello{animation:sello .6s cubic-bezier(.2,.7,.2,1) 0s both} /* v381: también rápido (Juan) */
@keyframes sello{0%{opacity:0;filter:blur(10px);letter-spacing:.12em}100%{opacity:1;filter:blur(0);letter-spacing:normal}}
html.efectos .panel h2.sello{animation-delay:.1s} /* v380: paneles más rápidos (Juan) */
html.efectos .panel:nth-child(2) h2.sello{animation-delay:.18s}
html.efectos .panel:nth-child(3) h2.sello{animation-delay:.26s}
html.efectos .panel:nth-child(4) h2.sello{animation-delay:.34s}

/* FICHA TÉCNICA CORTA + "Ver ficha completa" (15/11) */
.ficha:not(.abierta) > .mas { display: none; }
.ver-ficha { margin: 14px 0 0; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: var(--t-texto, 16px); color: var(--texto-suave, #6b6b6b); text-decoration: underline; text-underline-offset: 4px; }
.ver-ficha:hover { color: var(--texto, #111); }
.ver-ficha .b, .ficha.abierta + .ver-ficha .a { display: none; }
.ficha.abierta + .ver-ficha .b { display: inline; }
