:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-strong: #f8fafc;
  --text: #0f172a;
  --text-muted: #64748b;
  --accent: #0b5ed7;
  --accent-soft: #e7f1ff;
  --border: #e2e8f0;
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

.top-bar {
  background: #0b5ed7;
  color: #fff;
  text-align: center;
  padding: 8px 18px;
  font-size: 13px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.nav.container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 18px;
}

.nav-start {
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  font-weight: 700;
  font-size: 24px;
  color: var(--accent);
}

.menu {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu a {
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.menu a:hover {
  color: var(--accent);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrapper {
  position: relative;
}

.search-wrapper input {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 12px 16px;
  min-width: 220px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-wrapper input:focus {
  border-color: var(--accent);
}

.btn-secondary,
.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  padding: 14px 24px;
}

.btn-secondary,
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px 20px;
}

.btn-secondary:hover,
.btn-ghost:hover {
  background: var(--surface-strong);
}

.hero {
  padding: 0 0 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.hero-copy {
  display: grid;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.8rem, 2.5vw, 4rem);
  line-height: 1.02;
}

.hero-copy p {
  margin: 0;
  max-width: 640px;
  color: var(--text-muted);
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-highlights div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  font-weight: 600;
}

.hero-slider {
  position: relative;
}

.full-width-carousel {
  max-width: none;
  border-radius: 0;
  margin: 0;
  box-shadow: none;
}

.carousel {
  --carousel-height: 620px;
  position: relative;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
  height: var(--carousel-height);
}

.carousel-text-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(15,23,42,0.0) 0%, rgba(15,23,42,0.25) 30%, rgba(15,23,42,0.65) 100%);
  padding: 0 18px;
}

.carousel-copy {
  max-width: 700px;
  color: #fff;
}

.carousel-track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
  align-items: stretch;
}

.slide {
  min-width: 100%;
  flex-shrink: 0;
  height: 100%;
  display: block;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

}

@media (max-width: 768px) {
  .carousel {
    --carousel-height: 320px;
    height: var(--carousel-height);
  }
}

.carousel-copy .hero-actions {
  margin-top: 22px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.carousel-btn.prev {
  left: 16px;
}

.carousel-btn.next {
  right: 16px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1200px;
    margin: 96px auto 0;
    padding: 0 18px;
  }

.feature-card {
  background: var(--surface);
  padding: 26px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 18px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.product-filter {
  margin: 24px 0 18px;
  max-width: 460px;
}

.product-filter input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 18px;
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-filter input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 94, 215, 0.12);
}

.product-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  text-align: center;
  color: var(--text-muted);
}

.section-heading h2 {
  margin: 8px 0 0;
  font-size: 2.1rem;
}

.link-secondary {
  color: var(--accent);
  font-weight: 700;
}

.productos {
  padding: 42px 0 0;
}

