/* Photography and spacing refinement only: client copy and sections are retained. */
:root { --content-width: 1440px; --gutter: clamp(24px, 3.333vw, 48px); }
body { max-width: none; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
main { max-width: var(--content-width); width: 100%; flex: 1 0 auto; margin-inline: auto; }
/* Share spare viewport space between the existing homepage sections. */
main:has(> .hero) { display: flex; flex-direction: column; }
main > .hero { flex: 4 0 auto; margin-top: clamp(16px, 2vw, 32px); }
main > .home-paths { flex: 1 0 auto; align-content: center; }
.header-inner, .footer-inner { max-width: var(--content-width); padding-inline: var(--gutter); }
.header-inner { padding-block: 12px; gap: 28px; }
header .brand-logo { width: 225px; }
.header-inner nav { width: auto; gap: 28px; }
header nav a { font-size: 13px; }
/* Natural document flow: footer size comes only from its content and padding. */
footer { flex: 0 0 auto; }
.footer-inner { padding-block: 26px 22px; gap: 14px 28px; }
.footer-brand .brand-logo { width: 195px; }
.footer-bottom { margin-top: 2px; padding-top: 15px; }
.section, .page-intro, .directory-section, .breadcrumb-wrap,
.service-detail, .service-pager, .project-gallery-section,
.home-paths, .next-step { padding-inline: var(--gutter); }
.hero { display: grid; grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); min-height: 0; align-items: stretch; }
.hero-copy { min-height: clamp(580px, calc(50dvh + 40px), 760px); padding: clamp(48px, 5dvh, 72px) var(--gutter); justify-content: center; }
.hero h1 { font-size: clamp(42px, 4.25vw, 62px); line-height: 1.13; letter-spacing: -2.3px; }
.hero h1 em { display: inline; }
.hero h1 br { display: initial; }
.hero .lead { max-width: 515px; font-size: 16px; line-height: 1.7; margin-block: 25px; }
.hero .button { line-height: 1.6; padding: 15px 22px; font-size: 13px; }
.hero .hero-photograph { position: relative; min-height: 0; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; }
.hero-photograph > img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 0%; border-radius: 0; filter: none; }
.home-paths { grid-template-columns: 1.05fr 1fr 1fr; gap: 30px; padding-block: clamp(38px, calc(5dvh - 16px), 56px); align-items: start; }
.home-paths h2 { font-size: 28px; line-height: 1.3; }
.home-paths h3 { font-size: 20px; line-height: 1.4; }
.home-paths > a { padding-left: 25px; padding-right: 25px; }
.home-paths p { font-size: 13px; line-height: 1.65; margin-bottom: 0; }
.home-paths b { top: 0; }
.page-intro { padding-top: 32px; padding-bottom: 40px; }
.page-intro .breadcrumb { margin-bottom: 30px; line-height: 1.7; }
.page-intro h1 { font-size: clamp(36px, 3.8vw, 54px); line-height: 1.18; letter-spacing: -1.7px; }
.page-lead { font-size: 17px; line-height: 1.7; }
.service-photo-intro-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; }
.service-intro-text { min-width: 0; }
.service-intro-text h1 { font-size: clamp(35px, 3.2vw, 46px); }
.feature-photo .photo-frame, .project-photo .photo-frame { position: relative; width: 100%; aspect-ratio: 4 / 3; }
.feature-photo .photo-frame img, .project-photo .photo-frame img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; border-radius: 0; filter: none; }
.feature-photo.is-portrait .photo-frame img,
.project-photo.is-portrait .photo-frame img { object-fit: contain; }
/* Preserve the full technical display and concept drawings; never crop their edges. */
.photo-frame img[src^="photo-engineering-fiber"],
.photo-frame img[src^="photo-engineering-rf"],
.photo-frame img[src^="photo-engineering-concept"],
.photo-frame img[src^="photo-security-concept"],
.photo-frame img[src^="photo-energy-solar"] { object-fit: contain; }
.photo-frame img[src^="photo-tower-radar"],
.photo-frame img[src^="photo-energy-lighting"] { object-position: center 15%; }
figcaption { font-size: 14px; line-height: 1.6; margin-top: 10px; }
.service-detail { padding-block: 48px; gap: 48px; }
.service-detail h2 { font-size: 32px; line-height: 1.3; letter-spacing: -1px; }
.project-gallery-section { padding-top: 4px; padding-bottom: 44px; }
.project-gallery-section h2 { font-size: 30px; margin-bottom: 24px; }
.project-gallery { gap: 30px; }
.project-gallery.single-image { max-width: 800px; }
.service-pager { padding-bottom: 36px; }
.next-step { padding-block: 35px; }
.about { padding-block: 45px 55px; gap: 48px; }
.about-copy { padding-top: 0; }
.process { padding-block: 55px; }
.steps { margin-block: 45px; }
.contact { padding-top: 40px; padding-bottom: 50px; min-height: 0; }
.contact h1 { font-size: clamp(34px, 3.7vw, 50px); }
.contact-form-panel { padding: 30px; }
@media (min-width:681px) and (max-width:1023px) {
  :root { --gutter: 32px; }
  .header-inner { flex-wrap: nowrap; gap: 20px; }
  header .brand-logo { width: 195px; }
  .header-inner nav { gap: 22px; }
  header nav a { font-size: 12px; }
  .hero-copy { min-height: 500px; padding-block: 36px; }
  .hero h1 { font-size: clamp(35px, 4.7vw, 47px); letter-spacing: -1.5px; }
  .hero .lead { font-size: 14px; margin-block: 22px; }
  .hero .button { font-size: 12px; gap: 20px; padding: 13px 16px; }
  .home-paths { grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 32px; }
  .home-paths > div { grid-column: 1 / -1; }
  .home-paths > a { padding: 0 24px 0 0; border-top: 0; border-left: 0; }
  .home-paths b { top: 0; }
  .service-photo-intro-grid { gap: 28px; grid-template-columns: 1fr 1fr; }
  .service-intro-text h1 { font-size: 34px; }
  .service-photo-intro .page-lead { font-size: 15px; }
  .service-detail { grid-template-columns: 1fr 1fr; gap: 30px; }
  .service-detail h2 { font-size: 28px; }
  .project-gallery { grid-template-columns: 1fr 1fr; gap: 25px; }
  .photo-frame { min-width: 0; }
}
@media (max-width:680px) {
  :root { --gutter: 24px; }
  .header-inner { flex-wrap: wrap; gap: 4px; padding-block: 9px 13px; }
  header .brand-logo { width: 190px; }
  .header-inner nav { width: 100%; gap: 16px; justify-content: space-between; }
  header nav a { font-size: 12px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 0; padding-block: 34px 36px; }
  .hero h1 { font-size: clamp(37px, 8.4vw, 48px); line-height: 1.14; letter-spacing: -1.6px; }
  .hero h1 br { display: initial; }
  .hero h1 em { display: inline; }
  .hero .lead { font-size: 14px; margin-block: 22px; }
  .hero .hero-photograph { height: auto; aspect-ratio: 4 / 3; min-height: 0; }
  .hero-photograph > img { object-position: 55% 0%; }
  .home-paths { grid-template-columns: 1fr; gap: 24px; padding-block: 30px; }
  .home-paths > div { grid-column: auto; }
  .home-paths > a { border-left: 0; border-top: 1px solid var(--line); padding: 20px 25px 0 0; }
  .home-paths b { top: 18px; }
  .home-paths h2 { font-size: 26px; }
  .home-paths h3 { font-size: 21px; }
  .footer-inner { padding-block: 24px 20px; }
  .footer-brand .brand-logo { width: 185px; }
  .page-intro { padding-top: 25px; padding-bottom: 30px; }
  .page-intro .breadcrumb { margin-bottom: 25px; }
  .page-intro h1 { font-size: clamp(32px, 7.8vw, 40px); }
  .service-photo-intro-grid { grid-template-columns: 1fr; gap: 25px; }
  .page-lead { font-size: 15px; margin-top: 20px; }
  .service-detail { grid-template-columns: 1fr; padding-block: 32px; gap: 25px; }
  .service-detail h2 { font-size: 28px; }
  .project-gallery-section h2 { font-size: 27px; }
  .project-gallery { grid-template-columns: 1fr; gap: 26px; }
  .project-gallery-section { padding-bottom: 35px; }
  .feature-photo .photo-frame, .project-photo .photo-frame { aspect-ratio: 4 / 3; }
  .feature-photo.is-portrait .photo-frame, .project-photo.is-portrait .photo-frame { aspect-ratio: 1 / 1; }
  figcaption { font-size: 13px; }
  .about, .process { padding-block: 35px; }
  .contact { padding-block: 30px 36px; }
  .contact h1 { font-size: 35px; }
  .contact-form-panel { padding: 25px; }
}

