/* =============================================
   ADMA LABORATORIO — Custom Design System
   Inspired by NOESIS® Cosmetics layout
   ============================================= */

/* ══════════════════════════════════════════════
   ANIMACIONES GLOBALES
   ══════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

/* Keyframes */
@keyframes admaFadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes admaFadeInLeft {
  from { opacity: 0; transform: translateX(-24px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes admaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes admaExpandX {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes admaPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245,197,24,0.45); }
  50%       { box-shadow: 0 0 0 8px rgba(245,197,24,0); }
}
@keyframes admaSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Sidebar entrance */
#adma-sidebar { animation: admaFadeInLeft 0.5s 0.1s ease both; }

/* Hero CSS-driven animations (sin JS, disparan al cargar) */
.adma-catalog-hero span[style*="letter-spacing"],
.adma-pkg-hero span[style*="letter-spacing"] {
  animation: admaFadeIn 0.6s ease both;
}
.adma-catalog-hero h1,
.adma-pkg-hero h1 {
  animation: admaFadeInUp 0.7s 0.1s ease both;
}
.adma-catalog-hero div[style*="width:48px"],
.adma-catalog-hero div[style*="width: 48px"],
.adma-pkg-hero div[style*="width:40px"],
.adma-pkg-hero div[style*="width: 40px"] {
  animation: admaExpandX 0.5s 0.4s ease both;
  transform-origin: left center;
}
.adma-catalog-hero p,
.adma-pkg-hero p { animation: admaFadeInUp 0.7s 0.3s ease both; }

/* Botones — hover micro-interactions */
button[style*="background:#F5C518"],
a[style*="background:#F5C518"],
#btn-add-cart, #pkg-btn-cart, .adma-vol-pill {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease !important;
}
button[style*="background:#F5C518"]:hover,
a[style*="background:#F5C518"]:hover,
#btn-add-cart:hover, #pkg-btn-cart:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(245,197,24,0.35) !important;
}
button[style*="background:transparent"]:hover,
#btn-quote:hover, #pkg-btn-quote:hover {
  background: rgba(48,49,51,0.06) !important;
  transform: translateY(-1px) !important;
}

/* CTA pulse en botón principal */
a[style*="padding:14px 40px"],
a[style*="padding:13px 36px"] {
  animation: admaPulse 2.4s 1.5s ease infinite;
  transition: transform 0.18s ease !important;
}
a[style*="padding:14px 40px"]:hover,
a[style*="padding:13px 36px"]:hover {
  transform: translateY(-2px) !important;
  animation: none !important;
}

/* Tarjetas de producto — transición mejorada */
.adma-product-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}
.adma-pkg-card {
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s cubic-bezier(0.4,0,0.2,1) !important;
}
.adma-pkg-card:hover { transform: translateY(-3px) !important; }

/* Tarjetas de envase inline (selector de fórmula) */
.adma-pkg-option {
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease !important;
}
.adma-pkg-option:hover { transform: translateY(-2px) !important; }

/* Vol pills */
.adma-vol-pill { transition: all 0.18s ease !important; }
.adma-vol-pill:hover { transform: translateY(-1px) !important; }

/* Swatches de color */
.adma-swatch { transition: border-color 0.2s ease, transform 0.2s ease !important; }
.adma-swatch:hover { transform: scale(1.15) !important; }

/* Links de catálogo relacionados */
a[onmouseover] { transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important; }

/* Tabs */
.adma-tab-btn { transition: color 0.2s ease, border-bottom-color 0.2s ease !important; }

/* Select / Input focus */
select, input[type="text"], input[type="email"], input[type="number"], textarea {
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}
select:focus, input:focus, textarea:focus {
  outline: none !important;
  border-color: #F5C518 !important;
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15) !important;
}

