
body.amoremia-header-active .wp-site-blocks > header,
body.amoremia-header-active header.wp-block-template-part,
body.amoremia-header-active .wp-block-template-part[area="header"]{display:none!important}
body.amoremia-footer-active .wp-site-blocks > footer,
body.amoremia-footer-active footer.wp-block-template-part,
body.amoremia-footer-active .wp-block-template-part[area="footer"]{display:none!important}

.am-fixed-header-wrap{
  position:fixed!important;
  z-index:999999!important;
  top:18px;
  left:0;
  right:0;
  pointer-events:none;
}
.admin-bar .am-fixed-header-wrap{top:50px}

.am-fixed-header{
  position:relative;
  pointer-events:auto;
  width:min(1320px,calc(100% - 40px));
  margin:auto;
  min-height:78px;
  padding:6px 16px 6px 18px;
  border:1px solid rgba(255,255,255,.16);
  border-radius:14px;
  background:rgba(31,23,18,.72);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  box-shadow:0 12px 34px rgba(0,0,0,.16);
  display:flex;
  align-items:center;
  gap:24px;
}

.am-header-brand{
  display:flex;
  align-items:center;
  height:64px;
  flex:0 0 auto;
}
.am-header-brand img{
  display:block!important;
  width:auto!important;
  height:64px!important;
  max-height:64px!important;
  max-width:360px!important;
  object-fit:contain;
}

.am-desktop-nav{
  display:flex;
  gap:24px;
  align-items:center;
  margin-left:auto;
}
.am-desktop-nav a{
  color:#fff!important;
  text-decoration:none!important;
  font-size:14px;
  white-space:nowrap;
}
.am-header-actions{
  display:flex;
  align-items:center;
  gap:12px;
}
.am-header-icon{
  color:#fff!important;
  text-decoration:none!important;
  font-size:18px;
}

.am-hamburger{
  display:none;
  width:42px;
  height:42px;
  border:0;
  background:transparent;
  padding:8px;
  cursor:pointer;
}
.am-hamburger span{
  display:block;
  height:2px;
  background:#fff;
  margin:5px 0;
  border-radius:2px;
}
.am-hamburger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.am-hamburger[aria-expanded="true"] span:nth-child(2){opacity:0}
.am-hamburger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

.am-mobile-menu{
  display:none;
  position:absolute;
  left:12px;
  right:12px;
  top:calc(100% + 8px);
  padding:12px;
  border-radius:12px;
  background:rgba(31,23,18,.98);
  border:1px solid rgba(255,255,255,.16);
  box-shadow:0 14px 30px rgba(0,0,0,.22);
}
.am-mobile-menu.open{display:flex!important;flex-direction:column}
.am-mobile-menu a{
  color:#fff!important;
  text-decoration:none!important;
  padding:13px 10px;
  border-bottom:1px solid rgba(255,255,255,.10);
}
.am-mobile-menu a:last-child{border-bottom:0}

.amhome{color:var(--am-espresso);font-family:Inter,Arial,sans-serif}
.amhome *{box-sizing:border-box}
.amwrap{width:min(1180px,calc(100% - 48px));margin:auto}

