/* ==========================================================================
   SPECIALTY HERO
   ========================================================================== */

.specialty-hero {
  padding: 28px 0 28px;
  background: #fff;
}


/* Banner */

.specialty-hero__visual {
  width: 100%;
  overflow: hidden;

  border-radius: 18px;
}

.specialty-hero__image {
  display: block;

  width: 100%;
  height: auto;
}


/* Contenido debajo del banner */

.specialty-hero__content {
  max-width: 1100px;

  margin-top: 28px;
}

.specialty-hero__title {
  margin: 0;

  color: var(--pm-color-text);

  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
}

.specialty-hero__subtitle {
  max-width: 900px;

  margin: 22px 0 0;

  color: var(--pm-color-text);

  font-size: 18px;
  line-height: 1.6;
}


/* ==========================================================================
   SPECIALTY CONTENT
   ========================================================================== */

.specialty-content {
  padding: 0 0 72px;
  background: #fff;
}

/* ==========================================================================
   GUTENBERG CONTENT
   ========================================================================== */

.specialty-content__article {
  min-width: 0;

  color: var(--pm-color-text);

  font-size: 17px;
  line-height: 1.7;
}

.specialty-content__article > :first-child {
  margin-top: 0;
}

.specialty-content__article h2 {
  scroll-margin-top: 210px;

  margin: 0 0 12px;

  color: var(--pm-color-text);

  font-size: 24px;
  font-weight: 700;
  line-height: 1.25;
}

.specialty-content__article h2:not(:first-child) {
  margin-top: 38px;
}

.specialty-content__article h3 {
  margin: 30px 0 10px;

  color: var(--pm-color-text);

  font-size: 22px;
  line-height: 1.3;
}

.specialty-content__article p {
  margin: 0 0 18px;
}

.specialty-content__article ul,
.specialty-content__article ol {
  margin: 0 0 22px;
  padding-left: 24px;
}

.specialty-content__article img {
  max-width: 100%;
  height: auto;

  border-radius: 14px;
}

/* ==========================================================================
   SPECIALTY FEATURES
   ========================================================================== */

.specialty-features {
  display: flex;

  gap: 56px;

  align-items: flex-start;
  justify-content: space-between;

  margin: 48px 0;
}

.specialty-features .wp-block-column {
  flex: 1 1 0;

  min-width: 0;

  text-align: center;
}

.specialty-features .wp-block-image {
  display: flex;

  width: 150px;
  height: 150px;

  align-items: center;
  justify-content: center;

  margin: 0 auto 24px;
}

.specialty-features .wp-block-image img {
  display: block;

  width: auto;
  height: auto;

  max-width: 130px;
  max-height: 130px;

  object-fit: contain;

  border-radius: 0;
}

.specialty-features h3 {
  max-width: 290px;

  margin: 0 auto 14px;

  color: var(--pm-color-text);

  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;

  text-align: center;
}

.specialty-features p {
  max-width: 300px;

  margin: 0 auto 16px;

  color: var(--pm-color-text);

  font-size: 16px;
  line-height: 1.65;

  text-align: center;
}


/* ==========================================================================
   SPECIALTY FEATURES - TABLET
   ========================================================================== */

@media (max-width: 900px) {

  .specialty-features {
    gap: 30px;
  }

  .specialty-features .wp-block-image {
    width: 140px;
    height: 140px;
  }

  .specialty-features h3 {
    font-size: 20px;
  }

}


/* ==========================================================================
   SPECIALTY FEATURES - MOBILE
   ========================================================================== */

@media (max-width: 782px) {

  .specialty-features {
    flex-direction: column;
    gap: 48px;
  }

  .specialty-features .wp-block-column {
    width: 100%;
  }

  .specialty-features .wp-block-image {
    width: 150px;
    height: 150px;
  }

}




/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

  .specialty-hero {
    padding: 16px 0 32px;
  }

  .specialty-hero__visual {
    border-radius: 12px;
  }

  .specialty-hero__content {
    margin-top: 22px;
  }

  .specialty-hero__title {
    font-size: 2.3rem;
  }

  .specialty-hero__subtitle {
    margin-top: 16px;

    font-size: 16px;
  }

  .specialty-content {
    padding-bottom: 48px;
  }

.specialty-content__article {
  max-width: 1000px;

  color: var(--pm-color-text);

  font-size: 17px;
  line-height: 1.7;
}

  .specialty-content__article h2 {
    font-size: 24px;
  }

}

