/* ==========================================================================
   NUESTROS PROYECTOS — carrusel de publicidad cruzada            4/11/2026
   --------------------------------------------------------------------------
   Pedido de Ale (4/11/2026). Mismo archivo en la landing de Fisiokine Vet,
   Huellas y Tinder Pupis; Felita Vet usa las mismas clases (np-*).
   Lo arma proyectos.js. Dos tamaños: .np--grande (bloque propio) y
   .np--compacto (una franja, en páginas de trabajo).
   Cada diapositiva tiene su color: Felita Vet (magenta), profesionales
   (verde agua de Fisiokine), Huellas (tierra), Tinder Pupis (naranja).
   Todos los botones con texto blanco pasan AA (≥ 4.5:1).
   ========================================================================== */

.np {
  --np-tinta: #23262b;
  --np-suave: #555b63;
  --np-tarjeta: #ffffff;
  --np-borde: #e3e6ea;
  --np-acento: #a3154d;
  --np-fondo: linear-gradient(135deg, #e9f6fb, #fbe9f1);
  color-scheme: light;
  container-type: inline-size; /* el carrusel se acomoda a SU ancho, no al de la pantalla */
  box-sizing: border-box;
  width: 100%;
  max-width: 60rem;
  margin: 0 auto;
  padding: 1.5rem 1rem;
  font-family: inherit;
  color: var(--np-tinta);
  text-align: left;
}
.np *, .np *::before, .np *::after { box-sizing: border-box; }

.np-cabeza { text-align: center; margin-bottom: 1rem; }
.np-titulo { margin: 0 0 .25rem; font-size: clamp(1.25rem, 3.5vw, 1.6rem); line-height: 1.2; color: inherit; }
.np-bajada { margin: 0; font-size: .95rem; color: var(--np-suave); }

/* Las diapositivas se apilan en la MISMA celda: el alto es el de la más alta
   (no salta) y nada se corre de costado (sin scroll horizontal). */
.np-pista { display: grid; }
.np-slide {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: center;
  min-width: 0;
  padding: 1.25rem 1.4rem;
  border-radius: 20px;
  background: var(--np-fondo);
  border: 1px solid var(--np-borde);
  box-shadow: 0 8px 26px rgba(30, 30, 50, .08);
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility 0s linear .45s;
}
.np-slide.np-activo { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }

.np-slide--felita       { --np-acento: #a3154d; --np-fondo: linear-gradient(135deg, #e9f6fb, #fbe9f1); --np-borde: #d6e9f0; }
.np-slide--profesionales{ --np-acento: #24705f; --np-fondo: linear-gradient(135deg, #e6f6f1, #fbecef); --np-borde: #cfe9e1; }
.np-slide--huellas      { --np-acento: #8a4b25; --np-fondo: linear-gradient(135deg, #faf6ef, #fbeee2); --np-borde: #ecdfd0; }
.np-slide--tinderpupis  { --np-acento: #a84a06; --np-fondo: linear-gradient(135deg, #fff4ea, #ffe9dc); --np-borde: #f6dcc8; }

.np-media { position: relative; display: grid; place-items: center; gap: .5rem; min-width: 0; }
.np-logo {
  display: block; width: 100%; max-width: 10rem; height: auto; max-height: 7rem; object-fit: contain;
  background: #fff; border-radius: 16px; padding: .5rem; box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
}
.np-foto {
  display: block; width: 8.5rem; height: 8.5rem; object-fit: cover; border-radius: 50%;
  border: 4px solid #fff; box-shadow: 0 4px 16px rgba(163, 21, 77, .18);
}
/* Felita Vet: Feli grande y el logo como sello abajo */
.np-slide--felita .np-logo { max-width: 9rem; max-height: 3.4rem; margin-top: -1.4rem; position: relative; }

.np-texto { min-width: 0; }
.np-ante { margin: 0 0 .2rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--np-acento); }
.np-h { margin: 0 0 .35rem; font-size: clamp(1.1rem, 3vw, 1.35rem); line-height: 1.25; color: var(--np-tinta); overflow-wrap: anywhere; }
.np-p { margin: 0 0 .75rem; font-size: .95rem; line-height: 1.5; color: var(--np-tinta); }
.np-nota { margin: -.4rem 0 .7rem; font-size: .875rem; color: var(--np-suave); }
.np-botones { display: flex; flex-wrap: wrap; gap: .5rem; }
.np-boton {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: .55rem 1.1rem; border-radius: 999px;
  background: var(--np-acento); color: #fff !important; border: 2px solid var(--np-acento);
  font-weight: 700; font-size: .95rem; text-decoration: none !important; line-height: 1.2; text-align: center;
  transition: transform .15s ease, filter .15s ease;
}
.np-boton:hover { filter: brightness(1.1); transform: translateY(-1px); }
.np-boton--sec { background: #fff; color: var(--np-acento) !important; }
.np-boton:focus-visible, .np-btn:focus-visible, .np-punto:focus-visible, .np-gondra a:focus-visible, .np-gondra-mini a:focus-visible {
  outline: 3px solid #1f6feb; outline-offset: 2px;
}

.np-controles { display: flex; align-items: center; justify-content: center; gap: .25rem; margin-top: .6rem; }
.np-btn, .np-punto {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; margin: 0;
  border: 0; border-radius: 50%; background: transparent; color: var(--np-tinta); cursor: pointer;
}
.np-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.np-pausa svg path[d^="M8 5"] { fill: currentColor; }
.np-btn:hover { background: rgba(0, 0, 0, .06); }
.np-puntos { display: flex; }
.np-punto span { display: block; width: 10px; height: 10px; border-radius: 50%; background: #b9bec6; transition: width .2s ease, background .2s ease; }
.np-punto[aria-current="true"] span { width: 26px; border-radius: 6px; background: #a3154d; }

.np-oculto { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- Compacto: una franja ------------------------------------------------- */
.np--compacto { padding: .75rem 1rem; max-width: 46rem; }
.np--compacto .np-slide { grid-template-columns: 4.5rem minmax(0, 1fr); gap: .8rem; padding: .7rem .9rem; border-radius: 14px; box-shadow: none; }
.np--compacto .np-logo { max-height: 3.2rem; max-width: 4.5rem; padding: .25rem; border-radius: 10px; }
.np--compacto .np-texto { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: .8rem; }
.np--compacto .np-h { font-size: 1rem; margin: 0; }
.np--compacto .np-p { font-size: .875rem; margin: 0; grid-column: 1; }
.np--compacto .np-botones { grid-column: 2; grid-row: 1 / span 2; }
.np--compacto .np-boton { font-size: .875rem; padding: .45rem .9rem; }
.np--compacto .np-controles { margin-top: .2rem; }
.np-gondra-mini { margin: .1rem 0 0; text-align: center; font-size: .875rem; color: var(--np-suave); }
.np-gondra-mini a, .np-gondra a { color: inherit; font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }

/* ---- Crédito del pie ----------------------------------------------------- */
.np-gondra { font-size: .875rem; }

/* ---- Celular (o un lugar angosto: login, pie) ------------------------------ */
@media (max-width: 600px) {
  .np { padding: 1.25rem 16px; }
}
@container (max-width: 560px) {
  .np--grande .np-slide { grid-template-columns: minmax(0, 1fr); text-align: center; gap: .75rem; padding: 1.1rem 1rem; }
  .np--grande .np-media { grid-auto-flow: column; justify-content: center; align-items: center; }
  .np--grande .np-logo { max-width: 7rem; max-height: 3.6rem; }
  .np--grande .np-foto { width: 5rem; height: 5rem; border-width: 3px; }
  .np--grande .np-slide--felita .np-logo { margin-top: 0; max-width: 8rem; }
  .np--grande .np-ante { font-size: .75rem; }
  .np--grande .np-p { margin-bottom: .6rem; }
  .np--grande .np-botones { justify-content: center; }
  .np--compacto .np-slide { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .np--compacto .np-logo { max-width: 3.5rem; }
  .np--compacto .np-texto { grid-template-columns: minmax(0, 1fr); }
  .np--compacto .np-botones { grid-column: 1; grid-row: auto; margin-top: .4rem; }
}

/* ---- Modo oscuro (Fisiokine Vet: data-theme; Felita Vet: .np-oscuro) ------ */
[data-theme="dark"] .np, .np.np-oscuro { --np-tinta: #f1f3f4; --np-suave: #c3c8d0; color-scheme: dark; }
[data-theme="dark"] .np-slide, .np-oscuro .np-slide { --np-borde: #34404a; }
[data-theme="dark"] .np-slide--felita, .np-oscuro .np-slide--felita { --np-acento: #c2185b; --np-fondo: linear-gradient(135deg, #16303a, #3a1628); }
[data-theme="dark"] .np-slide--profesionales, .np-oscuro .np-slide--profesionales { --np-acento: #1d6a59; --np-fondo: linear-gradient(135deg, #12302a, #3a1d24); }
[data-theme="dark"] .np-slide--huellas, .np-oscuro .np-slide--huellas { --np-acento: #8a4b25; --np-fondo: linear-gradient(135deg, #2e241c, #3a2a20); }
[data-theme="dark"] .np-slide--tinderpupis, .np-oscuro .np-slide--tinderpupis { --np-acento: #a84a06; --np-fondo: linear-gradient(135deg, #33231a, #3b2414); }
[data-theme="dark"] .np-ante, .np-oscuro .np-ante { color: #ffb3cf; }
[data-theme="dark"] .np-boton--sec, .np-oscuro .np-boton--sec { background: transparent; color: #fff !important; border-color: #fff; }
[data-theme="dark"] .np-btn:hover, .np-oscuro .np-btn:hover { background: rgba(255, 255, 255, .1); }

@media (prefers-reduced-motion: reduce) {
  .np-slide, .np-slide.np-activo, .np-punto span, .np-boton { transition: none; }
  .np-boton:hover { transform: none; }
}
@media print { .np { display: none !important; } }
