/* =====================================================
   ESTILOS EXTRA — Contacto, Tienda
   Enlazar DESPUÉS de styles.css en las páginas nuevas
   ===================================================== */

.form__select {
  width: 100%; padding: 12px;
  border: 1px solid rgba(0,0,0,.15); border-radius: 10px;
  font-family: inherit; font-size: 14px; outline: none; background: #fff;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%23555' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.form__select:focus { border-color: #2b2b2b; }

/* CONTACTO */
.cpage { padding: 60px 0 90px; }
.cpage__inner { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.cpage__grid { display: grid; grid-template-columns: 1fr 420px; gap: 70px; align-items: start; }
.cpage__col-title { font-size: 22px; font-weight: 600; margin: 0 0 24px; }
.cpage__success { background: #d1e7dd; color: #0f5132; padding: 14px 18px; border-radius: 10px; font-size: 14px; margin-bottom: 18px; border: 1px solid #badbcc; }
.cinfo-block { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 20px; }
.cinfo-icon { width: 42px; height: 42px; background: #f4f4f4; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.cinfo-text strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.cinfo-text p { margin: 0; font-size: 14px; color: #555; line-height: 1.5; }
.cpage__map { margin-top: 24px; }
.map-slot { height: 200px; background: #f0f0f0; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #888; font-size: 14px; border: 1px solid #e0e0e0; }
.cpage__wa-btn { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 12px 20px; background: #25d366; color: #fff; text-decoration: none; border-radius: 10px; font-size: 13px; font-weight: 500; transition: background .2s; }
.cpage__wa-btn:hover { background: #1ebe5d; }
@media (max-width: 980px) { .cpage__grid { grid-template-columns: 1fr; gap: 40px; } }

/* TIENDA HERO */
.store-hero { background: linear-gradient(#232323, #1e1e1e); padding: 70px 18px 60px; text-align: center; color: #fff; }
.store-hero__kicker { font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,.5); margin: 0 0 10px; }
.store-hero__title { font-family: 'Playfair Display', serif; font-size: clamp(36px,5vw,58px); font-weight: 600; margin: 0 0 12px; line-height: 1.05; }
.store-hero__sub { font-size: 15px; color: rgba(255,255,255,.65); margin: 0; }

/* TIENDA SECCIÓN */
.store-section { padding: 50px 0 80px; }
.store-inner { max-width: 1200px; margin: 0 auto; padding: 0 18px; }
.store-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-pill { padding: 8px 18px; border: 1px solid rgba(0,0,0,.15); border-radius: 30px; background: #fff; font-size: 13px; cursor: pointer; font-family: inherit; transition: all .2s; color: #444; }
.filter-pill:hover { border-color: #2b2b2b; color: #2b2b2b; }
.filter-pill.is-active { background: #2b2b2b; color: #fff; border-color: #2b2b2b; }

/* GRID PRODUCTOS */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.product-card { border: 1px solid rgba(0,0,0,.07); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 4px 20px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; display: flex; flex-direction: column; }
.product-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,.1); }
.product-card--featured { border-color: #2b2b2b; }
.product-card__img { position: relative; height: 240px; overflow: hidden; background: #f8f8f8; }
.product-card__img img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.product-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 64px; font-weight: 700; color: rgba(255,255,255,.6); }
.product-badge { position: absolute; top: 12px; left: 12px; background: #2b2b2b; color: #fff; font-size: 10px; letter-spacing: .5px; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; }
.product-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-card__category { font-size: 11px; color: #888; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; display: block; }
.product-card__name { font-size: 17px; font-weight: 600; margin: 0 0 10px; }
.product-card__desc { font-size: 13px; line-height: 1.7; color: #555; flex: 1; margin: 0 0 16px; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.product-card__price { font-size: 18px; font-weight: 700; color: #1a1a1a; }
.product-card__btn { padding: 10px 16px; background: #2b2b2b; color: #fff; border: none; border-radius: 8px; font-size: 10px; letter-spacing: .8px; text-transform: uppercase; cursor: pointer; font-family: inherit; transition: background .2s; white-space: nowrap; }
.product-card__btn:hover:not(:disabled) { background: #1a1a1a; }
.product-card__btn:disabled { background: #ccc; cursor: not-allowed; }
.store-empty { text-align: center; padding: 60px 20px; color: #aaa; font-size: 15px; }

/* CARRITO */
.cart-trigger { position: relative; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; margin-left: 14px; transition: background .2s; flex-shrink: 0; }
.cart-trigger:hover { background: rgba(255,255,255,.1); }
.cart-badge { position: absolute; top: -6px; right: -6px; background: #fff; color: #1a1a1a; width: 20px; height: 20px; border-radius: 50%; font-size: 10px; font-weight: 700; align-items: center; justify-content: center; }
.cart-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 200; opacity: 0; pointer-events: none; transition: opacity .3s; }
.cart-overlay.is-open { opacity: 1; pointer-events: all; }
.cart-sidebar { position: fixed; top: 0; right: 0; width: 380px; max-width: 95vw; height: 100vh; background: #fff; z-index: 201; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .3s ease; box-shadow: -8px 0 40px rgba(0,0,0,.15); }
.cart-sidebar.is-open { transform: translateX(0); }
.cart-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid #f0f0f0; }
.cart-header h3 { margin: 0; font-size: 17px; font-weight: 600; }
.cart-close { background: none; border: none; font-size: 20px; cursor: pointer; color: #888; line-height: 1; padding: 4px; }
.cart-close:hover { color: #1a1a1a; }
.cart-body { flex: 1; overflow-y: auto; padding: 16px 22px; }
.cart-empty { text-align: center; color: #aaa; font-size: 14px; padding: 40px 0; }
.cart-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f5f5f5; }
.cart-item__img { width: 54px; height: 54px; border-radius: 8px; overflow: hidden; background: #f4f4f4; flex-shrink: 0; position: relative; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; }
.cart-img-placeholder { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__name { font-size: 13px; font-weight: 500; margin: 0 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item__price { font-size: 12px; color: #555; margin: 0; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; }
.cart-item__qty button { background: #f4f4f4; border: none; width: 26px; height: 26px; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background .15s; }
.cart-item__qty button:hover { background: #e0e0e0; }
.cart-item__qty span { font-size: 13px; font-weight: 500; min-width: 16px; text-align: center; }
.cart-item__remove { background: none; border: none; color: #ccc; font-size: 14px; cursor: pointer; padding: 4px; transition: color .2s; }
.cart-item__remove:hover { color: #e74c3c; }
.cart-footer { padding: 16px 22px; border-top: 1px solid #f0f0f0; }
.cart-total-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 15px; }
.cart-total-row strong { font-size: 18px; font-weight: 700; }
.checkout-btn { width: 100%; padding: 14px; background: #2b2b2b; color: #fff; border: none; border-radius: 10px; font-family: inherit; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.checkout-btn:hover { background: #1a1a1a; }

/* CHECKOUT MODAL */
.checkout-modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 30px 18px; overflow-y: auto; opacity: 0; pointer-events: none; transition: opacity .3s; }
.checkout-modal.is-open { opacity: 1; pointer-events: all; }
.checkout-card { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; padding: 32px; position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.checkout-close { position: absolute; top: 18px; right: 18px; background: none; border: none; font-size: 22px; cursor: pointer; color: #aaa; line-height: 1; }
.checkout-close:hover { color: #1a1a1a; }
.checkout-title { font-size: 22px; font-weight: 600; margin: 0 0 24px; }
.summary-list { list-style: none; margin: 0; padding: 0; }
.summary-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #f0f0f0; font-size: 14px; }
.summary-total { text-align: right; margin-top: 10px; font-size: 16px; }
.payment-options { display: flex; flex-direction: column; gap: 10px; }
.payment-opt { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid #e8e8e8; border-radius: 8px; cursor: pointer; font-size: 13px; transition: border-color .2s; }
.payment-opt:has(input:checked) { border-color: #2b2b2b; background: #fafafa; }
.payment-opt input { margin: 0; }
.checkout-submit-btn { width: 100%; margin-top: 20px; height: 50px; font-size: 12px; letter-spacing: 1px; }
.order-success { text-align: center; padding: 30px 20px; }
.order-success__icon { width: 70px; height: 70px; border-radius: 50%; background: #2b2b2b; color: #fff; font-size: 32px; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.order-success h2 { font-size: 24px; margin: 0 0 10px; }
.order-success p { color: #666; margin: 6px 0; }

@media (max-width: 980px) { .product-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-card__footer { flex-direction: column; align-items: flex-start; }
  .cart-sidebar { width: 100%; }
  .checkout-card { padding: 24px 18px; }
}
