/* =============================================================================================== *
 * TIPOGRAFÍAS                                                                                     *
 * =============================================================================================== */

.uk-h1, .uk-h2, .uk-h3, .uk-h4, .uk-h5, .uk-h6,
.uk-heading-2xlarge, .uk-heading-large, .uk-heading-medium, .uk-heading-small, .uk-heading-xlarge,
h1, h2, h3, h4, h5, h6 {
  font-family: 'Raleway', sans-serif;
}

html, body, p, span, .field__label, .field__input, .field__textarea, .field__select {
  font-family: 'Montserrat', sans-serif;
}

/* =============================================================================================== *
 * COLORES Y ESTILOS GENERALES                                                                     *
 * =============================================================================================== */

.background--primary,
.background--primary-hover:hover {
  background-color: #f0f4f1;
}

.text--primary,
.text--primary-hover:hover,
body {
  color: #000000;
}

.contrast_text--primary,
.contrast_text--primary-hover:hover {
  color: #333333;
}

/* =============================================================================================== *
 * CHECKBOX PERSONALIZADO                                                                          *
 * =============================================================================================== */

.checkbox__check:checked::before {
  border: solid #f0f4f1;
}

.checkbox__check:checked,
.checkbox__check:checked:focus {
  border: 1px solid #f0f4f1;
}

.checkbox__check:checked + .checkout__label-text {
  color: #f0f4f1;
}

/* =============================================================================================== *
 * BORDES Y RADIOS                                                                                 *
 * =============================================================================================== */

.border--primary {
  border: solid #000000;
}

.border-radius {
  border-radius: 6px;
}

.field__input.border-radius,
.field__select.border-radius,
.field__textarea.border-radius {
  border-radius: 6px;
}

.field__input.border-radius.field__input--right-button {
  border-top-right-radius: 0px;
  border-bottom-right-radius: 0px;
}

/* =============================================================================================== *
 * CONTENEDOR DE PRODUCTOS                                                                         *
 * =============================================================================================== */

.productos-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 10px;
}

/* =============================================================================================== *
 * TARJETA DE PRODUCTO                                                                             *
 * =============================================================================================== */

.producto {
  flex: 0 0 30%;
  margin: 1%;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  box-sizing: border-box;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.producto:hover {
  transform: translateY(-5px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* =============================================================================================== *
 * IMÁGENES DE PRODUCTO                                                                            *
 * =============================================================================================== */

.imagen-container {
  position: relative;
  transition: transform 0.3s ease;
  will-change: transform;
}

.producto:hover .imagen-container {
  transform: scale(1.01) translateY(-1px);
}

.producto img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 10px;
  border-radius: 4px;
}

/* =============================================================================================== *
 * AVISO DE SIN STOCK                                                                              *
 * =============================================================================================== */

.sin-stock {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(255, 255, 255, 0.5);
  color: #000;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 20px;
  z-index: 2;
}

/* =============================================================================================== *
 * TÍTULOS DE CONTENIDO                                                                            *
 * =============================================================================================== */

.titulos-contenido {
  text-align: center;
  color: #444;
  font-family: 'Raleway', sans-serif;
  font-weight: 600;
  font-size: 2em;
  margin: 40px auto 30px;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  letter-spacing: 1px;
  position: relative;
  display: block;
  padding-bottom: 10px;
}

.titulos-contenido::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #ccc;
  margin: 10px auto 0;
  border-radius: 2px;
}

/* =============================================================================================== *
 * PRODUCTO ÚNICO (DETALLE)                                                                        *
 * =============================================================================================== */

.producto-unico {
  width: 100%;
  max-width: 100%;
}

.producto-unico .imagen-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* =============================================================================================== *
 * RESPONSIVE (BREAKPOINTS)                                                                        *
 * =============================================================================================== */

@media (max-width: 768px) {
  .producto { flex: 0 0 47%; }
}

@media (max-width: 500px) {
  .producto { flex: 0 0 98%; }
}

/* =============================================================================================== *
 * BARRA SUPERIOR FIJA + CARRITO                                                                   *
 * =============================================================================================== */

.header-announcement {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* encima de todo */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5em 1em;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

body {
  padding-top: 60px; /* para que no se oculte el contenido detrás de la barra */
}

.ver-carrito-link {
  color: white; /* o el que combine con tu diseño */
  text-decoration: none;
  font-weight: bold;
  padding: 0.3em 3em 0.3em 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
  transition: background 0.2s;
}

.ver-carrito-link:hover {
  background: rgba(255, 255, 255, 0.25);
}




