/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap");

/* Base styles */

/* Enhanced Container and Grid Spacing */

/*  spinner*/

#loadingSpinner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#loadingSpinner .spinner-border {
  width: 3rem;
  height: 3rem;
  border-width: 0.25em;
  border-color: #ff8c00 transparent #ff8c00 transparent !important;
}


/* Asegúrate de que el modal tenga un z-index menor que el spinner */
.modal {
  z-index: 1050;
}

.modal-backdrop {
  z-index: 1040;
}

.row {
  --bs-gutter-x: 2.5rem;
  --bs-gutter-y: 2.5rem;
}

/* Enhanced Header Styles */
.hero-section-page {
  background-color: #f2efea;
  padding: 6rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 4rem;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.1;
}

.hero-content {
  position: relative;
  z-index: 1;
  animation: fadeInUp 0.8s ease-out forwards;
}

.main-title {
  font-family: "Playfair Display", serif;
  font-size: 4.5rem;
  font-weight: 700;
  color: #f88120;

  margin-bottom: 1.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-title span {
  display: block;
  background: linear-gradient(120deg, #f89720, #f8622a);


  background-clip: text;
  font-size: 5rem;
}

.subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: linear-gradient(135deg, #ff5500, #ff3c00);
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

.badges-container {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.badge {
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  padding: 1rem 2rem;
  border-radius: 50px;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
  transition: all 0.3s ease;
}

.badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
}

/* Card Styles Enhancement */
.card {
  margin-bottom: 1rem;
  border: none;
  border-radius: 15px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background: white;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 250px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 2rem;
}

.card-title {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1.75rem;
  color: #2d2d2d;
  margin-bottom: 1rem;
}

.card-text {
  color: #666;
  font-size: 1rem;
  line-height: 1.6;
}

/* Gallery Enhancements */
.gallery-container {
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
  margin-bottom: 2rem;
  position: relative;
}

.main-image-container {
  height: 500px;
  position: relative;
  background: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}


/* Animaciones del carrusel */
.gallery-image {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}

.gallery-image.active {
  display: block;
}




.gallery-image.active {
  display: block;
}

.gallery-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}


.gallery-thumbs {
  display: flex;
  padding: 1rem;
  gap: 0.75rem;
  background: #ffffff;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  overflow-x: auto;
  justify-content: flex-start;
}

.gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.gallery-thumbs::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ff8c00;
  border-radius: 3px;
}

.main-image-container {
  height: 500px;
  /* Altura fija para el contenedor principal */
  position: relative;
  overflow: hidden;
  background-color: #f9f9f9;
}

/* Fullscreen Gallery Styles */


/* Features List Enhancement */
.features-list {
  margin: 0;
  padding: 0;
}

.features-list li {
  padding: 0.2rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  color: #4a4a4a;
  font-size: 0.95rem;
}

.features-list li:last-child {
  border-bottom: none;
}

/* Fullscreen Modal Enhancements - Fixed Positions */
/* Fullscreen Gallery - Additional Styles */

/* Make sure the modal takes up the entire screen */
.modal-fullscreen {
  width: 100vw !important;
  max-width: 100vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

/* Dark background for the fullscreen view */
body.modal-open {
  overflow: hidden;
  padding-right: 0 !important;
}

/* Fix for body padding when modal is open */
body.modal-open {
  padding-right: 0 !important;
  overflow: hidden !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fullscreen-nav {
    width: 50px !important;
    height: 50px !important;
  }

  .fullscreen-nav.prev {
    left: 15px !important;
  }

  .fullscreen-nav.next {
    right: 15px !important;
  }

  .fullscreen-nav svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* Ensure the modal backdrop is dark enough */
.modal-backdrop.show {
  opacity: 0.9;
}



/* Make sure the image is properly sized */
#fullscreenModal img.fullscreen-fade {
  max-width: 95vw !important;
  max-height: 95vh !important;
  object-fit: contain !important;
  transition: opacity 0.3s ease !important;
}



.fullscreen-nav:hover {
  opacity: 1;
}

/* Hide thumbnails by default and show on hover */
.fullscreen-thumbnails {
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

#fullscreenModal:hover .fullscreen-thumbnails {
  transform: translateY(0);
}



#fullscreenModal:hover .modal-header {
  transform: translateY(0) !important;
}

/* Hide counter when not hovering */
.fullscreen-counter {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#fullscreenModal:hover .fullscreen-counter {
  opacity: 1 !important;
}

/* Ensure the close button is always visible */
#fullscreenModal .btn-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 1060 !important;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat !important;
  opacity: 0.7 !important;
}

