/* =====================================================
   BAMO — Casa de mayoreo de diamantes y joyería fina
   Paleta: Crema + Verde Esmeralda + Dorado
   ===================================================== */

:root {
  /* Colores */
  --bg:          #F8F4ED;
  --bg-soft:     #F1ECE2;
  --bg-deep:     #E8E1D2;
  --emerald:     #1F4D3F;
  --emerald-dk:  #163328;
  --emerald-lt:  #2D6A57;
  --gold:        #B8946A;
  --gold-lt:     #D4B896;
  --gold-dk:     #9A7A56;
  --ink:         #1A1A1A;
  --ink-soft:    #3D3D3D;
  --ink-mute:    #6B6B6B;
  --line:        rgba(26, 26, 26, 0.10);
  --line-soft:   rgba(26, 26, 26, 0.06);

  /* Tipografía */
  --font-serif:  'Cormorant Garamond', Georgia, serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Layout */
  --container:   1240px;
  --gutter:      clamp(20px, 4vw, 56px);
  --radius:      4px;
  --radius-lg:   8px;

  /* Transiciones */
  --t-fast:      150ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-base:      280ms cubic-bezier(0.4, 0, 0.2, 1);
  --t-slow:      500ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* =========== TYPOGRAPHY HELPERS =========== */

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dk);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--emerald-dk);
  margin-bottom: 24px;
}

.section-sub {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 640px;
}

.section-head { margin-bottom: 64px; }
.section-head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head--center .section-sub { margin-left: auto; margin-right: auto; }

/* =========== BUTTONS =========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: var(--radius);
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
}

.btn--primary {
  background: var(--emerald);
  color: var(--bg);
}
.btn--primary:hover {
  background: var(--emerald-dk);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(31, 77, 63, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--emerald-dk);
  border: 1px solid var(--emerald);
}
.btn--ghost:hover {
  background: var(--emerald);
  color: var(--bg);
}

.btn--link {
  padding: 14px 4px;
  color: var(--emerald);
  font-weight: 500;
}
.btn--link:hover { color: var(--gold-dk); }

.btn--full { width: 100%; }

/* =========== NAV =========== */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 244, 237, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}

.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald-dk);
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  background: var(--emerald);
  color: var(--bg);
  border-radius: var(--radius);
  letter-spacing: -0.02em;
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.nav__links {
  display: flex;
  gap: 36px;
  flex: 1;
  justify-content: center;
}

.nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color var(--t-fast);
  position: relative;
}

.nav__links a:hover { color: var(--emerald); }

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--t-base);
}

.nav__links a:hover::after { width: 100%; }

.nav__actions { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--t-fast);
}

.lang-toggle:hover { border-color: var(--emerald); color: var(--emerald); }

.lang-toggle__current { color: var(--emerald); font-weight: 600; }
.lang-toggle__sep { color: var(--ink-mute); }
.lang-toggle.is-en .lang-toggle__current { color: var(--ink-mute); font-weight: 500; }
.lang-toggle.is-en .lang-toggle__alt { color: var(--emerald); font-weight: 600; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  width: 24px;
  height: 2px;
  background: var(--ink);
  transition: var(--t-fast);
}

/* =========== HERO =========== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg,
      rgba(248, 244, 237, 0.92) 0%,
      rgba(248, 244, 237, 0.75) 40%,
      rgba(248, 244, 237, 0.35) 75%,
      rgba(248, 244, 237, 0.15) 100%),
    url('../assets/img/hero.jpg');
  background-size: cover;
  background-position: center right;
  z-index: -1;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 30%, rgba(184, 148, 106, 0.15), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(31, 77, 63, 0.06), transparent 50%);
  pointer-events: none;
}

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

.hero__eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dk);
  padding: 8px 16px;
  border: 1px solid var(--gold);
  border-radius: 100px;
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--emerald-dk);
  margin-bottom: 28px;
  max-width: 14ch;
}

.hero__title-em {
  font-style: italic;
  color: var(--emerald);
  font-weight: 400;
}

.hero__sub {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 40px;
}

.hero__cta {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  max-width: 720px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.hero__meta-item { display: flex; flex-direction: column; gap: 4px; }

.hero__meta-num {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  color: var(--emerald-dk);
  letter-spacing: -0.01em;
}

.hero__meta-label {
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

/* =========== CATALOG =========== */

