/* Homepage Specific Styles - Encaje Mayorista */
.home-page {
  --hm-white: #ffffff;
  --hm-paper: #fbf9f5;
  --hm-paper-2: #f5f1e8;
  --hm-ink: #1a1712;
  --hm-ink-soft: #2e2a22;
  --hm-muted: #7a7468;
  --hm-line: #e6e0d4;
  --hm-line-2: #d8d0bf;
  --hm-gold: #a8842f;
  --hm-gold-2: #c9a85c;
  --hm-gold-soft: #f3ead3;
  --hm-serif: 'Cormorant Garamond', Georgia, serif;
  --hm-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --hm-max: 1240px;
  --hm-gutter: clamp(20px, 4vw, 60px);

  /* Gray placeholder variables */
  --hm-ph-bg: #ece9e3;
  --hm-ph-border: #dcd7cc;
  --hm-ph-text: #8c867a;

  font-family: var(--hm-sans);
  color: var(--hm-ink);
  background: var(--hm-white);
  line-height: 1.65;
  font-size: 16px;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.home-page * {
  box-sizing: border-box;
}

.home-page a {
  color: inherit;
  text-decoration: none;
}

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

/* Gray Placeholders */
.hm-ph {
  background-color: var(--hm-ph-bg);
  border: 1px solid var(--hm-ph-border);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  min-height: 240px;
  background-image: 
    linear-gradient(var(--hm-ph-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--hm-ph-border) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center center;
}

.hm-ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(236, 233, 227, 0.84);
}

.hm-ph-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.hm-ph-icon {
  width: 40px;
  height: 40px;
  border: 1px solid var(--hm-ph-border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--hm-ph-text);
  font-size: 16px;
  background: rgba(255, 255, 255, 0.7);
}

.hm-ph-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hm-ph-text);
  font-weight: 600;
}

.hm-ph-desc {
  font-size: 13px;
  color: var(--hm-muted);
  max-width: 260px;
  line-height: 1.45;
}

.hm-ph-tall { min-height: 480px; height: 100%; }
.hm-ph-wide { min-height: 320px; }
.hm-ph-square { min-height: 260px; }

/* Real Media Box Containers */
.hm-media-box {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--hm-line);
  background: var(--hm-paper-2);
  box-shadow: 0 10px 28px rgba(26, 23, 18, 0.06);
}
.hm-media-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hm-scene-card:hover .hm-media-box img,
.hm-split:hover .hm-media-box img,
.hm-hero:hover .hm-media-box img {
  transform: scale(1.02);
}
.hm-media-tall {
  min-height: 440px;
  height: 100%;
  max-height: 520px;
}
.hm-media-square {
  height: 240px;
}

/* Tag / Labels */
.hm-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--hm-gold);
  font-weight: 600;
  margin-bottom: 20px;
}
.hm-tag::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--hm-gold);
}

.hm-label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--hm-gold);
  font-weight: 600;
  margin-bottom: 16px;
}

/* Typography */
.home-page h1,
.home-page h2,
.home-page h3,
.home-page h4 {
  font-family: var(--hm-serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--hm-ink);
  margin-top: 0;
}

.home-page h1 {
  font-size: clamp(38px, 5.2vw, 68px);
  line-height: 1.05;
  margin-bottom: 24px;
}

.home-page h2 {
  font-size: clamp(26px, 3.4vw, 44px);
  line-height: 1.15;
  margin-bottom: 18px;
}

.home-page h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.25;
  margin-bottom: 12px;
}

.home-page h1 em,
.home-page h2 em,
.home-page h3 em {
  font-style: italic;
  font-weight: 400;
  color: var(--hm-gold);
}

.home-page p {
  color: var(--hm-muted);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 18px;
  font-weight: 400;
}

.hm-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 300;
  line-height: 1.65;
  color: var(--hm-muted);
  margin-bottom: 34px;
}

/* Buttons */
.hm-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

.hm-btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  padding: 14px 30px;
  border-radius: 100px;
  transition: all 0.25s ease;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.hm-btn-solid {
  background: var(--hm-gold);
  color: var(--hm-white);
  border: 1px solid var(--hm-gold);
}
.hm-btn-solid:hover {
  background: var(--hm-gold-2);
  border-color: var(--hm-gold-2);
}

.hm-btn-line {
  border: 1px solid var(--hm-line-2);
  color: var(--hm-ink);
  background: transparent;
}
.hm-btn-line:hover {
  border-color: var(--hm-gold);
  color: var(--hm-gold);
}

/* Hero Section */
.hm-hero {
  background: var(--hm-paper);
  padding: clamp(64px, 8vw, 110px) 0 clamp(54px, 6vw, 84px);
  border-bottom: 1px solid var(--hm-line);
}

.hm-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

.hm-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hm-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--hm-muted);
  background: var(--hm-white);
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--hm-line);
}
.hm-hero-pill strong {
  color: var(--hm-ink);
}

/* Stats Row */
.hm-stats-sec {
  padding: 0;
  margin-top: -34px;
  position: relative;
  z-index: 10;
}

.hm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--hm-line);
  gap: 1px;
  border: 1px solid var(--hm-line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(26, 23, 18, 0.05);
}

.hm-stat {
  background: var(--hm-white);
  padding: 30px 24px;
}

