/* =========================================
   EPMEX 2026 — Premium Glass Industrial UI
========================================= */

:root{
  --bg:#0a0f12;
  --bg-deep:#070b0e;
  --glass:rgba(255,255,255,0.06);
  --glass-strong:rgba(255,255,255,0.08);
  --border:rgba(255,255,255,0.12);
  --text:#ffffff;
  --muted:rgba(255,255,255,0.65);
  --accent:#ffffff;
  --max:1300px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html,body{
  height:100%;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color:var(--text);

  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(255,255,255,0.05), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(255,255,255,0.04), transparent 55%),
    url('/assets/img/hero-epmex.jpg');

  background-repeat: no-repeat, no-repeat, repeat-y;
  background-position: center top, center top, top center;
  background-size: auto, auto, 100% auto;
}

/* =========================================
   LAYOUT
========================================= */

.container{
  width:92%;
  max-width:var(--max);
  margin:auto;
}

/* =========================================
   TOPBAR GLASS
========================================= */

.topbar{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background:linear-gradient(to bottom, rgba(10,15,18,0.85), rgba(10,15,18,0.65));
  border-bottom:1px solid var(--border);
  z-index:999;
  transition:0.3s ease;
}

.topbar-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:72px;
}

/* =========================================
   BRAND
========================================= */

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text);
}

.brand-logo{
  width:38px;
  height:38px;
  object-fit:contain;
  opacity:0.9;
  transition:0.3s;
}

.brand-logo:hover{
  opacity:1;
  transform:scale(1.05);
}

.brand-text{
  line-height:1.1;
}

.brand-title{
  font-weight:700;
  font-size:14px;
  letter-spacing:1px;
}

.brand-subtitle{
  font-size:11px;
  color:var(--muted);
  letter-spacing:0.5px;
}

/* =========================================
   NAV
========================================= */

.nav{
  display:flex;
  align-items:center;
  gap:24px;
}

.nav-link{
  position:relative;
  text-decoration:none;
  font-size:14px;
  color:var(--muted);
  transition:0.3s;
}

.nav-link:hover{
  color:var(--text);
}

.nav-link::after{
  content:"";
  position:absolute;
  bottom:-6px;
  left:0;
  width:0%;
  height:2px;
  background:var(--text);
  transition:0.3s;
}

.nav-link:hover::after{
  width:100%;
}

/* CTA button */

.is-cta{
  padding:8px 18px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--glass);
  color:var(--text);
  transition:0.3s;
}

.is-cta:hover{
  background:var(--glass-strong);
  box-shadow:0 0 20px rgba(255,255,255,0.1);
}

/* =========================================
   MOBILE MENU
========================================= */

.nav-toggle{
  display:none;
  background:none;
  border:none;
  cursor:pointer;
  flex-direction:column;
  gap:4px;
}

.nav-toggle span{
  width:24px;
  height:2px;
  background:var(--text);
}

@media(max-width:900px){

  .nav{
    position:fixed;
    top:72px;
    right:-100%;
    flex-direction:column;
    background:rgba(10,15,18,0.95);
    width:260px;
    height:100vh;
    padding:40px 30px;
    gap:28px;
    transition:0.3s;
    border-left:1px solid var(--border);
  }

  .nav.active{
    right:0;
  }

  .nav-toggle{
    display:flex;
  }

}

/* =========================================
   MAIN
========================================= */

main{
 padding-top:72px; /* igual al alto del topbar */
}

/* =========================================
   HERO FULL SCREEN SUPPORT
========================================= */

.hero-full{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

.hero-full h1{
  font-size:42px;
  font-weight:700;
  margin-bottom:15px;
}

.hero-full p{
  font-size:16px;
  color:var(--muted);
}

/* =========================================
   BUTTON GLOBAL
========================================= */

.btn{
  display:inline-block;
  padding:12px 22px;
  border-radius:999px;
  border:1px solid var(--border);
  background:var(--glass);
  color:var(--text);
  text-decoration:none;
  transition:0.3s;
}

.btn:hover{
  background:var(--glass-strong);
  box-shadow:0 0 25px rgba(255,255,255,0.08);
}

/* =========================================
   SCROLL EFFECT (optional)
========================================= */

.topbar.scrolled{
  background:rgba(7,11,14,0.95);
  border-bottom:1px solid rgba(255,255,255,0.08);
}


















/* =========================================
   FOOTER VIDEO PREMIUM — EPMEX 2026
========================================= */

.footer-video{
  position:relative;
  overflow:hidden;
  margin-top:120px;
  padding-top:140px;
  padding-bottom:60px;
  background:#070b0e;
}

/* VIDEO FONDO */
.footer-bg-video{
  position:absolute;
  bottom:0;
  left:0;
  width:100%;
  height:130%;
  object-fit:cover;
  object-position:center bottom;
  z-index:0;
  opacity:0.65;
  transform:translateY(20px);
}

/* OVERLAY OSCURO */
.footer-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
      to top,
      rgba(7,11,14,0.95) 0%,
      rgba(7,11,14,0.88) 40%,
      rgba(7,11,14,0.70) 70%,
      rgba(7,11,14,0.45) 100%
  );
  z-index:1;
}

