
    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: 'Segoe UI', sans-serif;
      background: #f0f4f8;
      padding: 60px 0px 0px;
      color: #333;
    }

    /* ===== Group Header de modelo ===== */
    .cards-header {
      width: 100%;
      max-width: 1200px;
      margin: 0 auto 12px;
      padding: 12px 16px;
      background: #fff;
      border-radius: 6px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.1);
      position: relative;
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .cards-header .label-left {
      position: absolute;
      left: 16px;
      text-transform: uppercase;
      font-weight: 600;
      padding: 4px 8px;
      border-radius: 4px;
      font-size: 13px;
    }
    .cards-header .label-left.nuevo {
      background: #22a6b3;
      color: #fff;
    }
    .cards-header .label-left.oferta {
      background: #ed0505;
      color: #fff;
    }
    .cards-header .title-center {
      font-size: 18px;
      font-weight: 700;
      color: #333;
      text-align: center;
      text-transform: uppercase;
    }
    .cards-header .info-icon {
      position: absolute;
      right: 16px;
      font-size: 1.2em;
      color: #555;
      cursor: pointer;
    }
    .cards-header .info-icon .tooltip {
      position: absolute;
      top: 24px;
      right: 0;
      background: #fff;
      border: 1px solid #ccc;
      padding: 8px 12px;
      border-radius: 4px;
      font-size: 13px;
      color: #333;
      width: 220px;
      display: none;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      z-index: 1005;
    }
    .cards-header .info-icon:hover .tooltip,
    .cards-header .info-icon .tooltip.persist {
      display: block;
    }

    /* ===== Layout de cards ===== */
    .cards-container {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 12px;
      margin: 0 auto 24px;
      max-width: 1200px;
    }
    .card {
      background: #fff;
      border-radius: 7px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      width: 240px;
      text-align: center;
      position: relative;
      cursor: pointer;
      transition: transform 0.2s ease;
      flex-shrink: 0;
    }
    @media (min-width: 1200px) {
      .card {
        width: calc((100% - 2 * 164px) / 3);
      }
      .card:hover {
        transform: scale(1.03);
      }
    }
    @media (max-width: 600px) {
      .card {
        width: calc((100% - 12px) / 2);
      }
    }

    .card img {
      transition: opacity 0.1s ease;  /* más rápido */
      width: 100%;
      height: auto;
      object-fit: cover;
      cursor: pointer;
    }
    .badge {
      position: absolute;
      top: 8px;
      left: 8px;
      padding: 3px 6px;
      border-radius: 4px;
      font-size: 12px;
      text-transform: uppercase;
      font-weight: 600;
      color: #fff;
    }
    .badge.oferta {
      background: #ed0505;
    }
    .badge.nuevo {
      background: #22a6b3;
    }
    .content {
      padding: 8px;
    }
    .content h3 {
      font-size: 14px;
      margin: 6px 0;
      color: #333;
      word-wrap: break-word;
      text-transform: uppercase;
    }
    .price {
      color: #22a6b3;
      font-weight: bold;
      font-size: 15px;
      margin: 6px 0;
    }
    .card select.variation {
      width: calc(100% - 16px);
      padding: 6px;
      margin: 6px auto;
      border-radius: 5px;
      border: 1px solid #ddd;
      font-size: 14px;
      display: block;
    }
    .card input.qty {
      width: calc(100% - 16px);
      padding: 4px;
      margin: 6px auto;
      border-radius: 5px;
      border: 1px solid #ddd;
      display: none;
      font-size: 14px;
    }
    .card .cart-button {
      padding: 6px;
      width: calc(100% - 6px);
      height: 36px;
      border: none;
      border-radius: 6px;
      background-color: #54a0ff;
      color: #fff;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      white-space: nowrap;
      display: none;
      transition: background-color 0.3s;
    }
    .card .cart-button:hover {
      background-color: #2e86de;
    }

    /* ===== Navbar ===== */
    .navbar {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 60px;
      background: #fff;
      box-shadow: 0 2px 4px rgba(0,0,0,0.1);
      z-index: 1003;
      display: flex; align-items: center; justify-content: center;
    }
    .navbar .menu-toggle,
    .navbar .cart-icon,
    .navbar .notif-bell {
      font-size: 1.5em;
      cursor: pointer;
      position: absolute; top: 50%; transform: translateY(-50%);
      color: #333;
    }
    .navbar .menu-toggle { left: 16px; }
    .navbar .notif-bell { right: 80px; }
    .navbar .cart-icon { right: 16px; }
    .cart-icon, .notif-bell {
      display: flex; align-items: center; position: relative;
    }
    .badge-cart, .badge-notif {
      background: #e84118;
      color: #fff;
      font-size: 12px;
      padding: 2px 6px;
      border-radius: 12px;
      position: absolute;
      top: -6px; right: -6px;
      display: none;
      z-index: 1;
    }
    .navbar .logo {
      position: absolute; left: 50%; transform: translateX(-50%);
    }
    .navbar .logo img { height: 53px; }

    /* ===== Dropdown notificaciones ===== */
    .notif-dropdown {
      position: absolute;
      top: 130%; right: 0;
      background: #fff;
      border: 1px solid #ccc;
      border-radius: 4px;
      width: 250px;
      max-height: 300px;
      box-shadow: 0 2px 6px rgba(0,0,0,0.15);
      overflow-y: auto;
      opacity: 0; visibility: hidden;
      transform: translateY(-10px);
      transition: opacity 0.3s ease, transform 0.3s ease;
      z-index: 1005;
      list-style: none;
      padding: 0; margin: 0;
    }
    @media (max-width: 600px) {
  .notif-dropdown {
    top: 155%; right: -36px;
  }
}

    .notif-dropdown.open {
      opacity: 1; transform: translateY(0); visibility: visible;
    }
    .notif-dropdown li {
      padding: 10px;
      border-bottom: 1px solid #eee;
      font-size: 0.9rem;
      color: #333;
    }
    .notif-dropdown li:last-child {
      border-bottom: none;
    }
    .notif-dropdown a {
      color: #22a6b3;
      text-decoration: none;
      margin-left: 8px;
      font-weight: 600;
    }
    .notif-dropdown a:hover {
      text-decoration: underline;
    }

    /* ===== Overlay ===== */
    .overlay {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      z-index: 999;
    }
    .overlay.active {
      opacity: 1; visibility: visible;
    }

    /* ===== Sidebar de navegación ===== */
    .nav-menu {
      position: fixed; top: 0; left: -300px;
      width: 300px; height: 100vh;
      background: #fff;
      box-shadow: 2px 0 8px rgba(0,0,0,0.1);
      padding-top: 60px;
      list-style: none; margin: 0;
      transition: left 0.3s ease;
      z-index: 1002;
    }
    .nav-menu.open {
      left: 0;
    }
    .nav-menu li {
      position: relative;
    }
    .nav-menu li + li {
      margin-top: 4px;
    }
    .nav-menu li a {
      display: block;
      padding: 12px 16px;
      color: #333;
      text-decoration: none;
      font-size: 15px;
    }
    .nav-menu li a:hover {
      background: #f0f4f8;
    }
    .nav-menu .submenu {
      display: none;
      list-style: none;
      margin: 0; padding-left: 16px;
      background: #fafafa;
      max-height: 300px;
      overflow-y: auto;
    }
    .nav-menu li.open > .submenu {
      display: block;
    }
    .nav-menu .submenu li a {
      padding: 8px 16px;
      font-size: 14px;
    }
    .nav-menu .submenu li.active-model > a {
      color: #22a6b3;
      font-weight: 600;
    }

    /* ===== Sidebar de carrito ===== */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;                    /* siempre en el eje X original */
  width: 400px;                /* ancho deseado en desktop */
  height: 100vh;
  background: #fff;
  box-shadow: -2px 0 8px rgba(0,0,0,0.1);
  padding-top: 60px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
  z-index: 1002;
  transform: translateX(100%); /* lo mueve totalmente fuera de la pantalla */
}
.cart-sidebar.open {
  transform: translateX(0);    /* al abrirlo vuelve a su posición */
}

