/* ============================================
   Blackline Premium Solutions — Landing Puertas de Hierro
   ============================================ */

:root {
  --color-black: #0b0b0c;
  --color-black-soft: #161617;
  --color-cream: #f3f0ea;
  --color-white: #ffffff;
  --color-accent: #c6a063;
  --color-accent-dark: #a9834a;
  --color-text: #1a1a1a;
  --color-text-muted: #5b564c;
  --color-text-light: #eae6dc;
  --color-border: #e2ddd0;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  --container-width: 1180px;
  --radius: 4px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container-narrow { max-width: 780px; }

h1, h2, h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
}

h1 em, h2 em { font-style: italic; font-weight: 500; }

h2 { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 0.75rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }

.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
  font-weight: 600;
}
.eyebrow-dark { color: var(--color-accent-dark); }

.section-lead {
  max-width: 640px;
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin-bottom: 2.5rem;
}
.section-lead-light { color: var(--color-text-light); }

.section { padding: 5rem 0; }
.section-white { background: var(--color-white); }
.section-cream { background: var(--color-cream); }
.section-dark { background: var(--color-black); color: var(--color-text-light); }
.section-dark h2, .section-dark h3 { color: var(--color-white); }

.section-cta { margin-top: 2.5rem; }

/* ============ BOTONES ============ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .15s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }

.btn-accent { background: var(--color-accent); color: var(--color-black); }
.btn-accent:hover { background: var(--color-accent-dark); }

.btn-dark { background: var(--color-black); color: var(--color-white); }
.btn-dark:hover { background: var(--color-black-soft); }

.btn-outline-dark { background: transparent; color: var(--color-black); border-color: var(--color-black); }
.btn-outline-dark:hover { background: var(--color-black); color: var(--color-white); }

.btn-small { padding: 0.6rem 1.3rem; font-size: 0.85rem; }
.btn-full { width: 100%; margin-top: 0.5rem; }

/* ============ HEADER MÍNIMO ============ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-black);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.topbar-inner {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  max-width: 220px;
  filter: brightness(0) invert(1);
}
.logo-link { display: inline-flex; }

.topbar-actions { display: flex; align-items: center; gap: 1.25rem; }
.topbar-link {
  display: none;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}
.topbar-link .icon { width: 18px; height: 18px; fill: var(--color-accent); }

@media (min-width: 640px) {
  .topbar-link { display: inline-flex; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  color: var(--color-white);
  overflow: hidden;
  padding: 3rem 0 4rem;
}
.hero-media {
  position: absolute;
  inset: 0;
  background-color: var(--color-black);
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,11,12,0.55) 0%, rgba(11,11,12,0.75) 55%, rgba(11,11,12,0.92) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 760px; }

.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin-bottom: 1.25rem;
  color: var(--color-white);
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-light);
  max-width: 620px;
  margin-bottom: 1.75rem;
}
.hero-trustbar {
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  color: var(--color-accent);
  margin-bottom: 2rem;
  font-weight: 500;
}
.hero-trustbar .dot { margin: 0 0.6rem; color: rgba(255,255,255,0.35); }

.hero-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: rgba(255,255,255,0.08);
  padding: 0.9rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.15);
  max-width: 620px;
}
.hero-form input[type="text"],
.hero-form input[type="tel"] {
  flex: 1 1 180px;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.hero-form .btn { flex: 0 0 auto; white-space: nowrap; }
.hero-form-note { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 0.6rem; }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue svg { width: 16px; height: 16px; fill: currentColor; }

/* ============ PRODUCT GRID (PUERTAS DE HIERRO) ============ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.75rem;
}
.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.product-card img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  background-color: var(--color-border);
}
.product-card-body { padding: 1.25rem 1.4rem 1.5rem; }
.product-card-body p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ============ WHY GRID ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 2.5rem;
  margin-top: 2.5rem;
}
.why-icon { width: 42px; height: 42px; color: var(--color-accent); margin-bottom: 1rem; }
.why-card p { color: rgba(234,230,220,0.75); font-size: 0.95rem; }

/* ============ SEGMENT GRID ============ */
.segment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.segment-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  padding: 1.75rem;
  border-radius: var(--radius);
}
.segment-card p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ============ PROCESO ============ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}
.process-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.process-step p { color: var(--color-text-muted); font-size: 0.95rem; }

/* ============ SECUNDARIA VENTANAS ============ */
.secondary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.secondary-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--color-border);
  margin-bottom: 0.9rem;
}
.secondary-card p { color: var(--color-text-muted); font-size: 0.92rem; }

