/* ======== inicio de estilo de header ============= */

/* ===================================================
   AJUSTES GENERALES
   =================================================== */
* {
    box-sizing: border-box;
}

body {
    background: url('../imagenes/imgFondo.webp') no-repeat center center fixed;
    background-size: cover;
    font-family: Arial, sans-serif;
}

/* ===================================================
   CINTA SUPERIOR / HEADER
   =================================================== */
.cinta {
    background-color: #104e12;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    width: 100%;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    border-bottom: 2px solid #28a745;
}

.social-icons-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icon {
    background-color: #28a745;
    color: white;
    font-size: 20px;
    padding: 12px;
    border-radius: 50%;
    text-decoration: none;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #1f6b0e;
    transform: scale(1.2);
}

.social-icons-container a:last-child {
    margin-left: 15px;
}

.search-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-title {
    color: #FFD700;
    font-size: 28px;
    font-weight: bold;
    font-family: 'Georgia', serif;
    margin-right: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.6);
}

.logo-barra {
    height: auto;
    max-height: 40px;
    max-width: 140px;
    object-fit: contain;
}

#searchBox {
    padding: 8px 12px;
    width: 200px;
    max-width: 100%;
    border-radius: 5px;
    border: 1px solid #ddd;
}

/* ===================================================
   HEADER NEGRO MODERNO
   =================================================== */
.header {
    background: linear-gradient(135deg, #111, #222);
    padding: 10px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    position: relative;
    z-index: 5;
}

.header-title {
    color: #FFD700;
    font-size: 36px;
    font-family: 'Georgia', serif;
    font-weight: bold;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.7);
    margin: 0;
    transition: transform 0.3s ease, text-shadow 0.3s ease;
    cursor: default;
}

.header-title:hover {
    transform: scale(1.05);
    text-shadow: 3px 3px 12px rgba(255, 215, 0, 0.9);
}

/* Responsivo Header */
@media (max-width: 768px) {
    .header {
        padding: 30px 15px;
    }
    .header-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 25px 10px;
    }
    .header-title {
        font-size: 22px;
    }
}

/* ===================================================
   MENÚ PRINCIPAL
   =================================================== */
nav ul.menu {
    list-style: none;
    display: flex;
    gap: 20px;
    padding: 0;
    margin: 0;
    align-items: center;
}

nav ul.menu li {
    position: relative;
}

nav ul.menu li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

nav ul.menu li a:hover {
    color: #FFD700;
}

.submenu {
    display: none;
    position: absolute;
    top: 32px;
    left: 0;
    background: #28a745;
    padding: 10px 20px;
    border-radius: 8px;
    z-index: 999;
}

nav ul.menu li:hover .submenu {
    display: block;
}

.submenu li {
    margin-bottom: 10px;
}

.submenu li:last-child {
    margin-bottom: 0;
}

.submenu li a {
    color: white;
}
/* ======== fin de estilo de header ============= */


/* ======== inicio de estilos de cuerpo productos ============= */

.product-card {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  max-width: 400px;
  margin-bottom: 20px;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
}


/* Imagen principal */
.main-image {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  transition: transform 0.4s ease;
  cursor: zoom-in;
}

.main-image:hover {
  transform: scale(1.15);
}

/* Miniaturas */
.thumbnail-row {
  display: flex;
  gap: 5px;
  margin-top: 5px;
}

.thumbnail-row img {
  width: 50px;
  height: 50px;
  border-radius: 4px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.7;
  transition: all 0.3s;
}

.thumbnail-row img.active {
  border-color: #007bff;
  opacity: 1;
}

.thumbnail-row img:hover {
  opacity: 1;
  transform: scale(1.05);
}

/* Info producto */
.product-info {
  flex: 1 1 200px;
}

.product-info h2 {
  font-size: 18px;
  margin: 0 0 10px 0;
}

.product-info label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
}

.product-info select,
.product-info input {
  width: 100%;
  padding: 5px;
  font-size: 14px;
  margin-top: 5px;
}

.product-card {
  overflow: hidden;
}

/* ======== fin estilos cuerpo productos ============= */


/* ======== PRECIOS ======== */
.original-price {
  text-decoration: line-through;
  color: #999;
  font-size: 14px;
  margin-right: 6px;
}

.final-price {
  color: #e60023;
  font-weight: bold;
  font-size: 16px;
}

/* ======== CANTIDAD ======== */
.quantity-control {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.qty-minus,
.qty-plus {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
}

.qty-minus:hover,
.qty-plus:hover {
  background: #ddd;
}

.qty-value {
  min-width: 24px;
  text-align: center;
  font-weight: bold;
}

/* ======== BOTONES ======== */
.add-cart-btn {
  margin-top: 10px;
  padding: 10px;
  font-size: 14px;
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

.add-cart-btn:hover {
  background-color: #0056b3;
}

.add-cart-btn:disabled {
  background: #aaa;
  cursor: not-allowed;
}

.pay-btn {
  margin-top: 10px;
  padding: 10px;
  font-size: 14px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
}

.pay-btn:hover {
  background-color: #218838;
}

/* ======== Boton regresar ======== */

.btn-regresar {
  margin-top: 10px;
  padding: 10px 20px;
  font-size: 14px;
  background-color: #0f3d2e; /* verde jade oscuro */
  color: #ffffff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.btn-regresar:hover {
  background-color: #145a45;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.btn-regresar:active {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}


/* ======== TOAST ======== */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #222;
  color: #fff;
  padding: 14px 18px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.toast-cart {
  background: #f5c542;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .product-card {
    flex-direction: column;
  }
  .thumbnail-row {
    justify-content: center;
  }
}
/* ======== fin de estilos cuerpo  ======== */




/* ======== inicio de estilos de footer ============= */

/* ===================================================
   FOOTER SIMPLIFICADO Y RESPONSIVE
   =================================================== */
.footer-cinta {
    background-color: black;
    color: white;
    padding: 30px 20px;
    font-family: Arial, sans-serif;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 25px;
}

.footer-content > div {
    flex: 1 1 220px;
    min-width: 220px;
}

.footer-cinta h3 {
    color: gold;
    margin-bottom: 10px;
    font-size: 18px;
}

.footer-cinta a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-cinta a:hover {
    color: #ff9900;
    text-decoration: underline;
}

.btn-register {
    display: inline-block;
    padding: 10px 20px;
    background: #ff9900;
    color: white;
    border-radius: 5px;
    font-weight: bold;
    text-align: center;
    margin-top: 10px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-register:hover {
    background: #e68900;
    transform: scale(1.05);
}

.footer-cinta input[type="email"] {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: calc(100% - 120px);
    margin-right: 10px;
}

.footer-cinta button {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.footer-cinta button:hover {
    background-color: #1f6b0e;
}

.footer-content p, .footer-content li {
    margin: 5px 0;
}

/* Responsive Footer */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .footer-content > div {
        flex: 1 1 100%;
        max-width: 400px;
    }

    .footer-cinta input[type="email"] {
        width: 100%;
        margin-bottom: 10px;
    }

    .footer-cinta button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-cinta h3 {
        font-size: 16px;
    }

    .btn-register {
        padding: 8px 15px;
        font-size: 14px;
    }
}
/* ======== fin de estilos de footer ============= */