/* LPDO Inicio Premium Corrección
   Rev 1.14.1
   Corrige márgenes, hero y anclas sin eliminar la mejora premium.
*/

:root {
  --lpdo-header-h: 86px;
}

/* Anclas correctas con header sticky */
#inicio,
#pedidos,
#carta,
#historia,
#ubicacion,
#contacto {
  scroll-margin-top: calc(var(--lpdo-header-h) + 22px);
}

/* Header: mantener limpio, sin crecer demasiado */
.site-header {
  min-height: var(--lpdo-header-h) !important;
}

.site-header .brand img {
  width: 76px !important;
  height: 54px !important;
}

.header-cta {
  padding: .88rem 1.12rem !important;
  font-size: .88rem !important;
}

/* Hero: premium, pero más controlado */
.hero {
  min-height: clamp(560px, 74vh, 760px) !important;
}

.hero-content {
  width: min(1120px, calc(100% - 42px)) !important;
  padding-top: 58px !important;
  transform: none !important;
}

.hero-content h1 {
  max-width: 760px !important;
  font-size: clamp(3.7rem, 7vw, 6.7rem) !important;
  line-height: .92 !important;
  letter-spacing: -.055em !important;
  margin-top: 22px !important;
  margin-bottom: 18px !important;
}

.hero-subtitle-premium {
  max-width: 560px !important;
  margin-bottom: 22px !important;
  font-size: clamp(1rem, 1.28vw, 1.18rem) !important;
}

.hero-actions {
  margin-top: 12px !important;
}

/* Secciones: recuperar aire elegante sin exagerar */
.orders-section,
.products-section,
.story-wrap {
  padding-top: clamp(58px, 6.2vw, 88px) !important;
  padding-bottom: clamp(58px, 6.2vw, 88px) !important;
}

.section-heading,
.orders-section .section-heading,
.products-section .section-heading {
  margin-bottom: clamp(24px, 3.8vw, 42px) !important;
}

.section-heading h2,
.story-copy h2 {
  line-height: .96 !important;
}

/* Pedidos: centrado y sin tanto bloque gigante */
.orders-grid {
  max-width: 1120px !important;
  margin-inline: auto !important;
  gap: clamp(14px, 1.4vw, 20px) !important;
}

.order-card {
  min-height: 158px !important;
  padding: 22px 18px !important;
}

/* Carta destacada: que no quede cortada ni con margen raro */
.products-section {
  position: relative;
}

.products-grid {
  max-width: 1120px !important;
  margin-inline: auto !important;
}

.lpdo-ver-carta-completa {
  margin-top: 30px !important;
}

/* Info final: menos aplastada */
.story-wrap .info-grid,
.info-grid {
  gap: 18px !important;
}

.info-card {
  min-height: 118px !important;
}

/* Footer: mantener estilo claro aprobado */
.site-footer {
  margin-top: 0 !important;
}

/* Mobile */
@media (max-width: 920px) {
  :root {
    --lpdo-header-h: 74px;
  }

  #inicio,
  #pedidos,
  #carta,
  #historia,
  #ubicacion,
  #contacto {
    scroll-margin-top: calc(var(--lpdo-header-h) + 16px);
  }

  .site-header {
    min-height: var(--lpdo-header-h) !important;
  }

  .site-header .brand img {
    width: 58px !important;
    height: 44px !important;
  }

  .hero {
    min-height: 650px !important;
  }

  .hero-content {
    width: min(100% - 30px, 620px) !important;
    padding-top: 44px !important;
  }

  .hero-content h1 {
    max-width: 100% !important;
    font-size: clamp(3.25rem, 15vw, 5.25rem) !important;
    line-height: .9 !important;
  }

  .hero-subtitle-premium {
    max-width: 100% !important;
    font-size: .98rem !important;
  }

  .orders-section,
  .products-section,
  .story-wrap {
    padding-top: 54px !important;
    padding-bottom: 54px !important;
  }

  .orders-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .order-card {
    min-height: 138px !important;
    padding: 16px 12px !important;
  }
}
