/* ============================================================
   SIMEM · interior.css — componentes compartidos de páginas internas
   (usar junto con base.css + header.css + footer.css; cada página
   añade su propia hoja solo si necesita estilos específicos)
   ============================================================ */

/* ---------------- Hero de página ---------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: #C9D4E4;
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
}
.page-hero--service {
  min-height: clamp(28rem, 43vw, 34rem);
  display: flex;
  align-items: center;
  background: #E9EDF1;
  color: var(--text);
  padding-block: clamp(2rem, 4vw, 3.5rem);
}
.page-hero__image,
.page-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.page-hero__image { object-fit: cover; object-position: center; }
.page-hero__shade {
  background: linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.9) 34%, rgba(255,255,255,.34) 61%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}
.page-hero__flow {
  position: absolute;
  right: -30px;
  bottom: -30px;
  width: min(34vw, 380px);
  color: var(--orange);
  opacity: .3;
  pointer-events: none;
}
.page-hero__inner { max-width: 46rem; position: relative; }
.page-hero__inner > .breadcrumb + h1 { margin-top: .25rem; }
.page-hero--service .page-hero__inner { z-index: 1; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4.2vw, 2.9rem);
  line-height: 1.1;
  margin-top: 1rem;
}
.page-hero--service h1 { color: var(--navy); max-width: 16ch; }
.page-hero__lead {
  margin-top: 1.2rem;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #A9B7CC;
}
.page-hero--service .page-hero__lead { color: var(--text); max-width: 52ch; }
.page-hero--service .breadcrumb { color: var(--gray); }
.page-hero--service .breadcrumb a { color: var(--steel); }
.page-hero--service .breadcrumb a:hover { color: var(--blue); }
.page-hero--service .breadcrumb span[aria-current] { color: var(--orange-dark); }

/* ---------------- Blog: ritmo más compacto ---------------- */
.blog-page .page-hero {
  padding-block: clamp(1.35rem, 3vw, 2.25rem) clamp(1.5rem, 3.5vw, 2.5rem);
}
.blog-page .breadcrumb { margin-bottom: .85rem; }
.blog-page > .section { padding-block: clamp(2.25rem, 4.5vw, 3.75rem); }

/* ---------------- Variante compacta para páginas con contenido extenso ---------------- */
.service-page--compact .container { max-width: 1080px; }
.service-page--compact .section {
  padding-block: clamp(2.75rem, 4.5vw, 4rem);
}
.service-page--compact .page-hero--service {
  min-height: clamp(24rem, 36vw, 29rem);
  padding-block: clamp(1.75rem, 3vw, 2.75rem);
  padding-top: clamp(.9rem, 2vw, 1.5rem);
}
.service-page--compact .section-head {
  margin-bottom: clamp(1.25rem, 3vw, 2rem);
}
.service-page--compact .split { gap: clamp(1.5rem, 4vw, 3rem); }
.service-page--compact .prose p { margin-top: .8rem; }
.service-page--compact .prose h3 { margin-top: 1.35rem; }
.service-page--compact .mini-cta__inner {
  padding-block: clamp(2rem, 4vw, 3rem);
}
.service-page--compact .section--centered .section-head,
.service-page--compact .section--centered .prose,
.service-page--compact .section--centered .steps,
.service-page--compact .section--centered .feature-grid,
.service-page--compact .section--centered .faq {
  max-width: 1000px;
  margin-inline: auto;
}
.service-page--compact .section--centered .section-head {
  text-align: center;
}
.service-page--compact .section--centered .prose--centered {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

/* ---------------- Breadcrumb ---------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .45rem;
  margin-bottom: 1.25rem;
  font-family: var(--ff-mono);
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #7C8CA6;
}
.breadcrumb a { color: #A9B7CC; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: var(--orange); }
.breadcrumb .sep { opacity: .5; }

/* Migas de pan ocultas en todo el sitio, salvo en la nota interna del blog */
.breadcrumb { display: none; }
.article-page .breadcrumb { display: flex; }

/* ---------------- Prosa / bloques de texto ---------------- */
.prose { max-width: 46rem; }
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  margin-top: clamp(2.25rem, 5vw, 3rem);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-size: 1.15rem;
  margin-top: 1.75rem;
}
.prose p { margin-top: 1rem; color: var(--text); }
.prose ul, .prose ol { margin-top: 1rem; display: grid; gap: .65rem; }
.prose ul:not(.check-list) li { position: relative; padding-left: 1.4rem; color: var(--text); }
.prose ul:not(.check-list) li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 9px; height: 9px;
  border-radius: 3px;
  background: var(--orange);
}
.prose ol { counter-reset: n; }
.prose ol li {
  counter-increment: n;
  position: relative;
  padding-left: 2.4rem;
  color: var(--text);
}
.prose ol li::before {
  content: counter(n);
  position: absolute;
  left: 0; top: -.1rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: .82rem;
}
.prose strong { color: var(--ink); font-weight: 600; }

