/*
Theme Name: MAVUNIO
Theme URI: https://mavunio.com/
Author: MAVUNIO
Description: Tema ligero y optimizado para la tienda de mascotas MAVUNIO.
Version: 1.0.0
Requires at least: 6.6
Requires PHP: 8.1
Text Domain: mavunio
*/

:root {
  --mav-navy: #0d315b;
  --mav-navy-deep: #08223f;
  --mav-coral: #ff7864;
  --mav-coral-soft: #fff0eb;
  --mav-cream: #fffaf4;
  --mav-sand: #f4eee6;
  --mav-ink: #173047;
  --mav-muted: #647487;
  --mav-white: #ffffff;
  --mav-border: #e9e3dc;
  --mav-radius: 22px;
  --mav-shadow: 0 18px 50px rgba(13, 49, 91, 0.10);
  --mav-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--mav-ink);
  background: var(--mav-white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--mav-navy); text-decoration: none; }
a:hover { color: var(--mav-coral); }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid rgba(255, 120, 100, .45); outline-offset: 3px; }

.mav-container { width: min(calc(100% - 40px), var(--mav-width)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

.mav-announcement { background: var(--mav-navy-deep); color: var(--mav-white); font-size: 13px; letter-spacing: .02em; }
.mav-announcement .mav-container { min-height: 36px; display: flex; align-items: center; justify-content: center; gap: 22px; }
.mav-announcement span { opacity: .92; }
.mav-announcement i { color: var(--mav-coral); font-style: normal; }

.mav-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); border-bottom: 1px solid rgba(233,227,220,.85); backdrop-filter: blur(14px); }
.mav-header-row { min-height: 82px; display: grid; grid-template-columns: 210px 1fr auto; align-items: center; gap: 28px; }
.mav-brand { display: inline-flex; align-items: center; width: 190px; }
.mav-brand img, .custom-logo { display: block; max-width: 190px; max-height: 58px; width: auto; }
.mav-nav ul { display: flex; justify-content: center; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.mav-nav a { color: var(--mav-ink); font-size: 15px; font-weight: 650; }
.mav-nav .current-menu-item > a, .mav-nav a:hover { color: var(--mav-coral); }
.mav-actions { display: flex; align-items: center; gap: 10px; }
.mav-icon-link { min-width: 43px; height: 43px; padding: 0 13px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: var(--mav-navy); background: var(--mav-cream); border: 1px solid var(--mav-border); border-radius: 999px; font-weight: 700; }
.mav-cart-count { min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; background: var(--mav-coral); color: #fff; font-size: 11px; }

.mav-hero { position: relative; overflow: hidden; padding: 92px 0 78px; background: linear-gradient(135deg, var(--mav-cream), #fff 58%, #fff0eb); }
.mav-hero::before, .mav-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.mav-hero::before { width: 420px; height: 420px; right: -150px; top: -160px; background: rgba(255,120,100,.12); }
.mav-hero::after { width: 240px; height: 240px; left: -100px; bottom: -150px; background: rgba(13,49,91,.08); }
.mav-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 72px; }
.mav-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--mav-coral); font-size: 13px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.mav-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.mav-hero h1 { max-width: 680px; margin: 0 0 22px; color: var(--mav-navy-deep); font-size: clamp(48px, 6vw, 78px); line-height: 1.02; letter-spacing: -.045em; }
.mav-hero h1 em { color: var(--mav-coral); font-style: normal; }
.mav-hero-copy { max-width: 590px; margin: 0 0 30px; color: var(--mav-muted); font-size: 19px; }
.mav-buttons { display: flex; flex-wrap: wrap; gap: 13px; }
.mav-button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
  display: inline-flex !important; align-items: center; justify-content: center; min-height: 50px; padding: 13px 24px !important; border: 0 !important; border-radius: 999px !important; background: var(--mav-navy) !important; color: #fff !important; font-weight: 750 !important; line-height: 1.2 !important; transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.mav-button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { transform: translateY(-2px); background: var(--mav-coral) !important; box-shadow: 0 10px 24px rgba(255,120,100,.24); }
.mav-button--ghost { color: var(--mav-navy) !important; background: transparent !important; border: 1px solid rgba(13,49,91,.22) !important; }
.mav-button--ghost:hover { color: #fff !important; background: var(--mav-navy) !important; }
.mav-trust { display: flex; flex-wrap: wrap; gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; color: var(--mav-ink); font-size: 13px; font-weight: 650; }
.mav-trust li::before { content: "✓"; display: inline-grid; place-items: center; width: 21px; height: 21px; margin-right: 7px; border-radius: 50%; background: #dff4e7; color: #237a47; }
.mav-hero-card { position: relative; min-height: 440px; padding: 50px 38px; display: grid; place-items: center; border-radius: 44px; background: var(--mav-white); box-shadow: var(--mav-shadow); }
.mav-hero-card::before { content: ""; position: absolute; inset: 22px; border: 1px solid var(--mav-border); border-radius: 32px; }
.mav-hero-logo { position: relative; z-index: 1; width: min(100%, 440px); }
.mav-float-tag { position: absolute; z-index: 2; padding: 10px 15px; border-radius: 999px; background: #fff; box-shadow: 0 10px 30px rgba(13,49,91,.14); color: var(--mav-navy); font-size: 13px; font-weight: 750; }
.mav-float-tag--one { left: -24px; top: 54px; }
.mav-float-tag--two { right: -28px; bottom: 78px; }
.mav-float-tag b { color: var(--mav-coral); }

.mav-section { padding: 84px 0; }
.mav-section--soft { background: var(--mav-cream); }
.mav-section-head { max-width: 680px; margin: 0 auto 42px; text-align: center; }
.mav-section-head h2 { margin: 0 0 12px; color: var(--mav-navy-deep); font-size: clamp(34px, 4vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.mav-section-head p { margin: 0; color: var(--mav-muted); font-size: 17px; }
.mav-categories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.mav-category { min-height: 210px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; overflow: hidden; border: 1px solid var(--mav-border); border-radius: var(--mav-radius); background: #fff; color: var(--mav-ink); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.mav-category::before { content: attr(data-symbol); position: absolute; right: 18px; top: 2px; color: rgba(13,49,91,.08); font-size: 86px; font-weight: 900; line-height: 1; }
.mav-category:nth-child(2n)::before { color: rgba(255,120,100,.13); }
.mav-category:hover { transform: translateY(-5px); border-color: rgba(255,120,100,.45); box-shadow: var(--mav-shadow); }
.mav-category small { position: relative; z-index: 1; margin-bottom: 7px; color: var(--mav-coral); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mav-category strong { position: relative; z-index: 1; color: var(--mav-navy); font-size: 22px; line-height: 1.2; }
.mav-category span { position: relative; z-index: 1; margin-top: 10px; color: var(--mav-muted); font-size: 14px; }

.mav-benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.mav-benefit { padding: 28px; border-radius: var(--mav-radius); background: #fff; border: 1px solid var(--mav-border); }
.mav-benefit-number { width: 43px; height: 43px; display: grid; place-items: center; margin-bottom: 18px; border-radius: 14px; background: var(--mav-coral-soft); color: var(--mav-coral); font-weight: 900; }
.mav-benefit h3 { margin: 0 0 8px; color: var(--mav-navy); font-size: 20px; }
.mav-benefit p { margin: 0; color: var(--mav-muted); font-size: 14px; }
.mav-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.mav-story-panel { min-height: 360px; display: grid; place-items: center; padding: 52px; border-radius: 36px; background: var(--mav-navy); }
.mav-story-panel img { width: min(100%, 380px); filter: brightness(0) invert(1); opacity: .95; }
.mav-story h2 { margin: 0 0 18px; color: var(--mav-navy-deep); font-size: clamp(36px, 4vw, 52px); line-height: 1.1; letter-spacing: -.035em; }
.mav-story p { color: var(--mav-muted); font-size: 17px; }

.mav-empty-products { padding: 36px; border: 1px dashed #d8cec3; border-radius: var(--mav-radius); color: var(--mav-muted); text-align: center; background: #fff; }
.woocommerce ul.products { display: grid !important; grid-template-columns: repeat(4,1fr); gap: 22px; margin: 0 !important; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; padding: 14px 14px 20px !important; border: 1px solid var(--mav-border); border-radius: 20px; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: var(--mav-shadow); }
.woocommerce ul.products li.product a img { border-radius: 14px; margin-bottom: 16px !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { color: var(--mav-navy); font-size: 16px !important; }
.woocommerce ul.products li.product .price { color: var(--mav-coral) !important; font-weight: 800 !important; }
.woocommerce span.onsale { min-width: auto; min-height: auto; padding: 6px 10px; line-height: 1.2; border-radius: 999px; background: var(--mav-coral); }

.mav-page { min-height: 55vh; padding: 64px 0 86px; }
.mav-page-title { margin: 0 0 34px; color: var(--mav-navy-deep); font-size: clamp(38px,5vw,58px); letter-spacing: -.04em; }
.mav-content { max-width: 820px; }
.mav-content > *:first-child { margin-top: 0; }
.mav-content a { text-decoration: underline; text-decoration-color: rgba(255,120,100,.55); text-underline-offset: 3px; }
.woocommerce .quantity .qty, .woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce select { min-height: 44px; border: 1px solid var(--mav-border); border-radius: 10px; padding: 9px 12px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--mav-coral); background: var(--mav-cream); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--mav-coral); }

.mav-footer { padding: 66px 0 28px; background: var(--mav-navy-deep); color: rgba(255,255,255,.74); }
.mav-footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 60px; }
.mav-footer-logo { width: 190px; margin-bottom: 18px; filter: brightness(0) invert(1); }
.mav-footer p { max-width: 440px; margin: 0; }
.mav-footer h3 { margin: 0 0 16px; color: #fff; font-size: 15px; }
.mav-footer ul { margin: 0; padding: 0; list-style: none; }
.mav-footer li + li { margin-top: 9px; }
.mav-footer a { color: rgba(255,255,255,.74); }
.mav-footer a:hover { color: var(--mav-coral); }
.mav-footer-bottom { margin-top: 52px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 900px) {
  .mav-header-row { grid-template-columns: 1fr auto; min-height: 72px; }
  .mav-nav { display: none; }
  .mav-brand { width: 165px; }
  .mav-hero { padding: 64px 0; }
  .mav-hero-grid, .mav-story { grid-template-columns: 1fr; gap: 42px; }
  .mav-hero-card { min-height: 340px; }
  .mav-categories, .mav-benefits { grid-template-columns: repeat(2,1fr); }
  .woocommerce ul.products { grid-template-columns: repeat(2,1fr); }
  .mav-footer-grid { grid-template-columns: 1fr 1fr; }
  .mav-footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  .mav-container { width: min(calc(100% - 28px), var(--mav-width)); }
  .mav-announcement .mav-container { gap: 10px; font-size: 11px; }
  .mav-announcement span:nth-child(2) { display: none; }
  .mav-header-row { gap: 10px; }
  .mav-brand, .mav-brand img, .custom-logo { max-width: 142px; }
  .mav-icon-link { min-width: 39px; height: 39px; padding: 0 10px; }
  .mav-account-link { display: none; }
  .mav-hero h1 { font-size: 48px; }
  .mav-hero-copy { font-size: 17px; }
  .mav-hero-card { min-height: 270px; padding: 36px 26px; border-radius: 30px; }
  .mav-float-tag { display: none; }
  .mav-section { padding: 62px 0; }
  .mav-categories, .mav-benefits { grid-template-columns: 1fr; }
  .mav-category { min-height: 175px; }
  .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .woocommerce ul.products li.product { padding: 9px 9px 15px !important; }
  .mav-footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .mav-footer-grid > :first-child { grid-column: auto; }
  .mav-footer-bottom { flex-direction: column; }
}
