:root {
  --azul-oscuro: #0f2a44;
  --gris-texto: #4a4a4a;
  --cromatografia: #0aa3a3;
  --purificacion: #6a3fa0;
  --reactivos: #c04aa1;
  --filtracion: #f04a4a;
  --vidrieria: #f39c34;
  --estandares: #f1c40f;
  --equipos: #7bbf3a;
  --microbiologia: #0B1085;
  --gradiente-acento: linear-gradient(90deg, #D68743, #DDBB23);

}

* {
  box-sizing: border-box;
}


body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: #ffffff;
  color: var(--gris-texto);
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
}

p,
li,
a {
  font-weight: 400;
}


/* HEADER */
header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
}

/* Por defecto (desktop): NO mostrar el logo del drawer */
.drawer-footer {
  display: none;
}


header h1 {
  font-size: 22px;
  margin: 0;
  color: var(--azul-oscuro);
  letter-spacing: 0.5px;
}

nav a {
  margin-left: 24px;
  text-decoration: none;
  color: var(--azul-oscuro);
  font-weight: 500;
  font-size: 14px;
}

/* DEGRADÉ DECORATIVO */
.gradient-bar {
  height: 10px;
  background: linear-gradient(90deg,
      #0aa3a3,
      #6a3fa0,
      #c04aa1,
      #f04a4a,
      #f39c34,
      #f1c40f,
      #7bbf3a);
}

/* HERO */
.hero {
  padding: 60px 40px 40px;
  max-width: 1200px;
  margin: auto;
}

.hero h2 {
  color: var(--azul-oscuro);
  font-size: 36px;
  margin-bottom: 16px;
}

.hero p {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.6;
}

/* PORTAFOLIO */
.portfolio {
  max-width: 1200px;
  margin: 60px auto;
  padding: 0 40px;
}

.portfolio h3 {
  font-size: 28px;
  color: var(--azul-oscuro);
  margin-bottom: 40px;
}

.service {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #eee;
}

.service:last-child {
  border-bottom: none;
}

.color-line {
  width: 6px;
}

.service h4 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--azul-oscuro);
}

.service ul {
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
  font-size: 14px;
}

/* FOOTER */
footer {
  margin-top: 80px;
  padding: 40px;
  background: #fafafa;
  border-top: 1px solid #eee;
  text-align: center;
  font-size: 13px;
  color: #777;
}

/* ===== HERO BANNER ===== */
.hero-banner {
  width: 100%;
  padding: 70px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}


.hero-content h2 {
  font-size: 48px;
  line-height: 1.15;
  color: var(--azul-oscuro);
  margin-bottom: 24px;
}


.hero-content p {
  font-size: 16px;
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions a {
  display: inline-block;
  padding: 14px 32px;
  background: var(--gradiente-acento);
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(214, 135, 67, 0.25);
}

.hero-actions a:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(214, 135, 67, 0.35);
}


/* ===== CAROUSEL ===== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
}


.hero-carousel img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: none;
}

.hero-carousel img.active {
  display: block;
}

/* LOGO HEADER */
.logo img {
  height: 64px;
  width: auto;
  display: block;
}

.hero-content {
  max-width: 600px;
  margin-left: calc((100vw - 1200px) / 2);
  padding-left: 40px;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--acento-naranja);
}

/* ====== BENEFITS STRIP ====== */
.benefits-strip {
  background-color: #f4f5f7;
  padding: 60px 0;
}

.benefits-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.benefit-item {
  text-align: center;
}

.benefit-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.benefit-item h4 {
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0d2b45;
  margin-bottom: 10px;
}

.benefit-item p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* Responsive */
@media (max-width: 900px) {
  .benefits-container {
    grid-template-columns: 1fr;
    padding: 0 40px;
  }
}

/* ===== PORTFOLIO TABS ===== */
.portfolio-tabs {
  padding: 90px 0;
  background: #ffffff;
}

.section-title {
  text-align: center;
  font-size: 36px;
  margin-bottom: 50px;
  color: var(--azul-oscuro);
}

.section-subtitle {
  text-align: center;
  max-width: 760px;
  margin: -28px auto 44px;
  color: #6b7280;
  line-height: 1.6;
  font-size: 15px;
}

/* Tabs header */
.tabs-header {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 0;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}


.tab-btn {
  padding: 12px 22px;
  border-radius: 12px 12px 0 0;
  border: none;
  background: #eee;
  font-weight: 600;
  cursor: pointer;
  color: #333;
}

.tab-btn.active {
  background: var(--tab-color);
  color: #fff;
}

/* Content */
.tabs-content {
  max-width: 1200px;
  margin: 0 auto;
}

.tab-panel {
  display: none;
  background: #f4f6f8;
  border-radius: 20px;
  padding: 48px;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr 1fr;
  margin-top: -12px;
}


.tab-panel.active {
  display: grid;
}

.tab-panel img {
  width: 100%;
  border-radius: 14px;
}

.tab-panel h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.tab-panel p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.tab-link {
  font-weight: 600;
  color: var(--azul-oscuro);
  text-decoration: underline;
}

.tab-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--btn-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s ease;
}

.tab-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* --- Botón Ver más (color dinámico por pestaña) --- */
.tab-panel {
  --btn-color: #0a7c86;
  /* color por defecto */
}

.tab-link {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 28px;
  border-radius: 999px;
  background: var(--btn-color);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.25s ease;
}

.tab-link:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* --- Fondo sección portafolio con imagen --- */
.portfolio-tabs {
  background-image: url('img/fondo_portafolio.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 30px 0;
  margin-bottom: 40px;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float img {
  width: 28px;
  height: 28px;
}

.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #272A55;
  color: #ffffff;
  /* texto base blanco */
  padding: 70px 80px 30px;
  font-size: 14px;
}


.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: 60px;
}

.footer-brand p {
  max-width: 420px;
  line-height: 1.6;
  margin-top: 18px;
  color: #bfc5dd;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-logo img {
  width: 40px;
  height: auto;
}

