* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #f3f5f4;
  color: #122620;
}

a {
  color: inherit;
}

header {
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
  color: #fff;
  padding: 1rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: 0.03em;
}

.logo span {
  font-weight: 300;
  color: #c8e6c9;
}

nav a {
  color: #e8f5e9;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
  opacity: 0.9;
}

nav a:hover {
  opacity: 1;
  text-decoration: underline;
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.6fr);
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.hero-text h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  margin-bottom: 0.75rem;
  color: #1b5e20;
}

.hero-text p {
  font-size: 0.98rem;
  margin-bottom: 1rem;
  color: #37474f;
  max-width: 36rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.badge {
  font-size: 0.8rem;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  border: 1px solid rgba(27,94,32,0.1);
}

.btn-primary {
  background: #2e7d32;
  border: none;
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 4px 12px rgba(27,94,32,0.4);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(27,94,32,0.5);
}

.btn-primary span {
  font-size: 1.1rem;
}

.hero-box {
  background: #ffffff;
  border-radius: 1.5rem;
  padding: 1.3rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  font-size: 0.8rem;
}

.hero-item {
  border-radius: 1.1rem;
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #e8f5e9;
}

.hero-item:nth-child(2) { background: #c8e6c9; }
.hero-item:nth-child(3) { background: #dcedc8; }
.hero-item:nth-child(4) { background: #f1f8e9; }

.hero-item-title {
  font-weight: 600;
  margin-bottom: 0.15rem;
  color: #1b5e20;
}

.hero-item-price {
  font-weight: 700;
  margin-top: 0.35rem;
  color: #2e7d32;
}

/* SECCIONES GENERALES */
section {
  margin-bottom: 2.5rem;
}

.section-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  font-weight: 650;
  color: #1b5e20;
}

.section-subtitle {
  font-size: 0.9rem;
  margin-bottom: 1rem;
  color: #546e7a;
}

/* GRID GENERAL DE TARJETAS */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
}

.card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.85rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(46,125,50,0.06);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 0.8rem;
  margin-bottom: 0.6rem;
  background: #e0e0e0;
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.card-category {
  font-size: 0.75rem;
  color: #78909c;
  margin-bottom: 0.4rem;
}

.card-desc {
  font-size: 0.8rem;
  color: #455a64;
  margin-bottom: 0.4rem;
  flex-grow: 1;
}

.card-price {
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: #2e7d32;
  font-size: 0.9rem;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.3rem;
  flex-wrap: wrap;
}

.btn-secondary {
  font-size: 0.8rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  background: #2e7d32;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.btn-secondary:hover {
  filter: brightness(1.05);
}

.pill {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f1f8e9;
  color: #33691e;
}

/* SUBSECCIONES DE PRODUCTOS */
.subsection {
  margin-bottom: 1.8rem;
}

.subsection h3 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  color: #1b5e20;
}

.subsection p {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
  color: #607d8b;
}

/* SERVICIOS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.service-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.9rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  border-left: 4px solid #2e7d32;
  font-size: 0.85rem;
}

.service-card-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #1b5e20;
}

/* POR QUÉ ELEGIR */
.reasons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.reason {
  background: #e8f5e9;
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  font-size: 0.85rem;
}

.reason-title {
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: #1b5e20;
}

/* CONTACTO SIMPLE */
.contact-box {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.9rem;
}

.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  align-items: center;
}

.contact-label {
  font-weight: 600;
  color: #1b5e20;
}

footer {
  background: #102019;
  color: #cfd8dc;
  padding: 1.5rem 1rem;
  font-size: 0.8rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-inner a {
  color: #a5d6a7;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  nav a {
    margin-left: 0.7rem;
  }
}
/* ====== PÁGINA DE DETALLE DE PRODUCTO ====== */

.product-detail {
  margin-top: 2rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #1b5e20;
  text-decoration: none;
}

.back-link:hover {
  text-decoration: underline;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.product-detail-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 1rem;
  box-shadow: 0 6px 18px rgba(0,0,0,0.15);
  background: #e0e0e0;
}

.product-detail-info h1 {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: #1b5e20;
}

.product-detail-category {
  font-size: 0.85rem;
  color: #78909c;
  margin-bottom: 0.6rem;
}

.product-detail-price {
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 0.8rem;
  font-size: 1rem;
}

.product-detail-text {
  font-size: 0.9rem;
  color: #455a64;
  margin-bottom: 0.8rem;
}

.product-detail-list {
  font-size: 0.88rem;
  color: #455a64;
  margin-left: 1.1rem;
  margin-bottom: 0.8rem;
}

.product-detail-list li {
  margin-bottom: 0.25rem;
}

.product-detail-block {
  margin-top: 1rem;
}

.product-detail-block h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: #1b5e20;
}

.price-table {
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.price-table th,
.price-table td {
  border: 1px solid #cfd8dc;
  padding: 0.4rem 0.6rem;
  text-align: center;
}

.price-table th {
  background: #e8f5e9;
  color: #1b5e20;
}

/* pequeño helper para notas */
.note {
  color: #607d8b;
  font-size: 0.8rem;
}
.product-options {
  margin-top: 1rem;
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: #f1f8e9;
  border: 1px solid rgba(46,125,50,0.15);
  font-size: 0.9rem;
}

.product-options-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
  margin-bottom: 0.5rem;
}

.product-options label {
  font-weight: 600;
  color: #1b5e20;
  font-size: 0.85rem;
}

.product-options select {
  padding: 0.25rem 0.4rem;
  border-radius: 0.5rem;
  border: 1px solid #cfd8dc;
  font-size: 0.85rem;
  background: #ffffff;
}
