html, body {
  overflow-x: hidden;
  width: 100%;
}

/* Main stylesheet for Mapa Verde de la Moda */
/* Custom Tailwind configuration and additional styles */

/* Include Tailwind CSS */
@import url('https://cdn.tailwindcss.com');

/* Custom CSS Variables for ULSA Colors */
:root {
    --ulsa-green: #238935;
    --ulsa-gray: #333333;
    --blue: #338ab3;
}

#carousel img {
  transition: transform 0.7s ease, opacity 0.7s ease;
}

/* Custom utility classes */
.text-ulsa-green {
    color: var(--ulsa-green);
}

.text-blue {
    color: var(--blue);
}

.bg-ulsa-green {
    background-color: var(--ulsa-green);
}

.border-ulsa-green {
    border-color: var(--ulsa-green);
}

.text-ulsa-gray {
    color: var(--ulsa-gray);
}

.bg-ulsa-gray {
    background-color: var(--ulsa-gray);
}

.border-ulsa-gray {
    border-color: var(--ulsa-gray);
}

/* Custom hover transitions */
.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.transition-shadow {
    transition: box-shadow 0.3s ease;
}

/* Custom components */
.filter-btn {
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--ulsa-green);
    color: white;
    border-color: var(--ulsa-green);
}

.location-card {
    transition: box-shadow 0.3s ease;
}

.location-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Form styling */
.form-content {
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Progress bars */
.progress-bar {
    transition: width 1s ease-out;
}

@media (max-width: 880px) {
    .force-desktop {
        display: none !important;
    }

    nav .md\:hidden {
        display: flex !important;
    }
}

/* Mobile responsiveness fixes */
@media (max-width: 768px) {
    .hero-text {
        font-size: 2.5rem;
    }
    
    .nav-logo {
        height: 2rem;
    }
}

@media (max-width: 640px) {
    .hero-text {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: var(--ulsa-gray) !important;
    }
    
    .text-gray-500 {
        color: var(--ulsa-gray) !important;
    }
}

/* Focus styles for accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--ulsa-green);
    outline-offset: 2px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--ulsa-green);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1a6b2a;
}

/* Ajustar flechas en pantallas pequeñas */
@media (max-width: 768px) {
  #prev,
  #next {
    top: 60%; /* Baja las flechas (antes estaba 50%) */
  }
}

@media (max-width: 480px) {
  #prev,
  #next {
    top: 65%; /* Aún más abajo en teléfonos muy pequeños */
  }
}

/* === ANIMACIONES Y EFECTOS DE TARJETAS === */

/* Entrada suave al cargar */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Estado inicial */
.shop-card {
  opacity: 0;
  transform: translateY(15px);
  transition: transform 0.6s ease, opacity 0.6s ease, box-shadow 0.3s ease;
  border: 1px solid rgb(0, 0, 0);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Hover suave con profundidad */
.shop-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Clase que activa la animación */
.shop-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Íconos redondos con animación */
.icon-btn {
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}
.icon-btn:hover {
  transform: scale(1.2);
  filter: brightness(1.2);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Fondo general suave */
body {
  background: #f9fff9;
}

/* Encabezado de sección 1*/
.section-title {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  margin-bottom: 2rem;
}
.section-title span {
  color: #16a34a; /* Verde Tailwind */
}

/* Encabezado de sección 2*/
.section-title-2 {
  font-size: 1.8rem;
  font-weight: 700;
  text-align: center;
  color: #1f2937;
  margin-bottom: 2rem;
}
.section-title-2 span {
  color: #3f93cb;
}

/* Grid más fluido */
.shops-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

/* Imagen o logo dentro de cada tarjeta */
.shop-logo {
  width: 100px;
  height: 100px;
  object-fit: cover;      /* Mantiene proporciones del logo */
  border-radius: 30%;     /* Circular */
  border: 2px solid #fff; /* Borde suave */
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Pequeña animación al pasar el mouse */
.shop-logo:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* === Animación general de las tarjetas === */
.animated-card {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease-out;
}

.animated-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Efecto hover */
.animated-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease-in-out;
}
