:root {
  --nogal: #5C4033;
  --madera-clara: #D7BFAE;
  --beige: #F5EFE6;
  --negro-mate: #1B1B1B;
  --verde-insti: #21515F;
}

body {
  font-family: 'Lato', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color: #222;
  background-color: var(--madera-clara);
}

h1,
h2,
h3,
.display-5 {
  font-family: 'Playfair Display', serif;
  color: var(--verde-insti);
}

/* Hero */
.hero {
  background: linear-gradient(0deg, var(--nogal), var(--madera-clara)), url('https://images.unsplash.com/photo-1505691723518-36a1a6b39f71?auto=format&fit=crop&w=1600&q=60') center/cover no-repeat;
  color: #fff;
  min-height: 72vh;
  display: flex;
  align-items: center;
}

#productos,
#proyectos,
#sectores {
  background: linear-gradient(0deg, var(--nogal), var(--madera-clara));
  color: #fff;
}

.formulario {
  background: var(--beige);
}

.hero .lead {
  color: #fff;
  opacity: .95;
}

.nav-brand {
  font-weight: 700;
  letter-spacing: .2px;
  color: var(--nogal) !important;
  font-family: 'Playfair Display', serif;
}

.card-service {
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fff);
  box-shadow: 0 6px 18px rgba(20, 20, 20, 0.06);
}

.product-img {
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

.section-padding {
  padding: 72px 0;
}

.badge-nogal {
  background: linear-gradient(135deg, var(--negro-mate), var(--nogal));
  color: #fff;
}

footer {
  background: #111;
  color: #ddd;
  padding: 36px 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .hero {
    min-height: 56vh;
    padding-top: 56px;
    background-position: center 20%;
  }

  .product-img {
    height: 140px;
  }
}

.footer-modern {
  background: linear-gradient(135deg, var(--negro-mate), var(--verde-insti));
  font-family: 'Playfair Display', Tahoma, Geneva, Verdana, sans-serif;

}

.footer-modern h6 {
  letter-spacing: 1px;
}

.footer-modern a.link-hover:hover {
  color: #ffe3e6;
  text-decoration: underline;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  color: white;
  font-size: 1.2rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.facebook {
  background: #3b5998;
}

.twitter {
  background: #1da1f2;
}

.instagram {
  background: #e4405f;
}

.linkedin {
  background: #0077b5;
}

.whatsapp {
  background: #21990e;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--verde-insti);
  transition: all 0.3s ease;
}

.navbar-light .navbar-nav .nav-link:hover {
  color: var(--madera-clara);
  text-decoration: underline;
}

.btn-primary {
  background: linear-gradient(135deg, var(--negro-mate), var(--nogal));
  border: none;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-dark {
  transition: all 0.3s ease;

}

.btn-outline-dark:hover {
  background: linear-gradient(135deg, var(--negro-mate), var(--nogal));
  border-color: #222;
  color: white;
  transform: translateY(-2px);
}


.modal-content {
  background: linear-gradient(135deg, var(--negro-mate), var(--verde-insti));
  color: #fff;
}

#modalTitle {
  font-size: 1.8rem;
  color: #fff;
}

#modalDescription {
  font-size: 1.2rem;
  color: var(--madera-clara) !important;
}

#modalPrecio {
  font-size: 1.8rem;
  color: rgba(255, 255, 255, 0.85) !important;
}

#modalFeatures li {
  color: rgba(255, 255, 255, 0.85);
}

.btn-primary {
  background: linear-gradient(135deg, var(--negro-mate), var(--nogal));
  border: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.btn-outline-secondary {
  border-color: #fff;
  color: #fff;
}

.btn-outline-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

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

.badge-ma {
  background: rgba(199, 163, 107, .16);
  border: 1px solid rgba(199, 163, 107, .35);
  color: #3a2a15;
}


/* Normaliza cards de producto */
.product-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card .card-body {
  display: flex;
  flex-direction: column;
}

.product-card .product-desc {
  /* recorta a 2 o 3 líneas (ajusta) */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  /* 2 o 3 */
  overflow: hidden;
  min-height: calc(1.2em * 2);
  /* mismo número de líneas */
}

.product-card .card-actions {
  margin-top: auto;
  /* empuja el botón hacia abajo */
  padding-top: .75rem;
}

.filter-card {
  border-radius: 14px;
}


/* ===== Normalizar alturas y alinear botones ===== */
.prod-card {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.prod-card .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

/* Descripción: recorta a 4 líneas (ajusta a 3/4) */
.prod-card .prod-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  /* <-- prueba 3 o 4 */
  overflow: hidden;
  line-height: 1.35;
  min-height: calc(1.35em * 4);
  /* mismo # de líneas que clamp */
}

/* Empuja precio + botones al fondo del card */
.prod-card .prod-footer {
  margin-top: auto;
  padding-top: .75rem;
}

/* Opcional: mantiene consistente el renglón de precio + specs */
.prod-card .prod-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}