#fullscreenModal .btn-close:hover {
  opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .fullscreen-nav {
    width: 40px;
    height: 40px;
  }

  .fullscreen-nav.prev {
    left: 10px;
  }

  .fullscreen-nav.next {
    right: 10px;
  }

  .fullscreen-thumbnail {
    width: 60px;
    height: 45px;
  }
}

/* Fullscreen Modal Enhancements */
#fullscreenModal {
  padding: 0 !important;
}

#fullscreenModal .modal-dialog {
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#fullscreenModal .modal-content {
  height: 100vh !important;
  border: none !important;
  border-radius: 0 !important;
  background-color: #000 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#fullscreenModal .modal-body {
  padding: 0 !important;
  height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.fullscreen-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

#fullscreenModal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  /* Ajusta la imagen para que se vea completa */
}

/* Botón de cierre flotante */
#fullscreenModal .btn-close {
  position: absolute !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 1060 !important;
  background: transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='white'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center / 1em auto no-repeat !important;
  opacity: 0.7 !important;
}

#fullscreenModal .btn-close:hover {
  opacity: 1;
}

#fullscreenModal .modal-body {
  padding: 0 !important;
  height: 100vh !important;
  overflow: hidden !important;
}

.fullscreen-image-container {
  width: 100vw !important;
  height: 100vh !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  position: relative !important;
}

#fullscreenModal img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* Navigation arrows - make them larger and more visible */
.fullscreen-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 60px !important;
  height: 60px !important;
  background-color: rgba(0, 0, 0, 0.3) !important;
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  z-index: 1050 !important;
  transition: background-color 0.3s !important;
}

.fullscreen-nav:hover {
  background-color: rgba(0, 0, 0, 0.6) !important;
}

.fullscreen-nav.prev {
  left: 30px !important;
}

.fullscreen-nav.next {
  right: 30px !important;
}


.fullscreen-nav svg {
  width: 30px !important;
  height: 30px !important;
  color: white !important;
}


/* Thumbnails at the bottom */
.fullscreen-thumbnails {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  padding: 15px 0 !important;
  display: flex !important;
  justify-content: center !important;
  gap: 10px !important;
  overflow-x: auto !important;
  z-index: 1050 !important;
  transform: translateY(100%) !important;
  transition: transform 0.3s ease !important;
}


#fullscreenModal:hover .fullscreen-thumbnails {
  transform: translateY(0);
}

.fullscreen-thumbnail {
  width: 80px;
  height: 60px;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.fullscreen-thumbnail.active {
  border-color: #ff8c00;
}

.fullscreen-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Expand/fullscreen button */
.expand-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1050;
}

.expand-btn svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* Image counter */
.fullscreen-counter {
  position: absolute !important;
  bottom: 30px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  background: rgba(0, 0, 0, 0.6) !important;
  color: white !important;
  padding: 8px 20px !important;
  border-radius: 30px !important;
  font-size: 16px !important;
  z-index: 1060 !important;
  opacity: 0 !important;
  transition: opacity 0.3s ease !important;
}

/* Fade transition for images */
.fullscreen-fade {
  transition: opacity 0.3s ease;
}


/* Price Tag Enhancement */
.price-tag {
  font-family: "Poppins", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-acceptTerms {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  border: none;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  border: none;
  transition: all 0.3s ease;
}

.buy-lg:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

.buy-btn {
  padding: 0.75rem 2rem;
  font-weight: 500;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  border: none;
  transition: all 0.3s ease;
}

.buy-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 140, 0, 0.3);
}

/* Terms Button */
.terms-button {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 1000;
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  color: white !important;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

.terms-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
}
/* SOLUCIÓN PARA TÉRMINOS Y CONDICIONES - FORZAR Z-INDEX */
#termsModal {
  z-index: 9998 !important;
  position: fixed !important;
}

#termsModal .modal-backdrop {
  z-index: 9997 !important;
}