/* Secondary navigation panels: the existing anchor contains the whole control. */
.home-paths { align-items: stretch; }
.home-paths > div { align-self: center; }
.home-paths > a {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-self: stretch;
  gap: 9px;
  min-height: 132px;
  padding: 22px;
  background: var(--surface-panel);
  border: 0;
  border-bottom: 2px solid var(--blue);
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  transition: background-color 200ms ease;
}
.home-paths > a h3 { margin: 0; padding-right: 24px; color: var(--ink); }
.home-paths > a p { margin: 0; padding-right: 8px; }
.home-paths > a b {
  position: absolute;
  top: 19px;
  right: 20px;
  color: var(--accent);
  transition: transform 200ms ease;
}
.home-paths > a:hover, .home-paths > a:focus-visible { background: var(--surface-hover); }
.home-paths > a:hover h3, .home-paths > a:focus-visible h3 { color: var(--ink); }
.home-paths > a:hover b, .home-paths > a:focus-visible b { transform: translate(2.5px, -2.5px); }
.home-paths > a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
/* Footer CTA: a quieter interaction level than the primary orange button. */
.footer-inner > .footer-contact-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 46px;
  margin-left: auto;
  padding: 12px 18px;
  color: var(--paper);
  background: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 999px;
  box-shadow: none;
  font-size: 13px;
  line-height: 1.6;
  transition: background-color 200ms ease, border-color 200ms ease;
}
.footer-contact-cta .cta-arrow { color: var(--paper); }
.footer-inner > .footer-contact-cta:hover,
.footer-inner > .footer-contact-cta:focus-visible { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.footer-inner > .footer-contact-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
@media (max-width:680px) {
  .home-paths > a { padding: 22px; min-height: 132px; }
  .footer-inner > .footer-contact-cta { margin-left: 0; width: 100%; justify-content: space-between; min-height: 48px; }
}
@media (prefers-reduced-motion:reduce) {
  .home-paths > a, .home-paths > a b, .footer-inner > .footer-contact-cta { transition: none; }
  .home-paths > a:hover b, .home-paths > a:focus-visible b { transform: none; }
}

/* Homepage alignment refinements from the annotated reference. */
@media (min-width:901px) {
  main > .hero { grid-template-columns: minmax(0, calc(50% + 24px)) minmax(0, 1fr); }
}
.home-about { column-gap: 48px; row-gap: 22px; align-items: start; }
.home-about > div:first-child { grid-column: 1; grid-row: 1; align-self: center; }
.home-about > .about-copy { display: contents; }
.home-about .intro-description { grid-column: 2; grid-row: 1; min-width: 0; }
.home-about .intro-description > p:last-child { margin-bottom: 0; }
.home-about .intro-cta { grid-column: 2; grid-row: 2; justify-self: start; }
.intro-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
  transition: background-color 200ms ease;
}
.intro-cta:hover, .intro-cta:focus-visible { background: color-mix(in srgb, var(--ink), var(--paper) 10%); color: var(--paper); }
.intro-cta > span { flex-shrink: 0; }
.home-paths { background: transparent; }
@media (max-width:900px) {
  .home-about > div:first-child, .home-about .intro-description, .home-about .intro-cta { grid-column: 1; grid-row: auto; }
}
@media (prefers-reduced-motion:reduce) { .intro-cta { transition: none; } }