/* En móviles angostos: ocupa 100% */
@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
  }
}

    .cart-header {
      display: flex; align-items: center; justify-content: center;
      padding: 12px 16px; border-bottom: 1px solid #ddd;
      position: relative;
    }
    .cart-header h3 {
      margin: 0; font-size: 18px; color: #333;
      display: flex; align-items: center; gap: 6px;
    }
    .cart-header .cart-count-sidebar {
      background: #e84118; color: #fff;
      font-size: 12px; padding: 2px 6px;
      border-radius: 12px;
    }

    .empty-cart {
      display: none;
      position: absolute;
      top: 50%; left: 50%;
      transform: translate(-50%, -50%);
      font-size: 16px; color: #666;
      text-align: center;
    }

    .cart-items {
      flex: 1; overflow-y: auto; padding: 8px 0; position: relative;
    }
    .cart-item {
      position: relative;
      display: flex; align-items: flex-start;
      padding: 8px 12px; border-bottom: 1px solid #eee;
      gap: 8px;
    }
    .cart-item img {
      width: 50px; height: 50px; object-fit: cover;
      border-radius: 4px; cursor: pointer;
    }
    .remove-item {
      position: absolute;
      bottom: 8px; right: 8px;
      background: transparent; border: none;
      font-size: 1.6em; font-weight: bold;
      cursor: pointer; color: #e84118;
    }
    .remove-item:hover {
      color: #c0392b;
    }

    .cart-item .item-info {
      flex: 1; display: flex; flex-direction: column;
      font-size: 14px; color: #333;
    }
    .cart-item .item-info .name {
      font-weight: 600; margin-bottom: 4px;
    }
    .cart-item .item-info .option {
      font-size: 13px; color: #666; margin-bottom: 4px;
    }
    .cart-item .item-info input.item-qty {
      display: block;
      width: 40px; margin-bottom: 4px;
      padding: 3px; border: 1px solid #ccc; border-radius: 4px;
      font-size: 13px; text-align: center;
    }

    .cart-item .item-controls {
      display: flex; flex-direction: column; align-items: flex-end;
      gap: 4px;
    }
    .cart-item .item-controls .price-unit,
    .cart-item .item-controls .price-total {
      font-size: 13px; color: #333;
    }

    .cart-footer {
      padding: 12px 16px; border-top: 1px solid #ddd;
      display: flex; flex-direction: column; gap: 8px;
    }
    .cart-footer .total {
      font-size: 16px; font-weight: 600; color: #333;
      text-align: right;
    }
    .cart-footer button {
      width: 100%; padding: 10px 0;
      border: none; border-radius: 5px;
      font-size: 14px; font-weight: 600;
      cursor: pointer;
    }
    #clear-cart {
      background: #e84118; color: #fff;
    }
    #clear-cart:hover {
      background: #c0392b;
    }
    #checkout {
      background: #22a6b3; color: #fff;
    }
    #checkout:hover {
      background: #1a797a;
    }

    .order-alert {
      position: absolute;
      top: 12px; left: 50%; transform: translateX(-50%);
      background: #e84118; color: #fff;
      padding: 8px 12px; border-radius: 4px;
      font-size: 14px; text-align: center;
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      z-index: 1020;
    }
    .order-alert.show {
      opacity: 1; visibility: visible;
    }

    /* ===== Notification container ===== */
    .notification-container {
      position: fixed; top: 80px; right: 20px;
      z-index: 1001;
    }
    .notification {
      display: flex; align-items: center;
      background: #fff; color: #000;
      padding: 8px 12px; border-radius: 6px;
      margin-top: 8px; font-size: 13px;
      box-shadow: 0 2px 8px rgba(0,0,0,0.2);
      opacity: 0; transform: translateX(20px);
      transition: opacity 0.5s ease, transform 0.5s ease;
      position: relative;
    }
    .notification.show {
      opacity: 1; transform: translateX(0);
    }
    .notification img {
      width: 32px; height: 32px; object-fit: cover;
      margin-right: 8px; border-radius: 4px;
    }
    .notification .info {
      display: flex; flex-direction: column;
    }
    .notification .close-btn {
      position: absolute; top: 4px; right: 4px;
      background: transparent; border: none;
      font-size: 1em; cursor: pointer; color: #888;
    }
    .notification .close-btn:hover {
      color: #555;
    }

    /* ===== Modal de confirmación “Eliminar carrito” ===== */
    .modal-overlay {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.5);
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      display: flex; justify-content: center; align-items: center;
      z-index: 1100;
    }
    .modal-overlay.show {
      opacity: 1; visibility: visible;
    }
    .modal-content {
      background: #fff; padding: 20px;
      border-radius: 8px; width: 300px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    }
    .modal-content h4 {
      margin-top: 0; margin-bottom: 12px; color: #333;
    }
    .modal-content .modal-body {
      font-size: 14px; color: #555; margin-bottom: 12px;
    }
    .modal-content .modal-body label {
      display: flex; align-items: center; gap: 8px;
      font-size: 13px; margin-bottom: 12px;
    }
    .modal-content .modal-footer {
      display: flex; justify-content: flex-end; gap: 8px;
    }
    .modal-content .modal-footer button {
      padding: 6px 12px; border: none; border-radius: 4px; font-size: 14px; cursor: pointer;
    }
    .modal-cancel { background: #ccc; color: #333; }
    .modal-confirm { background: #e84118; color: #fff; }
    .modal-confirm:hover { background: #c0392b; }

    /* ===== Modal de imagen mejorado (cuadrado) ===== */
    .img-modal-overlay {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.8);
      opacity: 0; visibility: hidden;
      transition: opacity 0.3s ease;
      display: flex; justify-content: center; align-items: center;
      z-index: 1200;
    }
    .img-modal-overlay.show {
      opacity: 1; visibility: visible;
    }
    .img-modal-content {
      position: relative;
      background: transparent;
      border-radius: 8px;
      padding: 0;
      width: 100vmin; height: 100vmin;
      max-width: 100vmin; max-height: 100vmin;
      box-shadow: 0 4px 12px rgba(0,0,0,0.3);
      overflow: hidden;
      display: flex; justify-content: center; align-items: center;
    }
    @media (min-width: 768px) {
      .img-modal-content {
        width: 60vmin; height: 60vmin;
      }
    }
    .img-modal-content img {
      max-width: 100%; max-height: 100%;
      width: auto; height: auto; border-radius: 4px;
      cursor: zoom-in; transition: transform 0.3s ease;
      object-fit: contain; display: block;
    }
    .img-modal-content img.zoomed {
      transform: scale(2); cursor: zoom-out;
    }
    .img-modal-close {
      position: absolute; top: 4px; right: 4px;
      background: rgba(255,255,255,0.9); border: none;
      font-size: 1.4em; cursor: pointer; border-radius: 50%;
      width: 34px; height: 34px; display: flex;
      align-items: center; justify-content: center;
      box-shadow: 0 2px 6px rgba(0,0,0,0.3);
      z-index: 1001;
    }
    .img-modal-close:hover {
      background: rgba(255,255,255,1);
    }

    /* ===== Modal “Finalizar Pedido” ===== */
    #modalFinPedido {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center; align-items: center;
      z-index: 2000; padding: 20px;
    }
    .checkout-modal {
      background-color: #fff;
      border-radius: 8px;
      width: 100%; max-width: 700px;
      max-height: 90vh;
      display: flex; flex-direction: column;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
      overflow: hidden;
      position: relative;
      animation: slideInModal 0.3s ease;
    }
    @keyframes slideInModal {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .checkout-header {
      background-color: #22a6b3;
      color: #fff;
      padding: 16px 24px;
      display: flex; justify-content: space-between; align-items: center;
      position: sticky; top: 0; z-index: 1;
    }
    .checkout-header h2 {
      font-size: 1.4rem; font-weight: 500;
    }
    .checkout-close {
      background: none; border: none;
      font-size: 1.5rem; color: #fff; cursor: pointer;
      transition: color 0.2s ease;
    }
    .checkout-close:hover {
      color: #e0e0e0;
    }

    .checkout-body {
      padding: 24px;
      overflow-y: auto;
      flex: 1;
    }
    .checkout-body form {
      display: flex; flex-direction: column; gap: 16px;
    }
    .form-row {
      display: flex; flex-direction: column; gap: 6px;
    }
    label {
      font-size: 0.95rem; color: #555;
    }
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    select,
    textarea {
      padding: 10px 12px; font-size: 0.95rem;
      border: 1px solid #ccc; border-radius: 6px;
      background-color: #fafafa;
      transition: border-color 0.2s ease, background-color 0.2s ease;
    }
    input:focus,
    select:focus,
    textarea:focus {
      outline: none; border-color: #22a6b3; background-color: #fff;
    }
    textarea {
      resize: vertical; min-height: 80px;
    }
    .required::after {
      content: " *"; color: #d9534f;
    }
    .small-note {
      font-size: 0.85rem; color: #777; margin-top: 4px;
    }

    .input-error {
      border-color: #e84118 !important;
    }

    .total-section {
      border-top: 1px solid #e0e0e0; padding-top: 16px; margin-top: 16px;
    }
    .total-section p {
      font-size: 1rem; color: #333; margin-bottom: 6px;
    }
    .total-section .total-final {
      font-weight: 600; color: #22a6b3;
    }

    .checkout-footer {
      background-color: #fff;
      padding: 16px 24px;
      display: flex; justify-content: flex-end; gap: 12px;
      position: sticky; bottom: 0; z-index: 1;
      border-top: 1px solid #e0e0e0; flex-wrap: wrap;
    }
    .checkout-footer button {
      padding: 12px 24px; font-size: 1rem; border: none;
      border-radius: 50px; cursor: pointer; transition: background-color 0.2s ease;
      min-width: 140px; flex: 1 1 auto;
    }
    .btn-volver {
      background-color: #ccc; color: #333;
    }
    .btn-volver:hover {
      background-color: #b3b3b3;
    }
    .btn-confirmar {
      background-color: #22a6b3; color: #fff;
    }
    .btn-confirmar:hover {
      background-color: #1a797a;
    }

    .hidden {
      display: none;
    }

    /* ===== Loader interno (cargando pedido) ===== */
    .loading-overlay {
      position: absolute; top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(255,255,255,0.9);
      display: none; justify-content: center; align-items: center;
      z-index: 2;
    }
    .loading-overlay.show {
      display: flex;
    }
    .loader {
      border: 4px solid #f3f3f3;
      border-top: 4px solid #22a6b3;
      border-radius: 50%;
      width: 40px; height: 40px;
      animation: spin 1s linear infinite;
    }
    @keyframes spin {
      0%   { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }

    @media (max-width: 480px) {
      .checkout-body {
        padding: 16px;
      }
      .checkout-footer {
        flex-direction: column; gap: 10px;
      }
    }

    /* ===== Modal de “Pedido Confirmado” ===== */
    #orderSuccessModal {
      position: fixed; top: 0; left: 0;
      width: 100%; height: 100%;
      background-color: rgba(0,0,0,0.5);
      display: none; justify-content: center; align-items: center;
      z-index: 3000; padding: 20px;
    }
    .success-modal {
      background-color: #fff; border-radius: 8px;
      width: 100%; max-width: 500px; max-height: 90vh;
      display: flex; flex-direction: column;
      box-shadow: 0 4px 12px rgba(0,0,0,0.15);
      position: relative;
      animation: fadeInModal 0.3s ease;
    }
    @keyframes fadeInModal {
      from { opacity: 0; transform: translateY(-20px); }
      to { opacity: 1; transform: translateY(0); }
    }
    .success-header {
      background-color: #22a6b3;
      color: #fff;
      padding: 16px 24px;
      display: flex; justify-content: space-between; align-items: center;
    }
    .success-header h3 {
      font-size: 1.3rem; margin: 0;
    }
    .success-close {
      background: none; border: none;
      font-size: 1.5rem; color: #fff; cursor: pointer;
    }
    .success-body {
      padding: 24px; overflow-y: auto; flex: 1;
    }
    .success-body h4 {
      margin-bottom: 12px; color: #333;
    }
    .success-body p {
      margin-bottom: 8px; font-size: 0.95rem; color: #555;
    }
    .success-body .order-summary {
      margin-top: 16px; border-top: 1px solid #e0e0e0;
      padding-top: 16px; overflow-x: auto;
    }
    .success-body .order-summary table {
      width: 100%; border-collapse: collapse; margin-bottom: 16px;
    }
    .success-body .order-summary th,
    .success-body .order-summary td {
      text-align: left; padding: 6px 8px;
      border-bottom: 1px solid #ddd; font-size: 0.9rem;
    }
    .success-body .order-summary img {
      width: 40px; height: 40px; object-fit: cover; border-radius: 4px;
      margin-right: 8px; vertical-align: middle;
    }
    .success-body .total-info {
      font-weight: 600; color: #22a6b3;
      text-align: right; font-size: 1rem; margin-bottom: 12px;
    }
    .action-button {
      display: inline-block; font-weight: 600; text-align: center;
      padding: 10px 16px; border-radius: 4px; cursor: pointer;
      font-size: 0.95rem; transition: background-color 0.2s ease,
         border-color 0.2s ease, color 0.2s ease;
      min-width: 140px; margin-right: 8px; text-decoration: none;
    }
    .action-button.primary {
      background-color: transparent; color: #22a6b3; border: 2px solid #22a6b3;
    }
    .action-button.primary:hover {
      background-color: #22a6b3; color: #fff;
    }
    .action-button.secondary {
      background-color: #22a6b3; color: #fff; border: 2px solid #22a6b3;
    }
    .action-button.secondary:hover {
      background-color: transparent; color: #22a6b3;
    }

    @media (max-width: 480px) {
      .success-body {
        padding: 16px;
      }
      .success-body .order-summary {
        margin-top: 12px; padding-top: 12px;
      }
      .success-body .order-summary table,
      .success-body .order-summary th,
      .success-body .order-summary td {
        font-size: 0.8rem;
      }
      .action-button {
        display: block; width: 100%; margin: 8px 0;
      }
    }

    /* === Ajustes específicos para móviles: label y info-icon === */
    @media (max-width: 600px) {
      .cards-header {
        flex-direction: column;
        align-items: center;
        padding-top: 12px; /* espacio para label */
      }
      .cards-header .label-left {
        position: static;
        width: 100%;
        text-align: center;
        margin-bottom: 8px;
      }
      .cards-header .info-icon {
        position: static;
        margin-top: 8px;
      }
    }

/* Carrusel: controles sobre la imagen, circulares, semitransparentes */
.card {
  position: relative; /* para los controles */
}
.card img {
  transition: opacity 0.3s ease; /* suavizado al cambiar */
  display: block;
  width: 100%;
}
.carousel-prev,
.carousel-next {
  position: absolute;
  top: calc(45% - 16px);
  /*transform: translateY(-50%);*/
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.24);
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }

/* Mobile: posición distinta y ocultar flechas */
@media (max-width: 600px) {
  .carousel-prev,
  .carousel-next {
  position: absolute;
  top: calc(35% - 16px);
  /*transform: translateY(-50%);*/
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.3);
  color: #fff;
  font-size: 1.2em;
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.2s ease;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;          /* ocultas por defecto */
  }
  /* si quieres mostrarlas al tocar la card en móvil */
  .card.dragging .carousel-prev,
  .card.dragging .carousel-next {
    display: flex;
  }
}

