/* ==========================================================================
   Cerrajería Total - Custom Styles & Print Optimization (Máximo 2 prints)
   ========================================================================== */

/* Suavizado de tipografía */
body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Transición suave para las diapositivas de los CTAs rotativos */
.cta-slide {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Transición suave para el slider de imágenes de trabajos */
.gallery-slide {
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-dot {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efectos hover sutiles en tarjetas */
.service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-2px);
}

/* Scrollbar estilizada */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #0f172a;
}
::-webkit-scrollbar-thumb {
  background: #fe3001;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #df2800;
}

/* ==========================================================================
   ESTILOS DE IMPRESIÓN (PRINT) - OPTIMIZADO PARA MÁXIMO 2 PÁGINAS
   ========================================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 0.8cm;
  }

  body {
    background-color: #ffffff !important;
    color: #111827 !important;
    font-size: 10.5pt;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Ocultar elementos flotantes y sliders en papel */
  .print\:hidden,
  .gallery-controls,
  #imageGallerySlider,
  #waFloatingTooltip,
  #copyToast,
  iframe,
  aside {
    display: none !important;
  }

  /* Página 1: Cabecera, Hero y CTAs */
  .print-page:first-of-type {
    page-break-after: always;
    break-after: page;
    background: #111827 !important;
    color: #ffffff !important;
    padding-top: 0.5rem !important;
    padding-bottom: 1.5rem !important;
    min-height: auto !important;
  }

  /* Página 2: Servicios, Consorcios, Ubicación y Horarios */
  .print-page:nth-of-type(2) {
    page-break-before: always;
    break-before: page;
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  /* Evitar quiebres huérfanos dentro de las tarjetas */
  .service-card,
  article,
  section {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  a {
    text-decoration: none !important;
  }
}