.footer-logo span {
  font-size: 15px;
  letter-spacing: 1px;
  color: #ffffff;
}

.footer-links h4 {
  font-size: 13px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
  color: #ffffff;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  color: #bfc5dd;
}

.footer-links a {
  text-decoration: none;
  color: #bfc5dd;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-links .two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 20px;
}

.footer-address {
  text-align: center;
  margin-top: 50px;
  font-size: 13px;
  color: #bfc5dd;
}

.footer-signature {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: #9fa6c7;
}

/* Responsive */
@media (max-width: 900px) {
  .site-footer {
    padding: 60px 40px 30px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links .two-columns {
    grid-template-columns: 1fr;
  }
}

/* ===== CONTACT DARK ===== */
.contact-section-dark {
  background-color: #272A55;
  padding: 100px 40px;
  color: #ffffff;
}

.contact-wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 50px;
}

.contact-header h2 {
  font-size: 36px;
  margin-bottom: 12px;
}

.contact-header p {
  max-width: 620px;
  margin: 0 auto;
  color: #cfd3e6;
  line-height: 1.6;
}

.contact-card-dark {
  background: #ffffff;
  border-radius: 18px;
  padding: 50px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 50px;
  color: #4a4a4a;
}

/* Formulario */
.contact-form-dark {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-form-dark input,
.contact-form-dark textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #ddd;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
}

.contact-form-dark input:focus,
.contact-form-dark textarea:focus {
  outline: none;
  border-color: #5C3886;
}

.contact-form-dark button {
  margin-top: 10px;
  padding: 14px;
  border-radius: 999px;
  border: none;
  background: var(--gradiente-acento);
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.contact-form-dark button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}

/* Info */
.contact-info-dark h4 {
  margin-bottom: 16px;
  color: var(--azul-oscuro);
}

.contact-info-dark p {
  margin-bottom: 18px;
  line-height: 1.6;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-card-dark {
    grid-template-columns: 1fr;
    padding: 40px;
  }
}

.contact-map {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
}

.contact-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

.contact-left .contact-header {
  text-align: left;
  margin-bottom: 20px;
}

.contact-left .contact-header h2 {
  font-size: 32px;
  margin: 0 0 10px;
  color: var(--azul-oscuro);
}

.contact-left .contact-header p {
  margin: 0;
  color: #666;
}

/* ===== BEST SELLERS ===== */
.best-sellers {
  padding: 5px 20px;
  background: #ffffff;
}

.best-sellers-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.best-sellers-title {
  font-size: 32px;
  color: var(--azul-oscuro);
  margin-bottom: 40px;
}

.carousel-container {
  position: relative;
  display: flex;
  align-items: center;
}

.carousel-track {
  display: flex;
  gap: 24px;
  overflow: hidden;
  scroll-behavior: smooth;
}

.product-card {
  min-width: 240px;
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  border: 1px solid #eee;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card img {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin-bottom: 14px;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.product-name {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 10px;
}

.product-price {
  font-weight: 700;
  color: #6aaed6;
}

/* Botones */
.carousel-btn {
  background: #ffffff;
  border: 1px solid #ddd;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #333;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: background 0.2s ease;
}

.carousel-btn:hover {
  background: #f4f4f4;
}

.carousel-btn.prev {
  margin-right: 12px;
}

.carousel-btn.next {
  margin-left: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .carousel-track {
    overflow-x: auto;
  }

  .carousel-btn {
    display: none;
  }
}

/* ===== GRID DE PRODUCTOS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}

/* ===== CARD ===== */
.product-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 18px;
  border: 1px solid #e6e6e6;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
}

/* ===== BADGE (ej. Llega en 24 hs) ===== */
.product-badge {
  align-self: flex-start;
  background: #1fa463;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
}

/* ===== IMAGEN ===== */
.product-thumb {
  width: 100%;
  height: 180px;
  background: #f6f7f8;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ===== TEXTO ===== */
.product-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #222;
  line-height: 1.4;
}

.product-card-meta {
  font-size: 13px;
  color: #666;
}

.product-card-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--cat-accent);
}


/* ===== ACCIONES ===== */
.product-card-actions {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* Botón asesor */
.btn-primary {
  background: var(--cat-accent);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
}


.btn-primary:hover {
  filter: brightness(0.92);
}


/* Favoritos */
.btn-like {
  background: #f3f3f3;
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-like:hover {
  background: #e2e2e2;
}

/* ===== LAYOUT CATALOGO ===== */
.catalog-main {
  background: #ffffff;
  padding: 40px 40px 80px;
}

.catalog-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}

/* ===== FILTROS ===== */
.filters {
  position: sticky;
  top: 100px;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 18px;
}

.filters-title {
  margin: 0 0 14px;
  font-size: 22px;
  color: #222;
}

.filter-block {
  border-top: 1px solid #efefef;
  padding-top: 10px;
  margin-top: 10px;
}

.filter-block summary {
  cursor: pointer;
  font-weight: 600;
  color: #222;
  list-style: none;
}

.filter-block summary::-webkit-details-marker {
  display: none;
}

.filter-content {
  padding: 10px 0 4px;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 8px 0;
  font-size: 14px;
  color: #444;
}

.price-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #444;
  margin-bottom: 10px;
}

.price-range input[type="range"] {
  width: 100%;
  margin: 6px 0;
}

/* ===== HEADER PRODUCTOS ===== */
.products-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.products-title {
  margin: 0;
  font-size: 26px;
  color: #222;
}

.products-subtitle {
  margin: 6px 0 0;
  color: #666;
  font-size: 14px;
}

.products-controls {
  display: flex;
  gap: 12px;
  align-items: center;
}

.select {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444;
}

.select select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e1e1e1;
  background: #fff;
}

.view-toggle {
  display: flex;
  gap: 6px;
}

.view-toggle button {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid #e1e1e1;
  background: #fff;
  cursor: pointer;
}

.view-toggle button.active {
  border-color: var(--cat-accent);
}


/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    position: static;
  }
}

/* =========================
   CATEGORÍAS (CATÁLOGO)
   ========================= */

