/* =====================================================
   POLIGRAF.MX — REDISEÑO MODERNO & PROFESIONAL
   Cargar DESPUÉS de style.css en todos los HTML
   ===================================================== */

/* ── VARIABLES GLOBALES ──────────────────────────── */
:root {
  --pri: #3c49c3;
  --pri-dark: #1a237e;
  --pri-light: #5c6bc0;
  --accent: #d4a017;
  --accent-lt: #f5d857;
  --green: #1e9940;
  --red: #c0392b;
  --txt-dark: #1a202c;
  --txt-med: #4a5568;
  --txt-lt: #718096;
  --bg: #f7f8fc;
  --white: #ffffff;
  --border: #e2e8f0;
  --sh-sm: 0 2px 12px rgba(0, 0, 0, 0.07);
  --sh-md: 0 6px 24px rgba(0, 0, 0, 0.11);
  --sh-lg: 0 12px 40px rgba(0, 0, 0, 0.15);
  --sh-pri: 0 8px 30px rgba(60, 73, 195, 0.25);
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --ease: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── RESET / BASE ────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--txt-dark);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Condensed", "Segoe UI", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  color: var(--txt-dark);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(26px, 4vw, 46px);
}
h2 {
  font-size: clamp(22px, 3vw, 34px);
}
h3 {
  font-size: clamp(18px, 2.5vw, 26px);
}

p {
  color: var(--txt-med);
  line-height: 1.8;
}

a {
  transition: color var(--ease);
}

/* ── COMPENSAR HEADER FIJO ───────────────────────── */
#page {
  padding-top: 168px !important;
}

/* ── HEADER / NAVBAR ─────────────────────────────── */
.pg-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #ffffff;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.3s ease;
}

.pg-header.scrolled {
  box-shadow: 0 6px 32px rgba(26, 35, 126, 0.6);
}

.pg-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 170px;
  padding: 0 48px;
  max-width: 1400px;
  margin: 0 auto;
}

/* ── LOGO ────────────────────────────────────────── */
.pg-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none !important;
  margin-right: 32px;
  background: #fff;
  padding: 6px 12px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pg-logo img {
  height: 155px;
  width: auto;
  filter: none;
  transition:
    transform 0.28s ease,
    opacity 0.28s ease;
  display: block;
  object-fit: contain;
}

.pg-logo:hover img {
  transform: scale(1.04);
  opacity: 0.9;
}

/* ── MENÚ DESKTOP ────────────────────────────────── */
.pg-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

.pg-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2px;
}

.pg-nav__link {
  display: block;
  padding: 9px 20px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.75) !important;
  text-decoration: none !important;
  border-radius: 50px;
  border-bottom: none !important;
  transition:
    color 0.24s ease,
    background 0.24s ease,
    box-shadow 0.24s ease;
  white-space: nowrap;
}

.pg-nav__link:hover {
  color: #000 !important;
  background: rgba(0, 0, 0, 0.07);
  text-decoration: none !important;
}

.pg-nav__link.pg-active {
  color: #000 !important;
  background: rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, 0.2);
}

/* ── BOTÓN HAMBURGUESA (oculto en desktop) ────────── */
.pg-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.07);
  border: 1.5px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  cursor: pointer;
  padding: 0;
  transition:
    background 0.24s ease,
    border-color 0.24s ease;
}

.pg-hamburger:hover {
  background: rgba(0, 0, 0, 0.12);
  border-color: rgba(0, 0, 0, 0.28);
}

.pg-hamburger span {
  display: block;
  width: 22px;
  height: 3px;
  background: #3c49c3;
  border-radius: 2px;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease,
    width 0.3s ease;
}

.pg-hamburger.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.pg-hamburger.is-active span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.pg-hamburger.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── MENÚ MÓVIL (desplegable) ────────────────────── */
.pg-mobile-nav {
  max-height: 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(22, 30, 112, 0.97) 0%,
    rgba(50, 62, 195, 0.97) 100%
  );
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1);
}

.pg-mobile-nav.is-open {
  max-height: 400px;
}

.pg-mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 6px 0 14px;
}

.pg-mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.pg-mobile-nav li:last-child {
  border-bottom: none;
}

.pg-mobile-nav a {
  display: block;
  padding: 15px 24px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82) !important;
  text-decoration: none !important;
  transition:
    color 0.2s ease,
    background 0.2s ease,
    padding-left 0.2s ease;
}

.pg-mobile-nav a:hover,
.pg-mobile-nav a.pg-active {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1);
  padding-left: 34px;
}

/* ══════════════════════════════════════════════════
   CARRUSEL PRINCIPAL — SIN SALTOS, SIN FONDO NEGRO
   Técnica: crossfade + position:absolute en todos
   los items → carousel-inner nunca cambia de alto
   ══════════════════════════════════════════════════ */

/* Eliminar gutters del container/col para que el
   carrusel ocupe todo el ancho disponible          */
