/* =============================================
   ALOHO SALUD VISUAL Y AUDITIVA
   Sistema de Diseño — styles.css
   ============================================= */

/* --- FUENTES --- */
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Light.woff2') format('woff2'),
       url('../fonts/Lato-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-LightItalic.woff2') format('woff2'),
       url('../fonts/Lato-LightItalic.woff') format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.woff2') format('woff2'),
       url('../fonts/Lato-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.woff2') format('woff2'),
       url('../fonts/Lato-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Magical Time';
  src: url('../fonts/MagicalTimeRegular.woff2') format('woff2'),
       url('../fonts/MagicalTimeRegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Magical Time Script';
  src: url('../fonts/MagicalTimeScriptScript.woff2') format('woff2'),
       url('../fonts/MagicalTimeScriptScript.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Tutti Frutti';
  src: url('../fonts/TuttiFruttiRegular.woff2') format('woff2'),
       url('../fonts/TuttiFruttiRegular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* --- VARIABLES --- */
:root {
  --teal:      #3baea9;
  --turquoise: #6aecee;
  --mint:      #a2fff2;
  --mint-bg:   #edfcf9;
  --fuchsia:   #ff4486;
  --coral:     #ff8e78;
  --pinkred:   #ff6876;
  --yellow:    #f3ff7a;
  --lime:      #d2ff77;
  --white:     #ffffff;
  --black:     #1a1a1a;
  --gray:      #6b7280;
  --light-gray:#f5f5f5;
  --border:    #e5e7eb;

  --font-body:    'Lato', sans-serif;
  --font-display: 'Magical Time Script', cursive;
  --font-fun:     'Tutti Frutti', cursive;
  --font-title:   'Magical Time', cursive;

  --radius:    12px;
  --radius-lg: 24px;
  --shadow:    0 4px 20px rgba(59,174,169,0.12);
  --shadow-lg: 0 8px 40px rgba(59,174,169,0.18);
  --transition: 0.25s ease;

  /* Altura real del header sticky. Cuando el logo se reduce en ≤400px, se baja a 76px. */
  --header-h: 92px;
}

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* --- TIPOGRAFÍA --- */
h1, h2, h3, h4, h5 { line-height: 1.2; font-weight: 700; font-family: var(--font-fun); }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
h4 { font-size: 1.2rem; }
p { line-height: 1.7; }

.display-text {
  font-family: var(--font-display);
  font-weight: normal;
}
.fun-text {
  font-family: var(--font-fun);
}

/* --- LAYOUT --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section {
  padding: 5rem 0;
}
.section-sm {
  padding: 3rem 0;
}

/* --- COLORES DE FONDO --- */
.bg-teal    { background: var(--teal); color: white; }
.bg-mint    { background: var(--mint-bg); }
.bg-light   { background: var(--light-gray); }
.bg-dark    { background: var(--black); color: white; }
.bg-white   { background: var(--white); }

/* --- BOTONES --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  letter-spacing: 0.02em;
}
.btn-primary {
  background: var(--fuchsia);
  color: white;
  border-color: var(--fuchsia);
}
.btn-primary:hover {
  background: transparent;
  color: var(--fuchsia);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,68,134,0.35);
}
.btn-secondary {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-secondary:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--teal);
  border-color: white;
}
.btn-white:hover {
  background: transparent;
  color: white;
  transform: translateY(-2px);
}
.btn-outline-white {
  background: transparent;
  color: white;
  border-color: white;
}
.btn-outline-white:hover {
  background: white;
  color: var(--teal);
}

/* --- BADGE / TAG --- */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.badge-teal    { background: var(--mint); color: var(--teal); }
.badge-fuchsia { background: #ffe0ee; color: var(--fuchsia); }
.badge-coral   { background: #fff0ec; color: #d4614a; }
.badge-yellow  { background: var(--yellow); color: #7a6600; }
.badge-lime    { background: var(--lime); color: #3a6600; }

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header.scrolled {
  box-shadow: var(--shadow);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  gap: 2rem;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.nav-logo img,
.nav-logo .custom-logo {
  height: 56px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-links a {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 400;
  font-size: 0.92rem;
  color: var(--black);
  transition: all var(--transition);
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--teal);
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: calc(100% - 2rem);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--teal);
}

/* Submenú del navbar (desktop) */
.nav-links .has-children {
  position: relative;
}
.nav-links .has-children > a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.nav-caret {
  transition: transform 0.2s ease;
  margin-left: 0.1rem;
}
.nav-links .has-children:hover .nav-caret,
.nav-links .has-children:focus-within .nav-caret {
  transform: rotate(180deg);
}
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, 8px);
  min-width: 220px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  list-style: none;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 1001;
}
.nav-links .has-children:hover > .sub-menu,
.nav-links .has-children:focus-within > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s;
}
.nav-links .sub-menu li {
  list-style: none;
}
.nav-links .sub-menu a {
  display: block;
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
  white-space: nowrap;
}
.nav-links .sub-menu a:hover {
  background: var(--mint-bg);
}
/* Anula el subrayado del enlace padre cuando es submenú */
.nav-links .sub-menu a::after { display: none; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nav-phone {
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-phone:hover { color: var(--fuchsia); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: 8px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav — arranca FÍSICAMENTE debajo del header sticky usando top: var(--header-h),
   no con padding-top. Así el contenido scrollea dentro del drawer sin solaparse
   nunca con el header (el padding-top permite scroll detrás de la zona del header). */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  z-index: 999;
  padding: 1.5rem 1.5rem 2rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  display: block;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--black);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.mobile-nav a:hover { background: var(--mint-bg); color: var(--teal); }
.mobile-nav .btn { margin-top: 1rem; width: 100%; justify-content: center; }

/* Grupo desplegable (Tienda → Gafas graduadas, Gafas de sol).
   El <a> navega a la página padre; el <button> caret abre/cierra el submenú. */
.mobile-nav-group {
  border-bottom: 1px solid var(--border);
}
.mobile-nav-group-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
/* El <a> ocupa la mayor parte y mantiene el estilo del resto de items del menú.
   Le quitamos el border-bottom porque ya lo aporta .mobile-nav-group. */
.mobile-nav .mobile-nav-group-link {
  flex: 1;
  border-bottom: none;
}
/* Botón caret — solo expande/colapsa, sin texto */
.mobile-nav-group-toggle {
  background: transparent;
  border: none;
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--gray);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.mobile-nav-group-toggle:hover {
  background: var(--mint-bg);
  color: var(--teal);
}
.mobile-nav-caret {
  transition: transform 0.25s ease;
}
.mobile-nav-group-toggle.is-open {
  color: var(--teal);
  background: var(--mint-bg);
}
.mobile-nav-group-toggle.is-open .mobile-nav-caret {
  transform: rotate(180deg);
}

/* Submenú: sub-items con sangrado, sin border-bottom, tipografía más discreta */
.mobile-submenu {
  display: flex;
  flex-direction: column;
  padding: 0.25rem 0 0.5rem;
}
.mobile-submenu[hidden] { display: none; }
.mobile-nav .mobile-submenu-link {
  padding: 0.7rem 1.25rem 0.7rem 2.75rem;
  font-size: 1rem;
  color: var(--gray);
  border-bottom: none;
}
.mobile-nav .mobile-submenu-link:hover {
  color: var(--teal);
  background: var(--mint-bg);
}

/* Page offset for fixed header */
.page-content { padding-top: 0; }

/* =============================================
   HERO
   ============================================= */
.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--mint-bg) 0%, rgba(162,255,242,0.3) 100%);
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.18;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--mint);
  color: var(--teal);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.hero-eyebrow svg { width: 14px; height: 14px; }
.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.hero h1 span {
  color: var(--teal);
}
.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--fuchsia);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}
.hero p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 520px;
  font-weight: 300;
}
.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--teal);
}
.hero-stat span {
  font-size: 0.85rem;
  color: var(--gray);
}
.hero-image {
  position: absolute;
  right: -5%;
  top: 50%;
  transform: translateY(-50%);
  width: 48%;
  max-width: 580px;
  z-index: 1;
}
.hero-image img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-deco {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}
.hero-deco-1 { top: 10%; right: 8%; width: 80px; animation: float 6s ease-in-out infinite; }
.hero-deco-2 { bottom: 15%; left: 2%; width: 60px; animation: float 8s ease-in-out infinite reverse; }

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* =============================================
   SECCIÓN: SERVICIOS CARDS
   ============================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 2rem;
}
.service-icon.teal    { background: var(--mint-bg); }
.service-icon.fuchsia { background: #fff0f6; }
.service-icon.coral   { background: #fff4f1; }
.service-icon.lime    { background: #f4fff0; }
.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.service-card p {
  font-size: 0.92rem;
  color: var(--gray);
  font-weight: 300;
}

/* =============================================
   SECCIÓN: PRODUCTOS PREVIEW / CATALOG
   ============================================= */
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}
.section-header .badge { margin-bottom: 1rem; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { color: var(--gray); font-weight: 300; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.product-card {
  position: relative;   /* stretched link: el <a>::before se posiciona contra esto */
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

/* Stretched link — el <a> envuelve solo el título, pero su ::before cubre TODA
   la card haciéndola clickable. El botón "Comprar ya" tiene z-index mayor para
   captar sus propios clicks sin propagar al link de la card. */
.product-card-link {
  color: inherit;
  text-decoration: none;
}
.product-card-link::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}
.product-card-link:hover .product-name { color: var(--teal); }
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.product-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #fff;
}
.product-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.4s ease;
}
.product-card:hover .product-img img {
  transform: scale(1.06);
}
.product-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(59,174,169,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition);
}
.product-card:hover .product-img-overlay { opacity: 1; }
.product-img-overlay span {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.product-info {
  padding: 1.25rem;
}
.product-brand {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.35rem;
}
.product-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fuchsia);
}
.product-attrs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.product-attr {
  font-size: 0.72rem;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  background: var(--light-gray);
  color: var(--gray);
  font-weight: 700;
}

/* Botón "Comprar ya" dentro de la card */
.buy-now-btn {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.6rem 1rem;
  border: none;
  border-radius: 50px;
  background: var(--fuchsia);
  color: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  position: relative;
  z-index: 2;
}
.buy-now-btn:hover,
.buy-now-btn:focus-visible {
  background: var(--black);
  transform: translateY(-1px);
}
.buy-now-btn:active {
  transform: translateY(0);
}

/* Catalog page — filters */
.catalog-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

/* Catálogo — sección a casi todo el ancho del viewport (20px laterales) + 4 productos por fila */
.tienda-catalog > .container {
  max-width: 100%;
  padding: 0 20px;
}
.tienda-catalog .products-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1200px) {
  .tienda-catalog .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  /* Tablet vertical: 2 cols (antes 3 apretadas). Sidebar ya está colapsado. */
  .tienda-catalog .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 400px) {
  .tienda-catalog .products-grid { grid-template-columns: 1fr; }
}

/* Sentinel + spinner del infinite scroll */
.catalog-sentinel {
  width: 100%;
  min-height: 1px;
  padding: 2rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
}
.catalog-loading {
  display: none;
  gap: 0.5rem;
}
.catalog-loading.active { display: flex; }
.catalog-loading span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  animation: aloho-dot 1s ease-in-out infinite;
}
.catalog-loading span:nth-child(2) { animation-delay: 0.15s; }
.catalog-loading span:nth-child(3) { animation-delay: 0.3s; }
@keyframes aloho-dot {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .catalog-loading span { animation: none; opacity: 0.8; }
}
.filters-sidebar {
  position: sticky;
  /* Header sticky + algo de respiro. --header-h se recalcula en móvil pequeño. */
  top: calc(var(--header-h) + 8px);
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
/* Botón "X" cerrar drawer — solo visible en mobile dentro del drawer */
.filters-close {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mint-bg);
  color: var(--teal);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.filters-close:hover { background: var(--teal); color: #fff; }

/* Overlay del drawer — oculto en desktop, fade-in en mobile */
.filters-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.filters-overlay.open { opacity: 1; }
.filters-sidebar h3 {
  font-size: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters-sidebar h3 button {
  /* Botón "Limpiar" — pildora con Lato (no hereda Tutti Frutti del h3) */
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--fuchsia);
  background: transparent;
  border: 1.5px solid var(--fuchsia);
  border-radius: 50px;
  padding: 0.3rem 0.85rem;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}
.filters-sidebar h3 button:hover {
  background: var(--fuchsia);
  color: white;
}
.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group h4 {
  /* "Material" / "Género" — con Lato, no Tutti Frutti */
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  margin-bottom: 0.75rem;
}
.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.filter-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--black);
  font-weight: 400;
}
.filter-chip:hover { background: var(--mint-bg); color: var(--teal); }
.filter-chip.active { background: var(--mint); color: var(--teal); font-weight: 700; }
.filter-chip input[type="checkbox"] { accent-color: var(--teal); }
.filter-price {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
  color: var(--gray);
}
.filter-price input {
  width: 70px;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.88rem;
}

