/* Importar Bulma */
@import "https://cdn.jsdelivr.net/npm/bulma@0.9.4/css/bulma.min.css";

/* Variables del tema */
:root {
  /* Colores principales */
  --yp-yellow: #ffd400;
  --yp-dark: #241c15;
  --yp-light: #f5f5f5;
  --yp-gray: #666666;
  --yp-white: #ffffff;

  /* Sombras */
  --yp-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  --yp-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);

  /* Espaciado */
  --yp-spacing-xs: 0.25rem;
  --yp-spacing-sm: 0.5rem;
  --yp-spacing-md: 1rem;
  --yp-spacing-lg: 1.5rem;
  --yp-spacing-xl: 2rem;
}

/* Estilos base */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  color: var(--yp-dark);
  line-height: 1.5;
}

/* Ancho máximo del contenedor */
.container {
  max-width: 1200px !important;
}

.container-small {
  max-width: 600px !important;
}

.content ul {
  list-style-type: none;
}

/* Barra superior */
.has-background-yp-dark {
  background-color: var(--yp-dark) !important;
}

.top-info {
  display: flex;
  justify-content: space-between;
}

.top-column {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.flag {
  width: auto;
  height: 24px;
}

/* Botón de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  transition: transform 0.3s ease;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* Navbar */
.yp-navbar {
  background-color: var(--yp-white);
  box-shadow: var(--yp-shadow);
}

.yp-navbar .navbar-item {
  color: var(--yp-dark);
  font-weight: 500;
  padding: 0.75rem 1rem;
}

.yp-navbar .navbar-item:hover {
  color: var(--yp-yellow);
  background-color: transparent;
}

.yp-navbar .navbar-brand .navbar-item .logo {
  min-height: 80px;
  image-rendering: -webkit-optimize-contrast;
}

/* Hero y búsqueda */
/* .yp-header {
    background: linear-gradient(135deg, var(--yp-yellow) 0%, #FFE01B 100%);
    padding: 4rem 0;
} */

.yp-header {
  background: linear-gradient(-45deg, #ffe01b, #ffd400, #fdef12, #ffd400d9);
  background-size: 400% 400%;
  animation: animated-gradient 15s ease infinite;
  padding: 2rem 0 4rem 0;
}

@keyframes animated-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.yp-search {
  max-width: 800px;
  margin: 0 auto;
}

.yp-search .input,
.yp-search .select select {
  border: none;
  box-shadow: var(--yp-shadow);
  height: 3rem;
}

.yp-search .button.is-yp {
  background-color: var(--yp-dark);
  color: var(--yp-white);
  height: 3rem;
  padding: 0 2rem;
  font-weight: 600;
}

.yp-search .button.is-yp:hover {
  background-color: #000;
}

.featured-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.with_background_image {
  background-image: url(../img/background_section.png);
}

/* Cards */
.yp-card {
  background: var(--yp-white);
  border-radius: 8px;
  box-shadow: var(--yp-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: block;
  padding: var(--yp-spacing-md);
}

.yp-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--yp-shadow-hover);
}

.yp-card .title {
  color: var(--yp-dark);
  margin-bottom: var(--yp-spacing-sm);
}

.yp-card .icon {
  color: var(--yp-yellow);
}

/* Categorías Circulares */
.yp-category-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--yp-dark);
  transition: all 0.3s ease;
  padding: 1rem;
  border-radius: 12px;
}

.yp-category-card:hover {
  color: var(--yp-dark);
  transform: translateY(-5px);
}

.yp-category-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--yp-yellow) 0%, #ffe01b 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(255, 212, 0, 0.3);
  transition: all 0.3s ease;
}

.yp-category-card:hover .yp-category-icon {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 212, 0, 0.4);
}

.yp-category-icon i {
  font-size: 2rem;
  color: var(--yp-dark);
}

.yp-category-title {
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  margin: 0;
  max-width: 100px;
}

/* Listas */
.yp-list {
  list-style: none;
  padding-left: 0;
}

.yp-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
}

.yp-list li:before {
  content: "•";
  color: var(--yp-yellow);
  position: absolute;
  top: -0.85rem;
  left: 0;
  font-size: 2rem;
}

