:root{
  --text: #ffffff;
  --accent: #77c8ff;
  --link: #77c8ff;

  --lightBg: #ffffff;
  --lightTitle: #6b7280;
  --lightSub: #9ca3af;

  --header-h: 110px;
  --hero-vh: 72vh;
  --hero-min: 520px;
  --hero-max: 760px;

  --diag-h: 140px;

  /* ✅ diagonal negro entre contacto y noticias */
  --contact-diag-h: 180px;
  --dark: #05070d;
}

*{ box-sizing: border-box; }
html, body{ margin: 0; padding: 0; }

body{
  color: var(--text);
  font-family: Arial, sans-serif;
  line-height: 1.65;
  font-size: 18px;
  background: #000;
}

#container{
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
}

/* VIDEO */
.bg-video{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--header-h) + clamp(var(--hero-min), var(--hero-vh), var(--hero-max)) + var(--diag-h));
  object-fit: cover;
  z-index: -2;
}

.capa{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: calc(var(--header-h) + clamp(var(--hero-min), var(--hero-vh), var(--hero-max)) + var(--diag-h));
  background:
    radial-gradient(circle at 18% 20%, rgba(0,0,0,.10), rgba(0,0,0,.48) 60%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.22));
  z-index: -1;
}

/* DOCK */
.social-dock{
  position: fixed;
  left: 16px;
  top: 170px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 9999;
}

.dock-item{
  display: flex;
  align-items: center;
  gap: 18px;
  height: 44px;
  width: 48px;
  overflow: hidden;
  padding: 0 14px;

  border-radius: 999px;
  background: #71c0f5;
  color: #08233c;
  text-decoration: none;
  font-weight: 800;

  box-shadow: 0 12px 30px rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.25);

  transition: width .18s ease, transform .18s ease, filter .18s ease;
}

.dock-item:hover{
  width: 160px;
  transform: translateX(2px);
  filter: brightness(1.03);
}

.dock-ico{
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.dock-text{ white-space: nowrap; font-size: 14px; }

@media (max-width: 700px){
  .social-dock{ top:auto; bottom:16px; left:16px; }
}

/* HEADER */
.header{
  height: var(--header-h);
  display: flex;
  align-items: center;
  padding: 24px 40px;
  position: relative;
  z-index: 5;
}

.header img{ height: 200px; width: auto; }

.wrap{ width: min(1280px, 95vw); margin: 0 auto; }

/* HERO */
.hero{
  height: clamp(var(--hero-min), var(--hero-vh), var(--hero-max));
  display: flex;
  align-items: center;
  padding: 18px 0 30px;
  position: relative;
  z-index: 1;
}

.hero-panel{
  background: #71c0f5;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  border-radius: 18px;
  padding: 46px 46px 36px;
}

.pill{
  display: inline-block;
  background-color: #71c0f5;
  color: #08233c;
  font-weight: 800;
  letter-spacing: .8px;
  font-size: 12px;
  padding: 10px 18px;
  border-radius: 999px;
  text-transform: uppercase;
}

.about-grid{
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  margin-top: 18px;
  align-items: start;
}

.about-title{
  margin: 0;
  font-size: clamp(34px, 4.2vw, 64px);
  line-height: 1.05;
  max-width: 16ch;
  color: #08233c;
}

.about-text{
  margin: 0;
  font-size: 18px;
  max-width: 60ch;
  color: rgba(8,35,60,.92);
}

.divider{
  height: 1px;
  width: 100%;
  margin: 22px 0;
  background: rgba(8,35,60,.25);
}

/* SERVICIOS */
.section-white{
  background: transparent;
  color: #0b1220;
  padding: 0 0 60px;
  position: relative;
}

.section-white--diag{
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--diag-h) + 8px);
}