.amhero{
  position:relative;
  min-height:720px;
  background-size:cover;
  background-repeat:no-repeat;
  display:flex;
  align-items:flex-end;
  color:#fff;
}
.am-hero-host{position:relative!important;}
.am-hero-host > .am-hero-logo{z-index:20;}
.am-hero-logo{
  position:absolute;
  top:20%;
  left:50%;
  transform:translate(-50%,0) scale(1);
  width:min(27vw,520px);
  max-width:27vw;
  z-index:5;
  pointer-events:none;
  isolation:isolate;
}
.am-hero-logo::before{
  content:"";
  position:absolute;
  z-index:-1;
  left:50%;
  top:50%;
  width:120%;
  height:145%;
  transform:translate(-50%,-50%);
  background:radial-gradient(ellipse at center,rgba(255,222,157,.20) 0%,rgba(215,166,88,.10) 38%,rgba(255,255,255,0) 72%);
  filter:blur(18px);
  opacity:.92;
}
.am-hero-logo img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:contain;
  filter:
    drop-shadow(0 0 2px rgba(255,244,214,.95))
    drop-shadow(0 0 10px rgba(255,214,132,.58))
    drop-shadow(0 5px 18px rgba(43,24,13,.38));
}
.am-hero-logo.am-logo-animate{opacity:1;}
.am-hero-logo.am-logo-animate.am-logo-pending{
  opacity:0;
  transform:translate(-50%,10px) scale(.88);
  filter:blur(5px);
}
.am-hero-logo.am-logo-animate.am-logo-pending.is-visible{
  animation:amLogoEntrance 2.15s cubic-bezier(.2,.72,.24,1) .12s forwards;
}
.am-hero-logo.am-logo-visible{
  opacity:1;
}
@keyframes amLogoEntrance{
  0%{opacity:0;transform:translate(-50%,14px) scale(.86);filter:blur(6px)}
  42%{opacity:.82;filter:blur(1.2px)}
  72%{opacity:1;transform:translate(-50%,0) scale(1.035);filter:blur(0)}
  100%{opacity:1;transform:translate(-50%,0) scale(1);filter:blur(0)}
}
@media (prefers-reduced-motion: reduce){
  .am-hero-logo.am-logo-animate{opacity:1;transform:translate(-50%,0) scale(1);filter:none}
  .am-hero-logo.am-logo-animate.is-visible{animation:none}
}
.amhero-copy{padding-bottom:75px}
.amhero h1{
  font-family:"Noto Serif Display",Georgia,serif;
  font-weight:500;
  font-size:clamp(44px,6vw,76px);
  line-height:1.08;
  margin:0 0 15px;
  max-width:700px;
}
.amhero p{font-size:18px;line-height:1.6;max-width:650px}
.ambtn{
  display:inline-block;
  background:var(--am-ivory);
  color:var(--am-espresso)!important;
  padding:14px 22px;
  text-decoration:none!important;
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.08em;
  margin-top:12px;
}

