/* Consulta compartida de los listados de referencias Rexroth, Festo y Aventics. */
.rd-rexroth-references { width: 100%; min-width: 0; color: #172333; font-family: var(--rd-reading-font, Arial, sans-serif); }
.rd-rexroth-references * { box-sizing: border-box; }
.rd-rexroth-references [hidden] { display: none !important; }
.rd-rexroth-references .rd-rexroth-intro { margin: 0 0 18px; color: #52606d; font-size: 16px; line-height: 1.6; }
.rd-rexroth-tools { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 20px; margin: 0 0 16px; padding: 22px; border: 1px solid #dce3e9; border-radius: 12px; background: #f3f6f9; }
.rd-rexroth-search { flex: 1 1 320px; min-width: 0; }
.rd-rexroth-size { flex: 0 1 170px; }
.rd-rexroth-tools label { display: block; margin: 0 0 8px; color: #172333; font-size: 14px; font-weight: 600; line-height: 1.5; }
.rd-rexroth-inputs { display: flex; align-items: stretch; gap: 8px; }
.rd-rexroth-references input[type="search"], .rd-rexroth-references select { min-height: 46px; height: auto; margin: 0; padding: 10px 12px; border: 1px solid #aab8c4; border-radius: 6px; background: #fff; color: #172333; font-family: inherit; font-size: 16px; line-height: 1.5; }
.rd-rexroth-references input[type="search"] { flex: 1; width: 100%; min-width: 0; }
.rd-rexroth-references input::placeholder { color: #647482; opacity: 1; }
.rd-rexroth-references select { width: 100%; }
.rd-rexroth-references button { min-height: 46px; width: auto; padding: 10px 16px; border: 1px solid #bcc8d2; border-radius: 6px; background: #fff; color: #172333; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.5; letter-spacing: 0; text-transform: none; cursor: pointer; }
.rd-rexroth-references button:hover:not(:disabled) { border-color: #c90000; background: #c90000; color: #fff; }
.rd-rexroth-references button:disabled { opacity: .5; cursor: default; }
.rd-rexroth-references :is(input,select,button):focus-visible { outline: 2px solid #c90000; outline-offset: 3px; }
.rd-rexroth-references .rd-rexroth-summary { margin: 0 0 12px; color: #52606d; font-size: 14px; line-height: 1.6; }
.rd-rexroth-table-wrap { overflow: hidden; border: 1px solid #dce3e9; border-radius: 10px; }
.rd-rexroth-references table { width: 100%; margin: 0; border-collapse: collapse; table-layout: fixed; background: #fff; }
.rd-rexroth-references th { padding: 15px 18px; border: 0; background: #19364d; color: #fff; text-align: left; font-size: 14px; font-weight: 600; line-height: 1.5; }
.rd-rexroth-references th:first-child { width: 29%; }
.rd-rexroth-references td { padding: 15px 18px; border: 0; border-bottom: 1px solid #e4e9ed; color: #334656; font-size: 14px; line-height: 1.65; vertical-align: top; overflow-wrap: anywhere; white-space: pre-line; }
.rd-rexroth-references td:first-child { color: #172333; font-family: ui-monospace, Consolas, monospace; font-weight: 600; }
.rd-rexroth-references tbody tr:nth-child(even) { background: #f7f9fb; }
.rd-rexroth-references tbody tr:hover { background: #edf3f7; }
.rd-rexroth-references tbody tr:last-child td { border-bottom: 0; }
.rd-rexroth-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; }
.rd-rexroth-pagination p { margin: 0; color: #52606d; font-size: 14px; }
.rd-rexroth-page-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-rexroth-references [data-page="next"] { border-color: #c90000; background: #c90000; color: #fff; }
.rd-rexroth-references .rd-rexroth-empty, .rd-rexroth-error { padding: 22px; border: 1px solid #dce3e9; border-radius: 10px; background: #f7f9fb; font-size: 16px; line-height: 1.6; }
.rd-rexroth-error { margin-bottom: 16px; }
.rd-rexroth-error p { margin: 0 0 12px; }
.rd-rexroth-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rd-reference-page { color: #172333; }
.rd-reference-page-inner { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 50px; }
.rd-reference-page-header { padding: 48px 0; border-bottom: 1px solid #e4e9ed; background: #f3f6f9; }
.rd-reference-page-header .rd-reference-page-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.rd-reference-page h1 { margin: 0; color: #172333; font-family: "Roboto Condensed",sans-serif; font-size: clamp(34px,3.5vw,46px); font-weight: 600; line-height: 1.15; }
.rd-reference-page-quote { display: inline-flex; flex-shrink: 0; align-items: center; justify-content: center; gap: 14px; min-height: 46px; padding: 10px 18px; border-radius: 6px; background: #c90000; color: #fff; font-family: "Roboto Condensed",sans-serif; font-size: 16px; font-weight: 600; }
.rd-reference-page-quote:hover { background: #a60000; color: #fff; }
.rd-reference-page-body { padding-top: 32px; padding-bottom: 64px; }
.rd-reference-page-back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 20px; color: #52606d; font-family: var(--rd-reading-font,Arial,sans-serif); font-size: 14px; }
.rd-reference-page :is(a,button,input,select):focus-visible { outline: 2px solid #c90000; outline-offset: 3px; }
.single-us_portfolio .catalogo-producto :is(.roydisa-festo-reference-link,.roydisa-aventics-reference-link) { height: auto !important; min-height: 46px; align-self: start; justify-content: center; }
@media (min-width: 768px) and (max-width: 1023px) {
    .rd-reference-page-inner { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 767px) {
    .rd-reference-page-inner { padding-left: 28px; padding-right: 28px; }
    .rd-reference-page-header { padding: 32px 0; }
    .rd-reference-page-header .rd-reference-page-inner { align-items: flex-start; flex-direction: column; gap: 18px; }
    .rd-reference-page h1 { font-size: 32px; }
    .rd-rexroth-tools { gap: 16px; padding: 16px; }
    .rd-rexroth-search, .rd-rexroth-size { flex: 1 1 100%; }
    .rd-rexroth-size { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
    .rd-rexroth-size label { margin: 0; }
    .rd-rexroth-size select { width: 90px; }
    .rd-rexroth-inputs { flex-wrap: wrap; }
    .rd-rexroth-references input[type="search"] { flex-basis: 100%; }
    .rd-rexroth-references [data-clear] { padding: 8px 14px; }
    .rd-rexroth-table-wrap { border: 0; border-radius: 0; overflow: visible; }
    /* El adaptador general envuelve también esta tabla; aquí ya usamos fichas. */
    .rd-rexroth-references .roydisa-table-responsive { margin: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; }
    .rd-rexroth-references .roydisa-table-responsive table { min-width: 0 !important; }
    .rd-rexroth-references table, .rd-rexroth-references tbody { display: block; }
    .rd-rexroth-references thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .rd-rexroth-references tbody tr { display: block; margin-bottom: 12px; padding: 16px; border: 1px solid #dce3e9; border-radius: 10px; background: #fff; }
    .rd-rexroth-references td { display: block; width: 100%; padding: 0 !important; border: 0 !important; font-size: 14px; }
    .rd-rexroth-references td:first-child { margin-bottom: 14px; font-size: 16px; }
    .rd-rexroth-references td::before { content: attr(data-label); display: block; margin-bottom: 5px; color: #52606d; font-family: var(--rd-reading-font, Arial, sans-serif); font-size: 12px; font-weight: 600; line-height: 1.5; }
    .rd-rexroth-pagination { gap: 12px; }
    .rd-rexroth-page-buttons { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
    .rd-rexroth-pagination p { width: 100%; text-align: center; }
    .rd-rexroth-references .rd-rexroth-summary { font-size: 13px; }
}
