/* =====================================================================
   ee-bridge.css — styles the markup printed by the Etiquetas Especiales plugin
   (classes .ee-*, see plugins/etiquetas-especiales/includes/class-ee-content.php and
   class-ee-shortcodes.php) with the tokens of design-system.css, so that pages imported
   with `wp etiquetas import` look like the static preview. Loaded by the child theme
   after design-system.css; the plugin's own etiquetas-especiales.css is dequeued.
   Added 2026-10-17 (MR) after the first full run of the deploy chain showed the
   plugin markup rendered with the plugin's generic styles.
   ===================================================================== */

/* ---- page frame (used when a plugin template prints <main class="ee-main">) ---- */
.ee-main { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding: var(--sp-6) var(--gutter) var(--section-y); color: var(--c-text); }
.ee-header { padding-block: 0 var(--sp-6); }
.ee-title { margin: var(--sp-2) 0 var(--sp-4); }
.ee-hero { margin: 0 0 var(--sp-6); border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); }
.ee-hero__img { width: 100%; height: auto; display: block; }
.ee-intro { font-size: var(--fs-lg); color: var(--c-gray-700); max-width: 72ch; margin-bottom: var(--sp-6); }
.ee-intro p:last-child { margin-bottom: 0; }
.ee-content { max-width: 100%; }

/* ---- sections ---- */
.ee-section { padding-block: var(--sp-8); border-top: 1px solid var(--c-border); margin: 0; }
.ee-content > .ee-section:first-child, .ee-content > .wp-block-html:first-child .ee-section { border-top: 0; padding-top: 0; }
.ee-section__title { margin-bottom: var(--sp-5); }
.ee-section__intro { color: var(--c-text-muted); font-size: var(--fs-lg); max-width: 72ch; }
.ee-note { font-size: var(--fs-sm); color: var(--c-text-muted); margin: var(--sp-3) 0 0; }
.ee-empty { color: var(--c-text-muted); }

/* ---- breadcrumbs (plugin shortcode / templates) ---- */
.ee-breadcrumbs { font-size: var(--fs-sm); color: var(--c-text-muted); padding-block: var(--sp-3); }
.ee-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-2); margin: 0; padding: 0; list-style: none; }
.ee-breadcrumbs li { display: inline-flex; align-items: center; gap: var(--sp-2); margin: 0; }
.ee-breadcrumbs li + li::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid var(--c-gray-500); border-bottom: 1.5px solid var(--c-gray-500); transform: rotate(-45deg); flex: none; }
.ee-breadcrumbs a { color: var(--c-text-muted); text-decoration: none; display: inline-block; padding-block: var(--sp-1); }
.ee-breadcrumbs a:hover { color: var(--c-primary-800); text-decoration: underline; }
.ee-breadcrumbs [aria-current="page"] { color: var(--c-ink); font-weight: 550; }
@media (max-width: 639px) {
  .ee-breadcrumbs li { max-width: 100%; min-width: 0; }
  .ee-breadcrumbs li:not(:nth-last-child(-n+2)) { display: none; }
  .ee-breadcrumbs li:nth-last-child(2)::before { display: none; }
  .ee-breadcrumbs li a, .ee-breadcrumbs [aria-current="page"] { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
}

/* ---- cards (familias, tipos, sectores, related) ---- */
.ee-cards { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); margin: 0 0 var(--sp-4); }
.ee-cards--cols-2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ee-cards--cols-4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
@media (min-width: 1100px) { .ee-cards--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ee-cards__group { font-size: var(--fs-lg); color: var(--c-text-muted); margin: var(--sp-6) 0 var(--sp-3); }
.ee-card { position: relative; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-6); background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, border-color .15s ease; }
.ee-card:hover, .ee-card:focus-within { box-shadow: var(--shadow); border-color: var(--c-primary-200); }
.ee-card__media { margin: calc(-1 * var(--sp-6)) calc(-1 * var(--sp-6)) 0; aspect-ratio: 4 / 3; min-height: 0; overflow: hidden; background: var(--c-gray-100); border-bottom: 1px solid var(--c-border); }
.ee-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ee-card__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--c-primary-50); color: var(--c-primary-800); }
.ee-card__icon-svg { width: 26px; height: 26px; }
@media (max-width: 639px) { .ee-card__media { aspect-ratio: 2 / 1; } }
.ee-card__title { font-size: var(--fs-lg); margin: 0; }
.ee-card__title a { color: inherit; text-decoration: none; }
.ee-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ee-card__title a:hover { color: var(--c-primary-800); }
.ee-card__text { margin: 0; color: var(--c-gray-700); font-size: var(--fs-sm); }
.ee-card--media .ee-card__text { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.ee-card__more { margin-top: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--c-primary-600); text-decoration: none; }
.ee-card__more::after { content: " \2192"; }
/* Phones: the imported card grids were single-column and made the home/hub very long.
   Two compact columns, description hidden on the home page, 2:1 media on the hub. */
