/* =====================================================================
   Ajustes de diseño, 15 de noviembre de 2026.
   Capa sobre style.css y los estilos propios de cada página. Para volver
   al aspecto anterior basta con quitar el enlace a este archivo en
   includes/header.php. Los selectores llevan «html body» para ganar a los
   estilos que cada página declara después.
   ===================================================================== */

:root {
  --blue-ink: #2B63C4;   /* azul corporativo oscurecido para enlaces sobre blanco (5,7:1) */
  --radius: 8px;
}

/* 1. Títulos con Afacad: interletraje algo cerrado en tamaños grandes */
html body h1,
html body .ph-stat-num { letter-spacing: -0.01em; }
html body h2 { letter-spacing: -0.005em; }

/* 2. Fuera las etiquetas pequeñas en mayúsculas encima de los títulos */
html body .ph-tag,
html body .ph-label,
html body .section-tag,
html body .ph-content-tag { display: none !important; }
html body .ph-section-sub { padding-top: 6px; }

/* 3. Fuera la numeración decorativa, las flechas de adorno, el punto «en servicio» y los iconos emoji */
html body .ph-tab-n,
html body .ph-content-num,
html body .ph-tab-arrow,
html body .ph-blog-arrow,
html body .fc-live-dot,
html body .fc-pill-icon { display: none !important; }

