/* ===================================================================
   FOSSIL NATURA — DESCARGAS TÉCNICAS
   Estilos propios de descargas.php sobre main.css.
   Cubre: secciones fichas técnicas y manuales (buscador, tabla,
   paginación). Vídeos, catálogo y CTA usan clases de main.css.
   =================================================================== */

/* ══════════════════════════════════════════════════════════════════
   STRIP DE TIPOS DE ARCHIVO
══════════════════════════════════════════════════════════════════ */
.dl-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--v3-line);
  /* v3-wrap añade padding-x, los items no necesitan padding horizontal extra */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.dl-strip-item {
  padding: 1.4rem 1.2rem;
  border-right: 1px solid var(--v3-line);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background .2s;
}

.dl-strip-item:last-child { border-right: none; }
.dl-strip-item:hover:not(.dl-strip-locked) { background: var(--v3-bg-alt); }

.dl-strip-locked {
  background: var(--v3-bg-alt);
  cursor: default;
}

.dl-strip-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--v3-ink);
  line-height: 1.3;
}

.dl-strip-locked .dl-strip-title { color: var(--v3-olive); }

.dl-strip-meta {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-olive);
  margin-top: 4px;
}

.dl-strip-action {
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v3-olive);
  margin-top: 14px;
}

.dl-strip-item:not(.dl-strip-locked):hover .dl-strip-action {
  color: var(--v3-ink);
}

@media (max-width: 860px) {
  .dl-strip { grid-template-columns: repeat(2, 1fr); }
  .dl-strip-item:nth-child(2) { border-right: none; }
  .dl-strip-item:nth-child(3) { border-top: 1px solid var(--v3-line); }
  .dl-strip-item:nth-child(4) { border-top: 1px solid var(--v3-line); border-right: none; }
}

@media (max-width: 500px) {
  .dl-strip { grid-template-columns: 1fr; }
  .dl-strip-item { border-right: none !important; border-top: 1px solid var(--v3-line); }
  .dl-strip-item:first-child { border-top: none; }
}

/* ══════════════════════════════════════════════════════════════════
   SECCIÓN GENÉRICA (fichas + manuales comparten estructura)
══════════════════════════════════════════════════════════════════ */
.dl-section {
  padding-bottom: 72px;
  border-bottom: 1px solid var(--v3-line);
}

.dl-section-header {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 48px 0 28px;
}

.dl-eyebrow {
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--v3-olive);
  flex-shrink: 0;
}

.dl-title {
  font-family: var(--v3-serif);
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 300;
  line-height: 1.1;
}

.dl-title .it { font-style: italic; }

.dl-count {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-olive);
  margin-left: auto;
  letter-spacing: .08em;
}

/* ══════════════════════════════════════════════════════════════════
   BUSCADOR — Forma pastilla, alineado con .v3-btn del resto del sitio
══════════════════════════════════════════════════════════════════ */
.dl-search-wrap {
  margin-bottom: 28px;
}

.dl-search {
  display: flex;
  align-items: center;
  border: 1px solid var(--v3-line);
  border-radius: 100px;
  max-width: 540px;
  background: #fff;
  padding: 4px 6px 4px 16px;
  transition: border-color .2s, box-shadow .2s;
}

.dl-search:focus-within {
  border-color: var(--v3-ink);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, .04);
}

.dl-search-icon {
  display: flex;
  align-items: center;
  color: var(--v3-olive);
  flex-shrink: 0;
  margin-right: 10px;
}

.dl-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13.5px;
  font-family: var(--v3-sans);
  letter-spacing: .01em;
  padding: 10px 0;
  background: transparent;
  color: var(--v3-ink);
  min-width: 0;
}

.dl-search-input::placeholder {
  color: var(--v3-olive);
  opacity: .7;
}

.dl-search-hint {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-olive);
  padding: 4px 14px;
  background: var(--v3-bg);
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════════════
   TABLA
══════════════════════════════════════════════════════════════════ */
.dl-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.dl-table th {
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--v3-olive);
  font-weight: 400;
  padding: 8px 12px 8px 0;
  border-bottom: 1px solid var(--v3-line);
  text-align: left;
}

.dl-table th.col-action { text-align: right; padding-right: 0; }

.dl-table td {
  padding: 13px 12px 13px 0;
  border-bottom: 1px solid var(--v3-line-soft);
  vertical-align: middle;
}

.dl-table tbody tr { transition: background .15s; }
.dl-table tbody tr:hover td { background: var(--v3-bg-alt); }

/* Columnas */
.col-ref   { width: 80px; }
.col-cat   { width: 160px; }
.col-action { width: 160px; text-align: right; }

.dl-ref {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-olive);
  white-space: nowrap;
}

