:root {
  /* =========================
     BRAND TOKENS
     Inspirado en el PDF: franjas azules superiores,
     ondas magenta inferiores y titulares muy contundentes.
  ========================= */
  --brand-blue-950: #04257d;
  --brand-blue-900: #05369a;
  --brand-blue-800: #0a4ec2;
  --brand-blue-700: #1387de;
  --brand-cyan-500: #33bcff;
  --brand-pink-800: #b8007e;
  --brand-pink-700: #ce0d91;
  --brand-pink-500: #eb5dc6;
  --brand-pink-300: #f3b3e2;
  --brand-ink-900: #182654;
  --brand-ink-700: #3f4d78;
  --brand-line: rgba(10, 78, 194, 0.14);
  --brand-card: rgba(255, 255, 255, 0.97);
  --brand-bg: #f7f7fc;
  --brand-white: #ffffff;

  --font-body: "Segoe UI", Arial, Helvetica, sans-serif;
  --font-display: "Arial Rounded MT Bold", "Trebuchet MS", "Segoe UI", Arial, sans-serif;

  --container: 1180px;
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 30px;
  --radius-pill: 999px;

  --shadow-soft: 0 14px 30px rgba(4, 37, 125, 0.08);
  --shadow-card: 0 20px 44px rgba(4, 37, 125, 0.14);
  --shadow-hover: 0 24px 52px rgba(4, 37, 125, 0.18);

  --gradient-blue-band: linear-gradient(135deg, var(--brand-blue-950) 0%, var(--brand-blue-900) 28%, var(--brand-blue-800) 65%, var(--brand-cyan-500) 100%);
  --gradient-pink-band: linear-gradient(90deg, #f7bddf 0%, #f39bd5 18%, #ec67c5 48%, #df2aa7 76%, #c90087 100%);
  --gradient-pink-btn: linear-gradient(135deg, var(--brand-pink-800) 0%, var(--brand-pink-700) 40%, var(--brand-pink-500) 100%);
  --gradient-page: linear-gradient(180deg, #fcfcff 0%, #f4f6fd 100%);
}

/* =========================
   RESET
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--brand-ink-900);
  background:
    radial-gradient(circle at top left, rgba(51, 188, 255, 0.09), transparent 20%),
    radial-gradient(circle at right bottom, rgba(235, 93, 198, 0.08), transparent 22%),
    var(--gradient-page);
}

html, body {
  overflow-x: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

/* =========================
   GLOBAL TITLES
========================= */
.hero h1,
.detalle-hero h1,
.section-title,
.company-copy h2,
.special-section h2,
.detalle-card h2,
.detalle-card h3,
.form-card h3,
.servicio-card h3,
.special-card h3,
.certificado-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.section-title,
.company-copy h2,
.special-section h2,
.detalle-card h2,
.detalle-card h3 {
  color: var(--brand-blue-900);
  font-size: clamp(25px, 2.6vw, 40px);
}

.section-title,
.special-section h2 {
  text-align: center;
}

.section-subtitle,
.hero p,
.detalle-hero p,
.company-copy p,
.certificado-desc,
.servicio-card p,
.servicio-card li,
.special-card p,
.detalle-card p,
.detalle-list,
.ticks,
.certificado-beneficios li {
  color: var(--brand-ink-700);
  line-height: 1.58;
}

.section-subtitle {
  max-width: 940px;
  margin: 18px auto 34px;
  text-align: center;
  font-size: clamp(18px, 2vw, 22px);
}

/* =========================
   HEADER / NAV
========================= */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(10, 78, 194, 0.1);
  box-shadow: 0 10px 28px rgba(4, 37, 125, 0.06);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}

.logo img {
  width: auto;
  height: 56px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 26px;
  color: var(--brand-blue-900);
  font-size: 15px;
  font-weight: 800;
}

.nav a {
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 3px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--brand-blue-700), var(--brand-pink-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.24s ease;
}

.nav a:hover::after {
  transform: scaleX(1);
}

/* =========================
   BUTTONS
========================= */
.contact-btn,
.btn-orange,
.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 56px;
  padding: 16px 34px;
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
  color: var(--brand-white);
  text-align: center;
  font-weight: 900;
  letter-spacing: 0.02em;
  box-shadow: 0 14px 28px rgba(4, 37, 125, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.contact-btn:hover,
.btn-orange:hover,
.btn-blue:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(4, 37, 125, 0.2);
  filter: saturate(1.05);
}

.contact-btn,
.btn-orange {
  background: var(--gradient-pink-btn);
}

.btn-blue {
  background: linear-gradient(135deg, #0b3f9f 0%, #1d74df 70%, #4aa4ff 100%);
  opacity: 1;
}

.contact-btn {
  min-height: 46px;
  padding: 12px 24px;
  font-size: 14px;
}

.full-btn {
  width: 100%;
  margin-top: 8px;
}

/* =========================
   WAVE SECTIONS
========================= */
.section,
.detalle-section,
.company-section,
.special-section {
  position: relative;
  z-index: 1;
  padding: 64px 0 74px;
}

.section > .container,
.detalle-section > .container,
.company-section > .container,
.special-section > .container {
  position: relative;
  z-index: 2;
}

.section::before,
.detalle-section::before,
.company-section::before,
.special-section::before,
.hero::after,
.detalle-hero::after,
.company-section::after,
.special-section::after {
  content: "";
  position: absolute;
  left: -6%;
  width: 112%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.section::before,
.detalle-section::before,
.company-section::before,
.special-section::before {
  top: -110px;
  height: 180px;
  background: linear-gradient(90deg, rgba(235, 93, 198, 0.12), rgba(243, 179, 226, 0.26), rgba(51, 188, 255, 0.16));
  transform: rotate(-3deg);
}

.company-section::after,
.special-section::after {
  bottom: -140px;
  height: 240px;
  background: var(--gradient-pink-band);
  transform: rotate(-3deg);
  opacity: 0.34;
}

.section-soft,
.detalle-section,
.special-section,
.company-section {
  background:
    radial-gradient(circle at top left, rgba(51, 188, 255, 0.08), transparent 24%),
    linear-gradient(180deg, #fbfbff 0%, #f3f6fd 100%);
}

.section-soft {
  border-top: 1px solid rgba(10, 78, 194, 0.08);
  border-bottom: 1px solid rgba(10, 78, 194, 0.08);
}

/* =========================
   HERO
========================= */
.hero,
.detalle-hero {
  position: relative;
  overflow: hidden;
  min-height: 560px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}

.hero {
  background-image: url("../img/logo-header/headerSocioSanitario.png");
}

.detalle-hero {
  padding: 64px 0 82px;
  background-image: url("../img/logo-header/headerSocioSanitario.png");
}

.hero::before,
.detalle-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(95deg, rgba(4, 37, 125, 0.94) 0%, rgba(5, 54, 154, 0.88) 18%, rgba(10, 78, 194, 0.68) 42%, rgba(19, 135, 222, 0.18) 72%, rgba(19, 135, 222, 0) 88%),
    radial-gradient(circle at left center, rgba(51, 188, 255, 0.3), transparent 32%);
}

.hero::after,
.detalle-hero::after {
  bottom: -145px;
  height: 250px;
  background: var(--gradient-pink-band);
  opacity: 0.95;
  transform: rotate(-4deg);
}

.hero-grid,
.detalle-hero-inner {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 26px;
  padding: 48px 0 74px;
}

.hero-copy,
.detalle-hero-copy {
  max-width: 760px;
  color: var(--brand-white);
}

.hero h1,
.detalle-hero h1 {
  font-size: clamp(36px, 4vw, 58px);
  color: var(--brand-white);
  text-shadow: 0 6px 22px rgba(0, 0, 0, 0.24);
}

.hero-divider {
  width: 190px;
  height: 6px;
  margin: 22px 0 24px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(255, 255, 255, 1), rgba(243, 179, 226, 0.95));
}

.hero p,
.detalle-hero p {
  margin: 0 0 34px;
  max-width: 650px;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.98);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.detalle-badge {
  display: inline-block;
  margin-bottom: 14px;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* =========================
   LAYOUT GRIDS
========================= */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.9fr);
  gap: 30px;
  align-items: start;
}

.servicios-grid,
.special-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

.servicios-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.special-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.company-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, 1fr) minmax(300px, 0.76fr);
  gap: 22px;
  align-items: stretch;
}

