.service-showcase {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 45%, #f8fafc 100%);
  padding: clamp(3rem, 7vw, 6rem) 0;
}

/* La narración de cada modalidad ya contiene la descripción completa. */
.service-intro { display: none; }

.service-page-hero {
  background-color: #123f85;
  background-image: linear-gradient(rgba(7, 35, 86, .42), rgba(7, 35, 86, .55)), url("assets/site/hero-puerto-v2.webp");
  background-position: center 58%;
  background-size: cover;
}

.service-page-hero--maritimo {
  background-image: linear-gradient(rgba(7, 35, 86, .4), rgba(7, 35, 86, .62)), url("/sitio/assets/site/hero-puerto-v2.webp"), url("assets/site/hero-puerto-v2.webp");
  background-position: center 52%;
}

.service-page-hero--aereo {
  background-image: linear-gradient(rgba(7, 35, 86, .38), rgba(7, 35, 86, .62)), url("/sitio/assets/site/unsplash/photo-1436491865332-7a61a109cc05.webp"), url("assets/site/servicio-aereo.webp");
  background-position: center 48%;
}

.service-generic-hero {
  background-position: center;
  background-size: cover;
}
.service-generic-hero--agente { background-image: linear-gradient(90deg,rgba(7,35,86,.72),rgba(7,35,86,.54)), url("assets/site/agente-compra-hero.webp"), url("/sitio/assets/site/unsplash/photo-1556761175-b413da4baf72.webp"); }
.service-generic-hero--almacen { background-image: linear-gradient(rgba(7,35,86,.48),rgba(7,35,86,.7)), url("/sitio/assets/site/unsplash/photo-1586528116311-ad8dd3c8310d.webp"); }
.service-generic-hero--inspeccion { background-image: linear-gradient(rgba(7,35,86,.5),rgba(7,35,86,.7)), url("/sitio/assets/site/unsplash/photo-1565610222536-ef125c59da2e.webp"); }
.service-generic-hero--logistica { background-image: linear-gradient(rgba(7,35,86,.5),rgba(7,35,86,.7)), url("/sitio/assets/site/unsplash/photo-1580674684081-7617fbf3d745.webp"); }
.service-generic-hero--programa { background-image: linear-gradient(rgba(7,35,86,.5),rgba(7,35,86,.7)), url("/sitio/assets/site/programa-importacion-v2.webp"); }
.service-generic-hero--seguro { background-image: linear-gradient(rgba(7,35,86,.5),rgba(7,35,86,.7)), url("/sitio/assets/site/unsplash/photo-1450101499163-c8848c66ca85.webp"); }
.service-generic-hero--reclamaciones { background-image: linear-gradient(90deg,rgba(7,35,86,.78),rgba(7,35,86,.56)), url("/sitio/assets/site/unsplash/photo-1556740749-887f6717d7e4.webp"), url("assets/site/hero-puerto-v2.webp"); }
.service-generic-hero--viajes { background-image: linear-gradient(90deg,rgba(7,35,86,.72),rgba(7,35,86,.46)), url("/sitio/assets/site/unsplash/photo-1493976040374-85c8e12f0c0e.webp"); }

.service-showcase__heading {
  margin: 0 auto clamp(2.25rem, 5vw, 4rem);
  max-width: 760px;
  text-align: center;
}

.service-showcase__eyebrow {
  color: #f97316;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.service-showcase__heading h2 {
  color: #082b62;
  font-size: clamp(1.8rem, 4vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-top: .65rem;
}

.service-showcase__heading p {
  color: #64748b;
  line-height: 1.75;
  margin-top: 1rem;
}

.service-story {
  align-items: stretch;
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, .98fr);
  margin: 0 auto;
  max-width: 1240px;
  padding: clamp(2.5rem, 6vw, 5.5rem) 1.25rem;
}

