/* responsive.css | Diseño adaptativo estructurado por documento y sección */

/* ===== GLOBALES Y COMPONENTES COMPARTIDOS ===== */
@media (max-width: 991.98px) {
  :root {
    --navbar-height: 66px;
  }

  .top-bar {
    min-height: 36px;
    background: var(--trega-graphite);
    font-size: 0.78rem;
  }

  .top-bar__label {
    display: none;
  }

  .top-bar__inner {
    justify-content: stretch;
    min-height: 36px;
  }

  .top-bar__links {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .top-bar__links a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 0.45rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.02em;
  }

  .top-bar__links a + a {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .top-bar__links a::after {
    display: none;
  }

  .trega-navbar {
    min-height: 66px;
    background: rgba(255, 255, 255, 0.88);
  }

  .site-header.is-scrolled .trega-navbar {
    min-height: 62px;
  }

  .trega-navbar .navbar-collapse {
    padding: 1rem 0 1.2rem;
  }

  .trega-navbar .navbar-nav {
    align-items: stretch !important;
    gap: 0.25rem;
  }

  .trega-navbar .nav-link {
    min-height: 44px;
    padding-inline: 0.5rem;
  }

  .trega-navbar .nav-link::before {
    left: 0.5rem;
    right: auto;
    width: 2rem;
  }

  .trega-navbar__cta {
    width: fit-content;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767.98px) {
  .site-footer__bottom {
    flex-direction: column;
  }
}

/* ===== PAGINA: INDEX ===== */

/* ===== PAGINA: INDEX - SECCION HERO ===== */
@media (max-width: 991.98px) {
  .hero-media {
    height: auto;
    min-height: 420px;
  }

  .hero-media img {
    min-height: 420px;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    background: var(--trega-white);
    padding-top: clamp(2rem, 8vw, 3rem);
    padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
  }

  .hero-section::after {
    content: none;
    display: none;
  }

  .hero-section h1 {
    font-size: clamp(2.35rem, 13vw, 3.6rem);
  }

  .hero-copy__lead {
    font-size: 1rem;
    line-height: 1.62;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-note {
    display: none;
  }

  .hero-bottom.mt-4 {
    margin-top: 1.25rem !important;
  }

  .hero-media {
    min-height: 0;
    height: auto;
    border-radius: 1.4rem;
  }

  .hero-media img {
    width: 100%;
    height: clamp(220px, 58vw, 280px);
    min-height: 0;
    object-fit: cover;
    object-position: center center;
  }

  .hero-media figcaption {
    position: relative;
    z-index: 4;
    left: auto;
    right: auto;
    bottom: auto;
    margin: 0;
    padding: 0.7rem 0.85rem;
    border: 0;
    border-radius: 0;
    color: var(--trega-white);
    font-size: 0.78rem;
    line-height: 1.38;
    background: var(--trega-graphite);
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* ===== PAGINA: INDEX - SECCION STRIP DE RESPALDO ===== */
@media (max-width: 1199.98px) {
  .proof-strip__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-item:nth-child(2n) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--trega-border);
  }
}

@media (max-width: 991.98px) {
  .proof-item {
    border-right: 0;
    border-bottom: 1px solid var(--trega-border);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .proof-strip {
    padding: 0;
  }

  .proof-strip__grid {
    grid-template-columns: 1fr;
  }

  .proof-item {
    position: relative;
    display: grid;
    grid-template-columns: 3rem 1fr;
    column-gap: 1rem;
    align-items: start;
    padding: 1.25rem 1rem;
    border-right: 0;
    border-bottom: 1px solid var(--trega-border);
  }

  .proof-item:last-child {
    border-bottom: 0;
  }

  .proof-item::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 2;
    width: 3rem;
    height: 3rem;
    border-radius: 1rem;
    background: var(--proof-icon-bg, rgba(22, 62, 92, 0.1));
  }

  .proof-item::after {
    content: "";
    grid-column: 1;
    grid-row: 1 / span 2;
    justify-self: center;
    align-self: start;
    width: 1.45rem;
    height: 1.45rem;
    margin-top: 0.78rem;
    background: var(--proof-icon-color, var(--trega-navy));
    -webkit-mask: var(--proof-icon) center / contain no-repeat;
    mask: var(--proof-icon) center / contain no-repeat;
  }

  .proof-item span {
    grid-column: 2;
    font-size: clamp(1.55rem, 8vw, 2.15rem);
    line-height: 1;
  }

  .proof-item p {
    grid-column: 2;
    max-width: none;
    margin: 0.45rem 0 0;
    color: var(--trega-muted);
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .proof-item:nth-child(1) {
    --proof-icon-bg: rgba(22, 62, 92, 0.1);
    --proof-icon-color: var(--trega-navy);
    --proof-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 5-3.5 8.5-7 10-3.5-1.5-7-5-7-10V6l7-3z'/%3E%3Cpath d='M9 12l2 2 4-5'/%3E%3C/svg%3E");
  }

  .proof-item:nth-child(2) {
    --proof-icon-bg: rgba(201, 147, 36, 0.16);
    --proof-icon-color: var(--trega-amber);
    --proof-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h9'/%3E%3Cpath d='M4 12h6'/%3E%3Cpath d='M4 17h4'/%3E%3Cpath d='M17 5v12'/%3E%3Cpath d='M13 13l4 4 4-4'/%3E%3Ccircle cx='19' cy='7' r='1'/%3E%3Ccircle cx='15' cy='9' r='1'/%3E%3C/svg%3E");
  }

  .proof-item:nth-child(3) {
    --proof-icon-bg: rgba(39, 90, 95, 0.12);
    --proof-icon-color: var(--trega-petroleum);
    --proof-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 17c3-2 6-2 9 0s6 2 9 0'/%3E%3Cpath d='M5 13c2-1.5 4-1.5 6 0s4 1.5 6 0'/%3E%3Cpath d='M8 9h8'/%3E%3Cpath d='M10 5h4'/%3E%3Ccircle cx='7' cy='19' r='1'/%3E%3Ccircle cx='17' cy='19' r='1'/%3E%3C/svg%3E");
  }

  .proof-item:nth-child(4) {
    --proof-icon-bg: rgba(61, 78, 87, 0.12);
    --proof-icon-color: var(--trega-slate);
    --proof-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v3'/%3E%3Cpath d='M12 18v3'/%3E%3Cpath d='M3 12h3'/%3E%3Cpath d='M18 12h3'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M9.5 12l1.6 1.6 3.4-3.6'/%3E%3C/svg%3E");
  }
}

/* ===== PAGINA: INDEX - SECCION LÍNEAS DE SOLUCIÓN ===== */
@media (max-width: 991.98px) {
  .solution-matrix {
    grid-template-columns: 1fr;
  }

  .solution-tile,
  .solution-tile:nth-child(2n),
  .solution-tile:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--trega-border);
  }

  .solution-tile:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 767.98px) {
  .solution-tile {
    min-height: auto;
  }
}

/* ===== PAGINA: INDEX - SECCION QUIÉNES SOMOS ===== */
@media (max-width: 1199.98px) {
  .about-carousel__track {
    min-height: 860px;
  }
}

@media (max-width: 991.98px) {
  .about-carousel__track {
    min-height: 920px;
  }

  .about-carousel__dots {
    position: relative;
    left: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 2rem;
    transform: none;
  }
}

@media (max-width: 767.98px) {
  .about-section {
    padding: 2.75rem 0 3rem;
  }

  .about-section .row {
    --bs-gutter-y: 0;
  }

  .about-media {
    display: none;
  }

  .about-carousel__track {
    position: relative;
    display: block;
    height: clamp(560px, 144vw, 620px);
    min-height: 0;
  }

  .about-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    display: flex;
    align-items: stretch;
  }

  .about-copy {
    width: 100%;
    height: 100%;
    padding: 1.25rem;
    border: 1px solid rgba(30, 47, 58, 0.1);
    border-radius: 1.35rem;
    background: var(--trega-white);
    box-shadow: 0 14px 34px rgba(30, 47, 58, 0.08);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .about-copy .eyebrow {
    margin-bottom: 0.75rem;
  }

  .about-section h2 {
    margin-bottom: 0.85rem;
    font-size: clamp(1.5rem, 7.6vw, 1.95rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
  }

  .about-copy > p {
    margin-bottom: 1rem;
    color: var(--trega-muted);
    font-size: 0.93rem;
    line-height: 1.56;
  }

  .authority-list {
    display: grid;
    gap: 0.6rem;
    margin: 0.9rem 0 0;
    padding: 0;
  }

  .authority-list div {
    display: grid;
    grid-template-columns: 1rem 1fr;
    gap: 0.68rem;
    align-items: start;
  }

  .authority-list span {
    position: relative;
    display: block;
    width: 1rem;
    height: 1rem;
    margin-top: 0.32rem;
    border-radius: 0;
    background: transparent;
  }

  .authority-list span::before {
    content: "";
    position: absolute;
    top: 0.28rem;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--trega-amber);
    transform: translateX(-50%);
  }

  .authority-list p {
    margin: 0;
    padding-right: 0.45rem;
    color: var(--trega-slate);
    font-size: 0.87rem;
    line-height: 1.42;
  }

  .about-carousel__cta {
    position: static;
    display: flex;
    justify-content: center;
    margin-top: 1rem;
    transform: none;
  }

  .about-carousel__cta .btn {
    width: auto;
    padding: 0.7rem 1.05rem;
    font-size: 0.9rem;
  }

  .about-carousel__dots {
    position: static;
    left: auto;
    bottom: auto;
    justify-content: center;
    margin-top: 1.2rem;
    transform: none;
  }
}

/* ===== PAGINA: INDEX - SECCION METODOLOGÍA PROCESO ===== */
@media (max-width: 1199.98px) {
  .process-line {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767.98px) {
  .process-line {
    grid-template-columns: 1fr;
  }

  .process-line::before,
  .process-line::after {
    display: none;
  }

  .process-line li {
    min-height: auto;
  }
}

/* ===== PAGINA: INDEX - SECCION CASO APLICADO ===== */
@media (max-width: 1199.98px) {
  .case-section {
    display: block;
    padding: 3.5rem 0;
  }

  .case-card {
    height: auto;
    max-height: none;
    grid-template-columns: 1fr;
  }

  .case-card__media {
    height: auto;
  }

  .case-card__media--bg {
    min-height: 430px;
  }

  .case-card__content {
    height: auto;
    justify-content: flex-start;
    padding: clamp(1.5rem, 4vw, 2.4rem);
  }
}

@media (max-width: 767.98px) {
  .case-card__content {
    padding: 1.5rem;
  }

  .case-specs {
    grid-template-columns: 1fr;
    margin: 1.25rem 0;
  }

  .case-card__media {
    position: relative;
    margin: 0;
    overflow: hidden;
    height: auto;
    background: var(--trega-graphite);
  }

  .case-card__media--bg {
    min-height: clamp(260px, 64vw, 340px);
    background:
      linear-gradient(
        180deg,
        rgba(21, 40, 51, 0.08) 0%,
        rgba(21, 40, 51, 0.22) 52%,
        rgba(21, 40, 51, 0.52) 100%
      ),
      linear-gradient(
        90deg,
        rgba(201, 147, 36, 0.08) 0%,
        rgba(201, 147, 36, 0.025) 36%,
        rgba(21, 40, 51, 0.08) 100%
      ),
      var(--case-image) center 65% / cover no-repeat,
      var(--trega-graphite);
  }
}

@media (max-width: 575.98px) {
  .case-card {
    border-radius: 1.4rem;
  }
}

/* ===== PAGINA: INDEX - SECCION COBERTURA GEOGRÁFICA ===== */
@media (max-width: 991.98px) {
  .coverage-heading {
    max-width: 760px;
  }

  .mexico-map {
    min-height: 360px;
    padding: 1.25rem;
  }

  .mexico-map svg {
    width: 100%;
    max-width: 680px;
    animation-duration: 5.6s;
  }

  .map-tooltip {
    font-size: 0.76rem;
  }
}

@media (max-width: 767.98px) {
  .mexico-map {
    min-height: 300px;
    padding: 1rem;
    border-radius: 1.4rem;
  }

  .mexico-map svg {
    width: 100%;
    max-width: 520px;
    animation-duration: 6s;
    filter: drop-shadow(0 0 8px rgba(180, 225, 245, 0.16))
      drop-shadow(0 0 18px rgba(41, 79, 96, 0.08));
  }

  .mexico-map svg :is(path, polygon, polyline, rect, circle, ellipse, line) {
    stroke-width: 0;
  }

  #mx-zacatecas,
  #mx-sonora,
  #mx-chihuahua,
  #mx-durango,
  #mx-guerrero,
  #mx-san-luis-potosi,
  #mx-sinaloa,
  #mx-hidalgo,
  #mx-coahuila,
  #mx-estado-mexico,
  #mx-oaxaca,
  #mx-queretaro,
  #mx-guanajuato {
    stroke-width: 0;
    transform: none;
  }

  #mx-zacatecas.is-map-active,
  #mx-sonora.is-map-active,
  #mx-chihuahua.is-map-active,
  #mx-durango.is-map-active,
  #mx-guerrero.is-map-active,
  #mx-san-luis-potosi.is-map-active,
  #mx-sinaloa.is-map-active,
  #mx-hidalgo.is-map-active,
  #mx-coahuila.is-map-active,
  #mx-estado-mexico.is-map-active,
  #mx-oaxaca.is-map-active,
  #mx-queretaro.is-map-active,
  #mx-guanajuato.is-map-active {
    fill: rgba(201, 147, 36, 0.34);
    stroke-width: 0;
    transform: scale(1.015);
  }

  .map-tooltip {
    padding: 0.36rem 0.56rem;
    font-size: 0.7rem;
    transform: translate(-50%, -120%) scale(0.96);
  }

  .map-tooltip.is-visible {
    transform: translate(-50%, -120%) scale(1);
  }
}

/* ===== PAGINA: INDEX - SECCION MARCAS ASOCIADAS ===== */
@media (max-width: 1199.98px) {
  .brands-panel {
    grid-template-columns: 1fr;
  }

  .brand-logo-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  .brand-logo-grid {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 767.98px) {
  .brand-logo-placeholder {
    width: 150px;
    height: 72px;
  }
}

@media (max-width: 575.98px) {
  .brands-panel {
    border-radius: 1.4rem;
  }
}

/* ===== PAGINA: INDEX - SECCION PREVIEW RECURSOS ===== */
@media (max-width: 991.98px) {
  .blog-preview__head,
  .blog-editorial {
    grid-template-columns: 1fr;
  }

  .blog-preview__head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== PAGINA: INDEX - SECCION CTA COMPLEMENTARIO ===== */
@media (max-width: 991.98px) {
  .final-cta__panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .final-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 575.98px) {
  .final-cta__panel {
    border-radius: 1.4rem;
  }
}

/* ===== PAGINA: SERVICIOS ===== */

/* ===== PAGINA: SERVICIOS - SECCION HERO ===== */
@media (max-width: 991.98px) {
  .services-hero {
    min-height: auto;
    padding: clamp(3.6rem, 8vw, 5.5rem) 0;
  }

  .services-hero::before {
    background-position: 70% center;
  }

  .services-hero__layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .services-hero__lead,
  .services-hero__command {
    max-width: 860px;
  }

  .services-hero__variables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-hero__variable:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 767.98px) {
  .services-hero {
    padding: 3rem 0 3.4rem;
  }

  .services-hero::before {
    background-position: 68% center;
    opacity: 0.68;
  }

  .services-hero::after {
    background:
      radial-gradient(
        circle at 12% 16%,
        rgba(201, 147, 36, 0.13),
        transparent 30%
      ),
      linear-gradient(
        180deg,
        rgba(21, 40, 51, 0.96) 0%,
        rgba(21, 40, 51, 0.88) 52%,
        rgba(22, 62, 92, 0.74) 100%
      );
  }

  .services-hero h1 {
    font-size: clamp(2.15rem, 10vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
  }

  .services-hero__lead {
    font-size: 1rem;
    line-height: 1.66;
  }

  .services-hero__actions {
    margin-top: 1.55rem;
  }

  .services-hero__actions .btn {
    width: 100%;
  }

  .services-hero__variables {
    grid-template-columns: 1fr;
  }

  .services-hero__variable:last-child {
    grid-column: auto;
  }
}

@media (max-width: 575.98px) {
  .services-hero__command {
    border-radius: 1.35rem;
  }

  .services-hero__variable {
    min-height: 58px;
  }
}

/* ===== PAGINA: SERVICIOS - SECCION LÍNEAS TÉCNICAS ===== */
@media (max-width: 991.98px) {
  .service-lines__grid {
    grid-template-columns: 1fr;
  }

  .service-line-card--large {
    min-height: auto;
  }
}

@media (max-width: 767.98px) {
  .service-lines {
    padding: 4rem 0;
    background: linear-gradient(
      180deg,
      rgba(21, 40, 51, 0.1) 0%,
      rgba(246, 250, 251, 0.98) 9%,
      #ffffff 100%
    );
  }

  .service-lines__head {
    margin-bottom: 1.8rem;
  }

  .service-line-card {
    border-radius: 1.35rem;
  }

  .service-line-card__top {
    align-items: flex-start;
  }

  .service-line-card__type {
    max-width: 180px;
  }

  .service-line-card h3 {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }
}

@media (max-width: 575.98px) {
  .service-line-card {
    padding: 1.2rem;
  }

  .service-line-card__top {
    display: grid;
    justify-content: initial;
  }

  .service-line-card__type {
    max-width: none;
    text-align: left;
  }

  .service-line-card__number {
    width: 2.75rem;
    height: 2.75rem;
  }
}

/* ===== PAGINA: SERVICIOS - SECCION DETALLE BLOQUES ===== */
@media (max-width: 991.98px) {
  .service-detail__grid {
    grid-template-columns: 1fr;
  }

  .service-detail__panel {
    max-width: 860px;
  }

  .service-detail__metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail__matrix {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .service-detail {
    padding: 4rem 0;
  }

  .service-detail__actions .btn {
    width: 100%;
  }

  .service-detail__metrics {
    grid-template-columns: 1fr;
  }

  .service-detail__panel,
  .service-detail-box {
    border-radius: 1.35rem;
  }

  .service-detail__image {
    min-height: 300px;
    border-radius: 1.35rem;
  }

  .service-detail__image figcaption {
    left: 0.8rem;
    right: 0.8rem;
    bottom: 0.8rem;
    font-size: 0.8rem;
  }
}

/* ===== PAGINA: SERVICIOS - SECCION METODOLOGÍA APLICADA ===== */
@media (max-width: 991.98px) {
  .service-method__layout {
    grid-template-columns: 1fr;
  }

  .service-method__intro {
    position: relative;
    top: auto;
    max-width: 880px;
  }

  .service-method__intro p:not(.eyebrow) {
    max-width: 820px;
  }
}

@media (max-width: 767.98px) {
  .service-method {
    padding: 4rem 0;
  }

  .service-method__layout {
    gap: 2rem;
  }

  .service-method__timeline {
    padding-left: 0;
  }

  .service-method__timeline::before {
    left: 1.12rem;
  }

  .service-method-step {
    grid-template-columns: 3.2rem minmax(0, 1fr);
    gap: 0.85rem;
  }

  .service-method-step__body {
    border-radius: 1.1rem;
  }
}

@media (max-width: 575.98px) {
  .service-method-step {
    grid-template-columns: 1fr;
    padding-left: 0;
  }

  .service-method__timeline::before,
  .service-method-step__body::before {
    display: none;
  }

  .service-method-step__marker {
    margin-left: 0;
  }

  .service-method-step:hover .service-method-step__body {
    transform: none;
  }
}

/* ===== PAGINA: SERVICIOS - SECCION DOSSIER & MARCAS ===== */
@media (max-width: 991.98px) {
  .service-dossier__shell,
  .service-dossier__translation {
    grid-template-columns: 1fr;
  }

  .service-dossier__brand-panel {
    justify-content: flex-start;
  }

  .service-dossier__documents-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767.98px) {
  .service-dossier {
    padding: 4rem 0;
  }

  .service-dossier__intro,
  .service-dossier__brand-panel,
  .service-dossier__documents {
    border-radius: 1.35rem;
  }

  .service-dossier__translation {
    border-radius: 1.25rem;
  }

  .service-dossier__logos {
    grid-template-columns: 1fr;
  }

  .service-dossier__documents-head .btn {
    width: 100%;
  }

  .service-dossier__document {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .service-dossier__closing {
    border-radius: 1.15rem;
  }
}

/* ===== PAGINA: SERVICIOS - SECCION FAQ DE CONSULTA ===== */
@media (max-width: 991.98px) {
  .service-faq__layout {
    grid-template-columns: 1fr;
  }

  .service-faq__head {
    position: relative;
    top: auto;
    max-width: 860px;
  }
}

@media (max-width: 767.98px) {
  .service-faq {
    padding: 4rem 0;
  }

  .service-faq__accordion {
    border-radius: 1.35rem;
  }

  .service-faq .accordion-button {
    align-items: flex-start;
    padding: 1.1rem 1rem;
  }

  .service-faq .accordion-body {
    padding: 0 1rem 1.15rem 2rem;
    font-size: 0.92rem;
  }
}

@media (max-width: 575.98px) {
  .service-faq__head .btn {
    width: 100%;
  }

  .service-faq .accordion-button {
    gap: 0.75rem;
  }
}

/* ===== PAGINA: SERVICIOS - SECCION BLOCK CTA INFERIOR ===== */
@media (max-width: 991.98px) {
  .services-final-cta__inner {
    grid-template-columns: 1fr;
  }

  .services-final-cta__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .services-final-cta {
    padding: 4rem 0;
  }

  .services-final-cta__inner {
    border-radius: 1.35rem;
  }

  .services-final-cta__actions .btn {
    width: 100%;
  }
}

/* ===== PAGINA: BLOG ===== */

/* ===== PAGINA: BLOG - SECCION HERO ===== */
@media (max-width: 1199.98px) {
  .blog-hero__layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(390px, 1.14fr);
    gap: 2rem;
  }

  .blog-hero h1 {
    font-size: clamp(2.35rem, 4.8vw, 4.25rem);
  }
}

@media (max-width: 991.98px) {
  .blog-hero {
    min-height: auto;
    padding: clamp(3.8rem, 8vw, 5.4rem) 0;
  }

  .blog-hero__layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .blog-hero__content,
  .blog-hero__panel {
    max-width: 860px;
  }

  .blog-hero__lead {
    max-width: 820px;
  }
}

@media (max-width: 767.98px) {
  .blog-hero {
    padding: 3rem 0 3.6rem;
  }

  .blog-hero__bg {
    background-position: 68% center;
    opacity: 0.26;
  }

  .blog-hero h1 {
    font-size: clamp(2.1rem, 10vw, 3.12rem);
    line-height: 1.02;
    letter-spacing: -0.052em;
  }

  .blog-hero__lead {
    font-size: 1rem;
    line-height: 1.66;
  }

  .blog-hero__actions .btn {
    width: 100%;
  }

  .blog-featured-card {
    border-radius: 1.45rem;
  }

  .blog-featured-card__media,
  .blog-featured-card__media img {
    min-height: 210px;
  }

  .blog-featured-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .blog-hero__categories {
    padding: 0.8rem;
    border-radius: 1.15rem;
  }

  .blog-hero__categories-head {
    margin-bottom: 0.65rem;
  }

  .blog-hero__categories-head span {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
  }

  .blog-hero__categories-grid {
    grid-template-columns: 1fr;
    gap: 0.48rem;
  }

  .blog-category-pill {
    min-height: 46px;
    gap: 0.55rem;
    padding: 0.55rem 0.62rem;
    border-radius: 0.78rem;
  }

  .blog-category-pill span {
    width: 1.82rem;
    height: 1.82rem;
    font-size: 0.62rem;
    font-weight: 800;
  }

  .blog-category-pill p {
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.18;
  }
}

@media (max-width: 575.98px) {
  .blog-hero__panel {
    gap: 0.85rem;
  }

  .blog-featured-card__media,
  .blog-featured-card__media img {
    min-height: 190px;
  }

  .blog-hero__categories {
    border-radius: 1.05rem;
  }

  .blog-category-pill {
    min-height: 44px;
  }
}

/* ===== PAGINA: BLOG - SECCION FILTROS EDITORIALES ===== */
@media (max-width: 767.98px) {
  .blog-filter-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 1rem;
  }

  .blog-filter-bar__text {
    max-width: 100%;
  }

  .blog-filter-bar__controls {
    justify-content: stretch;
    width: 100%;
  }

  .blog-filter-field {
    flex: 1 1 auto;
  }

  .blog-filter-field select {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    font-size: 0.86rem;
  }
}

@media (max-width: 575.98px) {
  .blog-filter-bar__controls {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-filter-reset {
    width: 100%;
  }
}

/* ===== PAGINA: BLOG - SECCION RETÍCULA Y ARCHIVO ===== */
@media (max-width: 1199.98px) {
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .blog-archive__head {
    margin-bottom: 1.55rem;
  }

  .blog-archive__head h2 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .blog-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .blog-card {
    border-radius: 1.25rem;
  }

  .blog-card__media,
  .blog-card__media img {
    min-height: 190px;
  }

  .blog-card__body {
    padding: 1rem;
  }

  .blog-card__meta span {
    font-size: 0.61rem;
  }

  .blog-card h3 {
    font-size: 1.12rem;
  }

  .blog-card p {
    font-size: 0.88rem;
    line-height: 1.54;
  }

  .blog-card__link,
  .blog-card__status {
    width: 100%;
  }
}

/* ===== CONTROL DE ACCESIBILIDAD CINÉTIQUE DE ANIMACIÓN ===== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .about-slide,
  .blog-category-pill,
  .blog-featured-card,
  .blog-featured-card__media img,
  .blog-card,
  .blog-card__media img,
  .blog-filter-reset {
    transition: none !important;
  }
}

/* ===== PAGINA: INDEX - HERO CARRUSEL ===== */
@media (max-width: 767.98px) {
  .hero-media--carousel .hero-media__track {
    position: relative;
    height: clamp(220px, 58vw, 280px);
  }

  .hero-media--carousel .hero-media__image {
    height: 100%;
    min-height: 0;
  }

  .hero-media__dots {
    bottom: 3.25rem;
  }
}