.detalle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.78fr);
  gap: 24px;
  align-items: start;
}

.detalle-main,
.detalle-side {
  display: grid;
  gap: 18px;
}

/* =========================
   CARDS
========================= */
.form-card,
.feature-card,
.special-card,
.company-copy,
.servicio-card,
.detalle-card,
.certificado-box {
  background: var(--brand-card);
  border: 1px solid rgba(10, 78, 194, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.certificado-box {
  overflow: hidden;
  position: relative;
}

.certificado-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(243, 179, 226, 0.05) 100%);
}

.servicio-card,
.special-card,
.detalle-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.servicio-card:hover,
.special-card:hover,
.detalle-card:hover {
  transform: translateY(-7px);
  border-color: rgba(19, 135, 222, 0.22);
  box-shadow: var(--shadow-hover);
}

/* =========================
   CERTIFICADO
========================= */
.certificado-header {
  position: relative;
  z-index: 0;
  padding: 28px 30px 26px;
  background: var(--gradient-blue-band);
  color: var(--brand-white);
}

.certificado-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 46%),
    radial-gradient(circle at right top, rgba(255, 255, 255, 0.18), transparent 28%);
  pointer-events: none;
}

.certificado-header::after {
  content: "";
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -30px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.98);
  transform: rotate(-2deg);
  pointer-events: none;
  z-index: 0;
}

