/* Ajustes funcionales compartidos; conservar la cascada visual de cada página. */
.catalog .catalog-filters[hidden],
.padrinos-showcase .tpe-carousel-controls[hidden] { display: none !important; }
.static-product .product-order {
  margin: 16px 18px 0;
  width: calc(100% - 36px);
  min-height: 44px;
  padding: 10px 12px;
  font-size: 14px;
  background: var(--orange);
  color: var(--ink);
}
.store-section .catalog-empty { margin-top: 24px; }
.dialog-body input[type="text"] {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--ink);
  border-radius: 9px;
  padding: 10px;
  color: var(--ink);
  background: white;
}
.dialog-body .inputrow input { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  .padrinos-showcase .padrinos-carousel { scroll-behavior: auto !important; }
}

/* Adopción por pasos: estilos limitados al formulario compartido. */
.adoption-wizard h2 { font-size: clamp(1.5rem, 5vw, 2rem); padding-right: 12px; }
.adoption-wizard progress { width: 100%; height: 12px; accent-color: var(--orange); margin-bottom: 24px; }
.adoption-wizard label { display: block; font-size: 1.15rem; font-weight: bold; margin-bottom: 14px; }
.adoption-wizard input,
.adoption-wizard select,
.adoption-wizard textarea { box-sizing: border-box; width: 100%; min-height: 48px; padding: 12px; font: inherit; font-size: 16px; border: 1px solid var(--ink); border-radius: 9px; background: white; color: var(--ink); }
.adoption-wizard textarea { resize: vertical; }
.adoption-wizard .actions { margin-top: 24px; gap: 12px; flex-wrap: wrap; }
.adoption-wizard .actions .btn { min-height: 44px; }
.adoption-wizard #adoption-next { background: var(--orange); color: var(--ink); }
.adoption-wizard dt { font-weight: bold; margin-top: 18px; }
.adoption-wizard dd { margin: 6px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.adoption-wizard [data-edit-answer],
.adoption-wizard .adoption-cancel { min-height: 44px; border: 0; background: transparent; color: var(--ink); text-decoration: underline; cursor: pointer; font: inherit; }
.adoption-wizard .adoption-cancel { margin-top: 12px; }
.adoption-wizard .adoption-field + .adoption-field { margin-top: 20px; }

/* Efecto compartido de botones, incluidos controles creados en los diálogos.
   Prioridad limitada a transform/box-shadow frente a reglas antiguas por sección. */
:is(button, .btn, .help-btn, .pet-sponsor-btn, .shop-categories a,
    .static-adoption-info a, .adoption-catalog-info a, .tpe-more-adoptions a,
    .category-more a, .bandana-sizes a, .bandana-order summary) {
  transition: transform .2s, box-shadow .2s;
}
:is(button, .btn, .help-btn, .pet-sponsor-btn, .shop-categories a,
    .static-adoption-info a, .adoption-catalog-info a, .tpe-more-adoptions a,
    .category-more a, .bandana-sizes a, .bandana-order summary):not(:disabled):not([aria-disabled="true"]):is(:hover, :focus-visible, :active, [aria-pressed="true"], .active, .is-open),
.bandana-order[open] > summary {
  transform: translateY(-3px) !important;
  box-shadow: 3px 4px 0 #233e5033 !important;
}
.site-menu > .menu:is(:hover, :focus-visible), .site-menu[open] > .menu { filter: none; }

/* Todas las categorías comparten el espacio imagen/título de los snacks. */
.static-product > h3 {
  margin-top: 0 !important;
  padding-top: 18px !important;
}

/* Separación de pañoletas entre la introducción y los productos de la tienda. */
.store-section .product-grid:not(:empty) { margin-top: 28px; }

/* Enlaces de regreso con un área táctil cómoda. */
.store-back, .catalog-back, .footer-row a:not(.brand) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

/* Navegación SEO y accesibilidad, integrada en los contenedores existentes. */
.seo-breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 20px; font-size: 14px; }
.seo-breadcrumbs a { display: inline-flex; align-items: center; min-height: 44px; text-underline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.form-data-notice { margin: 16px 0; }
.form-data-notice summary { min-height: 44px; font-size: 15px; padding: 12px 0; }
.form-data-notice p { font-size: 14px; line-height: 1.6; }
#pet-sponsor-amount { font-size: 16px; min-height: 48px; }
.help-swipe-hint { display: none; }
@media (max-width: 760px) {
  .help-swipe-hint { display: block; margin: 16px 0 12px; font-size: 14px; font-weight: bold; }
}
#sponsor-animal { width: 100%; min-height: 44px; font: inherit; padding: 10px; border: 1px solid var(--ink); border-radius: 10px; background: white; color: var(--ink); margin-bottom: 16px; }
.privacy-consent { border:1px solid var(--line); border-radius:12px; padding:16px; margin:18px 0; min-width:0; }
.privacy-consent legend { font-weight:bold; }
.privacy-choice { display:flex!important; align-items:flex-start; gap:10px; min-height:44px; margin:12px 0; font-size:14px!important; font-weight:normal!important; line-height:1.5; }
.privacy-choice input[type="checkbox"] { width:20px; height:20px; min-height:20px; flex:0 0 20px; margin:3px 0 0; accent-color:var(--ink); }
.privacy-choice a { text-underline-offset:3px; }

.privacy-choice span { min-width:0; overflow-wrap:anywhere; }

/* Formularios administrables: alcance limitado al nuevo renderizador. */
.managed-form .managed-field + .managed-field{margin-top:22px}
.managed-form .managed-field legend{font-weight:700;margin-bottom:12px}
.managed-form .managed-field .volunteer-option{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:400;min-height:44px;margin:0}
.managed-form .volunteer-option input{width:22px;min-height:22px;flex:0 0 22px}
.managed-form fieldset.managed-field{border:1px solid var(--line);border-radius:12px;padding:14px}
.managed-form [data-managed-edit]{min-height:44px;border:0;background:transparent;color:var(--ink);text-decoration:underline;cursor:pointer;font:inherit}
.managed-form #managed-next{background:var(--orange);color:var(--ink)}

.managed-form .phone-field fieldset{margin:0;padding:0;border:0;min-width:0}.managed-form .phone-field legend{font-weight:700;font-size:1.15rem;margin-bottom:14px}.managed-form .phone-fields{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}.managed-form .phone-fields label{font-size:16px;margin-bottom:8px}.managed-form .phone-field .small{margin-top:12px}@media(max-width:640px){.managed-form .phone-fields{grid-template-columns:1fr}}

.characteristic-icon{width:26px;height:26px;vertical-align:middle;margin-right:10px;flex-shrink:0}.cms-characteristic summary{overflow-wrap:anywhere}

/* Grupos configurables: ancho estable aunque se agreguen nuevas fichas. */
html body #adopcion .adoption-rail.tpe-configured-carousel,
html body #apadrinar .padrinos-carousel.tpe-configured-carousel,
html body #guau #home-shop-products.tpe-configured-carousel{display:flex!important;flex-wrap:nowrap!important;gap:18px!important;overflow-x:auto!important;overflow-y:hidden!important;scroll-snap-type:x mandatory!important;min-width:0;max-width:100%;padding-inline:0!important}
html body #adopcion .adoption-rail.tpe-configured-carousel>article,
html body #apadrinar .padrinos-showcase .padrinos-carousel.tpe-configured-carousel>article.padrino-pet,
html body #guau #home-shop-products.tpe-configured-carousel>article{flex:0 0 var(--tpe-card-width)!important;width:var(--tpe-card-width)!important;min-width:0!important;max-width:none!important;scroll-snap-align:start;overflow-wrap:anywhere}
html body #apadrinar .padrinos-showcase .padrinos-carousel.tpe-compact-cards>article.padrino-pet{grid-template-columns:minmax(0,1fr)!important}
html body #apadrinar .padrinos-showcase .padrinos-carousel.tpe-compact-cards>article.padrino-pet>img{height:210px!important;min-height:0!important;max-height:210px!important}
.adoption-board .tpe-carousel-controls button{min-width:44px;min-height:44px}
.adoption-board .tpe-carousel-controls{display:flex;justify-content:center;align-items:center;gap:12px;flex-wrap:wrap}
.adoption-board .tpe-carousel-dots{display:flex;gap:4px;flex-wrap:wrap;justify-content:center}
.adoption-board .tpe-carousel-dot{position:relative;border:0;background:transparent;width:44px;height:44px;min-width:44px}
.adoption-board .tpe-carousel-dot::before{content:"";display:block;width:11px;height:11px;border-radius:999px;background:var(--ink);opacity:.3;margin:auto}
.adoption-board .tpe-carousel-dot.active::before{width:24px;opacity:1}
.tpe-carousel-more{margin-top:18px;padding:20px;border-radius:20px;background:var(--purple);text-align:center}
.tpe-carousel-more h3{font-size:1.4rem;margin:8px}.tpe-carousel-more a{display:inline-block;min-height:44px;padding:10px;font-weight:bold}
.category-description{margin-top:18px;max-width:750px}

/* La llamada final permanece fija junto al carrusel; no cuenta como animal. */
#adopcion .tpe-adoption-layout{display:grid;grid-template-columns:minmax(0,3fr) minmax(220px,1fr);gap:18px;align-items:stretch}
#adopcion .tpe-adoption-viewport{min-width:0}
#adopcion .tpe-adoption-aside{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;min-width:0;margin:0 0 18px;padding:28px 22px;border-radius:20px;background:#eee2fa;color:#49336e;text-align:center;overflow-wrap:anywhere}
#adopcion .tpe-adoption-aside h3{font-size:1.5rem}#adopcion .tpe-adoption-aside a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:999px;background:var(--orange);color:var(--ink);font-weight:bold;text-decoration:none}
@media(max-width:1050px){#adopcion .tpe-adoption-layout{grid-template-columns:minmax(0,2fr) minmax(180px,1fr)}#adopcion .tpe-adoption-aside{padding:20px 14px}}
@media(max-width:640px){#adopcion .tpe-adoption-layout{grid-template-columns:minmax(0,1fr)}#adopcion .tpe-adoption-aside{margin:0}}
