@tailwind base;
@tailwind components;
@tailwind utilities;

:where([class^="ri-"])::before {
  content: "\f3c2";
}

/* Optimización de fuentes para mejor rendimiento */

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
}

/* .hero-section {
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0.95) 20%,
            rgba(255, 255, 255, 0.5) 50%,
            rgba(255, 255, 255, 0) 100%),
        url('https://trincajes.com/img/portada-3-6.png');
    background-size: contain; 
    background-repeat: no-repeat;
    background-position: center;
} */


/* Hero section optimizado para LCP */
.hero-section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Versión móvil - imagen de fondo */
@media (max-width: 767px) {
  .hero-section img {
    object-position: right center;
    object-fit: cover;
  }
}

/* Versión desktop - imagen de fondo */
@media (min-width: 768px) {
  .hero-section img {
    object-position: center;
    object-fit: cover;
  }
}

.hero-section-sacEstandar {
  background-image: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%),
    url('https://trincajes.com/img/sacos-standard.webp');
  background-size: cover;
  background-position: center;
}

.hero-section-sacEspeciales {
  background-image: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%),
    url('https://trincajes.com/img/sacos-especiales.webp');
  background-size: cover;
  background-position: center;
}

.hero-section-accesorios {
  background-image: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 20%,
      rgba(255, 255, 255, 0.5) 50%,
      rgba(255, 255, 255, 0) 100%),
    url('https://trincajes.com/img/accesorios-ban.webp');
  background-size: cover;
  background-position: center;
}

.custom-input {
  @apply border-none bg-gray-50 rounded px-4 py-3 w-full focus:outline-none focus:ring-2 focus:ring-primary/50;
}

.custom-checkbox {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #0085AC;
  border-radius: 4px;
  background-color: white;
  display: inline-block;
  position: relative;
  margin-right: 8px;
  vertical-align: middle;
  cursor: pointer;
}

.custom-checkbox:checked {
  background-color: #0085AC;
}

.custom-checkbox:checked::after {
  content: "";
  position: absolute;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  top: 2px;
  left: 6px;
  transform: rotate(45deg);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.pt-30 {
  padding-top: 20rem;
}

.faq-grid>div {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* CSS PARA LA BARRA DE NAVEGACION MOBIL */
/* Para transiciones suaves */
.transition-all {
  transition-property: all;
}

/* Asegurar que el menú móvil no desplace el contenido */
html {
  scroll-padding-top: 4rem;
  /* Altura aproximada de tu navbar */
}