/* =========================================================
   ING THEDY - DETALLE DE SERVICIOS
   Archivo independiente y autocontenido
========================================================= */

:root {
  --blue: #063f91;
  --blue-2: #0b5bd3;
  --dark: #071224;
  --dark-2: #050b16;
  --text: #0d1526;
  --muted: #5d6878;
  --line: #dbe4f0;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background: var(--dark);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

/* HEADER */

.detail-header {
  position: relative;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.detail-nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -1px;
}

.logo-img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.logo span {
  line-height: 1;
}

.logo small {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .7px;
}

.detail-back-link {
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
}

/* FONDO */

.service-detail-stage {
  position: relative;
  min-height: calc(100vh - 82px);
  padding: 54px 0 68px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.service-detail-stage::before {
  content: "";
  position: absolute;
  inset: -15px;
  background:
    linear-gradient(
      135deg,
      rgba(7, 18, 36, .86),
      rgba(6, 63, 145, .68)
    ),
    var(--service-bg);
  background-position: center;
  background-size: cover;
  filter: blur(8px);
  transform: scale(1.06);
}

.service-detail-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(7,18,36,.12),
      rgba(7,18,36,.60)
    );
}

.service-detail-container {
  position: relative;
  z-index: 2;
}

/* PANEL FLOTANTE */

.service-detail-panel {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(320px, .95fr) minmax(0, 1.05fr);
  overflow: hidden;
  border-radius: 26px;
  background: var(--white);
  box-shadow: 0 34px 100px rgba(0,0,0,.38);
}

/* IMAGEN */

.service-detail-media {
  min-height: 540px;
  background: #dfe6ef;
}

.service-detail-media img {
  width: 100%;
  height: 100%;
  min-height: 540px;
  object-fit: cover;
  object-position: center;
}

/* TEXTO */

.service-detail-content {
  padding: 52px 52px 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.service-detail-label {
  margin-bottom: 12px;
  color: var(--blue-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.service-detail-content h1 {
  margin: 0 0 22px;
  font-size: clamp(36px, 4.5vw, 56px);
  line-height: 1.03;
  letter-spacing: -2px;
  color: var(--text);
}

.service-detail-lead {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.service-detail-content h2 {
  margin: 28px 0 12px;
  font-size: 18px;
  color: var(--text);
}

.service-detail-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.service-detail-list li + li {
  margin-top: 5px;
}

/* BOTONES */

.service-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 21px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 800;
  transition: .25s ease;
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 12px 28px rgba(6,63,145,.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-outline {
  color: var(--blue);
  background: var(--white);
  border-color: var(--blue);
}

.btn-outline:hover {
  color: var(--white);
  background: var(--blue);
}

/* BOTÓN X */

.service-detail-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.96);
  color: var(--text);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 8px 24px rgba(8,28,60,.12);
  transition: .2s ease;
}

.service-detail-close:hover {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
}

/* TABLET */

@media (max-width: 860px) {
  .service-detail-stage {
    padding: 34px 0 50px;
    align-items: flex-start;
  }

  .service-detail-panel {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .service-detail-media,
  .service-detail-media img {
    min-height: 330px;
    height: 330px;
  }

  .service-detail-content {
    padding: 38px 34px 40px;
  }
}

/* CELULAR */

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .detail-nav {
    min-height: 72px;
  }

  .logo {
    font-size: 23px;
  }

  .logo-img {
    width: 44px;
    height: 44px;
  }

  .logo small {
    display: none;
  }

  .detail-back-link {
    font-size: 12px;
  }

  .service-detail-stage {
    min-height: calc(100vh - 72px);
    padding: 20px 0 34px;
  }

  .service-detail-panel {
    border-radius: 20px;
  }

  .service-detail-media,
  .service-detail-media img {
    min-height: 240px;
    height: 240px;
  }

  .service-detail-content {
    padding: 30px 24px 32px;
  }

  .service-detail-content h1 {
    font-size: 35px;
    letter-spacing: -1.3px;
  }

  .service-detail-lead {
    font-size: 16px;
  }

  .service-detail-actions {
    flex-direction: column;
  }

  .service-detail-actions .btn {
    width: 100%;
  }
}
