/* ============================================================
   PINTENEWS — Estilos personalizados (complemento a Tailwind)
   Versión: 2026-06-02
   ============================================================ */

/* ── Variables corporativas ─────────────────────────────── */
:root {
  --brand:        #C8281C;
  --brand-dark:   #A31E14;
  --brand-light:  #E8392B;
  --charcoal:     #1E293B;
  --charcoal-soft:#334155;
  --charcoal-muted:#64748B;
  --cream:        #FFF7F5;
  --radius-card:  1rem;
  --shadow-card:  0 4px 24px rgba(0,0,0,0.07);
  --shadow-hero:  0 8px 48px rgba(0,0,0,0.22);
}

/* ── Reset base ──────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* Tailwind usa clases pero respetamos el color charcoal */
.text-charcoal       { color: var(--charcoal);       }
.text-charcoal-soft  { color: var(--charcoal-soft);  }
.text-charcoal-muted { color: var(--charcoal-muted); }


/* ══════════════════════════════════════════════════════════
   HEADER
   ══════════════════════════════════════════════════════════ */
.pn-header {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
}

/* Imagen de fondo corporativa */
.pn-header__bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/img/fondo-pintecord.png');
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  z-index: 0;
}

/* Separador inferior con acento rojo */
.pn-header::after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-dark), var(--brand), var(--brand-light), var(--brand-dark));
  background-size: 200% 100%;
  animation: headerStripe 6s linear infinite;
}

@keyframes headerStripe {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* Logo container */
.pn-logo-wrap {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 0.75rem;
  padding: 0.5rem 1rem;
  display: inline-flex;
  align-items: center;
}


/* ══════════════════════════════════════════════════════════
   HERO — #PINTEXPERIENCIA
   ══════════════════════════════════════════════════════════ */
.pn-hero__card {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-hero);
  background: var(--charcoal);
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .pn-hero__card {
    flex-direction: row;
    min-height: 380px;
  }
}

/* Imagen del hero */
.pn-hero__img-wrap {
  position: relative;
  flex-shrink: 0;
  width: 100%;
  height: 220px;
}

@media (min-width: 640px) {
  .pn-hero__img-wrap {
    width: 50%;
    height: auto;
  }
}

.pn-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradiente sobre la imagen */
.pn-hero__img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 20%,
    rgba(30,41,59,0.6) 100%
  );
}

@media (min-width: 640px) {
  .pn-hero__img-overlay {
    background: linear-gradient(
      to right,
      transparent 60%,
      rgba(30,41,59,0.85) 100%
    );
  }
}

/* Contenido del hero */
.pn-hero__content {
  position: relative;
  z-index: 2;
  padding: 1.75rem 1.75rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(135deg, var(--charcoal) 0%, #2d3748 100%);
  flex: 1;
}

/* Tags del hero */
.pn-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 99px;
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
}

.pn-hero-desc {
  font-size: 1rem;
  line-height: 1.65;
}


/* ══════════════════════════════════════════════════════════
   TARJETAS DE CONTENIDO
   ══════════════════════════════════════════════════════════ */
.pn-card {
  background: #ffffff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
}

.pn-card__header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

/* Variantes de color del header */
.pn-card__header--blue   { background: #EFF6FF; }
.pn-card__header--orange { background: #FFF7ED; }
.pn-card__header--red    { background: #FFF5F5; }
.pn-card__header--purple { background: #FAF5FF; }

.pn-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--charcoal);
}

.pn-card__body {
  padding: 1.25rem;
  flex: 1;
}


/* ══════════════════════════════════════════════════════════
   RRHH — Sub-tarjetas de Alta y Baja
   ══════════════════════════════════════════════════════════ */
.pn-rrhh-card {
  border-radius: 0.75rem;
  padding: 1rem;
}

.pn-rrhh-card--baja {
  background: #FFF5F5;
  border: 1px solid #FED7D7;
}

.pn-rrhh-card--alta {
  background: #F0FFF4;
  border: 1px solid #C6F6D5;
}

/* Avatar circular */
.pn-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  flex-shrink: 0;
}


/* ══════════════════════════════════════════════════════════
   PROCESOS & LOGÍSTICA
   ══════════════════════════════════════════════════════════ */
.pn-proceso-item {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
}

.pn-proceso-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.125rem;
}