/* ==========================================================================
   SPECIALTY FAQ
   ========================================================================== */

.specialty-faq {
  padding: 56px 0 72px;
  background: #fff;
}

.specialty-faq__header {
  margin-bottom: 28px;
  text-align: center;
}

.specialty-faq__title {
  margin: 0;

  color: var(--pm-color-text);

  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
}


/* Lista */

.specialty-faq__list {
  max-width: 980px;

  margin-inline: auto;

  border-top: 1px solid #dfe4e7;
}


/* Cada pregunta */

.specialty-faq__item {
  border-bottom: 1px solid #dfe4e7;
}


/* Quitar marcador nativo */

.specialty-faq__question {
  position: relative;

  display: flex;

  min-height: 58px;

  align-items: center;

  padding: 16px 48px 16px 18px;

  color: var(--pm-color-text);

  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;

  cursor: pointer;

  list-style: none;

  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.specialty-faq__question::-webkit-details-marker {
  display: none;
}

.specialty-faq__question::marker {
  content: "";
}


/* Flecha */

.specialty-faq__question::after {
  position: absolute;

  top: 50%;
  right: 18px;

  width: 9px;
  height: 9px;

  border-right: 2px solid var(--pm-color-primary);
  border-bottom: 2px solid var(--pm-color-primary);

  content: "";

  transform:
    translateY(-70%)
    rotate(45deg);

  transition: transform 180ms ease;
}


/* Hover */

.specialty-faq__question:hover,
.specialty-faq__question:focus-visible {

  color: var(--pm-color-primary);

  outline: none;
}


/* Abierto */

.specialty-faq__item[open]
  > .specialty-faq__question {
  color: var(--pm-color-primary);
}

.specialty-faq__item[open]
  > .specialty-faq__question::after {
  transform:
    translateY(-20%)
    rotate(225deg);
}


/* Respuesta */

.specialty-faq__answer {
  padding: 0 48px 20px 18px;

  color: var(--pm-color-text);

  font-size: 16px;
  line-height: 1.65;
}

.specialty-faq__answer p {
  margin: 0;
}

.specialty-faq__answer p + p {
  margin-top: 12px;
}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 600px) {

  .specialty-faq {
    padding: 40px 0 48px;
  }

  .specialty-faq__header {
    margin-bottom: 20px;
  }

  .specialty-faq__title {
    font-size: 27px;
  }

  .specialty-faq__question {
    min-height: 54px;

    padding:
      14px
      42px
      14px
      12px;

    font-size: 16px;
  }

  .specialty-faq__question::after {
    right: 14px;
  }

  .specialty-faq__answer {
    padding:
      0
      42px
      18px
      12px;

    font-size: 15px;
  }

}

/* ==========================================================================
   SPECIALTY HIGHLIGHT
   ========================================================================== */

.specialty-highlight {
  padding: 64px 0;
  background: #fff;
}

.specialty-highlight__header {
  max-width: 900px;
  margin-bottom: 40px;
}

