/* Portada › Trámites en línea */
.cp-tram {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 4rem 0 8rem;
  background-color: #0d4a9e;
  background-image:
    linear-gradient(180deg, rgba(11, 66, 150, .9) 0%, rgba(13, 74, 158, .72) 55%, rgba(18, 70, 120, .55) 100%),
    var(--cp-tram-img, linear-gradient(160deg, #0a45a3 0%, #0d5fbf 55%, #13608a 100%));
  background-size: cover;
  background-position: center;
}
.cp-tram__inner {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 4rem);
}
.cp-tram__mark {
  position: absolute;
  top: -30px;
  right: -50px;
  width: 420px;
  height: 420px;
  fill: #5aa9ff;
  opacity: .22;
  z-index: 1;
  pointer-events: none;
}
.cp-tram__line { display: block; width: 64px; height: 4px; border-radius: 4px; background: #6aaa35; margin-bottom: 1rem; }
.cp-tram__eyebrow { font-size: clamp(1.05rem, 1.6vw, 1.45rem); font-weight: 600; margin: 0; color: #fff; }
.cp-tram__title {
  display: flex;
  align-items: center;
  gap: .8rem;
  font-size: clamp(2rem, 4.2vw, 3.6rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.01em;
  color: #fff;
  margin: .1rem 0 .7rem;
}
.cp-tram__title i { font-size: .8em; }
.cp-tram__lead {
  font-size: clamp(.98rem, 1.3vw, 1.15rem);
  font-style: italic;
  color: rgba(255, 255, 255, .92);
  margin: 0 0 2rem;
  max-width: 820px;
}

.cp-tram__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 1.5rem 2.5rem;
}
.cp-tram__grid--one { max-width: 880px; }

.cp-tram-card {
  --accent: #3f8f2f;
  --accent-soft: #e3f0d9;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.6rem 1.75rem;
  min-height: 170px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 10px 30px rgba(0, 30, 70, .22);
  color: #3b4452;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.cp-tram-card:hover,
.cp-tram-card:focus-visible {
  color: #3b4452;
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 30, 70, .3);
}
.cp-tram-card:focus-visible { outline: 3px solid #ffc20a; outline-offset: 3px; }
.cp-tram-card--green  { --accent: #3f8f2f; --accent-soft: #e3f0d9; }
.cp-tram-card--orange { --accent: #f07c12; --accent-soft: #fde6cf; }
.cp-tram-card--blue   { --accent: #1a73d9; --accent-soft: #dcebfb; }
.cp-tram-card--gold   { --accent: #d49a00; --accent-soft: #fbefc8; }
.cp-tram-card--teal   { --accent: #0f9a8a; --accent-soft: #d3f2ee; }

.cp-tram-card__icon {
  flex: 0 0 76px;
  width: 76px;
  height: 76px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}
.cp-tram-card__icon img { width: 44px; height: 44px; object-fit: contain; }
.cp-tram-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: .45rem; min-width: 0; padding-right: .5rem; }
.cp-tram-card__title { font-size: clamp(1.2rem, 1.6vw, 1.45rem); font-weight: 800; line-height: 1.2; color: #0f4d2a; }
.cp-tram-card__text { font-size: .98rem; line-height: 1.5; }
.cp-tram-card__link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin-top: .6rem;
  font-weight: 700;
  font-size: .95rem;
  color: var(--accent);
}
.cp-tram-card__arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: transform .2s ease;
}
.cp-tram-card:hover .cp-tram-card__arrow { transform: translateX(3px); }
.cp-tram-card__leaves {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 130px;
  height: 180px;
  fill: #6aaa35;
  opacity: .1;
  pointer-events: none;
}

.cp-tram__cta-wrap { display: flex; justify-content: center; margin-top: 1.75rem; }
.cp-tram__cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  min-width: min(100%, 420px);
  justify-content: center;
  padding: 1.05rem 2.5rem;
  border-radius: 6px;
  background: #f5a623;
  color: #1a2c4e;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .2);
  transition: background .2s ease, transform .2s ease;
}
.cp-tram__cta i { font-size: 1.3rem; }
.cp-tram__cta:hover, .cp-tram__cta:focus-visible { background: #f09a0a; color: #1a2c4e; transform: translateY(-2px); }
.cp-tram__cta:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.cp-tram__wave { position: absolute; left: 0; bottom: -1px; width: 100%; height: 120px; z-index: 1; }
.cp-tram__wave-light { fill: #cfe8bd; }
.cp-tram__wave-green { fill: #6aaa35; }
.cp-tram__wave-white { fill: #fff; }

@media (max-width: 1199.98px) {
  .cp-tram__grid { gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
  .cp-tram-card { padding: 1.4rem; gap: 1rem; }
  .cp-tram-card__icon { flex-basis: 64px; width: 64px; height: 64px; font-size: 1.9rem; }
  .cp-tram-card__body { padding-right: 0; }
  .cp-tram-card__title { font-size: 1.25rem; }
  .cp-tram-card__text { font-size: .92rem; }
}
@media (max-width: 767.98px) {
  .cp-tram { padding: 3rem 0 6rem; }
  .cp-tram__mark { width: 240px; height: 240px; right: -70px; }
  .cp-tram-card { padding: 1.25rem; gap: 1rem; min-height: 0; }
  .cp-tram-card__icon { flex-basis: 60px; width: 60px; height: 60px; font-size: 1.7rem; }
  .cp-tram-card__body { padding-right: 0; }
  .cp-tram__cta { padding: .9rem 1.5rem; font-size: .95rem; }
  .cp-tram__wave { height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .cp-tram-card, .cp-tram-card__arrow, .cp-tram__cta { transition: none; }
  .cp-tram-card:hover, .cp-tram__cta:hover { transform: none; }
}