.catalog-results {
  min-height: 400px;
}
.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.results-count {
  font-size: 0.9rem;
  color: var(--gray);
}
.results-count strong { color: var(--black); }
.sort-select {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--black);
  background: white;
  cursor: pointer;
}
.no-results {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--gray);
}
.no-results .icon { font-size: 3rem; margin-bottom: 1rem; }

/* Mobile filters toggle */
.filters-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  background: white;
  cursor: pointer;
  transition: all var(--transition);
}
.filters-toggle:hover { border-color: var(--teal); color: var(--teal); }

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 100%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 360px;
  max-height: 90vh;
}
.lightbox-gallery {
  position: relative;
  background: #fff;
}
.lightbox-main {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #fff;
}
.lightbox-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}
.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  overflow-x: auto;
  background: #f5f5f5;
}
.lightbox-thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--transition);
  background: #fff;
}
.lightbox-thumb.active { border-color: var(--teal); }
.lightbox-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 0 0.5rem;
  pointer-events: none;
}
.lightbox-nav button {
  pointer-events: all;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
  color: var(--black);
}
.lightbox-nav button:hover { background: var(--teal); color: white; }
.lightbox-info {
  padding: 2rem;
  overflow-y: auto;
}
.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--transition);
  cursor: pointer;
  border: none;
}
.lightbox-close:hover { background: var(--fuchsia); }
.lightbox-brand {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.lightbox-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}
.lightbox-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--fuchsia);
  margin-bottom: 1.5rem;
}
.lightbox-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.spec-item label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.spec-item span {
  font-size: 0.92rem;
  font-weight: 700;
}
.lightbox-cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.lightbox-cta .btn { width: 100%; justify-content: center; }

/* =============================================
   BANNER "YOU ARE MAGIC"
   ============================================= */
.magic-banner {
  background: var(--teal);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.magic-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(106,236,238,0.3), transparent 60%),
              radial-gradient(ellipse at 70% 50%, rgba(255,68,134,0.15), transparent 60%);
}
.magic-banner-content {
  position: relative;
  z-index: 1;
}
.magic-banner img {
  max-height: 140px;
  margin: 0 auto 2rem;
  filter: brightness(0) invert(1);
}
.magic-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 1.15rem;
  max-width: 500px;
  margin: 0 auto 2rem;
  font-weight: 300;
}
.magic-banner .btn-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================
   RESEÑAS
   ============================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}
.review-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.review-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.review-stars {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
}
.review-text {
  font-size: 0.92rem;
  color: var(--gray);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-weight: 300;
}
.review-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--teal);
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-author-info strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
}
.review-author-info span {
  font-size: 0.78rem;
  color: var(--gray);
}
.google-rating {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--mint-bg);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 2rem;
  max-width: 400px;
}
.google-rating-score {
  font-size: 3rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
}
.google-rating-info strong {
  display: block;
  color: var(--teal);
  font-size: 0.9rem;
}
.google-rating-info span {
  font-size: 0.82rem;
  color: var(--gray);
}

/* =============================================
   CTA CONTACTO (HOME)
   ============================================= */
.contact-strip {
  background: var(--black);
  padding: 4rem 0;
}
.contact-strip .container {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
}
.contact-strip h2 { color: white; margin-bottom: 0.5rem; }
.contact-strip p { color: rgba(255,255,255,0.6); font-weight: 300; }
.contact-strip-info {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.92rem;
}
.contact-info-item svg { color: var(--turquoise); flex-shrink: 0; }
.contact-strip-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 200px;
}

/* =============================================
   SERVICIOS PAGE
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, var(--mint-bg), rgba(162,255,242,0.4));
  padding: 5rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p {
  font-size: 1.1rem;
  color: var(--gray);
  max-width: 550px;
  margin: 0 auto;
  font-weight: 300;
}
.page-hero .badge { margin-bottom: 1rem; }

.service-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding: 4rem 0;
  border-bottom: 1px solid var(--border);
}
.service-detail:last-child { border-bottom: none; }
.service-detail.reverse { direction: rtl; }
.service-detail.reverse > * { direction: ltr; }
.service-detail-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}
.service-detail h2 { margin-bottom: 1rem; }
.service-detail p {
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.service-benefits {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.service-benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.92rem;
}
.service-benefit::before {
  content: '✓';
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.service-detail-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}
.service-detail-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.service-detail-placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}

/* Zona de atención */
.zona-banner {
  background: var(--mint-bg);
  border-radius: var(--radius-lg);
  padding: 3rem;
  text-align: center;
  margin: 4rem 0;
}
.zona-banner h3 { margin-bottom: 1rem; }
.zona-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}
.zona-chip {
  background: white;
  border: 1px solid var(--teal);
  color: var(--teal);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
}

/* =============================================
   NOSOTROS PAGE
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.about-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}
.about-content h2 { margin-bottom: 1.5rem; }
.about-content p {
  color: var(--gray);
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.8;
}
.values-grid {
  --cell: clamp(200px, 18vw, 240px);
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  margin-top: 3rem;
  justify-content: center;
  /* Rompemos el .container para ocupar todo el ancho del viewport */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.values-grid .value-card {
  flex: 0 0 var(--cell);
  width: var(--cell);
  height: var(--cell);
  scroll-snap-align: start;
}
/* Móvil/tablet: el container no puede mostrar las 6 cards en línea, así que
   pasamos a scroll horizontal explícito con snap suave. Antes quedaban
   cortadas por overflow-x: hidden del body. La scrollbar se oculta para que
   el carrusel quede limpio (en móvil el auto-scroll lo gestiona main.js). */
@media (max-width: 1024px) {
  .values-grid {
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 1.5rem;
    padding: 0.5rem 1.5rem 1rem;
    /* Reseteamos el truco "rompe-container" del desktop: en mobile preferimos
       que arranque pegado al borde izquierdo y se haga scroll natural. */
    width: 100%;
    left: auto;
    transform: none;
    /* Fade-out en los bordes para sugerir que hay más cards */
    -webkit-mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent);
    /* Scrollbar oculta: Firefox + IE/Edge + WebKit */
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .values-grid::-webkit-scrollbar { display: none; }
}

.value-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1rem;
  text-align: center;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}
.value-card:hover {
  border-color: var(--teal);
  box-shadow: 0 8px 24px rgba(59, 174, 169, 0.15);
  transform: translateY(-2px);
}
.value-icon {
  font-size: 1.8rem;
  margin-bottom: 0;
  line-height: 1;
}
.value-text {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.value-card h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}
.value-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.4;
}
.almudena-card {
  background: linear-gradient(135deg, var(--mint-bg), white);
  border-radius: var(--radius-lg);
  padding: 3rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  margin: 4rem 0;
  border: 1px solid var(--mint);
}
.almudena-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--mint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.almudena-info h3 { color: var(--teal); margin-bottom: 0.5rem; }
.almudena-info .role {
  font-size: 0.88rem;
  color: var(--fuchsia);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.almudena-info p { color: var(--gray); font-weight: 300; font-size: 0.95rem; line-height: 1.7; }

/* =============================================
   BLOG
   ============================================= */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}
.blog-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.blog-card-img {
  aspect-ratio: 16/9;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.blog-cat {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
}
.blog-date {
  font-size: 0.78rem;
  color: var(--gray);
}
.blog-card h3 { font-size: 1.1rem; margin-bottom: 0.6rem; line-height: 1.4; }
.blog-card p { font-size: 0.88rem; color: var(--gray); font-weight: 300; flex: 1; }
.blog-card .read-more {
  margin-top: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 700;
  transition: gap var(--transition);
}
.blog-card .read-more:hover { gap: 0.7rem; }

/* Blog article */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 3rem;
  align-items: start;
}
.article-content {
  max-width: 720px;
}
.article-header { margin-bottom: 2.5rem; }
.article-header h1 { margin-bottom: 1rem; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--gray);
  font-size: 0.88rem;
}
.article-body h2 { margin: 2rem 0 1rem; }
.article-body h3 { margin: 1.5rem 0 0.75rem; color: var(--teal); }
.article-body p { margin-bottom: 1.25rem; color: var(--gray); font-weight: 300; line-height: 1.8; }
.article-body ul, .article-body ol {
  margin: 0 0 1.25rem 1.5rem;
  color: var(--gray);
  font-weight: 300;
  line-height: 1.8;
}
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body blockquote {
  border-left: 4px solid var(--teal);
  padding: 1rem 1.5rem;
  background: var(--mint-bg);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--teal);
}
.article-sidebar { position: sticky; top: 90px; }
.sidebar-widget {
  background: var(--mint-bg);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 { margin-bottom: 1rem; color: var(--teal); }

/* =============================================
   CONTACTO PAGE
   ============================================= */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-info h2 { margin-bottom: 1.5rem; }
.contact-info p { color: var(--gray); font-weight: 300; margin-bottom: 2rem; line-height: 1.8; }
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--mint-bg);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-detail:hover {
  background: var(--mint);
  transform: translateX(4px);
}
.contact-detail-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-detail-body strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-detail-body a,
.contact-detail-body span {
  font-size: 0.95rem;
  color: var(--black);
  font-weight: 400;
}
.contact-detail-body a:hover { color: var(--teal); }
.contact-form {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.contact-form h3 { margin-bottom: 1.75rem; }
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 0.5rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--black);
  background: white;
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59,174,169,0.12);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group textarea { min-height: 120px; }
.form-submit { width: 100%; justify-content: center; margin-top: 0.5rem; }
.form-note {
  font-size: 0.78rem;
  color: var(--gray);
  text-align: center;
  margin-top: 0.75rem;
}
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 3rem;
}
.map-container iframe {
  width: 100%;
  height: 400px;
  border: none;
  display: block;
}

/* =============================================
   HORARIO
   ============================================= */
