/* ===== RESET SUAVE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #808080;
  color: #222;
}

/* ===== ELEMENTOS GENERALES ===== */
.header-spacer {
  height: 72px;
}

.brand-accent {
  color: #111;
}

/* Navbar */
.navbar {
  font-size: 0.95rem;
}

.main-nav .nav-link {
  color: #444;
  margin-left: 12px;
  position: relative;
  transition: color 0.2s ease;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #111;
  transition: width 0.25s ease;
}

.main-nav .nav-link:hover {
  color: #000;
}

.main-nav .nav-link:hover::after {
  width: 100%;
}

/* Link activo marcado con JS */
.main-nav .nav-link.active {
  color: #000;
  font-weight: 600;
}

.main-nav .nav-link.active::after {
  width: 100%;
}

/* ===== HERO ===== */
.hero-section {
  padding: 60px 0 40px;
}

.hero-tagline {
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  color: #777;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 800;
  margin-top: 10px;
  margin-bottom: 10px;
}

.hero-text {
  max-width: 620px;
  margin: 0 auto;
  color: #555;
}

.hero-buttons {
  margin-top: 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== BOTONES ===== */
.btn-main {
  background: #111;
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  border: 1px solid #111;
  font-size: 0.96rem;
}

.btn-main:hover {
  background: #333;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: #111;
  border-radius: 999px;
  padding: 20px 30px;
  border: 1px solid #999;
  font-size: 0.96rem;
}

.btn-ghost:hover {
  background: #111;
  color: #fff;
}

/* ===== SECCIONES GENERALES ===== */
.section-padding {
  padding: 50px 0 40px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 700;
}

/* ===== FEATURES (INICIO) ===== */
.features-section {
  padding: 30px 0 50px;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 18px 18px 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #222;
}

/* ===== FAQ ===== */
.accordion-button {
  background: #f8f8f8;
  color: #222;
}

.accordion-button:not(.collapsed) {
  background: #e9e9e9;
  color: #000;
}

/* ===== CONTACTO ===== */
.contact-card {
  background: #fff;
  border-radius: 18px;
  padding: 20px 18px 22px;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-card p {
  color: #555;
  font-size: 0.95rem;
}

.contact-icon {
  font-size: 2rem;
  margin-bottom: 4px;
  color: #111;
}

/* ===== BOTONES FLOTANTES ===== */
.floating-btn {
  position: fixed;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  right: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #222;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}

.floating-btn i {
  font-size: 1.4rem;
}

.floating-btn--whatsapp {
  bottom: 20px;
  color: #25D366 !important;
}

.floating-btn--instagram {
  bottom: 84px;
  color: #C13584 !important;
}

.floating-btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.55);
  opacity: 1;
}

/* ===== ANIMACIONES SUAVES (REVEAL) ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== FOOTER PRO ===== */
.site-footer {
  border-top: 1px solid #ddd;
  padding: 18px 0 20px;
  background: #f0f0f0;
  margin-top: 30px;
  font-size: 0.9rem;
  color: #555;
}

.footer-links a {
  color: #444;
  text-decoration: none;
  margin: 0 4px;
}

.footer-links a:hover {
  color: #000;
}

.footer-links .dot {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: #999;
  border-radius: 50%;
  margin: 0 6px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
  .hero-title {
    font-size: 1.7rem;
  }

  .floating-btn--instagram {
    bottom: 80px;
  }

  .floating-btn--whatsapp {
    bottom: 20px;
  }
}

.logo-navbar {
  height: 50px;
  width: auto;
  display: block;
  object-fit: contain;
}

.contact-form {
  background: #fff;
  padding: 20px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  max-width: 500px;
  margin: 0 auto;
}

.contact-form .form-label {
  font-weight: 600;
  color: #333;
}

.contact-card form .form-control {
  border-radius: 10px;
  font-size: 0.9rem;
}

.contact-card textarea.form-control {
  resize: none;
}

.contact-card form button {
  border-radius: 999px;
}

.contact-card .fa-whatsapp { color: #25D366 !important; }
.contact-card .fa-instagram { color: #C13584 !important; }
.contact-card .fa-envelope { color: #EA4335 !important; }

.store-icon { color: #111; }
.disabled-store { opacity: 0.7; }
.disabled-store button { cursor: not-allowed; }
.hidden-real-store { display: none; }

.admin-lock i {
  font-size: 18px;
  color: #777;
  transition: 0.2s ease;
}

.admin-lock:hover i {
  color: #000;
  transform: scale(1.1);
}

/* ===== Catálogo ===== */
.catalog-section {
  padding-top: 90px;
  padding-bottom: 60px;
}

.product-card {
  border-radius: 16px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  overflow: hidden;
  background: #fff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
}

.product-img-wrapper {
  width: 100%;
  padding-top: 75%;
  position: relative;
  background: #f5f5f5;
}

.product-img-wrapper img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #999;
  margin-bottom: 4px;
}

.product-name {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #222;
}

.product-price {
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  margin-bottom: 8px;
}

.product-actions { margin-top: auto; }

.btn-outline-main {
  border-radius: 999px;
  border-color: #222;
  color: #222;
  font-size: 0.9rem;
  padding: 4px 14px;
}

.btn-outline-main:hover {
  background: #222;
  color: #fff;
}

/* ===== Banner / carousel ===== */
.promo-carousel {
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,0.10);
  border: 1px solid #eee;
  background: #fff;
}

.promo-carousel .carousel-item {
  height: 600px;
  background: #f2f2f2;
}

.promo-carousel img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f2f2f2;
}

.promo-carousel .carousel-caption {
  text-align: left;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 10px 10px;
  border-radius: 10px;
  background: rgba(0,0,0,0.45);
  z-index: 10;
  pointer-events: auto;
}

.promo-carousel .carousel-caption h2 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.promo-carousel .carousel-caption p {
  margin-bottom: 10px;
  font-size: 0.95rem;
  opacity: 0.95;
}

@media (max-width: 576px) {
  .promo-carousel .carousel-item { height: 240px; }
  .promo-carousel .carousel-caption h2 { font-size: 1.05rem; }
  .promo-carousel .carousel-caption p { font-size: 0.85rem; }
}

@media (max-width: 576px) {
  .promo-carousel .carousel-item { height: 200px; }
  .promo-carousel .carousel-caption {
    left: 8px; right: 8px; bottom: 8px;
    padding: 6px 8px;
    border-radius: 8px;
  }
  .promo-carousel .carousel-caption h2 { font-size: 0.95rem; margin-bottom: 2px; line-height: 1.1; }
  .promo-carousel .carousel-caption p { font-size: 0.75rem; margin-bottom: 6px; line-height: 1.1; }
  .promo-carousel .carousel-caption .btn { font-size: 0.75rem; padding: 3px 10px; }
}

@media (max-width: 576px) {
  .promo-carousel .carousel-caption p { display: none; }
}

.footer-pro{
  background:#111;
  color:#eaeaea;
  padding:48px 0 22px;
  margin-top:40px;
}

.footer-pro h4{
  font-size:1rem;
  font-weight:800;
  margin-bottom:14px;
  color:#fff;
}

.footer-pro ul{
  list-style:none;
  padding:0;
  margin:0;
}

.footer-pro li{
  margin:8px 0;
  font-size:0.95rem;
}

.footer-pro a{
  color:#cfcfcf;
  text-decoration:none;
}

.footer-pro a:hover{
  color:#fff;
  text-decoration:underline;
}

.footer-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:28px;
}

.footer-contact i{
  width:18px;
  margin-right:8px;
  opacity:.9;
}

.footer-contact .muted{
  color:#bdbdbd;
}

.footer-social{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.footer-social a{
  width:38px;
  height:38px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:rgba(255,255,255,.08);
  color:#fff;
  border:1px solid rgba(255,255,255,.12);
}

.footer-social a:hover{
  background:rgba(255,255,255,.15);
}

.footer-social .is-disabled{
  opacity:.45;
  pointer-events:none;
}

.footer-divider{
  height:1px;
  background:rgba(255,255,255,.10);
  margin:26px 0 18px;
}

.footer-payments{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.footer-label{
  font-weight:700;
  color:#fff;
  opacity:.9;
}

.payments-row{
  display:flex;
  justify-content:center;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  margin-top:16px;
}

.payments-row img{
  height:40px;
  width:auto;
  max-width:140px;
  object-fit:contain;
  display:block;
  background:#fff;
  border-radius:10px;
  padding:6px 10px;
}

.footer-bottom{
  margin-top:18px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:#bdbdbd;
  font-size:0.9rem;
}

.footer-links{
  display:flex;
  gap:10px;
  align-items:center;
}

@media (max-width: 992px){
  .footer-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 576px){
  .footer-grid{ grid-template-columns: 1fr; }
}

@media (max-width:576px){
  .payments-row{ gap:12px; }
  .payments-row img{
    height:34px;
    max-width:120px;
    padding:5px 8px;
  }
}

/* Que las flechas NO tapen el banner */
.promo-carousel .carousel-control-prev,
.promo-carousel .carousel-control-next{
  pointer-events: none;
}

.promo-carousel .carousel-control-prev-icon,
.promo-carousel .carousel-control-next-icon{
  pointer-events: auto;
}

.promo-carousel .carousel-caption{
  left: 2%;
  right: 2%;
}

@media (max-width:576px){
  .promo-carousel .carousel-caption{
    left: 2%;
    right: 2%;
  }
}

/* ===== DESTACADOS ===== */
.destacados-section{
  padding: 30px 0 50px;
  background: #fff;
}

.destacados-title{
  text-align:center;
  font-weight: 800;
  margin: 0 0 18px;
  font-size: clamp(1.5rem, 2.5vw, 2.4rem);
}

.destacados-wrap{
  position: relative;
  padding: 0 58px;
}

.destacados-track{
  display:flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 6px 4px 12px;
}

.destacados-track::-webkit-scrollbar{ height: 0; }
.destacados-track{ scrollbar-width: none; }

.destacado-card{
  flex: 0 0 calc((100% - 66px) / 4);
  scroll-snap-align: start;
  border-radius: 20px;
  overflow:hidden;
  background: #fff;
  border: 1px solid #eee;
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.destacado-img{
  position: relative;
  background:#f3f3f3;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 0 !important;     /* <<< CUADRADO */
}

.destacado-img img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transition: transform 0.35s ease;
  cursor: zoom-in;
  border-radius: 0 !important;     /* <<< CUADRADO */
}

.destacado-card:hover .destacado-img img{
  transform: scale(1.15);
}

/* Badge */
.destacado-badge{
  position:absolute;
  left: 14px;
  top: 14px;
  background: #2ecc71;
  color:#fff;
  font-weight:800;
  font-size: 0.82rem;
  line-height: 1.1;
  padding: 10px 12px;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  max-width: 70%;
  white-space: pre-line;

  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding: 10px 14px;
  font-weight:700;
}

.badge-pill{ border-radius: 12px; }
.badge-circle{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  padding: 0;
}

.destacado-body{
  padding: 14px 14px 16px;
  border-top: 3px solid rgba(0,0,0,0.35);
}

.destacado-name{
  font-weight: 600;
  color:#222;
  text-align:center;
}

.destacado-sub{
  margin-top: 6px;
  font-size: 0.9rem;
  color:#777;
  text-align:center;
}

/* Flechas */
.destacados-arrow{
  position:absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid #bbb;
  background: rgba(255,255,255,0.9);
  color:#666;
  font-size: 34px;
  line-height: 40px;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index: 5;
}

.destacados-arrow.left{ left: 6px; }
.destacados-arrow.right{ right: 6px; }

.destacados-arrow:hover{
  background:#fff;
  border-color:#888;
  color:#333;
}

/* Responsive */
@media (max-width: 992px){
  .destacado-card{ flex-basis: calc((50% - 10px) / 2); }
  .destacados-wrap{ padding: 0 20px; } /* FIX px */
}

@media (max-width: 576px){
  .destacado-card{ flex-basis: 50%; }
  .destacados-wrap{ padding: 0 20px; }
}

@media (max-width: 576px){
  .destacados-arrow{
    width: 10px;
    height: 10px;
    font-size: 10px;
  }
}

/* ===== LIGHTBOX ===== */
.lightbox{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.lightbox.active{
  opacity: 1;
  pointer-events: all;
}

.lightbox-img{
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 0 !important;  /* CUADRADO */
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-close{
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 36px;
  color: #fff;
  cursor: pointer;
  user-select: none;
}


/* Producto - imagen sin recorte */
.product-img,
.product-img img,
.producto-img,
.producto-img img{
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center;
  display: block;
  background: #f5f5f5;
}

/* Si el contenedor no tiene alto, dale uno */
.product-img,
.producto-img{
  height: 420px;         /* desktop */
  overflow: hidden;
}

/* mobile */
@media (max-width:576px){
  .product-img,
  .producto-img{
    height: 260px;
  }
}
