/* =========================================================
   Grupo Pemares — estilo "Proveedor hotelero"
   Manrope · azul marino + turquesa · claro y directo
   ========================================================= */

:root {
  --navy: #0E2A47;
  --navy-2: #163A5E;
  --teal: #12A5AE;
  --teal-dark: #0B8A92;
  --ink: #0E2A47;
  --muted: #4A5D72;
  --soft: #F1F4F7;
  --line: #E3E8EE;
  --white: #FFFFFF;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-lg: 18px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; display: block; }
[hidden] { display: none !important; } /* que ningún display de componente anule hidden */
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.section { padding-block: clamp(72px, 9vw, 120px); }
.section-soft { background: var(--soft); }

.eyebrow {
  font-size: 14px;
  font-weight: 700;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.eyebrow-light { color: #8FE3E8; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 8px;
  font: 700 16px/1 var(--font);
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
  white-space: nowrap;
}
.btn-sm { padding: 11px 18px; font-size: 15px; }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: var(--white); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }
.btn:focus-visible, .main-nav a:focus-visible, .social a:focus-visible, .footer-col a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand img { width: 88px; height: auto; }
.main-nav ul { display: flex; gap: 32px; list-style: none; margin: 0; padding: 0; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--muted); }
.main-nav a:hover { color: var(--ink); }
@media (max-width: 900px) { .main-nav { display: none; } }

