/* Header centrado optimizado para Cartelia */

/* Preloader con fondo negro */
.preloader,
#preloader {
  background-color: #262626 !important;
  transition: 4s all ease !important;
}

#preloader.loaded {
  opacity: 0 !important;
  visibility: hidden !important;
  z-index: -1 !important;
  transition: 4s all ease !important;
}

.page-loader-logo {
  background-color: #262626 !important;
}

.preloader .page-loader-logo .brand .brand__name img {
  height: 120px !important;
  width: auto !important;
  max-width: none !important;
  min-height: 120px !important;
}

/* Forzar también con atributos */
.preloader img[alt=""] {
  height: 120px !important;
  width: auto !important;
  max-width: none !important;
}

.page-loader-body {
  background-color: #262626 !important;
}

/* Custom Header - Logo arriba, navegación abajo */
.custom-header {
  background-color: #262626 !important;
  text-align: center !important;
  position: relative !important;
  height: 120px !important;
  z-index: 1000 !important;
  padding-top: 5px !important;
  padding-bottom: 5px !important;
}

.custom-header-inner {
  position: relative !important;
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
}

.custom-logo {
  text-align: center !important;
  margin-bottom: 5px !important;
}

.custom-logo a {
  display: inline-block !important;
  transform: scale(2.2) !important;
  transform-origin: center center !important;
}

.custom-logo img {
  height: 80px !important;
  width: auto !important;
  max-width: none !important;
}

.custom-nav {
  text-align: center !important;
  margin-top: 2px !important;
  position: relative !important;
  z-index: 10 !important;
}

.custom-nav ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: inline-block !important;
}