@media (max-width: 639px) {
  .ee-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); }
  .ee-card { padding: var(--sp-4); gap: var(--sp-2); }
  .ee-card__icon { width: 36px; height: 36px; }
  .ee-card__icon-svg { width: 22px; height: 22px; }
  .ee-card__title { font-size: var(--fs-base); line-height: 1.3; }
  .home .ee-card__text { display: none; }
  .ee-card__media { margin: calc(-1 * var(--sp-4)) calc(-1 * var(--sp-4)) 0; aspect-ratio: 2 / 1; }
  .ee-card--media .ee-card__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ee-card__more { font-size: var(--fs-xs); }
}

/* ---- lists ---- */
.ee-list { padding-left: 1.25em; }
.ee-list--checklist, .ee-tier3, .ee-sectors { list-style: none; padding: 0; }
.ee-list--checklist li { position: relative; padding-left: 2rem; }
.ee-list--checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.25rem; height: 1.25rem; border-radius: 50%; background: var(--c-success); -webkit-mask: url("../icons/ui-check.svg") center / 70% no-repeat; mask: url("../icons/ui-check.svg") center / 70% no-repeat; }
.ee-tier3 { display: grid; gap: 0; border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.ee-tier3 li { margin: 0; padding: var(--sp-3) var(--sp-4); border-top: 1px solid var(--c-border); background: #fff; font-size: var(--fs-sm); color: var(--c-gray-700); }
.ee-tier3 li:first-child { border-top: 0; }
.ee-tier3 li:nth-child(even) { background: var(--c-surface); }
.ee-tier3 li strong { color: var(--c-ink); }
.ee-tier3 li { display: flex; flex-wrap: wrap; gap: var(--sp-3); align-items: baseline; justify-content: space-between; }
.ee-tier3__text { flex: 1 1 60%; min-width: 0; }
.ee-tier3 .fr-btn { flex: none; }
.ee-sectors { display: grid; gap: var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); align-items: start; }
.ee-sectors li { margin: 0; padding: var(--sp-4) var(--sp-5); background: #fff; border: 1px solid var(--c-border); border-left: 4px solid var(--c-accent-500); border-radius: var(--radius); font-size: var(--fs-sm); color: var(--c-gray-700); }
.ee-sectors li:target { border-color: var(--c-primary-600); box-shadow: 0 0 0 3px var(--c-primary-100); }
.ee-sectors li strong { color: var(--c-ink); }
.ee-sectors a { text-decoration: none; color: var(--c-primary-800); }
.ee-sectors a:hover { text-decoration: underline; }
.ee-sectors__cats { list-style: none; margin: var(--sp-3) 0 0; padding: var(--sp-3) 0 0; border-top: 1px solid var(--c-border); display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3); }
.ee-sectors__cats li { margin: 0; padding: 0; border: 0; background: none; font-size: var(--fs-xs); }
.ee-sectors__cats a::after { content: ""; }
.ee-sectors__more { display: none; }
@media (max-width: 639px) {
  .home .ee-sectors > li:nth-child(n+6) { display: none; }
  .ee-sectors__more { display: block; margin-top: var(--sp-4); }
  .ee-sectors__more .fr-btn { width: 100%; }
}

/* ---- steps ---- */
.ee-steps { counter-reset: step; list-style: none; padding: 0; margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-4); }
.ee-steps > li { position: relative; margin: 0; padding: var(--sp-5) var(--sp-5) var(--sp-5) 4rem; background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius); }
.ee-steps > li::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; left: var(--sp-5); top: var(--sp-5); width: 2.25rem; height: 2.25rem; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--c-primary-950); color: #fff; font-weight: 700; font-size: var(--fs-sm); }
@media (max-width: 639px) { .ee-steps > li { padding-left: var(--sp-5); } .ee-steps > li::before { position: static; margin-bottom: var(--sp-3); } }
.ee-steps__title { font-size: var(--fs-lg); margin-bottom: var(--sp-2); }
.ee-steps > li p { margin-bottom: var(--sp-2); color: var(--c-gray-700); }
.ee-steps > li p:last-child { margin-bottom: 0; }
.ee-steps__needs { font-size: var(--fs-sm); color: var(--c-text-muted); margin: var(--sp-2) 0 0; padding-left: 1.25em; list-style: disc; }

