:root {
  --mensaje-ink: #26231f;
  --mensaje-cream: #f8f1e5;
  --mensaje-paper: #fffdf8;
  --mensaje-orange: #e66d21;
  --mensaje-orange-dark: #b94b0e;
  --mensaje-green: #315a3a;
  --mensaje-line: rgba(38, 35, 31, .13);
}

html { scroll-behavior: smooth; }
body.site { background: var(--mensaje-paper); color: var(--mensaje-ink); }
/* La portada usa su propia navegación. No ocultar el componente globalmente:
   catálogo, producto y compra necesitan el encabezado y el contenido Joomla. */
body:has(.mensaje-home) .container-header,
body:has(.mensaje-home) .container-component,
body:has(.mensaje-home) .container-sidebar-right { display: none !important; }
body:not(:has(.mensaje-home)) { background: var(--mensaje-paper); }
body:not(:has(.mensaje-home)) .container-header {
  align-items: center;
  background: rgba(255,253,248,.97);
  border-bottom: 1px solid var(--mensaje-line);
  box-shadow: 0 4px 20px rgba(50,35,20,.05);
  display: flex;
  gap: 28px;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 72px);
}
body:not(:has(.mensaje-home)) .container-header .grid-child { margin: 0; padding: 0; }
body:not(:has(.mensaje-home)) .container-header .navbar-brand { font-family: Georgia, serif; font-weight: 700; }
body:not(:has(.mensaje-home)) .container-header .container-nav { margin-left: auto; }
body:not(:has(.mensaje-home)) .container-header .mod-menu { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; }
body:not(:has(.mensaje-home)) .container-header .mod-menu a { color: var(--mensaje-ink); font-weight: 700; text-decoration: none; }
body:not(:has(.mensaje-home)) .container-header .mod-menu a:hover,
body:not(:has(.mensaje-home)) .container-header .mod-menu .active > a { color: var(--mensaje-orange-dark); }
body:not(:has(.mensaje-home)) .container-topbar { font-size: .92rem; }
body:not(:has(.mensaje-home)) .container-component {
  background: var(--mensaje-paper);
  display: block;
  margin: 0 auto;
  max-width: 1440px;
  min-height: 62vh;
  padding: clamp(30px, 5vw, 70px) clamp(20px, 5vw, 72px);
  width: 100%;
}
body:not(:has(.mensaje-home)) .container-sidebar-right { display: none !important; }
body:not(:has(.mensaje-home)) .hikashop_products_listing,
body:not(:has(.mensaje-home)) .hikashop_product_page { margin: 0 auto; max-width: 1280px; }
body:not(:has(.mensaje-home)) .hikashop_product_page { background: #fff; border: 1px solid var(--mensaje-line); border-radius: 18px; padding: clamp(20px, 4vw, 48px); }
.site-grid { display: block; }
.grid-child.container-top-a { max-width: none; padding: 0; }
.el-mensaje-home { margin: 0 !important; padding: 0 !important; }
.mensaje-home { overflow: hidden; font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.mensaje-home h1, .mensaje-home h2, .mensaje-home h3 { color: var(--mensaje-ink); font-family: Georgia, "Times New Roman", serif; font-weight: 700; line-height: 1.02; }
.mensaje-home p { line-height: 1.7; }
.mensaje-nav { align-items: center; background: rgba(255,253,248,.97); border-bottom: 1px solid var(--mensaje-line); box-shadow: 0 4px 18px rgba(50,35,20,.04); display: flex; gap: 26px; justify-content: space-between; padding: 22px clamp(24px, 6vw, 96px); position: relative; z-index: 10; }
.mensaje-wordmark { color: var(--mensaje-ink); font-family: Georgia, serif; font-size: clamp(1.35rem, 2.2vw, 1.85rem); font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap; }
.mensaje-wordmark span { color: var(--mensaje-orange); font-style: italic; }
.mensaje-nav-links { align-items: center; display: flex; flex-wrap: wrap; gap: 8px clamp(9px, 1.4vw, 20px); justify-content: flex-end; }
.mensaje-nav-links a { color: var(--mensaje-ink); font-size: .78rem; font-weight: 800; letter-spacing: .06em; padding: 8px 0; text-decoration: none; text-transform: uppercase; white-space: nowrap; }
.mensaje-nav-links a:hover { color: var(--mensaje-orange-dark); }
.mensaje-nav-cta { border: 1px solid var(--mensaje-orange); border-radius: 999px; padding: 9px 17px !important; }
.mensaje-hero { background: var(--mensaje-cream); display: grid; grid-template-columns: 1.08fr .92fr; min-height: 720px; }
.mensaje-hero-copy { align-self: center; padding: clamp(70px, 9vw, 130px) clamp(30px, 7vw, 110px); }
.mensaje-eyebrow { color: var(--mensaje-orange-dark); font-size: .76rem; font-weight: 800; letter-spacing: .16em; margin: 0 0 18px; text-transform: uppercase; }
.mensaje-hero h1 { font-size: clamp(3rem, 6vw, 6rem); margin: 0; max-width: 900px; }
.mensaje-lead { font-size: clamp(1.06rem, 1.5vw, 1.32rem); margin: 30px 0; max-width: 700px; }
.mensaje-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0; }
.mensaje-button { border-radius: 999px; display: inline-flex; font-weight: 800; justify-content: center; padding: 14px 24px; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.mensaje-button:hover { transform: translateY(-2px); }
.mensaje-button-primary { background: var(--mensaje-orange); color: white; }
.mensaje-button-primary:hover { background: var(--mensaje-orange-dark); color: white; }
.mensaje-button-light { border: 1px solid var(--mensaje-line); color: var(--mensaje-ink); }
.mensaje-benefits { display: flex; flex-wrap: wrap; gap: 10px 25px; list-style: none; margin: 28px 0 0; padding: 0; }
.mensaje-benefits li { font-size: .88rem; font-weight: 700; }
.mensaje-benefits li::before { color: var(--mensaje-green); content: "✓"; margin-right: 7px; }
.mensaje-hero-image { min-height: 560px; position: relative; }
.mensaje-hero-image::after { background: linear-gradient(90deg, rgba(248,241,229,.38), transparent 25%); content: ""; inset: 0; position: absolute; }
.mensaje-hero-image img { height: 100%; object-fit: cover; width: 100%; }
.mensaje-seal { align-items: center; background: var(--mensaje-green); border: 7px solid rgba(255,255,255,.7); border-radius: 50%; bottom: 38px; color: white; display: flex; flex-direction: column; height: 150px; justify-content: center; left: -75px; position: absolute; text-align: center; width: 150px; z-index: 2; }
.mensaje-seal strong { font-family: Georgia, serif; font-size: 2.3rem; line-height: 1; }
.mensaje-seal span { font-size: .75rem; max-width: 85px; }
.mensaje-section { padding: clamp(75px, 9vw, 130px) clamp(24px, 7vw, 110px); }
.mensaje-section-heading { align-items: end; display: flex; gap: 50px; justify-content: space-between; margin: 0 auto 48px; max-width: 1420px; }
.mensaje-section-heading h2, .mensaje-story h2, .mensaje-contact h2 { font-size: clamp(2.3rem, 4vw, 4.3rem); margin: 0; }
.mensaje-section-heading > p { max-width: 440px; }
.mensaje-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); margin: auto; max-width: 1420px; }
.mensaje-card { background: white; border: 1px solid var(--mensaje-line); border-radius: 20px; box-shadow: 0 16px 45px rgba(50,35,20,.07); min-height: 380px; overflow: hidden; }
.mensaje-card-featured { grid-row: span 2; }
.mensaje-card img { height: 210px; object-fit: cover; width: 100%; }
.mensaje-card-featured img { height: 470px; }
.mensaje-card div { padding: 25px; }
.mensaje-card span { color: var(--mensaje-orange-dark); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.mensaje-card h3 { font-size: 2rem; margin: 8px 0 10px; }
.mensaje-card p { margin: 0; }
.mensaje-story { background: var(--mensaje-green); color: white; display: grid; grid-template-columns: 1fr 1fr; }
.mensaje-story-image { min-height: 650px; }
.mensaje-story-image img { height: 100%; object-fit: cover; width: 100%; }
.mensaje-story-copy { align-self: center; padding: clamp(60px, 8vw, 120px); }
.mensaje-story-copy h2 { color: white; margin-bottom: 30px; }
.mensaje-story-copy .mensaje-eyebrow { color: #ffd39c; }
.mensaje-story-copy p { font-size: 1.06rem; }
.mensaje-contact { background: #efbc64; padding: clamp(80px, 10vw, 150px) 24px; text-align: center; }
.mensaje-contact h2 { margin: 0 auto 25px; max-width: 1050px; }
.mensaje-contact > p:not(.mensaje-eyebrow) { font-size: 1.12rem; margin: 0 auto 30px; max-width: 700px; }
.mensaje-contact small { display: block; margin: 20px auto 0; opacity: .72; }
.mensaje-footer { align-items: center; background: var(--mensaje-ink); color: white; display: flex; gap: 25px; justify-content: space-between; padding: 36px clamp(24px, 7vw, 110px); }
.mensaje-footer span { opacity: .68; }
.mensaje-footer a { color: white; }

@media (max-width: 900px) {
  body:not(:has(.mensaje-home)) .container-header { align-items: flex-start; flex-direction: column; gap: 12px; }
  body:not(:has(.mensaje-home)) .container-header .container-nav { margin-left: 0; }
  .mensaje-nav { align-items: flex-start; flex-direction: column; gap: 16px; }
  .mensaje-nav-links { justify-content: flex-start; }
  .mensaje-hero, .mensaje-story { grid-template-columns: 1fr; }
  .mensaje-hero-image { min-height: 440px; }
  .mensaje-seal { bottom: auto; left: auto; right: 24px; top: -70px; }
  .mensaje-grid { grid-template-columns: 1fr 1fr; }
  .mensaje-card-featured { grid-column: span 2; grid-row: auto; }
  .mensaje-card-featured img { height: 360px; }
  .mensaje-section-heading { align-items: start; flex-direction: column; gap: 15px; }
}

@media (max-width: 600px) {
  .mensaje-nav { padding: 18px 24px; }
  .mensaje-nav-links { gap: 4px 16px; }
  .mensaje-nav-links a { font-size: .72rem; }
  .mensaje-nav-links a:nth-of-type(n+5):not(.mensaje-nav-cta) { display: none; }
  .mensaje-hero { min-height: 0; }
  .mensaje-hero-copy { padding-bottom: 100px; }
  .mensaje-hero h1 { font-size: 2.75rem; }
  .mensaje-grid { grid-template-columns: 1fr; }
  .mensaje-card-featured { grid-column: auto; }
  .mensaje-card-featured img, .mensaje-card img { height: 260px; }
  .mensaje-story-image { min-height: 420px; }
  .mensaje-footer { align-items: flex-start; flex-direction: column; }
}
