* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', Arial, sans-serif;
  background: #fff;
  color: #111;
  overflow-x: hidden;
}

/* ── HEADER ── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 60px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 28px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-weight: 900;
  font-size: 18px;
  letter-spacing: 3px;
  color: #111;
}

nav {
  display: flex;
  gap: 36px;
}

nav a {
  text-decoration: none;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  transition: opacity 0.2s;
}

nav a:hover {
  opacity: 0.5;
}

.cart-icon {
  position: relative;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #111;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── INTERFAZ DEL CARRITO LATERAL ── */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100%;
  background: #fff;
  box-shadow: -10px 0 30px rgba(0,0,0,0.05);
  z-index: 999;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
  padding: 30px;
  text-align: left;
}

.cart-sidebar.open {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.cart-header h3 {
  font-size: 20px;
  font-weight: 800;
}

.close-cart {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #888;
}

.cart-items {
  flex-grow: 1;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f9f9f9;
}

.item-details h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.item-details span {
  font-size: 13px;
  color: #666;
}

.remove-btn {
  background: none;
  border: none;
  color: #ff3b30;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.empty-message {
  text-align: center;
  color: #aaa;
  margin-top: 40px;
  font-size: 14px;
}

.cart-footer {
  border-top: 1px solid #eee;
  padding-top: 20px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 20px;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 998;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cart-overlay.open {
  display: block;
  opacity: 1;
}

#paypal-button-container {
  margin-top: 10px;
  width: 100%;
}

/* ── HERO ── */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  background: #f5f5f7;
  min-height: 480px;
}

.hero-text {
  max-width: 480px;
  text-align: left;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 30px;
}

.hero-text button {
  padding: 14px 28px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-text button:hover {
  background: #333;
}

.hero-img img {
  width: 420px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.1));
}

/* ── FEATURES ── */
.features {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 48px 60px;
  border-bottom: 1px solid #eee;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  max-width: 200px;
}

.feat-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.feature strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature p {
  font-size: 13px;
  color: #555;
  line-height: 1.5;
}

/* ── PRODUCTOS ── */
.productos {
  padding: 80px 60px;
  text-align: center;
}

.productos h2 {
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 14px;
  color: #777;
  margin-bottom: 48px;
}

.grid {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.card {
  border: 1px solid #e5e5e5;
  padding: 28px 24px 24px;
  width: 260px;
  border-radius: 16px;
  text-align: left;
  position: relative;
  transition: box-shadow 0.25s, transform 0.25s;
  background: #fff;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: #111;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  z-index: 10;
}

.card-img-container {
  position: relative;
  width: 100%;
  height: 180px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 16px;
}

.card-img-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.view-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.view-overlay span {
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card-img-container:hover img {
  transform: scale(1.05);
}

.card-img-container:hover .view-overlay {
  opacity: 1;
}

.card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card p {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  margin-bottom: 14px;
}

.price {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 14px;
}

.card button {
  width: 100%;
  padding: 12px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.card button:hover {
  background: #333;
}

/* ── VENTANA MODAL ── */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal.open {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 760px;
  border-radius: 20px;
  padding: 40px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  animation: fadeInModal 0.3s ease forwards;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 25px;
  background: none;
  border: none;
  font-size: 32px;
  cursor: pointer;
  color: #999;
  transition: color 0.2s;
}

.close-modal:hover {
  color: #111;
}

.modal-body {
  display: flex;
  gap: 40px;
}

.modal-images-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

#modal-main-img {
  width: 100%;
  height: 260px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 12px;
  padding: 10px;
}

.thumbnails-container {
  display: flex;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.thumb-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border: 1.5px solid #eee;
  border-radius: 8px;
  cursor: pointer;
  padding: 4px;
  transition: border-color 0.2s, transform 0.2s;
}

.thumb-img:hover, .thumb-img.active {
  border-color: #111;
  transform: translateY(-2px);
}

.modal-info-side {
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
}

#modal-title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 12px;
}

#modal-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-price {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 24px;
}

.modal-buy-btn {
  width: 100%;
  padding: 14px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.modal-buy-btn:hover {
  background: #333;
}

/* ── CTA BANNER ── */
.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 80px 60px;
  background: #f5f5f7;
}

.cta-text {
  max-width: 420px;
  text-align: left;
}

.cta-text h2 {
  font-size: 36px;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-text p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 28px;
}

.cta-text button {
  padding: 14px 28px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.cta-text button:hover {
  background: #333;
}

.cta-img img {
  width: 360px;
  max-width: 100%;
  object-fit: contain;
}

/* ── CONTACTO ── */
.contacto {
  text-align: center;
  padding: 60px 20px;
}

.contacto h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.contacto p {
  color: #555;
  margin-bottom: 24px;
}

.whatsapp {
  display: inline-block;
  padding: 14px 28px;
  background: #0066FF;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  transition: background 0.2s;
}

.whatsapp:hover {
  background: #0052CC;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid #eee;
  padding: 48px 60px 24px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-logo {
  display: flex;
  align-items: center;
  max-width: 110px;
  align-self: flex-start;
}

.footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.footer-col strong {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #111;
}

.social-icons {
  display: flex;
  gap: 16px;
  margin-top: 4px;
}

.social-icons a {
  display: flex;
  align-items: center;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.social-icons a:hover {
  opacity: 1;
}

.footer-bottom {
  text-align: center;
  font-size: 12px;
  color: #aaa;
  border-top: 1px solid #eee;
  padding-top: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  header { padding: 16px 20px; }
  nav { display: none; }
  .hero { flex-direction: column; padding: 40px 20px; text-align: center; }
  .hero-text h1 { font-size: 34px; }
  .hero-img img { width: 280px; margin-top: 30px; }
  .features { padding: 32px 20px; gap: 24px; }
  .productos { padding: 40px 20px; }
  .modal-body { flex-direction: column; gap: 20px; }
  .modal-images-side, .modal-info-side { width: 100%; }
  .modal-content { padding: 25px; }
  #modal-main-img { height: 180px; }
  .cta-banner { flex-direction: column; padding: 40px 20px; text-align: center; }
  .cta-img img { width: 260px; margin-top: 30px; }
  footer { padding: 32px 20px 16px; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .cart-sidebar { width: 100%; right: -100%; }
}