.certificado-header h3 {
  position: relative;
  z-index: 1;
  font-size: 27px;
}

.certificado-body,
.certificado-beneficios {
  position: relative;
  z-index: 1;
}

.certificado-body {
  padding: 46px 30px 10px;
}

.certificado-beneficios {
  padding: 20px 30px 10px;
}

.certificado-titulo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  color: var(--brand-blue-900);
  font-family: var(--font-display);
  font-size: 24px;
}

.certificado-icon,
.servicio-icon,
.icon {
  display: grid;
  place-items: center;
}

.certificado-icon {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(19, 135, 222, 0.16), rgba(235, 93, 198, 0.18));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 24px rgba(4, 37, 125, 0.1);
}

.certificado-codigo {
  margin: 0 0 16px;
  color: var(--brand-pink-800);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.5;
  font-weight: 900;
}

.certificado-desc,
.certificado-footer {
  font-size: 17px;
}

.certificado-beneficios ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.certificado-beneficios li {
  padding: 15px 16px;
  border: 1px solid rgba(10, 78, 194, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 255, 0.96));
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

.certificado-footer {
  margin: 20px 0 0;
  color: var(--brand-blue-900);
  font-family: var(--font-display);
  font-weight: 800;
}

.cta-center {
  padding: 10px 30px 30px;
  text-align: center;
}

/* =========================
   FORMS
========================= */
.form-card {
  position: relative;
  overflow: hidden;
  padding: 24px 24px 26px;
}

.form-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 9px;
  background: linear-gradient(90deg, var(--brand-blue-900), var(--brand-blue-700), var(--brand-pink-500));
}

.form-card h3 {
  margin: 8px 0 18px;
  color: var(--brand-blue-900);
  font-size: 26px;
  text-align: center;
}