.catalog-page {
  --cat-accent: var(--cromatografia);
}

.catalog-page[data-category="cromatografia"] {
  --cat-accent: var(--cromatografia);
}

.catalog-page[data-category="purificacion"] {
  --cat-accent: var(--purificacion);
}

.catalog-page[data-category="reactivos"] {
  --cat-accent: var(--reactivos);
}

.catalog-page[data-category="filtracion"] {
  --cat-accent: var(--filtracion);
}

.catalog-page[data-category="vidrieria"] {
  --cat-accent: var(--vidrieria);
}

.catalog-page[data-category="estandares"] {
  --cat-accent: var(--estandares);
}

.catalog-page[data-category="equipos"] {
  --cat-accent: var(--equipos);
}

.catalog-page[data-category="microbiologia"] {
  --cat-accent: var(--microbiologia);
}


.category-accent-bar {
  height: 8px;
  background: var(--cat-accent);
}

/* Hero de categoría */
.category-hero {
  background: #ffffff;
  padding: 46px 40px 26px;
  border-bottom: 1px solid #eeeeee;
}

.category-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 500;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.category-hero h1 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.1;
  color: var(--azul-oscuro);
  letter-spacing: -0.4px;
}

.category-hero p {
  margin: 0;
  max-width: 820px;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

.category-hero-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Botones en hero */
.btn-primary {
  background: var(--cat-accent);
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

/* Botón secundario (Ver productos) */
.btn-secondary {
  background: #ffffff;
  color: var(--cat-accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 999px;
  /* El borde se mezcla con transparente para ser sutil */
  border: 1px solid color-mix(in srgb, var(--cat-accent) 25%, transparent);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-secondary:hover {
  transform: translateY(-1px);
  border-color: rgba(10, 124, 134, 0.45);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.10);
}

/* Ajustes responsive del hero */


/* =========================
   BOTÓN LIMPIAR FILTROS
   ========================= */

/* Botón Ghost (Limpiar filtros) */
.btn-ghost {
  width: 100%;
  margin-top: 14px;
  padding: 10px 16px;
  background: #ffffff;
  color: var(--cat-accent);
  font-size: 14px;
  font-weight: 600;
  /* Borde dinámico */
  border: 1px solid color-mix(in srgb, var(--cat-accent) 25%, transparent);
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-ghost:hover {
  /* Fondo sutil al pasar el mouse */
  background: color-mix(in srgb, var(--cat-accent) 6%, transparent);
  border-color: color-mix(in srgb, var(--cat-accent) 45%, transparent);
  transform: translateY(-1px);
}





/* =========================
   DESTACADOS (INDEX)
   ========================= */
.highlights {
  padding: 90px 40px;
  background: #ffffff;
}

.highlights-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.highlight-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  background: #ffffff;
  min-height: 260px;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.highlight-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  filter: saturate(1.02);
}

.highlight-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.0) 35%, rgba(0, 0, 0, 0.70) 100%);
  color: #ffffff;
}

.highlight-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(4px);
}

.highlight-overlay h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.3;
}

.highlight-link {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  width: fit-content;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
  padding-bottom: 2px;
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

/* Tarjeta con imagen vertical (infografía): recorte por arriba para mostrar el encabezado */
.highlight-img-top {
  object-position: top;
}

.highlight-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.highlight-whatsapp {
  color: #ffffff;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #25d366;
  transition: filter 0.15s ease, transform 0.15s ease;
}

.highlight-whatsapp:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

/* ===== Image Lightbox ===== */
.img-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.img-modal.open {
  display: block;
}

.img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.65);
  backdrop-filter: blur(2px);
}

.img-modal-panel {
  position: absolute;
  inset: 4% 5%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  display: grid;
  grid-template-rows: auto 1fr;
}

.img-modal-top {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 42, 68, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--azul-oscuro);
}

.img-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.img-modal-body {
  background: #f6f7f9;
  overflow: auto;
  display: flex;
  justify-content: center;
  padding: 16px;
}

.img-modal-body img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

@media (max-width: 640px) {
  .img-modal-panel { inset: 2% 2%; }
  .img-modal-top { flex-wrap: wrap; }
}

/* =========================
   ASESORES (INDEX)
   ========================= */
.advisors {
  padding: 90px 40px;
  background: #ffffff;
}

.advisors-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.advisors-title {
  text-align: center;
  font-size: 38px;
  margin: 0 0 12px;
  color: var(--azul-oscuro);
}

.advisors-subtitle {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 46px;
  color: #9aa0ad;
  line-height: 1.6;
  font-size: 14px;
}

.advisors-grid {
  display: flex;
  gap: 26px;
  align-items: stretch;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 16px;
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* Edge viejo */
  scroll-snap-type: x mandatory;
  /* “encaje” bonito */
}

.advisors-grid::-webkit-scrollbar {
  display: none;
  /* Chrome/Safari */
}

/* Cada tarjeta “encaja” al scrollear */
.advisor-card {
  flex: 0 0 auto;
  width: 320px;
  /* similar a tu diseño */
  scroll-snap-align: start;
}


.advisor-card {
  border: 1px solid #eeeeee;
  border-radius: 18px;
  padding: 26px 18px 22px;
  text-align: center;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.advisor-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.advisor-role {
  margin: 0 0 18px;
  font-size: 16px;
  color: #111827;
}

.advisor-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 6px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.advisor-avatar i {
  font-size: 34px;
  color: #9aa0ad;
  line-height: 1;
}

.advisor-name {
  font-weight: 800;
  color: #111827;
  font-size: 18px;
  margin-bottom: 4px;
}

.advisor-position {
  color: #9aa0ad;
  font-size: 13px;
  margin-bottom: 14px;
  min-height: 18px;
}

.advisor-phone,
.advisor-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
}

.advisor-phone {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
  padding-bottom: 6px;
}

.advisor-meta {
  margin: 0 0 10px;
  color: #6b7280;
  font-size: 12px;
}

