/*
Theme Name: SCHPV Lámina
Theme URI: https://schpv.cl
Author: Sociedad Chilena de Patología Veterinaria
Description: Tema de bloques para la Sociedad Chilena de Patología Veterinaria. Paleta inspirada en el tricrómico de Masson; portada con la imagen histológica presentada como portaobjetos rotulado. Tipografías Spectral y Libre Franklin alojadas en el tema.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: schpv-lamina
*/
/* ===== Componentes SCHPV · Lámina ===== */
.schpv-hero .schpv-titular{font-family:Spectral,Georgia,serif;font-weight:500;font-size:clamp(2.4rem,5.6vw,4.25rem);line-height:1.04;letter-spacing:-0.015em;margin:0;max-width:16ch}
.schpv-hero .schpv-bajada{font-size:1.0625rem;line-height:1.65;max-width:42ch;margin:0 0 1.5rem}

/* La lámina: portaobjetos con etiqueta esmerilada */
.schpv-lamina{gap:0!important;padding:12px;border:1px solid #d5dedc;border-radius:6px;background:linear-gradient(135deg,#f7fafa 0%,#eef3f2 55%,#f7fafa 100%);box-shadow:0 1px 0 #fff inset,0 18px 40px -24px rgba(10,43,44,.45)}
.schpv-etiqueta{flex:0 0 clamp(190px,26%,290px);gap:.15rem!important;padding:1.1rem 1.2rem;margin-right:12px;border-radius:3px;background:#e4ebea;background-image:radial-gradient(rgba(15,61,62,.06) 1px,transparent 1px);background-size:4px 4px;color:#0f3d3e;font-size:.875rem;line-height:1.4}
.schpv-etiqueta p{margin:0}
.schpv-etiqueta .schpv-etiqueta-sigla{font-family:Spectral,Georgia,serif;font-weight:600;font-size:1.375rem;letter-spacing:.06em;margin-bottom:.5rem}
.schpv-lamina-img{flex:1 1 auto;margin:0!important;min-width:0}
.schpv-lamina-img img{width:100%;height:100%;border-radius:2px;display:block}

/* Caso al azar dentro de la lámina */
.schpv-lamina-caso .wp-block-post-template{list-style:none;margin:0;padding:0}
.schpv-lamina-caso .wp-block-post-template>li{margin:0}
.schpv-etiqueta-cab{gap:.2rem!important}
.schpv-etiqueta-cab>*{margin:0}
.schpv-etiqueta .schpv-etiqueta-tipo{font-size:.8125rem;color:#5b6667}
.schpv-etiqueta .schpv-etiqueta-titulo{font-family:Spectral,Georgia,serif;font-weight:500;font-size:clamp(1.125rem,1.7vw,1.4rem);line-height:1.25;margin:.35rem 0 0;color:#0f3d3e}
.schpv-etiqueta .schpv-etiqueta-titulo a{color:inherit;text-decoration:none}
.schpv-etiqueta .schpv-etiqueta-ir{display:inline-block;margin-top:1.25rem;font-weight:600;font-size:.9375rem;color:#2d6fa3;text-decoration:underline;text-underline-offset:.2em}
.schpv-etiqueta .schpv-etiqueta-ir:hover{color:#0f3d3e}
.schpv-lamina-img a{display:block;height:100%}
.schpv-lamina-img img{object-fit:cover}
.schpv-lamina-img a:hover img{filter:saturate(1.08) brightness(1.03)}

/* Próxima reunión */
.schpv-antetitulo{font-weight:600;font-size:.9375rem;margin-bottom:.25rem}
.schpv-lugar{font-family:Spectral,Georgia,serif;font-size:1.3rem;line-height:1.45}
.schpv-cronograma{gap:0!important;border-left:1px solid rgba(255,255,255,.3)}
.schpv-hito{gap:1.25rem!important;padding:.6rem 0 .6rem 1.25rem;position:relative}
.schpv-hito:before{content:"";position:absolute;left:-5px;top:1.05rem;width:9px;height:9px;border-radius:50%;background:#0f3d3e;border:1px solid #fff}
.schpv-hito p{margin:0}
.schpv-hito .schpv-hito-fecha{flex:0 0 6.5rem;font-family:Spectral,Georgia,serif;font-size:1.2rem;font-weight:500;color:#fff}
.schpv-hito .schpv-hito-texto{color:#c8d8d6;font-size:.9375rem;line-height:1.5;padding-top:.15rem}
.schpv-reunion .wp-block-button.is-style-outline>.wp-block-button__link{border:1px solid rgba(255,255,255,.55);background:transparent}
.schpv-afiche img{width:100%;height:auto;border-radius:2px;box-shadow:0 20px 40px -20px rgba(0,0,0,.5)}

/* Registro de casos */
.schpv-ver-todos{margin:0;font-weight:500}
.schpv-registro{border-top:1px solid #0f3d3e}
.schpv-registro>li{border-bottom:1px solid #d5dedc;padding:1.5rem 0;margin:0}
.schpv-fila{margin:0!important;align-items:flex-start}
.schpv-fila-fecha{padding-top:.3rem}
.schpv-fila-titulo{margin:0 0 .4rem!important;font-size:1.3rem!important}
.schpv-fila-titulo a{text-decoration:none}
.schpv-fila-titulo a:hover{text-decoration:underline;text-decoration-color:#2d6fa3;text-underline-offset:.2em}
.schpv-fila .wp-block-post-excerpt{margin:0;color:#5b6667}
.schpv-fila .wp-block-post-excerpt p{margin:0}
.schpv-fila-img img{border-radius:2px}

/* Ficha de reuniones */
.schpv-ficha{gap:0!important;border-top:1px solid #d5dedc}
.schpv-dato{gap:1.5rem!important;padding:.75rem 0;border-bottom:1px solid #d5dedc}
.schpv-dato p{margin:0}
.schpv-dato .schpv-dato-k{flex:0 0 8.5rem;font-weight:600;color:#0f3d3e;font-size:.9375rem}

/* Contacto */
.schpv-contacto{border-top:2px solid #2d6fa3;padding-top:1rem}
.schpv-contacto p{margin:0}
.schpv-mail{font-weight:500;overflow-wrap:anywhere;margin-top:.35rem!important}

/* Cabecera */
.schpv-cabecera .wp-block-navigation a:hover{text-decoration:underline;text-underline-offset:.3em}
.schpv-cabecera .wp-block-navigation__responsive-container.is-menu-open{background:#0a2b2c!important;color:#fff!important}

/* Accesibilidad */
:where(a,button,.wp-block-button__link):focus-visible{outline:2px solid #2d6fa3;outline-offset:3px}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
[id]{scroll-margin-top:1.5rem}

@media (max-width:781px){
  .schpv-lamina{flex-direction:column}
  .schpv-etiqueta{flex-basis:auto;margin:0 0 10px}
  .schpv-etiqueta .schpv-etiqueta-ir{margin-top:.75rem}
  .schpv-lamina-img img{aspect-ratio:4/3!important}
  .schpv-fila-img{display:none}
  .schpv-fila>.wp-block-column:first-child{flex-basis:auto!important;flex-grow:0!important}
  .schpv-fila{flex-direction:column!important;gap:.25rem!important}
  .schpv-dato{flex-direction:column;gap:.15rem!important}
  .schpv-dato .schpv-dato-k{flex-basis:auto}
  .schpv-afiche{max-width:340px}
}
