:root {
  --primary: #d4af37;
  --primary-dark: #b48e1f;
  --secondary: #0f172a;
  --bg: #f7f8fc;
  --text: #111827;
  --muted: #6b7280;
  --radius-lg: 18px;
  --shadow-soft: 0 14px 35px rgba(15, 23, 42, 0.15);
  --shadow-light: 0 8px 18px rgba(15, 23, 42, 0.08);
}

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

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

/* HEADER */
header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 248, 252, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-image {
  height: 55px;
  width: auto;
}

.logo-text-sub {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

nav a {
  position: relative;
  padding-bottom: 2px;
}

nav a:hover {
  color: var(--secondary);
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}

/* BOTONES */
.btn {
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  background: transparent;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.97);
}

.btn-outline {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--secondary);
}

.btn-outline:hover {
  border-color: var(--secondary);
  box-shadow: var(--shadow-light);
  background: #fff;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-pill {
  font-size: 11px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  cursor: pointer;
}

.btn-pill:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-wh-main {
  white-space: nowrap;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--secondary);
}

.btn-ghost:hover {
  background: rgba(148, 163, 184, 0.15);
}

.btn-soft {
  background: #e5e7eb;
  border-color: transparent;
  color: var(--secondary);
}

.btn-soft:hover {
  background: #d4af37;
  color: #fff;
}

/* HERO */
.hero {
  padding: 28px 0 40px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
}

.hero-home-bg {
  background: radial-gradient(circle at top left, #eef2ff, #f9fafb 45%, #ffffff);
}

.hero-title {
  font-size: clamp(32px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--secondary);
  margin-bottom: 10px;
}

.hero-title span {
  background: linear-gradient(120deg, #d4af37, #facc15);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 18px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: var(--muted);
}

.hero-title-center {
  text-align: center;
}

.hero-subtitle-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta-center {
  justify-content: center;
}

.hero-meta-center {
  justify-content: center;
}

.hero-gallery-home {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-block {
  text-align: center;
}

.hero-logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 999px;
  background: radial-gradient(circle at top, rgba(212, 175, 55, 0.22), rgba(15, 23, 42, 0.9));
  box-shadow: var(--shadow-soft);
  margin-bottom: 12px;
}

.hero-logo-img {
  height: 70px;
}

.hero-home-image-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  background: #000;
  position: relative;
}

.hero-home-img {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.hero-home-placeholder {
  background: linear-gradient(135deg, #1f2937, #111827);
}

.hero-home-chip {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(15,23,42,0.85);
  color: #f9fafb;
  font-size: 11px;
}

/* SECCIONES */
.section {
  padding: 10px 0 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 18px;
  gap: 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary);
}

.section-subtitle {
  font-size: 13px;
  color: var(--muted);
  max-width: 460px;
}

/* PRODUCTOS */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.product-thumb {
  border-radius: 14px;
  height: 130px;
  overflow: hidden;
  background: #111827;
}

.thumb-img {
  width: 100%;
  height: 100%;
}

.thumb-placeholder {
  background: linear-gradient(135deg, #4b5563, #111827);
}

.product-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--secondary);
}

.product-desc {
  font-size: 12px;
  color: var(--muted);
  min-height: 32px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.product-price {
  font-weight: 600;
  color: var(--secondary);
}

/* MISIÓN, VISIÓN, VALORES */
.mission-section {
  background: #eef2ff;
  padding-top: 40px;
  padding-bottom: 40px;
}

.mission-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.mission-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow-light);
}

.mission-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--secondary);
}

.mission-text {
  font-size: 13px;
  color: var(--muted);
}

.mission-list {
  list-style: disc;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* WHATSAPP FLOAT */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* MODAL LOGIN / REGISTRO */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-overlay.is-open {
  display: flex;
}

.modal {
  background: #ffffff;
  border-radius: 18px;
  padding: 18px 20px 20px;
  max-width: 380px;
  width: 100%;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.modal-header {
  margin-bottom: 10px;
}

.modal-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary);
}

.modal-subtitle {
  font-size: 13px;
  color: var(--muted);
}

.modal-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-field label {
  font-size: 12px;
  color: var(--secondary);
}

.modal-field input {
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  padding: 8px 12px;
  font-size: 13px;
  outline: none;
}

.modal-field input:focus {
  border-color: var(--primary);
}

.modal-submit {
  width: 100%;
  justify-content: center;
}

.modal-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 4px;
}

.modal-error {
  font-size: 12px;
  color: #b91c1c;
  background: #fee2e2;
  border-radius: 999px;
  padding: 6px 10px;
  text-align: center;
}

/* RESPONSIVE */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .mission-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  nav { display: none; }
  .product-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
}