/* Sidebar nav hover — ya tiene border-left, agregamos fondo suave */
.adma-nav-list li a {
  transition: color 0.2s ease, border-left-color 0.2s ease, background 0.2s ease !important;
}
.adma-nav-list li a:hover,
.adma-nav-list li.current-menu-item a {
  background: rgba(245,197,24,0.05) !important;
}

/* Sidebar logo hover scale */
.adma-sidebar-logo a { transition: opacity 0.2s ease !important; }
.adma-sidebar-logo a:hover { opacity: 0.8 !important; }

/* ══ Sidebar cart button ══ */
.adma-sidebar-cart {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 48px);
  margin: 0 24px 16px;
  padding: 11px 16px;
  background: rgba(245,197,24,0.08);
  border: 1px solid rgba(245,197,24,0.2);
  border-radius: var(--adma-radius);
  color: var(--adma-white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}
.adma-sidebar-cart:hover {
  background: rgba(245,197,24,0.16);
  border-color: var(--adma-accent);
  transform: translateY(-1px);
  color: var(--adma-white);
}
.adma-cart-icon {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--adma-accent);
}
.adma-cart-count {
  position: absolute;
  top: -7px;
  right: -8px;
  background: var(--adma-accent);
  color: #000;
  font-size: 9px;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  font-family: var(--adma-font);
}
.adma-cart-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--adma-white);
}

/* ---------- CSS VARIABLES ---------- */
:root {
  --adma-black:    #000000;
  --adma-dark:     #141618;
  --adma-text:     #303133;
  --adma-muted:    #777777;
  --adma-bg:       #F7F7F7;
  --adma-white:    #FFFFFF;
  --adma-accent:   #F5C518;   /* Amarillo ADMA */
  --adma-sidebar:  252px;
  --adma-radius:   2px;
  --adma-font:     'Comfortaa', system-ui, -apple-system, sans-serif;
  --adma-serif:    'Playfair Display', Georgia, serif;
  --adma-trans:    all 0.3s ease;
}

/* ---------- RESET BASICS ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; padding: 0; font-family: var(--adma-font); background: var(--adma-white); color: var(--adma-text); }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* ---------- SIDEBAR ---------- */
#adma-sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--adma-sidebar);
  height: 100vh;
  background: var(--adma-black);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 0 32px;
  overflow-y: auto;
  transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Logo / Wordmark */
.adma-sidebar-logo {
  width: 100%;
  margin-bottom: 48px;
  text-align: center;
}
.adma-sidebar-logo a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 4px;
}
.adma-wordmark {
  font-family: var(--adma-font);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 6px;
  color: var(--adma-white);
  line-height: 1;
}
.adma-tagline {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 3px;
  color: var(--adma-accent);
  text-transform: uppercase;
  line-height: 1;
}

/* Nav */
.adma-sidebar-nav { width: 100%; flex: 1; }
.adma-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
}
.adma-nav-list li { width: 100%; }
.adma-nav-list li a {
  display: block;
  padding: 13px 32px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--adma-muted);
  transition: var(--adma-trans);
  border-left: 2px solid transparent;
}
.adma-nav-list li a:hover,
.adma-nav-list li.current-menu-item a,
.adma-nav-list li.current_page_item a {
  color: var(--adma-white);
  border-left-color: var(--adma-accent);
}

/* Social icons */
.adma-sidebar-social {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}
.adma-sidebar-social a {
  color: var(--adma-muted);
  transition: var(--adma-trans);
}
.adma-sidebar-social a:hover { color: var(--adma-accent); }

/* Copyright */
.adma-sidebar-copy {
  font-size: 9px;
  color: #444;
  letter-spacing: 0.5px;
  text-align: center;
}

/* ---------- MAIN CONTENT OFFSET ----------
   Solo usamos padding-left en el body canvas. No margin-left en divs hijos
   para no sumar con el padding propio de Elementor containers. ---------- */