.service-story + .service-story { border-top: 1px solid #dbe4ef; }
.service-story--reverse .service-story__content { order: 2; }
.service-story--reverse > .service-carousel { order: 1; }
.service-story--reverse .service-story__media { order: 1; }
.service-story__media { align-self:center; display:flex; flex-direction:column; align-items:center; gap:1.1rem; min-width:0; width:100%; }
.service-story__media .service-carousel { align-self:stretch; width:100%; }
.service-story__media .service-story__cta { justify-content:center; margin-top:0; min-width:220px; }

.service-story__tag {
  align-items: center;
  background: #fff2e8;
  border: 1px solid #fed7aa;
  border-radius: 999px;
  color: #c2410c;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 800;
  gap: .5rem;
  letter-spacing: .08em;
  padding: .55rem .85rem;
  text-transform: uppercase;
}

.service-story h3 {
  color: #061f46;
  font-size: clamp(1.75rem, 3.6vw, 3rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.08;
  margin-top: 1rem;
}

.service-story__lead {
  color: #0757b8;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  font-weight: 800;
  line-height: 1.4;
  margin-top: .65rem;
}

.service-story__description {
  color: #475569;
  font-size: .98rem;
  line-height: 1.75;
  margin-top: 1.1rem;
}

.service-features {
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 1.6rem 0;
}

.service-feature {
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 1.1rem;
  color: #0f3c78;
  min-height: 120px;
  padding: 1rem .75rem;
  text-align: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease, background .2s ease;
}

.service-feature:hover,
.service-feature:focus-visible,
.service-feature.is-selected {
  background: #fff7ed;
  border-color: #fb923c;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, .14), 0 12px 26px rgba(249, 115, 22, .18);
  transform: translateY(-2px);
}

.service-feature__icon {
  align-items: center;
  background: #ffffff;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 60, 120, .09);
  display: inline-flex;
  font-size: 1.35rem;
  height: 44px;
  justify-content: center;
  margin-bottom: .65rem;
  width: 44px;
}

.service-feature p { font-size: .76rem; font-weight: 700; line-height: 1.4; }

.service-disclosure {
  border: 1px solid #d9e4f2;
  border-radius: 1rem;
  margin-top: .75rem;
  overflow: hidden;
}

.service-disclosure[open] { border-color: #fb923c; box-shadow: 0 0 0 3px rgba(249, 115, 22, .12), 0 12px 30px rgba(249, 115, 22, .12); }
.service-disclosure summary {
  align-items: center;
  background: #edf7ff;
  color: #073b7a;
  cursor: pointer;
  display: flex;
  font-size: .9rem;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: .9rem 1rem;
  transition: background .2s ease, color .2s ease;
}
.service-disclosure summary:hover,
.service-disclosure summary:focus-visible,
.service-disclosure[open] summary { background: #fff2e8; color: #c2410c; }
.service-disclosure summary::-webkit-details-marker { display: none; }
.service-disclosure summary::after { content: '+'; font-size: 1.25rem; }
.service-disclosure[open] summary::after { content: '−'; }
.service-disclosure__body { background: #fff; padding: .9rem 1rem 1rem; }
.service-disclosure__body li {
  color: #475569;
  display: flex;
  font-size: .82rem;
  gap: .6rem;
  line-height: 1.45;
  margin-top: .55rem;
}
.service-disclosure__body li:first-child { margin-top: 0; }
.service-check { color: #f97316; font-weight: 900; }

.service-story__cta {
  align-items: center;
  background: #f97316;
  border-radius: 999px;
  box-shadow: 0 12px 26px rgba(249, 115, 22, .24);
  color: #fff;
  display: inline-flex;
  font-size: .88rem;
  font-weight: 800;
  gap: .55rem;
  margin-top: 1.35rem;
  padding: .9rem 1.25rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.service-story__cta:hover { background: #ea580c; box-shadow: 0 16px 30px rgba(234, 88, 12, .3); transform: translateY(-2px); }

.service-carousel {
  background: #082b62;
  border-radius: 1.6rem;
  box-shadow: 0 28px 55px rgba(15, 23, 42, .2);
  min-height: 0;
  height: 560px;
  align-self: center;
  overflow: hidden;
  position: relative;
}
.service-story--grupal-maritimo > .service-story__media { align-self:stretch; justify-content:flex-end; }
.service-carousel--grupal-maritimo { height: 520px; }
.service-carousel__slide { inset: 0; opacity: 0; position: absolute; transition: opacity .7s ease, transform 1s ease; transform: scale(1.03); }
.service-carousel__slide.is-active { opacity: 1; transform: scale(1); }
.service-carousel__slide img { height: 100%; object-fit: cover; width: 100%; }
.service-carousel__slide::after { background: linear-gradient(180deg, transparent 45%, rgba(2, 17, 41, .84)); content: ''; inset: 0; position: absolute; }
.service-carousel__caption { bottom: 3.2rem; color: #fff; left: 1.5rem; position: absolute; right: 1.5rem; z-index: 2; }
.service-carousel__caption strong { display: block; font-size: 1.05rem; }
.service-carousel__caption span { color: #dbeafe; display: block; font-size: .78rem; margin-top: .25rem; }
.service-carousel__controls { align-items: center; bottom: 1rem; display: flex; gap: .5rem; left: 1.25rem; position: absolute; right: 1.25rem; z-index: 3; }
.service-carousel__button { align-items: center; background: rgba(255,255,255,.92); border-radius: 999px; color: #082b62; display: flex; font-weight: 900; height: 34px; justify-content: center; width: 34px; }
.service-carousel__dots { display: flex; flex: 1; gap: .4rem; justify-content: center; }
.service-carousel__dot { background: rgba(255,255,255,.42); border-radius: 999px; height: 6px; transition: width .25s ease, background .25s ease; width: 7px; }
.service-carousel__dot.is-active { background: #f97316; width: 28px; }

@media (max-width: 900px) {
  .service-story { grid-template-columns: 1fr; }
  .service-story--reverse .service-story__content, .service-story--reverse .service-carousel { order: initial; }
  .service-story--reverse .service-story__media { order: initial; }
  .service-carousel { height: 430px; min-height: 430px; }
}

@media (max-width: 560px) {
  .service-showcase { padding-top: 2.5rem; }
  .service-story { gap: 1.6rem; padding: 2.5rem 1rem; }
  .service-features { grid-template-columns: 1fr 1fr 1fr; gap: .45rem; }
  .service-feature { min-height: 106px; padding: .75rem .35rem; }
  .service-feature p { font-size: .66rem; }
  .service-carousel { border-radius: 1.2rem; height: 360px; min-height: 360px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-carousel__slide, .service-story__cta { transition: none; }
}

/* Carrusel automático de servicios relacionados */
.related-services-section .max-w-6xl { overflow: hidden; }
.related-services-section::before {
  content: "";
  position: relative;
  top: clamp(-104px, -8vw, -64px);
  display: block;
  width: min(100%, 1240px);
  height: 24px;
  margin: 0 auto 20px;
  background-image: linear-gradient(90deg, transparent 0%, #93c5fd 28%, #2563eb 45%, #ffffff 55%, #fb923c 70%, transparent 100%), linear-gradient(90deg, #3b82f655, #93c5fd40 52%, #f973164d);
  background-size: 30% 100%, 100% 100%;
  background-position: -60% 0, 0 0;
  background-repeat: no-repeat;
  -webkit-mask: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 15 Q180 2 360 15 T720 15 T1200 15' fill='none' stroke='white' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  mask: center / 100% 100% no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 30' preserveAspectRatio='none'%3E%3Cpath d='M0 15 Q180 2 360 15 T720 15 T1200 15' fill='none' stroke='white' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E");
  animation: abk-wave-charge 3.6s linear infinite;
}
@keyframes abk-wave-charge { to { background-position: 160% 0, 0 0; } }
.related-services-section h2 { animation: related-heading-breathe 3.8s ease-in-out infinite; transform: translateY(-1px); }
@keyframes related-heading-breathe { 0%,100% { box-shadow: 0 0 18px #3b82f62e; } 50% { box-shadow: 0 0 26px #3b82f64a; } }
.bg-slate-50 .service-related-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 1rem;
  overflow: visible;
  padding: .25rem .1rem .7rem;
  width: max-content;
  animation: serviceRelatedMarquee 34s linear infinite;
}
.bg-slate-50 .service-related-track > a {
  align-items: center;
  flex: 0 0 178px;
  min-height: 148px;
  justify-content: flex-start;
  padding: 1rem .8rem;
}
.service-related-track:hover { animation-play-state: paused; }
.service-related-icon { display: grid; place-items: center; }
.service-related-icon > span { font-size: 2rem; line-height: 1; }
.service-related-subtitle { color: #64748b; font-size: .68rem; line-height: 1.35; max-width: 160px; text-align: center; }
@keyframes serviceRelatedMarquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .related-services-section .service-related-track { animation: none; overflow-x: auto; width: 100%; }
  .related-services-section h2 { animation: none; }
  .related-services-section::before { animation: none; background-image: linear-gradient(90deg, #3b82f655, #93c5fd40 52%, #f973164d); background-size: 100% 100%; background-position: center; }
}
