:root {
    --color-primario: #007bff;
    --color-producto: #fff;
    --color-servicio: #fff;
    --tipografia: Arial, sans-serif;
    font-family: var(--tipografia);
}

/* Reset general */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
    color: #333;
}

h2, h3 {
    margin: 0.5em 0;
}

a {
    text-decoration: none;
}

/* esto es el header, no lo olvides*/
header {
    background-color: var(--color-primario);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    height: 80px;
}

.logo_header img {
    height: 60px;           /* Altura fija */
    width: auto;            /* Ancho automático (mantiene proporción) */
    max-width: 100%;        /* Evita que se desborde en móviles */
    object-fit: contain;    /* Garantiza que la imagen no se corte */
    transition: transform 0.3s ease-in-out; /* Transición suave */
}

.logo_header a:hover img {
    transform: scale(1.1); /* Efecto sutil al hover */
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: white;
}

.nombre_header h1 {
    font-size: 24px;
    margin: 0;
}


.store-logo-wrapper {
    display: none;
}

/* --- Sección tienda corregida --- */
.store-section {
    display: flex;
    flex-direction: column;
    align-items: center; 
    justify-content: center; 
    text-align: center;
    padding: 20px;
    background-color: #fff;
    width: 100%;
    box-sizing: border-box;
    gap: 15px;
}


.store-description {
    margin-top: 10px;
    color: #666;
}

/* --- ESTILOS DE LA TARJETA DE PRESENTACIÓN --- */
.card-presentacion-container {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 40px auto;
    font-family: Arial, sans-serif; /* Cambiado a Arial por si no carga Roboto */
    box-sizing: border-box;
    padding: 0 15px;
}

.card-presentacion-main {
    width: 100%;
    height: auto;
    color: white;
    background-color: var(--color-primario);
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.card-presentacion-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 50%, rgba(20, 30, 50, 0.7), rgba(0, 0, 0, 0.9));
    z-index: -1;
}

/* Secciones de la tarjeta */
.card-presentacion-header {
    margin-bottom: 25px;
}

.card-presentacion-nombre p {
    font-size: 1.6em;
    font-weight: 700;
    margin: 0 0 5px 0;
    letter-spacing: 2px;
}

.card-presentacion-puesto p {
    font-size: 1.1em;
    font-weight: 400;
    opacity: 0.8;
    margin: 0;
}

.card-presentacion-profile-section {
    margin-bottom: 30px;
}

/* --- Estilo minimalista para imagen de perfil --- */
.card-presentacion-profile-bussiness {
    margin: 0 auto 15px;
    display: block;
    text-align: center;
}

.card-presentacion-profile-bussiness img {
    width: auto; /* Ancho natural */
    height: auto; /* Alto natural */
    max-width: 150px; /* Límite máximo */
    max-height: 150px;
    border-radius: 8px;
    object-fit: contain; /* Mantiene proporciones */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Versión móvil */
/* @media (max-width: 768px) {
    .card-presentacion-profile-bussiness img {
        max-width: 130px;
        max-height: 130px;
    }
}

@media (max-width: 480px) {
    .card-presentacion-profile-bussiness img {
        max-width: 110px;
        max-height: 110px;
    }
} */


.card-presentacion-profile-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
}

.card-presentacion-qr-code {
    margin-bottom: 30px;
}

.card-presentacion-qr-code img {
    width: 150px;
    height: 150px;
    padding: 10px;
    background-color: white;
    border-radius: 10px;
}