body.has-adma-sidebar .site,
body.has-adma-sidebar #page,
body.has-adma-sidebar .ct-container-full {
  margin-left: var(--adma-sidebar) !important;
}
/* Canvas template (Elementor full-width): offset via padding-left en body,
   NO margin-left adicional en .elementor para evitar doble desplazamiento */
body.elementor-template-canvas.has-adma-sidebar > div:not(#adma-sidebar):not(.adma-hamburger):not(.adma-overlay) {
  margin-left: 0 !important;
}

/* Override Blocksy header (hidden — using custom sidebar) */
.ct-header, #header { display: none !important; }

/* ---------- HAMBURGER (mobile) ---------- */
.adma-hamburger {
  display: none;
  position: fixed;
  top: 20px;
  left: 16px;
  z-index: 10000;
  background: var(--adma-black);
  border: none;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  border-radius: 4px;
}
.adma-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--adma-white);
  transition: var(--adma-trans);
  transform-origin: center;
}
.adma-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.adma-hamburger.open span:nth-child(2) { opacity: 0; }
.adma-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Overlay */
.adma-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
}
.adma-overlay.active { display: block; }

/* ---------- BUTTONS ---------- */
.btn-adma,
.wp-block-button__link,
.elementor-button {
  display: inline-block;
  padding: 13px 31px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: var(--adma-radius);
  transition: var(--adma-trans);
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--adma-font);
}
.btn-adma-primary {
  background: var(--adma-accent);
  color: var(--adma-black);
  border-color: var(--adma-accent);
}
.btn-adma-primary:hover {
  background: transparent;
  color: var(--adma-accent);
}
.btn-adma-outline-white {
  background: transparent;
  color: var(--adma-white);
  border-color: var(--adma-white);
}
.btn-adma-outline-white:hover {
  background: var(--adma-white);
  color: var(--adma-black);
}
.btn-adma-outline-dark {
  background: transparent;
  color: var(--adma-text);
  border-color: var(--adma-text);
}
.btn-adma-outline-dark:hover {
  background: var(--adma-text);
  color: var(--adma-white);
}

/* ---------- SECTION STYLES ---------- */
.adma-section { padding: 100px 80px; }
.adma-section-dark { background: var(--adma-black); color: var(--adma-white); }
.adma-section-gray { background: var(--adma-bg); }
.adma-section-white { background: var(--adma-white); }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 { font-family: var(--adma-font); }
.adma-hero-h1 {
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--adma-white);
}
.adma-section-h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 700;
  color: var(--adma-text);
  line-height: 1.1;
}
.adma-serif-title {
  font-family: var(--adma-serif);
  font-weight: 900;
}
.adma-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--adma-accent);
  margin-bottom: 16px;
  display: block;
}
p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--adma-muted);
}

/* ---------- CARDS (servicios) ---------- */
.adma-card {
  background: var(--adma-white);
  border-radius: 8px;
  padding: 40px 36px;
  transition: var(--adma-trans);
}
.adma-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.adma-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  color: var(--adma-accent);
}
.adma-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--adma-text);
  text-align: center;
  margin: 0 0 12px;
}
.adma-card p {
  font-size: 14px;
  text-align: center;
  margin: 0;
}

/* ---------- ACCENT LINE ---------- */
.adma-accent-line {
  width: 48px;
  height: 3px;
  background: var(--adma-accent);
  margin: 20px 0;
}
.adma-accent-line.centered { margin: 20px auto; }

/* ---------- GRID CATEGORIES ---------- */
.adma-cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #EAEAEA;
}
.adma-cat-item {
  padding: 40px 20px;
  text-align: center;
  border-right: 1px solid #EAEAEA;
  border-bottom: 1px solid #EAEAEA;
  transition: var(--adma-trans);
}
.adma-cat-item:hover { background: var(--adma-accent); }
.adma-cat-item:hover h3 { color: var(--adma-black); }
.adma-cat-item:nth-child(3n) { border-right: none; }
.adma-cat-item svg { margin: 0 auto 16px; color: var(--adma-text); }
.adma-cat-item h3 { font-size: 15px; font-weight: 600; color: var(--adma-text); margin: 0; }