.dl-name {
  font-size: 14px;
  color: var(--v3-ink);
  line-height: 1.3;
}

.dl-sub {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-olive);
  margin-top: 3px;
}

.dl-badge {
  display: inline-block;
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--v3-olive);
  border: 1px solid var(--v3-line);
  padding: 3px 9px;
  white-space: nowrap;
}

/* Botón de descarga */
.dl-btn {
  display: inline-block;
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--v3-ink);
  border: 1px solid var(--v3-ink);
  padding: 7px 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, color .2s;
}

.dl-btn:hover {
  background: var(--v3-ink);
  color: var(--v3-bg);
}

/* Próximamente */
.dl-soon {
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--v3-olive);
  opacity: .6;
}

/* Sin resultados / vacío */
.dl-no-results,
.dl-empty {
  display: none;
  text-align: center;
  padding: 48px 0;
  font-family: var(--v3-mono);
  font-size: 13px;
  color: var(--v3-olive);
}

.dl-empty { display: block; }

/* ══════════════════════════════════════════════════════════════════
   PAGINACIÓN — Pastillas, alineadas con el lenguaje de .v3-btn
══════════════════════════════════════════════════════════════════ */
.dl-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.dl-page-btn {
  font-family: var(--v3-sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--v3-ink);
  background: #fff;
  border: 1px solid var(--v3-line);
  border-radius: 100px;
  min-width: 36px;
  height: 36px;
  padding: 0 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s, box-shadow .15s;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dl-page-btn:hover:not([disabled]) {
  border-color: var(--v3-ink);
  background: var(--v3-bg);
}

.dl-page-btn.active {
  background: var(--v3-ink);
  border-color: var(--v3-ink);
  color: #fff;
}

.dl-page-btn[disabled] {
  opacity: .35;
  cursor: default;
}

.dl-page-prev,
.dl-page-next {
  font-family: var(--v3-sans);
  letter-spacing: .02em;
  padding: 0 18px;
}

.dl-page-ellipsis {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-olive);
  padding: 0 4px;
  opacity: .5;
}

/* ══════════════════════════════════════════════════════════════════
   RECURSOS GRÁFICOS — Grid de productos con imágenes HQ
══════════════════════════════════════════════════════════════════ */
.dl-hq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

.dl-hq-card {
  background: #fff;
  border: 1px solid var(--v3-line-soft);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.dl-hq-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 22px rgba(180, 83, 9, .12);
  border-color: #fcd34d;
}

.dl-hq-thumb {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #f6f6f4;
  overflow: hidden;
}
.dl-hq-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.dl-hq-card:hover .dl-hq-thumb img { transform: scale(1.04); }

.dl-hq-thumb-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #cbd5e1;
}

.dl-hq-count {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 3px;
}

.dl-hq-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.dl-hq-name {
  font-family: var(--v3-sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--v3-ink);
}
.dl-hq-name a {
  color: inherit;
  text-decoration: none;
}
.dl-hq-name a:hover { color: #b45309; }

.dl-hq-cat {
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--v3-olive);
  opacity: .7;
}

.dl-hq-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.dl-hq-size {
  font-family: var(--v3-mono);
  font-size: 11px;
  color: var(--v3-olive);
  opacity: .8;
}
.dl-hq-zip {
  font-family: var(--v3-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  background: #b45309;
  padding: 6px 12px;
  border-radius: 3px;
  text-decoration: none;
  transition: background .2s;
}
.dl-hq-zip:hover { background: #92400e; }

/* ══════════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .dl-count  { display: none; }
  .col-cat   { display: none; }
  .col-ref   { width: 56px; }
  .col-action { width: 120px; }
  .dl-btn    { padding: 6px 10px; font-size: 9px; }
  .dl-search { max-width: 100%; }
  .dl-page-prev, .dl-page-next { font-size: 10px; padding: 6px 8px; }
}

/* ══════════════════════════════════════════════════════════════════
   VÍDEOS DE INSTALACIÓN (copiado de guias.css para independencia)
══════════════════════════════════════════════════════════════════ */
.guias-videos {
  border-top: 1px solid var(--v3-line);
  background: var(--v3-bg-alt);
  padding: 96px 0;
  border-bottom: 1px solid var(--v3-line);
}

.guias-videos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.guias-video-ph {
  background: var(--v3-ink);
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guias-video-play {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.guias-video-play::after {
  content: '';
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid rgba(255,255,255,.5);
  margin-left: 4px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════════
   CTA CONTACTO
══════════════════════════════════════════════════════════════════ */
.guias-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
  padding-top: 80px;
  padding-bottom: 80px;
  border-top: 1px solid var(--v3-line);
}

.guias-cta-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .guias-videos-grid { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .guias-cta { flex-direction: column; align-items: flex-start; }
}