/* sólo mostrar al hacer hover o durante swipe */
.card:hover .carousel-prev,
.card:hover .carousel-next,
.card.dragging .carousel-prev,
.card.dragging .carousel-next {
  opacity: 1;
}

.carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 10;
}

/* contenedor de imagen para controles y dots */
.image-wrapper {
  position: relative;
  overflow: hidden;
}

/* flechas */
.carousel-prev,
.carousel-next {
  position: absolute;
  left: 8px;        /* prev igual, next override abajo */
  top: 45%;         /* desktop */
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(0,0,0,0.20);
  color: #fff;
  font-size: 1.2em;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 5;
}
.carousel-next { right: 8px; left: auto; }

/* Mobile: flechas a 25% y ocultas, salvo drag */
@media (max-width: 600px) {
  .carousel-prev,
  .carousel-next {
    display: none;
  }
  .card.dragging .carousel-prev,
  .card.dragging .carousel-next {
    display: flex;
  }
}

/* dots */
.carousel-dots {
  position: absolute;
  bottom: 8px;           /* base de la imagen */
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  gap: 4px;
  z-index: 5;
}
.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  cursor: pointer;
  transition: background 0.2s ease;
}
.carousel-dots span.active {
  background: rgba(139, 130, 130);
}
/* Para modal: flechas siempre visibles en todos los dispositivos */
.img-modal-content .carousel-prev,
.img-modal-content .carousel-next {
  display: flex !important;
  opacity: 1 !important;
}