/* 4. Contenido visible desde el principio, sin fundidos al hacer scroll ni contadores */
html body .reveal,
html body .reveal-right,
html body .ph-hero-content .ph-label,
html body .ph-hero-content h1,
html body .ph-hero-desc,
html body .ph-hero-actions,
html body .page-hero.has-bg h1,
html body .page-hero.has-bg p.ph-sub,
html body .ph-stat-num,
html body .ph-stat-label,
html body .ph-client-logo,
html body .ph-org-item {
  opacity: 1 !important;
  transform: none !important;
  transition-delay: 0s !important;
}
@media (prefers-reduced-motion: reduce) {
  html body * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* 5. Titular de portada en un solo estilo */
html body .ph-hero-content h1 em { font-style: normal; color: inherit; }

/* 6. Etiquetas en minúscula normal, sin espaciado de letras */
html body .ph-stat-label,
html body .trab-filter-btn,
html body .fc-card-badge,
html body .blog-cat {
  text-transform: none;
  letter-spacing: 0;
}
html body .ph-stat-label { font-size: 0.95rem; color: #5A6A82; }
html body .trab-filter-btn { font-size: 0.88rem; }

/* 7. Contraste: texto oscuro sobre el azul corporativo y enlaces en azul tinta sobre blanco */
html body .btn-ph-primary { color: var(--navy); }
html body .trab-filter-btn.active { color: var(--navy); }
html body .post-content a,
html body .mt-body a,
html body .ph-section-sub a,
html body .faq-a a { color: var(--blue-ink); }
html body .ph-cta h2,
html body .ph-cta p { color: var(--navy); }
html body .ph-cta .btn-cta-white { color: var(--navy); border-color: var(--navy); }
html body .ph-cta .btn-cta-white:hover { background: rgba(21, 32, 57, 0.08); border-color: var(--navy); }

/* 8. Fondos planos: sin brillos radiales ni degradados decorativos */
html body .hero::before,
html body .page-hero::before,
html body .cta-band::before { display: none; }
html body .cta-band { background: var(--navy); }
html body .memoria-thumb { background: var(--navy); }

/* 9. Radios pequeños y coherentes */
html body .feature-carousel-wrap { border-radius: 8px; }
html body .btn,
html body .hero-card,
html body .service-icon,
html body .contact-ico { border-radius: 8px; }
@media (max-width: 900px) {
  html body .feature-carousel-wrap { border-radius: 8px; }
}

/* 10. Organismos: logos sobre fondo opaco, sin foto de banco, sin parallax ni desenfoque */
html body .ph-org-parallax-bg { display: none !important; }
html body .ph-org-dark { background: var(--navy); }
html body .ph-org-item {
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}
html body .ph-org-item img { filter: none; }
html body .ph-org-grid { gap: 1px; background: var(--navy); }
html body .ph-org-item { flex-direction: column; gap: 10px; }
html body .ph-org-name {
  position: static;
  inset: auto;
  background: none;
  color: #5A6A82;
  opacity: 1;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}
html body .ph-org-item:hover img,
html body .ph-client-logo:hover img { transform: none; }

/* 11. Lista de artículos de la portada y etiquetas de categoría del blog */
html body .ph-blog-date { text-transform: none; letter-spacing: 0; }
html body .ph-blog-cat,
html body .blog-cat {
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.82rem;
  color: var(--blue-ink);
}

/* 12. Resto de etiquetas, filtros y cabeceras en mayúsculas espaciadas: minúscula normal */
html body .ph-svc-abbr,
html body .ph-mem-cat,
html body .ph-mem-tag,
html body .trab-item-caption,
html body .trab-lb-cat,
html body .reg-mem-badge,
html body .reg-mem-filter-btn,
html body .reg-mem-table thead th,
html body .hero-badge,
html body .counter-label,
html body .memoria-tag,
html body .fc-pill,
html body .fc-live-label,
html body table th {
  text-transform: none;
  letter-spacing: 0;
}
html body .ph-svc-abbr { font-size: 0.85rem; color: var(--blue-ink); }
html body .reg-mem-badge { font-size: 0.78rem; font-weight: 600; }
html body .reg-mem-badge-tipo { color: var(--blue-ink); }
html body .reg-mem-filter-btn { font-size: 0.85rem; }
html body .reg-mem-filter-btn:hover,
html body .reg-mem-filter-btn.active { color: var(--navy); }
html body .reg-mem-table thead th { font-size: 0.82rem; color: #fff; }

/* 13. Líneas de las tablas en oscuro */
html body .reg-mem-table tbody tr { border-bottom-color: #262626; }
html body .post-content table th,
html body .post-content table td { border-color: #262626; }

/* 14. Carrusel de servicios: texto oscuro sobre el azul, radios pequeños, sin sombra, sin desenfoque */
html body .feature-carousel-wrap { box-shadow: none; }
html body .fc-nav::before,
html body .fc-nav::after { display: none; }
html body .fc-pill {
  border-radius: 8px;
  border-color: rgba(21, 32, 57, 0.35);
  color: var(--navy);
  font-size: 0.95rem;
}
html body .fc-pill:hover:not(.active) { border-color: var(--navy); color: var(--navy); }
html body .fc-pill.active { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: none; }
html body .fc-card-badge {
  border-radius: 4px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.8rem;
  font-weight: 600;
}

/* 15. Enlaces sobre fondo claro en azul tinta (el azul corporativo se queda para fondos oscuros) */
html body .contact-item a,
html body .breadcrumb-inner a,
html body .blog-footer a,
html body .service-card a.link-more,
html body .serv-guias a { color: var(--blue-ink); }
html body label a { color: var(--blue-ink) !important; }
html body .breadcrumb-inner a:hover,
html body .blog-footer a:hover,
html body .contact-item a:hover { text-decoration: underline; }
html body .post-content table tr:last-child td { border-bottom: 1px solid #262626; }
html body .breadcrumb-inner span:last-child { color: #5A6A82; }

/* =====================================================================
   16. Versión más visual, 15 de noviembre de 2026 (petición de Salva):
   sin líneas grises, más color, iconos 3D (Fluent Emoji de Microsoft,
   licencia MIT, en /imagenes/iconos) y fondos de foto semitransparentes
   (Unsplash, licencia libre, en /imagenes/fondos).
   ===================================================================== */
html:root {
  --rule: transparent;
  --gray-mid: transparent;
  --cream: #F1F6FE;
  --gray-light: #EEF4FD;
  --t-azul: #E8F1FF;   --c-azul: #2B63C4;
  --t-verde: #E3F5EC;  --c-verde: #13704D;
  --t-ambar: #FDF0D7;  --c-ambar: #8F5500;
  --t-coral: #FCE7E0;  --c-coral: #B8431F;
  --t-turq: #DDF2F5;   --c-turq: #0A7381;
  --t-suave: #F3F7FE;
}

/* Iconos */
html body .ico { display: inline-block; flex-shrink: 0; object-fit: contain; vertical-align: middle; }
html body .ico-xs { width: 22px; height: 22px; }
html body .ico-sm { width: 32px; height: 32px; }
html body .ico-md { width: 56px; height: 56px; }
html body .ico-lg { width: 88px; height: 88px; }

/* Fuera las líneas grises que quedaban con color fijo */
html body .ph-stats { border-top: none; border-bottom: none; }
html body .ph-stat { border-right: none !important; border-bottom: none !important; }
html body .footer-bottom { border-top: none; }
html body .ph-faq,
html body .faq-list { border-top: none; }
html body .ph-licit-wrap { border: none; }
html body .ph-tab-btn { border-bottom: none; }
html body .post-related,
html body .serv-guias { border-top: none; }
html body table tr[style*="border-bottom"] { border-bottom: 1px solid #262626 !important; }

/* Campos del formulario: borde azul en lugar de gris */
html body .form-control { border: 1.5px solid #5B84D6; }
html body .dropdown-menu { box-shadow: 0 8px 28px rgba(21, 32, 57, 0.14); }

/* Listas que se separaban con líneas: ahora bloques de color suave */
html body .ph-faq-item,
html body .faq-item {
  border-bottom: none;
  background: var(--t-suave);
  border-radius: 8px;
  padding: 22px 24px;
  margin-bottom: 10px;
}
html body .post-related li,
html body .serv-guias li {
  border-bottom: none;
  padding: 12px 16px;
  background: var(--t-suave);
  border-radius: 8px;
  margin-bottom: 8px;
}
html body .blog-card { background: var(--t-suave); }
html body .reg-mem-filter-btn { background: var(--t-azul); }
html body .ph-blog-row { background: #fff; border-radius: 8px; padding: 24px 28px; margin-bottom: 10px; }
html body .ph-blog-row:hover { margin: 0 0 10px; padding: 24px 28px; background: var(--t-azul); }

/* Cifras de portada: tarjetas de color con icono */
html body .ph-stats { background: #fff; gap: 16px; padding: 24px 40px 8px; }
html body .ph-stat { display: flex; flex-direction: column; align-items: center; border-radius: 8px; padding: 36px 24px; }
html body .ph-stat .ico { order: -1; margin-bottom: 12px; }
html body .ph-stat:nth-child(1) { background: var(--t-azul); }
html body .ph-stat:nth-child(2) { background: var(--t-verde); }
html body .ph-stat:nth-child(3) { background: var(--t-ambar); }
@media (max-width: 760px) { html body .ph-stats { padding: 16px; gap: 12px; } }

/* Pestañas de servicios de licitación con icono */
html body .ph-tabs-nav { background: var(--t-azul); }
html body .ph-tab-btn { gap: 14px; }
html body .ph-tab-btn.active { background: #fff; }
html body .ph-tabs-panel { background: #fff; }
html body .ph-tab-content .ico-lg { display: block; margin-bottom: 18px; }

/* Resumen de servicios: fondo de plano y una tarjeta de color por servicio */
html body #servicios {
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url(/imagenes/fondos/plano.webp) center / cover no-repeat;
}
html body .ph-svc-grid { gap: 16px; }
html body .ph-svc-item,
html body .ph-svc-item:nth-child(even) { padding: 32px; border: none !important; border-radius: 8px; }
html body .ph-svc-item .ico { display: block; margin-bottom: 14px; }
html body .ph-svc-item:nth-child(1) { background: var(--t-azul); }
html body .ph-svc-item:nth-child(2) { background: var(--t-turq); }
html body .ph-svc-item:nth-child(3) { background: var(--t-coral); }
html body .ph-svc-item:nth-child(4) { background: var(--t-ambar); }
html body .ph-svc-item:nth-child(1) .ph-svc-abbr { color: var(--c-azul); }
html body .ph-svc-item:nth-child(2) .ph-svc-abbr { color: var(--c-turq); }
html body .ph-svc-item:nth-child(3) .ph-svc-abbr { color: var(--c-coral); }
html body .ph-svc-item:nth-child(4) .ph-svc-abbr { color: var(--c-ambar); }
html body .ph-svc-item p { color: #3d4a60; }
html body .ph-svc-item:nth-child(2) .ph-link { border-bottom-color: var(--c-turq); }
html body .ph-svc-item:nth-child(3) .ph-link { border-bottom-color: var(--c-coral); }
html body .ph-svc-item:nth-child(4) .ph-link { border-bottom-color: var(--c-ambar); }

/* Banda de contacto de portada y de los artículos: foto con capa azul marino */
html body .ph-cta {
  background: linear-gradient(rgba(21, 32, 57, 0.84), rgba(21, 32, 57, 0.84)), url(/imagenes/fondos/alumbrado.webp) center / cover no-repeat;
}
html body .ph-cta h2 { color: #fff; }
html body .ph-cta p { color: rgba(255, 255, 255, 0.88); }
html body .ph-cta .btn-cta-dark { background: var(--blue); border-color: var(--blue); color: var(--navy); }
html body .ph-cta .btn-cta-dark:hover { background: #fff; border-color: #fff; }
html body .ph-cta .btn-cta-white { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
html body .ph-cta .btn-cta-white:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }
html body .cta-band.cta-lic { background: linear-gradient(rgba(21, 32, 57, 0.86), rgba(21, 32, 57, 0.86)), url(/imagenes/fondos/alumbrado.webp) center / cover no-repeat; }
html body .cta-band.cta-sol { background: linear-gradient(rgba(21, 32, 57, 0.82), rgba(21, 32, 57, 0.82)), url(/imagenes/fondos/solar.webp) center / cover no-repeat; }
html body .cta-band.cta-tec { background: linear-gradient(rgba(21, 32, 57, 0.86), rgba(21, 32, 57, 0.86)), url(/imagenes/fondos/cuadro-electrico.webp) center / cover no-repeat; }

/* Servicios: cada bloque con su foto de fondo muy suave */
html body #memorias.section { background: linear-gradient(rgba(255, 255, 255, 0.93), rgba(255, 255, 255, 0.93)), url(/imagenes/fondos/plano.webp) center / cover no-repeat; }
html body #ingenieria { background: linear-gradient(rgba(238, 244, 253, 0.93), rgba(238, 244, 253, 0.93)), url(/imagenes/fondos/cuadro-electrico.webp) center / cover no-repeat; }
html body #constructoras { background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.92)), url(/imagenes/fondos/gruas.webp) center / cover no-repeat; }
html body #fotovoltaica { background: linear-gradient(rgba(254, 248, 236, 0.92), rgba(254, 248, 236, 0.92)), url(/imagenes/fondos/solar.webp) center / cover no-repeat; }

/* Contacto: iconos en lugar de los símbolos de Font Awesome */
html body .contact-ico { background: none; width: auto; height: auto; }
html body .contact-ico .ico { width: 44px; height: 44px; }

@media (max-width: 760px) {
  html body .ph-container { padding: 0 16px; }
  html body .ph-svc-item,
  html body .ph-svc-item:nth-child(even) { padding: 24px; }
  html body .ph-blog-row,
  html body .ph-blog-row:hover { padding: 20px; }
  html body .ph-faq-item,
  html body .faq-item { padding: 18px; }
}

/* 17. Iconos de línea a dos tonos (Phosphor Icons, licencia MIT) en lugar de los emojis 3D */
html body .ico-xs { width: 22px; height: 22px; }
html body .ico-sm { width: 28px; height: 28px; }
html body .ico-md { width: 48px; height: 48px; }
html body .ico-lg { width: 64px; height: 64px; }
html body .contact-ico .ico { width: 36px; height: 36px; }
html body .fc-pill .ico { filter: brightness(0); opacity: 0.85; }
html body .fc-pill.active .ico { filter: brightness(0) invert(1); opacity: 1; }

/* =====================================================================
   18-27. Afacad + Jost y transiciones, 16 de noviembre de 2026.
   Referencias: enriquemanasarquitecto.com (tipografía, columna fija,
   franja con vídeo, botones) y páginas de producto de Apple (pasos con
   imagen que cambia, apariciones al hacer scroll). Código propio.
   ===================================================================== */

/* 18. Titulares en Afacad de peso medio y texto en Jost */
html body h1,
html body h2,
html body h3 { font-family: 'Afacad', sans-serif; }
html body h1,
html body h2 { font-weight: 500; letter-spacing: -0.005em; }
html body h3 { font-weight: 600; }
html body .ph-section-head h2,
html body .ph-section h2,
html body .section .section-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  line-height: 1.06;
}
html body .ph-sticky-col h2,
html body .proc-title { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.04; }
html body .mt-body h2 { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 500; line-height: 1.1; }
html body .mt-body h3 { font-size: 1.3rem; font-weight: 600; }
html body .page-hero h1 { font-weight: 500; line-height: 1.04; }

/* 19. Portada: titular corto en mayúsculas y línea de apoyo */
html body .ph-hero { min-height: min(92vh, 900px); align-items: flex-end; }
html body .ph-hero-content { max-width: 920px; padding-bottom: 5vw; }
html body .ph-hero-content h1 { margin-bottom: 26px; }
html body .ph-hero-content h1 .h1-main {
  display: block;
  font-family: 'Afacad', sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 5.2vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}
html body .ph-hero-content h1 .h1-sub {
  display: block;
  margin-top: 18px;
  font-family: 'Jost', sans-serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.86);
}
html body .ph-hero-desc { max-width: 560px; }
html body .ph-hero-overlay {
  background: linear-gradient(to right, rgba(21,32,57,1) 0%, rgba(21,32,57,.94) 34%, rgba(21,32,57,.72) 52%, rgba(21,32,57,.25) 72%, rgba(21,32,57,0) 86%);
}

/* 20. Botones en píldora, mayúsculas y cambio de color suave */
html body .btn,
html body .btn-ph-primary,
html body .btn-ph-ghost,
html body .btn-cta-dark,
html body .btn-cta-white,
html body .btn-outline,
html body nav.main-nav ul li a.nav-cta {
  border-radius: 999px !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 500;
  font-size: 0.82rem;
  transition: background-color .3s ease, color .3s ease, border-color .3s ease !important;
}
html body .btn:hover { transform: none; box-shadow: none; }
html body .btn-ph-primary,
html body .btn-ph-ghost { padding: 15px 30px; }
html body .ph-sticky-col .btn-ph-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; }

/* 21. Menú en mayúsculas con subrayado que se dibuja al pasar el ratón */
@media (min-width: 901px) {
  html body nav.main-nav ul li a:not(.nav-cta) {
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.82rem;
    background: none !important;
    border-radius: 0;
  }
  html body nav.main-nav ul li a:not(.nav-cta)::before {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--blue-ink);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
  }
  html body nav.main-nav ul li a:not(.nav-cta):hover::before,
  html body nav.main-nav ul li a.active:not(.nav-cta)::before { transform: scaleX(1); }
}

/* 22. Franja con vídeo de fondo (foto fija si no hay vídeo o en móvil) */
html body .ph-video {
  position: relative;
  min-height: 74vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--navy);
}
html body .ph-video-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--vid-poster) center / cover no-repeat;
}
html body .ph-video-el { width: 100%; height: 100%; object-fit: cover; display: block; }
html body .ph-video::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(21,32,57,.94) 0%, rgba(21,32,57,.82) 42%, rgba(21,32,57,.4) 100%);
}
html body .ph-video-content { width: 100%; padding-top: 112px; padding-bottom: 112px; }
html body .ph-video-content h2 {
  color: #fff;
  font-size: clamp(2.5rem, 5.4vw, 4.6rem);
  line-height: 1;
  max-width: 11ch;
  margin: 0 0 24px;
}
html body .ph-video-content p { color: rgba(255,255,255,.88); font-size: 1.1rem; line-height: 1.7; max-width: 560px; margin: 0 0 32px; }

/* 23. Portada: servicios con la columna del título fija */
html body .ph-sticky-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 64px;
  align-items: start;
}
html body .ph-sticky-col { position: sticky; top: 112px; }
html body .ph-sticky-col h2 { margin: 0 0 18px; }
html body .ph-sticky-col .ph-section-sub { margin: 0 0 32px; max-width: 420px; }
html body .ph-svc-grid.ph-svc-list { display: flex; flex-direction: column; gap: 16px; }
html body .ph-svc-list .ph-svc-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 24px;
  align-items: start;
  padding: 36px !important;
}
html body .ph-svc-list .ph-svc-item > .ico { grid-row: 1 / span 4; margin: 0; }
html body .ph-svc-list .ph-svc-item > :not(.ico) { grid-column: 2; }
html body .ph-svc-list .ph-svc-item h3 { font-size: 1.45rem; font-weight: 500; }

/* 24. /servicios: el recuadro de la derecha se queda fijo mientras se lee la columna izquierda */
@media (min-width: 901px) {
  html body #memorias .split-grid,
  html body #constructoras .split-grid { align-items: start; }
  html body #memorias .split-grid > .reveal-right,
  html body #constructoras .split-grid > .reveal-right { position: sticky; top: 112px; }
}

/* 25. Memorias: pasos del proceso con la imagen fija que cambia */
html body .proc-wrap { max-width: 1160px; }
html body .proc-title { color: var(--navy); margin: 0 0 24px; }
html body .proc { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: start; }
html body .proc-media { position: sticky; top: 120px; }
html body .proc-frame {
  position: relative;
  aspect-ratio: 1000 / 558;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(21, 32, 57, 0.16);
}
html body .proc-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .5s ease, transform .7s ease;
}
html body .proc-img.is-active { opacity: 1; transform: none; }
html body .proc-caption { margin-top: 14px; font-size: 0.92rem; color: #5A6A82; }
html body .proc-caption strong { color: var(--navy); font-weight: 600; }
html body .proc-steps { list-style: none; counter-reset: paso; margin: 0; padding: 0; }
html body .proc-step {
  counter-increment: paso;
  min-height: 44vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
html body .proc-step::before {
  content: counter(paso);
  font-family: 'Afacad', sans-serif;
  font-size: 4.2rem;
  font-weight: 500;
  line-height: 1;
  color: var(--blue-ink);
  margin-bottom: 10px;
}
html body .proc-step h3 { font-size: 1.6rem; font-weight: 500; line-height: 1.2; color: var(--navy); margin: 0 0 10px; }
html body .proc-step p { color: #3d4a60; line-height: 1.75; margin: 0; max-width: 460px; }
html body .proc.js-on .proc-step { opacity: .32; transition: opacity .4s ease; }
html body .proc.js-on .proc-step.is-active { opacity: 1; }

/* 26. Apariciones solo en cifras y bandas finales (navegadores con scroll-driven animations) */
@keyframes orpax-sube { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes orpax-acerca { from { transform: scale(1.12); } to { transform: scale(1); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html body .ph-stat,
    html body .ph-cta .ph-container,
    html body .cta-band .container,
    html body .ph-video-content {
      animation: orpax-sube linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 28%;
    }
    html body .ph-video-media {
      animation: orpax-acerca linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

/* 27. Móvil y tableta */
@media (max-width: 900px) {
  html body .ph-sticky-wrap,
  html body .proc { grid-template-columns: 1fr; gap: 32px; }
  html body .ph-sticky-col,
  html body .proc-media { position: static; }
  html body .proc-media { display: none; }
  html body .proc-step { min-height: 0; padding: 18px 0; }
  html body .proc.js-on .proc-step { opacity: 1; }
  html body .proc-step::before { font-size: 3rem; }
  html body .ph-hero-content { padding: 18vh 24px 48px; }
  html body .ph-hero-overlay { background: rgba(21, 32, 57, 0.84); }
  html body .ph-video { min-height: 0; }
  html body .ph-video-content { padding-top: 72px; padding-bottom: 72px; }
}
@media (max-width: 600px) {
  html body .ph-svc-list .ph-svc-item { grid-template-columns: 1fr; padding: 24px !important; }
  html body .ph-svc-list .ph-svc-item > .ico { grid-row: auto; margin-bottom: 12px; }
  html body .ph-svc-list .ph-svc-item > :not(.ico) { grid-column: 1; }
}

/* 28. Barra superior: una sola línea, sin la dirección en móvil */
html body .topbar { font-size: 0.82rem; padding: 7px 0; letter-spacing: 0; }
html body .topbar .tb-inner { flex-wrap: nowrap; }
html body .topbar .tb-contact { gap: 22px; }
html body .topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
html body .topbar .tb-addr { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  html body .topbar .tb-addr { display: none; }
  html body .topbar .tb-inner { flex-direction: row; justify-content: center; padding: 0 12px; }
  html body .topbar .tb-contact { gap: 18px; }
  html body .topbar .tb-mail span { display: none; }
}
html body .topbar { background: #EEF4FD; color: #3D4A60; }
html body .topbar a { color: var(--navy); }
html body .topbar a:hover { color: var(--blue-ink); opacity: 1; }
html body .topbar .fa { color: var(--blue-ink); }

/* 29. Móvil: la sombra del panel del menú solo cuando está abierto (antes asomaba por el borde derecho) */
@media (max-width: 900px) {
  html body nav.main-nav { box-shadow: none; }
  html body nav.main-nav.open { box-shadow: -12px 0 48px rgba(21, 32, 57, 0.45); }
}
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  html body .ph-video-el { display: none; }
}

/* 30. Portada: qué entregamos, cuatro tarjetas con páginas de memorias reales de fondo */
html body #servicios-licitacion { background: var(--t-suave); }
html body .ent-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
html body .ent-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #fff;
  border-radius: 8px;
  border-top: 4px solid var(--blue);
  padding: 32px 36px 36px;
  min-height: 260px;
}
html body .ent-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--ent-img) right center / cover no-repeat;
}
html body .ent-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(255,255,255,.92) 0%, rgba(255,255,255,.8) 50%, rgba(255,255,255,.5) 100%);
  transition: opacity .4s ease;
}
html body .ent-card:hover::after { opacity: .85; }
html body .ent-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
html body .ent-ico {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
}
html body .ent-card h3 { margin: 0; font-size: 1.55rem; font-weight: 600; line-height: 1.15; color: var(--navy); }
html body .ent-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
html body .ent-card li { position: relative; padding-left: 20px; color: #26324a; font-size: 1.02rem; line-height: 1.5; }
html body .ent-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--blue-ink);
}
@media (max-width: 900px) {
  html body .ent-grid { grid-template-columns: 1fr; gap: 16px; }
  html body .ent-card { padding: 26px 22px 28px; min-height: 0; }
  html body .ent-card h3 { font-size: 1.35rem; }
}
