:root {
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #dbeafe;
  --accent: #f59e0b;
  --dark: #0f172a;
  --muted: #64748b;
}

* { box-sizing: border-box; }

body {
  background: #f1f5f9;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1e293b;
}

/* Navbar */
.navbar {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  padding: 0.7rem 0;
  box-shadow: 0 4px 24px rgba(15,23,42,.35);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-brand {
  font-size: 1.3rem;
  letter-spacing: .6px;
  font-weight: 800;
  text-transform: uppercase;
}
.navbar-brand:hover { color: #93c5fd !important; }
.navbar .nav-link {
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .3px;
  padding: .5rem .9rem !important;
  border-radius: .5rem;
  transition: all .2s ease;
}
.navbar .nav-link:hover {
  color: #fff !important;
  background: rgba(255,255,255,.12);
}
.navbar .nav-link.active {
  color: #fff !important;
  background: rgba(59,130,246,.35);
}
.navbar-toggler { border-color: rgba(255,255,255,.3); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(59,130,246,.35); }

/* Hero */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #3b82f6 100%);
  color: #fff;
  border-radius: 1.5rem;
  padding: 4rem 2.5rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(37,99,235,.3);
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -20%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero h1 { font-weight: 800; font-size: 2.6rem; line-height: 1.15; }
.hero .lead { opacity: .92; font-size: 1.15rem; }

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 16px rgba(15,23,42,.06);
  transition: transform .25s ease, box-shadow .25s ease;
  overflow: hidden;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}
.card-img-top {
  height: 230px;
  object-fit: cover;
  transition: transform .4s ease;
}
.card:hover .card-img-top { transform: scale(1.06); }

.product-card .card-body { padding: 1.1rem; }
.price {
  color: var(--brand-dark);
  font-weight: 800;
  font-size: 1.35rem;
}
.price small { font-size: .7rem; color: var(--muted); font-weight: 400; }

/* Buttons */
.btn-brand {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  border: none;
  border-radius: .6rem;
  font-weight: 600;
  padding: .55rem 1.4rem;
  box-shadow: 0 4px 12px rgba(37,99,235,.3);
  transition: all .2s;
}
.btn-brand:hover {
  background: linear-gradient(135deg, var(--brand-dark), #1e40af);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37,99,235,.4);
}
.btn-outline-brand {
  border: 2px solid var(--brand);
  color: var(--brand);
  border-radius: .6rem;
  font-weight: 600;
}
.btn-outline-brand:hover { background: var(--brand); color: #fff; }

/* Carousel */
.carousel-hero .carousel-item {
  height: 420px;
  border-radius: 1.5rem;
  overflow: hidden;
}
.carousel-hero .carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.75);
}
.carousel-hero .carousel-caption {
  bottom: 3rem;
  text-align: left;
  left: 5%;
  right: 5%;
  z-index: 10;
  pointer-events: auto !important;
}
.carousel-fade .carousel-item {
  pointer-events: none !important;
}
.carousel-fade .carousel-item.active {
  pointer-events: auto !important;
}
.carousel-hero .carousel-caption a,
.carousel-hero .carousel-caption button {
  pointer-events: auto !important;
  position: relative;
  z-index: 20;
}
.carousel-hero .carousel-caption h2 {
  font-weight: 800;
  font-size: 2.2rem;
  text-shadow: 0 2px 8px rgba(0,0,0,.4);
}
.carousel-hero .carousel-caption p {
  font-size: 1.1rem;
  opacity: .95;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(255,255,255,.25);
  border-radius: 50%;
  padding: 1.2rem;
  background-size: 50%;
}
.carousel-indicators button {
  width: 10px; height: 10px;
  border-radius: 50%;
  background-color: rgba(255,255,255,.5);
}
.carousel-indicators {
  bottom: auto;
  top: 12px;
  z-index: 20;
}
.carousel-indicators .active { background-color: #fff; }

/* Product carousel (small) */
.carousel-products .carousel-item { padding: 1rem 0; }
.carousel-products .card { margin: 0 .5rem; }

/* WhatsApp floating */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 80px;
  height: 80px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  z-index: 1050;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(37,211,102,.6);
  color: #fff;
}
.whatsapp-float .pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #25d366;
  animation: pulse 2s infinite;
  z-index: -1;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .7; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* Badges */
.badge-soft {
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 600;
  padding: .35rem .7rem;
  border-radius: .5rem;
}

/* Footer */
footer {
  background: #0f172a;
  color: #cbd5e1;
  margin-top: 4rem;
}
footer .text-muted { color: #94a3b8 !important; }

/* Forms */
.form-control, .form-select {
  border-radius: .6rem;
  border: 1.5px solid #e2e8f0;
  padding: .6rem .9rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

/* Tables */
.table thead th {
  background: #f8fafc;
  font-weight: 700;
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .5px;
  color: var(--muted);
  border-bottom: 2px solid #e2e8f0;
}
.table tbody tr { transition: background .15s; }
.table tbody tr:hover { background: #f8fafc; }

/* Alerts */
.alert { border: none; border-radius: .8rem; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 2.5rem 1.5rem; }
  .carousel-hero .carousel-item { height: auto; min-height: 120px; }
  .carousel-hero .carousel-item img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    background: #0f172a;
  }
  .carousel-hero .carousel-caption h2 { font-size: 1.5rem; }
}

/* Image zoom on detail */
.img-zoom { overflow: hidden; border-radius: 1rem; }
.img-zoom img { transition: transform .4s; }
.img-zoom:hover img { transform: scale(1.05); }

/* Construction ribbon */
.construction-ribbon {
  position: fixed;
  top: 200px;
  left: 0;
  width: 280px;
  padding: 6px 0;
  background: #facc15;
  color: #1f2937;
  font-weight: 800;
  font-size: .7rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .3px;
  white-space: nowrap;
  transform: rotate(-45deg);
  transform-origin: top left;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 1060;
  pointer-events: none;
}

/* Section titles */
.section-title {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: .5rem;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  border-radius: 2px;
}
