/* Garsan - capa visual sobre Hummingbird (PrestaShop 9)
   Paleta: azul marino #003380, azul claro #5594e6. */

:root {
  --g-navy: #003380;
  --g-navy-dark: #002a6b;
  --g-blue: #5594e6;
  --g-ink: #1b1f24;
  --g-muted: #5b6470;
  --g-line: #e3e7ed;
  --g-bg: #f7f9fc;
}

/* Tipografia mas limpia y aireada */
body {
  color: var(--g-ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .h1, .h2, .h3 {
  letter-spacing: -0.01em;
  font-weight: 700;
  color: var(--g-ink);
}

/* Enlaces */
a, .link-primary {
  color: var(--g-navy);
}
a:hover, .link-primary:hover {
  color: var(--g-blue);
}

/* Botones */
.btn-primary {
  background-color: var(--g-navy);
  border-color: var(--g-navy);
  font-weight: 600;
  border-radius: 8px;
  padding: .55rem 1.1rem;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background-color: var(--g-navy-dark) !important;
  border-color: var(--g-navy-dark) !important;
}
.btn-outline-primary {
  color: var(--g-navy);
  border-color: var(--g-navy);
  border-radius: 8px;
  font-weight: 600;
}
.btn-outline-primary:hover {
  background-color: var(--g-navy);
  border-color: var(--g-navy);
}

/* Cabecera */
.header-top {
  background: var(--g-navy);
  color: #fff;
  font-size: .86rem;
}
.header-top a { color: rgba(255,255,255,.92); }
.header-top a:hover { color: #fff; }

.site-header, .header-nav {
  background: #fff;
  border-bottom: 1px solid var(--g-line);
}

/* Buscador */
.search-widget input[type="text"],
.search-widget .form-control {
  border-radius: 8px 0 0 8px;
  border: 1px solid var(--g-line);
}
.search-widget .btn {
  border-radius: 0 8px 8px 0;
}

/* Tarjetas de producto */
.product-miniature,
.product-card {
  border: 1px solid var(--g-line);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow .18s ease, transform .18s ease;
}
.product-miniature:hover,
.product-card:hover {
  box-shadow: 0 10px 28px rgba(0, 51, 128, .10);
  transform: translateY(-2px);
}
.product-title a {
  color: var(--g-ink);
  font-weight: 600;
  text-decoration: none;
}
.product-title a:hover { color: var(--g-navy); }
.product-price, .price {
  color: var(--g-navy);
  font-weight: 700;
}
.product-flag, .badge-primary, .badge {
  background: var(--g-navy) !important;
  border-radius: 999px;
  font-weight: 600;
}
.badge-success, .product-availability .badge-success {
  background: #0a7d32 !important;
}

/* Secciones y titulos de la home */
.block-category, .featured-products, .products-section {
  padding-top: 2.2rem;
  padding-bottom: 1.2rem;
}
.products-section-title, .section-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--g-ink);
  margin-bottom: 1.2rem;
}

/* Footer */
.footer-container, footer {
  background: #0f1621;
  color: #c9d2de;
  margin-top: 3rem;
}
.footer-container a, footer a { color: #fff; }
.footer-container a:hover, footer a:hover { color: var(--g-blue); }
.footer-container h3, .footer-container .h3 { color: #fff; font-size: 1rem; }

/* Formularios */
.form-control:focus, .form-select:focus {
  border-color: var(--g-blue);
  box-shadow: 0 0 0 .2rem rgba(85, 148, 230, .18);
}

/* Aviso de plazo de entrega */
.g-plazo {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: #eef4fd;
  color: var(--g-navy);
  border-radius: 999px;
  padding: .3rem .75rem;
  font-size: .85rem;
  font-weight: 600;
}

/* Banner principal: degradado lateral en vez de caja opaca */
.carousel-caption {
  background: linear-gradient(90deg, rgba(0, 18, 45, .86) 0%, rgba(0, 18, 45, .62) 55%, rgba(0, 18, 45, 0) 100%) !important;
  border-radius: 0 !important;
  left: 0 !important;
  right: auto !important;
  bottom: 0 !important;
  top: 0 !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  text-align: left !important;
  padding: 2rem 3rem !important;
  max-width: 64%;
}
.carousel-caption h2, .carousel-caption .h2, .carousel-caption .display-1 {
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: none;
  margin-bottom: .5rem;
  color: #fff !important;
}
.carousel-caption p, .carousel-caption .h3 {
  font-size: clamp(.95rem, 1.3vw, 1.15rem);
  font-weight: 400;
  opacity: .95;
  margin: 0;
}
@media (max-width: 767px) {
  .carousel-caption {
    max-width: 100%;
    padding: 1.25rem !important;
    background: linear-gradient(180deg, rgba(0,18,45,.10) 0%, rgba(0,18,45,.88) 70%) !important;
  }
}


/* --- 30-nov-2026: legibilidad franja superior navy (usuario y carrito) --- */
.header-top,
.header-top a,
.header-top .header-block__action-btn,
.header-top .header-block__action-btn:hover,
.header-top .header-block__icon,
.header-top .ps-shoppingcart,
.header-top .ps-shoppingcart a {
  color: #ffffff !important;
  fill: #ffffff;
}
.header-top .header-block__badge {
  background: #ffffff !important;
  color: #003380 !important;
}
.header-top svg, .header-top svg * { fill: #ffffff !important; }

/* --- 30-nov-2026: desplegable de usuario legible ---
   La franja superior fuerza texto blanco; el desplegable tiene fondo claro,
   asi que hay que devolverle el color oscuro dentro del panel. */
.header-top .dropdown-menu,
.header-top .dropdown-menu *,
.header-top .account-menu,
.header-top .account-menu *,
.header-top .ps-customersignin .dropdown-menu,
.header-top .ps-customersignin .dropdown-menu * {
  color: var(--g-ink) !important;
  fill: var(--g-ink) !important;
}
.header-top .dropdown-menu {
  background-color: #ffffff !important;
  border: 1px solid var(--g-line) !important;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 51, 128, .12);
  padding: .4rem 0;
}
.header-top .dropdown-menu a,
.header-top .dropdown-item {
  color: var(--g-ink) !important;
  padding: .45rem 1rem;
  font-size: .9rem;
}
.header-top .dropdown-menu a:hover,
.header-top .dropdown-item:hover,
.header-top .dropdown-item:focus {
  background-color: var(--g-bg) !important;
  color: var(--g-navy) !important;
}
.header-top .dropdown-divider {
  border-top: 1px solid var(--g-line);
}
/* El boton de la cuenta en la franja sigue en blanco */
.header-top .header-block__action-btn,
.header-top .header-block__title {
  color: #ffffff !important;
}