.row[style*="background-color: black"] {
  margin-top: 0;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.row[style*="background-color: black"] > [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.row[style*="background-color: black"] .container {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* Carrusel raíz */
#myCarousel {
  position: relative;
  overflow: hidden;
  background: #f5f5f0;
}

/* ── CLAVE: carousel-inner con altura FIJA ── */
#myCarousel .carousel-inner {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  background: #f5f5f0;
}

/* ── TODOS los items: siempre block + absolute ────
   Bootstrap alterna display:none ↔ display:block
   y position:relative ↔ position:absolute durante
   la transición. Esto rompe la altura del contenedor.
   Forzamos position:absolute en todos los estados. */
#myCarousel .carousel-inner > .item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important; /* anula display:none de Bootstrap */
  opacity: 0;
  -webkit-transition: opacity 0.75s ease-in-out !important;
  transition: opacity 0.75s ease-in-out !important;
  /* Forzar translate a cero: anula la animación
     de slide translate3d de Bootstrap por completo */
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
}

/* ── ANULAR todas las variantes de transform/left
   que Bootstrap inyecta durante la transición   ── */
#myCarousel .carousel-inner > .item.active.left,
#myCarousel .carousel-inner > .item.active.right,
#myCarousel .carousel-inner > .item.next,
#myCarousel .carousel-inner > .item.prev,
#myCarousel .carousel-inner > .item.next.left,
#myCarousel .carousel-inner > .item.prev.right {
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
  left: 0 !important;
}

/* ── CROSSFADE: opacidad según clases Bootstrap ── */

/* Slide activo: visible */
#myCarousel .carousel-inner > .item.active {
  opacity: 1;
  z-index: 2;
}

/* Slide siguiente/anterior (antes de animar) */
#myCarousel .carousel-inner > .item.next,
#myCarousel .carousel-inner > .item.prev {
  opacity: 0;
  z-index: 1;
}

/* Bootstrap agrega .left al entrante → fade IN */
#myCarousel .carousel-inner > .item.next.left,
#myCarousel .carousel-inner > .item.prev.right {
  opacity: 1;
  z-index: 3;
}

/* Bootstrap agrega .left al saliente → fade OUT */
#myCarousel .carousel-inner > .item.active.left,
#myCarousel .carousel-inner > .item.active.right {
  opacity: 0;
  z-index: 2;
}

/* ── IMAGEN: llena el item con object-fit ── */
#myCarousel .item img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
  background: #f5f5f0;
}

/* ── CONTROLES (flechas) ─────────────────────────── */
#myCarousel .carousel-control {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 60px;
  opacity: 0;
  background: none !important;
  -webkit-transition: opacity 0.28s ease !important;
  transition: opacity 0.28s ease !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#myCarousel:hover .carousel-control {
  opacity: 0.9;
}

#myCarousel .carousel-control .icon-prev,
#myCarousel .carousel-control .icon-next {
  font-size: 30px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
}

#myCarousel .carousel-control.left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.42) 0%,
    transparent 100%
  ) !important;
}

#myCarousel .carousel-control.right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.42) 0%,
    transparent 100%
  ) !important;
}

/* ── ALTURAS RESPONSIVAS (solo carousel-inner) ─── */
@media (max-width: 1200px) {
  #myCarousel .carousel-inner {
    height: 460px;
  }
}

@media (max-width: 992px) {
  #myCarousel .carousel-inner {
    height: 360px;
  }
}

@media (max-width: 768px) {
  #myCarousel .carousel-inner {
    height: 240px;
  }
  #myCarousel .carousel-control {
    width: 44px;
  }
  #myCarousel .carousel-control .icon-prev,
  #myCarousel .carousel-control .icon-next {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  #myCarousel .carousel-inner {
    height: 185px;
  }
}

/* ── SECCIÓN VENTAJAS (index.html) ───────────────── */
.ventajas-section {
  padding: 60px 0 50px;
  background: var(--bg);
}

.ventaja-card {
  background: var(--white);
  border-radius: var(--r-md);
  padding: 36px 24px;
  text-align: center;
  height: 100%;
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  transition: all var(--ease);
  margin-bottom: 20px;
}

.ventaja-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-pri);
  border-color: var(--pri);
}

.ventaja-card img {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 18px;
  display: block;
}