#termsModal .modal-dialog {
  z-index: 9999 !important;
  position: relative !important;
}

#termsModal .modal-content {
  z-index: 10000 !important;
  position: relative !important;
}

/* Asegurar que el modal backdrop cubra todo */
#termsModal .modal-backdrop.show {
  opacity: 0.8 !important;
  z-index: 9997 !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

/* Forzar que el checkbox y label estén dentro del modal */
#termsModal .form-check {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    padding: 1rem !important;
    margin: 1rem 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    gap: 0.5rem !important;
}

#termsModal .form-check-input {
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    accent-color: #ff8c00 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    position: static !important;
    z-index: auto !important;
}

#termsModal .form-check-label {
    margin: 0 !important;
    font-size: 0.95rem !important;
    color: #495057 !important;
    font-weight: normal !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    position: static !important;
    z-index: auto !important;
}


/* Responsive para mobile */
@media (max-width: 768px) {
    #termsModal .form-check {
        padding: 0.75rem !important;
        gap: 0.5rem !important;
    }
    
    #termsModal .form-check-label {
        font-size: 0.9rem !important;
    }
    
    #termsModal .form-check-input {
        width: 16px !important;
        height: 16px !important;
    }
}
/* Estilos de paginación */
.pagination-container {
    margin: 3rem 0;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.pagination-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 16px;
}

.pagination-link:hover:not(.disabled) {
    background: #FF8C00;
    color: white;
    border-color: #FF8C00;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 140, 0, 0.3);
}

.pagination-link.disabled {
    color: #ccc;
    background: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.5;
}

.pagination-info {
    font-size: 0.9rem;
    color: #666;
}