.horario-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.horario-table td {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.horario-table td:last-child {
  text-align: right;
  color: var(--teal);
  font-weight: 700;
}
.horario-table tr:last-child td { border-bottom: none; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand img,
.footer-brand .custom-logo {
  height: 40px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}
.footer-brand p { font-size: 0.88rem; font-weight: 300; line-height: 1.7; max-width: 260px; }
.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  transition: all var(--transition);
}
.footer-social a:hover { background: var(--teal); transform: translateY(-2px); }
.footer-section h4 {
  color: white;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}
.footer-section ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-section ul a {
  font-size: 0.88rem;
  font-weight: 300;
  transition: color var(--transition);
}
.footer-section ul a:hover { color: var(--turquoise); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  font-weight: 300;
}
.footer-contact-item svg { color: var(--turquoise); flex-shrink: 0; margin-top: 2px; }
.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-bottom p { font-size: 0.82rem; }
.footer-bottom a { color: var(--turquoise); }
.footer-bottom a:hover { color: white; }

/* =============================================
   UTILIDADES
   ============================================= */
.text-center   { text-align: center; }
.text-teal     { color: var(--teal); }
.text-fuchsia  { color: var(--fuchsia); }
.text-gray     { color: var(--gray); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.hidden { display: none !important; }

/* Separador decorativo */
.divider {
  width: 60px;
  height: 4px;
  background: var(--teal);
  border-radius: 4px;
  margin: 1rem auto;
}
.divider.left { margin-left: 0; }

/* WhatsApp float button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--transition);
  color: white;
  font-size: 1.6rem;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.6);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .hero-image { display: none; }
  .hero-content { max-width: 100%; }
  .lightbox-inner { grid-template-columns: 1fr; max-height: 95vh; }
  .lightbox-info { max-height: 280px; }
}

@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  /* Filters → drawer modal lateral. Slide-in desde la izquierda. */
  .filters-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(360px, 88vw);
    max-height: 100vh;
    overflow-y: auto;
    border-radius: 0;
    z-index: 999;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
    padding: 4.5rem 1.5rem 1.5rem;
  }
  .filters-sidebar.open { transform: translateX(0); }
  .filters-close { display: flex; }
  .filters-overlay { display: block; }
  .filters-toggle { display: flex; }
  .service-detail,
  .about-grid,
  .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
  .service-detail.reverse { direction: ltr; }
  .article-layout { grid-template-columns: 1fr; }
  .contact-strip .container { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .almudena-card { grid-template-columns: 1fr; text-align: center; }
  .almudena-avatar { margin: 0 auto; }
}

@media (max-width: 900px) {
  /* Navbar: menú principal y "Pide cita" pasan al drawer mobile. Quedan visibles
     solo logo + iconos cuenta/carrito + hamburguesa. */
  .nav-links, .nav-cta .btn, .nav-phone { display: none; }
  .hamburger { display: flex; }
  /* Sin .nav-links, el flex `space-between` deja .nav-cta en el centro. Con
     margin-left:auto lo empujamos al lado derecho, pegado al hamburguesa. */
  .nav-cta { margin-left: auto; gap: 0.4rem; }
  .hamburger { margin-left: 0.5rem; }
}

/* WP admin bar — desplazamos el drawer mobile para que arranque por debajo de
   header + admin bar (32px desktop, 46px mobile ≤782px). Solo afecta a usuarios
   logueados; visitantes anónimos no ven la admin bar. */
body.admin-bar .mobile-nav { top: calc(var(--header-h) + 32px); }
@media (max-width: 782px) {
  body.admin-bar .mobile-nav { top: calc(var(--header-h) + 46px); }
}

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero { min-height: 90vh; }
  .hero-btns { flex-direction: column; align-items: flex-start; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .magic-banner { padding: 3rem 0; }
  .contact-strip-actions { flex-direction: row; flex-wrap: wrap; }
  .form-row { grid-template-columns: 1fr; }
  .lightbox-inner { overflow-y: auto; }
  .lightbox-specs { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.25rem; }
  .services-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
}

/* =============================================
   TIENDA — NAV CARRITO
   ============================================= */
.nav-cart,
.nav-account {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--black);
  transition: all var(--transition);
}
.nav-cart:hover,
.nav-account:hover { color: var(--teal); background: var(--mint-bg); }
.nav-cart.active,
.nav-account.active { color: var(--teal); }
.cart-count {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  background: var(--fuchsia);
  color: white;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* =============================================
   TIENDA — HERO
   ============================================= */
.tienda-hero {
  background: linear-gradient(135deg, var(--mint-bg) 0%, rgba(162,255,242,0.3) 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.tienda-hero-content { max-width: 600px; }
.tienda-hero-content h1 { margin: 0.75rem 0 0.75rem; }
.tienda-hero-content h1 span { color: var(--teal); }
.tienda-hero-content p { color: var(--gray); font-weight: 300; max-width: 480px; }

/* =============================================
   TIENDA — BARRA SUPERIOR (TABS + BÚSQUEDA)
   ============================================= */
.tienda-toolbar-section {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
  position: sticky;
  top: 92px;
  z-index: 100;
}
.tienda-top-bar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cat-tabs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
/* Sidebar: tabs en columna a ancho completo */
.filters-sidebar .cat-tabs {
  flex-direction: column;
  gap: 0.4rem;
}
.filters-sidebar .cat-tab {
  width: 100%;
  justify-content: flex-start;
  padding: 0.5rem 0.9rem;
}
.cat-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.1rem;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: white;
  color: var(--black);
  cursor: pointer;
  transition: all var(--transition);
}
.cat-tab:hover { border-color: var(--teal); color: var(--teal); }
.cat-tab.active { background: var(--teal); border-color: var(--teal); color: white; }

.search-form { margin-left: auto; }
.search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.search-input-wrap svg {
  position: absolute;
  left: 0.85rem;
  color: var(--gray);
  pointer-events: none;
}
#search-input {
  padding: 0.55rem 1rem 0.55rem 2.5rem;
  border: 1px solid var(--border);
  border-radius: 50px;
  font-family: inherit;
  font-size: 0.88rem;
  width: 240px;
  transition: all var(--transition);
  background: white;
}
#search-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59,174,169,0.12);
  width: 280px;
}

/* Botón filtros toggle (móvil) */
.catalog-toolbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.catalog-toolbar-right {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}
/* Buscador compacto dentro del toolbar */
.catalog-toolbar-right .search-form { margin: 0; }
.catalog-toolbar-right #search-input {
  padding: 0.5rem 1rem 0.5rem 2.3rem;
  font-size: 0.88rem;
  width: 220px;
  max-width: 100%;
}
@media (max-width: 600px) {
  .catalog-toolbar-right #search-input { width: 100%; }
  .catalog-toolbar-right { width: 100%; }
}

/* =============================================
   PÁGINA DE PRODUCTO (single-product.php) — rediseño branded
   Referencias: Etnia Barcelona (layout) + ALOHO identity (paleta, fonts, mint-bg).
   ============================================= */

.pdetail-section { padding-top: 2.5rem; padding-bottom: 4rem; }
/* Hero del producto: rompe el container estándar y deja solo 20px de margen lateral, así galería + info aprovechan todo el viewport */
.pdetail-section > .container {
  max-width: 100%;
  padding-left: 20px;
  padding-right: 20px;
}

.pdetail-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.pdetail-breadcrumb a { color: var(--gray); transition: color var(--transition); }
.pdetail-breadcrumb a:hover { color: var(--teal); }
.pdetail-breadcrumb span:last-child { color: var(--black); font-weight: 700; }

.pdetail-grid {
  display: grid;
  /* 2/3 galería + 1/3 info — siempre proporcional al ancho disponible */
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

/* ===== GALERÍA — grid 2 cols con todas las imágenes a tamaño grande (estilo Hawkers/Etnia) ===== */
.pdetail-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
/* Si solo hay 1 imagen, ocupa toda la fila */
.pdetail-gallery-item:only-child {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}
/* Si hay un número impar (>1) de imágenes, la última ocupa toda la fila */
.pdetail-gallery-item:nth-last-child(1):nth-child(odd):not(:only-child) {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.pdetail-gallery-item {
  position: relative;
  aspect-ratio: 1 / 1;
  background: transparent;
  overflow: hidden;
  cursor: zoom-in;
  padding: 0;
  border: none;
}
.pdetail-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.4s ease;
}
/* El scale ocurre dentro de overflow:hidden del padre → la imagen "crece" visualmente sin que los bordes de la celda se muevan ni invadan las celdas vecinas */
.pdetail-gallery-item:hover img { transform: scale(1.03); }

/* ===== INFO + CTA (columna derecha sticky) ===== */
.pdetail-info {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pdetail-headline { display: flex; flex-direction: column; gap: 0.5rem; }
.pdetail-brand-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-fun); /* Tutti Frutti */
  font-size: 0.95rem;
  background: var(--fuchsia);
  color: #fff;
  padding: 0.25rem 0.85rem;
  border-radius: 50px;
  letter-spacing: 0.02em;
}
.pdetail-name {
  font-family: var(--font-title); /* Magical Time */
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 400;
  line-height: 1.1;
  color: var(--black);
  margin: 0;
}
.pdetail-cat-badge {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--teal);
  background: var(--mint-bg);
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  transition: background 0.25s ease;
}
.pdetail-cat-badge:hover { background: var(--mint); color: var(--teal); }

.pdetail-price {
  font-family: var(--font-body);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--black);
  margin: 0;
}
.pdetail-price .woocommerce-Price-amount { color: inherit; }
.pdetail-price del { color: var(--gray); font-size: 1.4rem; margin-right: 0.5rem; font-weight: 500; }
.pdetail-price ins { color: var(--coral); text-decoration: none; }

.pdetail-stock {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  align-self: flex-start;
  padding: 0.3rem 0.8rem;
  border-radius: 50px;
}
.pdetail-stock--ok   { background: rgba(59, 174, 169, 0.12); color: var(--teal); }
.pdetail-stock--low  { background: rgba(255, 142, 120, 0.18); color: var(--coral); }
.pdetail-stock--out  { background: rgba(255, 104, 118, 0.15); color: #ff6876; }

.pdetail-desc {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.7;
}
.pdetail-desc p { margin: 0 0 0.5rem; }
.pdetail-desc p:last-child { margin-bottom: 0; }

/* ===== ACORDEONES (Detalles · Medidas · Referencia · Envío) ===== */
.pdetail-accordions {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
}
.pdetail-accordion { border-bottom: 1px solid var(--border); }
.pdetail-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--black);
  user-select: none;
}
.pdetail-accordion summary::-webkit-details-marker,
.pdetail-accordion summary::marker { display: none; }
.pdetail-accordion-chevron { transition: transform 0.25s ease; color: var(--black); }
.pdetail-accordion[open] > summary .pdetail-accordion-chevron { transform: rotate(180deg); }
.pdetail-accordion-content {
  padding: 0 0 1.25rem;
  color: var(--gray);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: pdetail-acc-fade 0.25s ease;
}
@keyframes pdetail-acc-fade {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Detalle: lista material/género */
.pdetail-detail-list {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.pdetail-detail-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--black);
}
.pdetail-detail-list li span { color: var(--gray); }
.pdetail-detail-list li strong { font-weight: 700; }

/* Medidas: lista con icono + label + valor */
.pdetail-measures-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.pdetail-measures-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  align-items: center;
  gap: 1rem;
}
/* Contenedor cuadrado para que el SVG (viewBox 1200x1200) pueda escalar sin dejar márgenes laterales */
.pdetail-measure-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
}
.pdetail-measure-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}
.pdetail-measure-text { display: flex; flex-direction: column; gap: 0.1rem; }
.pdetail-measure-text strong {
  font-weight: 700;
  color: var(--black);
  font-size: 0.95rem;
}
.pdetail-measure-text span {
  color: var(--gray);
  font-size: 0.95rem;
}

/* Referencia */
.pdetail-sku-line { margin: 0.25rem 0 0; color: var(--gray); font-size: 0.9rem; }
.pdetail-sku-line strong { color: var(--black); font-weight: 700; letter-spacing: 0.02em; }

/* Envío y devoluciones */
.pdetail-conditions {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pdetail-conditions li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.pdetail-cond-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background: var(--mint-bg);
  color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pdetail-conditions li span:not(.pdetail-cond-icon) {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.pdetail-conditions strong { color: var(--black); font-weight: 700; font-size: 0.9rem; }
.pdetail-conditions small { color: var(--gray); font-size: 0.82rem; line-height: 1.45; }

/* Form de compra */
.pdetail-buy-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.pdetail-qty {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.pdetail-qty label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--black);
}
.pdetail-qty-control {
  display: inline-flex;
  align-items: center;
  border: 2px solid var(--border);
  border-radius: 50px;
  overflow: hidden;
  background: #fff;
}
.pdetail-qty-btn {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  background: transparent;
  transition: background 0.25s ease, color 0.25s ease;
}
.pdetail-qty-btn:hover { background: var(--mint-bg); color: var(--teal); }
.pdetail-qty-input {
  width: 48px;
  height: 38px;
  text-align: center;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  color: var(--black);
  background: transparent;
}
.pdetail-qty-input:focus { outline: none; }
.pdetail-qty-input::-webkit-inner-spin-button,
.pdetail-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Botones primario y secundario — pildora ancho completo */
.pdetail-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
}
.pdetail-btn:active { transform: scale(0.98); }
.pdetail-btn-primary {
  background: var(--fuchsia);
  color: #fff;
}
.pdetail-btn-primary:hover {
  background: #2e2e2e;
  color: var(--fuchsia);
}
.pdetail-btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.pdetail-btn-secondary:hover {
  background: var(--black);
  color: #fff;
}
.pdetail-btn-price { font-weight: 800; }

