/* Variables del tema */
:root {
  --bg-card: #f8f9fa;
  --text-dark: #1f1f1f;
  --text-sub: #5f6368;
  --accent-blue: #1a73e8;
  --border-radius: 28px;
}

/* Reseteo general */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Google Sans', sans-serif;
}

body {
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.5;
}

/* Layout principal */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Tipografía y encabezados */
.hero-title {
  font-size: 56px;
  font-weight: 500;
  text-align: center;
  margin: 40px 0 48px 0;
  line-height: 1.15;
}

.section-title {
  font-size: 40px;
  font-weight: 500;
  margin-bottom: 32px;
}

/* Botones */
.btn-blue {
  background-color: var(--accent-blue);
  color: #ffffff;
  border: none;
  border-radius: 100px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

/* Rejilla de categorías superiores */
.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.category-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 32px 16px 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.category-card img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-bottom: 24px;
}

.category-card span {
  font-weight: 500;
  font-size: 15px;
}

/* Sección de productos principales (Hero) */
.product-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 100px;
}

.product-hero-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 40px 0 0 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 520px;
  overflow: hidden;
}

.product-hero-card.alt-bg {
  background-color: #f1f5f4;
}

.product-hero-card h2 {
  font-size: 36px;
  font-weight: 500;
  margin-bottom: 8px;
}

.product-hero-card p {
  color: var(--text-sub);
  font-size: 15px;
  margin-bottom: 20px;
}

.product-hero-card img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 24px;
  object-fit: cover;
}

/* Tabla y tarjetas de comparación */
.comparison-section {
  margin-bottom: 100px;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.comp-card {
  background-color: var(--bg-card);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
}

.comp-card img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 16px;
}

.price-tag {
  font-size: 18px;
  font-weight: 500;
  margin: 8px 0;
}

.price-tag span.badge {
  background-color: #e6f4ea;
  color: #137333;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
}

.comp-specs {
  border-top: 1px solid #e0e0e0;
  margin-top: 24px;
  padding-top: 16px;
  text-align: left;
  font-size: 13px;
}

.comp-spec-group {
  margin-bottom: 20px;
}

.comp-spec-group h5 {
  color: var(--text-sub);
  font-weight: 500;
  margin-bottom: 8px;
}

/* Rejillas de tarjetas simples */
.cards-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 100px;
}

.cards-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 100px;
}

.simple-card {
  background-color: var(--bg-card);
  border-radius: var(--border-radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.simple-card img {
  width: 100%;
  height: 220px;
  object-fit: contain;
  margin: 20px 0;
}

.simple-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

/* Banner de visita a tienda */
.store-visit-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-bottom: 100px;
}

.store-visit-img {
  width: 100%;
  border-radius: var(--border-radius);
  object-fit: cover;
}

/* Adaptabilidad (Responsive) */
@media (max-width: 900px) {
  .category-grid,
  .cards-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .product-hero-grid,
  .comparison-grid,
  .cards-grid-2,
  .store-visit-section,
  .directory-grid {
    grid-template-columns: 1fr;
  }
}