.ventaja-card h3 {
  font-size: 18.5px !important;
  font-weight: 800 !important;
  color: var(--pri) !important;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ventaja-card p {
  font-size: 18px;
  color: var(--txt-med) !important;
  line-height: 1.75;
  margin: 0;
}

/* ── BANDA AMARILLA CTA ──────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, #f9d423 0%, #e8a800 100%) !important;
  padding: 48px 0 !important;
}

.cta-band .cta-text {
  font-size: 21px !important;
  font-weight: 700;
  color: var(--txt-dark) !important;
  line-height: 1.5;
}

.cta-band .cta-text b {
  font-size: 26px;
  color: var(--pri-dark);
  display: block;
  margin-bottom: 8px;
}

.cta-band .cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

/* ── BOTONES ─────────────────────────────────────── */
.btn {
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  border-radius: 50px !important;
  transition: all var(--ease) !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  justify-content: center !important;
  font-size: 15px !important;
  padding: 12px 28px !important;
}

.btn img {
  width: 18px !important;
  height: 18px !important;
  object-fit: contain;
}

.btn-success {
  background: linear-gradient(135deg, #25a244 0%, #158a30 100%) !important;
  box-shadow: 0 4px 15px rgba(37, 162, 68, 0.3) !important;
  color: #fff !important;
}

.btn-success:hover,
.btn-success:focus {
  background: linear-gradient(135deg, #2ecc71 0%, #25a244 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(37, 162, 68, 0.4) !important;
  color: #fff !important;
}

.btn-danger {
  background: linear-gradient(135deg, #e53e3e 0%, #9b1c1c 100%) !important;
  box-shadow: 0 4px 15px rgba(229, 62, 62, 0.3) !important;
  color: #fff !important;
}

.btn-danger:hover,
.btn-danger:focus {
  background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(229, 62, 62, 0.4) !important;
  color: #fff !important;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--pri) 0%,
    var(--pri-dark) 100%
  ) !important;
  box-shadow: 0 4px 15px rgba(60, 73, 195, 0.3) !important;
  color: #fff !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(
    135deg,
    var(--pri-light) 0%,
    var(--pri) 100%
  ) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 22px rgba(60, 73, 195, 0.4) !important;
  color: #fff !important;
}

.btn-lg {
  padding: 15px 36px !important;
  font-size: 16px !important;
}
.btn-block {
  width: 100% !important;
  margin-bottom: 10px !important;
}

/* ── TARJETAS DE PRODUCTOS (libros.html) ──────────── */
.products-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)) !important;
  gap: 20px !important;
  padding: 20px 0 50px !important;
}

.product-card {
  border-radius: var(--r-md) !important;
  overflow: hidden !important;
  box-shadow: var(--sh-md) !important;
  transition: all var(--ease) !important;
  aspect-ratio: 4/3 !important;
  border: none !important;
}

.product-card:hover {
  transform: translateY(-8px) scale(1.01) !important;
  box-shadow: var(--sh-pri) !important;
}

.product-card img {
  filter: brightness(0.82) !important;
  transition: all 0.5s ease !important;
}

.product-card:hover img {
  filter: brightness(0.58) !important;
  transform: scale(1.1) !important;
}

.product-card .overlay {
  background: linear-gradient(
    to top,
    rgba(10, 10, 50, 0.88) 0%,
    rgba(10, 10, 50, 0.18) 55%,
    transparent 100%
  ) !important;
  padding: 20px !important;
}

.product-card .label {
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
  color: var(--accent-lt) !important;
  text-transform: uppercase !important;
  background: rgba(212, 160, 23, 0.2) !important;
  padding: 3px 10px !important;
  border-radius: 20px !important;
  display: inline-block !important;
  opacity: 1 !important;
  margin-bottom: 6px !important;
}

.product-card .title {
  font-size: 18px !important;
  font-weight: 800 !important;
  color: #fff !important;
  line-height: 1.2 !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5) !important;
  margin: 0 0 8px !important;
}

.product-card .cta {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: var(--accent-lt) !important;
  letter-spacing: 0.06em !important;
}

.product-card .accent-line {
  background: linear-gradient(to right, var(--pri), var(--accent)) !important;
  height: 4px !important;
}

@media (max-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
  }
  .product-card .title {
    font-size: 14px !important;
  }
  .product-card .label {
    font-size: 9px !important;
    padding: 2px 7px !important;
  }
}

/* ── SECCIÓN PRODUCTOS INDEX (flickity) ─────────── */
.carousel-cell {
  padding: 6px;
}
.carousel-cell img {
  border-radius: var(--r-sm);
  box-shadow: var(--sh-sm);
  height: 100%;
  width: 100%;
  object-fit: contain;
  background: #f5f5f0;
}

.flickity-prev-next-button {
  background: var(--pri) !important;
  opacity: 0.85;
  box-shadow: var(--sh-sm);
}

.flickity-prev-next-button:hover {
  opacity: 1 !important;
}
.flickity-prev-next-button .arrow {
  fill: #fff !important;
}

/* ── SECCIÓN CONÓZCANOS (servicios.html) ─────────── */
#fh5co-about {
  padding: 60px 0 40px !important;
  background: #fff;
}

#fh5co-about .container > .row {
  align-items: center;
}

#fh5co-about h1 {
  font-size: clamp(32px, 5vw, 56px) !important;
  font-weight: 800 !important;
  color: var(--txt-dark) !important;
  border-left: 5px solid var(--accent);
  padding-left: 18px;
  margin-bottom: 24px;
}

#fh5co-about p {
  font-size: 16.5px;
}

#fh5co-about p[style*="color: #3c49c3"] {
  color: var(--pri) !important;
  font-weight: 600 !important;
  border-left: 3px solid var(--pri);
  padding-left: 14px;
  margin: 16px 0;
}

#fh5co-about img.img-responsive {
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
}

/* ══════════════════════════════════════════════════
   CARRUSEL SERVICIOS — CROSSFADE ESTABLE
   Misma técnica que #myCarousel: position:absolute
   en todos los items + altura fija en carousel-inner
   ══════════════════════════════════════════════════ */