.pagination-info-center {
    padding: 0 1rem;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 768px) {
    .pagination {
        padding: 0.75rem 1rem;
        gap: 0.25rem;
    }
    
    .pagination-link {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .pagination-info-center {
        padding: 0 0.5rem;
        font-size: 0.85rem;
    }
    
    .pagination-info {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .pagination-container {
        margin: 2rem 0;
    }
    
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .pagination-info-center {
        order: -1;
        width: 100%;
        text-align: center;
        padding: 0.5rem 0;
        border-bottom: 1px solid #eee;
        margin-bottom: 0.5rem;
    }
}

/* Estilos para centrar el modal */
.modal {
  display: none;
  /* Por defecto oculto */
}

.modal.show {
  display: block;
}

/* Modal Core Fixes */
.modal-dialog {
  max-width: 90%;
  width: 1200px;
  margin: 1.75rem auto;
  display: flex;
  align-items: flex-start;
  /* Changed from center to allow scrolling */
  min-height: calc(100% - 3.5rem);
}

.modal-content {
  max-height: 90vh;
  /* Maximum height relative to viewport */
  overflow-y: auto;
  /* Enable scrolling */
  margin: 0 auto;
  width: 100%;
  border: none;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem 2rem;
  background: linear-gradient(to right, #fafafa, #ffffff);
}

.modal-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  padding: 1.5rem 2rem;
  background: linear-gradient(to right, #fafafa, #ffffff);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (min-width: 576px) {
  .modal-dialog {
    min-height: calc(100% - 3.5rem);
  }

  .modal-content {
    max-height: calc(100vh - 3.5rem);
  }
}

/* Form Styles */
.form-container {
  padding: 2rem;
}

.form-logo {
  max-height: 60px;
  margin-bottom: 1.5rem;
}


/* Button Styles */
.proceed-btn {
  background: linear-gradient(135deg, #ff8c00, #ff4500);
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  color: white;
  font-weight: 500;
  transition: all 0.3s ease;
}

.proceed-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 140, 0, 0.2);
}

.thumb {
  width: 120px;
  height: 80px;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.3s;
  flex-shrink: 0;
}

.thumb.active {
  border-color: #ff8c00;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

/* Botón de pantalla completa */
.fullscreen-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 4px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.fullscreen-btn svg {
  width: 20px;
  height: 20px;
  color: white;
}

/* Responsive */
@media (max-width: 992px) {
  .main-image-container {
    height: 400px;
  }

  .thumb {
    width: 100px;
    height: 70px;
  }
}

@media (max-width: 768px) {
  .main-image-container {
    height: 300px;
  }

  .thumb {
    width: 80px;
    height: 60px;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 576px) {
  .main-image-container {
    height: 250px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive adjustments for gallery */
@media (max-width: 992px) {
  .main-image-container {
    height: 400px;
  }

  .thumb {
    width: 100px;
    height: 75px;
  }
}

@media (max-width: 768px) {
  .main-image-container {
    height: 300px;
  }

  .thumb {
    width: 80px;
    height: 60px;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 768px) {
  .main-title {
    font-size: 2.5rem;
  }

  .main-title span {
    font-size: 3rem;
  }

  .subtitle {
    font-size: 1rem;
    padding: 0 1rem;
  }

  .badge {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
  }

  .main-image-container {
    height: 250px;
  }

  .gallery-nav {
    width: 36px;
    height: 36px;
  }

  .card-body {
    padding: 1.5rem;
  }

  .card-title {
    font-size: 1.5rem;
  }
}

/* Contenedor principal */
.link-to-login {
  display: flex;
  flex-wrap: wrap;
  /* Permite que los elementos se ajusten en pantallas pequeñas */
  justify-content: center;
  /* Centra el contenido horizontalmente */
  align-items: center;
  /* Centra el contenido verticalmente */
  gap: 0.5rem;
  /* Espaciado entre el texto y el enlace */
  font-size: 1.5rem;
  margin-top: 1rem;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  color: #f88120;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estilo del enlace */
.sign-in-link {
  color: #702c37;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.sign-in-link:hover {
  color: #f88120;
}

/* Responsividad */
@media (max-width: 768px) {
  .link-to-login {
    font-size: 1rem;
    /* Reduce el tamaño de fuente en pantallas pequeñas */
    flex-direction: column;
    /* Apila el texto y el enlace verticalmente */
  }
}

@media (max-width: 768px) {
  .hero-section {
    flex-direction: column;
    /* Cambia a columna en pantallas pequeñas */
    align-items: center;
    text-align: center;
  }

  .hero-content {
    justify-content: center;
  }

  .login-icon {
    margin-right: 0;
    /* Elimina el margen derecho en pantallas pequeñas */
  }
}

.sign_in_link {
  text-decoration: none;
  color: #702c37;


}

/* Animation Enhancements */
.modal.show .modal-dialog {
  animation: modalSlideIn 0.3s ease-out;
}

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

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Backdrop Enhancement */
.modal-backdrop.show {
  opacity: 0.7;
  backdrop-filter: blur(4px);
}

.notes-herosection {
  color: #1a1a1a;
  font-size: 0.85rem;
  font-family: "Poppins", sans-serif;
}


/* estilos del crear nuevo food truck en venta*/

#foodtruck-create-page {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  padding: 2rem;
  margin: 0;
}

#foodtruck-create-page .foodtruck-form-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#foodtruck-create-page .foodtruck-form-title {
  color: #FF6B35;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

#foodtruck-create-page #foodtruck-create-form {
  display: grid;
  gap: 1.5rem;
}

#foodtruck-create-page .foodtruck-form-label {
  font-weight: bold;
  margin-bottom: 0.5rem;
  display: block;
}

#foodtruck-create-page .foodtruck-form-input,
#foodtruck-create-page .foodtruck-form-textarea,
#foodtruck-create-page .foodtruck-form-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #E0E0E0;
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

#foodtruck-create-page .foodtruck-form-input:focus,
#foodtruck-create-page .foodtruck-form-textarea:focus,
#foodtruck-create-page .foodtruck-form-select:focus {
  outline: none;
  border-color: #FF6B35;
}

#foodtruck-create-page .foodtruck-form-textarea {
  min-height: 100px;
  resize: vertical;
}

#foodtruck-create-page .foodtruck-form-checkbox {
  margin-right: 0.5rem;
}

#foodtruck-create-page .foodtruck-form-file {
  display: none;
}

#foodtruck-create-page .foodtruck-form-submit {
  background-color: #FF6B35;
  color: white;
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#foodtruck-create-page .foodtruck-form-submit:hover {
  background-color: #FF9F1C;
}

#foodtruck-create-page .foodtruck-form-group {
  display: flex;
  flex-direction: column;
}

