/* =========================================================
   ASISTENCIA TÉCNICA · ORES (solo para esta página)
   - Respeta header + drawer + hero del estilo Proyectos
   - 3 secciones informativas (cards)
   ========================================================= */

:root{
  --violet: #7A5B66;
  --gold:   #D4A61D;
  --text:   #1c1c1e;
  --gray-bg:#fafafa;
  --header-h: 78px;
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  scroll-behavior: smooth;
}

.container{
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* =========================================================
   HEADER (idéntico comportamiento)
   ========================================================= */
header.main-header{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 9999;

  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);

  transition: background .18s ease, box-shadow .18s ease, border-color .18s ease;
}

header.main-header.is-scrolled{
  background: rgba(12,16,20,.92);
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

header.main-header .nav-container{
  height: var(--header-h);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-ores{
  height: 44px;
  width: auto;
  display: block;
}

/* botón MENÚ */
.menu-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  height: 38px;
  padding: 0 14px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.70);
  color: #111;

  font-family: 'Inter', sans-serif;
  font-weight: 800;
  letter-spacing: .06em;
  font-size: 12px;
  cursor: pointer;

  transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.menu-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.88);
  border-color: rgba(0,0,0,.22);
}
header.main-header.is-scrolled .menu-btn{
  border-color: rgba(255,255,255,.22);
  background: rgba(0,0,0,.18);
  color: #fff;
}
header.main-header.is-scrolled .menu-btn:hover{
  background: rgba(0,0,0,.26);
}

/* compensa header fijo */
body.page-asistencia main{
  padding-top: var(--header-h);
}

/* =========================================================
   DRAWER
   ========================================================= */
html.no-scroll, body.no-scroll{ overflow: hidden; }

.menu-backdrop{
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(0,0,0,.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.menu-backdrop.open{
  opacity: 1;
  pointer-events: auto;
}

.menu-drawer{
  position: fixed;
  top: 0; right: 0;
  height: 100vh;
  width: min(420px, 86vw);
  z-index: 9999;

  background: #0f1216;
  color: #fff;

  transform: translateX(104%);
  transition: transform .18s ease;

  border-left: 1px solid rgba(255,255,255,.08);
  box-shadow: -18px 0 46px rgba(0,0,0,.28);

  display: flex;
  flex-direction: column;
}
.menu-drawer.open{ transform: translateX(0); }

.menu-drawer-head{
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.drawer-top{
  display:flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.drawer-social--top{
  display: flex;
  gap: 10px;
  align-items: center;
}
.drawer-social--top a{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}
.drawer-social--top a:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.10);
}

.drawer-close{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color: #fff;
  cursor: pointer;
}
.drawer-close:hover{ background: rgba(255,255,255,.10); }

.drawer-nav{
  padding: 14px 18px 18px;
  display: grid;
  gap: 8px;
}
.drawer-nav a{
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-weight: 700;
  font-size: 14px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.05);
}
.drawer-nav a:hover{
  background: rgba(255,255,255,.08);
}
.drawer-nav a.active{
  background: linear-gradient(90deg, rgba(200,155,61,.22), rgba(200,155,61,.10));
  border-color: rgba(200,155,61,.35);
}

.drawer-foot{
  margin-top: auto;
  padding: 14px 18px 18px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.70);
  font-size: 13px;
}

/* =========================================================
   HERO
   ========================================================= */
.asistencia-hero{
  position: relative;
  min-height: 62vh;
  display: flex;
  align-items: center;
  overflow: hidden;

  padding: calc(var(--header-h) + 18px) 0 86px;
  color: #fff;
}

.asistencia-hero-inner{
  position: relative;
  z-index: 2;
  max-width: 980px;
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
  opacity: .95;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.20);
  backdrop-filter: blur(6px);
}

.asistencia-hero .hero-title{
  margin: 14px 0 10px;
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 12px 30px rgba(0,0,0,.45);
}

.asistencia-hero .hero-lead{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.75;
  max-width: 860px;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 22px rgba(0,0,0,.35);
}