.hm-stat .n {
  font-family: var(--hm-serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  line-height: 1;
  color: var(--hm-ink);
  margin-bottom: 8px;
}
.hm-stat .n em {
  font-style: italic;
  color: var(--hm-gold);
}

.hm-stat .t {
  font-size: 13px;
  color: var(--hm-muted);
  line-height: 1.45;
}

/* Generic Section Styles */
.hm-section {
  padding: clamp(64px, 7.5vw, 104px) 0;
}
.hm-section-alt {
  background: var(--hm-paper);
}
.hm-section-gold {
  background: var(--hm-gold-soft);
}
.hm-section-dark {
  background: var(--hm-ink);
  color: var(--hm-white);
}
.hm-section-dark h2,
.hm-section-dark h3,
.hm-section-dark h4 {
  color: var(--hm-white);
}
.hm-section-dark .hm-label {
  color: var(--hm-gold-2);
}
.hm-section-dark p {
  color: rgba(255, 255, 255, 0.72);
}

.hm-head {
  max-width: 720px;
  margin-bottom: clamp(38px, 4.2vw, 56px);
}
.hm-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--hm-muted);
  margin-top: 14px;
}

/* Splits */
.hm-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.hm-split.reverse .hm-split-visual {
  order: 2;
}

.hm-checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 14px;
}
.hm-checklist li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
  color: var(--hm-ink);
}
.hm-checklist li::before {
  content: "✦";
  color: var(--hm-gold);
  font-size: 13px;
  flex-shrink: 0;
}

/* Cards Grid */
.hm-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.hm-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: 6px;
  padding: 32px 26px;
  transition: all 0.3s ease;
}
.hm-card:hover {
  transform: translateY(-3px);
  border-color: var(--hm-gold-2);
  box-shadow: 0 14px 32px rgba(168, 132, 47, 0.09);
}

.hm-card-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--hm-gold-2);
  display: grid;
  place-items: center;
  color: var(--hm-gold);
  font-size: 15px;
  margin-bottom: 20px;
}

.hm-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}
.hm-card p {
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Client Types Grid */
.hm-clients-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.hm-client-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: 6px;
  padding: 34px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hm-client-badge {
  display: inline-flex;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hm-gold);
  font-weight: 600;
  margin-bottom: 12px;
}
.hm-client-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}
.hm-client-pain {
  background: var(--hm-paper-2);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 13px;
  color: var(--hm-ink);
  margin: 14px 0 16px;
}
.hm-client-pain strong {
  color: var(--hm-gold);
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.hm-client-sol {
  font-size: 14px;
  color: var(--hm-muted);
  line-height: 1.6;
}

/* Production / Craft Technique Pills */
.hm-techniques {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.hm-tech-item {
  border: 1px solid var(--hm-line);
  background: var(--hm-white);
  border-radius: 6px;
  padding: 22px 20px;
}
.hm-tech-item h4 {
  font-size: 16px;
  margin-bottom: 8px;
}
.hm-tech-item p {
  font-size: 13px;
  margin-bottom: 0;
  line-height: 1.5;
}

/* Steps Process */
.hm-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}
.hm-step {
  border-top: 2px solid var(--hm-line);
  padding-top: 22px;
}
.hm-step-num {
  font-family: var(--hm-serif);
  font-size: 26px;
  color: var(--hm-gold);
  font-weight: 500;
  margin-bottom: 8px;
}
.hm-step h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.hm-step p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* Gallery & Scenes */
.hm-scene-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.hm-scene-card {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hm-scene-body {
  padding: 24px 22px;
}
.hm-scene-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.hm-scene-body p {
  font-size: 14px;
  margin-bottom: 0;
}

/* Certifications badges */
.hm-cert-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}
.hm-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 100px;
  background: rgba(168, 132, 47, 0.12);
  border: 1px solid var(--hm-gold);
  color: var(--hm-ink);
  font-size: 13px;
  font-weight: 500;
}

/* Inquiry Section & Form */
.hm-inquiry-box {
  background: var(--hm-white);
  border: 1px solid var(--hm-line);
  border-radius: 8px;
  padding: clamp(36px, 5vw, 64px);
  box-shadow: 0 16px 40px rgba(26, 23, 18, 0.04);
}

.hm-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hm-form-full {
  grid-column: 1 / -1;
}

.hm-field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--hm-ink);
  margin-bottom: 8px;
}
.hm-field label span {
  color: var(--hm-gold);
}
.hm-field input,
.hm-field select,
.hm-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--hm-line-2);
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
  background: var(--hm-paper);
  color: var(--hm-ink);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.hm-field input:focus,
.hm-field select:focus,
.hm-field textarea:focus {
  border-color: var(--hm-gold);
  background: var(--hm-white);
}

.hm-form-help {
  font-size: 12px;
  color: var(--hm-muted);
  margin-top: 6px;
}

.hm-form-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hm-line);
}

/* Responsive */
@media (max-width: 980px) {
  .hm-hero-grid,
  .hm-split,
  .hm-clients-grid,
  .hm-scene-grid {
    grid-template-columns: 1fr;
  }
  .hm-split.reverse .hm-split-visual {
    order: 0;
  }
  .hm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hm-stats {
    grid-template-columns: 1fr;
  }
  .hm-form-grid {
    grid-template-columns: 1fr;
  }
}