.advisor-email {
  color: #6b7280;
  font-weight: 600;
}

.advisor-email i,
.advisor-phone i {
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  .advisors-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .highlights-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .advisors {
    padding: 70px 20px;
  }

  .highlights {
    padding: 70px 20px;
  }

  .advisors-grid {
    grid-template-columns: 1fr;
  }

  .highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* Header responsive para logo grande */


/* --- Dropdown Contacto --- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
  /* ajusta si tu nav usa padding */
  font: inherit;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-caret {
  font-size: 12px;
  opacity: 0.7;
  transform: translateY(1px);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 180px;

  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10);
  padding: 8px;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 180ms ease;
  z-index: 999;
}

.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-size: 14px;
}

.dropdown-item:hover {
  background: rgba(0, 0, 0, 0.05);
}

/* =========================
   NAV LINK (para <a> y <button>)
   ========================= */
nav a,
nav .nav-link {
  margin-left: 24px;
  text-decoration: none;
  color: var(--azul-oscuro);
  font-weight: 500;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}

/* El botón debe verse como link */
nav button.nav-link {
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

/* caret */
.dropdown-caret {
  font-size: 12px;
  opacity: 0.7;
  transform: translateY(1px);
}

/* =========================================
   ESTILOS ESPECÍFICOS DE LA OPCIÓN 2
   (Header de color dinámico para catálogos)
   ========================================= */

/* 1. El Header toma el color de fondo de la categoría */
.catalog-page .site-header {
  background: var(--cat-accent);
  /* Toma el color definido en el body */
  border-bottom: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* 2. Los enlaces de navegación se vuelven blancos */
.catalog-page .site-nav a {
  color: #ffffff;
}

.catalog-page .site-nav a:hover {
  opacity: 0.9;
}

/* 3. El Logo se mete en una "cajita" blanca flotante */
.catalog-page .logo img {
  height: 80px;
  /* Un poco más grande para destacar */
  background: #ffffff;
  padding: 8px 12px;
  border-radius: 14px;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

/* 4. Ocultamos la barra de acento antigua (ya no se necesita) */
.catalog-page .category-accent-bar {
  height: 0;
  display: none;
}

/* =========================
   PQRS
   ========================= */

.pqrs-page {
  background: #ffffff;
}

/* Hero */
.pqrs-hero {
  padding: 46px 40px 26px;
  border-bottom: 1px solid #eeeeee;
  background: #ffffff;
}

.pqrs-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.pqrs-hero h1 {
  margin: 0 0 10px;
  font-size: 44px;
  line-height: 1.1;
  color: var(--azul-oscuro);
  letter-spacing: -0.4px;
}

.pqrs-hero p {
  margin: 0;
  max-width: 860px;
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
}

/* Layout */
.pqrs-main {
  padding: 40px 40px 90px;
}

.pqrs-layout {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 28px;
  align-items: start;
}

/* Card principal */
.pqrs-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.pqrs-card-head {
  padding: 22px 22px 14px;
  border-bottom: 1px solid #f0f0f0;
}

.pqrs-card-head h2 {
  margin: 0 0 6px;
  color: var(--azul-oscuro);
  font-size: 22px;
}

.pqrs-card-head p {
  margin: 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

/* Form */
.pqrs-form {
  padding: 18px 22px 22px;
}

.pqrs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 700;
  color: #111827;
}

.field input,
.field select,
.field textarea {
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid #e1e1e1;
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  background: #ffffff;
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(92, 56, 134, 0.55);
  box-shadow: 0 0 0 4px rgba(92, 56, 134, 0.10);
}

.field-full {
  grid-column: 1 / -1;
}

.hint {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
}

/* Checkbox */
.checkbox-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #374151;
  line-height: 1.45;
}

.checkbox-line input {
  transform: translateY(2px);
}

/* Acciones */
.pqrs-actions {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-pill {
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  background: var(--gradiente-acento);
  color: #ffffff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 10px 22px rgba(214, 135, 67, 0.22);
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(214, 135, 67, 0.28);
}

.btn-pill-outline {
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(15, 42, 68, 0.18);
  background: #ffffff;
  color: var(--azul-oscuro);
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn-pill-outline:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 42, 68, 0.28);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
}

/* Nota */
.pqrs-note {
  margin-top: 16px;
  background: #f7f7fb;
  border: 1px solid #ececf6;
  padding: 12px 12px;
  border-radius: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.4;
}

.pqrs-note i {
  font-size: 16px;
  color: #6a3fa0;
}

/* Sidebar */
.pqrs-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 92px;
}

.pqrs-sidecard {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.05);
}

.pqrs-sidecard h3 {
  margin: 0 0 12px;
  color: var(--azul-oscuro);
  font-size: 18px;
}

.pqrs-sidecard h4 {
  margin: 0 0 8px;
  color: #111827;
  font-size: 14px;
}

.side-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 10px;
  align-items: start;
  padding: 10px 0;
}

.side-ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #f4f5f7;
  display: grid;
  place-items: center;
  color: var(--azul-oscuro);
}

.side-ico i {
  font-size: 16px;
}

.side-label {
  font-size: 12px;
  font-weight: 800;
  color: #111827;
  margin-bottom: 2px;
  letter-spacing: 0.2px;
}

.side-link {
  display: inline-flex;
  color: #2563eb;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid rgba(37, 99, 235, 0.28);
  width: fit-content;
  padding-bottom: 2px;
}

.side-link:hover {
  opacity: 0.9;
}

.side-sub {
  margin-top: 6px;
  color: #6b7280;
  font-size: 12px;
}

.side-sep {
  border: none;
  border-top: 1px solid #efefef;
  margin: 10px 0 12px;
}

.side-text {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.6;
}

/* Mapa */
.pqrs-map {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6e6e6;
}

.pqrs-map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  display: block;
}

/* Responsive */
@media (max-width: 980px) {
  .pqrs-layout {
    grid-template-columns: 1fr;
  }

  .pqrs-sidebar {
    position: static;
  }
}