.catalog { padding: 120px 0; background: var(--bg-soft); }

.catalog__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.cat-card {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base);
  border: 1px solid var(--line-soft);
}

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -16px rgba(22, 51, 40, 0.15);
}

.cat-card__img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  position: relative;
}

.cat-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(22, 51, 40, 0.5) 100%);
}

.cat-card__img--diamonds { background-image: url('../assets/img/cat-diamantes.jpg'); }
.cat-card__img--gems     { background-image: url('../assets/img/cat-gemas.jpg'); }
.cat-card__img--jewelry  { background-image: url('../assets/img/cat-joyeria.jpg'); }
.cat-card__img--melee    { background-image: url('../assets/img/cat-melees.jpg'); }

.cat-card__body { padding: 36px 32px; }

.cat-card__num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--gold-dk);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 12px;
}

.cat-card__title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--emerald-dk);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.cat-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.cat-card__tag {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.catalog__cta {
  text-align: center;
  padding-top: 24px;
}

.catalog__cta p {
  font-family: var(--font-serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

/* =========== SERVICES =========== */

.services { padding: 120px 0; background: var(--bg); }

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 80px;
}

.srv-card {
  padding: 48px 36px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  transition: var(--t-base);
  text-align: left;
}

.srv-card:hover {
  background: var(--emerald);
  color: var(--bg);
  transform: translateY(-4px);
}

.srv-card:hover .srv-card__title { color: var(--bg); }
.srv-card:hover .srv-card__desc { color: rgba(248, 244, 237, 0.85); }
.srv-card:hover .srv-card__icon { color: var(--gold-lt); }

.srv-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: var(--radius);
  color: var(--emerald);
  margin-bottom: 28px;
  transition: var(--t-base);
}

.srv-card:hover .srv-card__icon { background: var(--emerald-dk); }

.srv-card__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 500;
  color: var(--emerald-dk);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  transition: color var(--t-base);
}

.srv-card__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  transition: color var(--t-base);
}

.services__quote {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 56px 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.services__quote p {
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  color: var(--emerald-dk);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* =========== ABOUT =========== */

.about { padding: 120px 0; background: var(--bg-soft); }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}

.about__col-img { position: relative; }

.about__img {
  aspect-ratio: 4 / 5;
  background-image: url('../assets/img/about.jpg');
  background-size: cover;
  background-position: center;
  border-radius: var(--radius-lg);
  position: relative;
}

.about__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(22, 51, 40, 0.25) 100%);
  border-radius: var(--radius-lg);
}

.about__badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--bg);
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px -16px rgba(22, 51, 40, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.about__badge-line1 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--emerald-dk);
  letter-spacing: -0.01em;
}