.field,
.select {
  width: 100%;
  height: 56px;
  margin-bottom: 14px;
  padding: 0 18px;
  border: 1px solid rgba(10, 78, 194, 0.16);
  border-radius: 18px;
  outline: none;
  background: rgba(255, 255, 255, 0.9);
  color: #344260;
  font-size: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.field:focus,
.select:focus {
  border-color: rgba(19, 135, 222, 0.6);
  box-shadow: 0 0 0 4px rgba(51, 188, 255, 0.12);
}

.select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #4a5d89 50%),
    linear-gradient(135deg, #4a5d89 50%, transparent 50%);
  background-position: calc(100% - 24px) 25px, calc(100% - 18px) 25px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

/* =========================
   SERVICES / ICONS
========================= */
.services-top {
  margin-bottom: 24px;
  text-align: center;
}

.services-top .line {
  width: min(860px, 92%);
  height: 8px;
  margin: 14px auto 0;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, rgba(19, 135, 222, 0), rgba(19, 135, 222, 0.55) 18%, rgba(235, 93, 198, 0.55) 82%, rgba(235, 93, 198, 0));
}

.servicio-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 26px;
}

.servicio-icon {
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  border-radius: 22px;
  font-size: 31px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 10px 24px rgba(4, 37, 125, 0.08);
}

.icon {
  width: 90px;
  height: 90px;
  margin-bottom: 18px;
  border-radius: 26px;
  font-size: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 28px rgba(4, 37, 125, 0.08);
}

.icon-blue {
  background: linear-gradient(135deg, rgba(10, 78, 194, 0.16), rgba(51, 188, 255, 0.26));
}

.icon-soft {
  background: linear-gradient(135deg, rgba(51, 188, 255, 0.16), rgba(243, 179, 226, 0.28));
}

.icon-orange,
.icon-green {
  background: linear-gradient(135deg, rgba(206, 13, 145, 0.14), rgba(243, 179, 226, 0.3));
}

.servicio-card h3,
.special-card h3 {
  margin: 0 0 10px;
  color: var(--brand-blue-900);
  font-size: 20px;
}

.servicio-card ul {
  margin: 0 0 16px 18px;
  padding: 0;
}

.servicio-cta {
  margin-top: auto;
  padding-top: 14px;
}

.servicio-cta a {
  color: var(--brand-pink-800);
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.special-section {
  overflow: hidden;
  padding-top: 96px;
}

.special-card,
.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 196px;
  padding: 24px 18px 24px;
  text-align: center;
}

.special-card p {
  margin: 0;
  font-size: 14px;
}

.catalogo {
  position: relative;
  z-index: 4;
  margin-top: 24px;
  text-align: center;
}

/* =========================
   COMPANY AREA
========================= */
.company-section {
  overflow: hidden;
  padding-top: 68px;
  padding-bottom: 52px;
}

.company-copy {
  padding: 30px 30px 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.company-copy p {
  margin: 0 0 14px;
  font-size: 21px;
}

.company-image {
  position: relative;
  overflow: hidden;
  min-height: 340px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  background: #eef3f8;
}

.company-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.76) 16%, rgba(255, 255, 255, 0.24) 36%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, rgba(19, 135, 222, 0.12) 0%, rgba(255, 255, 255, 0) 40%, rgba(235, 93, 198, 0.1) 100%);
  pointer-events: none;
}

.company-form {
  padding: 24px;
}

.ticks {
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
  font-size: 17px;
}

.ticks li {
  position: relative;
  margin: 9px 0;
  padding-left: 30px;
}

.ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-pink-800);
  font-weight: 900;
}

/* =========================
   DETAIL / MODAL
========================= */
.detalle-card {
  padding: 26px;
}

.detalle-card h2 {
  font-size: 30px;
}

.detalle-card h3 {
  font-size: 23px;
}

.detalle-card h4 {
  margin: 0 0 8px;
  color: #223a63;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 800;
}

.detalle-code {
  margin-bottom: 18px !important;
  color: var(--brand-pink-800);
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1.45;
  font-weight: 900;
}

.detalle-meta {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 16px;
  border-top: 1px solid rgba(10, 78, 194, 0.1);
}

.detalle-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.detalle-meta-label {
  color: #6c7b97;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detalle-meta-item strong {
  color: var(--brand-ink-900);
  font-size: 22px;
  line-height: 1.2;
}

