/* Portafolio y galerías de clientes. Estilos aislados del resto del sitio. */
.sv-portfolio-shell { max-width: 1280px; margin: 44px auto 0; }
.sv-collection-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 22px; text-align: left; }
.sv-collection-toolbar p { margin: 0; font-size: 14px; color: #666; }
.sv-collection-controls { display: flex; gap: 8px; }
.sv-collection-controls button, .sv-arrow { padding: 0; width: 46px; height: 46px; flex-shrink: 0; border-radius: 50%; border: 1px solid #ccc; background: transparent; color: #222; font-size: 22px; cursor: pointer; }
.sv-collection-controls button:hover, .sv-arrow:hover { background: #e9e5df; color: #111; }
.sv-collection-controls button:disabled, .sv-arrow:disabled { opacity: .25; cursor: default; }
.sv-collections { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding-bottom: 18px; }
.sv-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; color: #161616; text-decoration: none; text-align: left; min-width: 0; }
.portafolio .sv-card img { width: 100%; height: 390px; object-fit: cover; object-position: center 35%; border-radius: 6px; transition: filter .35s ease; }
.sv-card:hover img { filter: brightness(1.08); }
.sv-card-info { display: flex; flex-direction: column; gap: 10px; padding: 20px 0 8px; }
.sv-card-info strong { font-size: 23px; font-weight: 500; }
.sv-card-info > span { font-size: 13px; color: #666; }
.sv-gallery-page { margin: 0; background: #f8f7f5; color: #171717; font-family: Arial, sans-serif; }
.sv-gallery-page * { box-sizing: border-box; }
.sv-gallery-page [hidden] { display: none !important; }
.sv-gallery-page a { color: inherit; }
.sv-gallery-header { padding: 24px clamp(18px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid #dedad4; }
.sv-back { font-size: 14px; text-decoration: none; }
.sv-brand { letter-spacing: 3px; font-size: 15px; text-decoration: none; }
.sv-brand span { font-size: 10px; }
.sv-gallery-main { max-width: 1280px; margin: auto; padding: 48px 24px; }
.sv-gallery-heading { text-align: center; margin-bottom: 28px; }
.sv-eyebrow { font-size: 10px; letter-spacing: 3px; color: #777; }
.sv-gallery-heading h1 { font-size: clamp(28px, 4vw, 48px); font-weight: 400; margin: 14px 0; }
.sv-gallery-heading p { font-size: 14px; color: #666; }
.sv-viewer { display: flex; align-items: center; gap: 20px; }
.sv-track { display: flex; width: 100%; min-width: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 8px; background: #eeece8; cursor: grab; }
.sv-track::-webkit-scrollbar { display: none; }
.sv-track.sv-dragging { scroll-snap-type: none; cursor: grabbing; }
.sv-slide { flex: 0 0 100%; width: 100%; height: min(64vh, 690px); min-height: 280px; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: center; align-items: center; }
.sv-slide img { width: 100%; height: 100%; object-fit: contain; user-select: none; }
.sv-photo-tools { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; padding: 22px 0; font-size: 13px; }
.sv-gallery-page button { font: inherit; cursor: pointer; }
.sv-photo-tools button, .sv-selection-bar button { border: 1px solid #222; border-radius: 30px; padding: 12px 20px; color: #222; background: transparent; }
.sv-photo-tools button[aria-pressed="true"] { background: #222; color: #fff; }
.sv-photo-tools a { text-underline-offset: 4px; }
.sv-thumbs { display: flex; justify-content: flex-start; gap: 12px; overflow-x: auto; padding: 8px 4px 16px; }
.sv-thumbs button { position: relative; padding: 3px; border: 2px solid transparent; border-radius: 5px; flex: 0 0 76px; background: transparent; }
.sv-thumbs img { width: 66px; height: 78px; object-fit: cover; border-radius: 3px; display: block; }
.sv-thumbs .sv-active { border-color: #222; }
.sv-thumbs .sv-picked::after { content: '✓'; position: absolute; right: 4px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #222; color: white; font-size: 12px; line-height: 18px; }
.sv-selection-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid #dedad4; padding: 24px 0; font-size: 14px; }
.sv-selection-bar button { background: #222; color: #fff; }
.sv-selection-bar button:disabled { opacity: .35; cursor: default; }
.sv-download-panel { border: 1px solid #dedad4; padding: 24px; border-radius: 8px; background: #fff; }
.sv-download-panel > div:first-child { display: flex; justify-content: space-between; align-items: center; }
.sv-download-panel h2 { margin: 0; font-size: 22px; font-weight: 400; }
.sv-download-panel button { border: 0; background: transparent; font-size: 26px; }
.sv-download-panel p { color: #666; font-size: 14px; }
#sv-download-links { display: flex; flex-wrap: wrap; gap: 12px; }
#sv-download-links a { padding: 12px 16px; border: 1px solid #ddd; border-radius: 6px; text-decoration: none; }
.sv-gallery-footer { text-align: center; font-size: 10px; letter-spacing: 2px; padding: 30px 16px; color: #777; }
.sv-card:focus-visible, .sv-collections:focus-visible, .sv-gallery-page :focus-visible, .sv-collection-controls button:focus-visible { outline: 3px solid #a5763e; outline-offset: 4px; }
@media (max-width: 900px) {
  .sv-card { flex-basis: calc((100% - 24px) / 2); }
  .portafolio .sv-card img { height: 340px; }
}
@media (max-width: 540px) {
  .sv-card { flex-basis: 86%; }
  .portafolio .sv-card img { height: 360px; }
  .sv-collection-toolbar p { max-width: 170px; }
  .sv-gallery-header { padding: 20px 16px; }
  .sv-brand { font-size: 11px; letter-spacing: 1px; }
  .sv-brand span { display: none; }
  .sv-gallery-main { padding: 32px 14px; }
  .sv-viewer { position: relative; gap: 0; }
  .sv-viewer .sv-arrow { position: absolute; z-index: 1; width: 36px; height: 36px; background: rgba(255,255,255,.9); border-color: #ccc; }
  #sv-prev { left: 8px; }
  #sv-next { right: 8px; }
  .sv-slide { height: 56vh; min-height: 280px; }
  .sv-photo-tools { gap: 16px; }
  .sv-selection-bar { align-items: flex-start; font-size: 12px; }
  .sv-selection-bar button { padding: 12px 14px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sv-card img { transition: none; } }

.portafolio .sv-portfolio-entry {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px clamp(24px,5vw,64px);
    border: 1px solid #aaa08c;
    border-radius: 8px;
    background: #191817;
    color: #f0dfbb;
    text-decoration: none;
    transition: background .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.sv-portfolio-entry::after { content: '→'; letter-spacing: 0; }
.sv-portfolio-entry:hover { background: #30281e; border-color: #b38e50; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.sv-portfolio-entry:focus-visible { outline: 3px solid #a5763e; outline-offset: 5px; }
.sv-client-directory { max-width: 1200px; }
.sv-directory-toolbar { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0 24px; padding-bottom: 16px; border-bottom: 1px solid #d8d2c9; color: #666; font-size: 12px; }
.sv-client-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
.sv-client-grid .sv-card { display: block; border: 1px solid #ded8cd; border-radius: 8px; overflow: hidden; background: #fff; }
.sv-client-grid .sv-card img { display: block; width: 100%; height: clamp(280px,35vw,420px); object-fit: contain; object-position: center; background: #1b1a18; }
.sv-client-grid .sv-card-info { padding: 22px 24px 26px; }
.sv-client-directory .sv-gallery-heading p { max-width: 580px; margin: 0 auto; line-height: 1.7; }
@media (max-width: 600px) {
    .sv-client-grid { grid-template-columns: 1fr; gap: 24px; }
    .sv-client-grid .sv-card img { height: 360px; }
    .portafolio .sv-portfolio-entry { font-size: 24px; letter-spacing: 3px; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) { .sv-portfolio-entry { transition: none; } }