/* ---------- PROCESS STEPS ---------- */
.adma-step-number {
  font-size: 48px;
  font-weight: 900;
  color: var(--adma-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.adma-step-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--adma-text);
  margin-bottom: 8px;
}

/* ---------- STATS BAR ---------- */
.adma-stats-bar {
  display: flex;
  gap: 0;
  background: var(--adma-accent);
}
.adma-stat-item {
  flex: 1;
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid rgba(0,0,0,0.1);
}
.adma-stat-item:last-child { border-right: none; }
.adma-stat-number {
  font-size: 40px;
  font-weight: 900;
  color: var(--adma-black);
  line-height: 1;
  margin-bottom: 6px;
}
.adma-stat-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--adma-black);
  opacity: 0.7;
}

/* ---------- REVIEWS / TESTIMONIALS ---------- */
.adma-review-card {
  background: var(--adma-white);
  border: 1px solid #EAEAEA;
  border-radius: var(--adma-radius);
  padding: 32px;
}
.adma-review-stars { color: var(--adma-accent); font-size: 16px; margin-bottom: 12px; }
.adma-review-text { font-size: 14px; color: var(--adma-text); font-style: italic; margin-bottom: 16px; }
.adma-reviewer-name { font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--adma-text); }

/* ---------- CONTACT / FOOTER ---------- */
.adma-footer-dark {
  background: var(--adma-black);
  color: var(--adma-white);
  padding: 80px;
}
.adma-footer-dark input,
.adma-footer-dark textarea,
.adma-footer-dark select {
  background: transparent;
  border: none;
  border-bottom: 1px solid #333;
  padding: 12px 0;
  color: var(--adma-white);
  width: 100%;
  font-family: var(--adma-font);
  font-size: 14px;
  outline: none;
  transition: var(--adma-trans);
}
.adma-footer-dark input:focus,
.adma-footer-dark textarea:focus {
  border-bottom-color: var(--adma-accent);
}

/* ---------- MOBILE ---------- */
@media (max-width: 960px) {
  /* Sidebar oculto en mobile usando `left` — independiente de animation/transform.
     Evita conflictos con fill-mode de admaFadeInLeft y con CSS de Blocksy. */
  #adma-sidebar {
    left: calc(-1 * var(--adma-sidebar)) !important;
    animation: none !important;
    transform: none !important;
  }
  #adma-sidebar.open {
    left: 0 !important;
  }

  /* Mostrar hamburguesa */
  .adma-hamburger { display: flex; }

  /* ── CRÍTICO: cancelar el padding-left del body canvas en mobile ──
     Sin esto, body tiene padding-left:252px aunque el sidebar esté oculto,
     lo que genera el panel blanco y desplaza todo el contenido a la derecha. */
  body.elementor-template-canvas.has-adma-sidebar {
    padding-left: 0 !important;
  }

  /* Cancelar cualquier margin-left residual en wrappers de Blocksy */
  body.has-adma-sidebar .site,
  body.has-adma-sidebar #page,
  body.has-adma-sidebar .ct-container-full,
  body.has-adma-sidebar #main-container,
  body.has-adma-sidebar > div:not(#adma-sidebar):not(.adma-hamburger):not(.adma-overlay) {
    margin-left: 0 !important;
  }

  /* Evitar scroll horizontal si el sidebar sobresale momentáneamente */
  html, body { overflow-x: hidden; }

  .adma-section { padding: 60px 24px; }
  .adma-cat-grid { grid-template-columns: repeat(2, 1fr); }
  .adma-footer-dark { padding: 60px 24px; }
  .adma-stats-bar { flex-direction: column; }
}
@media (max-width: 580px) {
  .adma-cat-grid { grid-template-columns: 1fr; }
}