/* Services expand in place; native buttons supply Enter/Space keyboard support. */
.service-toggle {
  width: 100%;
  min-width: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  cursor: pointer;
}
.service-entry-copy { min-width: 0; }
.service-entry-title { display: block; max-width: 350px; font-family: Manrope, sans-serif; font-size: 23px; font-weight: 600; letter-spacing: -.6px; line-height: 1.35; }
.service-entry-description { display: block; margin-top: 10px; font-size: 13px; color: var(--muted); }
.service-toggle:hover .service-entry-title,
.service-toggle:focus-visible .service-entry-title,
.service-toggle[aria-expanded="true"] .service-entry-title { color: var(--accent); }
.service-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.entry-controls { display: inline-flex; align-items: center; gap: 12px; margin-left: auto; padding-top: 3px; }
.entry-controls .entry-arrow { margin: 0; }
.disclosure-plus { flex-shrink: 0; color: var(--muted); }
.service-toggle[aria-expanded="true"] .disclosure-plus path:last-child { visibility: hidden; }
.service-accordion { grid-template-columns: minmax(0, 1fr); align-items: start; }
.service-accordion .service-toggle { min-height: 0; padding-block: 26px; }
.service-accordion .service-entry-title { max-width: none; }
.service-item { min-width: 0; align-self: start; border: 1px solid transparent; border-left-width: 3px; border-radius: 8px; }
.service-item.is-expanded { margin-block: 12px; background: var(--surface); border-color: var(--line); border-left-color: var(--accent); }
.service-item.is-expanded > .service-toggle { padding-inline: 24px; border-radius: 7px 7px 0 0; }
.service-expansion { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px clamp(28px, 4vw, 56px); align-items: start; min-width: 0; padding: 24px; }
.service-expansion[hidden] { display: none; }
.expanded-service-copy { min-width: 0; }
.service-expansion > .page-lead { grid-column: 1 / -1; max-width: none; margin: 0; font-size: 17px; }
.expanded-service-copy > h2 { margin: 0 0 20px; font-size: 26px; line-height: 1.3; letter-spacing: -1px; }
.expanded-service-copy .detail-list li { font-size: 15px; }
.service-photo-section { min-width: 0; margin-top: 0; }
.service-photo-section > h3 { margin-bottom: 16px; font-size: 21px; line-height: 1.4; letter-spacing: -.5px; }
.service-thumbnail-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 580px; }
.service-photo-item { min-width: 0; margin: 0; }
.service-thumbnail { position: relative; display: block; width: 100%; height: 124px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); cursor: zoom-in; }
.service-thumbnail > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.service-thumbnail:hover { border-color: var(--accent); }
.service-thumbnail:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.thumbnail-zoom { position: absolute; right: 6px; bottom: 6px; width: 18px; height: 18px; padding: 3px; box-sizing: content-box; border-radius: 4px; background: var(--paper); color: var(--ink); pointer-events: none; }
.service-photo-item > figcaption { margin-top: 8px; font-size: 12px; line-height: 1.5; }
@media (max-width:900px) {
  .service-entry-title { font-size: 22px; }
  .service-expansion { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px; }
}
@media (max-width:680px) { .service-item.is-expanded > .service-toggle { padding-inline: 16px; } .service-expansion { padding: 20px 16px; } }
@media (min-width:901px) { .service-expansion .service-thumbnail-grid { max-width: none; } }
@media (max-width:680px) { .service-thumbnail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .service-thumbnail { height: 112px; } }