#foodtruck-create-page .foodtruck-form-checkbox-group {
  flex-direction: row;
  align-items: center;
}

#foodtruck-create-page .foodtruck-form-checkbox-label {
  margin-bottom: 0;
  margin-left: 0.5rem;
}

#foodtruck-create-page .foodtruck-form-file-input {
  border: 2px dashed #E0E0E0;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

#foodtruck-create-page .foodtruck-form-file-input:hover {
  border-color: #FF6B35;
}

#foodtruck-create-page .foodtruck-form-file-label {
  cursor: pointer;
  color: #FF6B35;
}

#foodtruck-create-page .foodtruck-form-price {
  position: relative;
}

#foodtruck-create-page .foodtruck-form-price::before {
  content: '$';
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #011627;
}

#foodtruck-create-page .foodtruck-form-price {
  padding-left: 1.5rem;
}

@media (max-width: 768px) {
  #foodtruck-create-page {
    padding: 1rem;
  }

  #foodtruck-create-page .foodtruck-form-container {
    padding: 1rem;
  }
}

.foodtruck-form-back-button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background-color: #ff6f00;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  text-align: center;
}

.foodtruck-form-back-button:hover {
  background-color: #b34200e7;
}

/* estilos del editar food truck en venta*/

/* Estilos modernos y vibrantes para el formulario de Food Truck */
html.edit-foodtruck-page {
  min-height: 100vh;
  background: linear-gradient(135deg, #FFF3E0, #FFF);
}

body.edit-foodtruck-body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #2D3748;
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

h1.edit-foodtruck-title {
  color: #FF8C00;
  text-align: center;
  font-size: 2.5rem;
  font-weight: 600;
  margin: 2rem 0;
  text-shadow: 2px 2px 4px rgba(255, 140, 0, 0.1);
  position: relative;
}

h1.edit-foodtruck-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, #FF8C00, #FFA500);
  margin: 1rem auto 0;
  border-radius: 2px;
}

form.edit-foodtruck-form {
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(255, 140, 0, 0.1);
  padding: 2.5rem;
  margin-bottom: 2rem;
}

/* Grupos de formulario */
form.edit-foodtruck-form .form-group {
  margin-bottom: 2rem;
  position: relative;
}

/* Etiquetas */
form.edit-foodtruck-form .form-label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 600;
  color: #FF8C00;
  font-size: 1rem;
  transition: color 0.3s;
}

/* Campos de entrada */
form.edit-foodtruck-form .form-input,
form.edit-foodtruck-form .form-textarea,
form.edit-foodtruck-form .form-select {
  width: 100%;
  padding: 1rem;
  border: 2px solid #EDF2F7;
  border-radius: 12px;
  background-color: #FAFAFA;
  font-size: 1rem;
  transition: all 0.3s;
}

form.edit-foodtruck-form .form-input:hover,
form.edit-foodtruck-form .form-textarea:hover,
form.edit-foodtruck-form .form-select:hover {
  background-color: #FFF3E0;
}

form.edit-foodtruck-form .form-input:focus,
form.edit-foodtruck-form .form-textarea:focus,
form.edit-foodtruck-form .form-select:focus {
  border-color: #FF8C00;
  background-color: white;
  box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.1);
  outline: none;
}

/* Textarea específico */
form.edit-foodtruck-form .form-textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
}

/* Grupo de publicación */
form.edit-foodtruck-form .published-group {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: linear-gradient(45deg, #FFF3E0, #FAFAFA);
  border-radius: 12px;
  border: 2px solid #EDF2F7;
}

form.edit-foodtruck-form .published-checkbox {
  width: 20px;
  height: 20px;
  margin-right: 0.75rem;
  accent-color: #FF8C00;
  cursor: pointer;
}

/* Área de imágenes */
form.edit-foodtruck-form .images-group {
  background: linear-gradient(45deg, #FFF3E0, #FAFAFA);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px dashed #FF8C00;
}

form.edit-foodtruck-form .images-input {
  width: 100%;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
}

.current-images-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  /* Ajusta el tamaño */
  gap: 10px;
  /* Espaciado entre imágenes */
  justify-content: center;
}

form.edit-foodtruck-form .image-item {
  background: white;
  padding: 1rem !important;
  /* Forzar padding consistente */
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative !important;
  /* Forzar posicionamiento */
  height: 280px !important;
  /* Altura fija forzada */
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  /* Eliminar márgenes inconsistentes */
}

form.edit-foodtruck-form .image-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}