/* Wrapper: margen + sombra exterior + borde redondeado */
.servicios-carousel-wrapper {
  margin: 44px auto 28px;
  max-width: 860px;
}

/* El carrusel raíz: forma, sombra y clip del overflow */
#serviciosCarousel {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(26, 35, 126, 0.22);
  background: #111;
}

/* ── Altura fija: el único valor que controla el alto ── */
#serviciosCarousel .carousel-inner {
  position: relative;
  width: 100%;
  height: 440px;
  overflow: hidden;
  background: #111;
}

/* ── Todos los items: absolute + display:block siempre ── */
#serviciosCarousel .carousel-inner > .item {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  opacity: 0;
  -webkit-transition: opacity 0.75s ease-in-out !important;
  transition: opacity 0.75s ease-in-out !important;
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
}

/* ── Anular transform/left que Bootstrap inyecta ── */
#serviciosCarousel .carousel-inner > .item.active.left,
#serviciosCarousel .carousel-inner > .item.active.right,
#serviciosCarousel .carousel-inner > .item.next,
#serviciosCarousel .carousel-inner > .item.prev,
#serviciosCarousel .carousel-inner > .item.next.left,
#serviciosCarousel .carousel-inner > .item.prev.right {
  -webkit-transform: translate3d(0, 0, 0) !important;
  transform: translate3d(0, 0, 0) !important;
  left: 0 !important;
}

/* ── Crossfade por opacidad ── */
#serviciosCarousel .carousel-inner > .item.active {
  opacity: 1;
  z-index: 2;
}

#serviciosCarousel .carousel-inner > .item.next,
#serviciosCarousel .carousel-inner > .item.prev {
  opacity: 0;
  z-index: 1;
}

#serviciosCarousel .carousel-inner > .item.next.left,
#serviciosCarousel .carousel-inner > .item.prev.right {
  opacity: 1;
  z-index: 3;
}

#serviciosCarousel .carousel-inner > .item.active.left,
#serviciosCarousel .carousel-inner > .item.active.right {
  opacity: 0;
  z-index: 2;
}

/* ── Imagen: llena el item, object-fit:cover ── */
#serviciosCarousel .carousel-inner > .item > img,
#serviciosCarousel .carousel-inner > .item > img.img-responsive {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  max-width: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
  border-radius: 0 !important;
}

/* ── Controles: botones circulares con acento azul ── */
#serviciosCarousel .carousel-control {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 58px;
  opacity: 0;
  background: none !important;
  -webkit-transition: opacity 0.26s ease !important;
  transition: opacity 0.26s ease !important;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

#serviciosCarousel:hover .carousel-control {
  opacity: 1;
}

/* Icono dentro del botón de control */
#serviciosCarousel .carousel-control .glyphicon {
  font-size: 18px;
  color: #fff;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  background: rgba(60, 73, 195, 0.82);
  border-radius: 50%;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.38);
  -webkit-transition:
    background 0.22s ease,
    -webkit-transform 0.22s ease;
  transition:
    background 0.22s ease,
    transform 0.22s ease;
  position: static;
  margin-top: 0;
}

#serviciosCarousel .carousel-control:hover .glyphicon {
  background: var(--pri);
  -webkit-transform: scale(1.12);
  transform: scale(1.12);
}

#serviciosCarousel .carousel-control.left {
  left: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 100%
  ) !important;
}

#serviciosCarousel .carousel-control.right {
  right: 0;
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 0.18) 0%,
    transparent 100%
  ) !important;
}

/* ── Indicadores (puntos) ── */
#serviciosCarousel .carousel-indicators {
  bottom: 16px;
  z-index: 15;
  margin: 0;
  padding: 0;
}

#serviciosCarousel .carousel-indicators li {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  margin: 0 5px;
  cursor: pointer;
  display: inline-block;
  -webkit-transition:
    background 0.22s ease,
    -webkit-transform 0.22s ease;
  transition:
    background 0.22s ease,
    transform 0.22s ease;
}

#serviciosCarousel .carousel-indicators .active {
  background: #fff;
  -webkit-transform: scale(1.4);
  transform: scale(1.4);
}

/* ── Alturas responsivas ── */
@media (max-width: 992px) {
  #serviciosCarousel .carousel-inner {
    height: 340px;
  }
}

@media (max-width: 768px) {
  #serviciosCarousel .carousel-inner {
    height: 240px;
  }
  #serviciosCarousel {
    border-radius: 12px;
  }
  .servicios-carousel-wrapper {
    margin: 28px auto 16px;
  }
  #serviciosCarousel .carousel-control {
    width: 42px;
  }
  #serviciosCarousel .carousel-control .glyphicon {
    width: 34px;
    height: 34px;
    line-height: 34px;
    font-size: 15px;
  }
  #serviciosCarousel .carousel-indicators li {
    width: 7px;
    height: 7px;
  }
}

@media (max-width: 480px) {
  #serviciosCarousel .carousel-inner {
    height: 195px;
  }
  .servicios-carousel-wrapper {
    margin: 20px auto 10px;
  }
}