/* Native modal dialog traps focus and provides Escape-to-close behavior. */
html.lightbox-open { overflow: hidden; }
.service-lightbox { position: fixed; inset: 0; width: 100%; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: clamp(16px, 3vw, 32px); border: 0; background: rgb(9 12 14 / 97%); color: var(--ink); }
.service-lightbox:not([open]) { display: none; }
.service-lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr); gap: 16px; }
.service-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.lightbox-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.lightbox-count { font-size: 13px; color: var(--muted); }
.lightbox-control { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink); cursor: pointer; }
.lightbox-control:hover { background: var(--surface-hover); color: var(--accent); }
.lightbox-control:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.lightbox-control:disabled { opacity: .35; cursor: default; }
.lightbox-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 16px; min-height: 0; }
.lightbox-figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; min-width: 0; margin: 0; }
.lightbox-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox-caption { margin-top: 12px; text-align: center; color: var(--ink); font-size: 14px; line-height: 1.5; }
@media (max-width:680px) { .lightbox-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 8px; } .lightbox-previous, .lightbox-next { width: 36px; height: 44px; } }

/* Balance the principles band between its divider and the panel's lower edge. */
.process { padding-bottom: 0; border-bottom: 0; }
.principles { padding-block: 42px; align-items: center; }
.principles strong { color: var(--blue); }
.home-paths { border-top: 0; }
.home-paths > a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 12px;
  row-gap: 9px;
}