.section-white--diag::before{
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(0 var(--diag-h), 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.section-white--diag::after{
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: var(--diag-h);
  background: rgba(0,0,0,.12);
  clip-path: polygon(0 calc(var(--diag-h) - 2px), 100% 0, 100% 2px, 0 var(--diag-h));
  z-index: 1;
  pointer-events: none;
}

.section-white--diag .wrap{ position: relative; z-index: 2; }

.services-head{
  background: transparent;
  border-radius: none;
  padding: 0;
  text-align: center;
  margin: 0 auto 18px;
  text-align: center;
  width: min(1280px, 95vw);
}

.services-head h2{
  margin: 0;
  font-size: 40px;
  font-weight: 900;
  color: #1e40af;
}

.services-head p{
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 800;
  color: #1e40af;
  opacity: .80;
}

.cards{ display: grid; gap: 16px; }
.cards--wide{ width: min(1280px, 95vw); margin: 0 auto; }
.cards.cards--wide{ grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1200px){
  .cards.cards--wide{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.card{
  background: rgba(15, 23, 42, .92);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  transition: transform .18s ease, border-color .18s ease;
}

.card:hover{ transform: translateY(-3px); border-color: rgba(119,200,255,.35); }

.card-img{
  height: 190px;
  border-radius: 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.10);
  background-size: cover;
  background-position: center;
}

.card-img-1{ background-image: url('./imagenes/cursos2.jpg'); }
.card-img-2{ background-image: url('./imagenes/contraseña.jpg'); }
.card-img-3{ background-image: url('./imagenes/tokens.jpg'); }
.card-img-4{ background-image: url('./imagenes/pishsin.jpg'); }

.card-title{ margin: 0 0 6px 0; font-size: 18px; color: var(--accent); }
.card-text{ margin: 0 0 8px 0; color: rgba(255,255,255,.90); font-size: 13px; }
.card-list{ margin: 0 0 10px 0; padding-left: 18px; }
.card-list li{ margin: 5px 0; color: rgba(255,255,255,.88); font-size: 12.5px; }

/* ================== CONTACTO (✅ DIAGONAL NEGRO ABAJO, SIN TAPAR TEXTO) ================== */
.contact-section{
  background: #ffffff;
  color: #0b1220;
  position: relative;
  overflow: hidden;

  /* ✅ Esto crea un área “vacía” donde dibujamos el diagonal */
  padding-bottom: var(--contact-diag-h);
}

/* ✅ el diagonal negro (está DENTRO de ese padding, no toca el RUC) */
.contact-section::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--contact-diag-h);
  background: var(--dark);
  clip-path: polygon(0 88%, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
  pointer-events: none;
}

/* ✅ línea fina del borde diagonal */
.contact-section::before{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: var(--contact-diag-h);
  background: rgba(0,0,0,.12);
  clip-path: polygon(0 88.6%, 100% 0.6%, 100% 1.2%, 0 89.2%);
  z-index: 0;
  pointer-events: none;
}

/* contenido arriba del diagonal */
.contact-top,
.contact-body{
  position: relative;
  z-index: 1;
}

.contact-top{ background: #1e40af; padding: 34px 0; }

.contact-top-title{
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  letter-spacing: 2px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-top-text{
  margin: 10px 0 0;
  color: rgba(255,255,255,.92);
  font-size: 16px;
  max-width: 90ch;
}

.contact-body{
  padding: 46px 0 56px;
  border-top: 1px solid rgba(0,0,0,.08);
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}

.contact-h, .contact-sh{
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111827;
}

.contact-h{ margin: 0 0 14px; font-size: 16px; }
.contact-sh{ margin: 22px 0 8px; font-size: 14px; }

.contact-p{
  margin: 0;
  color: rgba(17,24,39,.78);
  font-size: 16px;
  line-height: 1.7;
}

.contact-link{
  color: #1e40af;
  font-weight: 800;
  text-decoration: none;
}
.contact-link:hover{ text-decoration: underline; }

.contact-fake{
  color: rgba(17,24,39,.45);
  font-size: 13px;
  margin-left: 6px;
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; gap: 26px; }
}

/* ================== NOTICIAS (✅ sin diagonal aquí, ya lo hace Contacto) ================== */
.section-video{
  background: var(--dark);
  padding: 34px 0 52px;
}

.news-title{ margin: 0 0 14px; font-size: 30px; color: #ffffff; }
.news-grid{ display: grid; grid-template-columns: 1fr; gap: 14px; }

.news-card{
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  background: rgba(15, 23, 42, .62);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  padding: 12px;
  backdrop-filter: blur(10px);
}

.news-thumb{
  width: 160px;
  height: 96px;
  border-radius: 10px;
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255,255,255,.10);
}

.news-meta{
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  margin-bottom: 6px;
}

.news-tag{
  background: rgba(119,200,255,.18);
  border: 1px solid rgba(119,200,255,.28);
  color: rgba(255,255,255,.92);
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 700;
}

.news-headline{ margin: 0; font-size: 18px; color: #ffffff; }
.news-desc{ margin: 8px 0 0; color: rgba(255,255,255,.86); font-size: 14px; }

.news-link{
  display: inline-block;
  margin-top: 10px;
  color: var(--link);
  font-weight: 800;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: .6px;
  font-size: 12px;
}

.legal-note{ margin: 16px 0 0; color: rgba(255,255,255,.70); font-size: 13px; }

.footer{
  padding: 18px 40px 30px;
  font-size: 14px;
  color: rgba(255,255,255,.75);
  background: transparent;
}

/* RESPONSIVE */
@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; gap: 16px; }
  .about-title{ font-size: clamp(28px, 7vw, 44px); max-width: 22ch; }
  .about-text{ font-size: 16px; max-width: 78ch; }
  .hero-panel{ padding: 22px; border-radius: 16px; }
  .cards.cards--wide{ grid-template-columns: 1fr; }
  .services-head h2{ font-size: 34px; }
  .news-card{ grid-template-columns: 1fr; }
  .news-thumb{ width: 100%; height: 180px; }
}

@media (max-width: 768px){
  :root{ --header-h: 90px; --hero-min: 440px; --diag-h: 110px; --contact-diag-h: 150px; }
  .header{ padding: 16px 18px; }
  .header img{ height: 58px; }
}