/* ---- specification table ---- */
.ee-spec { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 var(--sp-4); font-size: var(--fs-sm); border: 1px solid var(--c-border); border-radius: var(--radius); overflow: hidden; }
.ee-spec th, .ee-spec td { text-align: left; vertical-align: top; padding: var(--sp-3) var(--sp-4); border-bottom: 1px solid var(--c-border); }
.ee-spec tr:last-child > * { border-bottom: 0; }
.ee-spec th { width: 34%; background: var(--c-surface); font-weight: 600; color: var(--c-gray-700); }

/* ---- notices ---- */
.ee-notice { padding: var(--sp-5) var(--sp-6); border-radius: var(--radius); border: 1px solid var(--c-border); border-left: 4px solid var(--c-primary-600); background: var(--c-surface); font-size: var(--fs-sm); }
.ee-notice--scope { border-left-color: var(--c-accent-500); background: var(--c-accent-50); }
.ee-notice--legal { border-left-color: var(--c-primary-800); }
.ee-notice .ee-section__title { font-size: var(--fs-lg); margin-bottom: var(--sp-3); }
.ee-notice p:last-child { margin-bottom: 0; }
.ee-notice--admin { border-left-color: var(--c-warning); background: #FFF3CD; }

/* ---- FAQ ---- */
.ee-faq { display: grid; gap: var(--sp-2); }
.ee-faq__item { border: 1px solid var(--c-border); border-radius: var(--radius); background: #fff; }
.ee-faq__q { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); padding: var(--sp-4) var(--sp-5); font-weight: 600; }
.ee-faq__q::-webkit-details-marker { display: none; }
.ee-faq__q::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--c-primary-600); border-bottom: 2px solid var(--c-primary-600); transform: rotate(45deg); transition: transform .15s ease; margin-right: 4px; }
.ee-faq__item[open] .ee-faq__q::after { transform: rotate(-135deg); }
.ee-faq__item[open] .ee-faq__q { border-bottom: 1px solid var(--c-border); }
.ee-faq__a { padding: var(--sp-4) var(--sp-5); color: var(--c-gray-700); }
.ee-faq__a p:last-child { margin-bottom: 0; }

/* ---- CTA and buttons ---- */
.ee-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-3); padding: var(--sp-6); margin: var(--sp-6) 0 0; background: var(--c-primary-50); border: 1px solid var(--c-primary-200); border-radius: var(--radius-lg); }
.ee-cta__micro { flex-basis: 100%; margin: 0; font-size: var(--fs-sm); color: var(--c-text-muted); }
.ee-button { display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: 48px; padding: var(--sp-3) var(--sp-6); font: inherit; font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; border-radius: var(--radius); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.ee-button--primary { background: var(--c-accent-600); color: #fff; }
.ee-button--primary:hover { background: var(--c-accent-700); color: #fff; }
.ee-button--secondary { background: #fff; color: var(--c-primary-800); border-color: var(--c-primary-200); }
.ee-button--secondary:hover { border-color: var(--c-primary-600); background: var(--c-primary-50); color: var(--c-primary-800); }
@media (max-width: 599px) { .ee-button { white-space: normal; text-align: center; max-width: 100%; } }

/* inside the product quote box the CTA is the box itself */
.fr-quotebox .ee-cta { background: none; border: 0; padding: 0; margin: 0; }
.fr-quotebox .ee-cta .ee-button { width: 100%; }

/* ---- forms (Fluent Forms shortcode wrapper) ---- */
.ee-form { margin: var(--sp-6) 0; padding: var(--sp-6); border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; }