/* Para cards en móvil: nunca mostrar flechas */
@media (max-width: 600px) {
  .card .carousel-prev,
  .card .carousel-next {
    display: none !important;
  }
}

/* Overlay full-screen, semitransparente */
.img-modal-overlay {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 1200;
  transition: opacity 0.3s ease;
}
.img-modal-overlay.show {
  opacity: 1; visibility: visible;
}
.img-modal-overlay:not(.show) {
  opacity: 0; visibility: hidden;
}

/* Contenedor cuadrado */
.img-modal-content {
  position: relative;
  width: 90vmin; height: 90vmin;
  max-width: 90vmin; max-height: 90vmin;
  background: transparent;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}

/* Imagen contenida y redondeada */
.img-modal-content img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  transition: opacity 0.1s ease;
}

/* Botón cerrar */
.img-modal-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff; font-size: 1.2rem;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}
.img-modal-close:hover {
  background: rgba(0,0,0,0.7);
}

/* Flechas & dots dentro de este contenedor */
.img-modal-content .carousel-prev,
.img-modal-content .carousel-next {
  display: flex !important; opacity: 1 !important;
  position: absolute;
  width: 32px; height: 32px;
  border-radius: 50%; background: rgba(0,0,0,0.24);
  color: #fff; font-size: 1.2em; align-items: center; justify-content: center;
  z-index: 5;
}
.img-modal-content .carousel-prev { left: 8px; }
.img-modal-content .carousel-next { right: 8px; }