.product-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 14px;
  margin-bottom: 12px;
  background: #f4f6f8;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Vista lista para productos */
.product-grid.is-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-grid.is-list .product-card {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
}

.product-grid.is-list .product-thumb {
  width: 170px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
}

.product-grid.is-list .product-card-title,
.product-grid.is-list .product-card-meta,
.product-grid.is-list .product-card-price {
  margin: 0;
}

.product-grid.is-list .product-card-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-self: end;
}

/* ===== Carrusel Departamento Comercial (flechas con degradé del index) ===== */
.team-carousel-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}

.team-nav {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: var(--gradiente-acento);
  color: #ffffff;
  font-size: 20px;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(214, 135, 67, 0.22);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  flex: 0 0 auto;
}

.team-nav:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(214, 135, 67, 0.28);
  filter: brightness(1.02);
}

.team-nav:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

/* En móvil ocultamos flechas y dejamos swipe */
@media (max-width: 900px) {
  .team-nav {
    display: none;
  }
}

.team-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x mandatory;
  padding: 10px 0;
}

.team-carousel::-webkit-scrollbar {
  display: none;
}

.team-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

/* ===== Departamento Comercial (mantener look de cards bonitas) ===== */
.team-section {
  padding: 90px 40px;
  background: #ffffff;
}

.team-title {
  text-align: center;
  font-size: 38px;
  margin: 0 0 12px;
  color: var(--azul-oscuro);
}

.team-section .team-subtitle {
  text-align: center;
  max-width: 920px;
  margin: 0 auto 46px;
  color: #9aa0ad;
  line-height: 1.6;
  font-size: 14px;
}

.team-carousel-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* La “pista” del carrusel */
.team-carousel {
  padding: 6px 4px 16px;
}

/* Card (copiando el feeling de advisor-card) */
.team-card {
  width: 320px;
  border: 1px solid #eeeeee;
  border-radius: 18px;
  padding: 26px 18px 22px;
  text-align: center;
  background: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.10);
}

.team-role {
  margin: 0 0 18px;
  font-size: 16px;
  color: #111827;
}

.team-avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #f3f4f6;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  border: 6px solid #ffffff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  color: #9aa0ad;
}

.team-name {
  font-weight: 800;
  color: #111827;
  font-size: 18px;
  margin: 0 0 14px;
}

.team-lines {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.team-link,
.team-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-size: 13px;
}

.team-link {
  color: #2563eb;
  font-weight: 700;
  border-bottom: 1px solid rgba(37, 99, 235, 0.35);
  padding-bottom: 6px;
}

.team-pbx {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
}

.team-email {
  color: #6b7280;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 640px) {
  .team-section {
    padding: 70px 20px;
  }

  .team-card {
    width: 300px;
  }
}

/* ===== Footer: logo arriba y más grande ===== */
.footer-brand {
  text-align: center;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.footer-logo img {
  width: 170px;
  height: auto;
  display: block;
}

.footer-logo span {
  display: block;
  text-align: center;
  line-height: 1.15;
  letter-spacing: 1px;
  font-size: 20px;
  font-weight: 600;
}

.footer-brand p {
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* =========================
   HEADER MOBILE (hamburguesa + logo centrado)
   ========================= */

.site-header {
  padding: 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #eee;
  position: relative;
  background: #fff;
  z-index: 10000;
}

.site-nav a,
.site-nav .nav-link {
  margin-left: 24px;
  text-decoration: none;
  color: var(--azul-oscuro);
  font-weight: 500;
  font-size: 14px;
  font-family: 'Roboto', sans-serif;
}

/* Botón hamburguesa (oculto en desktop) */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  border-radius: 12px;
  cursor: pointer;
  padding: 10px;
  position: relative;
}

/* Líneas del menú */
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  background: var(--azul-oscuro);
  margin: 6px 0;
  border-radius: 2px;
  transition: all 0.2s ease;
}


.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--azul-oscuro);
  margin: 5px 0;
  border-radius: 2px;
}

.nav-spacer {
  display: none;
  /* solo se usa en móvil */
}

/* Backdrop (fondo oscuro cuando el menú está abierto) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 68, 0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 180ms ease;
  z-index: 9999;
}

/* Menú lateral (solo móvil) */


/* Estado abierto */
body.nav-open .site-nav {
  right: 0;
}

body.nav-open .nav-backdrop {
  opacity: 1;
  visibility: visible;
}

/* Animación cuando el menú está abierto */
body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   DRAWER MOBILE: dropdown tipo acordeón + logo abajo
   ========================= */


/* =========================
   HERO (MÓVIL) — estilo tipo “card” centrado + imagen abajo
   ========================= */





/* =========================================
   PORTAFOLIO TABS — Mobile friendly (sin perder “pestañas”)
   - Tabs tipo chips/pestaña con scroll horizontal
   - Solo 1 tarjeta visible (la activa)
   - Activo con color VIVO usando --tab-color
   ========================================= */



/* Indicador visual de scroll horizontal en tabs */
#portfolio-tabs .tabs-header {
  position: relative;
}

/* sombras/fade laterales */
#portfolio-tabs .tabs-header::before,
#portfolio-tabs .tabs-header::after {
  content: "";
  position: sticky;
  top: 0;
  width: 18px;
  height: 100%;
  flex: 0 0 18px;
  z-index: 2;
  pointer-events: none;
}

#portfolio-tabs .tabs-header::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

#portfolio-tabs .tabs-header::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

/* =========================================
   Footer móvil tipo "pestaña fija" (abre hacia arriba)
   ========================================= */


/* Desktop: normal */



/* =========================
   FILTROS MÓVIL: botón + drawer
   ========================= */
.filters-toggle {
  display: none;
}

/* desktop */


/* ======================================
   PRODUCTS CONTROLS FIX MÓVIL
   ====================================== */

/* =====================================
   FIX COLOR LINKS DRAWER MÓVIL
   ===================================== */



/* =========================
   MOBILE (<=720px) — Consolidated
   ========================= */
