/* =======================
   ESTILOS GENERALES
======================= */
:root {
  --bg: #000;
  --bg-2: #111;
  --txt: #fff;
  --muted: #666;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  background-color: var(--bg);
  font-family: "Roboto", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

/* Reset de márgenes básicos */
h1, p { margin: 0; }

/* =======================
   HEADER Y NAVBAR
======================= */
.header {
  border: 1px solid #000;
  background-color: var(--bg);
}

.barra { overflow: hidden; }

.textosNav {
  font-weight: 300;
  font-size: 18px;
  color: var(--txt);
}

/* =======================
   NAVBAR DROPDOWN (base)
======================= */
.dropdown-menu li {
  position: relative;
  text-align: center;
}

.navbar .dropdown-menu .dropdown-item {
  font-size: 20px;
}

/* =======================
   SUBMENÚ VERTICAL (hacia abajo)
   — antes salía hacia el lado por position:absolute + left:100%
   — ahora lo dejamos estático y desplegable debajo
======================= */
.dropdown-menu .dropdown-submenu {
  position: static !important;   /* anula flyout lateral */
  left: auto !important;
  top: auto !important;

  display: none;                 /* se mostrará por hover o por .show */
  margin-top: .25rem;            /* pequeño espacio */
  padding: .25rem 0;
  width: 100%;                   /* ocupar ancho del contenedor padre */
  background-color: #212529;     /* combina con .dropdown-menu de Bootstrap oscuro */
  border: 1px solid rgba(255,255,255,.1);
  border-radius: .25rem;
}

/* Mostrar el submenú cuando se hace hover o focus (desktop/teclado) */
.dropdown-menu > li:hover > .dropdown-submenu,
.dropdown-menu > li:focus-within > .dropdown-submenu {
  display: block;
}

/* Soporte para abrir/cerrar por clic (JS añade/remueve .show) */
.dropdown-menu .dropdown-submenu.show {
  display: block;
}

/* Indentación visual de los hijos del submenú */
.dropdown-menu .dropdown-submenu .dropdown-item {
  text-align: center;
  padding-left: 2rem;
}

/* Evita que el hover en submenú cierre el padre por padding colapsado */
.dropdown-menu .dropdown-submenu .dropdown-item:hover {
  background-color: rgba(255,255,255,.1);
}

/* =======================
   TIPOGRAFÍA Y TEXTOS
======================= */
.titulos {
  color: var(--txt);
  font-weight: 700;
  font-size: 54px;
}

.frases {
  font-weight: 300;
  font-size: 38px;
  color: var(--txt);
}

.textos {
  font-weight: 300;
  font-size: 24px;
  color: var(--txt);
}

.hastag {
  font-family: "Arial", sans-serif;
  font-weight: 300;
  color: var(--muted);
}

/* =======================
   GALERÍA
======================= */
.cf {
  padding: 0;
  margin: auto;
}

/* =======================
   ÚLTIMAS ENTRADAS
======================= */
.uentradas {
  font-size: 30px;
  font-weight: 300;
  padding: 3%;
  background-color: var(--bg-2);
  color: var(--txt);
  text-align: justify;
  border-radius: 20px;
}

.titulo_entrada { color: var(--txt); margin: 0 auto; }

.texto_entrada {
  font-weight: 300;
  font-size: 30px;
  color: var(--txt);
  margin: 0 auto;
}

/* =======================
   BIO
======================= */
.bio {
  font-size: 30px;
  font-weight: 300;
  padding: 2%;
  background-color: var(--bg-2);
  color: var(--txt);
  text-align: justify;
}

/* =======================
   CONTACTO / BOTONES
======================= */
.btn-custom {
  background-color: #fff;
  color: #000;
  border: 1px solid #000;
}

.btn-custom:hover {
  background-color: #000;
  color: #fff;
}

/* =======================
   FOOTER
======================= */
.footer {
  background-color: #fff;
  padding: 20px 0;
}

.footer a {
  color: #343a40;
  text-decoration: none;
}

.footer a:hover {
  color: #000;
  text-decoration: none;
}

.footer .social-icons a {
  margin: 0 10px;
  color: #000;
  font-size: 24px;
}

.footer .social-icons a:hover { color: #000; }

/* =======================
   ICONOS Y ELEMENTOS EXTRA
======================= */
.code-icons a {
  margin: 0 10px;
  color: var(--txt);
  font-size: 24px;
}

.social-icons-page a {
  color: var(--txt);
  margin-right: 10px;
  text-decoration: none;
  font-size: 20px;
}

/* =======================
   HR LÍNEA DIVISORA
======================= */
.linea-ancha {
  height: 3px;
  background-color: #ffffff;
  width: 100%;
  margin: auto;
}

/* =======================
   LINEA HASTAGS
======================= */
.hastags::before {
  content: "#narrativa #animación2d #animación3d #videojuegos #mediosInteractivos #ia #machineLearning #investigación;";
  font-family: "Arial", sans-serif;
  color: var(--muted);
  display: inline-block;
}

/* =======================
   (Opcional) Ajustes de color del dropdown oscuro
======================= */
.dropdown-menu {
  background-color: #212529;         /* dropdown oscuro */
  border: 1px solid rgba(255,255,255,.1);
}
.dropdown-item { color: #f8f9fa; }
.dropdown-item:hover,
.dropdown-item:focus { color: #fff; background-color: rgba(255,255,255,.08); }

/* =======================
   RESPONSIVE
======================= */
@media (max-width: 992px) {
  /* Mejor legibilidad en móvil */
  .titulos { font-size: 36px; }
  .navbar-nav.d-flex.flex-fill.justify-content-evenly {
    justify-content: start !important;
    gap: .25rem;
  }
  .dropdown-menu .dropdown-submenu .dropdown-item {
    padding-left: 1.5rem;
  }
}