/* dots */
.img-modal-content .carousel-dots {
  display: flex !important;
  position: absolute; bottom: 8px; left: 50%;
  transform: translateX(-50%); gap: 4px;
  z-index: 5;
}
.img-modal-content .carousel-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.7); cursor: pointer;
  transition: background 0.2s;
}
.img-modal-content .carousel-dots span.active {
  background: rgba(255,255,255,1);
}

.guide-modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.8);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 2001;
}
.guide-modal-overlay:not(.hidden) {
  opacity: 1; visibility: visible;
}
.guide-modal-content {
  position: relative;
  width: 90vmin; height: 90vmin;
  overflow: hidden;
  background: transparent;
  display: flex; align-items: center; justify-content: center;
}
.guide-modal-content img {
  max-width: 100%; max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
}
.guide-close {
  position: absolute; top: 8px; right: 8px;
  width: 32px; height: 32px;
  border: none; border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff; font-size: 1.2rem;
  cursor: pointer; display: flex;
  align-items: center; justify-content: center;
}
.guide-close:hover {
  background: rgba(0,0,0,0.7);
}

/* ===== Footer ===== */
.site-footer {
  background: #fff;
  color: #555;
  padding: 24px 40px 11px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  justify-content: space-between;
}

.footer-section {
  flex: 1 1 220px;
  min-width: 160px;
}