.products-layout{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.products-area .products-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.filters{
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

.filters h4{margin:0 0 12px}
.filters ul{list-style:none;padding:0;margin:0;display:grid;gap:8px}
.filters li{padding:8px 12px;border-radius:999px;cursor:pointer;color:var(--text-muted);border:1px solid transparent}
.filters li.active{background:var(--accent-soft);color:var(--accent);border-color:var(--accent)}

.product {
  position: relative;
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.product:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.12);
}

.product-media {
  position: relative;
}

.product-media img {
  width: 100%;
  aspect-ratio: 16/10;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(11, 94, 215, 0.12);
  color: var(--accent);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.product-body {
  display: grid;
  gap: 16px;
  padding: 22px;
  flex-grow: 1;
}

.product-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-category {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.product h3 {
  margin: 0;
  font-size: 1.2rem;
}

.muted {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 22px 22px;
  margin-top: auto;
}

.product-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 16px;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  transition: filter 0.2s ease;
}

.btn-whatsapp:hover {
  filter: brightness(0.92);
}

.whatsapp-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

  .whatsapp-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card-link h3 {
  margin-bottom: 0.5rem;
}

.product-detail-page {
  padding: 48px 0;
}

.product-detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(360px, 0.9fr);
  gap: 42px;
  align-items: start;
}

.product-detail-image {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 68px rgba(15, 23, 42, 0.12);
  min-height: 580px;
  background: var(--surface);
}

.product-detail-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-main img { height: 520px; object-fit: contain; background: #fff; }
.gallery-thumbs { display:flex; gap:8px; padding:12px; flex-wrap:wrap; background:transparent; }
.gallery-thumbs .thumb { border: none; background: transparent; padding:0; cursor:pointer; border-radius:8px; overflow:hidden; }
.gallery-thumbs .thumb img { width:72px; height:72px; object-fit:cover; display:block; border:1px solid var(--border); border-radius:8px; }

.product-detail-info {
  display: grid;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.product-detail-breadcrumb {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.product-detail-breadcrumb a {
  color: var(--accent);
}

.product-detail-title {
  margin: 0;
  font-size: clamp(2rem, 2.5vw, 2.8rem);
  line-height: 1.05;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 0.95rem;
}

.detail-description {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.8;
}

.detail-price {
  display: grid;
  gap: 10px;
}

.detail-price .price-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.detail-price .price,
.detail-price .price-offer-group {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.detail-price .price {
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 900;
  color: var(--text);
}

.detail-price .previous-price {
  color: var(--text-muted);
  text-decoration: line-through;
  font-size: 1rem;
}

.product-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 14px;
  align-items: center;
}

.product-detail-actions .btn-primary,
.product-detail-actions .btn-secondary,
.product-detail-actions .btn-whatsapp {
  min-width: 170px;
}

.product-detail-actions .btn-secondary {
  border-color: var(--border);
}

.product-detail-actions .btn-whatsapp {
  background: #25d366;
  color: #fff;
}

.product-detail-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
}

.product-detail-summary h4 {
  margin: 0 0 16px;
}

.related-products {
  padding: 56px 0 28px;
}

.related-carousel {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 0;
}

.related-track {
  display: flex;
  gap: 18px;
  align-items: stretch;
  padding-left: 18px;
  min-width: max-content;
  animation: scrollRelated 32s linear infinite;
}

.related-card {
  display: block;
  min-width: 260px;
  max-width: 260px;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
}

.related-card-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.related-card-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.related-card-body {
  padding: 16px;
  display: grid;
  gap: 10px;
}

.related-card-category {
  margin: 0;
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.related-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.related-card-price {
  color: var(--accent);
  font-weight: 800;
}

@keyframes scrollRelated {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 960px) {
  .related-track {
    animation-duration: 28s;
  }
}

.product-detail-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.product-detail-summary li {
  display: flex;
  align-items: start;
  gap: 12px;
  color: var(--text-muted);
}

.product-detail-summary li::before {
  content: '•';
  color: var(--accent);
  margin-top: 2px;
}

@media (max-width: 960px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}
.btn-outline {
  border-radius: 999px;
  padding: 10px 18px;
}

.btn-sm {
  border: none;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.btn-sm:hover {
  filter: brightness(0.95);
}

#contacto {
  padding: 56px 0 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: stretch;
}

.contact-info,
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
}

.contact-info h2,
.contact-card h2 {
  margin: 18px 0 16px;
  font-size: 2.2rem;
}

.contact-info p,
.contact-details div {
  color: var(--text-muted);
  line-height: 1.8;
}

.contact-details {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}

.contact-map {
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.contact-card label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--text);
}

.contact-card input,
.contact-card textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: var(--surface-strong);
}

.contact-card button {
  width: fit-content;
  margin-top: 6px;
}

#contact-result {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  background: #101116;
  color: #d1d5db;
  padding: 48px 0 24px;
}

.site-footer a {
  color: #e5e7eb;
  text-decoration: none;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-footer a:hover {
  opacity: 1;
  transform: translateX(1px);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: flex-start;
  padding: 0 12px;
}

.footer-brand h2 {
  font-size: 2rem;
  margin: 0 0 14px;
  color: #fff;
}

.footer-brand p {
  max-width: 520px;
  line-height: 1.8;
  color: #cbd5e1;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-links h3 {
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9ca3af;
}

.footer-links a {
  display: block;
  margin-bottom: 10px;
  color: #d1d5db;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 36px;
  padding-top: 20px;
  text-align: center;
  font-size: 0.95rem;
  color: #9ca3af;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .footer-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-footer {
    padding: 36px 0 18px;
  }
  .footer-inner {
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .features,
  .contact-grid,
  .products-grid {
    grid-template-columns: 1fr;
  }

  .hero-highlights {
    grid-template-columns: 1fr;
  }

  .products-layout {
    grid-template-columns: 1fr;
  }

  .filters {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .nav.container {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .nav-start {
    flex-wrap: wrap;
    gap: 12px;
  }

  .menu {
    flex-wrap: wrap;
    gap: 12px;
  }

  .search-wrapper input {
    width: 100%;
  }

  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .hero {
    padding-top: 28px;
  }

  .carousel-text-overlay {
    padding: 16px;
  }

  .carousel-copy h1 {
    font-size: 2rem;
  }

  .hero-slider .slide img {
    height: 320px;
  }

  .features {
    gap: 16px;
  }

  .feature-card {
    padding: 22px;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-filter {
    margin: 18px 0;
  }

  .products-area .products-grid {
    grid-template-columns: 1fr;
  }

  .filters ul {
    gap: 10px;
  }

  .filters li {
    width: 100%;
  }

  .product {
    margin: 0;
  }

  .contact-grid {
    gap: 24px;
  }

  .contact-info,
  .contact-card {
    padding: 24px;
  }

  .contact-info h2,
  .contact-card h2 {
    font-size: 1.85rem;
  }

  .contact-card label {
    gap: 10px;
  }

  .contact-card input,
  .contact-card textarea {
    padding: 14px 14px;
  }

  #contacto {
    padding: 36px 0 50px;
  }
}