/* ---------- Portada con vídeo ---------- */
.hero {
  /* El vídeo solo, sin nada encima y con su proporción exacta (1920×600): se ve entero y nítido a cualquier ancho */
  position: relative;
  aspect-ratio: 1920 / 600;
  overflow: hidden;
  background: var(--navy);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
/* El texto de portada, debajo del vídeo, sobre blanco como el resto de la página (en azul se confundía con el botón
   flotante de los pedidos al hacer scroll). Una raya fina lo separa de «Quiénes somos». */
.hero-intro {
  background: var(--white);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(32px, 4.5vw, 56px);
}
.hero-intro-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px; flex-wrap: wrap; }
.hero-intro h1 {
  font-size: clamp(30px, 3.4vw, 50px);
  max-width: 20ch;
  margin: 6px 0 0;
}
.hero-intro .btn-row { flex: none; }
/* ---------- Quiénes somos ---------- */
.about {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.about-text { display: grid; gap: 18px; }
.about-text h2 { margin-bottom: 6px; }
.about-text > p:not(.eyebrow) { color: var(--muted); max-width: 60ch; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-weight: 600; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.about-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: grid;
  gap: 4px;
  box-shadow: 0 30px 60px -40px rgba(14,42,71,.35);
}
.stat { padding-block: 16px; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.stat strong { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; }
.about-card .btn { margin-top: 20px; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ---------- Clientes ---------- */
.section-head { max-width: 680px; margin-bottom: 48px; display: grid; gap: 14px; }
.section-head h2 { margin-bottom: 4px; }
.section-head > p:not(.eyebrow) { color: var(--muted); }

.clients-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.clients-grid li {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  padding: clamp(18px, 3vw, 40px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.clients-grid li:nth-child(3n) { border-right: 0; }
.clients-grid li:nth-last-child(-n+3) { border-bottom: 0; }
.clients-grid img {
  max-height: 120px;
  max-width: 78%;
  width: auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* funde los fondos blancos de los logos */
}
@media (max-width: 640px) {
  .clients-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .clients-grid li:nth-child(3n) { border-right: 1px solid var(--line); }
  .clients-grid li:nth-child(2n) { border-right: 0; }
  .clients-grid li:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .clients-grid li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Reseñas (Tripadvisor) ---------- */
:root { --star: #F2B416; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Bloque de valoración: sobrio, mismo lenguaje que las tarjetas del resto de la web */
.rating-panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px clamp(20px, 3vw, 36px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 40px;
}
.rating-score { display: flex; align-items: center; gap: 18px; }
.rating-number {
  font-size: clamp(44px, 4.4vw, 56px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.stars {
  position: relative;
  width: 130px;
  aspect-ratio: 5 / 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z' fill='%23D3DBE4'/%3E%3C/svg%3E") left center / 20% 100% repeat-x;
}
.stars-fill {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.9 6.1 6.6.8-4.9 4.6 1.3 6.6L12 17.3l-5.9 3.3 1.3-6.6-4.9-4.6 6.6-.8z' fill='%23F2B416'/%3E%3C/svg%3E") left center / 20% 100% repeat-x;
  clip-path: inset(0 calc(100% - var(--fill, 100%)) 0 0); /* --fill = nota / 5 */
}
.rating-count { margin-top: 6px; font-size: 15px; color: var(--muted); }
.rating-count span { color: var(--ink); font-weight: 700; }
.rating-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ta-logo { display: inline-flex; border-radius: 6px; }
.ta-logo:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; }
.ta-logo img { width: 150px; height: auto; transition: opacity .15s; }
.ta-logo:hover img { opacity: .75; }
.rating-rank {
  font-weight: 600;
  font-size: 14px;
  color: var(--muted);
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.rating-rank:empty { display: none; }
@media (max-width: 700px) {
  .rating-rank { padding-left: 0; border-left: 0; }
}

.review-grid {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)); /* 4 → 2 → 1, nunca una tarjeta suelta */
  gap: 16px;
}
@media (max-width: 1080px) { .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .review-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
}
.review-card::before { /* comillas discretas */
  content: "“";
  font-size: 40px;
  line-height: .5;
  font-weight: 700;
  color: var(--teal);
  height: 14px;
}
.review-card p { font-size: 16px; line-height: 1.55; font-weight: 500; color: var(--ink); }
.review-card a {
  font-size: 14px;
  font-weight: 600;
  color: var(--teal-dark);
  text-decoration: none;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.review-card a:hover { text-decoration: underline; }
.reviews-cta { margin-top: 28px; display: flex; justify-content: center; }

/* Los widgets de Tripadvisor solo sirven de fuente de datos */
.ta-source { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Pie ---------- */
.site-footer {
  background: var(--navy);
  color: #C9D5E2;
  padding-top: clamp(56px, 7vw, 88px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, auto);
  justify-content: space-between;
  align-items: center; /* logo, email, teléfono y redes en la misma línea */
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand img { width: 110px; height: auto; filter: invert(1); }
.footer-col h3 { font-size: 13px; font-weight: 700; color: #8FA3B8; letter-spacing: 0; margin-bottom: 12px; }
.footer-col a { color: var(--white); text-decoration: none; font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }
.footer-col a:hover { color: #8FE3E8; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; }
.social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white);
}
.social a:hover { background: var(--teal); border-color: var(--teal); color: var(--white); }
.social svg { width: 20px; height: 20px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: 22px;
  font-size: 14px;
  color: #8FA3B8;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; align-items: start; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-bottom { text-align: center; }

/* ---------- Botón flotante de WhatsApp ----------
   En reposo es un círculo con el icono; al pasar el ratón (o con el foco del
   teclado) se estira hacia la izquierda y aparece el texto. */
.whatsapp-float {
  position: fixed;
  z-index: 60;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  height: 56px;
  padding: 0 15px;               /* 15 + 26 de icono + 15 = círculo de 56 */
  border-radius: 999px;
  background: #25D366;           /* verde oficial de WhatsApp */
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  box-shadow: 0 12px 28px -10px rgba(14, 42, 71, .45);
  transition: padding .3s ease, box-shadow .2s;
}
.whatsapp-float svg { width: 26px; height: 26px; flex: none; }
.whatsapp-label {
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0;
  transition: max-width .3s ease, opacity .2s ease, margin-left .3s ease;
}
.whatsapp-float:hover,
.whatsapp-float:focus-visible { padding-right: 20px; box-shadow: 0 16px 32px -10px rgba(14, 42, 71, .55); }
.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus-visible .whatsapp-label { max-width: 160px; opacity: 1; margin-left: 10px; }
.whatsapp-float:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float, .whatsapp-label { transition: none; }
}

/* =========================================================
   Página de servicios
   ========================================================= */
.main-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--teal); padding-bottom: 4px; }

.page-head {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 6vw, 72px) clamp(32px, 4vw, 48px);
}
.page-head h1 { font-size: clamp(32px, 4.2vw, 52px); max-width: 20ch; margin-bottom: 14px; }
.page-head p:not(.eyebrow) { color: var(--muted); max-width: 60ch; }

/* Barra de filtros: se queda pegada bajo la cabecera */
.catalog-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.catalog-bar-inner { display: flex; align-items: center; gap: 16px; padding-block: 14px; }
.chips { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
/* Escritorio: los filtros ocupan las líneas que hagan falta (nada de arrastrar) */
@media (min-width: 761px) { .chips { flex-wrap: wrap; overflow: visible; } }
/* Móvil: se desliza con el dedo; flechas a los lados cuando hay más filtros (js/chips-scroll.js) */
.chips-scroller { position: relative; flex: 1; min-width: 0; }
.chips-arrow {
  display: none; position: absolute; top: 0; bottom: 2px; z-index: 1; width: 52px; padding: 0; border: 0;
  align-items: center; cursor: pointer; color: var(--ink);
}
.chips-arrow span {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(14,42,71,.12);
}
.chips-arrow svg { width: 18px; height: 18px; }
.chips-arrow-prev { left: 0; justify-content: flex-start; background: linear-gradient(90deg, rgba(255,255,255,1) 45%, rgba(255,255,255,0)); }
.chips-arrow-next { right: 0; justify-content: flex-end; background: linear-gradient(270deg, rgba(255,255,255,1) 45%, rgba(255,255,255,0)); }
.chips-scroller.can-prev .chips-arrow-prev, .chips-scroller.can-next .chips-arrow-next { display: flex; }
.chip {
  flex: none;
  font: 600 14px/1 var(--font);
  color: var(--muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background-color .15s;
}
.chip span { font-weight: 500; color: #8A97A6; margin-left: 4px; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip[aria-pressed="true"] span { color: #B9C7D6; }
.chip:focus-visible, .search input:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.search {
  flex: 0 0 260px;
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--white);
}
.search svg { width: 18px; height: 18px; color: #8A97A6; flex: none; }
.search input { border: 0; outline: 0; font: 500 15px var(--font); color: var(--ink); padding: 10px 0; width: 100%; background: transparent; }
@media (max-width: 760px) {
  .catalog-bar-inner { flex-direction: column; align-items: stretch; gap: 10px; }
  .search { flex-basis: auto; }
}

.catalog { padding-top: 32px; }
.catalog-count { color: var(--muted); font-size: 15px; margin-bottom: 20px; }

.service-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
@media (max-width: 1100px) { .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px)  { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (max-width: 480px)  { .service-grid { grid-template-columns: 1fr; } }

.service-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.service-card:hover { border-color: #CBD4DE; box-shadow: 0 24px 48px -36px rgba(14,42,71,.45); }

/* Imagen principal + imagen hover superpuesta */
.service-media { position: relative; aspect-ratio: 4 / 5; background: var(--soft); overflow: hidden; }
.service-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.img-hover { opacity: 0; transition: opacity .35s ease; }
.service-card.has-hover:hover .img-hover,
.service-card.has-hover:focus-within .img-hover { opacity: 1; }
.img-empty { position: absolute; inset: 0; background: linear-gradient(135deg, var(--soft), #E1E7EE); }
.ribbon {
  position: absolute; top: 12px; left: 12px;
  background: var(--navy); color: var(--white);
  font-size: 12px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
}

.service-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 16px; flex: 1; }
.service-cats { font-size: 12px; font-weight: 700; color: var(--teal-dark); }
.service-name { font-size: 18px; line-height: 1.25; letter-spacing: -0.01em; }
.service-summary {
  font-size: 14px; line-height: 1.5; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.service-cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px; font-weight: 700;
  color: var(--teal-dark);
  text-decoration: none;
}
.service-cta:hover { text-decoration: underline; }
.service-cta:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.catalog-empty { text-align: center; padding: 64px 16px; display: grid; gap: 12px; justify-items: center; }
.catalog-empty h2 { font-size: 24px; }
.catalog-empty p { color: var(--muted); }

.custom-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.custom-cta h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 10px; }
.custom-cta p { color: var(--muted); max-width: 52ch; }

@media (prefers-reduced-motion: reduce) {
  .img-hover, .service-card, .chip { transition: none; }
}

/* ---------- Tarjeta pulsable (abre la ventana de detalle) ---------- */
.catalog { padding-top: 28px; }
.service-open { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.service-open:focus-visible { outline: 3px solid var(--teal); outline-offset: -3px; border-radius: var(--radius-lg); }
.service-open .service-body { padding-bottom: 14px; }
.service-card:hover .service-name { color: var(--teal-dark); }
.service-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 0 18px; padding: 12px 0 14px;
  border-top: 1px solid var(--line);
}
.service-foot .service-cta { margin: 0; padding: 0; border: 0; font-size: 13px; }
.service-more { font-size: 13px; font-weight: 700; color: var(--ink); }
.photo-count {
  position: absolute; right: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(14,42,71,.72); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.photo-count svg { width: 14px; height: 14px; }

/* ---------- Ventana de detalle de servicio ---------- */
html.modal-open { overflow: hidden; }
.service-modal {
  width: min(1080px, 94vw);
  max-height: min(860px, 90vh);
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 40px 100px -30px rgba(14,42,71,.55);
  overflow: hidden;
}
.service-modal::backdrop { background: rgba(14,42,71,.55); backdrop-filter: blur(2px); }
.service-modal[open] { display: flex; flex-direction: column; animation: sm-in .22s ease-out; }
@keyframes sm-in { from { opacity: 0; transform: translateY(12px) scale(.985); } to { opacity: 1; transform: none; } }

.sm-close {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  border: 1px solid var(--line); cursor: pointer;
}
.sm-close:hover { background: var(--white); border-color: var(--ink); }
.sm-close svg { width: 20px; height: 20px; }
.sm-close:focus-visible, .sm-nav:focus-visible, .sm-thumbs button:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.sm-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.sm-gallery { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--soft); min-height: 0; }
.sm-stage {
  position: relative; flex: 1; min-height: 0;
  border-radius: 14px; overflow: hidden; background: #E4E9EF;
  display: grid; place-items: center;
}
.sm-stage img { width: 100%; height: 100%; max-height: calc(min(860px, 90vh) - 130px); object-fit: contain; }
.sm-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.92); color: var(--ink);
  border: 0; cursor: pointer; box-shadow: 0 6px 18px -8px rgba(14,42,71,.5);
}
.sm-nav:hover { background: var(--white); }
.sm-nav svg { width: 20px; height: 20px; }
.sm-prev { left: 12px; }
.sm-next { right: 12px; }
.sm-counter {
  position: absolute; left: 12px; bottom: 12px;
  background: rgba(14,42,71,.72); color: var(--white);
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.sm-counter:empty { display: none; }
.sm-thumbs { list-style: none; margin: 0; padding: 0 0 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; flex: none; }
.sm-thumbs button {
  width: 64px; height: 76px; padding: 0; border-radius: 10px; overflow: hidden;
  border: 2px solid transparent; background: #E4E9EF; cursor: pointer; display: block;
  opacity: .7; transition: opacity .15s, border-color .15s;
}
.sm-thumbs button:hover { opacity: 1; }
.sm-thumbs button[aria-current="true"] { border-color: var(--teal); opacity: 1; }
.sm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.service-modal.single .sm-nav, .service-modal.single .sm-thumbs { display: none; }
.service-modal.no-images .sm-gallery { display: none; }
.service-modal.no-images .sm-grid { grid-template-columns: 1fr; }

.sm-info { display: flex; flex-direction: column; gap: 12px; padding: 32px 32px 24px; min-height: 0; }
.sm-info h2 { font-size: clamp(24px, 2.4vw, 32px); padding-right: 40px; }
.sm-desc {
  overflow-y: auto; flex: 1; min-height: 80px;
  color: var(--muted); font-size: 16px; line-height: 1.65;
  padding-right: 6px; margin-right: -6px;
}
.sm-desc p + p, .sm-desc ul, .sm-desc ol, .sm-desc h3 { margin-top: 12px; }
.sm-desc strong { color: var(--ink); }
.sm-desc ul, .sm-desc ol { padding-left: 20px; }
.sm-desc h3 { font-size: 17px; color: var(--ink); }
.sm-options { display: grid; gap: 10px; }
.sm-options:empty { display: none; }
.sm-options h3 { font-size: 14px; margin-bottom: 6px; }
.sm-options ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sm-options li { font-size: 13px; font-weight: 600; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; color: var(--muted); }
.sm-actions { padding-top: 16px; border-top: 1px solid var(--line); }
.sm-actions .btn { width: 100%; }
.sm-status { padding: 24px 32px; color: var(--muted); }

/* Mientras llegan los datos */
.service-modal.loading .sm-info > *, .service-modal.loading .sm-stage img, .service-modal.loading .sm-thumbs { opacity: .25; transition: opacity .15s; }

@media (max-width: 820px) {
  .service-modal { width: 94vw; max-height: 92vh; border-radius: 18px; }
  .service-modal[open] { overflow-y: auto; }
  .sm-grid { grid-template-columns: 1fr; }
  .sm-stage { aspect-ratio: 4 / 4.2; flex: none; }
  .sm-stage img { max-height: none; }
  .sm-info { padding: 22px 20px 20px; }
  .sm-desc { overflow: visible; flex: none; }
  .sm-actions { position: sticky; bottom: 0; background: var(--white); padding-bottom: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .service-modal[open] { animation: none; }
}
.service-foot .service-cta { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: #1A9E55; }
.service-foot .service-cta svg { width: 16px; height: 16px; flex: none; }
.service-more { white-space: nowrap; }

/* Botones de la ventana de servicio: Contratar + WhatsApp */
.sm-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.sm-actions .btn { width: auto; }
.sm-wa svg { width: 18px; height: 18px; color: #1A9E55; }

/* =========================================================
   Solicitud de contratación (panel lateral + botón flotante)
   ========================================================= */
html.request-open { overflow: hidden; }
.request-panel { position: fixed; inset: 0; z-index: 80; }
.rp-backdrop { position: absolute; inset: 0; background: rgba(14,42,71,.45); opacity: 0; transition: opacity .25s; }
.rp-sheet {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(640px, 100vw);
  background: var(--white);
  display: flex; flex-direction: column;
  box-shadow: -30px 0 80px -40px rgba(14,42,71,.6);
  transform: translateX(100%);
  transition: transform .25s ease;
  outline: none;
}
.request-panel.is-open .rp-backdrop { opacity: 1; }
.request-panel.is-open .rp-sheet { transform: none; }

.rp-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: calc(20px + env(safe-area-inset-top, 0px)) 28px 18px;
  border-bottom: 1px solid var(--line);
}
.rp-head h2 { font-size: 22px; }
.rp-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.rp-minimize {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  font: 600 14px var(--font); color: var(--ink);
  background: var(--soft); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; cursor: pointer;
}
.rp-minimize:hover { border-color: var(--ink); }
.rp-minimize svg { width: 16px; height: 16px; }

.rp-body { flex: 1; overflow-y: auto; padding: 8px 28px 28px; overscroll-behavior: contain; }
.rp-section { padding-top: 22px; }
.rp-section + .rp-section { margin-top: 10px; border-top: 1px solid var(--line); }
.rp-section-head { margin-bottom: 14px; }
.rp-section-head h3 { font-size: 17px; }
.rp-section-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }

.rp-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rp-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; transition: box-shadow .3s, border-color .3s; }
.rp-item.just-added { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,174,.18); }
.rp-item-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rp-item-head img { width: 48px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; background: var(--soft); }
.rp-item-name { flex: 1; min-width: 0; font-size: 16px; line-height: 1.3; }
.rp-remove { font: 600 13px var(--font); color: var(--muted); background: none; border: 0; padding: 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.rp-remove:hover { color: #B42318; }
.rp-item-fields { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 10px; }
.rp-empty { color: var(--muted); font-size: 15px; padding: 14px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; }
.rp-add-more {
  margin-top: 12px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 700 15px var(--font); color: var(--teal-dark);
  background: var(--white); border: 1.5px dashed #9FD8DB; border-radius: var(--radius);
  padding: 13px; cursor: pointer;
}
.rp-add-more:hover { border-color: var(--teal); background: #F3FBFB; }
.rp-add-more svg { width: 18px; height: 18px; }

/* Campos de formulario */
.rp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.field .optional { font-weight: 500; color: #8A97A6; }
.field input, .field select, .field textarea {
  font: 500 15px var(--font); color: var(--ink);
  border: 1px solid #CBD4DE; border-radius: 8px;
  padding: 10px 12px; background: var(--white); width: 100%; min-width: 0;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,174,.2); }
.field [aria-invalid="true"], .rp-item [aria-invalid="true"] { border-color: #D92D20; }
.field-error { color: #B42318; font-size: 13px; font-weight: 600; }
.field-error:empty { display: none; }
.rp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rp-error { margin-top: 16px; background: #FEF3F2; color: #B42318; border: 1px solid #FECDCA; border-radius: 8px; padding: 12px 14px; font-size: 14px; font-weight: 600; }

.rp-foot {
  padding: 16px 28px calc(16px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--white);
}
.rp-foot .btn { width: 100%; }
.rp-foot .btn:disabled { opacity: .6; cursor: progress; }

.rp-done { text-align: center; padding: 56px 12px; display: grid; justify-items: center; gap: 12px; }
.rp-done svg { width: 64px; height: 64px; }
.rp-done h3 { font-size: 24px; }
.rp-done p { color: var(--muted); max-width: 40ch; }
.rp-done .btn { margin-top: 10px; }

@media (max-width: 560px) {
  .rp-head, .rp-body, .rp-foot { padding-left: 18px; padding-right: 18px; }
  .rp-minimize span { display: none; }
  .rp-minimize { padding: 9px; }
  .rp-fields { grid-template-columns: 1fr; }
  .rp-item-fields { grid-template-columns: 1fr 1fr; }
  .rp-item-fields .field:nth-child(2) { grid-column: 1 / -1; order: -1; }
}

/* Botón flotante de la solicitud: encima del de WhatsApp, mismo comportamiento al pasar el ratón */
.request-float {
  position: fixed;
  z-index: 61;
  right: calc(20px + env(safe-area-inset-right, 0px));
  bottom: calc(20px + 56px + 12px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center;
  height: 56px; padding: 0 15px;
  border: 0; border-radius: 999px;
  background: var(--navy); color: var(--white);
  font: 700 15px var(--font); white-space: nowrap; cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(14, 42, 71, .55);
  transition: padding .3s ease, box-shadow .2s;
}
.request-float svg { width: 26px; height: 26px; flex: none; }
.request-badge {
  position: absolute; top: -4px; left: -4px;
  min-width: 22px; height: 22px; padding: 0 6px;
  display: grid; place-items: center;
  background: var(--teal); color: var(--white);
  font-size: 12px; font-weight: 800; border-radius: 999px;
  border: 2px solid var(--white);
  font-variant-numeric: tabular-nums;
}
.request-label { max-width: 0; overflow: hidden; opacity: 0; margin-left: 0; transition: max-width .3s ease, opacity .2s ease, margin-left .3s ease; }
.request-float:hover, .request-float:focus-visible { padding-right: 20px; }
.request-float:hover .request-label, .request-float:focus-visible .request-label { max-width: 140px; opacity: 1; margin-left: 10px; }
.request-float:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .rp-sheet, .rp-backdrop, .request-float, .request-label { transition: none; }
}

/* Propuesta a medida (dentro de la solicitud) */
.rp-custom { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.rp-custom-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; cursor: pointer; }
.rp-custom-toggle input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.rp-custom-toggle strong { display: block; font-size: 15px; }
.rp-custom-toggle small { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; margin-top: 2px; }
.rp-custom:has(input:checked) { border-color: var(--teal); background: #F3FBFB; }
.rp-custom-desc { padding: 0 16px 16px; }
.rp-items + .rp-empty + .rp-add-more + .field-error { margin-top: 8px; }

/* Cambio entre carrito y propuesta a medida dentro del panel */
.rp-switch { margin-top: 14px; font-size: 14px; color: var(--muted); text-align: center; }
.rp-link {
  font: 700 14px var(--font); color: var(--teal-dark);
  background: none; border: 0; padding: 2px; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.rp-link:hover { color: var(--ink); }
.rp-link:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
.request-panel[data-mode="a-medida"] .rp-sheet { border-top: 4px solid var(--teal); }

/* Pie de tarjeta: solo "Ver detalles" (sin WhatsApp ni contador de fotos) */
.service-open .service-body { flex: 1; }
.service-open .service-more {
  display: block;
  margin: 0 18px; padding: 12px 0 14px;
  border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--teal-dark);
}
.service-card:hover .service-more { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Destacados ("hot", se marcan en el portal: Administrar web) ---------- */
.hot-section {
  margin-bottom: clamp(36px, 5vw, 56px); padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius-lg); background: linear-gradient(135deg, #FFF6EE, #FFFFFF 60%);
  border: 1px solid #FBE0CB;
}
.hot-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.hot-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.hot-head p { color: var(--muted); font-size: 15px; }
.hot-grid .service-card { background: var(--white); }
.hot-badge {
  position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 11px 5px 8px; border-radius: 999px;
  background: #E8590C; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .01em;
  box-shadow: 0 4px 12px rgba(232, 89, 12, .35);
}
.hot-badge svg { width: 14px; height: 14px; }

/* ===== Trabaja con nosotros (/empleo.php, docs/rrhh.md R1) ===== */
.empleo { padding-block: 40px 72px; }
.empleo-cab { margin-bottom: 24px; }
.empleo-cab h1 { font-size: clamp(28px, 4vw, 42px); color: var(--navy); margin: 6px 0 10px; }
.empleo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 32px; align-items: start; }
.empleo-oferta { line-height: 1.65; color: var(--ink); }
.empleo-oferta p + p { margin-top: 10px; }
.empleo-oferta h2 { font-size: 18px; margin: 22px 0 8px; color: var(--navy); }
.empleo-datos { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.empleo-datos li { background: var(--soft); border-radius: 99px; padding: 5px 12px; font-size: 14px; font-weight: 600; }
.empleo-cierra { margin-top: 16px; font-weight: 700; color: var(--teal-dark); }
.empleo-form { display: grid; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: 0 18px 40px -28px rgba(14,42,71,.35); }
.empleo-form h2 { font-size: 20px; color: var(--navy); }
.empleo-form .field { display: grid; gap: 6px; }
.empleo-form label { font-size: 14px; font-weight: 700; }
.empleo-form input:not([type=checkbox]):not([type=file]), .empleo-form select, .empleo-form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.empleo-form .optional { font-weight: 500; color: var(--muted); }
.empleo-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.empleo-check { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; font-weight: 500 !important; }
.empleo-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.empleo-mt { margin-top: 6px; }
.empleo-lista { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.empleo-lista a { display: grid; gap: 4px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); background: var(--white); }
.empleo-lista a:hover { border-color: var(--teal); }
.empleo-lista strong { font-size: 18px; color: var(--navy); }
.empleo-lista span { color: var(--muted); font-size: 14px; }
.empleo-lista .empleo-ver { color: var(--teal-dark); font-weight: 700; }
.empleo-esp { margin-top: 20px; }
.empleo-ok { background: var(--soft); border-radius: 18px; padding: 28px; display: grid; gap: 10px; justify-items: start; }
.empleo-ok h2 { color: var(--navy); }
/* Ofertas por secciones (053) */
.empleo-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; margin-bottom: 18px; }
.empleo-puntos { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.empleo-puntos li::marker { color: var(--teal); }
.empleo-cierre { margin-top: 22px; font-size: 18px; font-weight: 700; color: var(--navy); }   /* sin franja (13 nov. 2026) */
.empleo-lista { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.empleo-lista li { display: grid; }
.empleo-lista a { align-content: start; }
.empleo-lista a.con-img { padding-top: 0; overflow: hidden; }
.empleo-lista a.con-img img { width: calc(100% + 40px); max-width: none; margin: 0 -20px 10px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
/* Formulario de empleo (13 nov. 2026): más ancho, campos de la misma altura y la etiqueta pegada al campo */
.empleo-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); }
.empleo-grid.is-solo { grid-template-columns: minmax(0, 820px); }
.empleo-2 { align-items: stretch; }
.empleo-2 > .field { grid-template-rows: 1fr auto auto; }
.empleo-2 > .field > label { align-self: end; }
.empleo-form input:not([type=checkbox]):not([type=file]), .empleo-form select { height: 46px; box-sizing: border-box; }
.empleo-form select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312A5AE' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat; }
.empleo-form input:focus, .empleo-form select:focus, .empleo-form textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,174,.18); }
.empleo-moneda { position: relative; display: block; }
.empleo-moneda input { padding-right: 52px !important; }
.empleo-moneda span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-weight: 700; color: var(--muted); pointer-events: none; }
.empleo-aviso { font-size: 13px; color: var(--muted); margin: 0; }
.empleo-form input[type=file] { padding: 10px; border: 1px dashed var(--line); border-radius: 10px; background: var(--soft); width: 100%; }
.empleo-form input[type=file]::file-selector-button { border: 0; border-radius: 8px; padding: 8px 14px; margin-right: 10px; background: var(--teal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 860px) { .empleo-grid, .empleo-grid.is-solo { grid-template-columns: 1fr; } .empleo-2 { grid-template-columns: 1fr; } }

/* Fecha (toda la web, 13 nov. 2026): el icono del calendario en turquesa y el selector con los colores de la marca */
input[type=date] { accent-color: var(--teal); color-scheme: light; cursor: pointer; }
input[type=date]::-webkit-calendar-picker-indicator { opacity: 1; cursor: pointer; width: 20px; height: 20px; padding: 2px; border-radius: 6px; color: transparent;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312A5AE' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") center / 18px no-repeat; }
input[type=date]::-webkit-calendar-picker-indicator:hover { background-color: rgba(18,165,174,.12); }
input[type=date]::-webkit-datetime-edit-fields-wrapper { color: var(--ink); }
input[type=date]:invalid::-webkit-datetime-edit, input[type=date]:not(:focus):placeholder-shown::-webkit-datetime-edit { color: var(--muted); }

/* Página de una oferta (13 nov. 2026): cabecera de color, apartados en tarjetas con icono y el formulario al lado */
.empleo-hero { background: linear-gradient(135deg, var(--soft) 0%, #E3F5F6 100%); border-block: 1px solid var(--line); margin: -8px 0 32px; }
.empleo-hero-in { display: grid; gap: 28px; padding-block: 28px 32px; align-items: center; }
.empleo-hero-in.con-img { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.empleo-intro { font-size: 17px; line-height: 1.65; color: var(--ink); max-width: 68ch; }
.empleo-intro p + p { margin-top: 10px; }
.empleo-hero-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 20px; }
.empleo-hero-meta { font-weight: 600; color: var(--teal-dark); }
.empleo-hero-img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px; box-shadow: 0 18px 40px -24px rgba(14,42,71,.45); }
.empleo-oferta { display: grid; gap: 16px; }
.empleo-sec { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.empleo-sec h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; color: var(--navy); margin: 0 0 12px; }
.empleo-sec-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(18,165,174,.12); color: var(--teal-dark); flex: none; }
.empleo-sec-ico svg { width: 20px; height: 20px; }
.empleo-sec ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.empleo-sec li { position: relative; padding-left: 26px; line-height: 1.55; }
.empleo-sec li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat; }
.empleo-grid:not(.is-solo) .empleo-form { position: sticky; top: 96px; }
@media (max-width: 860px) {
  .empleo-hero-in.con-img { grid-template-columns: 1fr; }
  .empleo-hero-img { order: -1; }
  .empleo-grid:not(.is-solo) .empleo-form { position: static; }
}
.empleo-hero { margin-top: -40px; }
.empleo-hero h1 { font-size: clamp(28px, 4vw, 42px); color: var(--navy); margin: 6px 0 14px; }
.empleo-hero .eyebrow a { color: inherit; text-decoration: none; }
.empleo-hero .eyebrow a:hover { text-decoration: underline; }
.empleo-grid:not(.is-solo) { grid-template-columns: minmax(0, 1fr) minmax(0, 500px); }
@media (max-width: 1080px) { .empleo-grid:not(.is-solo) { grid-template-columns: 1fr; } .empleo-grid:not(.is-solo) .empleo-form { position: static; } }
/* Frase de cierre de la oferta: sin borde ni fondo, como remate del texto (13 nov. 2026) */
.empleo-oferta .empleo-cierre { margin: 8px 0 0; padding: 0; background: none; border: 0; border-radius: 0; font-size: 18px; font-weight: 700; line-height: 1.5; color: var(--navy); text-align: center; }

/* Tablón de ofertas (13 nov. 2026): filas separadas por líneas finas, número, título grande y flecha */
.empleo-tablon { margin-top: 8px; }
.empleo-tablon-cab { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--navy);
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.empleo-tablon-cab span + span { color: var(--muted); }
.empleo-filas { list-style: none; margin: 0; padding: 0; }
.empleo-filas li { border-bottom: 1px solid var(--line); }
.empleo-fila { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto auto; align-items: center; gap: 24px; padding: 30px 4px;
  text-decoration: none; color: var(--ink); transition: background .2s; }
.empleo-fila-n { font-size: 14px; font-weight: 700; color: var(--teal-dark); font-variant-numeric: tabular-nums; }
.empleo-fila-txt { display: grid; gap: 6px; min-width: 0; }
.empleo-fila-txt strong { font-size: clamp(22px, 2.6vw, 30px); line-height: 1.15; color: var(--navy); letter-spacing: -.01em; transition: color .2s; }
.empleo-fila-txt span { color: var(--muted); font-size: 15px; }
.empleo-fila-img { width: 160px; height: 100px; object-fit: cover; border-radius: 12px; }
.empleo-fila-ir { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--teal-dark); white-space: nowrap; }
.empleo-fila-ir svg { width: 20px; height: 20px; transition: transform .2s; }
.empleo-fila:hover .empleo-fila-txt strong, .empleo-fila:focus-visible .empleo-fila-txt strong { color: var(--teal-dark); }
.empleo-fila:hover .empleo-fila-ir svg, .empleo-fila:focus-visible .empleo-fila-ir svg { transform: translateX(5px); }
.empleo-fila.is-esp .empleo-fila-n { font-size: 22px; line-height: 1; }
.empleo-fila.is-esp .empleo-fila-txt strong { font-size: clamp(18px, 2vw, 22px); }
.empleo-cab h1 { margin-top: 0; }
@media (max-width: 700px) {
  .empleo-fila { grid-template-columns: 36px minmax(0, 1fr); gap: 8px 14px; padding: 22px 0; }
  .empleo-fila-img { display: none; }
  .empleo-fila-ir { grid-column: 2; }
}

/* Servicios: filtro por categoría en un desplegable (13 nov. 2026) */
.cat-filtro { position: relative; flex: none; }
.cat-boton { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 16px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.cat-boton:hover { border-color: var(--ink); }
.cat-boton:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.cat-boton-lbl { color: var(--muted); }
.cat-boton strong { font-weight: 700; color: var(--navy); max-width: 26ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-boton-n { font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.cat-boton svg { width: 18px; height: 18px; color: var(--teal-dark); transition: transform .2s; }
.cat-filtro.is-abierto .cat-boton svg { transform: rotate(180deg); }
.cat-filtro.is-filtrado .cat-boton { background: var(--navy); border-color: var(--navy); }
.cat-filtro.is-filtrado .cat-boton-lbl, .cat-filtro.is-filtrado .cat-boton-n { color: #B9C7D6; }
.cat-filtro.is-filtrado .cat-boton strong, .cat-filtro.is-filtrado .cat-boton svg { color: #fff; }
.cat-menu { position: absolute; z-index: 40; top: calc(100% + 8px); left: 0; width: min(340px, calc(100vw - 32px)); max-height: min(420px, 60vh); overflow: auto;
  display: grid; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 48px -18px rgba(14,42,71,.35); }
.cat-menu[hidden] { display: none; }
.cat-menu .chip { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); font-size: 14px; font-weight: 500; text-align: left; white-space: normal; }
.cat-menu .chip span { margin: 0; color: var(--muted); }
.cat-menu .chip:hover, .cat-menu .chip:focus-visible { background: var(--soft); outline: none; }
.cat-menu .chip[aria-pressed="true"] { background: rgba(18,165,174,.10); color: var(--teal-dark); font-weight: 700; }
.cat-menu .chip[aria-pressed="true"] span { color: var(--teal-dark); }
.catalog-bar-inner { justify-content: space-between; }
@media (max-width: 760px) {
  .cat-filtro, .cat-boton { width: 100%; }
  .cat-boton strong { flex: 1; text-align: left; max-width: none; }
  .cat-menu { width: 100%; }
}
/* Casillas del filtro de categorías (varias a la vez) */
.cat-menu .chip { justify-content: flex-start; }
.cat-menu .chip em { font-style: normal; flex: 1; }
.cat-check { flex: none; width: 18px; height: 18px; border: 1.5px solid #B6C0CC; border-radius: 5px; background: #fff; transition: background .15s, border-color .15s; }
.cat-menu .chip[aria-pressed="true"] .cat-check { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat; }
.cat-menu-pie { position: sticky; bottom: -6px; display: flex; justify-content: space-between; gap: 8px; margin: 4px -6px -6px; padding: 8px 10px; background: var(--white); border-top: 1px solid var(--line); }
.cat-quitar, .cat-listo { border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; padding: 6px 8px; border-radius: 8px; }
.cat-quitar { color: var(--muted); } .cat-quitar:disabled { opacity: .45; cursor: default; }
.cat-listo { color: #fff; background: var(--teal); padding-inline: 16px; }

/* Solicitud de empleo (14 nov. 2026): nacionalidad e idiomas con lista, y calendario propio (js/empleo-form.js) */
.cbx { position: relative; }
.cbx-lista { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; max-height: 264px; overflow-y: auto;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 18px 40px -18px rgba(14,42,71,.35); }
.cbx-op { padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.cbx-op:hover, .cbx-op[aria-selected="true"] { background: rgba(18,165,174,.12); color: var(--teal-dark); }
.cbx-vacio { padding: 9px 12px; color: var(--muted); font-size: 14px; }
.chips-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 46px; box-sizing: border-box; padding: 6px 8px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: text; }
.chips-fila:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,174,.18); }
.empleo-form .chips-fila .chips-input { flex: 1 1 120px; min-width: 120px; height: 32px; padding: 0 4px; border: 0; box-shadow: none; background: transparent; }
.empleo-form .chips-fila .chips-input:focus { box-shadow: none; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 4px 4px 10px; border-radius: 999px; background: rgba(18,165,174,.12); color: var(--teal-dark); font-size: 14px; font-weight: 600; }
.chip-x { display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 16px; line-height: 1; cursor: pointer; }
.chip-x:hover { background: rgba(18,165,174,.2); }
.fecha { position: relative; }
.fecha-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 46px; box-sizing: border-box; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.fecha-btn.vacio .fecha-txt { color: var(--muted); }
.fecha-txt::first-letter { text-transform: uppercase; }
.fecha-btn svg { width: 20px; height: 20px; color: var(--teal); flex: none; }
.fecha-btn:focus-visible, .fecha-btn[aria-expanded="true"] { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,174,.18); }
.cal { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 300px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 22px 48px -20px rgba(14,42,71,.4); }
.cal-cab { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-mes { font-size: 15px; color: var(--navy); text-transform: capitalize; }
.cal-nav { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--teal-dark); font-size: 22px; line-height: 1; cursor: pointer; }
.cal-nav:hover:not(:disabled) { background: rgba(18,165,174,.12); }
.cal-nav:disabled { color: var(--line); cursor: default; }
.cal-rej { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dsem { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0 6px; }
.cal-dia { aspect-ratio: 1; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.cal-dia:hover:not(:disabled) { background: rgba(18,165,174,.12); color: var(--teal-dark); }
.cal-dia:focus-visible { outline: 2px solid var(--teal); outline-offset: -2px; }
.cal-dia.hoy { font-weight: 800; color: var(--teal-dark); }
.cal-dia.sel { background: var(--teal); color: #fff; font-weight: 700; }
.cal-dia:disabled { color: #B7C2CE; cursor: default; }
.cal-pie { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.cal-quitar { border: 0; background: none; padding: 4px 6px; color: var(--teal-dark); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cal-quitar:hover { text-decoration: underline; }

/* Solicitud ya enviada desde este navegador (14 nov. 2026; cookie emp_sol) */
.empleo-ya { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid rgba(18,165,174,.35); border-radius: 12px; background: #F2FAFA; font-size: 14px; color: var(--ink); }
.empleo-ya strong { color: var(--teal-dark); }
.empleo-ya-chip { display: inline-block; vertical-align: middle; margin-left: 6px; padding: 2px 10px; border-radius: 999px; background: rgba(18,165,174,.12); color: var(--teal-dark); font-size: 12px; font-weight: 700; letter-spacing: 0; }

/* Solicitud de empleo › teléfono con país (16 nov. 2026): el prefijo a la izquierda (abre la lista de países) y el número */
.empleo-tel { display: flex; gap: 8px; }
.empleo-tel-pais { position: relative; flex: none; width: 92px; }
.empleo-tel-pais .empleo-tel-pref { display: flex; align-items: center; height: 46px; padding: 0 30px 0 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312A5AE' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; font-weight: 700; color: var(--navy); box-sizing: border-box; }
.empleo-form .empleo-tel-pais select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.empleo-tel-pais:focus-within .empleo-tel-pref { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,165,174,.18); }
.empleo-tel input { flex: 1; min-width: 0; }
.empleo-form input[aria-invalid="true"] { border-color: #D14343; }
/* Dos campos en fila: etiqueta, campo y error en filas compartidas (subgrid), así un error no descuadra al vecino */
.empleo-2 { grid-template-rows: auto auto auto; row-gap: 0; }
.empleo-2 > .field { grid-row: span 3; grid-template-rows: subgrid; row-gap: 6px; align-content: start; }
.empleo-2 > .field > .field-error { margin: 0; }
@media (max-width: 860px) { .empleo-2 { grid-template-rows: none; row-gap: 12px; } .empleo-2 > .field { grid-row: auto; grid-template-rows: none; } }

/* Solicitud de empleo › banderas (16 nov. 2026; circle-flags, MIT) en nacionalidad, idiomas e inglés */
.empleo-form img.bandera { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(14,42,71,.12); }
.cbx-op { display: flex; align-items: center; gap: 10px; }
.cbx-con-bandera .cbx-bandera { position: absolute; left: 12px; top: 13px; pointer-events: none; }
.empleo-form .cbx-con-bandera > input:not([type=checkbox]):not([type=file]) { padding-left: 42px; }
.empleo-form .cbx-con-bandera.sin-bandera > input:not([type=checkbox]):not([type=file]) { padding-left: 12px; }
.chip img.bandera { width: 18px; height: 18px; margin: 0 2px 0 -4px; }
.empleo-bandera-lbl { width: 18px; height: 18px; border-radius: 50%; vertical-align: -4px; margin-right: 4px; box-shadow: 0 0 0 1px rgba(14,42,71,.12); }
.empleo-form input[type=file][aria-invalid="true"] { border-color: #D14343; }
.empleo-form label:has(> .empleo-bandera-lbl) { display: flex; align-items: center; gap: 6px; }
.empleo-form label > .empleo-bandera-lbl { margin: 0; vertical-align: 0; }

/* Candidatura espontánea (sin oferta al lado): el formulario centrado, y el título alineado con él */
.empleo-grid.is-solo { justify-content: center; }
.empleo-cab.is-solo > * { max-width: 820px; margin-left: auto; margin-right: auto; }
/* Banderas rectangulares (flag-icons, 4:3) con las esquinas redondeadas (16 nov. 2026) */
.empleo-form img.bandera { width: 24px; height: 18px; border-radius: 4px; object-fit: cover; box-shadow: 0 0 0 1px rgba(14,42,71,.14); }
.cbx-con-bandera .cbx-bandera { top: 14px; }
.chip img.bandera { width: 20px; height: 15px; border-radius: 3px; margin: 0 3px 0 -3px; }
.empleo-bandera-lbl { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; }

/* Elegir la hora de la entrevista (/entrevista.php, 16 nov. 2026) */
.ent { padding: 40px 0 72px; }
.ent-caja { display: grid; justify-items: center; }
.ent-card { width: 100%; max-width: 760px; box-sizing: border-box; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 40px -28px rgba(14,42,71,.35); display: grid; gap: 14px; }
.ent-card h1 { font-size: clamp(24px, 4vw, 32px); color: var(--navy); margin: 0; }
.ent-hola { margin: 0; font-weight: 700; color: var(--teal-dark); }
.ent-sub { margin: 0; color: var(--muted); }
.ent-dias { display: grid; gap: 10px; max-height: min(60vh, 560px); overflow-y: auto; padding-right: 4px; }
.ent-dia { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px 14px; margin: 0; }
.ent-dia legend { padding: 0 6px; margin-left: -6px; font-weight: 800; color: var(--navy); }
.ent-horas { display: flex; flex-wrap: wrap; gap: 8px; }
.ent-hora { position: relative; }
.ent-hora input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ent-hora span { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; color: var(--ink); background: #fff; transition: background .12s, border-color .12s; }
.ent-hora:hover span { border-color: var(--teal); }
.ent-hora input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.ent-hora input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.ent-pie { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.ent-elegida { margin: 0; font-weight: 700; color: var(--navy); }
.ent-acc { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.ent-cita { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding: 18px 20px; border-radius: 14px; background: var(--soft); }
.ent-cita-dia { font-size: 20px; font-weight: 800; color: var(--navy); }
.ent-cita-hora { font-size: 28px; font-weight: 800; color: var(--teal-dark); }
.ent-ok { padding: 14px 18px; display: block; }
.ent-cancelar > summary { list-style: none; cursor: pointer; }
.ent-cancelar > summary::-webkit-details-marker { display: none; }
.ent-cancelar[open] { flex-basis: 100%; }
.ent-cancelar-form { display: grid; gap: 10px; margin-top: 10px; }
.ent-cancelar-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; }
.ent-vacio { margin: 0; padding: 16px; border-radius: 12px; background: var(--soft); }
@media (max-width: 560px) { .ent-card { padding: 20px 16px; } .ent-hora span { min-width: 64px; } }
.ent-nopuede { border-top: 1px solid var(--line); padding-top: 12px; }
.ent-nopuede > summary { list-style: none; cursor: pointer; width: fit-content; }
.ent-nopuede > summary::-webkit-details-marker { display: none; }
.ent-modo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 15px; line-height: 1.5; }

/* Actualización de datos personales (/datos.php, 16 nov. 2026) */
.dp { padding: 40px 0 72px; }
.dp-caja { display: grid; justify-items: center; }
.dp-form { width: 100%; max-width: 820px; box-sizing: border-box; gap: 18px; }
.dp-cab { display: grid; gap: 8px; }
.dp-cab h1 { font-size: clamp(24px, 4vw, 32px); color: var(--navy); margin: 0; }
.dp-intro { margin: 0; color: var(--ink); line-height: 1.6; }
.dp-grupo { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; min-width: 0; }
.dp-grupo legend { padding: 0 8px; margin-left: -8px; font-size: 16px; font-weight: 800; color: var(--navy); }
.dp-ayuda { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
.dp-label { font-size: 14px; font-weight: 700; }
.dp-fecha { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 8px; }
.dp-si-no { display: flex; gap: 8px; }
.dp-si-no label { position: relative; }
.dp-si-no input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dp-si-no span { display: inline-flex; align-items: center; justify-content: center; min-width: 84px; height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; font-weight: 700; background: #fff; cursor: pointer; }
.dp-si-no input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.dp-si-no input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.dp-cantidad { max-width: 180px; }
.dp-hijos { display: grid; gap: 10px; }
.dp-hijo { padding: 12px 14px; border-radius: 12px; background: var(--soft); display: grid; gap: 10px; }
.dp-hijo-n { margin: 0; font-weight: 800; color: var(--navy); font-size: 14px; }
.dp-declara { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--soft); font-size: 14px; line-height: 1.5; cursor: pointer; }
.dp-declara input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--teal); flex: none; }
.dp-enviar { justify-self: start; min-width: 220px; }
@media (max-width: 560px) { .dp-grupo { padding: 14px 12px; } .dp-fecha { grid-template-columns: 1fr 1fr 1fr; } }

/* Carta de oferta del candidato: leerla y aceptarla (/carta-oferta.php, 109) */
.co-pub { padding: 40px 0 72px; }
.co-pub-caja { display: grid; justify-items: center; }
.co-pub-card { max-width: 860px; }
.co-pub-pdf { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--soft); }
.co-pub-pdf iframe { display: block; width: 100%; height: min(72vh, 900px); border: 0; }
.co-pub-acepto { display: grid; gap: 12px; }
.co-pub-acepto .btn { justify-self: start; min-width: 220px; }
.co-pub-acepto .btn:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 640px) { .co-pub-pdf iframe { height: 60vh; } }

/* ---- 113 · Referencias laborales en el enlace de la entrevista ---- */
.ref-cand { display: grid; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.ref-cand h2 { margin: 0; font-size: 20px; }
.ref-bloque { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px 6px; margin: 0; min-width: 0; }
.ref-bloque legend { padding: 0 6px; font-weight: 800; font-size: 15px; }
.ref-sub { margin: 4px 0 6px; font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.ref-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.ref-grid .ref-ancho { grid-column: 1 / -1; }
.ref-cand [data-ref-mas] { justify-self: start; }
@media (max-width: 560px) { .ref-grid { grid-template-columns: 1fr; } }

/* Revisión de usabilidad del candidato (17 nov. 2026, docs/revision-usabilidad-incorporacion.md § 2.1–2.3) */
/* S1: resumen de lo que hay que revisar, arriba del formulario */
.empleo-resumen { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid #FECDCA; border-radius: 12px; background: #FEF3F2; color: #B42318; font-size: 14px; }
.empleo-resumen[hidden] { display: none; }
.empleo-resumen:focus { outline: 2px solid #FDA29B; outline-offset: 2px; }
.empleo-resumen ul { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.empleo-resumen a { color: #B42318; font-weight: 700; }
.empleo-resumen p { margin: 0; color: var(--ink); }
.empleo-readjuntar { margin: 0; font-size: 13px; font-weight: 700; color: var(--teal-dark); }
/* S4: explicación bajo la etiqueta (no es «opcional») */
.empleo-ayuda { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--muted); }
/* S6: «¿Quisiste decir…?» con dos botones */
.empleo-mail-sug { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.empleo-mail-sug .btn { font-size: 14px; padding: 8px 14px; }
.empleo-mail-ok { display: flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 500 !important; }
.empleo-mail-ok input { width: 18px; height: 18px; accent-color: var(--teal); }
/* S7: mientras se prepara la foto */
.foto-nota { margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
/* S8: oferta cerrada */
.empleo-cerrada { margin: 0 0 18px; padding: 12px 16px; border-radius: 12px; background: var(--soft); color: var(--ink); }
/* S2: borrador recuperado */
.borrador-aviso { margin: 0; font-size: 13px; color: var(--muted); }
.borrador-limpiar { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--teal-dark); text-decoration: underline; cursor: pointer; }
/* E8: enlace caducado, con WhatsApp */
.btn-wa { display: inline-flex; align-items: center; gap: 8px; background: #25D366; color: var(--navy); }   /* texto oscuro: el blanco sobre este verde apenas se lee */
.btn-wa:hover { background: #1EBE5A; }
.btn-wa svg { flex: none; }
.enlace-caducado-tel { margin: 0; font-size: 14px; }
/* E6: «No puedo ir» ofrece otra hora antes de cancelar */
.ent-cancelar-paso { display: grid; gap: 10px; margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; }
.ent-cancelar-paso p { margin: 0; }
.ent-cancelar-seguro > summary { list-style: none; cursor: pointer; width: fit-content; }
.ent-cancelar-seguro > summary::-webkit-details-marker { display: none; }
/* C2: datos personales en tres pasos con barra de avance */
.dp-avance { display: grid; gap: 10px; }
.dp-avance[hidden] { display: none; }
.dp-avance-txt { margin: 0; font-size: 14px; color: var(--muted); }
.dp-avance-txt strong { color: var(--navy); }
.dp-avance-pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-avance-pasos li { display: flex; align-items: center; gap: 8px; padding-top: 8px; border-top: 4px solid var(--line); font-size: 13px; font-weight: 700; color: var(--muted); }
.dp-avance-pasos li.hecho, .dp-avance-pasos li.actual { border-top-color: var(--teal); }
.dp-avance-pasos li.actual { color: var(--navy); }
.dp-avance-num { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); flex: none; }
.dp-avance-pasos li.hecho .dp-avance-num, .dp-avance-pasos li.actual .dp-avance-num { background: var(--teal); color: #fff; }
.dp-paso { display: grid; gap: 18px; min-width: 0; }
.dp-paso-oculto { display: none; }
.dp-paso-tit { margin: 6px 0 0; font-size: 20px; color: var(--navy); }
.dp-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.dp-nav[hidden], .dp-nav [hidden] { display: none; }
.dp-nav .btn-primary { margin-left: auto; min-width: 220px; }
.dp-nav-fin .dp-enviar { justify-self: auto; }
@media (max-width: 560px) { .dp-avance-nom { font-size: 12px; } .dp-nav .btn { flex: 1 1 100%; } .dp-nav .btn-primary { margin-left: 0; } }
/* C4: cuándo y dónde empieza */
.dp-llegada { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); }
/* C3: carta de oferta en el móvil (botón en lugar del PDF incrustado) y resumen */
.co-pub-ver { display: none; }
.co-pub-resumen { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.co-pub-resumen > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.co-pub-resumen dt { font-weight: 700; color: var(--muted); font-size: 14px; }
.co-pub-resumen dd { margin: 0; font-weight: 700; color: var(--navy); }
@media (max-width: 640px) {
  .co-pub-ver { display: flex; justify-content: center; width: 100%; padding: 16px 20px; font-size: 17px; box-sizing: border-box; }
  .co-pub-pdf, .co-pub-abrir { display: none; }
  .co-pub-resumen > div { grid-template-columns: 1fr; gap: 2px; }
}
/* Botones con texto largo («Enviar una solicitud nueva (la anterior se queda)», «Siguiente: Contactos de emergencia»): que quepan en el móvil */
.empleo-form > .btn, .dp-nav .btn, .ent-cancelar-paso .btn { white-space: normal; text-align: center; line-height: 1.3; }

/* Datos personales: cómo sacar el certificado de no antecedentes (17 nov. 2026) */
.dp-antec { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #F4F7FA; border: 1px solid #E3E8EE; font-size: 14px; line-height: 1.55; }
.dp-antec p { margin: 0 0 8px; }
.dp-antec p:last-child { margin-bottom: 0; }
.dp-antec-tit { font-weight: 700; color: var(--navy, #0E2A47); }
.dp-antec-ext summary { cursor: pointer; font-weight: 600; color: var(--navy, #0E2A47); margin-top: 4px; }
.dp-antec-ext[open] summary { margin-bottom: 8px; }