.footer-section h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: #333;
  text-transform: uppercase;
}

.footer-section p,
.footer-section ul {
  margin: 0;
  line-height: 1.5;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 4px;
}

.footer-section ul li a {
  color: #22a6b3;
  text-decoration: none;
}

.footer-section ul li a:hover {
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  margin-top: 16px;
  font-size: 0.8rem;
  color: #999;
  border-top: 1px solid #eee;
  padding-top: 8px;
}

/* ===== Responsive ===== */
/* Tablet */
@media (max-width: 900px) {
  .footer-content {
    gap: 16px;
  }
  .footer-section {
    flex: 1 1 45%;
  }
}

/* Mobile */
@media (max-width: 600px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
  }
  .footer-section {
    width: 100%;
    text-align: center;
  }
}
/* ===== Page Loader ===== */
#page-loader {
  position: fixed;
  top: 60px;                        
  left: 0;
  width: 100%;
  height: calc(100% - 60px);        
  background: #fff;
  display: flex;
  flex-direction: column;           /* apilar spinner + texto */
  align-items: center;
  justify-content: center;
  z-index: 1001;                    
  transition: opacity 0.5s ease;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 5px solid #f3f3f3;
  border-top-color: #22a6b3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.loader-text {
  margin-top: 12px;                 /* separa del spinner */
  font-size: 1rem;
  color: #555;
}


