
:root{
  --atc-blue:#1463d6;
  --atc-blue-2:#0d4fb7;
  --atc-blue-soft:#eaf2ff;
  --atc-night:#071526;
  --atc-night-2:#0d2239;
  --atc-ink:#102238;
  --atc-muted:#61738a;
  --atc-line:#dce5ef;
}

/* El theme deja de aportar cabecera/footer SOLO en las páginas gestionadas. */
body.aranaitec-site-core-page{
  overflow-x:hidden!important;
}

body.aranaitec-site-core-page #masthead,
body.aranaitec-site-core-page .site-header:not(.atc-header),
body.aranaitec-site-core-page .elementor-location-header,
body.aranaitec-site-core-page header.wp-block-template-part,
body.aranaitec-site-core-page .header-wrapper:not(.atc-header),
body.aranaitec-site-core-page .main-header:not(.atc-header),
body.aranaitec-site-core-page #colophon,
body.aranaitec-site-core-page .site-footer:not(.atc-footer),
body.aranaitec-site-core-page .elementor-location-footer,
body.aranaitec-site-core-page footer.wp-block-template-part,
body.aranaitec-site-core-page .footer-wrapper:not(.atc-footer),
body.aranaitec-site-core-page .main-footer:not(.atc-footer){
  display:none!important;
}


/* El título de página pertenece al template del theme y se renderiza antes de the_content.
   Site Core lo elimina en sus páginas para que la cabecera global sea el primer elemento visible. */
body.aranaitec-site-core-page .entry-header,
body.aranaitec-site-core-page .page-header,
body.aranaitec-site-core-page .page-title-bar,
body.aranaitec-site-core-page .title-bar,
body.aranaitec-site-core-page h1.entry-title,
body.aranaitec-site-core-page h1.page-title,
body.aranaitec-site-core-page .wp-block-post-title{
  display:none!important;
  margin:0!important;
  padding:0!important;
}

/* Oculta las cabeceras antiguas embebidas en nuestras páginas actuales. */
body.aranaitec-site-core-page .at-home > .at-header,
body.aranaitec-site-core-page .at-products-page > .at-header,
body.aranaitec-site-core-page .at-reviews-page > .at-header,
body.aranaitec-site-core-page .at-managed-page > .at-header,
body.aranaitec-site-core-page .ats > .at-header,
body.aranaitec-site-core-page .at-dev-page > .at-header{
  display:none!important;
}

.atc-header,
.atc-footer{
  width:100vw!important;
  max-width:100vw!important;
  min-width:100vw;
  margin-left:calc(50% - 50vw)!important;
  margin-right:calc(50% - 50vw)!important;
  box-sizing:border-box;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing:antialiased;
}

.atc-header *,
.atc-footer *{box-sizing:border-box}

.atc-header a,
.atc-header a:link,
.atc-header a:visited,
.atc-header a:hover,
.atc-header a:focus,
.atc-header a:active,
.atc-footer a,
.atc-footer a:link,
.atc-footer a:visited,
.atc-footer a:hover,
.atc-footer a:focus,
.atc-footer a:active{
  text-decoration:none!important;
  text-decoration-line:none!important;
  text-decoration-thickness:0!important;
  border-bottom:0!important;
}

/* Algunos themes pintan el enlace mediante fondos decorativos o text-shadow. */
.atc-header .atc-menu a,
.atc-header .atc-submenu a,
.atc-footer a{
  background-image:none!important;
  text-shadow:none!important;
}

.atc-wrap{
  width:min(1180px,calc(100% - 40px));
  margin-inline:auto;
}

/* HEADER */
.atc-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:#fff;
  border-bottom:1px solid rgba(10,34,60,.08);
  box-shadow:0 1px 0 rgba(10,34,60,.03);
}

body.admin-bar .atc-header{top:32px}