@media (max-width: 720px) {
  .category-hero {
    padding: 34px 20px 22px;
  }

  .category-hero h1 {
    font-size: 34px;
  }

  header {
    padding: 16px 18px;
  }

  nav a {
    margin-left: 14px;
  }

  .logo img {
    height: 52px;
  }

  .pqrs-hero {
    padding: 34px 20px 22px;
  }

  .pqrs-main {
    padding: 24px 20px 70px;
  }

  .pqrs-hero h1 {
    font-size: 34px;
  }

  .pqrs-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 14px 14px;
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav-spacer {
    display: block;
  }

  .logo {
    justify-self: center;
  }

  .logo img {
    height: 54px;
    width: auto;
  }

  /* Nav se vuelve drawer */
  .site-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(82vw, 340px);
    height: 100vh;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    padding: 84px 18px 18px;
    gap: 14px;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.18);
    transition: right 220ms ease;
    z-index: 10001;
  }

  .site-nav a,
  .site-nav .nav-link {
    margin-left: 0;
    font-size: 16px;
    padding: 10px 10px;
    border-radius: 12px;
  }

  .site-nav a:hover,
  .site-nav .nav-link:hover {
    background: rgba(0, 0, 0, 0.05);
  }

  /* Dropdown dentro del drawer: que ocupe el ancho */
  .nav-dropdown {
    width: 100%;
  }

  body {
    padding-top: 88px;
    /* ajusta si cambia altura del header */
  }


  .dropdown-menu {
    position: static;
    min-width: unset;
    width: 100%;
    margin-top: 8px;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    z-index: 11000;
  }

  /* Quita el “salto” raro del item Contacto y uniforma spacing */
  .site-nav {
    gap: 10px;
  }

  .site-nav a,
  .site-nav .nav-link,
  .site-nav .dropdown-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 12px;
    border-radius: 12px;
  }

  /* Dropdown: que no se abra al lado (desktop) */
  .nav-dropdown {
    width: 100%;
  }

  /* Menú del dropdown: colapsado por defecto */
  .dropdown-menu {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0 0 0 0;

    display: none;
    /* clave */
    width: 100%;
  }

  /* Cuando esté abierto, aparece hacia abajo */
  .nav-dropdown.is-open .dropdown-menu {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-left: 10px;
    /* sangría suave */
    margin-top: 6px;
  }

  .dropdown-item {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.04);
  }

  .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.07);
  }

  /* Logo abajo del todo */
  .drawer-footer {
    margin-top: auto;
    /* empuja al fondo */
    padding-top: 14px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: center;
  }

  .drawer-footer img {
    height: 44px;
    width: auto;
    opacity: 0.95;
  }

  .hero-banner {
    display: flex;
    flex-direction: column;
    padding: 32px 16px 22px;
    gap: 18px;
  }

  .hero-content {
    max-width: 560px;
    margin: 0 auto;
    padding: 0;
    text-align: center;

    /* Importantísimo: en desktop tienes margin-left calculado,
       en móvil lo anulamos para que no se desborde */
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .hero-eyebrow {
    margin-bottom: 10px;
  }

  .hero-content h2 {
    font-size: 34px;
    line-height: 1.15;
    margin-bottom: 14px;
  }

  .hero-content p {
    max-width: none;
    font-size: 16px;
    line-height: 1.7;
    margin: 0 auto 18px;
    padding: 0 6px;
  }

  .hero-actions {
    display: flex;
    justify-content: center;
  }

  .hero-actions a {
    width: 220px;
    /* estilo “button centrado” */
    text-align: center;
  }

  .hero-carousel {
    width: 100%;
    margin: 0 auto;
    border-radius: 18px;
    /* redondeo completo */
    overflow: hidden;
  }

  .hero-carousel img {
    height: 240px;
    /* antes era 480px; aquí lo ajustamos */
    width: 100%;
    object-fit: cover;
    border-radius: 18px;
  }

  /* Sección: menos aire y centrado */
  #portfolio-tabs {
    padding: 26px 14px;
  }

  #portfolio-tabs .section-title {
    text-align: center;
    margin-bottom: 14px;
  }

  /* ===== Tabs: compactas, scrolleables ===== */
  #portfolio-tabs .tabs-header {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;

    justify-content: flex-start;

    padding: 6px 2px 12px;
    margin: 0 auto 14px;
    -webkit-overflow-scrolling: touch;

  }


  #portfolio-tabs .tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;

    padding: 10px 14px;
    border-radius: 14px;

    font-size: 13px;
    line-height: 1;
    font-weight: 700;

    border: 1px solid rgba(0, 0, 0, 0.12);
    background: #fff;
    color: var(--azul-oscuro);

    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);

    max-width: 72vw;
  }

  /* Activo: color fuerte (sin desaturar) */
  #portfolio-tabs .tab-btn.active {
    background: var(--tab-color);
    border-color: var(--tab-color);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
  }

  /* ===== Mostrar SOLO el panel activo ===== */
  #portfolio-tabs .tabs-content .tab-panel {
    display: none !important;
  }

  #portfolio-tabs .tabs-content .tab-panel.active {
    display: flex !important;
    flex-direction: column;
    gap: 14px;

    padding: 14px;
    border-radius: 18px;
    background: #f6f7f9;
  }

  /* ===== Tarjeta ===== */
  #portfolio-tabs .tab-panel img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    border-radius: 16px;
  }

  #portfolio-tabs .tab-text {
    text-align: center;
    padding: 0 6px;
  }

  #portfolio-tabs .tab-text h3 {
    margin: 6px 0 8px;
    font-size: 22px;
  }

  #portfolio-tabs .tab-text p {
    margin: 0 auto 14px;
    max-width: 42ch;
    line-height: 1.6;
    font-size: 15px;
  }

  #portfolio-tabs .tab-link {
    display: inline-block;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 700;
  }

  /* El footer se vuelve una bandeja fija abajo */
  #siteFooter {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 12000;
    background: transparent;
    padding: 0;
  }

  /* Botón/pestaña */
  #siteFooter .footer-toggle {
    width: 220px;
    margin: 0 auto;
    border: none;
    cursor: pointer;
    padding: 12px 14px;
    background: #272A55;
    color: #fff;
    font-weight: 700;
    font-size: 14px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    border-radius: 12px 12px 0 0;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.22);
  }

  #siteFooter .footer-arrow {
    display: inline-block;
    transition: transform .25s ease;
    transform: rotate(180deg);
    /* cerrado = flecha abajo */
    font-size: 16px;
    line-height: 1;
  }

  /* Panel (contenido) */
  #siteFooter .footer-collapse {
    background: #272A55;
    color: #fff;

    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.28);
  }

  /* Cuando abre: sube (se ve de inmediato) */
  #siteFooter.is-open .footer-collapse {
    max-height: 70vh;
    /* altura del panel */
    overflow: auto;
    /* scroll dentro del panel */
    -webkit-overflow-scrolling: touch;
  }

  #siteFooter.is-open .footer-arrow {
    transform: rotate(0deg);
    /* abierto = flecha arriba */
  }

  /* Ajustes internos para que el texto se vea bien en oscuro */
  #siteFooter .footer-container {
    padding: 18px 14px 10px;
  }

  #siteFooter .footer-address,
  #siteFooter .footer-signature {
    padding: 10px 14px 18px;
    opacity: 0.92;
  }

  /* IMPORTANTE: deja espacio para que la página no quede tapada por la pestaña */
  body {
    padding-bottom: 74px;
  }

  #siteFooter {
    position: fixed;
    left: 0;
    right: 0;
    bottom: -80px;
    /* oculto por defecto */
    transition: bottom 0.3s ease;
  }

  /* Cuando el usuario llega al final */
  #siteFooter.visible {
    bottom: 0;
  }

  /* Botón "Filtros" visible en móvil */
  .filters-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    color: #222;
  }

  .filters-toggle svg {
    width: 18px;
    height: 18px;
  }

  /* Drawer */
  .filters {
    position: fixed !important;
    top: 0;
    left: 0;
    height: 100vh;
    width: min(92vw, 360px);
    background: #fff;
    z-index: 2000;

    padding: 16px;
    overflow-y: auto;

    transform: translateX(-110%);
    transition: transform .22s ease;
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
  }

  .filters-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #efefef;
    margin-bottom: 10px;
  }

  .filters-close {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid #e1e1e1;
    background: #fff;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #222;
  }

  /* Backdrop */
  .filters-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .38);
    z-index: 1990;
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease;
  }

  /* Estado abierto */
  body.filters-open .filters {
    transform: translateX(0);
  }

  body.filters-open .filters-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  /* Bloquear scroll del body cuando está abierto */
  body.filters-open {
    overflow: hidden;
  }

  .products-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    /* permite bajar si no cabe */
  }

  /* Botón filtros más compacto */
  .filters-toggle {
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
  }

  .filters-toggle svg {
    width: 16px;
    height: 16px;
  }

  /* Select más compacto */
  .products-controls .select {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .products-controls select {
    height: 36px;
    font-size: 14px;
    padding: 0 8px;
    max-width: 130px;
  }

  /* View toggle más pequeño */
  .view-toggle {
    display: flex;
    gap: 4px;
  }

  .view-toggle button {
    width: 36px;
    height: 36px;
    font-size: 14px;
    padding: 0;
  }

  /* Evita cualquier desbordamiento accidental */
  .products {
    overflow-x: hidden;
  }

  .site-nav {
    background: #ffffff;
  }

  .site-nav a,
  .site-nav .nav-link,
  .site-nav .dropdown-toggle {
    color: #1f2d3d !important;
    /* azul oscuro corporativo */
  }

  .site-nav a:hover,
  .site-nav .dropdown-toggle:hover {
    color: #0a7c86 !important;
    /* color cromatografía */
  }

  /* Dropdown interno */
  .dropdown-menu {
    background: #f8f9fb;
  }

  .dropdown-item {
    color: #1f2d3d !important;
  }
}