@keyframes spin {
  to { transform: rotate(360deg); }
}
.desktop-nav {
  display: flex;
  gap: 24px;
  position: absolute;
  left: 25px;
}

.desktop-nav a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s ease;
}

.desktop-nav a:hover {
  color: #22a6b3;
}

.desktop-nav a.active {
  color: #22a6b3;
}

/* Ocultar en mobile */
@media (max-width: 874px) {
  .desktop-nav {
    display: none;
  }
}

/* Ocultar menú toggle en desktop */
@media (min-width: 875px) {
  .menu-toggle {
    display: none;
  }
}
.nav-menu {
  z-index: 1002;               /* debajo del navbar */
  padding-top: 60px;           /* espacio para navbar */
  box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.nav-menu li a.active {
  color: #22a6b3;
}

/* ===== Carrusel Moderno ===== */
/* Hero */
  .hero { 
    width: 100%;
  object-fit: cover;
  height: 100%;
  }

.carousel-indicators [data-bs-target] {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #b3b3b3;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.carousel-indicators .active {
  opacity: 1;
  background-color: #22a6b3; /* Color activo */
}



/* ===== Catálogos ===== */
.catalogos-section {
  padding: 60px 16px;
  background-image: url('/media/fondocatalogos.jpg'); /* 🖼️ Ruta de tu imagen */
  background-size: cover;       /* ✅ Que cubra todo el fondo */
  background-position: center;  /* ✅ Centrada */
  background-repeat: repeat; /* ✅ Que no se repita */
  background-attachment: fixed; /* 🎯 Esto crea el efecto parallax */
}
.catalogos-section h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 1.8rem;
}
.catalogos-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr); /* 3 por fila */
  gap: 10px;
  width: 100%;
}

