:root {
  --primary-color: #333;
  --accent-color: #d4a373; /* Un tono dorado/tierra suave para detalles */
  --bg-light: #fdfdfd;
  --text-muted: #777;
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  background: #fcfcfc;
  color: var(--primary-color);
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 50px;
  background: white;
  border-bottom: 1px solid #f0f0f0;
  height: 100px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.nav-left, .nav-right {
  flex: 1;
  display: flex;
  align-items: center;
}

.nav-center {
  flex: 2;
  text-align: center;
}

.nav-logo {
  height: 65px;
  transition: transform 0.3s ease;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-title {
  margin: 0;
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--primary-color);
  font-size: 32px;
  text-transform: uppercase;
}

.menu {
  list-style: none;
  display: flex;
  gap: 25px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.menu a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.3s;
}

.menu a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

.login-btn {
  padding: 10px 22px;
  border: 1.5px solid var(--primary-color);
  background: transparent;
  color: var(--primary-color);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
  margin-left: 20px;
}

.login-btn:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* SUBTÍTULOS */
.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.2rem;
}

.main-subtitle {
  margin: 30px 0;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--primary-color);
}

/* CAROUSEL / HERO */
.hero-carousel {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.carousel-item img {
  height: 450px;
  object-fit: cover;
}

.cta-btn {
  padding: 12px 30px;
  background: white;
  color: black;
  border-radius: 0;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 2px;
  text-decoration: none;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-btn:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

/* PRODUCTOS GRID */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  padding-bottom: 50px;
}

.card {
  border: none;
  background: white;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  transition: all 0.4s ease;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 10px;
  transition: transform 0.3s;
}

.card:hover img {
  transform: scale(1.03);
}

.card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.card .precio {
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.card button {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.3s;
}

.card button:hover {
  background-color: #555;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 40px;
  background: white;
  border-top: 1px solid #eee;
  margin-top: 60px;
  font-size: 13px;
  color: var(--text-muted);
}

/* Botón flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;    /* Esto hace que flote */
    bottom: 30px;       /* Distancia del borde inferior */
    right: 30px;        /* Distancia del borde derecho */
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1000;      /* Para que esté siempre al frente */
    transition: transform 0.3s ease;
}

/* Botón de WhatsApp Rectangular y Fijo */
.whatsapp-btn {
    position: fixed;         /* Lo mantiene fijo aunque el usuario baje */
    bottom: 20px;            /* Distancia desde abajo */
    right: 20px;             /* Distancia desde la derecha */
    background-color: #000;  /* Color negro como en tu ejemplo */
    color: white;
    padding: 8px 15px;       /* Tamaño más compacto */
    border-radius: 8px;      /* Bordes ligeramente redondeados */
    display: flex;
    align-items: center;
    gap: 10px;               /* Espacio entre icono y texto */
    text-decoration: none;
    font-size: 14px;         /* Texto pequeño y discreto */
    font-weight: 500;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    z-index: 1000;           /* Siempre al frente */
    transition: 0.3s;
}

/* Estilos para el botón flotante de WhatsApp */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px; /* Tamaño del botón */
    height: 60px;
    background-color: #25d366;
    color: white;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    background-color: #128c7e;
    transform: scale(1.1);
}

/* AQUÍ CONTROLAS EL TAMAÑO DE LA IMAGEN */
.whatsapp-btn img {
    width: 35px; /* Ajusta este valor para que el logo se vea bien dentro del círculo */
    height: auto;
}

.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--primary-color);
  background: white;
  color: var(--primary-color);
  cursor: pointer;
  transition: 0.3s;
  margin: 5px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 1px;
}

.filter-btn.active, .filter-btn:hover {
  background: var(--primary-color);
  color: white;
}

/* Asegúrate de que tu .product-grid use display: grid como ya lo tienes */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.cta-btn {
    padding: 15px 35px;
    background: #000; /* Negro elegante */
    color: #fff;
    border: none;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 2px;
    text-decoration: none;
    transition: 0.4s;
    display: inline-block;
}

.cta-btn:hover {
    background: var(--accent-color); /* El tono dorado que ya definiste */
    color: white;
    text-decoration: none;
    transform: translateY(-3px);
}

.img-studio {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 15px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}

.img-studio:hover {
  transform: scale(1.05);
}

.cta-buy-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color); /* Color negro de tu raíz */
    color: white !important;
    text-align: center;
    border-radius: 5px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s;
}

.cta-buy-btn:hover {
    background-color: var(--accent-color); /* El tono dorado que ya definiste */
    text-decoration: none;
}

/* Estilo para el botón de compra */
.btn-agregar {
    background-color: #333333; /* El color oscuro de tu imagen */
    color: #ffffff !important;   /* Texto blanco */
    padding: 12px 20px;
    border-radius: 8px;        /* Bordes redondeados sutiles */
    text-decoration: none;
    display: block;            /* Para que ocupe el ancho deseado */
    text-align: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    text-transform: uppercase; /* Letras mayúsculas como en la foto */
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    border: none;
    margin-top: 10px;
}

/* Efecto al pasar el mouse */
.btn-agregar:hover {
    background-color: #000000; /* Se oscurece un poco más */
    color: #ffffff;
    text-decoration: none;
}
