/* AB Querétaro · Servicios complementarios + sello ISO
   Cargar DESPUÉS de styles.css. Usa las variables, botones y enlaces del sitio. */

/* ===================== SERVICIOS COMPLEMENTARIOS (sección a todo el ancho) ===================== */
.comp-section{background:#fff;color:var(--ink)}
.comp-section .section-heading{margin-bottom:48px}
.comp-section .eyebrow{color:var(--ink)}
.comp-section h3,.comp-section h4{margin:0;font-family:var(--heading);font-weight:700;line-height:1;text-transform:uppercase}

/* --- Destacado: Sorting and Reworks --- */
.comp-feat{
  display:grid;grid-template-columns:1fr 1fr;overflow:hidden;
  background:var(--bright);color:var(--forest);min-height:380px;margin-bottom:24px;
}
.comp-feat-body{padding:clamp(28px,4vw,56px);display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:14px}
.comp-tag{background:var(--forest);color:var(--yellow);font:600 11px/1.4 var(--body);letter-spacing:.12em;text-transform:uppercase;padding:7px 12px}
.comp-feat h3{font-size:clamp(46px,5.4vw,78px);line-height:.93;letter-spacing:-.01em}
.comp-feat-es{font:700 26px/1.1 var(--heading);color:#0b3a22}
.comp-feat-desc{font-size:14px;line-height:1.75;max-width:440px;color:#0b2a1a}
.comp-feat-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 26px;margin-top:8px}
.comp-feat-link{font:600 12px/1.6 var(--body);padding:10px 0 6px;color:var(--forest);border-bottom:1px solid currentColor}
.comp-feat-link:hover{opacity:.7}
.comp-feat-art{position:relative;background:var(--forest);clip-path:polygon(14% 0,100% 0,100% 100%,0 100%)}
.comp-feat-art img{width:100%;height:100%;object-fit:cover;object-position:75% 50%}
.comp-feat-art::after{ /* línea diagonal amarilla, eco del hero */
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.9;
  background:linear-gradient(to top right,transparent calc(50% - 1px),var(--yellow) calc(50% - 1px),var(--yellow) calc(50% + 1px),transparent calc(50% + 1px));
}

/* --- Cuadrícula 3 + 2 --- */
.comp-grid{display:grid;grid-template-columns:repeat(6,1fr);gap:24px;list-style:none;margin:0;padding:0}
.comp-card{
  grid-column:span 2;display:flex;flex-direction:column;overflow:hidden;
  background:var(--paper);border:1px solid var(--line);border-top:3px solid var(--green);
}
.comp-card:nth-child(n+4){grid-column:span 3;flex-direction:row}
.comp-media{margin:0;background:var(--forest);aspect-ratio:16/10;overflow:hidden}
.comp-media img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.comp-card:hover .comp-media img{transform:scale(1.04)}
.comp-card:nth-child(n+4) .comp-media{flex:0 0 42%;aspect-ratio:auto}
.comp-card-body{display:flex;flex-direction:column;gap:10px;padding:24px 26px 26px;flex:1}
.comp-card h3{font-size:30px;line-height:1.05;color:var(--ink)}
.comp-en{font-size:11px;color:var(--muted);letter-spacing:.04em;margin-top:-4px}
.comp-desc{flex:1;font-size:13px;line-height:1.75;color:#46574b}
.comp-actions{display:flex;flex-wrap:wrap;gap:4px 24px;align-items:center;margin-top:8px}
.comp-actions .text-link{gap:20px;padding:8px 0 6px;font-size:12px}
.comp-link{font:400 12px/1.6 var(--body);color:var(--muted);padding:8px 0 6px;border-bottom:1px solid transparent}
.comp-link:hover{color:var(--green);border-color:var(--green)}

@media (prefers-reduced-motion:reduce){.comp-media img{transition:none}.comp-card:hover .comp-media img{transform:none}}

@media (max-width:980px){
  .comp-feat{grid-template-columns:1fr}
  .comp-feat-art{aspect-ratio:16/9;clip-path:polygon(0 12%,100% 0,100% 100%,0 100%)}
  .comp-grid{grid-template-columns:repeat(2,1fr)}
  .comp-card,.comp-card:nth-child(n+4){grid-column:auto;flex-direction:column}
  .comp-card:nth-child(n+4) .comp-media{flex:none;aspect-ratio:16/10}
  .comp-card:last-child{grid-column:1 / -1}
}
@media (max-width:720px){
  .comp-section h2{font-size:clamp(26px,7.2vw,40px);overflow-wrap:anywhere}
}
@media (max-width:620px){
  .comp-grid{grid-template-columns:1fr}
  .comp-card:last-child{grid-column:auto}
  .comp-feat .button{width:100%;justify-content:space-between}
}

/* ===================== DETALLE DE SERVICIO (imagen) ===================== */
.detail-figure{margin:0 0 22px;background:var(--forest)}
.detail-figure img{width:100%;height:auto;aspect-ratio:16/10;object-fit:cover}

/* ===================== SELLO ISO ===================== */
.hero-iso{
  position:absolute;z-index:3;right:clamp(28px,7vw,110px);bottom:132px;
  width:clamp(96px,9.5vw,132px);line-height:0;pointer-events:none;
}
.hero-iso img{width:100%;height:auto;filter:drop-shadow(0 8px 18px rgba(0,0,0,.45))}
@media (max-width:720px){
  .hero-iso{right:18px;bottom:112px;width:78px}
}
.fact-iso{align-self:flex-start;width:auto;height:clamp(80px,6.5vw,93px);margin:0}