/* Footer */
.yp-footer {
  background-color: var(--yp-dark);
  color: var(--yp-white);
  padding: 3rem 0 1.5rem;
}

.yp-footer a {
  color: var(--yp-white);
  transition: color 0.3s ease;
}

.yp-footer a:hover {
  color: var(--yp-yellow);
}

.yp-footer .title {
  color: var(--yp-white);
  margin-bottom: 1rem;
}

.yp-footer hr {
  margin: 2rem 0;
  background-color: rgba(255, 255, 255, 0.1);
}

/* Utilidades */
.has-text-yp-yellow {
  color: var(--yp-yellow) !important;
}

.title-featured {
  color: var(--yp-dark) !important;
  background-color: var(--yp-yellow) !important;
  padding: 0 12px;
  border-radius: 8px;
}

.has-background-yp-yellow {
  background-color: var(--yp-yellow) !important;
}

.button.is-yp {
  background-color: var(--yp-yellow);
  color: var(--yp-dark);
  font-weight: 600;
  border: none;
  transition: all 0.3s ease;
}

.button.is-yp:hover {
  background-color: #ffe01b;
  transform: translateY(-2px);
}

.button.is-yp.is-light {
  background-color: rgba(255, 212, 0, 0.1);
  color: var(--yp-dark);
}

.button.is-yp.is-light:hover {
  background-color: rgba(255, 212, 0, 0.2);
}

/* ==========================================================================
   BUSINESS PAGE STYLES (vistageneral.php)
   ========================================================================== */

/* Business Page Specific Styles */
.business-hero {
  background: linear-gradient(-45deg, #ffe01b, #ffd400, #fdef12, #ffd400d9);
  background-size: 400% 400%;
  animation: animated-gradient 15s ease infinite;
  padding: 2rem 0 0;
}

@keyframes animated-gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.business-header-content {
  background: var(--yp-white);
  border-radius: 12px 12px 0 0;
  margin-top: 1rem;
  padding: 2rem;
  box-shadow: var(--yp-shadow);
}

.business-title {
  color: var(--yp-dark);
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.business-category {
  color: var(--yp-gray);
  font-size: 1.1rem;
  font-weight: 500;
}

/* Business Header with Logo */
.business-header-info {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.business-logo {
  flex-shrink: 0;
}

.business-logo img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--yp-shadow);
  border: 2px solid #f0f0f0;
}

.business-details {
  flex: 1;
}

/* Image Gallery & Carousel - Modern Style */
.business-gallery {
  background: var(--yp-white);
  padding: 0;
  margin-bottom: 2rem;
  border-radius: 0 0 12px 12px;
  overflow: hidden;
  box-shadow: var(--yp-shadow);
}

.gallery-container {
  position: relative;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.gallery-main {
  flex: 1;
  position: relative;
  height: 500px;
  overflow: hidden;
  border-radius: 12px;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 12px;
}

.gallery-main img:hover {
  transform: scale(1.02);
}

.gallery-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.35);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.gallery-nav i {
  color: var(--yp-dark);
  font-size: 1.2rem;
}

.gallery-nav.prev {
  left: 1.5rem;
}
.gallery-nav.next {
  right: 1.5rem;
}

/* Vertical Thumbnail Grid */
.gallery-thumbnails {
  width: 120px;
  flex-shrink: 0;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  max-height: 500px;
  overflow-y: auto;
}

.thumbnail {
  width: 100%;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.thumbnail:hover {
  border-color: rgba(255, 212, 0, 0.5);
  transform: scale(1.05);
}

.thumbnail.active {
  border-color: var(--yp-yellow);
  transform: scale(1.02);
}

.thumbnail.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 212, 0, 0.2);
  border-radius: 5px;
}

.thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Custom scrollbar for thumbnails */
.thumbnail-grid::-webkit-scrollbar {
  width: 4px;
}

.thumbnail-grid::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 2px;
}

.thumbnail-grid::-webkit-scrollbar-thumb {
  background: var(--yp-yellow);
  border-radius: 2px;
}

.thumbnail-grid::-webkit-scrollbar-thumb:hover {
  background: #e6c200;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.lightbox-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.3s ease;
}

.lightbox-close:hover {
  color: var(--yp-yellow);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--yp-yellow);
}