.specialty-highlight__eyebrow {
  display: block;

  margin-bottom: 10px;

  color: var(--pm-color-primary);

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.specialty-highlight__title {
  margin: 0;

  color: #34495e;

  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.specialty-highlight__intro {
  max-width: 820px;

  margin: 16px 0 0;

  color: var(--pm-color-text);

  font-size: 18px;
  line-height: 1.65;
}


/* Grid */

.specialty-highlight__grid {
  display: grid;

  grid-template-columns: repeat(3, minmax(0, 1fr));

  gap: 18px;
}


/* Card */

.specialty-highlight__item {
  display: grid;

  grid-template-columns: 24px minmax(0, 1fr);

  gap: 14px;

  min-height: 140px;

  padding: 24px;

  border: 1px solid #dfe7ea;
  border-radius: 16px;

  background: #fff;
}

.specialty-highlight__check {
  color: var(--pm-color-primary);

  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.specialty-highlight__item-content h3 {
  margin: 0 0 8px;

  color: #34495e;

  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.specialty-highlight__item-content p {
  margin: 0;

  color: var(--pm-color-text);

  font-size: 16px;
  line-height: 1.55;
}


/* Footer */

.specialty-highlight__footer {
  margin-top: 32px;

  color: var(--pm-color-text);

  font-size: 17px;
  line-height: 1.6;
}

.specialty-highlight__footer p {
  margin: 0 0 8px;
}

.specialty-highlight__link {
  color: var(--pm-color-primary);

  font-weight: 700;
  text-decoration: none;
}

.specialty-highlight__link:hover,
.specialty-highlight__link:focus-visible {
  text-decoration: underline;
}


/* Tablet */

@media (max-width: 900px) {

  .specialty-highlight__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

}


/* Mobile */

@media (max-width: 600px) {

  .specialty-highlight {
    padding: 48px 0;
  }

  .specialty-highlight__title {
    font-size: 24px;
  }

  .specialty-highlight__intro {
    font-size: 16px;
  }

  .specialty-highlight__grid {
    grid-template-columns: 1fr;
  }

  .specialty-highlight__item {
    min-height: auto;
  }

}

/* ==========================================================================
   SPECIALTY CHARACTERISTICS
   ========================================================================== */

.specialty-characteristics {
  padding: 64px 0 72px;
}


/* Header */

.specialty-characteristics__header {
  max-width: 900px;

  margin-bottom: 38px;
}

.specialty-characteristics__eyebrow {
  display: block;

  margin-bottom: 10px;

  color: var(--pm-color-primary);

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;

  text-transform: uppercase;
}

.specialty-characteristics__title {
  margin: 0;

  color: #34495e;

  font-size: 36px;
  font-weight: 700;
  line-height: 1.2;
}

.specialty-characteristics__intro {
  max-width: 850px;

  margin: 16px 0 0;

  color: var(--pm-color-text);

  font-size: 18px;
  line-height: 1.65;
}


/* ==========================================================================
   TABLE WRAPPER
   ========================================================================== */

.specialty-characteristics__table-wrapper {
  width: 100%;

  overflow-x: auto;

  border: 1px solid #dfe7ea;
  border-radius: 18px;

  background: #fff;

  -webkit-overflow-scrolling: touch;
}


/* ==========================================================================
   TABLE
   ========================================================================== */

.specialty-characteristics__table {
  width: 100%;

  min-width: 900px;

  border-collapse: collapse;
  border-spacing: 0;
}


/* Cabecera */

.specialty-characteristics__table thead {
  background: var(--pm-color-primary);

  color: #fff;
}

.specialty-characteristics__table th {
  padding: 22px 20px;

  color: #fff;

  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;

  text-align: left;
  vertical-align: middle;
}


/* Filas */

.specialty-characteristics__table td {
  padding: 22px 20px;

  color: var(--pm-color-text);

  font-size: 16px;
  line-height: 1.55;

  text-align: left;
  vertical-align: middle;
}

.specialty-characteristics__table tbody tr {
  border-bottom: 1px solid #e3e8eb;

  transition: background-color 180ms ease;
}

.specialty-characteristics__table tbody tr:last-child {
  border-bottom: 0;
}

.specialty-characteristics__table tbody tr:hover {
  background: #f8fbfc;
}


/* Primera columna */

.specialty-characteristics__name {
  display: block;

  margin-bottom: 4px;

  color: #34495e;

  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}

.specialty-characteristics__subtitle {
  display: block;

  color: #6f7b83;

  font-size: 14px;
  line-height: 1.45;
}


/* Badge opcional */

.specialty-characteristics__badge {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  padding: 6px 14px;

  border-radius: 999px;

  background: rgb(0 171 183 / 12%);

  color: var(--pm-color-primary);

  font-size: 14px;
  font-weight: 700;

  white-space: nowrap;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 900px) {

  .specialty-characteristics {
    padding: 56px 0 64px;
  }

  .specialty-characteristics__title {
    font-size: 32px;
  }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 700px) {

  .specialty-characteristics {
    padding: 48px 0;
  }

  .specialty-characteristics__header {
    margin-bottom: 28px;
  }

  .specialty-characteristics__title {
    font-size: 24px;
  }

  .specialty-characteristics__intro {
    font-size: 16px;
  }

  .specialty-characteristics__table th,
  .specialty-characteristics__table td {
    padding: 16px;

    font-size: 15px;
  }

}

/* ==========================================================================
   SPECIALTIES ARCHIVE
   ========================================================================== */

.specialties-archive {
  background: #fff;
}

.specialties-archive__section {
  padding: 6px 0 12px;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.specialties-archive__header {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
}

.specialties-archive__title {
  margin: 0;

  color: var(--pm-color-primary);

  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.2;
}

.specialties-archive__separator {
  width: 100px;
  height: 2px;

  margin: 20px auto;

  background: var(--pm-color-primary);
}

.specialties-archive__intro {
  margin: 0;

  color: var(--pm-color-text);

  font-size: 17px;
  line-height: 1.65;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.specialties-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.specialty-card {
  overflow: hidden;

  border: 1px solid #dfe8eb;
  border-radius: 18px;

  background: #fff;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.05);

  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}

.specialty-card:hover {
  transform: translateY(-3px);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.08);
}


/* ==========================================================================
   IMAGE
   ========================================================================== */

.specialty-card__image-link {
  display: block;
}

.specialty-card__image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background-color: #008F99;
}

.specialty-card__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.specialty-card:hover .specialty-card__image {
  transform: scale(1.025);
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.specialty-card__content {
  display: flex;

  padding: 20px 24px 16px;
  min-height: 0;
  flex-direction: column;
}

.specialty-card__title {
  margin-bottom: 12px;

  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.specialty-card__title a {
  color: var(--pm-color-primary);

  text-decoration: none;
}

.specialty-card__title a:hover {
  color: #008f99;
}

.specialty-card__description {
  margin: 0;

  color: var(--pm-color-text);

  font-size: 15px;
  line-height: 1.65;
}


/* ==========================================================================
   LINK
   ========================================================================== */

.specialty-card__link {
  margin-bottom: 0;
  display: inline-flex;

  margin-top: auto;
  padding-top: 22px;

  align-items: center;

  gap: 8px;

  color: var(--pm-color-primary);

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 180ms ease,
    gap 180ms ease;
}

.specialty-card__link:hover {
  gap: 12px;

  color: #008f99;
}


/* ==========================================================================
   EMPTY
   ========================================================================== */

.specialties-archive__empty {
  margin: 0;

  text-align: center;
}


/* ==========================================================================
   PAGINATION
   ========================================================================== */

.specialties-archive .navigation.pagination {
  margin-top: 48px;
}

.specialties-archive .nav-links {
  display: flex;

  justify-content: center;

  gap: 8px;
}

.specialties-archive .page-numbers {
  display: inline-flex;

  min-width: 40px;
  height: 40px;
  padding: 0 12px;

  align-items: center;
  justify-content: center;

  border: 1px solid #dce6e9;
  border-radius: 6px;

  color: var(--pm-color-text);

  text-decoration: none;
}

.specialties-archive .page-numbers.current,
.specialties-archive .page-numbers:hover {
  border-color: var(--pm-color-primary);

  background: var(--pm-color-primary);

  color: #fff;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 950px) {

  .specialties-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 24px;
  }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 620px) {

  .specialties-archive__section {
    padding: 40px 0 56px;
  }

  .specialties-archive__header {
    margin-bottom: 32px;
  }

  .specialties-grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .specialty-card {
    border-radius: 16px;
  }

  .specialty-card__content {
    min-height: auto;
    padding: 12px 10px;
  }

  .specialty-card__title {
    font-size: 21px;
    margin-bottom: 12px;
  }

}

/* ==========================================================================
   SUBSPECIALTIES
   ========================================================================== */

.specialty-subspecialties {
  padding: 56px 0 72px;
}


/* Header */

.specialty-subspecialties__header {
  max-width: 820px;

  margin: 0 auto 38px;

  text-align: center;
}

.specialty-subspecialties__title {
  margin: 0;

  color: #34495e;

  font-size: 34px;
  font-weight: 700;
  line-height: 1.2;
}

.specialty-subspecialties__intro {
  max-width: 720px;

  margin: 14px auto 0;

  color: var(--pm-color-text);

  font-size: 17px;
  line-height: 1.65;
}


/* ==========================================================================
   GRID
   ========================================================================== */

.specialty-subspecialties__grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 28px;
}


/* ==========================================================================
   CARD
   ========================================================================== */

.specialty-subspecialties__card {
  display: flex;

  min-width: 0;

  flex-direction: column;

  overflow: hidden;

  border: 1px solid #dfe8eb;
  border-radius: 18px;

  background: #fff;

  box-shadow:
    0 8px 24px rgb(0 0 0 / 5%);

  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}

.specialty-subspecialties__card:hover {
  border-color: rgb(0 171 183 / 30%);

  box-shadow:
    0 12px 32px rgb(0 0 0 / 8%);

  transform: translateY(-3px);
}


/* ==========================================================================
   IMAGE
   ========================================================================== */

.specialty-subspecialties__image-link {
  display: block;

  text-decoration: none;
}

.specialty-subspecialties__image-wrapper {
  overflow: hidden;

  aspect-ratio: 16 / 10;

  background: #eef4f5;
}

.specialty-subspecialties__image {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transition: transform 300ms ease;
}

.specialty-subspecialties__card:hover
.specialty-subspecialties__image {
  transform: scale(1.025);
}


/* ==========================================================================
   CONTENT
   ========================================================================== */

.specialty-subspecialties__content {
  display: flex;

  min-height: 190px;
  padding: 24px;

  flex: 1;
  flex-direction: column;
}

.specialty-subspecialties__card-title {
  margin: 0 0 12px;

  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.specialty-subspecialties__card-title a {
  color: var(--pm-color-primary);

  text-decoration: none;
}

.specialty-subspecialties__card-title a:hover,
.specialty-subspecialties__card-title a:focus-visible {
  color: #008f99;
}


/* Descripción */

.specialty-subspecialties__description {
  margin: 0;

  color: var(--pm-color-text);

  font-size: 15px;
  line-height: 1.65;
}


/* Link */

.specialty-subspecialties__link {
  display: inline-flex;

  margin-top: auto;
  padding-top: 22px;

  align-items: center;

  gap: 8px;

  color: var(--pm-color-primary);

  font-size: 15px;
  font-weight: 700;

  text-decoration: none;

  transition:
    color 180ms ease,
    gap 180ms ease;
}

.specialty-subspecialties__link:hover,
.specialty-subspecialties__link:focus-visible {
  gap: 12px;

  color: #008f99;
}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (max-width: 950px) {

  .specialty-subspecialties__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 24px;
  }

}


/* ==========================================================================
   MOBILE
   ========================================================================== */

@media (max-width: 620px) {

  .specialty-subspecialties {
    padding: 44px 0 56px;
  }

  .specialty-subspecialties__header {
    margin-bottom: 28px;
  }

  .specialty-subspecialties__title {
    font-size: 24px;
  }

  .specialty-subspecialties__intro {
    font-size: 16px;
  }

  .specialty-subspecialties__grid {
    grid-template-columns: 1fr;

    gap: 22px;
  }

  .specialty-subspecialties__content {
    min-height: auto;

    padding: 22px 20px;
  }

}

.specialty-hero__button,
.specialty-content__button {
    display: inline-flex;
    margin-top: 1.5rem;
}

.specialty-content__title {
    margin-top: 0;
}

.specialty-content__text + .specialty-highlight__grid {
    margin-top: 2rem;
}

.specialty-testimonials__item {
    margin: 0;
}

.specialty-testimonials__quote {
    margin: 0;
    padding: 0;
    border: 0;
    font-style: italic;
}

.specialty-testimonials__author {
    margin-top: 1rem;
    font-weight: 700;
}
/* HERO: imagen con H1 superpuesto */

.specialty-hero__banner {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    isolation: isolate;
    border-radius: 18px;
    background: #007780;
}

.specialty-hero__banner > .specialty-hero__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

.specialty-hero__banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 20%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.specialty-hero__overlay {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    min-height: 360px;
    padding: 40px;
    box-sizing: border-box;
}

.specialty-hero__overlay .specialty-hero__title {
    max-width: 900px;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
}

.specialty-hero__intro {
    padding-top: 28px;
}

.specialty-hero__intro .specialty-hero__subtitle {
    max-width: 1000px;
    margin: 0;
}

.specialty-hero__intro .specialty-hero__button {
    display: inline-flex;
    margin-top: 20px;
}

/* TARJETAS DE CONTENIDO: sin columna para check */

.specialty-content .specialty-highlight__item {
    grid-template-columns: minmax(0, 1fr);
}

.specialty-content
.specialty-highlight__item-content h3 {
    margin: 0 0 12px;
    font-size: 20px;
    line-height: 1.3;
}

.specialty-content
.specialty-highlight__item-content p {
    margin: 0;
    font-size: 16px;
    line-height: 1.65;
}

.specialty-content
.specialty-highlight__item-content p + p {
    margin-top: 12px;
}

/* TESTIMONIOS: tampoco llevan check */

.specialty-testimonials .specialty-highlight__item {
    grid-template-columns: minmax(0, 1fr);
}

/* MOBILE */

@media (max-width: 767px) {
    .specialty-hero__banner {
        min-height: 260px;
        border-radius: 12px;
    }

    .specialty-hero__overlay {
        min-height: 260px;
        padding: 24px;
    }

    .specialty-hero__overlay .specialty-hero__title {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .specialty-hero__intro {
        padding-top: 22px;
    }
}

/* CTA FINAL DE ESPECIALIDADES */

.specialty-cta {
    padding: 56px 0 72px;
    background: #fff;
}

.specialty-cta__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 48px;
    row-gap: 16px;

    padding: 48px;
    border: 1px solid #cce8eb;
    border-radius: 24px;

    background: linear-gradient(135deg, #edf9fa, #f7fbfc);
    box-shadow: 0 12px 32px rgba(0, 90, 100, 0.06);
}

.specialty-cta__title {
    grid-column: 1;
    margin: 0;

    color: #34495e;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.specialty-cta__text {
    grid-column: 1;
    max-width: 680px;
    margin: 0;

    color: #444;
    font-size: 17px;
    line-height: 1.7;
}

.specialty-cta__box > .specialty-cta__button {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 54px;
    margin: 0;
    padding: 16px 26px;
    box-sizing: border-box;

    border: 2px solid #00abb7;
    border-radius: 12px;
    background: #00abb7;

    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.specialty-cta__box > .specialty-cta__button:hover {
    border-color: #008c96;
    background: #008c96;
    color: #fff;
    transform: translateY(-2px);
}

.specialty-cta__box > .specialty-cta__button:focus-visible {
    outline: 3px solid #007780;
    outline-offset: 4px;
}

@media (max-width: 900px) {
    .specialty-cta__box {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px;
    }

    .specialty-cta__box > .specialty-cta__button {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 8px;
    }
}

@media (max-width: 600px) {
    .specialty-cta {
        padding: 36px 0 48px;
    }

    .specialty-cta__box {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .specialty-cta__text {
        font-size: 16px;
    }

    .specialty-cta__box > .specialty-cta__button {
        width: 100%;
    }
}
/* SECCIÓN DE FINANCIAMIENTO CON FORMATO CTA */

.specialty-content--cta {
    padding: 48px 0;
}

.specialty-content--cta .specialty-content__article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 48px;
    row-gap: 16px;

    padding: 48px;
    border: 1px solid #cce8eb;
    border-radius: 24px;
    background: linear-gradient(135deg, #edf9fa, #f7fbfc);
    box-shadow: 0 12px 32px rgba(0, 90, 100, 0.06);
}

.specialty-content--cta .specialty-content__title {
    grid-column: 1;
    margin: 0;
    color: #34495e;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    font-weight: 700;
    line-height: 1.2;
    text-wrap: balance;
}

.specialty-content--cta .specialty-content__text {
    grid-column: 1;
    max-width: 680px;
    color: #444;
    font-size: 17px;
    line-height: 1.7;
}

.specialty-content--cta .specialty-content__text p {
    margin: 0 0 14px;
}

.specialty-content--cta .specialty-content__text p:last-child {
    margin-bottom: 0;
}

.specialty-content--cta .specialty-content__button {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    margin: 0;
    padding: 16px 26px;
    box-sizing: border-box;

    border: 2px solid #00abb7;
    border-radius: 12px;
    background: #00abb7;
    color: #fff;

    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.specialty-content--cta .specialty-content__button:hover {
    border-color: #008c96;
    background: #008c96;
    color: #fff;
    transform: translateY(-2px);
}

.specialty-content--cta .specialty-content__button:focus-visible {
    outline: 3px solid #007780;
    outline-offset: 4px;
}

.specialty-content--cta .specialty-highlight__grid {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .specialty-content--cta .specialty-content__article {
        grid-template-columns: minmax(0, 1fr);
        padding: 36px;
    }

    .specialty-content--cta .specialty-content__button {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
        margin-top: 8px;
    }
}

@media (max-width: 600px) {
    .specialty-content--cta {
        padding: 32px 0;
    }

    .specialty-content--cta .specialty-content__article {
        padding: 28px 22px;
        border-radius: 18px;
    }

    .specialty-content--cta .specialty-content__text {
        font-size: 16px;
    }

    .specialty-content--cta .specialty-content__button {
        width: 100%;
    }
}
.specialty-content--cta .specialty-content__article {
    grid-template-columns: minmax(0, 1fr);
}

.specialty-content--cta .specialty-content__text {
    max-width: 100%;
}

.specialty-content--cta .specialty-content__button {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    margin-top: 8px;
}

/* HERO EDITORIAL */

.specialty-hero--editorial {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 0;
    background: #f2f7f7;
}

.specialty-hero--editorial .specialty-hero__background {
    position: absolute;
    inset: 0;
    z-index: -2;
}

.specialty-hero--editorial .specialty-hero__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 75% center;
}

.specialty-hero--editorial::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(
        90deg,
        #f5f9f9 0%,
        rgba(245, 249, 249, 0.98) 30%,
        rgba(245, 249, 249, 0.85) 43%,
        rgba(245, 249, 249, 0.15) 65%,
        transparent 80%
    );
}

.specialty-hero__editorial-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    width: 48%;
    min-height: 560px;
    padding: 64px 0;
    box-sizing: border-box;
}

.specialty-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;

    color: #008c96;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.specialty-hero__eyebrow::before {
    content: "";
    width: 26px;
    height: 2px;
    flex-shrink: 0;
    background: #00abb7;
}

.specialty-hero--editorial .specialty-hero__title {
    max-width: 540px;
    margin: 0;
    color: #263638;
    font-size: clamp(2.3rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.specialty-hero--editorial .specialty-hero__title span {
    color: #009fa9;
}

.specialty-hero__phrase {
    margin: 24px 0 0;
    color: #263638;
    font-size: clamp(1.25rem, 2vw, 1.6rem);
    line-height: 1.4;
    text-wrap: balance;
}

.specialty-hero--editorial .specialty-hero__subtitle {
    max-width: 470px;
    margin: 20px 0 0;
    color: #475569;
    font-size: 16px;
    line-height: 1.8;
}

.specialty-hero--editorial .specialty-hero__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    min-height: 52px;
    margin: 26px 0 0;
    padding: 14px 26px;

    border-radius: 999px;
    background: #009fa9;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}

.specialty-hero--editorial .specialty-hero__button:hover {
    background: #007f88;
}

.specialty-hero--editorial .specialty-hero__button:focus-visible {
    outline: 3px solid #007780;
    outline-offset: 4px;
}

/* PRIMERA SECCIÓN: título a la izquierda, explicación a la derecha */

.specialty-single .specialty-hero--editorial + .specialty-content {
    padding: 120px 0;
}

.specialty-hero--editorial + .specialty-content
.specialty-content__article {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
    column-gap: 72px;
    row-gap: 24px;
}

.specialty-hero--editorial + .specialty-content
.specialty-content__title {
    grid-column: 1;
    margin: 0;
    max-width: 360px;
    color: #008F99;
    font-size: 42px;
    line-height: 1.15;
}

.specialty-hero--editorial + .specialty-content
.specialty-content__text {
    grid-column: 2;
    margin: 0;
}

.specialty-hero--editorial + .specialty-content
.specialty-highlight__grid {
    grid-column: 1 / -1;
}

.specialty-hero--editorial + .specialty-content
.specialty-content__button {
    grid-column: 2;
    justify-self: start;
}

/* TABLET */

@media (max-width: 900px) {
    .specialty-hero__editorial-content {
        width: 58%;
        min-height: 500px;
        padding: 48px 0;
    }

    .specialty-hero--editorial::before {
        background: linear-gradient(
            90deg,
            #f5f9f9,
            rgba(245, 249, 249, 0.94) 45%,
            rgba(245, 249, 249, 0.2) 85%
        );
    }

    .specialty-hero--editorial + .specialty-content
    .specialty-content__article {
        column-gap: 36px;
    }
}

/* CELULAR: foto arriba y contenido debajo */

@media (max-width: 600px) {
    .specialty-hero--editorial .specialty-hero__background {
        position: relative;
        z-index: auto;
        height: 250px;
    }

    .specialty-hero--editorial::before {
        display: none;
    }

    .specialty-hero__editorial-content {
        width: 100%;
        min-height: 0;
        padding: 32px 0 40px;
    }

    .specialty-hero--editorial .specialty-hero__title {
        font-size: 2.3rem;
    }

    .specialty-hero--editorial .specialty-hero__button {
        width: 100%;
        box-sizing: border-box;
    }

    .specialty-hero--editorial + .specialty-content {
        padding: 44px 0;
    }

    .specialty-hero--editorial + .specialty-content
    .specialty-content__article {
        grid-template-columns: minmax(0, 1fr);
    }

    .specialty-hero--editorial + .specialty-content
    .specialty-content__article > * {
        grid-column: 1;
    }
}
.specialty-hero--editorial .specialty-hero__editorial-content {
    margin-left: auto;
    padding-left: 32px;
}

.specialty-hero--editorial .specialty-hero__photo {
    object-position: left center;
}

.specialty-hero--editorial::before {
    background: linear-gradient(
        270deg,
        #f5f9f9 0%,
        rgba(245, 249, 249, 0.98) 30%,
        rgba(245, 249, 249, 0.85) 43%,
        rgba(245, 249, 249, 0.15) 65%,
        transparent 80%
    );
}

@media (max-width: 900px) {
    .specialty-hero--editorial::before {
        background: linear-gradient(
            270deg,
            #f5f9f9,
            rgba(245, 249, 249, 0.94) 45%,
            rgba(245, 249, 249, 0.2) 85%
        );
    }
}

@media (max-width: 600px) {
    .specialty-hero--editorial .specialty-hero__editorial-content {
        margin-left: 0;
        padding-left: 0;
    }
}

/* MÁS ESPACIO ENTRE SECCIONES */

.specialty-single .specialty-content,
.specialty-single .specialty-highlight,
.specialty-single .specialty-characteristics,
.specialty-single .specialty-faq,
.specialty-single .specialty-subspecialties,
.specialty-single .specialty-cta {
    padding-top: 80px;
    padding-bottom: 80px;
}

/* MÁS SEPARACIÓN ENTRE TÍTULO Y CONTENIDO */

.specialty-single .specialty-content__title {
    margin-bottom: 24px;
}

/* COLOR DE LOS TÍTULOS */

.specialty-single h1.specialty-hero__title,
.specialty-single h2,
.specialty-single h3,
.specialty-single h3 a {
    color: #008F99;
}

/* ESPACIADO EN CELULAR */

@media (max-width: 600px) {
    .specialty-single .specialty-content,
    .specialty-single .specialty-highlight,
    .specialty-single .specialty-characteristics,
    .specialty-single .specialty-faq,
    .specialty-single .specialty-subspecialties,
    .specialty-single .specialty-cta {
        padding-top: 48px;
        padding-bottom: 48px;
    }
}

/* TERCERA SECCIÓN: título izquierda, texto derecha */

.specialty-single
.specialty-hero--editorial
+ .specialty-content
+ .specialty-content
+ .specialty-content {
    padding: 120px 0;
}

.specialty-hero--editorial
+ .specialty-content
+ .specialty-content
+ .specialty-content
.specialty-content__article {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    min-height: 220px;
    column-gap: 72px;
    row-gap: 24px;
}

.specialty-hero--editorial
+ .specialty-content
+ .specialty-content
+ .specialty-content
.specialty-content__title {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    color: #008F99;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.15;
}

.specialty-hero--editorial
+ .specialty-content
+ .specialty-content
+ .specialty-content
.specialty-content__text {
    grid-column: 2;
    grid-row: 1;
    margin: 0;
}

@media (max-width: 900px) {
    .specialty-hero--editorial
    + .specialty-content
    + .specialty-content
    + .specialty-content
    .specialty-content__article {
        column-gap: 36px;
    }
}

@media (max-width: 600px) {
    .specialty-single
    .specialty-hero--editorial
    + .specialty-content
    + .specialty-content
    + .specialty-content {
        padding: 64px 0;
    }

    .specialty-hero--editorial
    + .specialty-content
    + .specialty-content
    + .specialty-content
    .specialty-content__article {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .specialty-hero--editorial
    + .specialty-content
    + .specialty-content
    + .specialty-content
    .specialty-content__article > * {
        grid-column: 1;
        grid-row: auto;
    }
}

.specialty-hero__background > picture {
    display: block;
    width: 100%;
    height: 100%;
}
.specialty-highlight__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.specialty-highlight__check svg {
    display: block;
    width: 24px;
    height: 24px;
}