/* ==========================================================================
   NOPERTI — Sistema de diseño corporativo premium
   Capa de mejora visual. No modifica estructura funcional ni backend.
   Cargar DESPUÉS de core.min.css, vendor_bundle.min.css y noperti-responsive.css
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;1,9..144,500&display=swap');

:root {
  --np-red: #d71920;
  --np-red-deep: #a8121a;
  --np-red-soft: #fbe9ea;
  --np-ink: #211d1c;
  --np-charcoal: #211c1a;
  --np-charcoal-2: #322a26;
  --np-cream: #faf7f3;
  --np-sand: #ece4da;
  --np-gray-700: #55504c;
  --np-gray-500: #857e78;
  --np-display-font: "Fraunces", Georgia, "Times New Roman", serif;

  --bs-primary: var(--np-red);
  --bs-primary-rgb: 215, 25, 32;
  --bs-link-color: var(--np-red);
  --bs-link-color-rgb: 215, 25, 32;
  --bs-link-hover-color: var(--np-red-deep);
  --bs-link-hover-color-rgb: 168, 18, 26;
  --bs-secondary: var(--np-gray-700);
  --bs-body-color: var(--np-ink);
  --bs-heading-color: var(--np-ink);
}

h1, h2, h3, .h1, .h2, .h3 {
  font-family: var(--np-display-font);
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4, h5, h6, .h4, .h5, .h6 {
  font-weight: 700;
  letter-spacing: 0.01em;
}

h4[style*="color:red"],
h5[style*="color:red"],
h6[style*="color:red"] {
  color: var(--np-red) !important;
  font-family: Inter, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 0.9rem;
  margin-bottom: 2rem !important;
}

h4[style*="color:red"]::after,
h5[style*="color:red"]::after,
h6[style*="color:red"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 46px;
  height: 3px;
  background: var(--np-red);
  border-radius: 2px;
}

h6[style*="color:red"][align="center"]::after { left: 0; transform: none; }

.lead.text-muted {
  color: var(--np-gray-700) !important;
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 62ch;
  margin-left: auto;
  margin-right: auto;
}

#header {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 1px 0 rgba(33, 29, 28, 0.08);
}

#header .navbar-nav .nav-link {
  position: relative;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding-bottom: 4px;
}

#header .navbar-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--np-red);
  transition: width 0.25s ease;
}

#header .navbar-nav .nav-link:hover::after {
  width: 100%;
}

#top_bar {
  background: var(--np-charcoal) !important;
}

.corp-hero {
  position: relative;
}

.corp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(20, 17, 16, 0.05) 0%,
    rgba(20, 17, 16, 0.15) 35%,
    rgba(20, 17, 16, 0.92) 100%
  );
  pointer-events: none;
}

.corp-hero .banner-texto {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 8%;
  max-width: 640px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  animation: fadeTexto 1.1s ease forwards;
  z-index: 2;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-eyebrow::before {
  content: "";
  width: 30px;
  height: 2px;
  background: var(--np-red);
  display: inline-block;
}

.corp-hero .banner-texto h2 {
  font-family: var(--np-display-font);
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  color: #fff !important;
  margin: 0 0 0.5rem;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.corp-hero .banner-texto h3 {
  font-family: Inter, sans-serif;
  font-size: 1.05rem !important;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82) !important;
  margin-bottom: 1.75rem;
}

.corp-hero .banner-texto h3 strong {
  color: #fff !important;
  font-weight: 700;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero-cta::after {
  content: "→";
  transition: transform 0.25s ease;
}

.hero-cta:hover {
  background: var(--np-red);
  border-color: var(--np-red);
  color: #fff;
  text-decoration: none;
}

.hero-cta:hover::after {
  transform: translateX(4px);
}

.corp-intro {
  background: var(--np-cream) !important;
  padding-top: 4.5rem !important;
  padding-bottom: 4rem !important;
}

.materiales .tooltip-material {
  border-radius: 10px;
  box-shadow: 0 18px 40px -12px rgba(33, 29, 28, 0.35);
}

.materiales .tooltip-material h5 {
  color: var(--np-ink);
  font-size: 1rem;
  margin-bottom: 0.35rem;
}

.materiales .tooltip-material p {
  color: var(--np-gray-700);
  font-size: 0.86rem;
  line-height: 1.5;
  margin: 0;
}

.corp-statement {
  background: var(--np-charcoal);
  background: radial-gradient(120% 180% at 15% 20%, var(--np-charcoal-2) 0%, var(--np-charcoal) 60%);
  padding: 5rem 1.5rem;
  text-align: center;
}

.corp-statement p {
  max-width: 46ch;
  margin: 0 auto;
  color: #fff;
  font-family: var(--np-display-font);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  line-height: 1.45;
  position: relative;
}

.corp-statement p::before {
  content: "";
  display: block;
  width: 46px;
  height: 3px;
  background: var(--np-red);
  margin: 0 auto 1.75rem;
}

.corp-products {
  background: #fff;
  padding-top: 5.5rem !important;
  padding-bottom: 5.5rem !important;
  counter-reset: np-product;
}

.corp-products > h4 {
  margin-bottom: 3.5rem !important;
}

.product-card {
  background: #fff;
  border: none;
  border-radius: 2px;
  padding: 0 0 0.5rem;
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
}

.product-card__media {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  counter-increment: np-product;
  background: var(--np-sand);
}

.product-card__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(.2,.8,.2,1);
}

.product-card:hover .product-card__media img {
  transform: scale(1.06);
}

.product-card__media::before {
  content: counter(np-product, decimal-leading-zero);
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 2;
  background: rgba(33, 29, 28, 0.85);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border-radius: 2px;
}

.product-card__media::after {
  content: "Ver colección";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(20,17,16,0) 40%, rgba(20,17,16,0.75) 100%);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.product-card:hover .product-card__media::after {
  opacity: 1;
}

.product-card h5 {
  margin: 1.15rem 0 0 !important;
  font-size: 0.82rem !important;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--np-ink) !important;
  text-align: center;
}

.corp-contact {
  background: var(--np-cream) !important;
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

.contact-card {
  background: #fff;
  border-radius: 4px;
  padding: 2.5rem 2.25rem;
  box-shadow: 0 24px 55px -24px rgba(33, 29, 28, 0.35);
}

.contact-card label {
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--np-gray-700);
  margin-bottom: 0.35rem;
  display: inline-block;
}

.contact-card .form-control {
  border: 1px solid var(--np-sand);
  border-radius: 2px;
  padding: 0.7rem 0.9rem;
}

.contact-card .form-control:focus {
  border-color: var(--np-red);
  box-shadow: 0 0 0 0.2rem var(--np-red-soft);
}

.contact-card .btn-primary {
  background: var(--np-red);
  border-color: var(--np-red);
  border-radius: 2px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-card .btn-primary:hover {
  background: var(--np-red-deep);
  border-color: var(--np-red-deep);
  transform: translateY(-2px);
}

.contact-info {
  background: var(--np-charcoal);
  border-radius: 4px;
  padding: 2.5rem 2.25rem;
  height: 100%;
  color: rgba(255, 255, 255, 0.88);
}

.contact-info h6[style*="color:red"] {
  color: #fff !important;
  text-align: left !important;
  padding-bottom: 0;
  margin-bottom: 1rem !important;
  font-family: var(--np-display-font);
  font-size: 1.4rem !important;
  font-weight: 600;
  font-style: italic;
  letter-spacing: normal;
  text-transform: none;
}

.contact-info h6[style*="color:red"]::after { display: none; }

.contact-info p.lead {
  color: rgba(255, 255, 255, 0.68) !important;
  text-align: left !important;
  font-size: 0.95rem;
  margin-left: 0;
  margin-right: 0;
}

.contact-info__list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.5rem;
}

.contact-info__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.9);
}

.contact-info__list li:last-child { margin-bottom: 0; }

.contact-info__list i {
  color: var(--np-red);
  font-size: 1rem;
  margin-top: 0.15rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--np-red);
  border-color: var(--np-red);
  border-radius: 2px;
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--np-red-deep);
  border-color: var(--np-red-deep);
}

footer a:hover {
  color: var(--np-red) !important;
}

@media (max-width: 767.98px) {
  .corp-hero .banner-texto {
    left: 5%;
    right: 5%;
    bottom: 6%;
  }
  .corp-hero::after {
    background: linear-gradient(
      180deg,
      rgba(20, 17, 16, 0.25) 0%,
      rgba(20, 17, 16, 0.35) 30%,
      rgba(20, 17, 16, 0.95) 100%
    );
  }
  .contact-info { margin-top: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-card__media img,
  .hero-cta,
  .hero-cta::after,
  #header .navbar-nav .nav-link::after {
    transition: none !important;
    animation: none !important;
  }
}
