/* ============================================================
   Crea Ibiza — Main Stylesheet
   ============================================================ */

/* --- Base reset ------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- No-line rule: nunca usar hr ni borders de 1px para secciones */
hr {
  display: none;
}

/* --- Navigation ------------------------------------------- */
.wp-block-navigation {
  --nav-gap: 2rem;
}

.wp-block-navigation .wp-block-navigation-item__content {
  padding: 0;
  transition: opacity 0.2s ease;
}

.wp-block-navigation .wp-block-navigation-item__content:hover {
  opacity: 0.6;
}

/* Glassmorphism nav — se activa con clase .is-sticky o .header-sticky */
.site-header.is-sticky,
.wp-block-template-part.header.is-sticky {
  background: rgba(250, 249, 246, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: none;
}

/* --- Typography helpers ----------------------------------- */
.editorial-headline {
  font-family: var(--wp--preset--font-family--newsreader);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.label-uppercase {
  font-family: var(--wp--preset--font-family--manrope);
  font-size: var(--wp--preset--font-size--xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* --- Buttons --------------------------------------------- */
.wp-block-button__link {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.wp-block-button__link:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}

/* Outlined button variant */
.is-style-outline .wp-block-button__link {
  background: transparent;
  border: 1px solid currentColor;
  color: inherit;
}

/* Ghost button */
.is-style-ghost .wp-block-button__link {
  background: transparent;
  border: 1px solid rgba(175, 179, 174, 0.3);
  color: var(--wp--preset--color--on-surface);
}

/* --- Cards ----------------------------------------------- */
.wp-block-post,
.product-card {
  transition: box-shadow 0.3s ease;
}

.wp-block-post:hover,
.product-card:hover {
  box-shadow: 0 20px 40px rgba(47, 52, 48, 0.06);
}

/* --- Cover / Hero ---------------------------------------- */
.wp-block-cover {
  min-height: 100svh;
}

.wp-block-cover__background {
  opacity: 0.45 !important;
}

/* --- WooCommerce integration ----------------------------- */
.wc-block-grid__product-title {
  font-family: var(--wp--preset--font-family--newsreader);
  font-weight: 400;
  font-size: var(--wp--preset--font-size--lg);
}

.wc-block-grid__product-price {
  font-family: var(--wp--preset--font-family--manrope);
  font-size: var(--wp--preset--font-size--sm);
  color: var(--wp--preset--color--on-surface-variant);
}

.wc-block-components-button,
.wp-block-woocommerce-product-button .wp-block-button__link {
  font-family: var(--wp--preset--font-family--manrope);
  font-size: var(--wp--preset--font-size--xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background-color: var(--wp--preset--color--secondary);
  color: var(--wp--preset--color--on-secondary);
  border-radius: 2px;
}

/* --- Utility classes ------------------------------------- */
.surface            { background-color: var(--wp--preset--color--surface); }
.surface-low        { background-color: var(--wp--preset--color--surface-low); }
.surface-lowest     { background-color: var(--wp--preset--color--surface-lowest); }
.surface-dark       { background-color: var(--wp--preset--color--inverse-surface); color: var(--wp--preset--color--surface); }

.section-gap        { padding-block: 8rem; }
.section-gap-sm     { padding-block: 4rem; }

/* --- Scrollbar (optional, subtle) ------------------------ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--wp--preset--color--surface-low); }
::-webkit-scrollbar-thumb { background: var(--wp--preset--color--outline-variant); border-radius: 3px; }