/* CONTENIDO */
.footer-content{
  position:relative;
  z-index:2;
}

.footer-grid{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap:60px;
}

@media(max-width:1000px){
  .footer-grid{
    grid-template-columns:1fr;
    gap:40px;
  }
}

/* BRAND */
.footer-brand{
  display:flex;
  align-items:center;
  gap:14px;
  text-decoration:none;
  color:#fff;
}

.footer-logo{
  width:55px;
  height:auto;
  filter: drop-shadow(0 0 10px rgba(255,255,255,0.15));
  transition:0.3s;
}

.footer-logo:hover{
  transform:scale(1.05);
}

.footer-title{
  font-weight:700;
  font-size:18px;
  letter-spacing:1px;
}

.footer-muted{
  color:rgba(255,255,255,0.65);
  font-size:13px;
}

.footer-note{
  margin-top:15px;
  color:rgba(255,255,255,0.75);
  font-size:14px;
  line-height:1.6;
}

/* LINKS */
.footer-head{
  font-weight:600;
  margin-bottom:15px;
  font-size:15px;
}

.footer-link{
  display:block;
  margin-bottom:10px;
  text-decoration:none;
  color:rgba(255,255,255,0.65);
  font-size:14px;
  transition:0.3s;
}

.footer-link:hover{
  color:#fff;
  transform:translateX(4px);
}

/* REDES */
.social{
  margin-top:20px;
  display:flex;
  gap:12px;
}

.social-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.15);
  text-decoration:none;
  color:#fff;
  font-size:13px;
  transition:0.3s;
  backdrop-filter:blur(8px);
  background:rgba(255,255,255,0.05);
}

.social-link:hover{
  background:rgba(255,255,255,0.12);
  box-shadow:0 0 18px rgba(255,255,255,0.1);
}

/* VALIDADOR */
.footer-validate{
  background:rgba(255,255,255,0.05);
  padding:25px;
  border-radius:16px;
  backdrop-filter:blur(10px);
  border:1px solid rgba(255,255,255,0.08);
}

.validate-row{
  display:flex;
  gap:10px;
  margin-top:15px;
}

.validate-row input{
  flex:1;
  padding:12px 14px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(0,0,0,0.4);
  color:#fff;
  outline:none;
}

.validate-row input:focus{
  border-color:#fff;
}

.btn-primary{
  background:#fff;
  color:#000;
  border:none;
  padding:12px 18px;
  border-radius:8px;
  cursor:pointer;
  transition:0.3s;
}

.btn-primary:hover{
  background:#ddd;
}

.validate-hint{
  margin-top:8px;
  font-size:12px;
  color:rgba(255,255,255,0.5);
}