.hero-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.hero-cta{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  color: #0b1220;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.18);
  transition: transform .15s ease, background .15s ease;
}
.hero-cta:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,1);
}
.hero-cta--ghost{
  background: rgba(0,0,0,.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.hero-cta--ghost:hover{
  background: rgba(0,0,0,.26);
}

.hero-down{
  margin-top: 18px;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.20);
  background: rgba(0,0,0,.22);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .15s ease, background .15s ease;
}
.hero-down:hover{
  transform: translateY(-2px);
  background: rgba(0,0,0,.30);
}

/* =========================================================
   SECCIÓN SERVICIOS
   ========================================================= */
.asistencia-servicios{
  padding: 46px 0 72px;
  background: #fff;
}

.section-head{
  max-width: 860px;
  margin: 0 0 22px;
}
.section-head h2{
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}
.section-head p{
  margin: 0;
  color: #555;
  line-height: 1.7;
}

.servicios-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.servicio-card{
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(90,61,78,0.08);
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  padding: 18px 18px 16px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.servicio-card:hover{
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(0,0,0,0.10);
}

.servicio-icon{
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 10px;

  background: linear-gradient(135deg, rgba(122,91,102,.18), rgba(200,155,61,.18));
  border: 1px solid rgba(200,155,61,.18);
  color: #3a2a3a;
}
.servicio-icon i{ font-size: 18px; }

.servicio-card h3{
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: #2b2b2b;
}
.servicio-card p{
  margin: 0 0 12px;
  color: #555;
  line-height: 1.65;
  font-size: 14px;
}
.servicio-list{
  margin: 0;
  padding-left: 18px;
  color: #3f3f3f;
  line-height: 1.6;
  font-size: 14px;
}
.servicio-list li{ margin: 6px 0; }

/* =========================================================
   CTA inferior
   ========================================================= */
.asistencia-cta{
  margin-top: 24px;
}
.cta-box{
  border-radius: 18px;
  padding: 18px 18px;
  border: 1px solid rgba(200,155,61,.22);
  background:
    linear-gradient(90deg, rgba(122,91,102,.08), rgba(200,155,61,.08));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.cta-text h3{
  margin: 0 0 6px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.cta-text p{
  margin: 0;
  color: #4c4c4c;
  line-height: 1.65;
  font-size: 14px;
  max-width: 740px;
}

.cta-btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  color: #fff;
  background: #5a3d4e;
  border: 1px solid rgba(0,0,0,.08);
  transition: transform .15s ease, filter .15s ease;
  white-space: nowrap;
}
.cta-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* =========================================================
   Reveal
   ========================================================= */
.reveal{
  opacity: 0;
  transform: translateY(40px) scale(.98);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible{
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px){
  .servicios-grid{
    grid-template-columns: 1fr;
  }
  .cta-box{
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px){
  :root{ --header-h: 72px; }
  .logo-ores{ height: 40px; }
  .menu-btn{ height: 36px; padding: 0 12px; }
}

/* Zócalo de redes (mismo look que venís usando) */
.redes-ores{
  background: #5a189a;
  margin: 0;
  padding: 26px 0 18px;
}
.redes-ores h3{ color: #ff8c1a; }
.iconos-redes a{
  background: rgba(255,255,255,.10);
  color: #ff8c1a;
}
.iconos-redes a:hover{
  background: rgba(255,140,26,.92);
  color: #5a189a;
}

/* Scroll offset para anclas (evitar que el header tape) */
#servicios{ scroll-margin-top: 110px; }


/* =========================================================
   FIX 1) LOGO SIEMPRE VISIBLE + EN HEADER AL SCROLL
   (solo Asistencia Técnica)
   ========================================================= */

body.page-asistencia #mainHeader{
  position: fixed !important;
  top: 0; left: 0; right: 0;
  z-index: 99999 !important;
}

/* layout seguro del header */
body.page-asistencia #mainHeader .nav-container{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 14px;
}

/* logo SIEMPRE visible (aunque style.css lo pise) */
body.page-asistencia #headerLogo,
body.page-asistencia .logo-ores{
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  height: 44px;
  width: auto;
  position: relative;
  z-index: 100000 !important;
}

/* el botón menú arriba también */
body.page-asistencia #menuBtn{
  position: relative;
  z-index: 100000 !important;
}

/* =========================================================
   FIX 2) HERO MÁS GRANDE (100vh) — como Proyectos
   ========================================================= */

body.page-asistencia .asistencia-hero{
  min-height: 100vh !important;
  padding: 120px 0 140px !important;  /* más aire */
  display: flex !important;
  align-items: center !important;
}

/* en notebooks bajitos, un poco menos */
@media (max-height: 780px){
  body.page-asistencia .asistencia-hero{
    min-height: 92vh !important;
    padding: 100px 0 120px !important;
  }
}

/* que al bajar a #servicios el header no tape */
body.page-asistencia #servicios{
  scroll-margin-top: 110px;
}



/* =========================================================
   FIX MENÚ ASISTENCIA
   - Evita superposición con redes del header
   - Drawer manda cuando está abierto
   ========================================================= */

/* Cuando el menú está abierto, el header queda por debajo */
body.page-asistencia .menu-drawer.open ~ .main-header,
body.page-asistencia .menu-drawer.open + .main-header{
  z-index: 1 !important;
}

/* El drawer SIEMPRE arriba del header */
body.page-asistencia .menu-drawer{
  z-index: 100001 !important;
}

/* Backdrop entre drawer y header */
body.page-asistencia .menu-backdrop{
  z-index: 100000 !important;
}

/* Header vuelve a la normalidad cuando el menú está cerrado */
body.page-asistencia #mainHeader{
  z-index: 99999;
}

/* Desactivar redes del header visualmente cuando el menú está abierto */
body.page-asistencia .menu-drawer.open ~ header .drawer-social,
body.page-asistencia .menu-drawer.open ~ header .drawer-social--top{
  opacity: 0;
  pointer-events: none;
}