/* Botón de eliminar imagen */
form.edit-foodtruck-form .delete-image-button {
  background-color: #FFF3E0;
  color: #FF8C00;
  border: 2px solid #FF8C00;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
}

form.edit-foodtruck-form .delete-image-button:hover {
  background-color: #FF8C00;
  color: white;
}

/* Botón de envío */
.edit-submit-button {
  background: linear-gradient(45deg, #FF8C00, #FFA500);
  color: white;
  border: none;
  padding: 1.25rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  width: 100%;
  margin-top: 2rem;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(255, 140, 0, 0.2);
}

form.edit-foodtruck-form .submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.3);
}

form.edit-foodtruck-form .submit-button:active {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  body.edit-foodtruck-body {
    margin: 1rem auto;
  }

  form.edit-foodtruck-form {
    padding: 1.5rem;
  }

  h1.edit-foodtruck-title {
    font-size: 2rem;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

form.edit-foodtruck-form .form-group {
  animation: fadeIn 0.5s ease-out forwards;
  animation-delay: calc(var(--index, 0) * 0.1s);
}

/* Actualización del contenedor de imágenes y botones */
form.edit-foodtruck-form .current-images-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

form.edit-foodtruck-form .image-item {
  background: white;
  padding: 1rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  height: 280px;
  /* Altura fija para el contenedor */
  display: flex;
  flex-direction: column;
}



/* Contenedor de imagen */
form.edit-foodtruck-form .foodtruck-image {
  width: 100% !important;
  height: 200px !important;
  /* Altura fija para todas las imágenes */
  object-fit: cover !important;
  border-radius: 8px;
  margin: 0 0 1rem 0 !important;
  /* Margen específico */
  display: block !important;
}

/* Contenedor para el botón de eliminar */
form.edit-foodtruck-form .delete-image-form {
  position: absolute !important;
  bottom: 1rem !important;
  left: 1rem !important;
  right: 1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  width: calc(100% - 2rem) !important;
}

/* Reset adicional para el primer item */
form.edit-foodtruck-form .image-item:first-of-type .delete-image-form {
  position: absolute !important;
  bottom: 1rem !important;
}

form.edit-foodtruck-form .delete-image-button {
  background-color: #FFF3E0;
  color: #FF8C00;
  border: 2px solid #FF8C00;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  display: block;
}

form.edit-foodtruck-form .image-item:first-child {
  height: 280px !important;
  padding: 1rem !important;
  margin: 0 !important;
}

form.edit-foodtruck-form .delete-image-button:hover {
  background-color: #FF8C00;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  form.edit-foodtruck-form .image-item {
    height: 260px;
    /* Altura ligeramente menor en móviles */
  }


}

/* Estilos para la sección de imágenes actuales */
.current-images-container {
  margin-top: 2rem;
  background: linear-gradient(45deg, #FFF3E0, #FAFAFA);
  padding: 1.5rem;
  border-radius: 12px;
  border: 2px solid #EDF2F7;
  display: block;
}

/* Título de la sección */
.current-images-container h2 {
  color: #FF8C00;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
  position: relative;
  padding-bottom: 0.75rem;
}

.current-images-container h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FF8C00, #FFA500);
  border-radius: 2px;
}




.current-images-container h2 {
  grid-column: 1 / -1;
}

/* Contenedor de cada imagen */
.image-item-delete-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 5px;
  background-color: #f9f9f9;
}

.image-item-delete-images:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
}

/* Imagen */
.foodtruck-image-delete {
  width: 100%;
  height: auto;
  max-width: 150px;
  /* Ajusta según el diseño */
  border-radius: 5px;
}

.select-image-label {
  display: flex;
  align-items: center;
  margin-top: 5px;
  font-size: 14px;
}