.custom-nav li {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.custom-nav li a {
  display: inline-block !important;
  padding: 5px 15px !important;
  font-size: 14px !important;
  color: #fff !important;
  text-decoration: none !important;
  font-family: "Roboto", Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: .1em !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}

.custom-nav li.active a {
  color: #ffa500 !important;
}

.custom-nav li a:hover {
  color: #ffa500 !important;
}

/* Ocultar elementos del template viejo */
.page-header,
.rd-navbar-wrap,
.rd-navbar,
.rd-navbar-main-outer,
.rd-navbar-main {
  display: none !important;
}

.rd-navbar-main {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  display: block !important;
  position: relative !important;
  height: 69px !important;
}

.rd-navbar-brand-centered {
  display: block !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: 100% !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  z-index: 10 !important;
}

.rd-navbar-brand,
.rd-navbar-brand a,
.brand {
  display: inline-block !important;
  text-align: center !important;
  margin: 0 auto !important;
  float: none !important;
}

.rd-navbar-brand img,
.brand img,
.brand__name img {
  height: 162.5px !important;
  width: auto !important;
  max-width: none !important;
}

.rd-navbar-nav-wrap-centered {
  display: block !important;
  text-align: center !important;
  width: 100% !important;
  float: none !important;
  position: absolute !important;
  top: 52px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  z-index: 15 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rd-navbar-nav {
  display: inline-block !important;
  text-align: center !important;
  float: none !important;
  margin: 0 auto !important;
}

.rd-navbar-nav li {
  display: inline-block !important;
  float: none !important;
  text-align: center !important;
}

.rd-navbar-nav li a {
  color: #fff !important;
  padding: 10px 20px !important;
}

.rd-navbar-nav li.active a {
  color: #ffa500 !important;
}

.collection-desc {
  font-size: 14px !important;
  color: #777 !important;
  margin-top: 8px !important;
  line-height: 1.5 !important;
}

.clientes-subtitle {
  max-width: 650px;
  margin: 12px auto 40px;
  color: #777;
  font-size: 16px;
}

.client-logo {
  background: #ffffff;
  padding: 25px;
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.client-logo img {
  max-width: 160px;
  max-height: 80px;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.client-logo:hover img {
  filter: grayscale(0%);
  opacity: 1;
}


.logo-preview-banner {
  max-width: 650px;
  margin: 24px auto 45px;
  padding: 16px 22px;
  background: linear-gradient(90deg, #222222, #333333);
  border-left: 5px solid #f5a000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.logo-preview-banner__icon {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background: #f5a000;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: bold;
}

.logo-preview-banner__text {
  flex: 1;
  text-align: left;
}

.logo-preview-banner__text strong {
  display: block;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 2px;
}

.logo-preview-banner__text span {
  display: block;
  color: #d6d6d6;
  font-size: 11px;
  line-height: 1.3;
}

.logo-preview-banner__btn {
  background: #f5a000;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  text-decoration: none;
  white-space: nowrap;
}

.logo-preview-banner__btn:hover {
  background: #ffffff;
  color: #222222;
}


@media (max-width: 767px) {
  .logo-preview-banner {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }

  .logo-preview-banner__text {
    text-align: center;
  }
}




.section.text-center h2+.logo-preview-banner {
  margin-top: 5px;
}


.section-carteleria {
  padding-top: 45px;
}

.section-carteleria h2 {
  margin-bottom: 12px;
}

.section-carteleria .logo-preview-banner {
  margin-top: 0;
  margin-bottom: 45px;
}


.section-carteleria {
  padding-top: 20px !important;
}


.section-carteleria {
  padding-top: 20px !important;
}

.section-carteleria h2 {
  margin-bottom: 18px;
}

.section-carteleria .logo-preview-banner {
  margin-top: 0;
  margin-bottom: 45px;
}


.button-whatsapp {
  background-color: #25D366;
  color: #fff;
  font-weight: bold;
}

.button-whatsapp i {
  margin-right: 8px;
  font-size: 16px;
}

.button-whatsapp:hover {
  background-color: #1ebe5d;
  color: #fff;
}


/* =========================================
   PERSONALIZAR PAGE
   ========================================= */

.personalizar-section {
  padding: 60px 0;
}

/* --- HERO --- */
.personalizar-intro {
  text-align: center;
  padding: 70px 0 60px;
  background-color: #ffffff !important;
}

.personalizar-intro__badge {
  display: inline-block;
  background: #f5a000;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.personalizar-intro__title {
  font-size: 36px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 18px;
  line-height: 1.2;
}

.personalizar-intro__text {
  font-size: 16px;
  color: #555555;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- DOS OPCIONES --- */
.personalizar-actions {
  padding: 55px 0;
}

.personalizar-actions__grid {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.personalizar-card {
  background: #ffffff;
  border: 2px solid #ebebeb;
  border-top: 4px solid #f5a000;
  padding: 38px 32px 32px;
  flex: 1 1 300px;
  max-width: 420px;
  text-align: center;
  transition: box-shadow 0.25s ease;
}

.personalizar-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}

.personalizar-card__icon {
  font-size: 36px;
  margin-bottom: 16px;
  line-height: 1;
}

.personalizar-card__title {
  font-size: 20px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 12px;
}

.personalizar-card__text {
  font-size: 14px;
  color: #666666;
  line-height: 1.6;
  margin-bottom: 24px;
}

.personalizar-card__btn {
  display: inline-block;
  cursor: pointer;
}

.personalizar-card__hint {
  font-size: 11px;
  color: #aaaaaa;
  margin-top: 10px;
  margin-bottom: 0;
}

.personalizar-file-input {
  display: none;
}

/* --- FORMULARIO CREAR LOGO --- */
.logo-form-section {
  padding: 60px 0;
}

.logo-form-box {
  max-width: 760px;
  margin: 0 auto;
  background: #ffffff;
  padding: 45px 50px;
  border-left: 5px solid #f5a000;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.logo-form-box__title {
  font-size: 28px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 10px;
}

.logo-form-box__desc {
  font-size: 14px;
  color: #777777;
  margin-bottom: 30px;
  line-height: 1.6;
}

.logo-form-box__select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23999' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  cursor: pointer;
}

.logo-form-box__select-label {
  pointer-events: none;
}

.logo-form-box__submit {
  min-width: 220px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .05em;
  margin-top: 10px;
}

/* --- MODELOS / PRODUCTOS --- */
.personalizar-models__subtitle {
  font-size: 15px;
  color: #777777;
  margin-top: 6px;
  margin-bottom: 0;
}

.cartel-product-card {
  background: #ffffff;
  border: 1px solid #e8e8e8;
  margin-bottom: 30px;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
  text-align: center;
}

.cartel-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
  transform: translateY(-3px);
}

.cartel-product-card__img-wrap {
  overflow: hidden;
}

.cartel-product-card__img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.cartel-product-card:hover .cartel-product-card__img {
  transform: scale(1.04);
}

.cartel-product-card__body {
  padding: 20px 16px 24px;
}

.cartel-product-card__name {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 6px;
}

.cartel-product-card__detail {
  font-size: 12px;
  color: #888888;
  margin-bottom: 16px;
  line-height: 1.5;
}

.cartel-product-card__btn {
  font-size: 12px;
  padding: 7px 20px;
  letter-spacing: .06em;
}

/* --- PALETA DE COLORES --- */
.color-palette-label {
  font-size: 13px;
  color: #555555;
  margin-bottom: 10px;
  font-weight: 600;
}

.color-palette-hint {
  font-size: 11px;
  color: #aaaaaa;
  font-weight: 400;
}

.color-palette {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.color-swatch {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  padding: 0;
  outline: none;
}

.color-swatch:hover {
  transform: scale(1.15);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.color-swatch.selected {
  border-color: #f5a000;
  box-shadow: 0 0 0 3px rgba(245, 160, 0, 0.35);
  transform: scale(1.18);
}

.color-swatch.selected::after {
  content: '✓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  line-height: 32px;
  text-align: center;
}

/* --- MODAL CREAR LOGO --- */
.logo-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.logo-modal-overlay.active {
  display: flex;
}

.logo-modal {
  background: #ffffff;
  border-left: 5px solid #f5a000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 45px 50px;
  position: relative;
}

.logo-modal__close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  font-size: 26px;
  color: #888888;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.logo-modal__close:hover {
  color: #222222;
}

/* --- RESPONSIVE --- */
@media (max-width: 767px) {
  .custom-nav li a {
    font-size: 13px !important;
    padding: 4px 10px !important;
    letter-spacing: .06em !important;
  }
}

@media (max-width: 480px) {
  .custom-nav li a {
    font-size: 11.5px !important;
    padding: 4px 7px !important;
    letter-spacing: .03em !important;
  }
}

@media (max-width: 360px) {
  .custom-nav li a {
    font-size: 10px !important;
    padding: 4px 5px !important;
    letter-spacing: .01em !important;
  }
}

@media (max-width: 767px) {
  .personalizar-intro__title {
    font-size: 26px;
  }

  .personalizar-intro__text {
    font-size: 14px;
  }

  .personalizar-actions__grid {
    flex-direction: column;
    align-items: stretch;
  }

  .personalizar-card {
    max-width: 100%;
    padding: 30px 22px 26px;
  }

  .logo-form-box {
    padding: 30px 20px;
  }

  .logo-form-box__title {
    font-size: 22px;
  }

  .logo-form-box__submit {
    width: 100%;
  }

  .logo-modal {
    padding: 30px 20px;
  }

  .logo-modal__close {
    top: 12px;
    right: 14px;
  }

  .cartel-product-card__img {
    height: 160px;
  }
}