/* Lucide action icons are inline SVGs, with no runtime or icon-font request. */
.action-icon { display: inline-block; width: 18px; height: 18px; flex-shrink: 0; vertical-align: middle; }
.button > span, .intro-cta > span, .footer-contact-cta > span,
.home-paths > a b, .entry-arrow { display: inline-flex; align-items: center; }
.service-pager .action-icon { margin-inline: 4px; }

/* Subtle rounding on the three marked homepage panels. */
.home-about + .process, .home-paths > a { border-radius: 8px; }

/* A broader process introduction and a more compact, centered navigation row. */
.home-about + .process .section-top > p {
  max-width: none;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.7;
}
.home-about + .process .section-top > .process-intro {
  padding-left: 22px;
  border-left: 2px solid var(--accent);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.65;
}
.process-intro > strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: clamp(20px, 1.65vw, 24px);
  font-weight: 500;
  line-height: 1.4;
}
.process-intro > span { display: block; }
@media (min-width:901px) {
  .home-about + .process .section-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 48px;
    align-items: center;
  }
  .home-about + .process .section-top > p { margin: 0; }
}
@media (min-width:1024px) {
  .home-paths {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
  }
}
.home-paths > a h3 { grid-column: 1; grid-row: 1; padding-right: 0; }
.home-paths > a p { grid-column: 1 / -1; grid-row: 2; }
.home-paths > a b { position: static; grid-column: 2; grid-row: 1; align-self: center; }

/* White lettering over the original logo; the blue-and-orange emblem is intact. */
.footer-brand { position: relative; }
.footer-brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  -webkit-mask: url("cictelco-logo-transparent.png") center / contain no-repeat;
  mask: url("cictelco-logo-transparent.png") center / contain no-repeat;
  clip-path: inset(0 0 0 27%);
  pointer-events: none;
}
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 28px; }
.footer-brand { grid-column: 1; grid-row: 1; justify-self: start; }
.footer-inner > .footer-contact-cta { grid-column: 2; grid-row: 1 / 3; }
.footer-bottom { grid-column: 1; grid-row: 2; width: auto; margin: 0; padding: 0; border: 0; }
.footer-bottom span { margin: 0; }
@media (max-width:680px) {
  .process { padding-bottom: 0; }
  .principles { padding-block: 32px; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-inner > .footer-contact-cta { grid-column: 1; grid-row: 3; }
}

/* Keep the copyright tucked beneath the logo lettering. */
.footer-inner { --footer-logo-width: 195px; row-gap: 0; }
.footer-brand .brand-logo { width: var(--footer-logo-width); }
.footer-bottom { margin-top: -8px; padding-left: calc(var(--footer-logo-width) * .27); }
@media (max-width:900px) { .footer-inner { --footer-logo-width: 185px; } }
@media (max-width:680px) { .footer-inner > .footer-contact-cta { margin-top: 20px; } }

/* A compact field gallery gives the homepage card a distinct destination. */
#proceso, #experiencia { scroll-margin-top: 24px; }
.home-field-gallery { padding: 8px var(--gutter) 56px; }
.field-gallery-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.field-gallery-heading h2 { font-size: clamp(28px, 3vw, 38px); line-height: 1.2; letter-spacing: -1.2px; }
.field-gallery-heading p { margin: 0; font-size: 14px; color: var(--muted); }
.home-field-gallery .service-thumbnail-grid { max-width: none; gap: 24px; }
.home-field-gallery .service-thumbnail { height: clamp(190px, 20vw, 260px); border-radius: 8px; }
@media (max-width:680px) { .field-gallery-heading { display: block; } .field-gallery-heading p { margin-top: 12px; } .home-field-gallery .service-thumbnail-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .home-field-gallery .service-thumbnail { height: 220px; } }