/* ---------------- Rejilla de features / listado ---------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.1rem;
}
.feature-grid--centered {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
  margin-inline: auto;
}
.feature-card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.section--soft .feature-card { background: #fff; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.feature-card__ico {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 11px;
  background: var(--paper-soft);
  margin-bottom: .95rem;
}
.feature-card__ico img { width: 24px; height: 24px; object-fit: contain; }
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { font-size: .92rem; color: var(--text-soft); }

/* ---------------- Blog ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  max-width: 1000px;
  margin-inline: auto;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.blog-card__media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.blog-card:hover .blog-card__media img { transform: scale(1.04); }
.blog-card__media:focus-visible { outline: 3px solid var(--blue); outline-offset: -3px; }
.blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.35rem 1.4rem 1.45rem; }
.blog-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem .8rem;
  color: var(--orange-dark);
  font-family: var(--ff-mono);
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.blog-card h2 { margin-top: .75rem; font-size: 1.22rem; }
.blog-card p { margin-top: .7rem; color: var(--text-soft); font-size: .91rem; }
.blog-card__link {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  width: fit-content;
  align-self: flex-end;
  margin-top: auto;
  padding: .62rem .9rem;
  border: 1px solid var(--orange);
  border-radius: var(--radius-sm);
  background: var(--orange);
  color: #fff;
  font-family: var(--ff-head);
  font-size: .88rem;
  font-weight: 800;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
.blog-card__link:hover {
  color: #fff;
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------------- Check-list (lo que revisamos / incluye) ---------------- */
.check-list { display: grid; gap: .85rem; }
.check-list li {
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  font-size: .98rem;
  color: var(--text);
}
.check-list svg {
  flex: none;
  width: 22px; height: 22px;
  margin-top: .1rem;
  color: var(--orange);
}
.check-list b { color: var(--ink); font-family: var(--ff-head); }

/* ---------------- Bloque partido imagen + texto ---------------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 4rem);
  align-items: center;
}
.split--flip .split__media { order: 2; }
.split__media {
  min-width: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split__media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------------- FAQ (acordeón) ---------------- */
.faq { max-width: 46rem; display: grid; gap: .75rem; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  text-align: left;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
}
.faq__q::after {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq__q[aria-expanded="true"]::after { transform: rotate(-135deg); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 1.25rem 1.2rem;
  font-size: .95rem;
  color: var(--text-soft);
}

/* ---------------- Pasos numerados (proceso) ---------------- */
.steps { display: grid; gap: 1rem; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.25rem 1.4rem 1.25rem 3.6rem;
  background: var(--paper-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: .98rem;
  color: var(--text);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem; top: 1.1rem;
  width: 1.9rem; height: 1.9rem;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: .9rem;
}

/* ---------------- Mini CTA de contacto ---------------- */
.mini-cta {
  position: relative;
  isolation: isolate;
  background: linear-gradient(120deg, var(--orange) 0%, var(--amber) 100%);
  color: #fff;
}
.mini-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--navy-deep) 0%, var(--blue) 100%);
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
}
.mini-cta:hover::before,
.mini-cta:focus-within::before { opacity: 1; }
.mini-cta__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(2.5rem, 6vw, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 2rem;
}
.mini-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.15rem); max-width: 24ch; }
.mini-cta p { margin-top: .6rem; color: rgba(255, 255, 255, .92); max-width: 40ch; }
.mini-cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.mini-cta:hover .btn--dark,
.mini-cta:focus-within .btn--dark {
  --btn-bg: #fff;
  --btn-fg: var(--navy);
  border-color: #fff;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .2), var(--shadow-md);
}
.mini-cta:hover .btn--wa,
.mini-cta:focus-within .btn--wa {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .25), var(--shadow-md);
}

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__media { order: -1; }
  .split__media { order: -1; }
  .mini-cta__inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 620px) {
  .service-page--compact .page-hero--service {
    min-height: 0;
    padding-block: 0;
    padding-top: 0;
  }
  .page-hero--service {
    display: block;
    min-height: 0;
    padding-block: 0;
  }
  .page-hero--service .page-hero__image {
    position: relative;
    inset: auto;
    height: clamp(13rem, 58vw, 19rem);
    object-position: 68% center;
  }
  .page-hero--service .page-hero__shade { display: none; }
  .page-hero--service .page-hero__flow { display: none; }
  .page-hero--service .page-hero__inner {
    max-width: none;
    padding-block: 2rem 2.75rem;
  }
  .page-hero--service h1 { max-width: none; }
  .page-hero--service .page-hero__lead { max-width: none; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid--centered { max-width: none; }
  .blog-grid { display: flex; max-width: none; }
}

/* ---------------- Muro de logos (marcas / clientes) ---------------- */
.logo-wall {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 1.5rem;
}
.logo-wall li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  aspect-ratio: 16 / 10;
  padding: .8rem 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.logo-wall img {
  max-width: 100%;
  max-height: 46px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .62;
  transition: filter .2s var(--ease), opacity .2s var(--ease);
}
.logo-wall li:hover img { filter: grayscale(0); opacity: 1; }
@media (max-width: 900px) { .logo-wall { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .logo-wall li { padding: .6rem .45rem; } }

/* ---------------- Casos (grid de tarjetas con foto) ---------------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}
.case-item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-soft), var(--navy));
  color: #B7C4D8;
  border: 1px solid rgba(255, 255, 255, .06);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.case-item__media { aspect-ratio: 16 / 10; overflow: hidden; }
.case-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease); }
.case-item:hover .case-item__media img { transform: scale(1.06); }
.case-item__body { padding: 1.4rem 1.5rem 1.6rem; }
.case-item h3 { color: var(--orange); font-size: 1.08rem; margin-bottom: .5rem; }
.case-item__brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 58px;
  margin-bottom: .85rem;
  color: var(--orange);
  font-family: var(--ff-head);
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
}
.case-item__brand img {
  display: block;
  max-width: 190px;
  max-height: 54px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
}
.case-item__brand span { max-width: 10rem; }
.case-item p { font-size: .9rem; }
@media (max-width: 620px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------------- Utilidad ---------------- */
.center-block { max-width: 44rem; margin-inline: auto; text-align: center; }
.center-block__cta { margin-top: 1.5rem; }

/* ---------------- Nosotros: valores en el hero de sección navy ---------------- */
.section--navy .feature-card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.1); }
.section--navy .feature-card h3 { color: #fff; }
.section--navy .feature-card p { color: #A9B7CC; }
.section--navy .feature-card__ico { background: rgba(255,255,255,.1); }