@media (max-width: 1430px) {
  .catalogos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 13px;
  }
  .catalogo-card:hover {
  transform: scale(1.03); /* 🎯 Zoom al hacer hover */
  }
}

@media (max-width: 600px) {
  .catalogos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .catalogo-card:hover {
  transform: scale(1.03); /* 🎯 Zoom al hacer hover */
  }
}

@media (max-width: 400px) {
  .catalogos-grid {
    grid-template-columns: 1fr;
  }
  .catalogo-card:hover {
  transform: scale(1.01); /* 🎯 Zoom al hacer hover */
  }
}

.catalogo-card {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s ease; /* 🎯 Transición suave */
}

.catalogo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* ✅ Recorta sin deformar */
  display: block;
  border-radius: 5px;
  transition: transform 0.4s ease; /* 🎯 Transición suave */
}

.catalogo-card:hover {
  transform: scale(1.08); /* 🎯 Zoom al hacer hover */
}



/* ===== Beneficios ===== */
.beneficios-section {
  padding: 40px;
  text-align: center;
  background-color: #ffffffe8;
}
.beneficios-section h2 {
  font-size: 2rem;
  margin-bottom: 32px;
  color: #22a6b3;
}
.beneficios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}
.beneficio-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 24px;
  max-width: 260px;
  flex: 1 1 220px;
  transition: transform 0.2s ease;
}
.beneficio-card:hover {
  transform: translateY(-4px);
}
.beneficio-card i {
  font-size: 2rem;
  color: #22a6b3;
  margin-bottom: 16px;
}
.beneficio-card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}
.beneficio-card p {
  color: #555;
  font-size: 0.95rem;
}



/* ===== Newsletter ===== */
.newsletter-section {
  max-width: 750px;
  margin: 60px auto;
  padding: 40px 24px;
  text-align: center;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.newsletter-section h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  color: #22a6b3;
}
.newsletter-section form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.newsletter-section input {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  flex: 1 1 300px;
  font-size: 1rem;
  outline: none;
  transition: border 0.3s ease;
}
.newsletter-section input:focus {
  border-color: #22a6b3;
}
.newsletter-section button {
  padding: 14px 22px;
  background: #22a6b3;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}
.newsletter-section button:hover {
  background: #1a7989;
}

.redes-sociales {
  text-align: center;
  padding: 40px 20px;
  background-color: #fff;
}
.redes-sociales h2 {
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #22a6b3;
}
.iconos-redes {
  display: flex;
  justify-content: center;
  gap: 50px;
}
.iconos-redes a {
  font-size: 2rem;
  color: #555;
  transition: transform 0.3s ease, color 0.3s ease;
}
.iconos-redes a:hover {
  transform: scale(1.2);
  color: #22a6b3;
}
/* INFORAMCION DE COMPRA */
.info-compra {
  background-color: #f9f9f9;
  padding: 60px 20px;
  color: #333;
}

.info-container {
  max-width: 900px;
  margin: auto;
}

.info-compra h2 {
  font-size: 2rem;
  text-align: center;
  color: #22a6b3;
  margin-bottom: 30px;
}

.info-compra h3 {
  margin-top: 30px;
  color: #333;
  font-size: 1.2rem;
}

.info-compra p {
  margin-top: 12px;
  line-height: 1.6;
}

.info-compra .intro {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 30px;
}

.badge.nuevo {
  background-color: #27ae60;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.badge.oferta {
  background-color: #c0392b;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
}

.info-compra a {
  color: #22a6b3;
  text-decoration: none;
}