/* =========================
   DESKTOP (>=721px) — Consolidated overrides
   ========================= */
@media (min-width: 721px) {
  #siteFooter {
    position: static;
    background: #272A55;
    /* <-- forzamos el azul en PC */
  }

  #siteFooter .footer-toggle {
    display: none;
  }

  #siteFooter .footer-collapse {
    max-height: none;
    overflow: visible;
  }

  body {
    padding-bottom: 0;
  }
}


/* =====================================================
   FIX DESKTOP — Evitar que el drawer de FILTROS (móvil)
   rompa la vista PC / secciones
   ===================================================== */
@media (min-width: 721px) {

  /* En desktop NO existe drawer: oculta header/close */
  .filters-head,
  .filters-close {
    display: none !important;
  }

  /* Backdrop de filtros nunca en desktop */
  .filters-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  /* Filtros como sidebar normal */
  .filters {
    position: sticky !important;
    top: 100px !important;
    height: auto !important;
    width: auto !important;
    max-width: 280px;
    /* coincide con tu grid */
    transform: none !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  /* Si por error queda la clase filters-open, no dañes el scroll en PC */
  body.filters-open {
    overflow: auto !important;
  }
}


/* =========================
   PAGE PRELOADER
   ========================= */
.page-preloader {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20000;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content img {
  width: 120px;
  height: auto;
}

/* ======================
   BOTONES GLOBALES
   ====================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  background: var(--gradiente-acento);
  color: #ffffff;
  transition: 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(214, 135, 67, 0.25);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  border: 2px solid var(--azul-oscuro);
  color: var(--azul-oscuro);
  transition: 0.3s ease;
}

.btn-secondary:hover {
  background: var(--azul-oscuro);
  color: #ffffff;
}

/* ==========================
   Scroll visible en móvil
   ========================== */
@media (max-width: 768px) {

  .tabs-header {
    overflow-x: auto;
    scrollbar-width: thin;
    /* Firefox */
    scrollbar-color: rgba(15, 42, 68, 0.35) transparent;
  }

  /* Chrome, Edge, Safari */
  .tabs-header::-webkit-scrollbar {
    height: 4px;
  }

  .tabs-header::-webkit-scrollbar-track {
    background: transparent;
  }

  .tabs-header::-webkit-scrollbar-thumb {
    background: rgba(15, 42, 68, 0.35);
    border-radius: 10px;
  }

  .tabs-header::-webkit-scrollbar-thumb:hover {
    background: rgba(15, 42, 68, 0.55);
  }
}


/* =========================
   BEST SELLERS (dinámico desde CSV)
   - Reusa la card de catálogos
   - Botón en color footer
   ========================= */

.best-sellers .carousel-track {
  overflow-x: auto;
  /* swipe en móvil + scroll */
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 6px;
}

.best-sellers .carousel-track::-webkit-scrollbar {
  display: none;
}

/* Botón SOLO aquí */
.best-sellers .btn-primary {
  background: #272A55 !important;
  box-shadow: none !important;
}

.best-sellers .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ==============================
   CATÁLOGO (PDF Cards + Modal)
================================ */

.catalog-hero {
  padding: 52px 0 18px;
}

.catalog-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.catalog-title {
  margin: 0 0 10px;
  color: var(--azul-oscuro);
  font-size: 42px;
  letter-spacing: -0.5px;
}

.catalog-subtitle {
  margin: 0;
  max-width: 760px;
  line-height: 1.7;
  color: var(--gris-texto);
}

.catalog-quicknav {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.catalog-quicknav .chip {
  --chip: #0aa3a3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--azul-oscuro);
  border: 1px solid rgba(15, 42, 68, 0.12);
  background: #fff;
  position: relative;
  overflow: hidden;
}

.catalog-quicknav .chip::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--chip);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.04);
}