/* BOTTOM */
.footer-bottom{
  margin-top:60px;
  padding-top:25px;
  border-top:1px solid rgba(255,255,255,0.1);
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.footer-toplink{
  text-decoration:none;
  color:rgba(255,255,255,0.6);
  transition:0.3s;
}

.footer-toplink:hover{
  color:#fff;
}

/* BACK TO TOP */
.back-to-top{
  position:fixed;
  bottom:30px;
  right:30px;
  width:45px;
  height:45px;
  border-radius:50%;
  border:none;
  background:#fff;
  color:#000;
  font-size:18px;
  cursor:pointer;
  opacity:0;
  transform:translateY(10px);
  transition:0.3s;
  box-shadow:0 8px 20px rgba(0,0,0,0.4);
  z-index:9999;
}

.back-to-top.show{
  opacity:1;
  transform:translateY(0);
}

.back-to-top:hover{
  background:#ddd;
}






















/* =========================================
   HERO INDEX — EPMEX (FIX HEADER + CONTRASTE)
========================================= */

.hero-epmex{
  position:relative;
  min-height:calc(100vh - 72px); /* ocupa pantalla menos header */
  display:flex;
  align-items:center;
  justify-content:center;
  padding:48px 24px;
  background:url("/assets/img/hero-epmex.jpg") center center / cover no-repeat;
}

/* Card central (más oscura para contraste) */
.hero-card{
  display:flex;
  align-items:center;
  gap:44px;
  width:min(1100px, 92vw);
  padding:44px 50px;
  border-radius:22px;

  background:rgba(10,15,18,0.72);
  border:1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:0 30px 90px rgba(0,0,0,0.55);
}

/* Columna logo */
.hero-left{
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:220px;
}

.hero-logo{
  width:190px;
  height:auto;
  opacity:0.95;
  filter: drop-shadow(0 0 18px rgba(255,255,255,0.12));
  transition:0.25s ease;
}
.hero-logo:hover{ transform:scale(1.04); }

/* Texto */
.hero-right h1{
  font-size:40px;
  line-height:1.1;
  margin:0 0 12px 0;
  font-weight:800;
  letter-spacing:.3px;
  color:#fff;
}

.hero-sub{
  margin:0 0 20px 0;
  font-size:15px;
  color:rgba(255,255,255,0.78);
}
.hero-sub strong{ color:#fff; }

.hero-mini{
  margin-top:14px;
  font-size:12.5px;
  color:rgba(255,255,255,0.60);
}

/* Form: se fuerza layout bonito aunque venga de form_search.php */
.hero-right form{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

/* inputs */
.hero-right input[type="text"],
.hero-right input[type="search"],
.hero-right input{
  flex:1;
  min-width:240px;
  padding:14px 16px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.16);
  background:rgba(255,255,255,0.08);
  color:#fff;
  outline:none;
  font-size:15px;
}

.hero-right input::placeholder{
  color:rgba(255,255,255,0.55);
}

.hero-right input:focus{
  border-color:rgba(255,255,255,0.40);
  box-shadow:0 0 0 4px rgba(255,255,255,0.06);
}

/* botón */
.hero-right button,
.hero-right input[type="submit"]{
  padding:14px 18px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.20);
  background:#fff;
  color:#000;
  font-weight:800;
  cursor:pointer;
  transition:0.25s ease;
}

.hero-right button:hover,
.hero-right input[type="submit"]:hover{
  background:#e7e7e7;
  transform:translateY(-1px);
}

/* Responsive */
@media(max-width:900px){
  .hero-card{
    flex-direction:column;
    text-align:center;
    padding:34px 24px;
    gap:22px;
  }
  .hero-left{ min-width:auto; }
  .hero-logo{ width:150px; }
  .hero-right h1{ font-size:30px; }
  .hero-right form{ justify-content:center; }
  .hero-right input{ min-width:260px; }
}

/* =========================================
   FOOTER PEGADO (quita el hueco gigante)
========================================= */
.footer-video{
  margin-top:0; /* antes estaba en 120px */
}












/* =========================================
   SEARCH PAGE — EPMEX 2026 CLEAN
========================================= */

.search{
  padding-top:40px;
  padding-bottom:60px;
  max-width:1200px;
  margin:0 auto;
}

/* Logo pequeño superior */
.search .logo{
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:20px;
}

.search .logo img{
  width:110px;
  opacity:.9;
}

/* contador */
.result_counter{
  margin-top:18px;
  margin-bottom:25px;
  font-size:14px;
  color:rgba(255,255,255,0.65);
  font-weight:600;
}

/* RESULT LIST */
#result ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:30px;
}

/* tarjeta resultado */
#result li{
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  border-radius:18px;
  padding:30px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 20px 60px rgba(0,0,0,.45);
  transition:.3s ease;
}

#result li:hover{
  border-color:rgba(255,255,255,0.2);
}

/* nombre principal */
#result li strong{
  font-size:18px;
  color:#fff;
}

/* columnas internas */
#result .col-sm-9{
  margin-top:15px;
  font-size:14px;
  line-height:1.7;
  color:rgba(255,255,255,.78);
}

/* botón consultar */
.getProfile{
  display:inline-block;
  margin-top:15px;
  padding:12px 18px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.2);
  background:#fff;
  color:#000 !important;
  font-weight:700;
  text-decoration:none;
  transition:.25s;
}

.getProfile:hover{
  background:#e5e5e5;
  transform:translateY(-2px);
}

/* preview imagen */
#result img{
  width:220px !important;
  border-radius:12px !important;
  border:1px solid rgba(255,255,255,.15) !important;
  padding:6px !important;
  background:#fff;
  transition:.3s;
}

#result img:hover{
  transform:scale(1.04);
}

/* enlaces DC3 y Credencial */
#result a{
  text-decoration:none;
  font-weight:600;
}

#result a:hover{
  opacity:.85;
}