.detalle-content-block + .detalle-content-block {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(10, 78, 194, 0.08);
}

.detalle-list {
  margin: 0;
  padding-left: 22px;
  font-size: 16px;
}

.detalle-video-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 255, 0.98) 100%);
}

.detalle-video-preview {
  display: grid;
  place-items: center;
  min-height: 230px;
  margin-top: 18px;
  padding: 18px;
  border: 1px dashed rgba(10, 78, 194, 0.2);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.9), rgba(250, 252, 255, 0.96));
}

.detalle-cta-card p {
  margin-bottom: 18px;
}

.video-trigger {
  min-width: 320px;
}

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.video-modal.is-open {
  display: flex;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 24, 80, 0.74);
  backdrop-filter: blur(6px);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: 18px 18px 16px;
  border: 1px solid rgba(10, 78, 194, 0.08);
  border-radius: var(--radius-md);
  background: #fff;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.28);
}

.video-modal-title {
  margin: 0 44px 14px 0;
  color: var(--brand-blue-900);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
  text-transform: uppercase;
}

.video-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(10, 78, 194, 0.1);
  color: var(--brand-blue-900);
  font-size: 20px;
  font-weight: 900;
  line-height: 1;
}

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 20px;
  background: #000;
}

.video-modal-frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

body.modal-open {
  overflow: hidden;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1180px) {
  .nav {
    gap: 16px;
    font-size: 14px;
  }

  .hero-grid,
  .split,
  .company-grid,
  .detalle-grid,
  .servicios-grid,
  .special-grid {
    grid-template-columns: 1fr;
  }

  .company-image {
    min-height: 290px;
  }
}

@media (max-width: 900px) {
  .servicios-grid,
  .special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .topbar-inner {
    flex-direction: column;
    padding: 16px 0;
  }

  .hero,
  .detalle-hero {
    min-height: auto;
  }

  .hero-grid,
  .detalle-hero {
    padding-bottom: 64px;
  }

  .hero h1,
  .detalle-hero h1 {
    font-size: 38px;
  }

  .hero p,
  .detalle-hero p,
  .company-copy p,
  .section-subtitle {
    font-size: 18px;
  }

  .section-title,
  .company-copy h2,
  .special-section h2 {
    font-size: 33px;
  }

  .detalle-card {
    padding: 22px;
  }
}

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

  .nav {
    justify-content: flex-start;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn-orange,
  .btn-blue,
  .contact-btn,
  .video-trigger {
    width: 100%;
    min-width: 100%;
  }

  .servicios-grid,
  .special-grid {
    grid-template-columns: 1fr;
  }

  .section,
  .detalle-section,
  .company-section,
  .special-section {
    padding: 38px 0 46px;
  }

  .hero h1,
  .detalle-hero h1 {
    font-size: 31px;
  }

  .certificado-header,
  .certificado-body,
  .certificado-beneficios,
  .cta-center,
  .company-copy,
  .form-card,
  .detalle-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .video-modal {
    padding: 16px;
  }

  .video-modal-dialog {
    padding: 14px 14px 12px;
    border-radius: 18px;
  }

  .video-modal-title {
    margin-right: 40px;
    font-size: 18px;
  }
}
.proposal-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 24px;
  align-items: stretch;
}

.proposal-copy {
  padding: 28px;
  text-align: left;
}

.proposal-copy h3 {
  margin: 0 0 14px;
  color: var(--blue-900);
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.proposal-copy p {
  margin: 0 0 16px;
  color: #435071;
  line-height: 1.55;
  font-size: 17px;
}

.field-area {
  min-height: 140px;
  height: auto;
  padding: 16px;
  resize: vertical;
  border-radius: 14px;
}

textarea.field {
  font-family: inherit;
}

@media (max-width: 1180px) {
  .proposal-grid {
    grid-template-columns: 1fr;
  }
}
.catalogo .btn-blue {
  position: relative;
  z-index: 5;
  isolation: isolate;
}