/* Tarjeta contacto */
.pdetail-help {
  background: var(--mint-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.pdetail-help-text { display: flex; flex-direction: column; gap: 0.25rem; line-height: 1.4; }
.pdetail-help-text strong { font-size: 1rem; color: var(--black); }
.pdetail-help-text span { font-size: 0.85rem; color: var(--gray); }
.pdetail-help-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.pdetail-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: 50px;
  background: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--black);
  transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
  border: 2px solid transparent;
  min-width: 0;
}
.pdetail-help-btn:hover { transform: translateY(-1px); }
.pdetail-help-tel:hover { background: var(--teal); color: #fff; }
.pdetail-help-wa { background: #25D366; color: #fff; }
.pdetail-help-wa:hover { background: #1da851; color: #fff; }

/* ===== CONFIGURADOR CRISTALES GRADUADOS (Fase 2 — solo diseño) ===== */
.pdetail-rx {
  margin-top: 0.25rem;
  border: 2px solid var(--teal);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
}
.pdetail-rx[open] { box-shadow: 0 8px 30px rgba(59, 174, 169, 0.15); }
.pdetail-rx-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--mint-bg);
  color: var(--teal);
  transition: background 0.25s ease, color 0.25s ease;
  user-select: none;
}
.pdetail-rx-summary::-webkit-details-marker,
.pdetail-rx-summary::marker { display: none; }
.pdetail-rx-summary:hover { background: var(--teal); color: #fff; }
.pdetail-rx[open] .pdetail-rx-summary { background: var(--teal); color: #fff; }
.pdetail-rx-summary-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.pdetail-rx-summary-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: var(--teal);
  border-radius: 50%;
}
.pdetail-rx[open] .pdetail-rx-summary-icon { background: var(--mint-bg); }
.pdetail-rx-summary-text { display: flex; flex-direction: column; gap: 0.05rem; line-height: 1.3; min-width: 0; }
.pdetail-rx-summary-text strong { font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.pdetail-rx-summary-text small { font-size: 0.82rem; opacity: 0.85; }
.pdetail-rx-chevron { flex-shrink: 0; transition: transform 0.25s ease; }
.pdetail-rx[open] .pdetail-rx-chevron { transform: rotate(180deg); }

.pdetail-rx-panel {
  padding: 1.5rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: pdetail-acc-fade 0.25s ease;
}
.pdetail-rx-eye { display: flex; flex-direction: column; gap: 0.6rem; }
.pdetail-rx-eye-title {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--black);
  letter-spacing: 0.01em;
}
.pdetail-rx-table {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem 0.6rem;
}
.pdetail-rx-row {
  display: contents;
}
.pdetail-rx-th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--gray);
  text-align: center;
  padding-bottom: 0.2rem;
}
.pdetail-rx-th sup { color: var(--fuchsia); font-weight: 800; }
.pdetail-rx-td {
  display: block;
  min-width: 0;
}
.pdetail-rx-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6' fill='none' stroke='%233baea9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='1 1 5 5 9 1'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  background-size: 10px 6px;
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 1.4rem 0.55rem 0.7rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--black);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pdetail-rx-select:hover { border-color: var(--teal); }
.pdetail-rx-select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 174, 169, 0.18);
}
.pdetail-rx-footnote {
  margin: 0;
  font-size: 0.8rem;
  color: var(--gray);
  line-height: 1.5;
}
.pdetail-rx-footnote sup { color: var(--fuchsia); font-weight: 800; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Tablet/móvil: las 5 columnas se aprietan — bajamos paddings/fuente y, en muy estrecho, 2 cols */
@media (max-width: 600px) {
  .pdetail-rx-th { font-size: 0.7rem; letter-spacing: 0.03em; }
  .pdetail-rx-select { padding: 0.5rem 1.2rem 0.5rem 0.55rem; font-size: 0.82rem; }
  .pdetail-rx-summary { padding: 0.85rem 1rem; }
  .pdetail-rx-panel { padding: 1.25rem 1rem 1rem; }
}
@media (max-width: 460px) {
  .pdetail-rx-table {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 0.6rem;
  }
  .pdetail-rx-row { display: contents; }
  /* En 2 cols, cada th va encima de su td: pintamos los th como labels en línea con el select */
  .pdetail-rx-th {
    text-align: left;
    align-self: end;
    padding-bottom: 0.1rem;
  }
}

/* Productos relacionados */
.pdetail-related { padding: 4rem 0; background: #fafafa; }
.pdetail-related-header { display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; margin-bottom: 2rem; }
.pdetail-related-header h2 { font-family: var(--font-title); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0; }
/* Forzar 4 cards en una sola fila en desktop, ignorando el minmax(280px) por defecto */
.pdetail-related .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .pdetail-related .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 500px) {
  .pdetail-related .products-grid { grid-template-columns: 1fr; }
}

/* ===== LIGHTBOX MODAL ===== */
.pdetail-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.pdetail-lightbox.is-open {
  display: flex;
  animation: pdetail-fade-in 0.25s ease;
}
@keyframes pdetail-fade-in { from { opacity: 0; } to { opacity: 1; } }
.pdetail-lightbox-img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.pdetail-lightbox-close,
.pdetail-lightbox-nav {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s ease;
}
.pdetail-lightbox-close { top: 1.5rem; right: 1.5rem; }
.pdetail-lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.pdetail-lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }
.pdetail-lightbox-close:hover,
.pdetail-lightbox-nav:hover { background: rgba(255, 255, 255, 0.25); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .pdetail-grid { gap: 2rem; }
}
@media (max-width: 900px) {
  .pdetail-grid { grid-template-columns: 1fr; gap: 2rem; }
  .pdetail-info { position: static; }
}
@media (max-width: 600px) {
  .pdetail-section { padding-top: 1.5rem; }
  .pdetail-breadcrumb { margin-bottom: 1.5rem; font-size: 0.78rem; }
  .pdetail-gallery { grid-template-columns: 1fr; }
  .pdetail-gallery-item { aspect-ratio: 1 / 1; }
  .pdetail-gallery-item:only-child,
  .pdetail-gallery-item:nth-last-child(1):nth-child(odd):not(:only-child) {
    aspect-ratio: 1 / 1;
  }
  .pdetail-name { font-size: 1.8rem; }
  .pdetail-price { font-size: 1.8rem; }
  .pdetail-help-actions { flex-direction: column; }
  .pdetail-help-btn { flex: none; width: 100%; }
  .pdetail-lightbox-close,
  .pdetail-lightbox-nav { width: 40px; height: 40px; }
  .pdetail-lightbox-close { top: 0.75rem; right: 0.75rem; }
  .pdetail-lightbox-prev { left: 0.5rem; }
  .pdetail-lightbox-next { right: 0.5rem; }
}

/* =============================================
   CARRITO (carrito.html)
   ============================================= */
.carrito-empty {
  text-align: center;
  padding: 5rem 2rem;
}
.carrito-empty-icon {
  width: 80px;
  height: 80px;
  /* coral del branding (#ff8e78) al 20% — fondo suave que deja el icono coral destacar */
  background: rgba(255, 142, 120, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--coral);
}
.carrito-empty h2 { margin-bottom: 0.75rem; }
.carrito-empty p { color: var(--gray); margin-bottom: 2rem; }

.carrito-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2rem;
  align-items: start;
}
.carrito-items { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.carrito-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.carrito-header-row h2 { font-size: 1.3rem; }
.carrito-count {
  font-family: var(--font-title); /* Magical Time */
  font-size: 1rem;
  font-weight: 400;
  color: var(--gray);
}

/* Botones bajo la lista de productos del carrito — separados visualmente con borde superior */
.cart-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto auto;
  gap: 1rem;
  align-items: center;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.cart-item:last-child { border-bottom: none; }
.cart-item:hover { background: var(--light-gray); }
.cart-item-img {
  display: block;
  width: 90px;
  height: 68px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.cart-item-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cart-item-brand {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--teal);
  margin-bottom: 0.2rem;
}
.cart-item-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--black);
  display: block;
  margin-bottom: 0.3rem;
  transition: color var(--transition);
}
.cart-item-name:hover { color: var(--teal); }
.cart-item-attrs {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.cart-item-attrs span {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: var(--light-gray);
  border-radius: 50px;
  color: var(--gray);
  font-weight: 700;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.cart-item-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fuchsia);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}
.cart-item-remove {
  color: var(--gray);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all var(--transition);
}
.cart-item-remove:hover { background: #fff0f0; color: #c0392b; }

/* Resumen carrito */
.carrito-resumen {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.carrito-resumen h3 { font-size: 1.1rem; margin-bottom: 1.25rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.resumen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: 0.92rem;
}
.resumen-row strong { font-weight: 700; }
.resumen-total {
  padding-top: 1rem;
  margin-top: 0.5rem;
  border-top: 2px solid var(--border);
  font-size: 1.05rem;
  font-weight: 700;
}
.resumen-total strong { font-size: 1.2rem; color: var(--fuchsia); }
.btn-full { width: 100%; justify-content: center; margin-top: 1.25rem; }
.resumen-note {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 1rem;
  justify-content: center;
}
.link-btn {
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  color: var(--fuchsia);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.link-btn:hover { color: var(--teal); }

/* =============================================
   WC NOTICES — estilo branded ALOHO (error, success, info)
   El color se inyecta por tipo vía --notice-color; el resto del estilo es común a los tres.
   ============================================= */
/* WC enfoca el primer notice 500ms después de cargar (a11y, ver woocommerce.js → focus_populate_live_region). El outline negro por defecto del navegador se superpone al border hasta que se hace clic en cualquier parte. Lo matamos abajo. */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  background: transparent !important;
  border: 2px solid var(--notice-color) !important;
  border-radius: var(--radius-lg) !important;
  padding: 1rem 1.5rem !important;
  margin: 0 0 1.25rem !important;
  list-style: none !important;
  display: flex !important;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  color: var(--black);
  position: relative;
  outline: none !important;
}
.woocommerce-error   { --notice-color: #ff6876; }
.woocommerce-message { --notice-color: #d2ff77; }
.woocommerce-info    { --notice-color: #6aecee; }

.woocommerce-error:focus,    .woocommerce-error:focus-visible,
.woocommerce-message:focus,  .woocommerce-message:focus-visible,
.woocommerce-info:focus,     .woocommerce-info:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  color: var(--black);
  font-family: var(--font-body);
  list-style: none;
  margin: 0;
  padding: 0 !important;
  flex: 1;
  /* El glyph del icono (WC icon font) tiene whitespace asimétrico en su em-box → su centro óptico queda más bajo que el centro óptico del texto Lato. Empujamos solo el texto hacia abajo para igualar el alineamiento visual. */
  transform: translateY(1px);
}
/* Icono — sale del position:absolute por defecto de WC y se mete en flujo flex. Cada tipo de notice usa su propio glyph (WC asigna ! / check / i) y aquí solo lo coloreamos. */
.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--notice-color) !important;
  position: static !important;
  top: auto !important;
  left: auto !important;
  flex-shrink: 0;
  font-size: 1.2em;
}
/* Botón (ej. "Ver carrito") — pildora branded. Texto #2e2e2e (negro suavizado) para mantener buen contraste sobre los tres colores (rosa-coral, lima clara, cian clara). Borde del mismo color en estado base para no hacer layout shift al hover. */
.woocommerce-error a.button,    .woocommerce-error .button,
.woocommerce-message a.button,  .woocommerce-message .button,
.woocommerce-info a.button,     .woocommerce-info .button {
  background: var(--notice-color) !important;
  color: #2e2e2e !important;
  border: 2px solid var(--notice-color) !important;
  border-radius: 50px !important;
  padding: 0.45rem 1.4rem !important;
  font-family: var(--font-body) !important;
  font-weight: 700 !important;
  font-size: 0.88rem !important;
  text-decoration: none !important;
  margin-left: auto;
  text-shadow: none !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}
/* Hover: fondo #2e2e2e + texto del color del notice. Funciona bien con los tres porque rosa/lima/cian sobre negro suavizado tienen alto contraste. */
.woocommerce-error a.button:hover,    .woocommerce-error .button:hover,
.woocommerce-error a.button:focus,    .woocommerce-error .button:focus,
.woocommerce-message a.button:hover,  .woocommerce-message .button:hover,
.woocommerce-message a.button:focus,  .woocommerce-message .button:focus,
.woocommerce-info a.button:hover,     .woocommerce-info .button:hover,
.woocommerce-info a.button:focus,     .woocommerce-info .button:focus {
  background: #2e2e2e !important;
  color: var(--notice-color) !important;
  border-color: #2e2e2e !important;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gray);
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb span:last-child { color: var(--black); font-weight: 700; }

/* =============================================
   LOGIN / AUTH (login.html)
   ============================================= */
.auth-wrap { max-width: 520px; margin: 0 auto; }

.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.auth-tab {
  flex: 1;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gray);
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: all var(--transition);
}
.auth-tab.active { color: var(--teal); border-bottom-color: var(--teal); }
.auth-tab:hover { color: var(--teal); }

.auth-panel { display: none; }
.auth-panel.active { display: block; }

.auth-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2.5rem;
  box-shadow: var(--shadow);
}
.auth-card h2 { margin-bottom: 0.35rem; }
.auth-subtitle { color: var(--gray); font-size: 0.9rem; margin-bottom: 2rem; font-weight: 300; }

.auth-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.field-link { font-weight: 400; color: var(--teal); font-size: 0.82rem; }
.field-link:hover { text-decoration: underline; }
.form-field input,
.form-field textarea,
.form-field select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--black);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59,174,169,0.12);
}
.form-field textarea { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.password-wrap { position: relative; }
.password-wrap input { width: 100%; padding-right: 3rem; }
.toggle-pwd {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.toggle-pwd:hover { color: var(--teal); }
.remember-me {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  cursor: pointer;
}
.remember-me input { accent-color: var(--teal); }
.auth-msg {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  display: none;
}
.auth-msg:not(:empty) { display: block; }
.auth-msg.info { background: var(--mint-bg); color: var(--teal); border: 1px solid var(--mint); }
.auth-msg.error { background: #fff0f0; color: #c0392b; border: 1px solid #ffcdd2; }
.auth-switch {
  text-align: center;
  font-size: 0.88rem;
  color: var(--gray);
  margin-top: 1.5rem;
}

/* =============================================
   CHECKOUT (checkout.html)
   ============================================= */
.checkout-steps-bar {
  border-bottom: 1px solid var(--border);
  padding: 1.25rem 0;
}
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  max-width: 600px;
  margin: 0 auto;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gray);
}
.checkout-step.active { color: var(--teal); }
.checkout-step.done { color: var(--teal); }
.step-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  background: white;
}
.checkout-step.active .step-circle { border-color: var(--teal); background: var(--teal); color: white; }
.checkout-step.done .step-circle { border-color: var(--teal); background: var(--mint-bg); color: var(--teal); }
.checkout-step-line {
  flex: 1;
  height: 2px;
  background: var(--border);
  min-width: 40px;
  margin-bottom: 1.3rem;
}
.checkout-step-line.done { background: var(--teal); }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: start;
}
.checkout-form-col { display: flex; flex-direction: column; gap: 1.5rem; }
.checkout-block {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 2rem;
}
.checkout-block-title {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.checkout-block-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Métodos de pago */
.payment-notice {
  display: flex;
  gap: 0.75rem;
  background: var(--mint-bg);
  border: 1px solid var(--mint);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
  color: var(--teal);
  font-size: 0.88rem;
}
.payment-notice svg { flex-shrink: 0; color: var(--teal); }
.payment-notice p { color: var(--gray); font-weight: 300; margin-top: 0.25rem; font-size: 0.85rem; }
.payment-options { display: flex; flex-direction: column; gap: 0.75rem; }
.payment-option {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition);
}
.payment-option input { display: none; }
.payment-option.active { border-color: var(--teal); background: var(--mint-bg); }
.payment-option-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
}
.payment-option-inner svg { color: var(--teal); flex-shrink: 0; }
.payment-option-inner strong { display: block; margin-bottom: 0.15rem; }
.payment-option-inner span { font-size: 0.8rem; color: var(--gray); font-weight: 300; }