.atc-nav{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.atc-logo{
  display:block;
  flex:0 0 auto;
}

.atc-logo img{
  display:block;
  width:180px;
  max-width:100%;
  height:auto;
}

.atc-menu{
  display:flex;
  align-items:center;
  gap:26px;
  font-size:14px;
  font-weight:720;
  color:#334960;
}

.atc-menu > a,
.atc-menu-parent{
  color:#334960;
  padding:10px 0;
  position:relative;
  white-space:nowrap;
}

.atc-menu > a:not(.atc-nav-cta):after,
.atc-menu-parent:after{
  content:"";
  position:absolute;
  left:0;
  right:100%;
  bottom:4px;
  height:2px;
  background:var(--atc-blue);
  transition:right .2s ease;
}

.atc-menu > a:not(.atc-nav-cta):hover:after,
.atc-menu-parent:hover:after,
.atc-current:after,
.atc-section-current > .atc-menu-parent:after{
  right:0!important;
}

.atc-current,
.atc-section-current > .atc-menu-parent{
  color:var(--atc-blue)!important;
}

.atc-nav-cta{
  background:var(--atc-blue);
  color:#fff!important;
  padding:11px 16px!important;
  border-radius:10px;
  box-shadow:0 8px 20px rgba(20,99,214,.18);
  transition:transform .2s ease,background .2s ease,box-shadow .2s ease;
}

.atc-nav-cta:hover{
  transform:translateY(-1px);
  background:var(--atc-blue-2);
  box-shadow:0 10px 24px rgba(20,99,214,.24);
}

.atc-menu-item{
  position:relative;
  display:flex;
  align-items:center;
}

.atc-menu-parent{
  display:inline-flex;
  align-items:center;
  gap:6px;
}

.atc-menu-parent svg{
  width:13px;
  height:13px;
  stroke:currentColor;
  transition:transform .2s ease;
}

.atc-submenu{
  position:absolute;
  top:100%;
  left:50%;
  transform:translateX(-50%) translateY(10px);
  min-width:330px;
  padding:10px;
  border:1px solid var(--atc-line);
  border-radius:16px;
  background:#fff;
  box-shadow:0 18px 46px rgba(7,21,38,.14);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .2s ease,transform .2s ease,visibility .2s ease;
  z-index:10000;
}


/* Puente invisible entre el item y el desplegable.
   Evita la zona muerta al mover el ratón hacia el submenu. */
.atc-submenu::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-14px;
  height:14px;
  background:transparent;
}

.atc-menu-item:hover .atc-submenu,
.atc-menu-item:focus-within .atc-submenu,
.atc-menu-item.is-open .atc-submenu{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  transform:translateX(-50%) translateY(6px);
}

.atc-menu-item:hover .atc-menu-parent svg,
.atc-menu-item.is-open .atc-menu-parent svg{
  transform:rotate(180deg);
}

.atc-submenu a{
  display:block;
  padding:14px 15px!important;
  border-radius:11px;
  color:var(--atc-ink)!important;
  line-height:1.25;
}

.atc-submenu a:hover,
.atc-submenu a.atc-sub-current{
  background:var(--atc-blue-soft);
}

.atc-submenu strong{
  display:block;
  font-size:14px;
  line-height:1.25;
  color:var(--atc-night);
  margin-bottom:5px;
}

.atc-submenu span{
  display:block;
  font-size:12px;
  color:var(--atc-muted);
  font-weight:500;
  line-height:1.45;
}

.atc-submenu-divider{
  height:1px;
  background:#edf2f7;
  margin:6px 0;
}

.atc-link-blue{color:var(--atc-blue)!important}

.atc-mobile-toggle{
  display:none!important;
  border:0!important;
  background:transparent!important;
  width:44px;
  height:44px;
  border-radius:10px;
  cursor:pointer;
  padding:9px;
}

.atc-mobile-toggle:hover,
.atc-mobile-toggle:focus-visible{
  background:var(--atc-blue-soft)!important;
  outline:none!important;
}

.atc-mobile-toggle-icon{
  display:block!important;
  width:26px!important;
  height:26px!important;
  margin:0 auto!important;
  overflow:visible!important;
  color:var(--atc-blue)!important;
}

.atc-mobile-toggle-icon path{
  fill:none!important;
  stroke:var(--atc-blue)!important;
  stroke-width:2.2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  vector-effect:non-scaling-stroke;
}

/* FOOTER */
.atc-footer{
  background:var(--atc-night);
  color:#fff;
  padding:66px 0 0;
  border-top:1px solid rgba(255,255,255,.05);
}

.atc-footer-main{
  display:grid;
  grid-template-columns:1.55fr .9fr .9fr .9fr 1.05fr;
  gap:38px;
  padding-bottom:48px;
}