/* ============ GALERÍA ============ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); }
.gallery-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background-color: var(--color-black-soft);
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  display: flex;
  flex-direction: column;
}
.gallery-item figcaption strong { color: var(--color-white); font-family: var(--font-heading); font-size: 1.05rem; }
.gallery-item figcaption span { color: var(--color-accent); font-size: 0.85rem; }

/* ============ CATÁLOGO ============ */
.catalog-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.catalog-text p { color: var(--color-text-muted); margin-bottom: 1.75rem; max-width: 480px; }
.catalog-cover {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius);
  background-color: var(--color-border);
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
  margin: 0 auto;
}

@media (max-width: 800px) {
  .catalog-inner { grid-template-columns: 1fr; text-align: center; }
  .catalog-text p { margin-left: auto; margin-right: auto; }
}

/* ============ TESTIMONIOS ============ */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 2.5rem;
}
.testimonial-card {
  background: var(--color-cream);
  padding: 1.75rem;
  border-radius: var(--radius);
  border-left: 3px solid var(--color-accent);
}
.testimonial-card p { font-style: italic; color: var(--color-text); margin-bottom: 1rem; }
.testimonial-card footer { font-size: 0.85rem; color: var(--color-text-muted); font-weight: 600; }

/* ============ FAQ ============ */
.faq-list { margin-top: 2rem; }
.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  list-style: none;
  position: relative;
  padding-right: 1.5rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--color-accent);
  font-size: 1.3rem;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { margin-top: 0.85rem; color: var(--color-text-muted); }

/* ============ CONTACTO / FORMULARIO PRINCIPAL ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 3rem;
  margin-top: 2.5rem;
  align-items: start;
}
.lead-form {
  background: var(--color-white);
  color: var(--color-text);
  padding: 2rem;
  border-radius: var(--radius);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-field { margin-bottom: 1rem; }
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--color-text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--color-white);
  color: var(--color-text);
}
.form-field textarea { resize: vertical; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 500;
}
#form-success-message { background: #e7f3ea; color: #1e5b34; }
.form-status-error { background: #fbe9e7; color: #8a2c22; }

.contact-alt {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 2rem;
}
.contact-alt h3 { color: var(--color-white); margin-bottom: 1.25rem; }
.contact-alt-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--color-text-light);
  text-decoration: none;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 500;
}
.contact-alt-link:last-child { border-bottom: none; }
.contact-alt-link .icon { width: 20px; height: 20px; fill: none; stroke: var(--color-accent); }
.contact-alt-link .icon path { fill: var(--color-accent); stroke: none; }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ============ FOOTER ============ */
.footer { background: var(--color-black-soft); color: rgba(234,230,220,0.8); padding: 4rem 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { height: 32px; margin-bottom: 1rem; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 { color: var(--color-white); font-family: var(--font-body); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; margin-bottom: 1rem; }
.footer-col p { font-size: 0.92rem; margin-bottom: 0.5rem; }
.footer-col a { color: rgba(234,230,220,0.8); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent); }

.footer-social { display: flex; gap: 0.75rem; margin-top: 1.25rem; }
.footer-social a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--color-text-light);
}
.footer-social svg { width: 18px; height: 18px; fill: currentColor; }
.footer-social a:hover { background: var(--color-accent); color: var(--color-black); }

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.5rem 0;
  font-size: 0.82rem;
}
.footer-bottom-inner a { color: rgba(234,230,220,0.6); }

@media (max-width: 800px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ============ CTA STICKY MÓVIL ============ */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 60;
  display: flex;
  background: var(--color-black);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mobile-cta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0 0.75rem;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.mobile-cta-item .icon { width: 20px; height: 20px; fill: var(--color-text-light); }
.mobile-cta-item.mobile-cta-accent { background: var(--color-accent); color: var(--color-black); }
.mobile-cta-item.mobile-cta-accent .icon { fill: none; stroke: var(--color-black); }

@media (min-width: 900px) {
  .mobile-sticky-cta { display: none; }
}
@media (max-width: 899px) {
  body { padding-bottom: 58px; }
}

/* ============ RESPONSIVE GENERAL ============ */
@media (max-width: 640px) {
  .section { padding: 3.25rem 0; }
  .hero { min-height: 100vh; padding-top: 5.5rem; }
  .hero-form { flex-direction: column; }
  .hero-form .btn { width: 100%; }
}