/* Mensaje checkout */
.checkout-msg {
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  margin-top: 0.75rem;
  display: none;
}
.checkout-msg:not(:empty) { display: block; }
.checkout-msg.error { background: #fff0f0; color: #c0392b; border: 1px solid #ffcdd2; }

/* Resumen checkout */
.checkout-summary-col { position: sticky; top: calc(var(--header-h) + 18px); }
.checkout-summary-box {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 1.5rem;
}
.checkout-summary-box h3 { font-size: 1rem; margin-bottom: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.ch-summary-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
.ch-summary-item:last-child { border-bottom: none; }
.ch-summary-item img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--light-gray);
}
.ch-item-name { font-size: 0.82rem; font-weight: 700; display: block; }
.ch-item-qty { font-size: 0.78rem; color: var(--gray); }
.ch-item-price { font-size: 0.88rem; font-weight: 700; color: var(--fuchsia); white-space: nowrap; }
.checkout-summary-totals { margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; }

/* Confirmación */
.checkout-confirmation { padding: 5rem 0; }
.confirmation-card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 3rem;
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.confirmation-icon {
  width: 80px;
  height: 80px;
  background: var(--mint-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  color: var(--teal);
}
.confirmation-card h2 { margin-bottom: 0.75rem; }
.confirmation-card p { color: var(--gray); margin-bottom: 2rem; font-weight: 300; }
.confirmation-contact { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* =============================================
   RESPONSIVE — TIENDA
   El colapso ficha producto / carrito / checkout a 1 columna ahora ocurre a
   900px (tablet vertical) en lugar de 1024px (tablet horizontal) para
   aprovechar el ancho extra de iPad horizontal.
   ============================================= */
@media (max-width: 900px) {
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary-col { position: static; }
  .carrito-layout { grid-template-columns: 1fr; }
  .carrito-resumen { position: static; }
}

@media (max-width: 768px) {
  .tienda-toolbar-section { position: static; }
  .tienda-top-bar { flex-direction: column; align-items: stretch; }
  .search-form { margin-left: 0; }
  #search-input { width: 100%; }
  #search-input:focus { width: 100%; }
  .cat-tabs { justify-content: center; }
  .catalog-layout { grid-template-columns: 1fr; }
  /* El drawer ya está aplicado por el @media 900px de arriba. */
  .filters-toggle { display: inline-flex; }
  .cart-item {
    grid-template-columns: 70px 1fr auto;
    grid-template-rows: auto auto;
  }
  .cart-item-img { width: 70px; height: 52px; }
  .cart-item-qty { grid-column: 2; }
  .cart-item-price { grid-column: 3; grid-row: 2; }
  .cart-item-remove { grid-column: 3; grid-row: 1; }
  .auth-card { padding: 1.5rem; }
  .form-row { grid-template-columns: 1fr; }
  .pdetail-specs { grid-template-columns: 1fr; }
  .nav-cart { display: flex !important; }
}

@media (max-width: 480px) {
  .cat-tab { font-size: 0.82rem; padding: 0.4rem 0.85rem; }
  .pdetail-thumbs { gap: 0.35rem; }
  .pdetail-thumb { width: 60px; height: 60px; }
  .carrito-header-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .checkout-steps { gap: 0; }
  .checkout-step span { display: none; }
  .checkout-step-line { min-width: 24px; }
}

/* =============================================
   HERO ANIMADO (parallax + text rotate)
   ============================================= */
.hero-animated {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--mint-bg);
  background-image: url("../img/recursos/fondo-hero.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% calc(100% + 50px);
  padding: 4rem 1rem;
}

/* Capa de imágenes flotantes */
.floating-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.floating-el {
  position: absolute;
  will-change: transform;
  transition: transform 0.2s ease-out;
  pointer-events: auto;
}
.float-img {
  display: block;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  background: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease;
  transform: rotate(var(--rot, 0deg)) scale(1);
}
.float-img:hover { transform: rotate(var(--rot, 0deg)) scale(1.05); }

.float-img-xs { width: 64px;  height: 48px;  }
.float-img-sm { width: 96px;  height: 64px;  }
.float-img-md { width: 160px; height: 112px; }
.float-img-lg { width: 160px; height: 160px; }
.float-img-xl { width: 176px; height: 176px; }

@media (min-width: 640px) {
  .float-img-xs { width: 96px;  height: 64px;  }
  .float-img-sm { width: 120px; height: 80px;  }
  .float-img-md { width: 192px; height: 144px; }
  .float-img-lg { width: 192px; height: 192px; }
  .float-img-xl { width: 256px; height: 256px; }
}
@media (min-width: 768px) {
  .float-img-xs { width: 112px; height: 80px;  }
  .float-img-md { width: 224px; height: 176px; }
  .float-img-lg { width: 240px; height: 240px; }
  .float-img-xl { width: 288px; height: 288px; }
}
@media (min-width: 1024px) {
  .float-img-xs { width: 128px; height: 96px;  }
  .float-img-md { width: 240px; height: 192px; }
  .float-img-lg { width: 256px; height: 256px; }
  .float-img-xl { width: 320px; height: 320px; }
}

.rot-neg-3  { --rot: -3deg; }
.rot-neg-4  { --rot: -4deg; }
.rot-neg-12 { --rot: -12deg; }
.rot-pos-6  { --rot: 6deg; }
.rot-pos-19 { --rot: 19deg; }

/* Contenido central */
.hero-animated-content {
  position: relative;
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  width: auto;
  pointer-events: auto;
  text-align: center;
}
.hero-animated-title {
  font-family: var(--font-title), 'Magical Time', cursive;
  font-size: clamp(1.8rem, 6vw, 5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--black);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}
.hero-animated-line {
  display: inline-flex;
  align-items: center;
  white-space: pre;
}
.hero-animated-fixed { padding-right: 0.5rem; }
.hero-animated-rotator {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--teal);
  font-family: var(--font-fun), 'Tutti Frutti', cursive;
  background: transparent;
  border-radius: 12px;
  padding: 0.18em 0.4rem 0.08em;
  line-height: 1.25;
  overflow: hidden;
  min-width: 0;
}
.rotator-word {
  display: inline-block;
  white-space: nowrap;
}
.rotator-word .rot-char {
  display: inline-block;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.45s cubic-bezier(.5,.05,.2,1), opacity 0.45s;
}
.rotator-word.entering .rot-char {
  transform: translateY(120%);
  opacity: 0;
}
.rotator-word.leaving .rot-char {
  transform: translateY(-120%);
  opacity: 0;
  transition: transform 0.45s cubic-bezier(.5,.05,.2,1), opacity 0.45s;
}

.hero-animated-sub {
  font-size: clamp(0.95rem, 1.6vw, 1.4rem);
  color: var(--gray);
  font-weight: 300;
  max-width: 760px;
  margin: 1.75rem auto 0;
  line-height: 1.55;
}
.hero-animated-ctas {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  .hero-animated-ctas { margin-top: 4rem; gap: 1.25rem; }
  .hero-animated-sub  { margin-top: 2.5rem; }
}
.hero-cta {
  display: inline-block;
  font-family: var(--font-title), 'Magical Time', cursive;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-size: clamp(0.95rem, 1.4vw, 1.2rem);
  box-shadow: 0 18px 40px -12px rgba(0,0,0,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.hero-cta:hover { transform: scale(1.05); }
.hero-cta-dark {
  background: #1a1a1a;
  color: #ffffff;
}
.hero-cta-teal {
  background: var(--teal);
  color: #ffffff;
}
@media (min-width: 768px) {
  .hero-cta { padding: 0.85rem 1.8rem; }
}

/* En móviles muy pequeños, reducimos imágenes y desactivamos parallax mouse (lo hace JS) */
@media (max-width: 480px) {
  .floating-el { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
  .floating-el { transition: none; }
  .rotator-word .rot-char { transition: none !important; }
}

/* =========================
   Contact Form 7 — casilla de consentimiento RGPD
   ========================= */
.form-consent {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.form-consent .wpcf7-list-item {
  margin: 0;
  display: block;
}
.form-consent .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--gray, #555);
  line-height: 1.4;
  font-weight: 400;
}
.form-consent input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0.15rem 0 0 0;
  flex-shrink: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
.form-consent a {
  color: var(--teal);
  text-decoration: underline;
  font-weight: 500;
}
.form-consent a:hover {
  color: var(--fuchsia);
}
/* Mensajes de error de CF7 (cuando no marca la casilla, etc.) */
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output {
  border: 1px solid var(--fuchsia);
  background: #fff0f5;
  color: var(--fuchsia);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
}
.wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid var(--teal);
  background: var(--mint-bg, #edfcf9);
  color: var(--teal);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.95rem;
}
.wpcf7-not-valid-tip {
  color: var(--fuchsia);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: block;
}

/* =========================
   Tarjetas de la página Contacto
   ========================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}
.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  /* Alinea las tarjetas con el primer campo del formulario (Nombre) — badge + mb-3 + h2 + divider */
  margin-top: 9rem;
}
@media (max-width: 900px) {
  .contact-info-col { margin-top: 0; }
}
.contact-card {
  background: #fff;
  border: 1px solid rgba(59, 174, 169, 0.15);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
  transition: all var(--transition);
}
.contact-card:hover {
  box-shadow: 0 8px 24px rgba(59, 174, 169, 0.12);
  transform: translateY(-2px);
}
.contact-card-teal {
  background: var(--mint-bg, #edfcf9);
  border-color: rgba(59, 174, 169, 0.3);
}
.contact-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.contact-card-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.contact-card-icon svg {
  width: 22px;
  height: 22px;
}
.contact-card h4 {
  font-family: var(--font-display, var(--font-body));
  margin: 0 0 0.25rem;
  font-size: 1.4rem;
  color: var(--black, #222);
  line-height: 1.2;
}
.contact-card-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--gray, #555);
  line-height: 1.5;
}
.hours-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  margin-top: 0.5rem;
  font-size: 0.92rem;
  color: var(--gray, #555);
}
.hours-grid span:nth-child(odd) {
  font-weight: 700;
  color: var(--black, #222);
}

/* Fila de redes sociales (Instagram + Facebook) dentro de la card "Llámanos o escríbenos" — 2 columnas en la fila 3 */
.contact-card-socials {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.contact-card-socials .btn {
  width: 100%;
  justify-content: center;
}

/* Botón Instagram — fucsia ALOHO. Mismo patrón de hover que .btn-whatsapp: bg más oscuro + translateY + box-shadow. */
.btn-instagram {
  background: #ff4486 !important;
  color: #fff !important;
  border: 2px solid #ff4486 !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-instagram:hover {
  background: #e63a76 !important;
  border-color: #e63a76 !important;
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 68, 134, 0.35);
}

/* Botón Facebook — cian ALOHO. Texto oscuro porque el cian es claro y necesita alto contraste. Mismo patrón de hover que WhatsApp/Instagram. */
.btn-facebook {
  background: #6aecee !important;
  color: #2e2e2e !important;
  border: 2px solid #6aecee !important;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn-facebook:hover {
  background: #4ad5d8 !important;
  border-color: #4ad5d8 !important;
  color: #2e2e2e !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(106, 236, 238, 0.45);
}

/* Botones a ancho completo dentro de la tarjeta Llámanos */
.contact-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 0.85rem 1rem;
}
.btn-block svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Botón WhatsApp (verde) */
.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border-color: #25D366;
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
}

/* =========================
   SHOP SHOWCASE — Carrusel infinito de tienda (home)
   ========================= */
.shop-showcase {
  background: linear-gradient(180deg, #fff 0%, var(--mint-bg, #edfcf9) 100%);
  position: relative;
  overflow: hidden;
}
.shop-carousel {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  /* Fade en los bordes para que las cards entren/salgan con suavidad */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.shop-carousel-track {
  display: flex;
  gap: 1.5rem;
  width: max-content;
  animation: shop-scroll 50s linear infinite;
  will-change: transform;
}
.shop-carousel:hover .shop-carousel-track,
.shop-carousel:focus-within .shop-carousel-track {
  animation-play-state: paused;
}
@keyframes shop-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-carousel-track { animation: none; }
  .shop-carousel { overflow-x: auto; }
}

.shop-card {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  text-decoration: none;
  color: inherit;
  transition: transform .25s ease, box-shadow .25s ease;
}
.shop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(59, 174, 169, 0.18);
}
.shop-card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--mint-bg, #edfcf9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  overflow: hidden;
  color: var(--teal);
}
.shop-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.shop-card-img svg {
  width: 55%;
  height: 55%;
  opacity: 0.55;
}
.shop-card-brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  font-weight: 700;
}
.shop-card-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  margin: 0.25rem 0 0.4rem;
  color: var(--black, #222);
  line-height: 1.25;
}
.shop-card-price {
  font-weight: 700;
  color: var(--fuchsia);
  font-size: 0.95rem;
  margin-top: auto;
}

.shop-showcase-cta {
  text-align: center;
  margin-top: 1rem;
}

/* Tarjeta "Dónde estamos" ancha con mapa integrado */
.contact-card-wide {
  padding: 1.4rem 1.5rem 0;
  overflow: hidden;
}
.contact-card-wide .map-wrapper {
  margin: 1.2rem -1.5rem 0;
  line-height: 0;
}
.contact-card-wide .map-wrapper iframe {
  display: block;
  width: 100%;
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
}

/* =========================================================================
   MI CUENTA (Account)
   Wrapper my-account.php + sidebar navigation.php.
   El hero usa .page-hero compartido con servicios/nosotras/contacto para
   mantener consistencia tipográfica y de color (Tutti Frutti + gradient mint).
   ========================================================================= */

/* Visitante (sin auth): card centrada */
.account-auth {
  max-width: 460px;
  margin: 0 auto;
}

/* Container 1200px (igual que el resto del sitio) pero SIN padding lateral en
   desktop, para que coincida exactamente con: 360px aire ext · menú · 24 gap
   · content · 360 aire ext (a viewport 1920px). En pantallas más estrechas
   restauramos el padding lateral para que el contenido no se pegue al borde. */
.account-page > .container {
  max-width: 1200px;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 1248px) {
  .account-page > .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* Grid 2 cols proporcional 1/4 + 3/4 con gap 24px exacto. */
.account-layout {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 24px;
  align-items: start;
}

/* Sidebar — uso selectores más específicos (.account-sidebar .woocommerce-MyAccount-navigation)
   para batir al CSS nativo de WC `.woocommerce-account .woocommerce-MyAccount-navigation li a`
   que ponía display:block y rompía el flex (icono+texto). */
.account-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.account-sidebar .woocommerce-MyAccount-navigation { width: 100%; }
.account-sidebar .woocommerce-MyAccount-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.account-sidebar .woocommerce-MyAccount-navigation li {
  margin: 0;
  list-style: none;
}
.account-sidebar .woocommerce-MyAccount-navigation li a {
  display: flex !important;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
  color: var(--black);
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.account-sidebar .woocommerce-MyAccount-navigation li a:hover {
  background: var(--mint-bg);
  color: var(--teal);
}
.account-sidebar .woocommerce-MyAccount-navigation li.is-active a,
.account-sidebar .woocommerce-MyAccount-navigation li.is-active a:hover {
  background: var(--teal);
  color: #fff;
}
.account-sidebar .account-nav-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.account-sidebar .account-nav-icon svg { display: block; }
.account-sidebar .account-nav-label {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contenido — width:100% + box-sizing:border-box explícitos para batir al CSS
   de WC `.woocommerce-MyAccount-content { width: 75% }` que limita el ancho. */
.account-content,
.woocommerce-MyAccount-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #d8dde3;
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  min-width: 0;
  float: none;
}
.account-sidebar,
.woocommerce-MyAccount-navigation {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
}

/* ===== Editor de dirección (form-edit-address.php) ===== */
.account-edit-form-head {
  margin-bottom: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.account-edit-form-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--teal);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  align-self: flex-start;
}
.account-edit-form-back:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-edit-form-title {
  font-family: var(--font-fun); /* Tutti Frutti, como h2 globales */
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  color: var(--black);
  margin: 0;
  line-height: 1.2;
}

/* Grid de 4 columnas dentro del editor — permite asignar anchos distintos
   (mitades, todo, 75/25). Compacto: gap 0.9/1rem. */
.account-edit-form .woocommerce-address-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem 1rem;
  margin-bottom: 0;
}
.account-edit-form .form-row {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0;
  grid-column: span 4; /* default: ancho completo */
}
.account-edit-form .form-row-first,
.account-edit-form .form-row-last {
  grid-column: span 2;          /* mitad cada uno */
}
.account-edit-form .form-row-wide,
.account-edit-form .form-row.notes {
  grid-column: 1 / -1;          /* ancho completo */
}
.account-edit-form .form-row-aloho-city {
  grid-column: span 3;          /* Ciudad 75% */
}
.account-edit-form .form-row-aloho-postcode {
  grid-column: span 1;          /* CP 25% */
}
/* Tablet vertical (768-900): pasa de 4 cols a 2 cols, manteniendo la regla
   "ciudad+CP" en una sola fila pero a mitad cada uno (vs el 75/25 desktop). */
@media (max-width: 900px) {
  .account-edit-form .woocommerce-address-fields__field-wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .account-edit-form .form-row,
  .account-edit-form .form-row-wide {
    grid-column: 1 / -1;
  }
  .account-edit-form .form-row-first,
  .account-edit-form .form-row-last,
  .account-edit-form .form-row-aloho-city,
  .account-edit-form .form-row-aloho-postcode {
    grid-column: span 1;
  }
}
/* Móvil: todo a 1 columna. */
@media (max-width: 600px) {
  .account-edit-form .woocommerce-address-fields__field-wrapper {
    grid-template-columns: 1fr;
  }
  .account-edit-form .form-row,
  .account-edit-form .form-row-first,
  .account-edit-form .form-row-last,
  .account-edit-form .form-row-wide,
  .account-edit-form .form-row-aloho-city,
  .account-edit-form .form-row-aloho-postcode {
    grid-column: 1 / -1;
  }
}

/* Labels y marcadores required/optional */
.account-edit-form .form-row label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
  margin: 0;
}
.account-edit-form .form-row .required {
  color: var(--fuchsia);
  font-weight: 800;
  text-decoration: none;
}
.account-edit-form .form-row .optional {
  color: var(--gray);
  font-size: 0.72rem;
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 0.3rem;
}