/* ── PÁGINAS DE PRODUCTOS (impresionlibros, impresiontesis) ── */
.page-product-header {
  padding: 50px 0 30px;
}

.page-product-title {
  font-size: clamp(28px, 4.5vw, 50px) !important;
  font-weight: 800 !important;
  color: var(--pri) !important;
  border-bottom: 4px solid var(--accent);
  padding-bottom: 14px;
  margin-bottom: 30px !important;
  display: inline-block;
}

h1[style*="color: #3c49c3"] {
  font-weight: 800 !important;
}

/* Imagen principal del producto */
.col-md-6 img.img-responsive {
  border-radius: var(--r-md);
  box-shadow: var(--sh-md);
  max-width: 100%;
  display: block;
}

/* Texto de descripción del producto */
.col-md-6 p[style*="color: black"],
.col-md-6 p:not([style]) {
  font-size: 16.5px;
  line-height: 1.8;
  color: var(--txt-med) !important;
}

/* Lista de características */
ul[style*="display: block"] {
  list-style: none !important;
  padding: 0 !important;
  margin: 16px 0 !important;
}

ul[style*="display: block"] li {
  margin-bottom: 8px !important;
}

ul[style*="display: block"] li h2 {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  background: var(--pri) !important;
  border-left: 5px solid var(--accent);
  padding: 11px 18px !important;
  border-radius: var(--r-sm) !important;
  margin: 0 0 6px !important;
  transition: all var(--ease);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

ul[style*="display: block"] li h2:hover {
  background: var(--pri-dark) !important;
  padding-left: 24px !important;
}

/* Sección cotización */
h2[style*="color: #3c49c3"] {
  font-weight: 800 !important;
  font-size: 22px !important;
  color: var(--pri) !important;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 10px;
  margin: 30px 0 20px !important;
}

.cotizacion-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cotizacion-list li h3 {
  font-size: 17px !important;
  font-weight: 400 !important;
  color: var(--txt-dark) !important;
  background: rgba(212, 160, 23, 0.07);
  border-left: 3px solid var(--accent);
  padding: 9px 14px !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  margin-bottom: 8px !important;
}

/* Enviamos + Desde 1975 */
h1[style*="¡¡¡ENVIAMOS"] {
  font-size: clamp(20px, 3.5vw, 36px) !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, var(--pri) 0%, var(--pri-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 24px 0 8px !important;
}

p[style*="Desde 1975"] {
  background: linear-gradient(
    135deg,
    rgba(60, 73, 195, 0.08) 0%,
    rgba(212, 160, 23, 0.12) 100%
  ) !important;
  border-left: 4px solid var(--pri) !important;
  padding: 12px 20px !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0 !important;
  display: inline-block !important;
  font-weight: 700 !important;
  color: var(--pri) !important;
  font-size: 20px !important;
  margin: 5px 0 20px !important;
}

/* Imagen toga (tesis) */
.toga-img-container {
  margin: 32px auto 28px !important;
  max-width: 100%;
  text-align: center;
}

.toga-img-container img {
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-md) !important;
  max-height: 660px;
  object-fit: contain;
  width: 100%;
  background: #f5f5f0;
}

/* ── GALERÍA MUESTRARIO ───────────────────────────── */
.muestrario-section {
  background: linear-gradient(160deg, #f0f2fb 0%, #e8eaf6 100%) !important;
  padding: 70px 0 60px !important;
}

.muestrario-title {
  font-size: clamp(26px, 3.5vw, 38px) !important;
  font-weight: 800 !important;
  color: var(--pri) !important;
  text-align: center !important;
  margin-bottom: 50px !important;
}

.muestrario-title::after {
  content: "" !important;
  display: block !important;
  width: 70px !important;
  height: 4px !important;
  background: linear-gradient(to right, var(--pri), var(--accent)) !important;
  border-radius: 4px !important;
  margin: 14px auto 0 !important;
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.galeria-item {
  border-radius: var(--r-md) !important;
  overflow: hidden !important;
  box-shadow: var(--sh-sm) !important;
  transition: all var(--ease) !important;
  background: #edf0f7 !important;
  aspect-ratio: 1/1 !important;
  cursor: zoom-in;
}

.galeria-item:hover {
  transform: scale(1.04) !important;
  box-shadow: var(--sh-md) !important;
  z-index: 2;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center center !important;
  transition: transform 0.5s ease !important;
}

.galeria-item:hover img {
  transform: scale(1.06) !important;
}

/* ── ENCUADERNACIÓN ──────────────────────────────── */
.list-services {
  background: var(--white) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-sm) !important;
  padding: 22px !important;
  margin-bottom: 22px !important;
  border: 1px solid var(--border) !important;
  transition: all var(--ease);
  overflow: hidden;
}

.list-services:hover {
  box-shadow: var(--sh-md) !important;
  border-color: var(--pri) !important;
  transform: translateY(-3px);
}

.list-services img {
  border-radius: var(--r-sm) !important;
  width: 100% !important;
  margin-bottom: 14px;
}

.list-services h3 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: var(--pri) !important;
  text-shadow: none !important;
  margin: 10px 0 6px !important;
}

.list-services p {
  font-size: 17px !important;
  color: var(--txt-med) !important;
  text-shadow: none !important;
  line-height: 1.75 !important;
}

/* Lista de tipos de encuadernación */
#fh5co-about .heading-section .col-sm-6 h3 {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--txt-dark) !important;
  padding: 9px 0 9px 16px;
  border-left: 3px solid var(--pri);
  margin-bottom: 8px !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(60, 73, 195, 0.04);
  text-align: left !important;
  text-shadow: none !important;
  transition: all var(--ease);
}