.delete-selected-button {
  margin-top: 1rem;
  padding: 10px 15px;
  background-color: var(--danger-color);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.delete-selected-button:hover {
  background-color: var(--danger-hover);
}

/* También soportamos la clase con espacio */
.foodtruck-image-delete.images {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

/* Formulario de eliminación */
.delete-image-form {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  margin: 0;
  display: block !important;
}

/* Botón de eliminar */
.delete-image-button {
  background-color: #FFF3E0;
  color: #FF8C00;
  border: 2px solid #FF8C00;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
  width: 100%;
  display: block;
}

.delete-image-button:hover {
  background-color: #FF8C00;
  color: white;
}

/* Mensaje cuando no hay imágenes */
.no-images {
  text-align: center;
  padding: 2rem;
  color: #718096;
  font-style: italic;
  grid-column: 1 / -1;
}

/* Corrección para el grid de imágenes */
.current-images-container {
  display: block;
}

.current-images-container>div {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Estilos para cuando hay pocas imágenes */
@media (min-width: 768px) {
  .current-images-container.few-images>div {
    grid-template-columns: repeat(auto-fill, minmax(200px, 250px));
    justify-content: center;
  }
}

/* Responsive */
@media (max-width: 768px) {
  .current-images-container {
    padding: 1rem;
  }

  .current-images-container h2 {
    font-size: 1.25rem;
  }

  .image-item-delete-images {
    height: 260px;
  }

  .foodtruck-image-delete,
  .foodtruck-image-delete.images {
    height: 180px;
  }
}

/* Animación para cargar imágenes */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.foodtruck-form-file-input {
  border: 2px dashed #E0E0E0;
  padding: 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.3s ease;
}

.foodtruck-form-file-input:hover {
  border-color: #FF6B35;
}

.foodtruck-form-file-label {
  cursor: pointer;
  color: #FF6B35;
}

/* Controles de navegación del carrusel */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background-color: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s;
}

.gallery-nav:hover {
  background-color: rgba(0, 0, 0, 0.7);
}

.gallery-nav.prev {
  left: 15px;
}

.gallery-nav.next {
  right: 15px;
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
  color: white;
}

.custom-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: center;
   padding: 80px 20px 20px;
}

.custom-modal-dialog {
       width: 100%;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
   
}

.custom-modal-content {
  background-color: white;
    padding: 30px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 85vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.custom-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding-bottom: 15px;
    margin-bottom: 20px;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
}

.custom-modal-body {
     padding: 0;
    max-height: calc(95vh - 120px); /* Account for header and padding */
    overflow-y: auto;
}

.custom-close-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
}

/* Mobile-specific adjustments */
@media (max-width: 768px) {
    .custom-modal {
        padding: 10px; /* Add padding on mobile */
    }
    
    .custom-modal-dialog {
        margin: 1% auto;
        width: 95%;
        padding: 10px 0;
    }
    
    .custom-modal-content {
        padding: 15px;
        border-radius: 12px;
        max-height: 90vh; /* Reduce max height on mobile */
    }
    
    .custom-modal-header {
        padding-bottom: 10px;
        margin-bottom: 15px;
    }
    
    .custom-modal-body {
        max-height: calc(90vh - 100px);
    }
    
    .form-container {
        padding: 1rem 0; /* Reduce padding on mobile */
    }
    
    .form-field {
        margin-bottom: 20px; /* Increase spacing between fields */
    }
    
    .form-control {
        padding: 12px; /* Larger touch targets */
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 16px;
        min-height: 48px; /* Better touch target */
    }
}

/* Very small screens */
@media (max-width: 480px) {
    .custom-modal-dialog {
        width: 98%;
        margin: 0.5% auto;
    }
    
    .custom-modal-content {
        padding: 12px;
        max-height: 95vh;
    }
}

.form-field {
  position: relative;
  margin-bottom: 15px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.form-control:focus+label,
.form-control:not(:placeholder-shown)+label {
  top: -18px;
  font-size: 12px;
  color: #ff8559;
}

label {
  position: absolute;
  top: 10px;
  left: 10px;
  color: #666;
  transition: all 0.2s;
  pointer-events: none;
}

.invalid-feedback {
  color: red;
  font-size: 12px;
  display: none;
}

.form-control:invalid:focus~.invalid-feedback {
  display: block;
}

.btn {
  padding: 10px 20px;
  background-color: #ff8559;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.d-grid {
  text-align: center;
}

.text-muted {
  color: #6c757d;
}