/* === SIDEBAR IMPROVEMENTS === */
.adma-wordmark {
  font-size: 32px !important;
  letter-spacing: 8px !important;
}
.adma-tagline {
  font-size: 8px !important;
  letter-spacing: 4px !important;
  margin-top: 2px !important;
}
.adma-sidebar-logo {
  margin-bottom: 56px !important;
}
.adma-sidebar-social {
  gap: 20px !important;
  margin-bottom: 28px !important;
}
.adma-sidebar-social a svg {
  width: 16px !important;
  height: 16px !important;
}

/* === HERO: full viewport height centered === */
.elementor-section.adma-hero-section {
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
}

/* === STATS: padding top === */
.adma-stats-bar .adma-stat-item {
  padding-top: 40px !important;
  padding-bottom: 40px !important;
}

/* === SERVICES GRID: make sure icons show === */
.adma-cat-item svg,
.adma-card-icon svg {
  width: 48px !important;
  height: 48px !important;
  display: block !important;
  margin: 0 auto 16px !important;
}

/* === SECTION HEADINGS: font Comfortaa === */
h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: "Comfortaa", system-ui, sans-serif !important;
}

/* === BODY TEXT: Comfortaa === */
body, p, .elementor-widget-text-editor p {
  font-family: "Comfortaa", system-ui, sans-serif !important;
}

/* === CONTENT AREA: offset sidebar — canvas template ===
   El padding-left SOLO aplica en desktop (≥961px).
   En mobile se cancela en el bloque @media (max-width:960px) de arriba. === */
html, body { margin: 0; padding: 0; }

@media (min-width: 961px) {
  body.elementor-template-canvas.has-adma-sidebar {
    padding-left: 252px !important;
  }
  /* Blocksy non-canvas pages (catalog, WooCommerce archive, etc.) */
  body.has-adma-sidebar:not(.elementor-template-canvas) #main-container {
    margin-left: 252px !important;
  }
}

/* Anular margin-left del .elementor (ya lo cubre el padding del body) */
body.elementor-template-canvas.has-adma-sidebar .elementor,
body.elementor-template-canvas.has-adma-sidebar [data-elementor-type="wp-page"] {
  margin-left: 0 !important;
  padding-left: 0 !important;
}

/* Neutralizar el padding lateral que Elementor añade en secciones boxed
   para que el contenido arranque justo donde termina el sidebar */
body.elementor-template-canvas.has-adma-sidebar .elementor-section-boxed > .elementor-container {
  max-width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.elementor-template-canvas.has-adma-sidebar .elementor-column-gap-default {
  --e-column-margin-right: 0px;
  --e-column-margin-left: 0px;
}

/* ── HERO + CTA OVERLAY ── */
.elementor-section.adma-hero-section,
.elementor-section.adma-cta-section {
  position: relative !important;
}
.elementor-section.adma-hero-section::before,
.elementor-section.adma-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
  pointer-events: none;
}
.elementor-section.adma-hero-section > .elementor-container,
.elementor-section.adma-cta-section > .elementor-container {
  position: relative;
  z-index: 2;
}

/* ── PORTFOLIO CATEGORY GRID ── */
.adma-cat-grid .adma-cat-card {
  transition: box-shadow 0.2s, border-color 0.2s;
}
.adma-cat-grid .adma-cat-card:hover {
  box-shadow: inset 0 0 0 2px #C9A84C !important;
}
@media (max-width: 767px) {
  .adma-cat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 479px) {
  .adma-cat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── TESTIMONIALS GRID — responsive ── */
.adma-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .adma-testimonials-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── BLOG CARDS — responsive ── */
.adma-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 900px) {
  .adma-blog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 580px) {
  .adma-blog-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── COTIZADOR RESPONSIVE ── */
@media (max-width: 767px) {
  #cot-product-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  #cot-step-3 .adma-cot-svc-grid,
  #cot-step-3 > div:first-of-type + div + div {
    grid-template-columns: 1fr !important;
  }
  .adma-cot-qty {
    min-width: 100px !important;
  }
}