#fh5co-about .heading-section .col-sm-6 h3:hover {
  background: rgba(60, 73, 195, 0.1);
  padding-left: 22px;
}

/* ── SERVICIOS DE IMPRENTA ───────────────────────── */
.heading-section .col-sm-6 h4 {
  font-size: 14.5px !important;
  font-weight: 500 !important;
  color: var(--txt-dark) !important;
  padding: 7px 12px 7px 14px;
  border-left: 3px solid var(--accent);
  margin-bottom: 8px !important;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(212, 160, 23, 0.05);
  transition: all var(--ease);
}

.heading-section .col-sm-6 h4:hover {
  background: rgba(212, 160, 23, 0.12);
  padding-left: 20px;
}

/* ── CONTACTO ────────────────────────────────────── */
#fh5co-contact {
  background: var(--bg) !important;
  padding: 0 !important;
}

#fh5co-contact > div[style*="background-color: #ffff00"] {
  background: linear-gradient(135deg, #f9d423 0%, #e8a800 100%) !important;
}

.contact-info-section {
  background: var(--white) !important;
  border-radius: var(--r-md) !important;
  box-shadow: var(--sh-md) !important;
  padding: 36px !important;
  border: 1px solid var(--border) !important;
  margin-bottom: 24px;
  transition: all var(--ease);
}

.contact-info-section:hover {
  box-shadow: var(--sh-pri) !important;
  border-color: var(--pri) !important;
}

.contact-info-section h2 {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: var(--pri) !important;
  border-bottom: 3px solid var(--accent);
  padding-bottom: 14px;
  margin-bottom: 24px !important;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: background var(--ease);
}

.contact-info-item:last-child {
  border-bottom: none;
}

.contact-info-icon {
  font-size: 20px !important;
  color: var(--pri) !important;
  background: rgba(60, 73, 195, 0.1);
  width: 42px !important;
  height: 42px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0;
  margin-top: 0 !important;
}

.contact-info-text {
  font-size: 16px !important;
  color: var(--txt-dark) !important;
  line-height: 1.6 !important;
}

.contact-info-text strong {
  font-size: 11px !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  color: var(--pri) !important;
  font-weight: 800 !important;
  display: block !important;
  margin-bottom: 3px !important;
}

/* Tarjetas de pago */
.payment-cards-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 16px !important;
}

.payment-card-badge {
  border-radius: var(--r-sm) !important;
  padding: 6px 14px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  box-shadow: var(--sh-sm) !important;
  border: 2px solid !important;
  transition: all var(--ease) !important;
}

.payment-card-badge:hover {
  transform: translateY(-2px) !important;
}
.payment-card-badge.visa {
  color: #1a1f71 !important;
  border-color: #1a1f71 !important;
}
.payment-card-badge.mastercard {
  color: #eb001b !important;
  border-color: #eb001b !important;
}
.payment-card-badge.amex {
  color: #007bc1 !important;
  border-color: #007bc1 !important;
}

/* ── FOOTER ──────────────────────────────────────── */
#fh5co-footer {
  background: linear-gradient(
    160deg,
    var(--pri-dark) 0%,
    #283593 60%,
    var(--pri) 100%
  ) !important;
  padding: 40px 0 !important;
}

#fh5co-footer .row.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 24px;
  margin-top: 10px;
}

#fh5co-footer small.block {
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 13px;
  display: block;
  margin-bottom: 5px;
}

#fh5co-footer small.block a {
  color: var(--accent-lt) !important;
  text-decoration: none;
  transition: color var(--ease);
}

#fh5co-footer small.block a:hover {
  color: #fff !important;
}

/* ── GO TO TOP ───────────────────────────────────── */
.gototop .js-gotop {
  background: linear-gradient(
    135deg,
    var(--pri) 0%,
    var(--pri-dark) 100%
  ) !important;
  box-shadow: var(--sh-md) !important;
  border-radius: 50% !important;
  width: 46px !important;
  height: 46px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all var(--ease) !important;
}

.gototop .js-gotop:hover {
  transform: translateY(-4px) !important;
  box-shadow: var(--sh-pri) !important;
}

/* ── IMÁGENES RESPONSIVAS GLOBAL ─────────────────── */
img {
  max-width: 100%;
  height: auto;
}

/* ── TÍTULO "NOSOTROS" (servicios.html) ──────────── */
h1[style*="font-size: 60px"] {
  font-size: clamp(28px, 6vw, 56px) !important;
}

/* ── CTA BAND TEXTO RESPONSIVO ───────────────────── */
.cta-band p {
  font-size: clamp(15px, 3.5vw, 28px) !important;
}