.pn-proceso-icon--blue  { background: #DBEAFE; color: #1D4ED8; }
.pn-proceso-icon--amber { background: #FEF3C7; color: #B45309; }


/* ══════════════════════════════════════════════════════════
   COMERCIAL & EVENTOS
   ══════════════════════════════════════════════════════════ */
.pn-comercial-item {
  padding-bottom: 0.75rem;
}

.pn-comercial-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.pn-comercial-dot--red { background: var(--brand); }

/* Tarjeta de evento destacado */
.pn-evento-card {
  background: linear-gradient(135deg, var(--cream) 0%, #FFE4E1 100%);
  border: 1px solid #FECACA;
  border-radius: 0.875rem;
  padding: 1rem 1.125rem;
}

.pn-evento-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255,255,255,0.8);
  border: 1px solid rgba(200,40,28,0.2);
  border-radius: 99px;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--charcoal);
}


/* ══════════════════════════════════════════════════════════
   NUEVOS PRODUCTOS
   ══════════════════════════════════════════════════════════ */
.pn-producto-launch {
  padding-bottom: 1rem;
  border-bottom: 1px solid #F3F4F6;
}

.pn-producto-item {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 0.75rem;
  padding: 0.875rem 0.625rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .pn-producto-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  }
}

.pn-producto-item__img-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 0.5rem;
  border: 1px solid #E2E8F0;
}

/* REEMPLAZAR: cuando tengas logos reales, usa <img> dentro de .pn-producto-item__img-wrap */


/* ══════════════════════════════════════════════════════════
   BADGES genéricos
   ══════════════════════════════════════════════════════════ */
.pn-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 99px;
}

.pn-badge--gold {
  background: rgba(212,175,55,0.18);
  color: #D4AF37;
  border: 1px solid rgba(212,175,55,0.4);
}

.pn-badge--purple {
  background: #F3E8FF;
  color: #7C3AED;
  border: 1px solid #DDD6FE;
}


/* ══════════════════════════════════════════════════════════
   BANNER FERIADOS
   ══════════════════════════════════════════════════════════ */
.pn-feriados__card {
  background: linear-gradient(135deg, var(--charcoal) 0%, #2d3748 100%);
  border-radius: var(--radius-card);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
}

/* Acento decorativo */
.pn-feriados__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--brand-light), var(--brand-dark));
  border-radius: 4px 0 0 4px;
}

.pn-feriados__icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

/* Ítem individual de feriado */
.pn-feriado-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  min-width: 160px;
}

.pn-feriado-fecha {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-light);
}

.pn-feriado-nombre {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  line-height: 1.3;
}

.pn-feriado-tipo {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 99px;
  margin-top: 0.25rem;
  width: fit-content;
}

.pn-feriado-tipo--nacional {
  background: rgba(200,40,28,0.25);
  color: #FCA5A5;
  border: 1px solid rgba(200,40,28,0.4);
}

.pn-feriado-tipo--provincial {
  background: rgba(59,130,246,0.2);
  color: #93C5FD;
  border: 1px solid rgba(59,130,246,0.35);
}


/* ══════════════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════════════ */
.pn-footer {
  background: #F1F5F9;
  border-top: 1px solid #E2E8F0;
}


/* ══════════════════════════════════════════════════════════
   ANIMACIONES DE ENTRADA (scroll reveal)
   Se activan via JS — seguras si JS falla (content visible por defecto)
   ══════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Defensa: si JS falla, contenido visible a los 3s */
[data-reveal] {
  animation: revealFallback 0.01s 3s forwards;
}

@keyframes revealFallback {
  to { opacity: 1; transform: none; }
}

/* Delays escalonados para el grid */
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }


/* ══════════════════════════════════════════════════════════
   RESPONSIVE UTILITIES
   ══════════════════════════════════════════════════════════ */
@media (max-width: 639px) {
  .pn-hero__content {
    padding: 1.25rem;
  }

  .pn-feriado-item {
    min-width: 140px;
  }
}

/* Impresión — útil si alguien quiere imprimir/guardar como PDF */
@media print {
  .pn-header::after { display: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  body { background: white; }
  .pn-hero__card { box-shadow: none; border: 1px solid #eee; }
  .pn-card { box-shadow: none; border: 1px solid #eee; break-inside: avoid; }
}