/* Sección de contactos */
.card-presentacion-contactos {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-presentacion-contact-item {
    display: flex;
    align-items: center;
    background-color: white;
    color: #1a233b;
    border-radius: 50px;
    padding: 15px 25px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-presentacion-contact-item .card-presentacion-icon {
    font-size: 1.2em;
    margin-right: 15px;
    line-height: 1;
}

.card-presentacion-contact-item p {
    margin: 0;
    font-weight: 700;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-presentacion-contact-item a {
    text-decoration: none;
    color: #1a233b;
    font-weight: 700;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}



/* --- Iconos Sociales con Efecto Similar al Logo --- */
.social-icons-main {
    margin: 20px 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.social-icons-main a {
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons-main img {
    width: 42px;
    height: 42px;
    transition: transform 0.2s;
}
.social-icons-main #icon-qr {
    transition: transform 0.2s;
    display: inline-block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icons-main #icon-qr:hover {
    transform: scale(1.1);
    transition: transform 0.2s;
}

.social-icons-main #icon-qr img {
    width: 42px;
    height: 42px;
    vertical-align: middle;
}



.social-icons-main a:hover img {
    transform: scale(1.1);
}

/* Versión responsive */
@media (max-width: 600px) {
    .social-icons-main {
        gap: 12px;
    }
    
    .social-icons-main img {
        width: 28px;
        height: 28px;
    }
}

/* ===== Modal imagen pagos (Yape/Plin) ===== */
.pay-modal {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  z-index: 10000;
}
.pay-modal.open { display: grid; }

.pay-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.6);
}

.pay-modal__content {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  width: min(92vw, 560px);
  max-height: 88vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
  border-top: 5px solid var(--color-primario, #007bff);
}

.pay-modal__close {
  position: absolute;
  top: 8px; right: 10px;
  width: 36px; height: 36px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-size: 20px; line-height: 1;
}
.pay-modal__close:hover { background: #f7f9fc; }

.pay-modal__img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid #eef1f5;
}

.pay-modal__caption {
  margin: 0;
  text-align: center;
  font-size: 13px;
  color: #6b7280;
}

/* Iconos clicables */
.pay-icon {
  width: 42px; height: 42px; cursor: pointer;
  display: inline-block;
  transition: transform .2s ease, opacity .2s ease;
}
.pay-icon:hover { transform: scale(1.08); }

/* Botón Mostrar Bancos */
.mostrar-bancos-container {
  padding: 16px;
  border-radius: 12px;
  text-align: center;
}

.btn-bancos {
    background: var(--color-primario);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.btn-bancos:hover {
    transform: scale(1.1);
}

/* Botón Mostrar Bancos */
.mostrar-bancos-container {
    margin-top: 25px;
    text-align: center;
    width: 100%;
}

.btn-bancos {
    background: var(--color-primario);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    margin-bottom: 15px;
}

.btn-bancos:hover {
    transform: scale(1.1);
}

/* Card Bancos */
.card-bancos {
    background: var(--color-primario);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    margin: 20px auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
    max-width: 600px;
    border: 2px solid rgba(255,255,255,0.1);
}

.card-bancos h3 {
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.banco-item {
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    background: #fff;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    text-align: center;
}

.banco-nombre {
    font-size: 18px;
    font-weight: 700;
    color: black;
    margin-bottom: 12px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.banco-detalle {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 15px;
    color: black;
    align-items: center;
    text-align: center;
    font-weight: 500;
}

.banco-detalle span {
    padding: 5px 0;
    border-radius: 6px;
    background: #fff;
    width: 100%;
    max-width: 300px;
}

.card-bancos.hidden {
    display: none;
}

.banco-item:hover {
    background: rgba(255,255,255,0.15);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-color: rgba(255,255,255,0.3);
}

.banco-empty {
    text-align: center;
    font-style: italic;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    padding: 20px;
}

/* Responsive para PC y móviles */
@media (max-width: 768px) {
    .card-bancos {
        width: 95%;
        padding: 20px;
        margin: 15px auto;
    }
    
    .banco-item {
        padding: 15px;
        margin-bottom: 12px;
    }
    
    .banco-nombre {
        font-size: 16px;
    }
    
    .banco-detalle {
        font-size: 14px;
    }
    
    .card-bancos h3 {
        font-size: 20px;
    }
    
    .btn-bancos {
        padding: 10px 20px;
        font-size: 15px;
    }
    
    .btn-bancos:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .card-bancos {
        width: 100%;
        padding: 15px;
        border-radius: 12px;
    }
    
    .banco-item {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .banco-nombre {
        font-size: 15px;
    }
    
    .banco-detalle {
        font-size: 13px;
        gap: 6px;
    }
    
    .banco-detalle span {
        max-width: 250px;
    }
    
    .card-bancos h3 {
        font-size: 18px;
    }
    
    .btn-bancos {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .btn-bancos:hover {
        transform: scale(1.03);
    }
}

/* Efectos de transición suave */
.card-bancos,
.banco-item {
    transition: all 0.3s ease;
}

/* Mejora de accesibilidad */
.btn-bancos:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

/* Sombras mejoradas */
.card-bancos {
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.banco-item {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* --- Catálogo general --- */
.contenedor {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

.titulo {
    font-size: 1.5em;
    margin: 30px 0 20px;
    text-align: center;
}

/* Filtros */
.filtros {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

.filtros input, .filtros select {
    padding: 8px;
    border: 1px solid #fff;
    border-radius: 5px;
    min-width: 180px;
}

/* Grid de Servicios y Productos */
.productos {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    transition: transform 0.2s;
}

.servicios {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    transition: transform 0.2s;
}

.servicios-favoritos {
    background-color: #fff;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
    transition: transform 0.2s;
}

.productos .card {
    background-color: var(--color-producto);
}

.servicios .card {
    background-color: var(--color-servicio);
}

.servicios-favoritos .card {
    background-color: var(--color-servicio);
}

/* ===== Favoritos (Carousel vanilla) — compacto, centrado y sin recortes ===== */
.favoritos-section{
  margin:18px auto;
  padding:12px;
  background:#fff;
  border-radius:10px;
  box-shadow:0 4px 18px rgba(16,24,40,.06);
  max-width:900px;                 /* ancho contenido */
}

.favoritos-title{
  width:100%;
  margin:0 0 10px;
  text-align:center;               /* título centrado */
  font-weight:700;
  letter-spacing:.2px;
}

/* --- Carrusel --- */
.fav-carousel{ position:relative; }
.fav-viewport{ overflow:hidden; border-radius:10px; }

/* Pista de slides */
.fav-track{
  display:flex;
  margin:0; padding:0; list-style:none;
  transition:transform .4s ease;
  will-change:transform;
}

/* Cada slide ocupa todo el viewport del carrusel */
.fav-slide{
  min-width:100%;
  aspect-ratio:16 / 9;             /* relación de aspecto estable (más compacto) */
  position:relative;
  background:#fff;
}

/* Imagen completa sin recorte, centrada */
.fav-slide img{
  position:absolute; inset:0;
  width:100%; height:100%;
  object-fit:contain;              /* muestra toda la imagen */
  object-position:center;
  background:#fff;                 /* “letterbox” blanco cuando sobren bandas */
  display:block;
}

/* Pie de slide (superpuesto y discreto) */
.fav-caption{
  position:absolute; left:0; right:0; bottom:0;
  padding:12px 14px 10px;
  color:#fff;
  background:linear-gradient(to top, rgba(0,0,0,.5), rgba(0,0,0,0));
  font-size:12px;
  pointer-events:none;             /* evita tapar las flechas al hacer clic */
}
.fav-caption h3{ margin:0 0 4px; font-size:15px; font-weight:700; }
.fav-caption p{  margin:0 0 6px; font-size:12px; line-height:1.3; }
.fav-btn{
  display:inline-block; padding:6px 10px;
  background:#25D366; color:#fff;
  border-radius:7px; text-decoration:none; font-weight:600; font-size:12px;
  transition:transform .2s ease, opacity .2s ease;
  pointer-events:auto;             /* permite clics en el botón dentro del caption */
}
.fav-btn:hover{ transform:translateY(-1px); opacity:.95; }

/* Flechas — tamaño menor, encima de todo */
.fav-nav{
  position:absolute; top:50%; transform:translateY(-50%);
  width:34px; height:34px;
  border:none; border-radius:50%;
  cursor:pointer; user-select:none;
  background:rgba(0,0,0,.38); color:#fff;
  font-size:22px; line-height:34px;
  display:flex; align-items:center; justify-content:center;
  transition:background .2s ease, transform .2s ease;
  z-index:20;                      /* por encima de caption e imagen */
}
.fav-prev{ left:8px; }
.fav-next{ right:8px; }
.fav-nav:hover{ background:rgba(0,0,0,.55); transform:translateY(-50%) scale(1.05); }
.fav-nav:focus-visible{ outline:2px solid var(--color-primario, #2563eb); outline-offset:2px; }

/* Indicadores (dots) */
.fav-dots{
  position:absolute; left:0; right:0; bottom:8px;
  display:flex; justify-content:center; gap:6px;
  z-index:21;                      /* por encima del degradado del caption */
}
.fav-dot{
  width:8px; height:8px; border-radius:50%;
  border:2px solid #fff; background:transparent; padding:0;
  cursor:pointer;
  transition:background .2s ease, transform .2s ease, border-color .2s ease;
}
.fav-dot.is-active{
  background:var(--color-primario, #2563eb);
  border-color:var(--color-primario, #2563eb);
  transform:scale(1.05);
}

/* Si solo hay 1 slide, oculta controles */
.fav-carousel.is-single .fav-nav,
.fav-carousel.is-single .fav-dots{ display:none; }

/* Responsive */
@media (max-width: 640px){
  .favoritos-section{ padding:10px; }
  .favoritos-title{ font-size:16px; }
  .fav-nav{ width:32px; height:32px; font-size:20px; }
  .fav-caption{ padding:10px 12px 8px; font-size:11px; }
  .fav-caption h3{ font-size:14px; }

  
}

/* Móvil: corta descripción a 2 líneas con "…" */
@media (max-width:640px){
  .fav-caption p{
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;  /* ← cambia a 3 si quieres 3 líneas */
    overflow: hidden;
  }

  /* opcional: título en una sola línea con "…" */
  .fav-caption h3{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}


/* Utilidad opcional para ocultar toda la sección (si el servidor decide que no hay favoritos) */
.favoritos-section.is-hidden{ display:none !important; }


.card {
    width: 220px;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 2;
}

.img-container {
    width: 100%;
    height: 160px;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background-color: red;
    color: white;
    padding: 4px 8px;
    font-size: 0.8em;
    border-radius: 4px;
}

.contenido {
    padding: 10px 0;
}

.stock-linea {
    font-size: 0.85em;
    color: #28a745;
    margin: 5px 0;
}

.precio {
    font-weight: bold;
    color: #cf3f3f;
    font-size: 1.1em;
}

.whatsapp a {
    background-color: #25D366;
    color: white;
    padding: 8px;
    display: block;
    text-align: center;
    border-radius: 5px;
    font-weight: bold;
    margin-top: 10px;
}

/* --- Footer Responsivo --- */
footer {
    text-align: center;
    padding: 1.5rem;
    font-size: clamp(0.8rem, 2vw, 0.95rem); /* Tamaño adaptable */
    color: #888;
    background-color: #f1f1f1;
    margin-top: 2rem;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Para pantallas pequeñas (móviles) */
@media (max-width: 600px) {
    footer {
        padding: 1rem 0.8rem;
        font-size: 0.8rem;
        line-height: 1.4;
    }
}

/* Para pantallas muy pequeñas */
@media (max-width: 400px) {
    footer {
        padding: 0.8rem 0.5rem;
    }
}

/* Asegurar que el footer siempre se quede abajo */
.page-wrapper {
    font-family: var(--tipografia);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-wrapper > footer {
    margin-top: auto;
}

/* --- Responsive (pantallas pequeñas) --- */
@media (max-width: 600px) {
    .card {
        width: 90%;
    }

    .central-logo {
        width: 100px;
        height: 100px;
        padding: 15px;
    }

    .filtros input,
    .filtros select {
        width: 100%;
    }

    .productos {
        gap: 12px;
    }
}
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