/* ── BOTÓN CATÁLOGO RESPONSIVO ───────────────────── */
.btn[style*="width: 300px"] {
  width: 100% !important;
  max-width: 300px !important;
}

/* ── TABLET (769px – 1024px) ─────────────────────── */
@media (max-width: 1024px) {
  .fh5co-nav {
    padding: 0 3% !important;
  }
}

/* ── MOBILE GENERAL (≤768px) ─────────────────────── */
@media (max-width: 768px) {
  /* Header móvil */
  #page {
    padding-top: 103px !important;
  }
  .pg-header__inner {
    height: 105px !important;
    padding: 0 16px !important;
  }
  .pg-logo {
    padding: 5px 10px !important;
  }
  .pg-logo img {
    height: 90px !important;
  }
  .pg-nav {
    display: none !important;
  }
  .pg-hamburger {
    display: flex !important;
  }

  /* Flickity cells: 2 visibles en móvil */
  .carousel-cell {
    width: 60% !important;
    height: 220px !important;
  }

  /* Sección ventajas: 2 columnas */
  .ventajas-section {
    padding: 36px 0 28px !important;
  }
  .ventaja-card {
    padding: 22px 14px !important;
    margin-bottom: 14px !important;
  }
  .ventaja-card img {
    width: 54px !important;
    height: 54px !important;
    margin-bottom: 12px !important;
  }
  .ventaja-card h3 {
    font-size: 16px !important;
  }
  .ventaja-card p {
    font-size: 16.5px !important;
  }

  /* CTA banda */
  .cta-band {
    padding: 30px 0 !important;
  }
  .cta-band .col-md-6 {
    width: 100% !important;
    float: none !important;
  }
  .cta-band .cta-buttons {
    padding: 14px 0 0 !important;
  }
  .btn-block {
    margin-bottom: 8px !important;
  }

  /* Productos grid: 2 columnas */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding: 10px 0 24px !important;
  }
  .product-card .title {
    font-size: 13px !important;
  }
  .product-card .label {
    font-size: 9px !important;
    padding: 2px 7px !important;
  }

  /* Sección Conózcanos */
  #fh5co-about {
    padding: 30px 0 20px !important;
  }
  #fh5co-about h1 {
    font-size: clamp(24px, 7vw, 36px) !important;
    padding-left: 12px !important;
  }
  #fh5co-about p {
    font-size: 17px !important;
  }
  #fh5co-about .about-text-block p {
    font-size: 17px !important;
  }

  /* Imágenes de producto */
  .col-md-6 img.img-responsive {
    margin-bottom: 16px;
  }

  /* list-services (encuadernación) */
  .list-services {
    padding: 14px !important;
    margin-bottom: 14px !important;
  }
  .list-services h3 {
    font-size: 17px !important;
  }
  .list-services p {
    font-size: 16px !important;
  }

  /* Galería */
  .muestrario-section {
    padding: 36px 0 28px !important;
  }
  .muestrario-title {
    font-size: 22px !important;
    margin-bottom: 24px !important;
  }
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* Encuadernación lista h3 */
  #fh5co-about .heading-section .col-sm-6 h3 {
    font-size: 14px !important;
    padding: 7px 10px 7px 12px !important;
  }

  /* Servicios de imprenta h4 */
  .heading-section .col-sm-6 h4 {
    font-size: 13px !important;
    padding: 6px 10px 6px 12px !important;
  }

  /* Texto de cotización */
  h2[style*="color: #3c49c3"] {
    font-size: 18px !important;
  }
  .cotizacion-list li h3 {
    font-size: 15px !important;
  }
  ul[style*="display: block"] li h2 {
    font-size: 16px !important;
    padding: 9px 14px !important;
  }

  /* Texto descriptivo productos */
  .content-text-lg {
    font-size: 17px !important;
  }

  /* ENVIAMOS + Desde 1975 */
  h1[style*="¡¡¡ENVIAMOS"] {
    font-size: 19px !important;
  }
  p[style*="Desde 1975"] {
    font-size: 16px !important;
    padding: 10px 14px !important;
  }

  /* Toga imagen */
  .toga-img-container {
    max-width: 100% !important;
  }
  .toga-img-container img {
    max-height: 420px !important;
  }

  /* Contact */
  #fh5co-contact .container {
    padding: 0 14px !important;
  }
  .contact-info-section {
    padding: 20px 14px !important;
    margin-bottom: 14px !important;
  }
  .contact-info-section h2 {
    font-size: 18px !important;
  }
  .contact-info-text {
    font-size: 14px !important;
  }
  .contact-info-icon {
    width: 34px !important;
    height: 34px !important;
    font-size: 16px !important;
  }
  .payment-cards-container {
    gap: 7px !important;
  }
  .payment-card-badge {
    font-size: 11px !important;
    padding: 4px 10px !important;
  }

  /* Footer */
  #fh5co-footer {
    padding: 24px 0 !important;
  }
  #fh5co-footer small.block {
    font-size: 12px !important;
  }

  /* Go to top */
  .gototop .js-gotop {
    width: 38px !important;
    height: 38px !important;
  }

  /* Containers: padding horizontal mínimo */
  .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .container-fluid {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* ── PEQUEÑO (≤480px) ────────────────────────────── */
@media (max-width: 480px) {
  .products-grid {
    gap: 8px !important;
  }
  .product-card .title {
    font-size: 12px !important;
  }
  .product-card .label {
    display: none !important;
  }
  #page {
    padding-top: 93px !important;
  }
  .carousel-cell {
    width: 80% !important;
    height: 180px !important;
  }
  .ventaja-card h3 {
    font-size: 15px !important;
  }
  .ventaja-card p {
    font-size: 15.5px !important;
  }
  .pg-header__inner {
    padding: 0 12px !important;
    height: 90px !important;
  }
  .pg-logo {
    padding: 4px 8px !important;
  }
  .pg-logo img {
    height: 70px !important;
  }
  .galeria-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 6px !important;
  }
  h1 {
    font-size: clamp(22px, 6vw, 32px) !important;
  }
  h2 {
    font-size: clamp(18px, 5vw, 26px) !important;
  }
  h3 {
    font-size: clamp(15px, 4.5vw, 20px) !important;
  }
  .cta-band .container {
    padding: 0 12px !important;
  }
}