.hero-premium {
  position: relative;
  min-height: calc(100vh - 86px);
  background-image:
    linear-gradient(90deg, rgba(18, 11, 8, .92) 0%, rgba(18, 11, 8, .76) 38%, rgba(18, 11, 8, .28) 68%, rgba(18, 11, 8, .15) 100%),
    url('../img/hero-collage-muebles-aguilar.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;

}

.min-vh-hero {
  min-height: calc(80vh - 86px);
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: #d6a84f;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  font-weight: 700;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  max-width: 680px;
}

.hero-copy {
  max-width: 650px;
}

.btn-ma-gold {
  background: #b8873b;
  border-color: #b8873b;
  color: #fff;
  font-weight: 600;
}

.btn-ma-gold:hover {
  background: #9f7330;
  border-color: #9f7330;
  color: #fff;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.hero-trust span {
  padding: .45rem .75rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 999px;
  font-size: .9rem;
  background: rgba(0, 0, 0, .18);
}

@media (max-width: 991px) {
  .hero-premium {
    min-height: 78vh;
    background-position: center right;
  }

  .min-vh-hero {
    min-height: 78vh;
  }
}

.hero {
  min-height: 80vh;
}

.service-card {
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .06);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .06);
  transition: transform .25s ease, box-shadow .25s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .10);
}

.service-card-img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
}

.service-card-body {
  padding: 1.5rem;
}

.service-card h5 {
  color: #0b4c5f;
  margin-bottom: .75rem;
}

#proyectos .carousel-item img {
  height: 500px;
  object-fit: cover;
  object-position: center;
}

@media (max-width: 768px) {
  #proyectos .carousel-item img {
    height: 320px;
  }
}



.trust-stats {
  background: #fff;
  padding: 28px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.trust-stat-item {
  padding: 14px 10px;
}

.trust-stat-item strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--verde-insti);
}

.trust-stat-item span {
  display: block;
  margin-top: .5rem;
  font-size: .95rem;
  color: #555;
}

#sectores .sectores-grid img,
#sectores img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
}

#sectores .sectores-grid {
  align-items: start;
}

#sectores h6 {
  margin-top: .75rem;
  min-height: 2.4em;
  color: #fff;
  font-weight: 700;
}

#sectores p {
  min-height: 3.2em;
}

#sectores img[alt="Institucional y Religioso"] {
  object-position: center top;
}

#sectores .text-center {
  height: 100%;
}

#projectsCarousel .carousel-caption {
  background: rgba(18, 11, 8, .72);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  backdrop-filter: blur(4px);
}

#projectsCarousel .carousel-caption h5 {
  color: #fff;
  font-weight: 700;
}

#projectsCarousel .carousel-caption p {
  color: rgba(255, 255, 255, .9);
}

.cart-img {
  width: 100%;
  height: 95px;
  object-fit: cover;
  border-radius: 10px;
}

.cart-desc {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.cart-summary {
  position: sticky;
  top: 105px;
}

@media (max-width: 991px) {
  .cart-summary {
    position: static;
  }
}

.cart-subtotal {
  min-width: 140px;
  text-align: right;
  white-space: nowrap;
  font-weight: 700;
}

.cart-price {
  min-width: 140px;
  white-space: nowrap;
}

.cart-qty-col {
  min-width: 120px;
}

.cart-money {
  white-space: nowrap;
  display: inline-block;
}

.cart-line-subtotal {
  min-width: 135px;
}

.cart-nav-badge {
  position: absolute;
  top: -8px;
  right: -12px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #b8873b;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .18);
}