/* ── LANGUAGE SELECTOR ── */
.adma-lang-selector {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  padding: 0 4px;
}
.adma-lang-selector a {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #555;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.adma-lang-selector a:hover,
.adma-lang-selector a.active {
  color: #C9A84C;
}
.adma-lang-sep {
  color: #333;
  font-size: 10px;
}


/* ── QUIÉNES SOMOS — responsive col */
@media (max-width: 900px) {
  .elementor-section .elementor-column[style*="min-height"] {
    min-height: 300px !important;
  }
}

/* ── INLINE CONTACT FORM ── */
.adma-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 900px) {
  .adma-contact-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── BRANDS: 5-col grid responsive ── */
.adma-brands-row > div[style*="grid-template-columns:repeat(5,1fr)"] {
  display: grid !important;
  grid-template-columns: repeat(5, 1fr) !important;
}
@media (max-width: 900px) {
  .adma-brands-row > div {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 580px) {
  .adma-brands-row {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .adma-brands-row > div {
    grid-template-columns: repeat(3, 1fr) !important;
    min-width: 480px;
  }
}

/* ── CTA OVERLAY — force via data-id as backup ── */
[data-id="s8afcxa0"].elementor-section {
  position: relative !important;
}
[data-id="s8afcxa0"].elementor-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.60);
  z-index: 1;
  pointer-events: none;
}
[data-id="s8afcxa0"].elementor-section > .elementor-container {
  position: relative;
  z-index: 2;
}

/* ── MOBILE TYPOGRAPHY — tamaños legibles en telefono ── */
@media (max-width: 960px) {

  /* Hero titles */
  .adma-hero-h1,
  .elementor-section.adma-hero-section .elementor-heading-title,
  .elementor-section.adma-hero-section h1,
  .elementor-section.adma-hero-section h2 {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }

  /* Section h2 headings */
  .adma-section-h2,
  .elementor-heading-title {
    font-size: 22px !important;
    line-height: 1.3 !important;
  }

  /* H3 subsection titles */
  .elementor-heading-title[class*="h3"],
  h3.elementor-heading-title {
    font-size: 18px !important;
  }

  /* Body / paragraph text */
  p, .elementor-widget-text-editor p,
  .elementor-widget-text-editor div {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }

  /* Stat numbers */
  .adma-stat-number {
    font-size: 28px !important;
  }
  .adma-stat-label {
    font-size: 10px !important;
  }

  /* Process step numbers */
  .adma-step-number {
    font-size: 36px !important;
  }
  .adma-step-title {
    font-size: 15px !important;
  }

  /* Cards */
  .adma-card h3 {
    font-size: 15px !important;
  }
  .adma-card p {
    font-size: 13px !important;
  }

  /* Category grid items */
  .adma-cat-item h3 {
    font-size: 13px !important;
  }
}

@media (max-width: 580px) {
  /* Extra small phones */
  .adma-hero-h1,
  .elementor-section.adma-hero-section .elementor-heading-title,
  .elementor-section.adma-hero-section h1,
  .elementor-section.adma-hero-section h2 {
    font-size: 26px !important;
  }

  .adma-section-h2,
  .elementor-heading-title {
    font-size: 20px !important;
  }
}

/* ══════════════════════════════════════════════
   WOOCOMMERCE — CARRITO (cart page)
   ══════════════════════════════════════════════ */

/* Page wrapper */
.woocommerce-cart .entry-content,
.woocommerce-cart .ct-container,
.woocommerce-cart .ct-container-full {
  padding: 0 !important;
  max-width: 100% !important;
}
.woocommerce-cart #main-container {
  background: #f7f7f7;
}