/* ── MUY PEQUEÑO (≤360px) ────────────────────────── */
@media (max-width: 360px) {
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  .ventaja-card {
    margin-bottom: 10px !important;
  }
}

/* ── ANIMACIONES ENTRADA ─────────────────────────── */
.fh5co-loader {
  background: #fff !important;
}

@keyframes pgFadeIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animated-fast {
  animation: pgFadeIn 0.55s ease-out both !important;
}

/* ── SCROLL STICKY HEADER SHADOW ─────────────────── */
.pg-header.scrolled {
  box-shadow: 0 6px 32px rgba(26, 35, 126, 0.6) !important;
}

/* ── LIGHTBOX ────────────────────────────────────── */
.pg-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.pg-lightbox.is-open {
  display: flex;
}

.pg-lightbox__img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  display: block;
}

.pg-lightbox__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  line-height: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition:
    opacity 0.2s,
    background 0.2s;
  z-index: 10001;
}

.pg-lightbox__close:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.25);
}

.pg-lightbox__prev,
.pg-lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition:
    opacity 0.2s,
    background 0.2s;
  z-index: 10001;
}

.pg-lightbox__prev:hover,
.pg-lightbox__next:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.26);
}

.pg-lightbox__prev {
  left: 16px;
}
.pg-lightbox__next {
  right: 16px;
}

@media (max-width: 480px) {
  .pg-lightbox__prev {
    left: 6px;
  }
  .pg-lightbox__next {
    right: 6px;
  }
  .pg-lightbox__prev,
  .pg-lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 24px;
  }
  .pg-lightbox__close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 22px;
  }
}

/* ── PLACEHOLDER DE IMAGEN FUTURA ────────────────── */
.future-image-placeholder {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  border: 2px dashed #7986cb;
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  padding: 36px 20px;
  text-align: center;
  width: 100%;
}

/* Los placeholders dentro del carrusel principal deben llenar
   la altura completa del item (definida por carousel-inner). */
#myCarousel .future-image-placeholder {
  min-height: unset !important;
  height: 100% !important;
  width: 100% !important;
  flex: 1 !important;
  border-radius: 0 !important;
  border: none !important;
  background: linear-gradient(160deg, #d9ddf5 0%, #b8bfef 100%) !important;
}

/* El wrapper del placeholder en servicios.html ocupa el mismo
   espacio visual que ocupaba el carrusel eliminado. */
.servicios-carousel-wrapper .future-image-placeholder {
  min-height: 320px;
  border-radius: 18px !important;
}

.future-image-placeholder .placeholder-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5c6bc0;
  background: rgba(92, 107, 192, 0.12);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
  display: inline-block;
}

.future-image-placeholder .placeholder-title {
  font-size: 16px;
  font-weight: 700;
  color: #3949ab;
  margin: 0 0 8px;
}

.future-image-placeholder .placeholder-desc {
  font-size: 13px;
  color: #7986cb;
  margin: 0;
  max-width: 320px;
  line-height: 1.6;
}

/* Placeholder de item de galería */
.galeria-item--placeholder {
  background: linear-gradient(135deg, #e8eaf6 0%, #dde1f5 100%) !important;
  border: 2px dashed #9fa8da !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.galeria-item--placeholder .placeholder-label {
  font-size: 11px;
  font-weight: 700;
  color: #5c6bc0;
  text-align: center;
  padding: 8px;
  line-height: 1.4;
}

/* ── TEXTO DESCRIPTIVO TESIS/LIBROS ──────────────── */
.content-text-lg {
  font-size: 19px !important;
  line-height: 1.85 !important;
  color: var(--txt-dark) !important;
}

/* ── NOSOTROS — TEXTO PÁRRAFOS (servicios.html) ───── */
#fh5co-about .about-text-block p {
  font-size: 19px !important;
  line-height: 1.9 !important;
}