/* Select2 (WC usa select2 para país y estado/provincia).
   FIX: Select2 calcula su width en función del contenido seleccionado, así
   que cuando eliges un país largo el contenedor se desborda más ancho que
   los inputs. Forzamos width:100% al wrapper, box-sizing:border-box y
   border persistente en TODOS los estados (no solo open/focus). */
.account-edit-form .select2,
.account-edit-form .select2-container,
.account-edit-form .select2-container--default {
  width: 100% !important;
  max-width: 100% !important;
}
/* Igualar exactamente las dimensiones de los inputs normales (nombre, apellidos):
   padding 0.75rem 1rem + border 2px + font-size 0.95rem + line-height 1.4 */
.account-edit-form .select2-container--default .select2-selection--single {
  height: auto !important;
  min-height: 0 !important;
  padding: 0.75rem 2.4rem 0.75rem 1rem !important;  /* derecha más amplio para la flecha */
  border: 2px solid var(--border) !important;
  border-radius: 10px !important;
  background: #fff !important;
  box-sizing: border-box !important;
  outline: none !important;
  display: flex !important;
  align-items: center;
  line-height: 1.4 !important;
}
.account-edit-form .select2-container--default .select2-selection--single .select2-selection__rendered {
  display: block;
  line-height: 1.4 !important;
  padding: 0 !important;
  margin: 0 !important;
  color: var(--black) !important;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  flex: 1;
}
.account-edit-form .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--gray);
}
.account-edit-form .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50% !important;
  right: 0.6rem !important;
  height: 22px !important;
  transform: translateY(-50%);
}
.account-edit-form .select2-container--default.select2-container--open .select2-selection--single,
.account-edit-form .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: var(--teal) !important;
  box-shadow: 0 0 0 3px rgba(59, 174, 169, 0.18) !important;
}
/* Dropdown */
.select2-dropdown {
  border: 2px solid var(--teal) !important;
  border-radius: 10px !important;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.select2-search--dropdown .select2-search__field {
  border: 2px solid var(--border) !important;
  border-radius: 8px !important;
  padding: 0.5rem 0.75rem !important;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none !important;
}
.select2-search--dropdown .select2-search__field:focus {
  border-color: var(--teal) !important;
}
.select2-results__option--highlighted[aria-selected],
.select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--teal) !important;
  color: #fff !important;
}

/* Botón submit con espacio arriba — sin min-width, se ajusta al contenido */
.account-edit-form-actions {
  margin-top: 1.75rem;
}