.atc-footer-logo{
  display:inline-block;
  padding:9px 13px;
  background:#fff;
  border-radius:11px;
  margin-bottom:20px;
}

.atc-footer-logo img{
  width:155px;
  height:auto;
  display:block;
}

.atc-footer-brand p{
  margin:0 0 8px;
  color:#fff;
  font-size:18px;
  font-weight:800;
  letter-spacing:-.02em;
}

.atc-footer-brand > span{
  display:block;
  max-width:300px;
  color:#8fa4b8;
  font-size:12px;
  line-height:1.55;
}

.atc-footer-col,
.atc-footer-contact{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.atc-footer-col > strong,
.atc-footer-contact > strong{
  color:#fff;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.09em;
  margin-bottom:6px;
}

.atc-footer-col a,
.atc-footer-contact a{
  color:#96aabc;
  font-size:13px;
  line-height:1.4;
  transition:color .2s ease;
}

.atc-footer-col a:hover,
.atc-footer-contact a:hover{
  color:#fff;
}

.atc-footer-bottom{
  min-height:67px;
  border-top:1px solid rgba(255,255,255,.08);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  color:#71879c;
  font-size:11px;
}

.atc-footer-legal{
  display:flex;
  align-items:center;
  gap:18px;
}

.atc-footer-legal a{
  color:#71879c;
}

.atc-footer-legal a:hover{color:#fff}

@media(max-width:1080px){
  .atc-menu{gap:17px}
  .atc-footer-main{grid-template-columns:1.4fr repeat(2,1fr)}
  .atc-footer-contact{grid-column:auto}
}

@media(max-width:900px){
  body.admin-bar .atc-header{top:46px}

  .atc-nav{min-height:72px}
  .atc-logo img{width:160px}
  .atc-mobile-toggle{display:block!important}

  .atc-menu{
    display:none;
    position:absolute;
    top:72px;
    left:0;
    right:0;
    width:100%;
    background:#fff;
    padding:18px 20px 24px;
    border-top:1px solid var(--atc-line);
    border-bottom:1px solid var(--atc-line);
    box-shadow:0 20px 30px rgba(7,21,38,.09);
    align-items:stretch;
    flex-direction:column;
    gap:4px;
  }

  .atc-menu.is-open{display:flex}

  .atc-menu > a{padding:11px 4px}

  .atc-menu > a:not(.atc-nav-cta):after,
  .atc-menu-parent:after{display:none}

  .atc-menu-item{
    display:block;
    width:100%;
  }

  .atc-menu-parent{
    width:100%;
    justify-content:space-between;
    padding:11px 4px;
  }

  .atc-submenu::before{display:none}

  .atc-submenu{
    position:static;
    transform:none!important;
    min-width:0;
    width:100%;
    margin-top:4px;
    padding:6px;
    box-shadow:none;
    border-radius:12px;
    display:none;
    opacity:1;
    visibility:visible;
    pointer-events:auto;
  }

  .atc-menu-item.is-open .atc-submenu{display:block}

  .atc-nav-cta{
    text-align:center;
    margin-top:6px;
  }

  .atc-footer-main{
    grid-template-columns:1fr 1fr;
  }

  .atc-footer-brand{
    grid-column:1/-1;
  }
}

@media(max-width:650px){
  .atc-wrap{width:min(100% - 28px,1180px)}

  .atc-footer{
    padding-top:48px;
  }

  .atc-footer-main{
    grid-template-columns:1fr;
    gap:30px;
  }

  .atc-footer-brand{grid-column:auto}

  .atc-footer-bottom{
    padding:18px 0;
    flex-direction:column;
    align-items:flex-start;
  }

  .atc-footer-legal{
    flex-wrap:wrap;
    gap:10px 16px;
  }
}

@media(prefers-reduced-motion:reduce){
  .atc-header *,
  .atc-footer *{
    transition:none!important;
    scroll-behavior:auto!important;
  }
}

/* v0.1.8: blindaje definitivo del icono hamburguesa frente al theme */
body.aranaitec-site-core-page .atc-header .atc-mobile-toggle svg.atc-mobile-toggle-icon,
body.aranaitec-site-core-page .atc-header .atc-mobile-toggle svg.atc-mobile-toggle-icon path{
  color:#1463d6!important;
  stroke:#1463d6!important;
  fill:none!important;
}
