/*
Theme Name: Jhamilon
Theme URI: https://constructorajhamilon.cl
Author: FlowCode AI
Description: Constructora Jhamilon SpA — tema a medida (piscinas de fibra de vidrio, cercos perimetrales, montaje fotovoltaico, obras civiles, hormigón pulido).
Version: 1.0.0
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 8.0
Text Domain: jhamilon-theme
*/

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

.screen-reader-text{ border:0; clip:rect(1px,1px,1px,1px); clip-path:inset(50%); height:1px; margin:-1px; overflow:hidden; padding:0; position:absolute !important; width:1px; word-wrap:normal !important; }

html{ overflow-x:hidden; }
body{ overflow-x:hidden; max-width:100vw; }
img, video{ max-width:100%; height:auto; }
table{ max-width:100%; }

/* ---------- Topbar ---------- */
.jh-topbar{ background:#071527; color:#fff; }
.jh-topbar__inner{
  max-width:1280px; margin:0 auto; padding:0.5rem 1.25rem;
  display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap;
}
.jh-topbar__item{ display:inline-flex; align-items:center; gap:0.4rem; font-size:0.8rem; white-space:nowrap; color:#E0B958; }
.jh-topbar__item svg{ flex-shrink:0; }

/* ---------- Header / navegación ---------- */
.jh-header{ position:sticky; top:0; z-index:50; background:#fff; }
.jh-header .wp-block-navigation{ font-size:0.96rem; }
.jh-logo-mark{ display:flex; align-items:center; text-decoration:none !important; gap:0.6rem; }
.jh-logo-mark img{ height:44px; width:auto; display:block; }
.jh-logo-mark__text{ display:flex; flex-direction:column; line-height:1.15; }
.jh-logo-mark__text strong{ font-family:var(--wp--preset--font-family--heading); font-weight:700; font-size:0.98rem; color:#0B1F3A; }
.jh-logo-mark__text em{ font-style:normal; font-size:0.72rem; color:#C79A3E; font-weight:600; letter-spacing:0.03em; }
footer .jh-logo-mark img{ height:40px; }
@media (max-width:480px){
  .jh-logo-mark img{ height:38px; }
  .jh-logo-mark__text strong{ font-size:0.82rem; }
  .jh-logo-mark__text em{ display:none; }
}

/* Menú hamburguesa: colapsa entre 980 y 1080px (si no, el header desborda en tablet) */
@media (min-width:600px) and (max-width:1079.98px){
  .jh-header .wp-block-navigation__responsive-container-open:not(.always-shown){ display:flex !important; }
  .jh-header .wp-block-navigation__responsive-container:not(.is-menu-open){ display:none !important; }
}

/* Menú desktop entre 1080 y ~1220px: "Catálogo de piscinas" alarga el nav y lo hace pasar a
   2 filas (retouch 2026-10-05, medido a 1114px). Achicar gap/tipografía, no el breakpoint. */
@media (min-width:1080px) and (max-width:1220.98px){
  .jh-header .wp-block-navigation{ font-size:0.82rem; gap:1rem; }
  .jh-header .jh-btn--wa{ padding:0.55rem 0.85rem; font-size:0.78rem; }
  .jh-header .jh-logo-mark__text em{ display:none; }
}

/* ---------- WhatsApp flotante ---------- */
.jh-wa{ position:fixed; right:20px; bottom:20px; width:58px; height:58px; border-radius:50%; background:#25D366; display:flex; align-items:center; justify-content:center; box-shadow:0 6px 20px rgba(0,0,0,0.28); z-index:1000; }
.jh-wa svg{ width:30px; height:30px; fill:#fff; }
.jh-wa:hover{ transform:scale(1.06); }
@media (max-width:600px){
  .jh-wa{ right:14px; bottom:14px; width:52px; height:52px; }
}

/* ---------- Botones ---------- */
.jh-btn{ display:inline-flex; align-items:center; gap:0.5rem; justify-content:center; padding:0.85rem 1.7rem; border-radius:8px; font-weight:700; text-decoration:none !important; font-size:0.96rem; line-height:1.2; }
.jh-btn--solid{ background:#C79A3E; color:#0B1F3A; }
.jh-btn--solid:hover{ background:#E0B958; color:#0B1F3A; }
.jh-btn--outline{ background:transparent; color:#fff; border:2px solid rgba(255,255,255,0.85); }
.jh-btn--outline:hover{ background:rgba(255,255,255,0.15); color:#fff; }
.jh-btn--wa{ background:#25D366; color:#fff; }
.jh-btn--wa:hover{ background:#1EBE5A; color:#fff; }
.jh-btn--navy{ background:#0B1F3A; color:#fff; }
.jh-btn--navy:hover{ background:#13315C; color:#fff; }

/* ---------- Hero ---------- */
.jh-hero{ position:relative; overflow:hidden; background:#0B1F3A; }
.jh-hero__bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:0.55; }
.jh-hero__scrim{ position:absolute; inset:0; background:linear-gradient(115deg,rgba(7,21,39,0.96) 20%,rgba(11,31,58,0.82) 55%,rgba(19,49,92,0.55) 100%); }
.jh-hero__inner{ position:relative; max-width:1280px; margin:0 auto; padding:clamp(3rem,8vw,6rem) clamp(1.25rem,4vw,2rem); }
.jh-hero__eyebrow{
  display:inline-flex; align-items:center; gap:0.4rem; margin-bottom:1.1rem; padding:0.4rem 0.9rem; border-radius:999px;
  background:rgba(199,154,62,0.18); border:1px solid #C79A3E;
  color:#E0B958; font-size:0.78rem; font-weight:700; letter-spacing:0.08em; text-transform:uppercase;
}
.jh-hero__title{
  font-family:var(--wp--preset--font-family--heading); font-weight:700; color:#fff;
  font-size:clamp(2rem,4.6vw,3.4rem); line-height:1.14; margin:0 0 1rem; max-width:20ch;
}
@media (max-width:480px){
  .jh-hero__title{ font-size:clamp(1.6rem,7vw,2.2rem); }
}
.jh-hero__lead{ font-size:clamp(1rem,1.4vw,1.15rem); color:#DCE2ED; max-width:52ch; margin:0 0 1.75rem; }
.jh-hero__ctas{ display:flex; gap:0.9rem; flex-wrap:wrap; margin-bottom:1rem; }
.jh-hero__other{ color:#AEB6C0; font-size:0.88rem; margin:0 0 1.75rem; }
.jh-hero__micro{ display:flex; flex-wrap:wrap; gap:1rem 1.75rem; }
.jh-hero__micro-item{ display:inline-flex; align-items:center; gap:0.55rem; }
.jh-hero__micro-item svg{ flex-shrink:0; }
.jh-hero__micro-text{ display:flex; flex-direction:column; line-height:1.3; }
.jh-hero__micro-text strong{ color:#fff; font-size:0.85rem; font-weight:700; }
.jh-hero__micro-text em{ color:#AEB6C0; font-style:normal; font-size:0.75rem; }

/* ---------- Servicios ---------- */
.jh-services{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; max-width:1280px; margin:0 auto; padding:0 clamp(1rem,4vw,2rem); }
.jh-service-card{
  display:flex; flex-direction:column; gap:0.9rem; padding:1.9rem 1.6rem; border-radius:14px;
  background:#fff; border:1px solid #E2E5EA; transition:box-shadow .2s,transform .2s,border-color .2s;
}
.jh-service-card:hover{ box-shadow:0 14px 30px rgba(11,31,58,0.12); transform:translateY(-3px); border-color:#C79A3E; }
.jh-service-card__icon{ display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:10px; background:#0B1F3A; flex-shrink:0; }
.jh-service-card__icon svg{ width:26px; height:26px; }
.jh-service-card h3{ font-size:1.08rem; margin:0; font-family:var(--wp--preset--font-family--heading); }
.jh-service-card p{ margin:0; color:#525C68; font-size:0.93rem; line-height:1.6; }
.jh-service-card__price{ margin-top:auto; padding-top:0.6rem; font-weight:700; color:#0B1F3A; font-size:0.88rem; border-top:1px dashed #E2E5EA; }
.jh-service-card__cta{ margin-top:auto; padding-top:0.6rem; display:flex; flex-wrap:wrap; gap:0.5rem; border-top:1px dashed #E2E5EA; }
.jh-service-card__cta .jh-btn{ padding:0.5rem 0.9rem; font-size:0.82rem; }
@media (max-width:900px){ .jh-services{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:600px){ .jh-services{ grid-template-columns:1fr; } }

/* ---------- Pilares (calidad/confianza/compromiso/experiencia) ---------- */
.jh-pillars{ display:grid; grid-template-columns:repeat(4,1fr); gap:1.25rem; max-width:1280px; margin:0 auto; padding:0 clamp(1rem,4vw,2rem); }
.jh-pillar{ text-align:center; padding:1.9rem 1rem; border-radius:14px; background:#F4F5F7; }
.jh-pillar__icon{ display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:50%; background:#fff; margin-bottom:1rem; box-shadow:0 2px 8px rgba(11,31,58,0.08); }
.jh-pillar__icon svg{ width:26px; height:26px; }
.jh-pillar h3{ font-size:1.02rem; margin:0 0 0.25rem; font-family:var(--wp--preset--font-family--heading); }
.jh-pillar p{ margin:0; color:#525C68; font-size:0.88rem; }
@media (max-width:900px){ .jh-pillars{ grid-template-columns:repeat(2,1fr); row-gap:1.5rem; } }
@media (max-width:480px){ .jh-pillars{ grid-template-columns:1fr; } }

/* ---------- Galería / portafolio ---------- */
.jh-gallery-filter{ display:flex; flex-wrap:wrap; gap:0.6rem; margin:0 0 2rem; }
.jh-gallery-filter__pill{
  display:inline-flex; align-items:center; padding:0.55rem 1.1rem; border-radius:999px;
  border:1px solid #E2E5EA; color:#0B1F3A; text-decoration:none !important; font-weight:600; font-size:0.9rem;
  transition:background .15s,color .15s,border-color .15s;
}
.jh-gallery-filter__pill:hover{ border-color:#C79A3E; color:#0B1F3A; }
.jh-gallery-filter__pill.is-active{ background:#0B1F3A; border-color:#0B1F3A; color:#fff; }

.jh-gallery-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.jh-gallery-card{ display:block; border-radius:14px; overflow:hidden; background:#fff; border:1px solid #E2E5EA; text-decoration:none !important; color:inherit; transition:box-shadow .2s,transform .2s; }
.jh-gallery-card:hover{ box-shadow:0 14px 30px rgba(11,31,58,0.14); transform:translateY(-3px); }
.jh-gallery-card__media{ aspect-ratio:4/3; overflow:hidden; background:#F4F5F7; }
.jh-gallery-card__media img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s; }
.jh-gallery-card:hover .jh-gallery-card__media img{ transform:scale(1.05); }
.jh-gallery-card__body{ padding:1.1rem 1.2rem 1.3rem; }
.jh-gallery-card__cat{ display:inline-block; font-size:0.74rem; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:#C79A3E; margin-bottom:0.4rem; }
.jh-gallery-card h3{ font-family:var(--wp--preset--font-family--heading); font-size:1rem; margin:0; color:#0B1F3A; }
@media (max-width:900px){ .jh-gallery-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .jh-gallery-grid{ grid-template-columns:1fr; } }

.jh-single-proyecto{ max-width:900px; margin:0 auto; padding:2rem clamp(1rem,4vw,2rem) 4rem; }
.jh-single-proyecto__media{ border-radius:16px; overflow:hidden; margin-bottom:1.75rem; }
/* El bloque post-featured-image trae width:900px inline (fijo); sin este override, en viewports
   angostos el overflow:hidden del contenedor recorta la imagen en vez de achicarla (ej. una foto
   vertical queda con 2/3 cortados). */
.jh-single-proyecto__media figure{ width:100% !important; max-width:900px; }
.jh-single-proyecto__media img{ width:100%; display:block; }
.jh-single-proyecto__cat{ display:inline-block; font-size:0.78rem; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:#C79A3E; margin-bottom:0.5rem; }
.jh-single-proyecto .entry-content{ font-size:1.02rem; line-height:1.75; color:#2A323C; }
.jh-back-link{ display:inline-flex; align-items:center; gap:0.4rem; margin-bottom:1.5rem; color:#0B1F3A; font-weight:600; text-decoration:none !important; }
.jh-back-link:hover{ color:#C79A3E; }

/* ---------- Galería de fotos + videos en la ficha de proyecto ---------- */
.jh-project-gallery{ display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin:0 0 2rem; }
.jh-project-gallery img{ width:100%; height:100%; aspect-ratio:4/3; object-fit:cover; border-radius:10px; display:block; }
@media (max-width:700px){ .jh-project-gallery{ grid-template-columns:1fr; } }

/* Variante sin recorte: fotos verticales completas, alto natural (nunca cover) */
.jh-project-gallery--full{ display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:1rem; margin:0 0 2rem; align-items:start; }
.jh-project-gallery--full img{ width:100%; height:auto; display:block; border-radius:10px; background:#F4F5F7; }
@media (max-width:700px){ .jh-project-gallery--full{ grid-template-columns:1fr; max-width:360px; margin-left:auto; margin-right:auto; } }

.jh-project-videos{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.25rem; margin:0 0 2.5rem; }
.jh-project-video{ width:100%; max-width:360px; margin:0 auto; aspect-ratio:9/16; background:#000; border-radius:12px; overflow:hidden; }
.jh-project-video video{ width:100%; height:100%; display:block; object-fit:contain; background:#000; }
@media (max-width:760px){ .jh-project-videos{ grid-template-columns:1fr; } }

/* Variante compacta: 2 videos lado a lado, ancho máx ~300px cada uno */
.jh-project-videos--sm{ grid-template-columns:repeat(2,1fr); max-width:620px; margin-left:auto; margin-right:auto; }
.jh-project-videos--sm .jh-project-video{ max-width:300px; }
@media (max-width:420px){ .jh-project-videos--sm{ grid-template-columns:1fr; } }

/* 2 videos chicos dentro de una tarjeta de servicio (sin grid fijo: reflow libre, lado a lado o apilados) */
.jh-service-card__videos{ display:flex; flex-wrap:wrap; gap:0.6rem; margin:0.2rem 0; }
.jh-service-card__videos .jh-project-video{ width:150px; max-width:150px; flex:0 1 150px; margin:0; }

/* ---------- Casos de éxito ---------- */
.jh-cases{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.75rem; }
.jh-case-card{ display:grid; grid-template-columns:44%; border-radius:16px; overflow:hidden; background:#fff; border:1px solid #E2E5EA; }
.jh-case-card__media{ aspect-ratio:4/3; overflow:hidden; }
.jh-case-card__media img{ width:100%; height:100%; object-fit:cover; display:block; }
.jh-case-card--video .jh-case-card__media{ background:#0B1F3A; }
.jh-case-card--video .jh-case-card__media video{ width:100%; height:100%; object-fit:contain; display:block; background:#000; }
.jh-case-card__body{ padding:1.5rem 1.6rem; }
.jh-case-card__cat{ display:inline-block; font-size:0.74rem; font-weight:700; letter-spacing:0.05em; text-transform:uppercase; color:#C79A3E; margin-bottom:0.5rem; }
.jh-case-card h3{ font-family:var(--wp--preset--font-family--heading); font-size:1.15rem; margin:0 0 0.6rem; color:#0B1F3A; }
.jh-case-card p{ margin:0; color:#525C68; font-size:0.94rem; line-height:1.6; }
@media (max-width:780px){
  .jh-cases{ grid-template-columns:1fr; }
  .jh-case-card{ grid-template-columns:1fr; }
}

/* ---------- Catálogo / cotización ---------- */
.jh-catalog-card{ display:grid; grid-template-columns:1fr 1fr; gap:0; border-radius:18px; overflow:hidden; background:#fff; border:1px solid #E2E5EA; box-shadow:0 20px 45px rgba(11,31,58,0.1); }
.jh-catalog-card__specs{ padding:clamp(1.75rem,4vw,2.75rem); }
.jh-catalog-card__specs h3{ font-family:var(--wp--preset--font-family--heading); font-size:1.5rem; margin:0 0 0.4rem; color:#0B1F3A; }
.jh-catalog-card__tag{ display:inline-block; background:#F4F5F7; color:#0B1F3A; font-weight:700; font-size:0.78rem; letter-spacing:0.04em; text-transform:uppercase; padding:0.3rem 0.7rem; border-radius:999px; margin-bottom:1rem; }
.jh-catalog-card__price{ font-family:var(--wp--preset--font-family--heading); font-size:2.4rem; font-weight:700; color:#0B1F3A; margin:0.75rem 0 0.1rem; }
.jh-catalog-card__price small{ font-size:0.95rem; font-weight:600; color:#525C68; }
.jh-catalog-card__specs-list{ list-style:none; margin:1.5rem 0; padding:0; display:grid; gap:0.55rem; }
.jh-catalog-card__specs-list li{ display:flex; gap:0.6rem; font-size:0.94rem; color:#2A323C; }
.jh-catalog-card__specs-list strong{ color:#0B1F3A; min-width:120px; }
.jh-catalog-card__includes{ background:#F4F5F7; border-radius:12px; padding:1.25rem 1.4rem; margin:1.25rem 0; }
.jh-catalog-card__includes strong{ display:block; margin-bottom:0.5rem; color:#0B1F3A; font-size:0.92rem; }
.jh-catalog-card__includes ul{ margin:0; padding-left:1.1rem; color:#525C68; font-size:0.9rem; line-height:1.7; }
.jh-catalog-card__ctas{ display:flex; gap:0.75rem; flex-wrap:wrap; margin-top:1.5rem; }
.jh-catalog-card__note{ margin-top:1rem; font-size:0.82rem; color:#8A6D4B; background:#FBF3E4; border:1px solid #E9D6A8; border-radius:8px; padding:0.6rem 0.9rem; }
.jh-catalog-card__media{ position:relative; background:#0B1F3A; display:flex; align-items:center; justify-content:center; min-height:320px; padding:2rem; }
.jh-catalog-card__media img{ max-width:100%; border-radius:12px; }
.jh-catalog-alt{ margin-top:2.5rem; padding:1.5rem 1.75rem; border-radius:14px; background:#F4F5F7; display:flex; gap:1.5rem; align-items:center; flex-wrap:wrap; }
.jh-catalog-alt img{ width:140px; height:105px; object-fit:cover; border-radius:10px; flex-shrink:0; }
.jh-catalog-alt__body strong{ display:block; color:#0B1F3A; margin-bottom:0.3rem; }
.jh-catalog-alt__body p{ margin:0; color:#525C68; font-size:0.9rem; }
@media (max-width:780px){
  .jh-catalog-card{ grid-template-columns:1fr; }
  .jh-catalog-card__media{ order:-1; }
}

/* ---------- Catálogo de piscinas (retouch 2026-10-05) ---------- */
.jh-pool-gift{ display:flex; gap:1.75rem; align-items:flex-start; flex-wrap:wrap; background:#F4F5F7; border-radius:16px; padding:1.75rem 2rem; margin-bottom:2.5rem; }
.jh-pool-gift__images{ display:flex; gap:0.75rem; flex-shrink:0; }
.jh-pool-gift__images img{ width:140px; height:105px; object-fit:cover; border-radius:10px; }
.jh-pool-gift__body{ flex:1; min-width:240px; }
.jh-pool-gift__body > strong{ display:block; font-family:var(--wp--preset--font-family--heading); font-size:1.1rem; color:#0B1F3A; margin-bottom:0.25rem; }
.jh-pool-gift__body > p{ margin:0 0 0.9rem; color:#525C68; font-size:0.95rem; }
.jh-pool-gift__includes{ background:#fff; border-radius:12px; padding:1.1rem 1.3rem; margin-bottom:1rem; border:1px solid #E2E5EA; }
.jh-pool-gift__includes strong{ display:block; margin-bottom:0.5rem; color:#0B1F3A; font-size:0.9rem; }
.jh-pool-gift__includes ul{ margin:0; padding-left:1.1rem; columns:2; color:#525C68; font-size:0.88rem; line-height:1.7; }
.jh-pool-gift__badges{ display:flex; flex-wrap:wrap; gap:0.6rem; margin-bottom:0.75rem; }
.jh-pool-gift__badges span{ background:#0B1F3A; color:#fff; font-weight:700; font-size:0.78rem; padding:0.35rem 0.8rem; border-radius:999px; }
.jh-pool-gift__coverage{ margin:0; color:#525C68; font-size:0.88rem; }
.jh-pool-gift__coverage strong{ color:#0B1F3A; }
.jh-pool-gift--compact{ padding:1.4rem 1.6rem; margin-bottom:2rem; }
.jh-pool-gift--compact .jh-pool-gift__includes{ display:none; }
@media (max-width:600px){ .jh-pool-gift{ flex-direction:column; } .jh-pool-gift__includes ul{ columns:1; } }

.jh-pool-jump{ display:flex; flex-wrap:wrap; gap:0.75rem; justify-content:center; margin:0 0 2.5rem; }
.jh-pool-jump a{ padding:0.55rem 1.1rem; border-radius:999px; border:1px solid #E2E5EA; color:#0B1F3A; font-weight:600; font-size:0.88rem; text-decoration:none !important; transition:border-color .15s,color .15s; }
.jh-pool-jump a:hover{ border-color:#C79A3E; }

.jh-pool-group-heading{ font-family:var(--wp--preset--font-family--heading); font-size:1.4rem; color:#0B1F3A; margin:3rem 0 1.25rem; }
.jh-pool-group-heading:first-of-type{ margin-top:0; }

.jh-pool-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }
.jh-pool-card{ display:flex; flex-direction:column; border-radius:14px; overflow:hidden; background:#fff; border:1px solid #E2E5EA; color:inherit; transition:box-shadow .2s,transform .2s; }
.jh-pool-card:hover{ box-shadow:0 14px 30px rgba(11,31,58,0.14); transform:translateY(-3px); }
button.jh-pool-card__media{ appearance:none; -webkit-appearance:none; border:0; margin:0; padding:0; font:inherit; width:100%; }
.jh-pool-card__media{ aspect-ratio:4/3; background:#F4F5F7; display:flex; align-items:center; justify-content:center; overflow:hidden; cursor:zoom-in; }
.jh-pool-card__media img{ width:100%; height:100%; object-fit:contain; display:block; pointer-events:none; }
.jh-pool-card__media:focus-visible{ outline:3px solid #C79A3E; outline-offset:-3px; }
.jh-pool-card__body{ display:flex; flex-direction:column; gap:0.5rem; padding:1.1rem 1.2rem 1.3rem; flex:1; }
.jh-pool-card h4{ font-family:var(--wp--preset--font-family--heading); font-size:1rem; margin:0; color:#0B1F3A; }
.jh-pool-card__specs{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:0.2rem; color:#525C68; font-size:0.85rem; }
.jh-pool-card__cta{ margin-top:auto; padding-top:0.7rem; display:inline-flex; align-items:center; justify-content:center; gap:0.4rem; background:#25D366; color:#fff; font-weight:700; font-size:0.86rem; padding:0.6rem 0.9rem; border-radius:8px; text-decoration:none !important; }
.jh-pool-card__cta:hover{ background:#1EBE5A; }
@media (max-width:900px){ .jh-pool-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .jh-pool-grid{ grid-template-columns:1fr; } }

/* ---------- Popup (lightbox) de foto de piscina ---------- */
dialog.jh-pool-lightbox{ position:relative; border:0; border-radius:12px; padding:0; max-width:92vw; max-height:92vh; background:#0B1F3A; }
dialog.jh-pool-lightbox::backdrop{ background:rgba(7,21,39,0.85); }
dialog.jh-pool-lightbox[open]{ display:flex; align-items:center; justify-content:center; }
.jh-pool-lightbox__img{ display:block; max-width:92vw; max-height:88vh; width:auto; height:auto; margin:0 auto; }
.jh-pool-lightbox__close{ position:absolute; top:0.4rem; right:0.6rem; background:transparent; border:0; color:#fff; font-size:2rem; line-height:1; cursor:pointer; z-index:2; padding:0.3rem 0.6rem; }
.jh-pool-lightbox__prev, .jh-pool-lightbox__next{ position:absolute; top:50%; transform:translateY(-50%); background:rgba(255,255,255,0.18); border:0; color:#fff; font-size:1.8rem; line-height:1; width:44px; height:44px; border-radius:50%; cursor:pointer; z-index:2; }
.jh-pool-lightbox__prev{ left:0.5rem; }
.jh-pool-lightbox__next{ right:0.5rem; }
.jh-pool-lightbox__prev:hover, .jh-pool-lightbox__next:hover, .jh-pool-lightbox__close:hover{ background:rgba(255,255,255,0.3); }
@media (max-width:600px){
  dialog.jh-pool-lightbox{ max-width:100vw; max-height:100vh; width:100vw; height:100vh; border-radius:0; }
  .jh-pool-lightbox__img{ max-width:100vw; max-height:82vh; }
}

/* ---------- Contacto ---------- */
.jh-contact-info{ display:grid; grid-template-columns:repeat(2,1fr); gap:1.25rem; }
.jh-contact-info__item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap:0.7rem; padding:1.6rem 1rem; border:1px solid #E2E5EA; border-radius:14px; }
.jh-contact-info__icon{ display:inline-flex; align-items:center; justify-content:center; width:50px; height:50px; border-radius:50%; background:#F4F5F7; }
.jh-contact-info__icon svg{ width:24px; height:24px; }
.jh-contact-info__item strong{ font-size:0.95rem; color:#0B1F3A; }
.jh-contact-info__item a, .jh-contact-info__item span{ color:#525C68; font-size:0.9rem; text-decoration:none; }
.jh-contact-info__item a:hover{ color:#C79A3E; }

.jh-contact-form{
  display:flex; flex-direction:column; gap:1rem; margin-top:0;
  background:#F4F5F7; border-radius:16px; padding:clamp(1.5rem,4vw,2.25rem);
}
.jh-contact-form .jh-honeypot{ position:absolute; left:-9999px; }
.jh-contact-form__row{ display:grid; grid-template-columns:1fr 1fr; gap:1rem; }
.jh-contact-form label{ display:flex; flex-direction:column; gap:0.35rem; font-weight:600; font-size:0.9rem; color:#0B1F3A; }
.jh-contact-form input, .jh-contact-form textarea{
  font-family:inherit; font-weight:400; font-size:0.98rem; color:#0B1F3A;
  padding:0.75rem; border:1px solid #E2E5EA; border-radius:8px; box-sizing:border-box; width:100%;
  background:#fff;
}
.jh-contact-form input::placeholder, .jh-contact-form textarea::placeholder{ color:#8B93A0; }
.jh-contact-form__submit{
  background:#0B1F3A; color:#FFFFFF; border:none; border-radius:8px; padding:0.9rem 1.6rem;
  font-weight:700; font-size:1rem; cursor:pointer; width:100%;
}
.jh-contact-form__submit:hover{ background:#13315C; }
.jh-map{ border-radius:16px; overflow:hidden; border:1px solid #E2E5EA; margin-top:2rem; }
.jh-map iframe{ display:block; width:100%; height:360px; border:0; }
@media (max-width:600px){
  .jh-contact-info{ grid-template-columns:1fr; }
  .jh-contact-form__row{ grid-template-columns:1fr; }
}

/* ---------- Footer ---------- */
.jh-footer-contact svg{ vertical-align:-2px; margin-right:0.15rem; }

/* Ancla bajo header sticky */
[id]{ scroll-margin-top:90px; }

/* Trailing slash interno: sin estilos particulares, cosmético en enlaces internos */

/* ---------- Paginador (galería de proyectos, archivo de categorías) ---------- */
.jh-pagination{ display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:8px; margin:40px auto 0; max-width:1280px; padding:0 clamp(1rem,4vw,2rem); }
.jh-pagination .page-numbers{ display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; min-width:40px; height:40px; padding:0 0.7rem; border:1px solid #E2E5EA; border-radius:14px; background:#fff; color:#0B1F3A; font-weight:600; font-size:0.92rem; line-height:1; text-decoration:none !important; transition:background .15s,color .15s,border-color .15s; }
.jh-pagination a.page-numbers:hover{ border-color:#C79A3E; color:#C79A3E; }
.jh-pagination .page-numbers.current{ background:#0B1F3A; border-color:#0B1F3A; color:#fff; }
.jh-pagination .page-numbers.dots{ border-color:transparent; background:transparent; min-width:auto; padding:0 0.2rem; }
.jh-pagination .page-numbers.prev, .jh-pagination .page-numbers.next{ padding:0 1rem; }
@media (max-width:480px){
  .jh-pagination{ gap:6px; }
  .jh-pagination .page-numbers{ min-width:36px; height:36px; font-size:0.86rem; padding:0 0.55rem; }
  .jh-pagination .page-numbers.prev, .jh-pagination .page-numbers.next{ padding:0 0.8rem; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:0.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:0.001ms !important;
    scroll-behavior:auto !important;
  }
  .jh-gallery-card:hover,
  .jh-gallery-card:hover .jh-gallery-card__media img,
  .jh-service-card:hover,
  .jh-wa:hover{ transform:none !important; }
}