.lightbox-nav.prev {
  left: -80px;
}
.lightbox-nav.next {
  right: -80px;
}

/* Business Information Cards */
.info-card {
  background: var(--yp-white);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--yp-shadow);
  border: 1px solid #f0f0f0;
}

.info-card h2 {
  color: var(--yp-dark);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--yp-yellow);
  padding-bottom: 0.5rem;
}

.contact-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--yp-shadow);
  border-left: 4px solid var(--yp-yellow);
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-item:last-child {
  margin-bottom: 0;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--yp-yellow);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  color: var(--yp-dark);
  font-size: 1.1rem;
}

.contact-info h4 {
  color: var(--yp-dark);
  font-weight: 600;
  margin: 0 0 0.25rem 0;
}

.contact-info p {
  margin: 0;
  color: var(--yp-gray);
}

.contact-info a {
  color: #007bff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Action Buttons */
.action-buttons {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.action-btn {
  flex: 1;
  min-width: 200px;
  padding: 1rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.action-btn.primary {
  background: var(--yp-yellow);
  color: var(--yp-dark);
}

.action-btn.primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: var(--yp-shadow-hover);
}

.action-btn.secondary {
  background: var(--yp-dark);
  color: var(--yp-white);
}

.action-btn.secondary:hover {
  background: #1a130d;
  transform: translateY(-2px);
  box-shadow: var(--yp-shadow-hover);
}

.action-btn.outline {
  background: transparent;
  color: var(--yp-dark);
  border: 2px solid var(--yp-dark);
}

.action-btn.outline:hover {
  background: var(--yp-dark);
  color: var(--yp-white);
  transform: translateY(-2px);
}

/* Social Media Section */
.social-media-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.social-media-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 8px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-media-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  color: white;
}

.social-media-btn i {
  font-size: 1.2rem;
  width: 20px;
  text-align: center;
}

.social-media-btn.facebook {
  background: linear-gradient(135deg, #4267b2, #5578c4);
}
.social-media-btn.twitter {
  background: linear-gradient(135deg, #1da1f2, #2db0ff);
}
.social-media-btn.instagram {
  background: linear-gradient(135deg, #e4405f, #fd5949, #fccc63);
}
.social-media-btn.youtube {
  background: linear-gradient(135deg, #ff0000, #ff3333);
}
.social-media-btn.linkedin {
  background: linear-gradient(135deg, #0077b5, #0088cc);
}

/* Map Section */
.map-container {
  margin-top: 1rem;
}

.map-info {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0 0 8px 8px;
  border-top: 1px solid #dee2e6;
}

.map-info p {
  margin: 0.5rem 0;
  color: var(--yp-dark);
}

/* Additional utility classes for business page */
.business-map {
  height: 400px;
  border-radius: 8px;
}

.map-popup-content {
  text-align: center;
}

/* Related Businesses */
.related-section {
  padding: 4rem 0;
  background: #f8f9fa;
}

.related-card {
  background: var(--yp-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--yp-shadow);
  transition: all 0.3s ease;
  border: 1px solid #f0f0f0;
}

.related-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--yp-shadow-hover);
}

.related-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.related-content {
  padding: 1.5rem;
}

.related-title {
  color: var(--yp-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-decoration: none;
}

.related-title:hover {
  color: var(--yp-yellow);
}

.related-location {
  color: var(--yp-gray);
  font-size: 0.9rem;
}

.multiply {
  mix-blend-mode: multiply;
}

/* Business Page Responsive */
@media (max-width: 768px) {
  .yp-header {
    padding: 1rem 0 4rem 0;
  }

  .business-title {
    font-size: 2rem;
  }

  .gallery-container {
    flex-direction: column;
    height: auto;
  }

  .gallery-main {
    height: 300px;
    order: 1;
  }

  .gallery-thumbnails {
    width: 100%;
    order: 2;
    margin-top: 1rem;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    max-height: none;
    overflow-y: visible;
  }

  .thumbnail {
    height: 60px;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-btn {
    min-width: auto;
  }

  .lightbox-nav {
    display: none;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .business-header-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
  }

  .business-logo img {
    width: 60px;
    height: 60px;
  }

  .social-media-section {
    grid-template-columns: 1fr;
  }
}
