/* RESET BÁSICO */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* PALETA DE COLORES */
:root {
  --azul-oscuro: #0b3c5d;
  --azul-principal: #1f6fb2;
  --azul-acento: #4da3ff;
  --celeste-fondo: #eef6fd;
  --celeste-header: #e1f0ff;
  --blanco: #ffffff;
  --gris-texto: #2e2e2e;
  --gris-linea: #e2e8f0;
}

/* BODY */
body {
  background-color: var(--celeste-fondo);
  color: var(--gris-texto);
  line-height: 1.6;
}

/* ================= HEADER ================= */
.top-header {
  background: linear-gradient(
    90deg,
    var(--azul-oscuro),
    var(--azul-principal)
  );
  padding: 14px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--blanco);
  width: 100%;
  box-sizing: border-box;
}


.brand {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  color: var(--blanco);
}

/* Links header */
.header-right {
  display: flex;
  gap: 20px;
}

.header-link {
  text-decoration: none;
  color: var(--blanco);
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
  opacity: 0.95;
}

.header-link i {
  font-size: 1rem;
  color: var(--azul-acento);
}

.header-link:hover {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .top-header {
    padding: 16px 12px;
  }

  .header-right {
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
  }

  .header-link {
    font-size: 0.95rem;
    justify-content: center;
    width: 100%;
  }
}


/* ================= LOGO SECTION ================= */
.logo-banner {
  width: 100%;
  background-color: #ffffff;   
  
  display: flex;
  justify-content: center;
  align-items: center;

  
  min-height: 180px;
  max-height: 368px;
}

.logo-banner img {
  width: 100%;
  max-width: 1600px;     
  height: auto;

  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo-banner {
    min-height: 140px;
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .logo-banner {
    min-height: 110px;
  }
}


/* ================= CATEGORÍAS ================= */
.category {
  width: 90%;
  max-width: 1200px;
  margin: 50px auto;
}

.category h2 {
  font-size: 1.6rem;
  color: var(--azul-oscuro);
  margin-bottom: 25px;
  position: relative;
  padding-left: 14px;
}

.category h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 5px;
  height: 70%;
  background-color: var(--azul-acento);
  border-radius: 4px;
}

/* ================= GRID PRODUCTOS ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
}

/* ================= TARJETA PRODUCTO ================= */
.product-card {
  background-color: var(--blanco);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.12);
}

.product-card img {
  max-width: 100%;
  height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.product-name {
  font-weight: 700;
  color: var(--azul-oscuro);
  margin-bottom: 6px;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--azul-principal);
}

/* ================= FOOTER ================= */
.main-footer {
  background: linear-gradient(
    180deg,
    var(--celeste-header),
    var(--celeste-fondo)
  );
  border-top: 1px solid var(--gris-linea);
  padding: 35px 20px;
  margin-top: 70px;
}

.footer-content-vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-link {
  text-decoration: none;
  color: var(--azul-oscuro);
  font-weight: 500;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-link i {
  font-size: 1.1rem;
  color: var(--azul-acento);
}

.footer-link:hover {
  text-decoration: underline;
}

.main-footer p {
  margin-top: 18px;
  font-size: 0.8rem;
  color: #555;
}

/* ================= SLIDER OFERTAS ================= */
.offer-slider {
  width: 90%;
  max-width: 1200px;
  margin: 25px auto 50px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background-color: var(--azul-principal);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.18);
}

/* Cada slide */
.offer-slide {
  display: none;
  width: 100%;
  height: 400px;
  background: linear-gradient(
    135deg,
    var(--azul-oscuro),
    var(--azul-principal)
  );
}

.offer-slide.active {
  display: block;
}

/* Imagen */
.offer-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .offer-slide {
    height: 320px;
  }
}

@media (max-width: 600px) {
  .offer-slide {
    height: 220px;
  }
}


/* ===== CONTROLES SLIDER ===== */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  border: none;
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-btn.prev {
  left: 15px;
}

.slider-btn.next {
  right: 15px;
}

/* Botones más chicos en móvil */
@media (max-width: 600px) {
  .slider-btn {
    width: 34px;
    height: 34px;
  }
}


/* ================= INFO SECTION ================= */
.info-section {
  width: 100%;
  background-color: var(--celeste-header);
  padding: 60px 0;
}

.info-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  gap: 50px;
}

/* Imagen izquierda */
.info-image {
  flex: 1;
}

.info-image img {
  width: 100%;
  max-width: 280px;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Texto derecha */
.info-text {
  flex: 1;
}

.info-text h2 {
  font-size: 1.8rem;
  color: var(--azul-oscuro);
  margin-bottom: 14px;
}

.info-text p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--gris-texto);
}

@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
    text-align: center;
  }

  .info-image img {
    max-width: 100%;
  }
}