/* Fieldset de "Cambiar contraseña" en edit-account — agrupado con fondo mint */
.account-edit-pass {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem 1.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--mint-bg);
}
.account-edit-pass legend {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  padding: 0 0.5rem;
  margin-left: -0.5rem;
  line-height: 1.2;
}
.account-edit-pass .woocommerce-address-fields__field-wrapper {
  margin-top: 1rem;
}

/* Página "Próximamente" de WC (patterns/coming-soon-store-only.php) — sólo
   tipografías branded, sin tocar el tamaño del texto. */
.wp-block-woocommerce-coming-soon .wp-block-heading {
  font-family: var(--font-fun) !important;
}
.wp-block-woocommerce-coming-soon p {
  font-family: var(--font-body) !important;
}

/* Texto explicativo bajo un input (e.g. "Así aparecerá tu nombre...") */
.form-row-hint {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: var(--gray);
  font-style: italic;
  font-weight: 400;
  line-height: 1.45;
  text-transform: none;
  letter-spacing: 0;
}

/* ===== Mis direcciones (resumen — my-address.php) ===== */
.account-address-intro {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}
.account-addresses {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
@media (max-width: 900px) {
  .account-addresses { grid-template-columns: 1fr; }
}
.account-address {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.account-address:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 18px rgba(59, 174, 169, 0.1);
}
.account-address-title {
  font-family: var(--font-fun); /* mismo h3 global Tutti Frutti */
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--black);
  margin: 0;
  line-height: 1.3;
}
.account-address-body {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--black);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.account-address-empty {
  color: var(--gray);
  font-style: italic;
}
/* Solo overrides de posición — el estilo viene 100% de .btn .btn-primary
   (mismo CSS que el botón "Pide cita" del navbar). */
.account-address-cta {
  align-self: flex-start;
  text-decoration: none;
}

/* ===== Dashboard (escritorio del usuario logueado) ===== */
.account-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.account-dashboard-greeting {
  font-family: var(--font-title); /* Magical Time */
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--black);
  margin: 0;
  line-height: 1.2;
}
.account-dashboard-switch {
  font-family: var(--font-body); /* Lato */
  font-size: 0.95rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.5;
}
.account-dashboard-switch strong {
  color: var(--black);
  font-weight: 700;
}
.account-dashboard-switch a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.account-dashboard-switch a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.account-dashboard-desc {
  font-family: var(--font-body); /* Lato */
  font-size: 0.95rem;
  color: var(--black);
  line-height: 1.65;
  margin: 0.5rem 0 0;
}

/* ===== Cards de auth (login / registro / lost-password) ===== */
.account-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
}
.account-card-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: 1.7rem;
  margin: 0 0 0.4rem;
  color: var(--black);
  line-height: 1.2;
}
.account-card-sub {
  margin: 0 0 1.5rem;
  color: var(--gray);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Form reutilizable (login, registro, lost, edit-account, edit-address) */
.account-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin: 0;
}
.account-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}
.account-field label {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--black);
}
.account-field label .req { color: var(--fuchsia); font-weight: 800; }
.account-input,
.woocommerce-MyAccount-content input[type="text"],
.woocommerce-MyAccount-content input[type="email"],
.woocommerce-MyAccount-content input[type="tel"],
.woocommerce-MyAccount-content input[type="password"],
.woocommerce-MyAccount-content input[type="url"],
.woocommerce-MyAccount-content input[type="number"],
.woocommerce-MyAccount-content select,
.woocommerce-MyAccount-content textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.account-input:focus,
.woocommerce-MyAccount-content input:focus,
.woocommerce-MyAccount-content select:focus,
.woocommerce-MyAccount-content textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 174, 169, 0.18);
}

.account-form-row-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0;
}
.account-remember {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: var(--black);
  cursor: pointer;
  user-select: none;
}
.account-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  cursor: pointer;
}
.account-link-muted {
  font-size: 0.85rem;
  color: var(--gray);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.account-link-muted:hover { color: var(--teal); }

/* Botón principal de forms de cuenta — pildora fucsia */
.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-align: center;
  border: 2px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.15s ease;
  width: 100%;
}
.account-btn:active { transform: scale(0.98); }
.account-btn-primary {
  background: var(--fuchsia);
  color: #fff;
}
.account-btn-primary:hover {
  background: #2e2e2e;
  color: var(--fuchsia);
}
.account-btn-secondary {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
}
.account-btn-secondary:hover {
  background: var(--black);
  color: #fff;
}

/* Switch login ↔ registro / volver a login en lost-password */
.account-switch {
  margin: 1.5rem 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--gray);
}
.account-switch a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}
.account-switch a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Mensaje informativo (e.g. "Te enviaremos un enlace…") */
.account-info {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--mint-bg);
  border-radius: 10px;
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

/* Password strength meter — WC lo inyecta debajo del input #password_1 en
   forms .register / .checkout / .edit-account / .lost_reset_password. Mientras
   no sea "good" o "strong", WC deshabilita el botón submit. Hay que verlo. */
.woocommerce-password-strength {
  margin: 0.4rem 0 0;
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  border-radius: 8px;
  text-align: center;
  letter-spacing: 0.02em;
}
.woocommerce-password-strength.short,
.woocommerce-password-strength.bad {
  background: rgba(255, 104, 118, 0.2);
  color: #d93146;
}
.woocommerce-password-strength.good {
  background: rgba(106, 236, 238, 0.25);
  color: #167b7d;
}
.woocommerce-password-strength.strong {
  background: rgba(210, 255, 119, 0.4);
  color: #3a6600;
}
.woocommerce-password-hint {
  display: block;
  margin-top: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--mint-bg);
  border-radius: 8px;
  font-size: 0.78rem;
  color: var(--gray);
  font-weight: 500;
  line-height: 1.45;
}

/* Botón deshabilitado por el strength meter */
.account-btn[disabled],
.account-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: var(--gray) !important;
  color: #fff !important;
}

/* Icono de confirmación (pantalla "te enviamos un email") */
.account-confirmation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mint-bg);
  color: var(--teal);
  border-radius: 50%;
}
.account-card-confirmation { text-align: center; }
.account-card-confirmation .account-card-title { font-size: 1.5rem; }
.account-card-confirmation .account-card-sub { margin-bottom: 0; max-width: none; }

/* Resetear los floats de form-row-first / form-row-last de WC dentro de Mi cuenta.
   Sin esto el form de reset-password sale en 2 columnas full-width flotadas en lugar de stacked en la card branded. */
.woocommerce-MyAccount-content .form-row-first,
.woocommerce-MyAccount-content .form-row-last,
.woocommerce-MyAccount-content .form-row-wide,
.account-auth .form-row-first,
.account-auth .form-row-last,
.account-auth .form-row-wide,
.account-card .form-row-first,
.account-card .form-row-last,
.account-card .form-row-wide {
  float: none;
  width: 100%;
  margin-right: 0;
  margin-left: 0;
}
.woocommerce-MyAccount-content .clear,
.account-auth .clear,
.account-card .clear { display: none; }

/* =========================================================================
   PEDIDOS — orders.php (tabla + badges + empty) y view-order.php (detalle)
   ========================================================================= */

/* ===== Tabla de pedidos (orders.php) ===== */
.account-orders-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.account-orders-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin: 0;
}
.account-orders-table thead th {
  background: var(--mint-bg);
  color: var(--black);
  text-align: left;
  padding: 0.95rem 1.1rem;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.account-orders-table tbody td,
.account-orders-table tbody th {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  text-align: left;
  font-weight: 500;
  color: var(--black);
}
.account-orders-table tbody tr:last-child td,
.account-orders-table tbody tr:last-child th { border-bottom: 0; }
.account-orders-table tbody tr:hover { background: rgba(237, 252, 249, 0.5); }
.account-orders-number {
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--teal);
  text-decoration: none;
  font-size: 1rem;
}
.account-orders-number:hover { color: var(--fuchsia); }
/* Wrapper flex de la columna "Acciones" — siempre en una sola línea (nowrap),
   alineado a la izquierda. El wrapper va dentro del td (no flex directo en td
   para no romper table-cell). */
.orders-actions-row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.35rem;
}
.orders-actions-row .order-action { flex-shrink: 0; }
.order-action-empty { color: var(--gray); font-size: 0.9rem; }

/* Botones pequeños (acciones de pedido + paginación) */
.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ===== Badges de estado ===== */
.order-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  line-height: 1.2;
  border: 1.5px solid transparent;
}
.order-status-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}
/* Procesando — teal */
.order-status-badge--processing {
  background: rgba(59, 174, 169, 0.18);
  color: #1c6c69;
  border-color: rgba(59, 174, 169, 0.5);
}
/* Completado — lima */
.order-status-badge--completed {
  background: rgba(210, 255, 119, 0.45);
  color: #4d6b13;
  border-color: rgba(154, 196, 51, 0.55);
}
/* En espera — amarillo */
.order-status-badge--on-hold {
  background: rgba(243, 255, 122, 0.5);
  color: #6b6a13;
  border-color: rgba(199, 209, 60, 0.55);
}
/* Pendiente de pago — coral */
.order-status-badge--pending {
  background: rgba(255, 142, 120, 0.22);
  color: #a3411d;
  border-color: rgba(255, 142, 120, 0.55);
}
/* Cancelado — fucsia */
.order-status-badge--cancelled {
  background: rgba(255, 68, 134, 0.18);
  color: #a31657;
  border-color: rgba(255, 68, 134, 0.55);
}
/* Fallido — rosa-coral */
.order-status-badge--failed {
  background: rgba(255, 104, 118, 0.2);
  color: #a3242f;
  border-color: rgba(255, 104, 118, 0.55);
}
/* Reembolsado — cian */
.order-status-badge--refunded {
  background: rgba(106, 236, 238, 0.22);
  color: #1b7a7c;
  border-color: rgba(106, 236, 238, 0.55);
}
.order-status-badge--checkout-draft {
  background: rgba(0, 0, 0, 0.06);
  color: #6c6c6c;
  border-color: rgba(0, 0, 0, 0.12);
}

/* ===== Empty state (sin pedidos) ===== */
.account-orders-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem;
  background: var(--mint-bg);
  border: 1px dashed rgba(59, 174, 169, 0.4);
  border-radius: var(--radius-lg);
  gap: 0.75rem;
}
.account-orders-empty-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(59, 174, 169, 0.15);
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.account-orders-empty-title {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--black);
  margin: 0;
}
.account-orders-empty-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.6;
  margin: 0 0 1rem;
  max-width: 440px;
}

/* ===== Paginación ===== */
.account-orders-pagination {
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.account-orders-pagination-info {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--gray);
}

/* ===== view-order.php — header + back link + notas ===== */
.account-view-order { display: flex; flex-direction: column; gap: 1.75rem; }

.account-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--teal);
  text-decoration: none;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: color 0.2s ease, transform 0.2s ease;
}
.account-back-link:hover {
  color: var(--fuchsia);
  transform: translateX(-2px);
}

.account-view-order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--mint-bg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(59, 174, 169, 0.2);
}
.account-view-order-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
}
.account-view-order-number {
  font-family: var(--font-title); /* Magical Time */
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  color: var(--black);
  margin: 0;
  line-height: 1;
}
.account-view-order-date {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray);
  font-weight: 500;
}

.account-view-order-subtitle,
.account-order-section-title {
  font-family: var(--font-fun); /* Tutti Frutti */
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--black);
  margin: 0 0 1rem;
  line-height: 1.3;
}

/* Timeline de notas */
.account-view-order-notes {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.account-order-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.account-order-timeline-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  position: relative;
  padding-left: 0.5rem;
}
.account-order-timeline-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 0.4rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(59, 174, 169, 0.15);
}
.account-order-timeline-content { flex: 1; }
.account-order-timeline-date {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.25rem;
}
.account-order-timeline-text {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--black);
  line-height: 1.55;
}
.account-order-timeline-text p { margin: 0; }

/* ===== Tabla de items + totales (order-details.php) ===== */
.account-order-details { display: block; }

.account-order-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
}
.account-order-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.95rem;
  margin: 0;
}
/* Reset agresivo: WC inyecta `.woocommerce table.shop_table th/td { border-top:
   1px ... }` con specificity (0,2,1) que pisa nuestros selectores (0,1,1).
   Para no entrar en guerra de specificity usamos !important en TODOS los borders
   de esta tabla — una sola fuente de verdad, intención clara. */