/* alerta no encontrado */
.alert-danger{
  background:rgba(255,0,0,.08);
  border:1px solid rgba(255,0,0,.3);
  color:#ff6b6b;
  padding:20px;
  border-radius:12px;
  text-align:center;
  font-weight:600;
  margin-top:30px;
}

/* responsive */
@media(max-width:900px){

  #result li{
    padding:22px;
  }

  #result img{
    width:100% !important;
    max-width:300px;
  }

}

















/* =========================================
   FORM SEARCH — EPMEX CLEAN 2026
========================================= */

.epmex-search-form{
  width:100%;
}

.epmex-search-wrapper{
  display:flex;
  align-items:center;
  gap:12px;
  width:100%;
}

/* INPUT */
.epmex-search-input{
  flex:1;
  padding:15px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.08);
  color:#fff;
  font-size:15px;
  outline:none;
  transition:.25s ease;
}

.epmex-search-input::placeholder{
  color:rgba(255,255,255,0.55);
}

.epmex-search-input:focus{
  border-color:rgba(255,255,255,0.35);
  box-shadow:0 0 0 4px rgba(255,255,255,0.06);
}

/* BUTTON */
.epmex-search-button{
  padding:15px 22px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,0.25);
  background:#ffffff;
  color:#000;
  font-weight:800;
  font-size:14px;
  cursor:pointer;
  transition:.25s ease;
}

.epmex-search-button:hover{
  background:#e8e8e8;
  transform:translateY(-2px);
}

/* Responsive */
@media(max-width:600px){

  .epmex-search-wrapper{
    flex-direction:column;
    gap:10px;
  }

  .epmex-search-button{
    width:100%;
  }

}














/* =========================================
   SHARE + DOWNLOAD FIX — CLEAN
========================================= */

.download-link{
  display:inline-block;
  margin-top:6px;
  font-size:14px;
  font-weight:600;
  color:#fff;
  text-decoration:none;
  opacity:.85;
  transition:.2s;
}

.download-link:hover{
  opacity:1;
  text-decoration:underline;
}

/* Share buttons container */
.share-buttons{
  margin-top:14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* Base share button */
.btn-share{
  padding:10px 18px;
  border-radius:12px;
  font-size:14px;
  font-weight:700;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  transition:.25s ease;
  border:1px solid rgba(255,255,255,.2);
  color:#fff;
}

/* LinkedIn */
.btn-linkedin{
  background:#0077b5;
}

.btn-linkedin:hover{
  background:#005e8a;
  transform:translateY(-2px);
}

/* WhatsApp */
.btn-whatsapp{
  background:#25D366;
}

.btn-whatsapp:hover{
  background:#1da851;
  transform:translateY(-2px);
}





















/* =========================================
   SEARCH CURP — EPMEX CLEAN 2026
========================================= */

/* Contenedor ya usa .search de search.php */

.search .alert-info{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.12);
  color:#fff;
  padding:16px 20px;
  border-radius:14px;
  margin-bottom:20px;
}

/* Botón carnet */
.search a[href*="carnet.php"]{
  display:inline-block;
  padding:12px 22px;
  border-radius:14px;
  font-weight:700;
  text-decoration:none;
  background:#fff;
  color:#000 !important;
  border:1px solid rgba(255,255,255,.2);
  transition:.25s ease;
}

.search a[href*="carnet.php"]:hover{
  background:#e6e6e6;
  transform:translateY(-2px);
}

/* Lista resultados CURP */
.search #result ul{
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  gap:20px;
}

/* Card resultado */
.search #result li{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  border-radius:18px;
  padding:24px;
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  transition:.3s ease;
}

.search #result li:hover{
  border-color:rgba(255,255,255,.2);
}

/* Texto */
.search #result li strong{
  font-weight:700;
  color:#fff;
}

.search #result .col-sm-9{
  font-size:14px;
  line-height:1.6;
  color:rgba(255,255,255,.78);
}

/* Botón ver constancia */
.search #result .col-sm-3 a{
  display:inline-block;
  width:100%;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  text-align:center;
  background:#fff;
  color:#000 !important;
  border:1px solid rgba(255,255,255,.2);
  text-decoration:none;
  transition:.25s ease;
}

.search #result .col-sm-3 a:hover{
  background:#e6e6e6;
  transform:translateY(-2px);
}

/* Botón disabled */
.search .btn.disabled{
  background:rgba(255,255,255,.08) !important;
  color:rgba(255,255,255,.4) !important;
  border:1px solid rgba(255,255,255,.1) !important;
  cursor:not-allowed;
}

/* Responsive */
@media(max-width:900px){

  .search #result li{
    padding:20px;
  }

}