.about__badge-line2 {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about__lead {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.about__pillars {
  display: grid;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.pillar h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--emerald);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.pillar p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* =========== CONTACT =========== */

.contact {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}

.contact__sub {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 40px;
}

.contact__info {
  display: grid;
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.info-item { display: flex; flex-direction: column; gap: 4px; }

.info-item__label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-dk);
}

.info-item__value {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.5;
}

a.info-item__value { transition: color var(--t-fast); }
a.info-item__value:hover { color: var(--emerald); }

/* =========== FORM =========== */

.contact__form {
  background: var(--bg);
  padding: 48px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  box-shadow: 0 24px 64px -24px rgba(22, 51, 40, 0.12);
  display: grid;
  gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.contact__form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact__form label span {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.contact__form input,
.contact__form select,
.contact__form textarea {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--ink);
  transition: border var(--t-fast), background var(--t-fast);
  outline: none;
}

.contact__form input:focus,
.contact__form select:focus,
.contact__form textarea:focus {
  border-color: var(--emerald);
  background: var(--bg);
}

.contact__form textarea { resize: vertical; min-height: 100px; font-family: inherit; }

.form-note {
  font-size: 12px;
  color: var(--ink-mute);
  text-align: center;
  margin-top: -4px;
}

.contact__form.is-submitted {
  background: var(--emerald);
  color: var(--bg);
  padding: 80px 48px;
  text-align: center;
}

/* =========== FOOTER =========== */

.footer { background: var(--emerald-dk); color: var(--bg); padding: 64px 0 32px; }

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.footer__brand .footer__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer__brand .logo-mark { background: var(--gold); color: var(--emerald-dk); }
.footer__brand .logo-text { color: var(--bg); }

.footer__brand p {
  font-size: 14px;
  color: rgba(248, 244, 237, 0.7);
  max-width: 360px;
  line-height: 1.6;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  font-size: 14px;
  color: rgba(248, 244, 237, 0.75);
  transition: color var(--t-fast);
}

.footer__links a:hover { color: var(--gold-lt); }

.footer__legal {
  font-size: 12px;
  color: rgba(248, 244, 237, 0.5);
  letter-spacing: 0.04em;
  text-align: right;
  align-self: end;
}

/* =========== WHATSAPP FAB =========== */

.wa-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 32px -8px rgba(37, 211, 102, 0.5);
  transition: transform var(--t-base), box-shadow var(--t-base);
  z-index: 90;
}

.wa-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 16px 40px -8px rgba(37, 211, 102, 0.6);
}

/* =========== RESPONSIVE =========== */

@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }

  .nav__links.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg);
    padding: 32px var(--gutter);
    gap: 20px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 48px -16px rgba(22, 51, 40, 0.15);
  }

  .catalog__grid { grid-template-columns: 1fr; gap: 24px; }
  .services__grid { grid-template-columns: 1fr; gap: 20px; }

  .about__grid,
  .contact__grid { grid-template-columns: 1fr; gap: 48px; }

  .about__badge { right: 16px; bottom: 16px; padding: 16px 20px; }
  .about__badge-line1 { font-size: 18px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__legal { text-align: left; }
}

@media (max-width: 980px) {
  /* Hero mobile: image full bleed + stronger vertical overlay for text contrast */
  .hero__bg {
    background-image:
      linear-gradient(180deg,
        rgba(248, 244, 237, 0.95) 0%,
        rgba(248, 244, 237, 0.85) 40%,
        rgba(248, 244, 237, 0.65) 70%,
        rgba(248, 244, 237, 0.3) 100%),
      url('../assets/img/hero-mobile.jpg');
    background-position: center 30%;
  }
}

@media (max-width: 600px) {
  .hero { padding: 56px 0 80px; }
  .hero__meta { grid-template-columns: 1fr; gap: 20px; }
  .hero__cta { gap: 12px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .about__img { aspect-ratio: 4 / 4; }

  .catalog,
  .services,
  .about,
  .contact { padding: 80px 0; }

  .cat-card__body { padding: 28px 24px; }
  .cat-card__title { font-size: 26px; }
  .srv-card { padding: 36px 28px; }

  .form-row { grid-template-columns: 1fr; gap: 16px; }
  .contact__form { padding: 32px 24px; }

  .wa-fab { width: 52px; height: 52px; bottom: 20px; right: 20px; }
  .wa-fab svg { width: 24px; height: 24px; }
}

/* =========== ANIMATIONS =========== */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__eyebrow,
.hero__title,
.hero__sub,
.hero__cta,
.hero__meta { animation: fadeUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) both; }

.hero__title { animation-delay: 0.1s; }
.hero__sub { animation-delay: 0.2s; }
.hero__cta { animation-delay: 0.3s; }
.hero__meta { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
