﻿/* CEyS site module: PDF cards */

.ceys-service-pdfs-cards {
  width: min(100%, 1120px);
  margin: 28px auto 0;
}

.ceys-service-pdf-card-list {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: flex-start;
}

.ceys-service-pdf-card {
  display: inline-flex;
  flex-direction: column;
  width: min(210px, 100%);
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: #fff !important;
  text-decoration: none !important;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .14);
  transition: transform .18s ease, box-shadow .18s ease;
}

.ceys-service-pdf-card:hover,
.ceys-service-pdf-card:focus {
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(29, 58, 108, .2);
}

.ceys-service-pdf-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 210 / 285;
  background: linear-gradient(135deg, #f7fbfd, #eaf7ef);
}

.ceys-service-pdf-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ceys-service-pdf-preview {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
  pointer-events: none;
}

.ceys-service-pdf-cover-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  background: linear-gradient(90deg, #5fb030 0%, #1d3a6c 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.ceys-service-pdf-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 58px;
  padding: 12px 15px;
  background: #5fb030;
}

.ceys-service-pdf-card-footer strong {
  min-width: 0;
  color: #fff;
  font-size: 14px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.15;
}

.ceys-service-pdf-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #fff;
}

.ceys-service-pdf-download svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ceys-service-pdfs {
  width: min(980px, calc(100% - 32px));
  margin: 34px auto 54px;
  color: #26323d;
}

.ceys-service-pdfs-head h2 {
  margin: 0 0 18px;
  color: #173047;
  font-size: 28px;
  font-weight: 900;
}

.ceys-service-pdf-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.ceys-service-pdf {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  color: #26323d;
  background: #fff;
  border: 1px solid #dfe7ef;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(35, 52, 69, 0.07);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.ceys-service-pdf:hover {
  border-color: #5fb030;
  box-shadow: 0 16px 36px rgba(35, 52, 69, 0.1);
  transform: translateY(-2px);
}

.ceys-service-pdf-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  color: #fff;
  background: linear-gradient(135deg, #1d3a6c, #5fb030);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.ceys-service-pdf-body {
  display: grid;
  gap: 4px;
}

.ceys-service-pdf-body strong {
  color: #173047;
  font-size: 17px;
  line-height: 1.2;
}

.ceys-service-pdf-body small,
.ceys-service-pdf-body em {
  color: #617083;
  font-style: normal;
  line-height: 1.35;
}

.pdf-btn a,
.pdf-btn .elementor-button,
.servicio-panel .pdf-btn a,
.servicio-panel .pdf-btn .elementor-button,
.elementor-widget-button .elementor-button[href*=".pdf" i],
.elementor-widget-button .elementor-button[href*=".doc" i],
.elementor-widget-button .elementor-button[href*="/wp-content/uploads/" i] {
  background: #5fb030 !important;
  background-color: #5fb030 !important;
  background-image: none !important;
  border: 1px solid #5fb030 !important;
  border-radius: 4px !important;
  color: #fff !important;
  box-shadow: 0 8px 18px rgba(95, 176, 48, .20) !important;
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.pdf-btn a:hover,
.pdf-btn a:focus,
.pdf-btn .elementor-button:hover,
.pdf-btn .elementor-button:focus,
.servicio-panel .pdf-btn a:hover,
.servicio-panel .pdf-btn a:focus,
.servicio-panel .pdf-btn .elementor-button:hover,
.servicio-panel .pdf-btn .elementor-button:focus,
.elementor-widget-button .elementor-button[href*=".pdf" i]:hover,
.elementor-widget-button .elementor-button[href*=".pdf" i]:focus,
.elementor-widget-button .elementor-button[href*=".doc" i]:hover,
.elementor-widget-button .elementor-button[href*=".doc" i]:focus,
.elementor-widget-button .elementor-button[href*="/wp-content/uploads/" i]:hover,
.elementor-widget-button .elementor-button[href*="/wp-content/uploads/" i]:focus {
  background: #1d3a6c !important;
  background-color: #1d3a6c !important;
  background-image: none !important;
  border-color: #1d3a6c !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(29, 58, 108, .22) !important;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .ceys-service-pdf-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .ceys-service-pdf-card-list {
    justify-content: center;
  }

  .ceys-service-pdf-card {
    width: min(230px, 100%);
  }
}