.account-order-table th,
.account-order-table td {
  border: 0 !important;
}
.account-order-table thead th {
  background: var(--mint-bg);
  text-align: left;
  padding: 0.95rem 1.1rem;
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--black);
  border-bottom: 1px solid var(--border) !important;
}
.account-order-table thead .account-order-table__total { text-align: right; }
.account-order-table tbody td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--border) !important;
  vertical-align: top;
  color: var(--black);
}
.account-order-table tbody tr:last-child td { border-bottom: 0 !important; }
.account-order-table tbody .account-order-item__total { text-align: right; white-space: nowrap; font-weight: 700; }

.account-order-item__product { display: flex; gap: 0.95rem; align-items: flex-start; }
.account-order-item__thumb {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--mint-bg);
  display: flex;
  align-items: center;
  justify-content: center;
}
.account-order-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.account-order-item__body {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}
.account-order-item__name {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 1rem;
  color: var(--black);
  line-height: 1.3;
}
.account-order-item__name a {
  color: var(--black);
  text-decoration: none;
}
.account-order-item__name a:hover { color: var(--teal); }
.account-order-item__qty {
  font-size: 0.85rem;
  color: var(--gray);
}
.account-order-item__qty strong { color: var(--black); }
.account-order-item .wc-item-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--gray);
}
.account-order-item .wc-item-meta p { margin: 0; }

/* Totales (tfoot) */
.account-order-table__totals th,
.account-order-table__totals td {
  background: rgba(237, 252, 249, 0.4);
  font-size: 0.92rem;
  padding: 0.7rem 1.1rem !important;
  border-bottom: 1px solid var(--border) !important;
  color: var(--black);
}
/* Separador único entre items (tbody) y totales (tfoot) */
.account-order-table__totals tr:first-child th,
.account-order-table__totals tr:first-child td {
  border-top: 1px solid var(--border) !important;
}
.account-order-table__totals th {
  font-family: var(--font-body);
  font-weight: 700;
  text-align: left;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gray);
}
.account-order-table__totals td { text-align: right; font-weight: 700; }
.account-order-table__totals tr:last-child th,
.account-order-table__totals tr:last-child td {
  border-bottom: 0 !important;
  font-size: 1.05rem;
  color: var(--black);
}
.account-order-table__totals .account-order-table__total-row--order_total th,
.account-order-table__totals .account-order-table__total-row--order_total td {
  background: var(--mint-bg);
  font-size: 1.05rem;
  color: var(--black);
}

/* Acciones del pedido (Pagar / Cancelar) bajo la tabla */
.account-order-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  justify-content: flex-end;
}

/* ===== Datos del cliente (order-details-customer.php) ===== */
.account-order-customer {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-top: 1.5rem;
}
.account-order-customer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.account-order-customer-grid.has-shipping {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .account-order-customer-grid.has-shipping { grid-template-columns: 1fr; }
}
.account-order-customer-card {
  background: var(--mint-bg);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.account-order-customer-card__head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.account-order-customer-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.account-order-customer-card__title {
  font-family: var(--font-fun);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--black);
  margin: 0;
  line-height: 1.2;
}
.account-order-customer-card__body {
  font-family: var(--font-body);
  font-style: normal;
  font-size: 0.92rem;
  color: var(--black);
  line-height: 1.6;
  margin: 0;
}
.account-order-customer-card__body p { margin: 0; }
.account-order-customer-card__contact {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem !important;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.88rem;
}
.account-order-customer-card__contact a {
  color: inherit;
  text-decoration: none;
}
.account-order-customer-card__contact a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ===== Responsive PEDIDOS ===== */
@media (max-width: 768px) {
  .account-orders-table thead { display: none; }
  .account-orders-table,
  .account-orders-table tbody,
  .account-orders-table tr,
  .account-orders-table td,
  .account-orders-table th { display: block; width: 100%; }
  .account-orders-table tbody tr {
    border-bottom: 1px solid var(--border);
    padding: 0.85rem 0;
  }
  .account-orders-table tbody tr:last-child { border-bottom: 0; }
  .account-orders-table tbody td,
  .account-orders-table tbody th {
    border-bottom: 0;
    padding: 0.35rem 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    text-align: right;
  }
  .account-orders-table tbody td::before,
  .account-orders-table tbody th::before {
    content: attr(data-title);
    font-weight: 800;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--gray);
    text-align: left;
    flex-shrink: 0;
  }
  .account-orders-table .woocommerce-orders-table__cell-order-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding-top: 0.6rem;
  }
  .account-orders-table .woocommerce-orders-table__cell-order-actions::before { display: none; }
  /* En mobile el wrapper apila los botones al ancho completo de la tarjeta. */
  .orders-actions-row {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.4rem;
  }
  .orders-actions-row .order-action { width: 100%; justify-content: center; margin: 0; }

  .account-view-order-header { padding: 1.25rem; }

  .account-order-customer { padding: 1.25rem; }
}

@media (max-width: 600px) {
  .account-order-item__product { flex-direction: row; gap: 0.75rem; }
  .account-order-item__thumb { width: 52px; height: 52px; }
  .account-order-item__name { font-size: 0.95rem; }
  .account-order-table thead .account-order-table__total { font-size: 0.75rem; }
  .account-order-table tbody td { padding: 0.75rem 0.85rem; }
  .account-orders-empty { padding: 2rem 1rem; }
  .account-orders-empty-icon { width: 68px; height: 68px; }
  .account-orders-empty-title { font-size: 1.2rem; }
}

/* =========================================================================
   RESPONSIVE — pulido tras cambios recientes
   Breakpoints estándar:
   - 1024px → tablet horizontal
   - 900px  → tablet vertical
   - 600px  → móvil
   - 400px  → móvil pequeño
   ========================================================================= */

/* Anchors no quedan ocultos bajo el header sticky al saltar con # */
html { scroll-padding-top: calc(var(--header-h) - 2px); }

/* ===== TABLET HORIZONTAL (≤1024px) ===== */
@media (max-width: 1024px) {
  /* Padding vertical de sección reducido: antes seguía con 5rem hasta 768px,
     dejaba demasiado aire en iPad. */
  .section { padding: 4rem 0; }

  /* Página Servicios: en tablet el icono placeholder gigante quedaba ridículo */
  .service-detail-placeholder { font-size: clamp(4rem, 8vw, 6rem); }

  /* Productos relacionados (ficha): pasa a 3 cols para evitar quedarse en 4 apretadas */
  .pdetail-related .products-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .shop-card { flex: 0 0 220px; }
  .values-grid { --cell: 200px; gap: 1.25rem; }
}

/* ===== TABLET VERTICAL (≤900px) ===== */
@media (max-width: 900px) {
  /* Header: el botón "Pide cita" se aprieta junto al menú largo. Lo escondemos
     antes que el hamburguesa (768) para que respire. */
  .nav-cta .btn { display: none; }

  /* Showcase tienda: carrusel un poco más rápido y cards algo más pequeñas */
  .shop-card { flex: 0 0 200px; }
  .shop-carousel-track { animation-duration: 40s; }
  .shop-showcase .section-header h2 br { display: none; }

  /* Contact: el grid pasa a 1 col por la regla anterior @900px (línea 2899);
     reseteamos el margin-top de la columna derecha */
  .contact-info-col { margin-top: 0; }

  /* Banner mágico — h2 sin <br> visible para flujo natural */
  .magic-banner-content h2 br { display: inline; }

  /* Mi cuenta: sidebar pasa arriba (1 columna). Nav se convierte en scroll horizontal de píldoras */
  .account-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .account-sidebar { position: static; }
  .account-nav ul {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  .account-nav li { flex-shrink: 0; }
  .account-nav li a { padding: 0.55rem 0.9rem; font-size: 0.85rem; }
  .account-content { padding: 1.5rem 1.5rem; }
}

/* ===== MÓVIL (≤768px) ===== */
@media (max-width: 768px) {
  /* Mobile nav: padding horizontal más compacto en móvil */
  .mobile-nav { padding: 1.25rem 1.25rem 2rem; }
  .header { z-index: 1001; }   /* asegurar que el header tape el inicio del mobile-nav */

  /* Section padding más compacto */
  .section { padding: 3.5rem 0; }

  /* Showcase tienda — cards aún más pequeñas */
  .shop-card { flex: 0 0 175px; padding: 0.85rem; }
  .shop-carousel { margin: 1.5rem 0; }
  .shop-carousel-track { animation-duration: 35s; gap: 1rem; }

  /* Reviews: a 1 col en móvil (antes saltaba directamente solo a 480px) */
  .reviews-grid { grid-template-columns: 1fr; }

  /* Productos relacionados a 2 cols (ya tenía regla; reforzamos) */
  .pdetail-related .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* Contact strip: en móvil los botones a ancho completo (1 col) para que no
     quede el botón huérfano en fila 2 */
  .contact-strip-actions { flex-direction: column; align-items: stretch; min-width: 0; }
  .contact-strip-actions .btn { width: 100%; justify-content: center; }

  /* Iframe del mapa: bajar altura */
  .contact-card-wide .map-wrapper iframe { height: 300px; }
  .contact-card-wide { padding: 1.1rem 1.25rem 0; }
  .contact-card-wide .map-wrapper { margin: 1rem -1.25rem 0; }

  /* Tarjetas de contacto: padding más compacto */
  .contact-card { padding: 1.2rem 1.25rem; }
  .contact-card-icon { width: 38px; height: 38px; }
  .contact-card-icon svg { width: 19px; height: 19px; }
  .contact-card h4 { font-size: 1.2rem; }
  .btn-block { padding: 0.75rem 1rem; font-size: 0.9rem; }

  /* CF7 formulario: filas a 1 columna ya está; padding del textarea ajustado */
  .form-consent { padding: 0.5rem 0; }
}

/* ===== MÓVIL ESTÁNDAR (≤600px) ===== */
@media (max-width: 600px) {
  .values-grid { --cell: 200px; gap: 0.85rem; }

  /* Cards de valores en móvil:
     - height: auto + min-height = el contenido NUNCA se corta, pero mantienen
       silueta de "tarjeta vertical" cuando el texto es corto.
     - justify-content: flex-start = el icono arranca arriba y el texto fluye
       hacia abajo (antes con center se desbordaba por ambos extremos).
     - texto descriptivo más legible: weight 400, color más oscuro que --gray,
       tamaño 0.82rem (antes 0.78rem font-weight 300 → casi invisible). */
  .values-grid .value-card {
    height: auto;
    min-height: 200px;
    padding: 1.5rem 1rem;
    justify-content: flex-start;
    gap: 0.6rem;
  }
  .value-card p {
    font-size: 0.82rem;
    font-weight: 400;
    color: #4a5260;
    line-height: 1.5;
  }
  .value-card h4 { font-size: 1.05rem; }
  .value-icon { font-size: 1.6rem; }

  /* Mask-image más sutil en móvil (antes recortaba demasiado las cards de los bordes) */
  .values-grid {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 1.5%, #000 98.5%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 1.5%, #000 98.5%, transparent);
  }

  /* Mi cuenta: content sin tanto padding (el hero comparte estilos con .page-hero) */
  .account-content { padding: 1.4rem 1.25rem; border-radius: var(--radius); }

  /* Container con menos padding lateral para no comerse el ancho útil */
  .container { padding: 0 1rem; }
}

/* ===== MÓVIL PEQUEÑO (≤460px) — configurador OD/OI más estrecho ===== */
@media (max-width: 460px) {
  /* Reducir padding-right de selects para que valores "+10.00" / "-3.25" no se trunquen */
  .pdetail-rx-select {
    padding: 0.45rem 1.1rem 0.45rem 0.45rem;
    font-size: 0.78rem;
    background-position: right 0.45rem center;
  }
}

/* ===== MÓVIL PEQUEÑO (≤400px) ===== */
@media (max-width: 400px) {
  /* Header se reduce: logo más bajo + ajustamos la altura efectiva */
  :root { --header-h: 76px; }
  .nav { height: 76px; gap: 1rem; }
  .nav-logo img, .nav-logo .custom-logo { height: 44px; max-width: 160px; }

  .values-grid { --cell: 185px; gap: 0.75rem; }
  .values-grid .value-card { min-height: 185px; }
  .shop-card { flex: 0 0 160px; }
  .contact-card-wide .map-wrapper iframe { height: 250px; }
}
