/* ============================================================
   Mobiliario SJ - Estilos
   Paleta:
   Oxford Blue  #192338
   Space Cadet  #1E2E4F
   YInMn Blue   #31487A
   Jordy Blue   #8FB3E2
   Lavender web #D9E1F1
   ============================================================ */

:root {
  --oxford: #192338;
  --space: #1E2E4F;
  --yinmn: #31487A;
  --jordy: #8FB3E2;
  --lavender: #D9E1F1;

  --bg: #ffffff;
  --bg-soft: #f4f7fc;
  --text: #1E2E4F;
  --text-soft: #5a6b86;
  --border: #e2e8f4;
  --whatsapp: #25D366;

  --shadow-sm: 0 4px 14px rgba(25, 35, 56, 0.06);
  --shadow-md: 0 12px 30px rgba(25, 35, 56, 0.10);
  --shadow-lg: 0 24px 60px rgba(25, 35, 56, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 72px;
}

/* ---------- Reset ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; color: var(--oxford); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--yinmn);
  margin-bottom: 12px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary { background: var(--yinmn); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--space); box-shadow: var(--shadow-md); }

.btn-ghost { background: transparent; color: var(--space); border-color: var(--jordy); }
.btn-ghost:hover { background: var(--lavender); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: var(--shadow-sm); }
.btn-whatsapp:hover { background: #1ebe5a; }

.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: center; gap: 10px; font-family: 'Playfair Display', serif; }
.logo-img { height: 46px; width: auto; display: block; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--yinmn), var(--space));
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 1px;
}
.logo-text { font-size: 1.15rem; color: var(--oxford); font-weight: 500; }
.logo-text strong { color: var(--yinmn); }

.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--space); background: var(--bg-soft); }
.nav-cta {
  background: var(--yinmn) !important;
  color: #fff !important;
}
.nav-cta:hover { background: var(--space) !important; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--space); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--lavender) 0%, #ffffff 60%);
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text h1 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); margin-bottom: 20px; }
.hero-text h1 span { color: var(--yinmn); }
.lead { font-size: 1.1rem; color: var(--text-soft); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.7rem; color: var(--space); font-family: 'Playfair Display', serif; }
.hero-stats span { font-size: .85rem; color: var(--text-soft); }

.hero-image { position: relative; }
.hero-image img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  bottom: 20px; left: -18px;
  background: #fff;
  padding: 12px 18px;
  border-radius: 50px;
  box-shadow: var(--shadow-md);
  font-size: .9rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 8px;
}
.hero-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--whatsapp); }

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-soft); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 14px; }
.section-sub { color: var(--text-soft); }

/* ---------- Nosotros ---------- */
.about {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.about-image img {
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.about-text h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 18px; }
.about-text p { color: var(--text-soft); margin-bottom: 20px; }
.check-list { margin-bottom: 28px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 22px; height: 22px;
  background: var(--jordy);
  color: var(--space);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem; font-weight: 700;
}

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  padding: 32px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.service-icon {
  width: 60px; height: 60px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: var(--lavender);
  display: grid; place-items: center;
  font-size: 1.6rem;
  color: var(--yinmn);
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: var(--text-soft); font-size: .93rem; }

/* ---------- Catálogo ---------- */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter {
  padding: 9px 20px;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text-soft);
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: .9rem;
  cursor: pointer;
  transition: .2s;
}
.filter:hover { border-color: var(--jordy); color: var(--space); }
.filter.active { background: var(--yinmn); color: #fff; border-color: var(--yinmn); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--space);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 5px 12px;
  border-radius: 50px;
}
.product-body { padding: 20px 22px 24px; }
.product-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.product-body p { color: var(--text-soft); font-size: .9rem; margin-bottom: 16px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; }
.product-note { font-weight: 600; color: var(--yinmn); font-size: .82rem; text-transform: uppercase; letter-spacing: .5px; }
.product-btn {
  padding: 9px 16px;
  font-size: .85rem;
  border-radius: 50px;
  background: var(--whatsapp);
  color: #fff;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.product-btn:hover { background: #1ebe5a; transform: translateY(-2px); }

/* ---------- Contacto ---------- */
.contact-section {
  background: linear-gradient(160deg, #ffffff 0%, var(--lavender) 100%);
}
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.contact-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.contact-info > p { color: var(--text-soft); margin-bottom: 28px; }
.contact-details { margin-bottom: 28px; }
.contact-details li {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  color: var(--text);
  font-weight: 500;
}
.contact-details span { font-size: 1.1rem; }

.contact-form {
  background: #fff;
  padding: 36px;
  border-radius: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 22px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 7px; color: var(--space); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Poppins', sans-serif;
  font-size: .95rem;
  color: var(--text);
  background: var(--bg-soft);
  transition: border .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--jordy);
  box-shadow: 0 0 0 3px rgba(143, 179, 226, 0.3);
  background: #fff;
}
.field textarea { resize: vertical; }
.form-note { font-size: .8rem; color: var(--text-soft); text-align: center; margin-top: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--oxford); color: #c3cee0; padding-top: 60px; }
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text strong { color: var(--jordy); }
.footer-brand p { margin-top: 14px; max-width: 300px; font-size: .92rem; color: #93a2c0; }
.footer-col h4 { color: #fff; font-family: 'Poppins', sans-serif; font-size: .95rem; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col a { display: block; margin-bottom: 10px; color: #93a2c0; font-size: .92rem; transition: color .2s; }
.footer-col a:hover { color: var(--jordy); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 22px 0;
  text-align: center;
  font-size: .85rem;
  color: #7c8bab;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  z-index: 200;
  transition: transform .2s;
  animation: pulse 2.4s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about-image { order: 2; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-image img { aspect-ratio: 16 / 10; }
  .about-image img { aspect-ratio: 16 / 10; }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-140%);
    transition: transform .3s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 14px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
  .section { padding: 60px 0; }
  .services-grid, .product-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .contact-form { padding: 26px; }
}
