/*
 * ==========================================================
 * SANOHF - ESTILOS PRINCIPALES (PWA) - VERSIÓN REDISEÑADA
 * Ubicación: /go/assets/css/style.css
 * ==========================================================
 */

/* 1. Importar Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* 2. Variables de Color y Base */
:root {
  --bs-primary: #27ae60;      /* Verde principal (ej. botones) */
  --bs-primary-rgb: 39, 174, 96;
  --bs-primary-dark: #229954;
  --bs-secondary: #343a40;    /* Oscuro para texto fuerte */
  --bs-light: #f8f9fa;
  --bs-font-sans-serif: 'Poppins', sans-serif;
  --card-radius: 14px;
  --soft-shadow: 0 6px 20px rgba(16,24,40,0.08);
}

/* Reset y base */
html, body {
  height: 100%;
}
body {
  font-family: var(--bs-font-sans-serif);
  background-color: #f4f7f6;
  color: var(--bs-secondary);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  margin: 0;
  padding: 0;
}

/* MAIN CONTAINER */
.main-container {
  padding-top: 56px;
  padding-bottom: 80px;
  max-width: 980px;
  margin: 0 auto;
}

/* HEADER */
.app-header {
  height: 56px;
  background-color: #ffffff;
  border: none;
  box-shadow: 0 2px 10px rgba(16,24,40,0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.5rem;
  border-radius: 10px;
}

/* LOGO */
.logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bs-primary);
  text-decoration: none;
}

/* PROFILE CARD */
.profile-card {
  border-radius: var(--card-radius);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  box-shadow: var(--soft-shadow);
  padding: 14px;
}
.avatar {
  width: 56px;
  height: 56px;
}
.avatar-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(var(--bs-primary-rgb),0.95), var(--bs-primary-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(39,174,96,0.12);
}
.avatar-initials {
  font-size: 1rem;
}

/* CARDS (accion/promo) */
.card {
  border: none;
  border-radius: var(--card-radius);
}

/* ACTION CARDS */
.action-card .card-body {
  padding: 1.25rem;
}
.action-card .icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow: 0 6px 16px rgba(16,24,40,0.06);
}
.action-card h5 {
  margin-top: 0.4rem;
  font-weight: 600;
}
.action-card p {
  margin-bottom: 0.6rem;
}

.btn-primary {
  background: var(--bs-primary);
  border: none;
  box-shadow: 0 8px 22px rgba(var(--bs-primary-rgb),0.14);
}
.btn-primary:hover {
  background: var(--bs-primary-dark);
}

/* BTN SUCCESS ajustada */
.btn-success {
  background: #2e8b57;
  border: none;
  box-shadow: 0 8px 22px rgba(46,139,87,0.12);
}

/* CTA amarillo (botón Ver mis puntos) */
.btn-yellow {
  background: linear-gradient(90deg,#ffd54a,#ffd03b);
  color: #222;
  border: none;
  padding: .65rem 1.25rem;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

/* BANNER / CARRUSEL */
#bannerCarouselWrapper .card {
  padding: 0;
}
.banner-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.banner-img {
  display:block;
  width:100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.banner-wrapper:hover .banner-img { transform: scale(1.03); }
.banner-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  color: white;
  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* Promo card grande */
.promo-card .promo-img {
  height: 160px;
  object-fit: cover;
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}

/* BOTTOM NAV */
.bottom-nav {
  height: 70px;
  box-shadow: 0 -8px 24px rgba(16,24,40,0.06);
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  z-index: 1099;
}
.bottom-nav .nav-link {
  color: var(--bs-secondary);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-decoration:none;
}
.bottom-nav .nav-link.active {
  color: var(--bs-primary);
}
.bottom-nav .nav-link i { display:block; margin-bottom:4px; }
.cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #ff3b30;
  color: white;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 999px;
  display: none;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* OFFCANVAS styling */
.offcanvas { width: 280px; }

/* UTILS */
.text-muted { color: #6b7280 !important; }
.small { font-size: .85rem; }

/* RESPONSIVE */
@media(min-width: 768px) {
  .bottom-nav { display: none; } /* Desktop no muestra bottom nav */
  .main-container { padding-top: 1rem; }
  .banner-img { height: 300px; }
}

/* Hover cards / micro interactions */
.card:hover { transform: translateY(-4px); transition: transform 0.18s ease; }

/* Ajustes adicionales de tu CSS previo que mantuve y adapté */
.carousel {
    max-width: 100%;
    margin: 0 auto;
    overflow: visible;
}
.carousel-caption {
    background: rgba(0,0,0,0.35);
    border-radius: 6px;
    padding: 8px 10px;
}

/* Estilo para inputs / formularios si se usan en modales */
.form-wrapper {
  max-width: 480px;
  margin: 1rem auto;
  background: #ffffff;
  padding: 1.25rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

/* CARD IMAGES y utilidades anteriores (mínimos cambios) */
.card-img { transition: transform 0.3s ease; }
.card:hover .card-img { transform: scale(1.03); }
.badge { font-size: 0.85rem; padding: 0.25rem 0.5rem; }

/* Asegurar que el placeholder spinner quede centrado */
#banner-carousel-placeholder { min-height: 220px; display:flex; align-items:center; justify-content:center; }

/* Ajuste pequeño para iconos bootstrap si usas bi */
.bi { vertical-align: -0.125em; }






/* ==========================================================
   PLAN SEMANAL - TARJETAS DE DÍAS (CORREGIDO)
   ========================================================== */

.dia-card {
    cursor: pointer;
    user-select: none;
    transition: all 0.2s ease;
}

.dia-card .dia-content {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: var(--card-radius);
    transition: all 0.2s ease;
    position: relative;
}

.dia-card:hover .dia-content {
    border-color: var(--bs-primary);
    box-shadow: 0 6px 16px rgba(var(--bs-primary-rgb), 0.1);
    transform: translateY(-2px);
}

.dia-card.selected .dia-content {
    border-color: var(--bs-primary);
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), 0.05), rgba(var(--bs-primary-rgb), 0.03));
    box-shadow: 0 8px 20px rgba(var(--bs-primary-rgb), 0.12);
}

.dia-card .bi-check-circle-fill {
    display: none;
    color: var(--bs-primary);
}

.dia-card .bi-circle {
    display: block;
    color: #adb5bd;
}

/* Checkbox oculto pero funcional */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}