* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f7f7f7;
  color: #111;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* HEADER */
header {
  background: #0058a3;
  color: white;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

header h1 {
  margin: 0;
  font-size: 26px;
}

.logo {
  color: white;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.85;
}

nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* BANNER */
.banner {
  background: url("https://images.unsplash.com/photo-1586023492125-27b2c045efd7") center/cover;
  color: white;
  min-height: 280px;
  padding: 90px 24px;
  text-align: center;
  display: grid;
  place-items: center;
  position: relative;
  transition: background-image 0.8s ease-in-out;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.38);
}

.banner h2 {
  position: relative;
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.05;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

/* INTRO */
.intro {
  max-width: 1000px;
  margin: 36px auto 20px;
  padding: 0 24px;
  text-align: center;
}

.intro h2,
.productos h2 {
  color: #111;
}

.intro p {
  color: #444;
  line-height: 1.7;
}

/* TITULOS LINKS */
.camas2,
.sofa2,
.mesa2 {
  color: #111;
  text-decoration: none;
}

.camas2:hover,
.sofa2:hover,
.mesa2:hover {
  color: #0058a3;
}

/* GRID Y PRODUCTOS */
.productos {
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 36px;
}

.productos h2 {
  text-align: center;
  font-size: 30px;
  margin: 22px 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.card {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 14px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.card img {
  width: 100%;
  height: 205px;
  object-fit: cover;
  border-radius: 4px;
  background: #e9e9e9;
}

.card h3 {
  margin: 12px 0 6px;
  font-size: 17px;
  color: #111;
}

.card p {
  margin: 0 0 14px;
  color: #111;
  font-weight: bold;
}

/* BOTONES */
button {
  background: #ffdb00;
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  cursor: pointer;
  width: 100%;
  margin-top: auto;
  font-weight: bold;
  transition: background 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

button:hover {
  background: #f2cc00;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* CARRITO FLOTANTE */
.carrito {
  position: fixed;
  top: 92px;
  right: 22px;
  width: 58px;
  height: 58px;
  background: #ffdb00;
  color: #111;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 23px;
  cursor: pointer;
  z-index: 9999;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.22);
}

.carrito:hover {
  transform: scale(1.04);
}

#contador {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #111;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 4px 7px;
  min-width: 22px;
  text-align: center;
}

/* FOOTER */
footer {
  background: #111;
  color: white;
  text-align: center;
  padding: 28px 20px;
  margin-top: 40px;
}

.footer-contenido {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.footer-links a:hover {
  color: #ffdb00;
  text-decoration: underline;
}

.redes {
  margin-top: 12px;
}

.icono {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  margin: 5px;
  color: white;
  font-size: 20px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.instagram { background: #e4405f; }
.facebook { background: #1877f2; }
.whatsapp { background: #25d366; }

.icono:hover {
  transform: scale(1.08);
  opacity: 0.9;
}

/* CARRITO PAGINA */
.contenedor-carrito {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  padding: 42px 24px;
  max-width: 1220px;
  margin: 0 auto;
}

.lista {
  min-width: 0;
}

.item-carrito {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  background: white;
  padding: 18px 0;
  border-bottom: 1px solid #e5e5e5;
  align-items: start;
  cursor: pointer;
}

.item-carrito:hover h3 {
  color: #0058a3;
  text-decoration: underline;
}

.item-carrito img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}

.info-carrito {
  min-width: 0;
}

.info-carrito h3 {
  margin: 0;
  font-size: 17px;
  color: #111;
}

.info-carrito p {
  margin: 7px 0 10px;
  font-weight: bold;
}

.color-carrito,
.valoracion-carrito,
.valoracion-producto {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0 12px;
  font-size: 14px;
  color: #333;
}

.tamano-carrito {
  margin: 8px 0 12px;
  font-size: 14px;
  color: #333;
}

.punto-color {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid #999;
}

.estrellas {
  color: #ffdb00;
  letter-spacing: 1px;
  font-size: 18px;
  text-shadow: 0 0 1px #111;
}

.cantidad {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #f1f1f1;
  padding: 5px;
  border-radius: 999px;
}

.cantidad button {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: white;
  border: 1px solid #d0d0d0;
  color: #111;
}

.cantidad span {
  min-width: 22px;
  text-align: center;
  font-weight: bold;
}

.btn-eliminar {
  width: auto;
  margin-top: 12px;
  background: transparent;
  color: #111;
  padding: 0;
  border: none;
  text-decoration: underline;
}

.btn-eliminar:hover {
  background: transparent;
  color: #0058a3;
}

.resumen {
  background: white;
  padding: 24px;
  border-radius: 4px;
  height: fit-content;
  position: sticky;
  top: 110px;
  border: 1px solid #e5e5e5;
}

.resumen h3 {
  margin-top: 0;
  font-size: 22px;
}

.resumen h2 {
  margin: 8px 0 16px;
}

.resumen button {
  background: #0058a3;
  color: white;
  padding: 14px 18px;
}

.resumen button:hover {
  background: #004f93;
}

.seguir {
  display: block;
  margin-top: 16px;
  color: #0058a3;
  font-weight: bold;
  text-decoration: none;
}

.seguir:hover {
  text-decoration: underline;
}

.metodos-pago {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.metodos-pago i {
  font-size: 38px;
}

.metodos-pago .fa-cc-visa {
  color: #1a1f71;
}

.metodos-pago .fa-cc-mastercard {
  color: #ff5f00;
}

.metodos-pago span {
  background: #00b1ea;
  color: white;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
}

/* DETALLE PRODUCTO */
.detalle {
  max-width: 1180px;
  margin: 42px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
}

.img-container {
  background: white;
  padding: 24px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
}

.img-container img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}

.info {
  background: white;
  padding: 30px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
  height: fit-content;
}

.info h2 {
  margin: 0 0 12px;
  font-size: 34px;
  color: #111;
}

.precio {
  font-size: 27px;
  font-weight: bold;
  color: #111;
  margin: 0 0 18px;
}

.especificaciones {
  margin-top: 26px;
  border-top: 1px solid #e5e5e5;
  padding-top: 20px;
}

.especificaciones h3 {
  margin: 18px 0 8px;
  color: #111;
}

.especificaciones p {
  color: #444;
  line-height: 1.6;
}

.color-opcion,
.tamano-opcion {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  color: #111;
  padding: 9px 13px;
  border-radius: 999px;
  margin: 5px 5px 5px 0;
  font-weight: bold;
  cursor: pointer;
  width: auto;
}

.color-opcion.activo,
.tamano-opcion.activo {
  border: 2px solid #0058a3;
  background: white;
}

/* EXTRAS Y RELACIONADOS */
.extras {
  max-width: 1220px;
  margin: 36px auto 0;
  background: white;
  padding: 26px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e5e5e5;
}

.extras-header h2 {
  margin: 0;
  color: #111;
  font-size: 27px;
}

.extras-header p {
  margin: 8px 0 0;
  color: #555;
}

.extras-contenedor {
  position: relative;
  margin-top: 22px;
  width: 100%;
  overflow: hidden;
}

.extras-lista {
  display: flex;
  gap: 18px;
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  padding-bottom: 8px;
}

.extra-item {
  flex: 0 0 185px;
  max-width: 185px;
  background: #f7f7f7;
  border-radius: 4px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid #e8e8e8;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.extra-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 7px 18px rgba(0, 0, 0, 0.12);
}

.extra-item img {
  width: 100%;
  height: 122px;
  object-fit: cover;
  border-radius: 4px;
  background: #ddd;
}

.extra-info h3 {
  margin: 10px 0 4px;
  font-size: 15px;
  color: #111;
}

.extra-info p {
  margin: 0 0 10px;
  font-weight: bold;
}

.extra-item button {
  background: #0058a3;
  color: white;
  padding: 10px;
}

.extra-item button:hover {
  background: #004f93;
}

.flecha-carrusel {
  position: absolute;
  right: 12px;
  top: 45%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0058a3;
  color: white;
  font-size: 26px;
  border: none;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.flecha-carrusel:hover {
  background: #004f93;
}

/* CHECKOUT */
.checkout {
  max-width: 1220px;
  margin: 42px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
}

.checkout-resumen,
.checkout-formulario {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 26px;
}

.checkout-producto {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e5e5e5;
}

.checkout-producto img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 4px;
  background: #eee;
}

.checkout-producto h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.checkout-producto p {
  margin: 4px 0;
  color: #444;
  font-size: 14px;
}

.checkout-totales {
  margin-top: 24px;
  background: #fafafa;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 18px;
}

.descuento-web {
  background: #fff4bf;
  color: #111;
  border-left: 5px solid #ffdb00;
  border-radius: 4px;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-weight: bold;
}

.leyenda-descuento {
  margin: 14px 0;
  background: #f7f7f7;
  border-left: 4px solid #0058a3;
  padding: 16px;
  color: #333;
  font-size: 14px;
  line-height: 1.65;
  border-radius: 4px;
}

.checkout-totales h3 {
  border-top: 1px solid #ddd;
  padding-top: 16px;
  font-size: 24px;
  margin-bottom: 0;
}

.checkout-totales h3 span {
  color: #0058a3;
}

.checkout-formulario form {
  display: grid;
  gap: 14px;
}

.checkout-formulario label {
  display: grid;
  gap: 6px;
  font-weight: bold;
  color: #111;
}

.checkout-formulario input,
.checkout-formulario select,
.checkout-formulario textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 12px;
  font-size: 15px;
  background: white;
}

.checkout-formulario input:focus,
.checkout-formulario select:focus,
.checkout-formulario textarea:focus {
  outline: 2px solid #0058a3;
  border-color: #0058a3;
}

.checkbox-legal {
  display: flex !important;
  grid-template-columns: auto 1fr;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 14px;
  line-height: 1.4;
}

.checkbox-legal input {
  width: auto;
  margin-top: 3px;
}

.checkout-botones {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.btn-pago {
  background: #0058a3;
  color: white;
}

.btn-pago:hover {
  background: #004f93;
}

.btn-pago span {
  background: #00b1ea;
  color: white;
  padding: 5px 9px;
  border-radius: 999px;
  margin-left: 6px;
}

.btn-whatsapp {
  background: #25d366;
  color: white;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

/* PAGINAS LEGALES */
.pagina-legal {
  max-width: 950px;
  margin: 40px auto;
  padding: 32px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  line-height: 1.7;
}

.pagina-legal h2 {
  font-size: 34px;
  margin-top: 0;
}

.pagina-legal h3 {
  margin-top: 28px;
  color: #111;
}

.pagina-legal p {
  color: #444;
}

/* ADMIN BASICO */
.oculto {
  display: none !important;
}

/* RESPONSIVE TABLET */
@media (max-width: 900px) {
  .checkout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
  }

  nav {
    gap: 12px;
  }

  .banner {
    min-height: 230px;
    padding: 70px 18px;
  }

  .contenedor-carrito,
  .detalle {
    grid-template-columns: 1fr;
    padding: 24px 16px;
  }

  .resumen {
    position: static;
  }

  .img-container img {
    height: 340px;
  }

  .carrito {
    top: 118px;
    right: 16px;
  }
}

/* RESPONSIVE TELEFONO */
@media (max-width: 600px) {
  header {
    position: static;
  }

  nav {
    width: 100%;
    justify-content: center;
  }

  nav a {
    font-size: 14px;
  }

  .carrito {
    top: auto;
    bottom: 18px;
    right: 18px;
  }

  .banner h2 {
    font-size: 32px;
  }

  .intro p {
    font-size: 15px;
  }

  .detalle,
  .checkout,
  .contenedor-carrito {
    padding: 18px 14px;
  }

  .info,
  .checkout-resumen,
  .checkout-formulario,
  .resumen,
  .extras {
    padding: 18px;
  }

  .extra-item {
    flex: 0 0 155px;
    max-width: 155px;
  }

  .flecha-carrusel {
    width: 42px;
    height: 42px;
    font-size: 22px;
  }

  button {
    min-height: 44px;
  }
}

@media (max-width: 520px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 0;
  }

  .productos {
    padding: 18px 16px 30px;
  }

  .card {
    min-height: auto;
  }

  .item-carrito {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .item-carrito img {
    width: 82px;
    height: 82px;
  }

  .checkout-producto {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .checkout-producto img {
    width: 82px;
    height: 82px;
  }

  .extra-item {
    flex-basis: 165px;
    max-width: 165px;
  }

  .footer-contenido,
  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
.obsequio-compra {
  margin-top: 14px;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-left: 5px solid #ffdb00;
  border-radius: 4px;
  padding: 12px;
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.obsequio-img {
  width: 82px;
  height: 82px;
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  overflow: hidden;
}

.obsequio-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.obsequio-info span {
  display: inline-block;
  background: #0058a3;
  color: white;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.obsequio-info strong {
  display: block;
  color: #111;
  font-size: 15px;
  margin-bottom: 4px;
}

.obsequio-info small {
  display: block;
  color: #555;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .obsequio-compra {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .obsequio-img {
    width: 72px;
    height: 72px;
  }
}