.catalog-quicknav .chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(15, 42, 68, 0.10);
}

.catalog-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 40px 60px;
}

.catalog-section {
  margin-top: 28px;
  padding-top: 10px;
}

.catalog-head {
  display: grid;
  grid-template-columns: 6px 1fr;
  gap: 18px;
  align-items: start;
  margin: 8px 0 18px;
}

.catalog-line {
  width: 6px;
  border-radius: 999px;
  background: var(--accent, #0aa3a3);
  height: 100%;
  min-height: 56px;
}

.catalog-head h2 {
  margin: 0;
  color: var(--azul-oscuro);
  font-size: 26px;
}

.catalog-head p {
  margin: 6px 0 0;
  color: var(--gris-texto);
}

.pdf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pdf-card {
  border: 1px solid rgba(15, 42, 68, 0.10);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 42, 68, 0.06);
  transition: transform .22s ease, box-shadow .22s ease;
  display: grid;
  grid-template-rows: auto 1fr;
}

.pdf-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(15, 42, 68, 0.12);
}

.pdf-preview {
  position: relative;
  background: #f6f7f9;
  aspect-ratio: 16/10;
  overflow: hidden;
}

.pdf-canvas {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity .25s ease, transform .25s ease;
}

.pdf-card.is-ready .pdf-canvas {
  opacity: 1;
  transform: scale(1);
}

.pdf-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #f2f3f5, #e9ecef, #f2f3f5);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

.pdf-card.is-ready .pdf-skeleton,
.pdf-card.is-fallback .pdf-skeleton {
  display: none;
}

@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

.pdf-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  gap: 8px;
  color: #6b7280;
  text-align: center;
  padding: 18px;
}

.pdf-card.is-fallback .pdf-fallback {
  display: grid;
}

.pdf-fallback-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: rgba(15, 42, 68, 0.08);
  color: var(--azul-oscuro);
}

.pdf-meta {
  padding: 14px 14px 16px;
  display: grid;
  gap: 10px;
}

.pdf-meta-top {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pdf-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.06);
  color: var(--azul-oscuro);
}

.pdf-pill.ghost {
  background: transparent;
  border: 1px solid rgba(15, 42, 68, 0.14);
  color: rgba(15, 42, 68, 0.78);
}

.pdf-name {
  margin: 0;
  color: var(--azul-oscuro);
  font-size: 16px;
  line-height: 1.35;
}

.pdf-actions {
  display: flex;
  gap: 10px;
  margin-top: 2px;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn-primary {
  background: var(--gradiente-acento);
  color: #fff;
  box-shadow: 0 10px 18px rgba(214, 135, 67, 0.18);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(214, 135, 67, 0.25);
}

.btn-secondary {
  background: #fff;
  color: var(--azul-oscuro);
  border: 1px solid rgba(15, 42, 68, 0.14);
}

.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15, 42, 68, 0.08);
}

/* ===== Modal ===== */
body.modal-open {
  overflow: hidden;
}

.pdf-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.pdf-modal.open {
  display: block;
}

.pdf-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 25, 0.55);
  backdrop-filter: blur(2px);
}

.pdf-modal-panel {
  position: absolute;
  inset: 4% 5%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.25);
  display: grid;
  grid-template-rows: auto 1fr;
}

.pdf-modal-top {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 42, 68, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pdf-modal-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.pdf-badge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15, 42, 68, 0.06);
  color: var(--azul-oscuro);
}

#pdfTitle {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pdf-modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-close {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(15, 42, 68, 0.14);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.btn-close:hover {
  box-shadow: 0 10px 18px rgba(15, 42, 68, 0.08);
}

.pdf-modal-body {
  background: #f6f7f9;
}

.pdf-modal-body iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .pdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-hero-inner, .catalog-wrap { padding: 0 22px; }
  .pdf-modal-panel { inset: 6% 4%; }
}

@media (max-width: 640px) {
  .pdf-grid { grid-template-columns: 1fr; }
  .catalog-title { font-size: 34px; }
  .pdf-actions { flex-direction: column; }
  .pdf-modal-panel { inset: 8% 3%; }
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pdf-preview.is-image{
  position: relative;
  overflow: hidden;
}

.pdf-cover{
  width: 100%;
  height: 180px;   /* ajustable */
  object-fit: cover;
  display: block;
}