/* Hero header */
.woocommerce-cart .woocommerce::before {
  content: 'Carrito de compra';
  display: block;
  font-family: var(--adma-font);
  font-size: 28px;
  font-weight: 900;
  color: var(--adma-dark);
  padding: 48px 48px 8px;
  letter-spacing: -0.5px;
}
@media (max-width: 768px) {
  .woocommerce-cart .woocommerce::before { padding: 80px 20px 8px; font-size: 22px; }
}

/* Main WooCommerce wrapper */
.woocommerce-cart .woocommerce {
  background: #f7f7f7;
  padding: 0 48px 60px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 900px) {
  .woocommerce-cart .woocommerce {
    grid-template-columns: 1fr;
    padding: 0 20px 48px;
  }
}

/* Cart form ocupa columna izquierda */
.woocommerce-cart-form { grid-column: 1; }

/* Cart totals ocupa columna derecha */
.cart-collaterals { grid-column: 2; }
@media (max-width: 900px) {
  .woocommerce-cart-form,
  .cart-collaterals { grid-column: 1; }
}

/* ── Tabla de productos ── */
table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #eaeaea;
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--adma-font);
}
table.shop_table thead {
  background: var(--adma-dark);
}
table.shop_table thead th {
  font-family: var(--adma-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #777;
  padding: 14px 20px;
  border: none;
  text-align: left;
}
table.shop_table thead th.product-remove { width: 40px; }
table.shop_table tbody tr {
  border-bottom: 1px solid #eaeaea;
  transition: background 0.15s ease;
}
table.shop_table tbody tr:last-child { border-bottom: none; }
table.shop_table tbody tr:hover { background: #fafafa; }
table.shop_table td {
  padding: 20px;
  vertical-align: middle;
  border: none;
  font-size: 13px;
  color: var(--adma-text);
}

/* Thumbnail */
td.product-thumbnail { width: 80px; padding-right: 0; }
td.product-thumbnail img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 4px;
  background: #f7f7f7;
  padding: 4px;
}

/* Nombre del producto */
td.product-name a {
  font-size: 14px;
  font-weight: 700;
  color: var(--adma-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
td.product-name a:hover { color: var(--adma-accent); }

/* Meta del producto (configuración) */
.woocommerce-cart-form .wc-item-meta,
.cart_item .wc-item-meta {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.wc-item-meta li,
.wc-item-meta .wc-item-meta-label {
  font-size: 11px;
  color: #999;
  line-height: 1.7;
  display: flex;
  gap: 6px;
}
.wc-item-meta li strong,
.wc-item-meta .wc-item-meta-label { color: #555; font-weight: 600; }

/* Precio */
td.product-price .amount,
td.product-subtotal .amount,
.price .ct-product-multiply-symbol { color: var(--adma-accent) !important; font-weight: 700; }
.ct-product-multiply-symbol { font-size: 12px; color: #aaa !important; margin: 0 2px; }

/* Cantidad */
td.product-quantity .qty {
  width: 72px;
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: var(--adma-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--adma-dark);
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
td.product-quantity .qty:focus {
  border-color: var(--adma-accent);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
  outline: none;
}

/* Botón eliminar */
a.remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  color: #bbb !important;
  transition: color 0.2s ease, background 0.2s ease;
}
a.remove:hover {
  color: #e53935 !important;
  background: #fdecea !important;
}
a.remove .ct-icon { width: 12px; height: 12px; fill: currentColor; }

/* ── Acciones (cupón + actualizar) ── */
td.actions {
  background: #fafafa;
  border-top: 1px solid #eaeaea !important;
  padding: 16px 20px !important;
}
.coupon { display: flex; gap: 8px; align-items: center; }
.coupon input.input-text {
  padding: 10px 14px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: var(--adma-font);
  font-size: 12px;
  color: var(--adma-text);
  width: 180px;
  transition: border-color 0.2s ease;
}
.coupon input.input-text:focus { border-color: var(--adma-accent); outline: none; }
.coupon .button,
button[name="update_cart"] {
  padding: 10px 20px;
  background: transparent;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-family: var(--adma-font);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--adma-text);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.coupon .button:hover,
button[name="update_cart"]:hover {
  border-color: var(--adma-accent);
  background: rgba(245,197,24,0.06);
}
button[name="update_cart"] { margin-left: auto; display: block; }

/* ── Panel de totales (derecha) ── */
.cart_totals {
  background: var(--adma-dark);
  border-radius: 4px;
  overflow: hidden;
  position: sticky;
  top: 20px;
}
.cart_totals h2 {
  font-family: var(--adma-font);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
  padding: 24px 28px 16px;
  margin: 0;
  border-bottom: 1px solid #1e1e1e;
}
.cart_totals table.shop_table {
  background: transparent;
  border: none;
  border-radius: 0;
}
.cart_totals table.shop_table thead { display: none; }
.cart_totals table.shop_table tbody tr { border-bottom: 1px solid #1e1e1e; }
.cart_totals table.shop_table tbody tr:hover { background: transparent; }
.cart_totals table.shop_table td,
.cart_totals table.shop_table th {
  padding: 14px 28px;
  color: #aaa;
  font-size: 12px;
  border: none;
}
.cart_totals table.shop_table th {
  font-weight: 600;
  color: #666;
  font-size: 11px;
  letter-spacing: 0.5px;
  width: 40%;
}
.cart_totals .order-total th,
.cart_totals .order-total td { padding-top: 18px; padding-bottom: 18px; }
.cart_totals .order-total th {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #555;
}
.cart_totals .order-total .amount {
  font-size: 28px !important;
  font-weight: 900 !important;
  color: var(--adma-accent) !important;
  font-family: var(--adma-font);
}
.cart_totals .cart-subtotal .amount,
.cart_totals .woocommerce-Price-amount { color: #ccc !important; }
.cart_totals .order-total .woocommerce-Price-amount { color: var(--adma-accent) !important; }

/* Botón checkout */
.wc-proceed-to-checkout { padding: 0 28px 28px; }
.wc-proceed-to-checkout a.checkout-button,
.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: var(--adma-accent);
  color: #000 !important;
  font-family: var(--adma-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-align: center;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wc-proceed-to-checkout a.checkout-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245,197,24,0.35);
}

/* Carrito vacío */
.woocommerce-cart .cart-empty {
  text-align: center;
  padding: 80px 40px;
  font-size: 16px;
  color: #999;
  font-family: var(--adma-font);
}
.woocommerce-cart .return-to-shop {
  text-align: center;
  margin-top: 20px;
}
.woocommerce-cart .return-to-shop .button {
  display: inline-block;
  padding: 13px 32px;
  background: var(--adma-accent);
  color: #000;
  font-family: var(--adma-font);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  text-decoration: none;
  transition: transform 0.18s ease;
}
.woocommerce-cart .return-to-shop .button:hover { transform: translateY(-2px); }

/* Notices WooCommerce */
.woocommerce-cart .woocommerce-message,
.woocommerce-cart .woocommerce-info,
.woocommerce-cart .woocommerce-error {
  border-top: 3px solid var(--adma-accent) !important;
  background: #fff !important;
  font-family: var(--adma-font) !important;
  font-size: 13px !important;
  border-radius: 2px !important;
  margin-bottom: 20px !important;
  padding: 14px 20px !important;
  color: var(--adma-text) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06) !important;
}

@media (max-width: 768px) {
  .cart_totals { position: static; }
  table.shop_table thead { display: none; }
  table.shop_table tbody td { display: block; padding: 10px 16px; }
  table.shop_table tbody td::before {
    content: attr(data-title) ': ';
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    display: inline;
  }
  td.product-thumbnail { display: none !important; }
  .coupon { flex-wrap: wrap; }
  .coupon input.input-text { width: 100%; }
}