.amsection{padding:90px 0}
.ivory{background:var(--am-ivory)}
.dark{background:var(--am-espresso);color:var(--am-ivory)}
.amsection header{max-width:720px;margin-bottom:42px}
.amsection h2{
  font-family:"Noto Serif Display",Georgia,serif;
  font-weight:500;
  font-size:clamp(32px,4vw,52px);
  line-height:1.08;
  margin:0 0 12px;
}
.amsection header p{font-size:17px;line-height:1.65}
.amexp{display:grid;grid-template-columns:1fr 1fr;gap:28px}
.amexp>div:first-child img,.amph{width:100%;height:100%;min-height:520px;object-fit:cover;background:#e8ded1}
.amvalues{display:flex;flex-direction:column;gap:12px}
.amvalues article{display:flex;gap:18px;padding:26px;flex:1;background:#E8D7C2}
.amvalues article:nth-child(2){background:var(--am-sand)}
.amvalues article:nth-child(3){background:var(--am-terra)}
.amvalues span{font:30px Georgia;color:var(--am-bronze)}
.amvalues h3{font:23px Georgia;margin:0 0 7px}
.amvalues p{margin:0;line-height:1.5}

.amworlds,.amcards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.amworlds>a{height:480px;position:relative;overflow:hidden;color:#fff!important;text-decoration:none!important;background:#ddd}
.amworlds img{width:100%;height:100%;object-fit:cover}
.amworlds>a:after{content:"";position:absolute;inset:45% 0 0;background:linear-gradient(transparent,rgba(20,12,7,.8))}
.amworlds>a>div{position:absolute;z-index:2;left:25px;bottom:22px}
.amworlds h3{font:30px Georgia;margin:4px 0}
.amgallery{display:grid;grid-template-columns:repeat(3,1fr);grid-auto-rows:290px;gap:10px}
.amgallery img,.amgallery .amph{width:100%;height:100%;min-height:0;object-fit:cover}
.amcards article{background:#fff}
.amcards a{color:var(--am-espresso)!important;text-decoration:none!important}
.amcards img{width:100%;height:350px;object-fit:cover}
.ambody{padding:18px}
.ambody h3{font:23px Georgia;margin:4px 0 10px}

.amfoot{background:#F5EFE6;color:#3A2418;text-align:center;padding:58px 0 42px}
.am-socials{display:flex;justify-content:center;align-items:center;gap:16px;margin-bottom:22px}
.am-social-link{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;color:#3A2418!important;text-decoration:none!important;margin:0!important;transition:transform .18s ease,opacity .18s ease}
.am-social-link:hover{transform:translateY(-1px);opacity:.78}
.am-social-link svg{display:block;width:22px;height:22px}
.am-social-disabled{opacity:.42;cursor:default}
.am-footer-brand{display:inline-block;margin:2px auto 0!important;color:inherit!important}
.am-footer-brand img{display:block;max-width:230px;width:min(230px,65vw);height:auto;margin:auto}
.amfoot small{display:block;margin-top:20px;opacity:.6}

@media(max-width:781px){
  .am-fixed-header-wrap{top:10px}
  .admin-bar .am-fixed-header-wrap{top:56px}
  .am-fixed-header{
    width:calc(100% - 18px);
    min-height:72px;
    padding:6px 10px 6px 12px;
    gap:10px;
  }
  .am-header-brand{
    height:56px;
    flex:1 1 auto;
    min-width:0;
  }
  .am-header-brand img{
    height:54px!important;
    max-height:54px!important;
    max-width:52vw!important;
  }
  .am-desktop-nav{display:none}
  .am-header-actions{margin-left:auto;gap:10px}
  .am-hamburger{display:block}
  .am-hero-logo{
    top:17%;
    width:min(72vw,430px);
    max-width:72vw;
  }
  .am-hero-logo::before{width:116%;height:138%;filter:blur(14px)}
  .amwrap{width:calc(100% - 28px)}
  .amhero{min-height:680px}
  .amhero-copy{padding-bottom:45px}
  .amsection{padding:62px 0}
  .amexp,.amworlds,.amcards{grid-template-columns:1fr}
  .amexp>div:first-child img,.amph{min-height:390px}
  .amworlds>a{height:390px}
  .amgallery{grid-template-columns:1fr 1fr;grid-auto-rows:210px}
  .amcards img{height:330px}
}

/* === Colecciones AMOREMÍA v2.9 === */
.am-collections-section{background:#fffaf4;padding-top:84px;padding-bottom:72px}
.am-collections-header{text-align:center;max-width:760px!important;margin:0 auto 34px!important}
.am-collections-header small,.am-products-header small{display:block;font-size:11px;letter-spacing:.28em;font-weight:600;color:var(--am-bronze);margin-bottom:10px}
.am-collections-header p{max-width:680px;margin:0 auto}
.am-collections-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:3px}
.am-collection-card{position:relative;min-height:500px;background-size:cover;background-position:center;display:flex;align-items:flex-end;overflow:hidden}
.am-collection-card:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(44,27,18,.02) 18%,rgba(44,27,18,.18) 48%,rgba(30,18,12,.83) 100%);transition:background .3s ease}
.am-collection-card:hover:before{background:linear-gradient(180deg,rgba(44,27,18,.02) 12%,rgba(44,27,18,.12) 42%,rgba(30,18,12,.9) 100%)}
.am-collection-card .am-collection-copy{position:relative;z-index:2;color:#fff;padding:30px 26px 28px;width:100%}
.am-collection-card h3{font-family:"Noto Serif Display",Georgia,serif;font-size:clamp(29px,2.5vw,40px);line-height:1.02;font-weight:500;margin:0 0 12px}
.am-collection-card p{font-size:15px;line-height:1.5;margin:0 0 18px;max-width:290px;color:rgba(255,255,255,.93)}
.am-collection-card a{display:inline-flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.72);padding:10px 14px;color:#fff!important;text-decoration:none!important;font-size:12px;letter-spacing:.04em;background:rgba(42,25,16,.22);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}
.am-collection-card a:hover{background:rgba(245,239,230,.94);color:var(--am-espresso)!important}
.am-collection-card a span{font-size:18px;line-height:1}

/* === Productos enlazados a WooCommerce / AMOREMÍA Catálogo === */
.am-featured-products{padding-top:76px}
.am-products-header{text-align:center;max-width:760px!important;margin:0 auto 36px!important}
.am-products-header p{max-width:660px;margin:0 auto}
.am-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px 18px}
.am-product-card{background:transparent;min-width:0}
.am-product-image{display:block;overflow:hidden;background:#ede3d6;aspect-ratio:1/1;text-decoration:none!important}
.am-product-image img{display:block;width:100%!important;height:100%!important;object-fit:cover;transition:transform .4s ease}
.am-product-card:hover .am-product-image img{transform:scale(1.025)}
.am-product-body{padding:14px 2px 0;position:relative;min-height:112px}
.am-product-body>a{text-decoration:none!important;color:var(--am-espresso)!important}
.am-product-body h3{font-family:"Noto Serif Display",Georgia,serif;font-size:20px;font-weight:500;line-height:1.2;margin:0 0 6px}
.am-product-price{font-size:14px;min-height:24px}
.am-product-price del{opacity:.48;margin-right:6px}
.am-product-price ins{text-decoration:none;font-weight:600}
.am-product-cart{display:inline-block;margin-top:10px;background:var(--am-button);color:#fff!important;text-decoration:none!important;padding:9px 13px;font-size:11px;text-transform:uppercase;letter-spacing:.08em;border:1px solid var(--am-button)}
.am-product-cart:hover{background:transparent;color:var(--am-button)!important}
.am-product-cart.is-demo{background:transparent;color:var(--am-bronze)!important;border-color:var(--am-sand);cursor:default}

@media(max-width:1024px){
  .am-collections-grid{grid-template-columns:repeat(2,1fr);gap:4px}
  .am-collection-card{min-height:440px}
  .am-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:781px){
  .am-collections-section{padding-top:60px;padding-bottom:52px}
  .am-collections-grid{grid-template-columns:1fr;gap:8px}
  .am-collection-card{min-height:430px}
  .am-collection-card .am-collection-copy{padding:28px 22px}
  .am-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 10px}
  .am-product-body h3{font-size:17px}
  .am-product-cart{font-size:10px;padding:8px 10px}
}
@media(max-width:520px){
  .am-product-grid{grid-template-columns:1fr 1fr}
  .am-product-body{min-height:125px}
}

/* Colecciones page */
.am-collections-page{padding-top:140px;padding-bottom:80px;background:var(--am-ivory)}
.am-collections-page .am-collections-header{text-align:center;max-width:760px;margin:0 auto 36px}
.am-collections-page .am-collections-header h1{font-size:clamp(40px,5vw,68px);margin:8px 0 12px;color:var(--am-espresso)}
@media(max-width:781px){.am-collections-page{padding-top:110px}}
/* 2.9.2 — Collection landing pages */
.am-collections-page,.am-collection-landing{width:100vw!important;max-width:none!important;margin-left:calc(50% - 50vw)!important;margin-right:calc(50% - 50vw)!important}
.am-collections-page>.amwrap{width:min(1420px,calc(100% - 64px))!important;max-width:none!important}
.am-collections-page .am-collections-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:6px!important}
.am-collections-page .am-collection-card{min-height:560px!important}
.am-collection-landing{background:var(--am-ivory)}
.am-collection-hero{min-height:620px;background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:90px max(6vw,32px)}
.am-collection-hero-copy{max-width:650px;color:#fff;padding-bottom:30px}
.am-collection-hero-copy small{letter-spacing:.28em;font-size:11px}.am-collection-hero-copy h1{font-size:clamp(52px,7vw,92px);line-height:.95;margin:14px 0 20px;color:#fff}.am-collection-hero-copy p{font-size:20px;line-height:1.55;max-width:600px}.am-collection-hero-copy a{display:inline-block;margin-top:18px;border:1px solid rgba(255,255,255,.75);padding:14px 20px;color:#fff;text-decoration:none}
.am-collection-products{padding-top:80px;padding-bottom:90px}.am-collection-products>header{text-align:center;max-width:700px;margin:0 auto 38px}.am-collection-products>header small{letter-spacing:.28em;color:var(--am-bronze)}.am-collection-products>header h2{font-size:clamp(38px,5vw,62px);margin:8px 0 10px}.am-demo-note{text-align:center;margin-top:28px;color:#735b4b;font-size:13px}
body.page-parent .entry-title,body.page-child .entry-title{display:none}
@media(max-width:900px){.am-collections-page>.amwrap{width:calc(100% - 28px)!important}.am-collections-page .am-collections-grid{grid-template-columns:repeat(2,1fr)!important}.am-collection-hero{min-height:520px;padding:70px 28px}.am-collection-hero-copy p{font-size:17px}}
@media(max-width:620px){.am-collections-page .am-collections-grid{grid-template-columns:1fr!important}.am-collections-page .am-collection-card{min-height:480px!important}}
