/* ============================================
   ESTILO_V2 — PsicopedagogiaWeb
   Dark Mode + Mesh Gradient + Glassmorphism
   ============================================ */

/* ===== RESET MODERNO ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, picture, svg { max-width: 100%; display: block; height: auto; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }


/* ===== VARIABLES (Azul verdoso con más luz) ===== */
:root {
  --bg-base: #0d1e29; /* Azul verdoso petróleo, más profundo y menos "gris" */
  --bg-panel: rgba(16, 35, 48, 0.7); /* Tarjetas un poco más claras */
  --bg-panel-hover: rgba(22, 48, 66, 0.9);
  --cian: #00f2ff;
  --cian-osc: #00b8c4;
  --cian-suave: rgba(0, 242, 255, 0.15);
  --amarillo: #f4c430;
  --texto: #ffffff;
  --texto-suave: #cbd5e1;
  --blanco: #ffffff;
  --borde: rgba(255, 255, 255, 0.15); /* Bordes un toque más visibles */
  --borde-hover: rgba(0, 242, 255, 0.6);
  --sombra: 0 8px 32px 0 rgba(0, 0, 0, 0.3); 
  --sombra-hover: 0 12px 40px 0 rgba(0, 242, 255, 0.25);
  --radio: 16px;
  --radio-chico: 10px;
}

/* ===== FONDO (Iluminado) ===== */
body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--texto);
  background-color: var(--bg-base);
  
  /* Un gradiente más pronunciado con luz turquesa y verde */
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(0, 242, 255, 0.15), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(74, 155, 127, 0.2), transparent 50%), 
    radial-gradient(circle at 50% 50%, rgba(13, 30, 41, 0.9), transparent 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}




#contenedortotal {
  max-width: 1280px;
  margin: 0 auto;
  background: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== MENÚ PRINCIPAL ===== */
nav.menuprincipal {
  background: rgba(6, 13, 20, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borde);
  width: 100%;
  z-index: 100;
}

.menu1 {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
  gap: 4px;
}

.menu1 li { margin: 0; }

.menu1 li a {
  display: block;
  padding: 16px 22px;
  color: var(--texto);
  text-decoration: none !important;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  transition: all 0.25s ease;
}

.menu1 li a:hover {
  color: var(--cian);
  text-shadow: 0 0 10px var(--cian-suave);
}

/* ===== CABECERA PRINCIPAL ===== */
#cabeceraprincipal {
  padding: 90px 30px;
  text-align: center;
  position: relative;
  background: transparent;
}

.contenedortitulo h1 {
  font-family: 'Lora', serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5), 0 0 20px rgba(0, 242, 255, 0.2);
}

/* ===== ANUNCIOS TOP ===== */
.anuncios-top {
  padding: 20px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.anuncios-top > div {
  background: var(--bg-panel);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--borde);
  border-radius: var(--radio-chico);
  padding: 10px;
  min-height: 120px;
}

/* ===== LAYOUT PRINCIPAL ===== */
#contenedor123 {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 30px;
  padding: 20px 30px 50px;
  flex: 1;
}

#col1ycol2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  min-width: 0;
}

#col1 { min-width: 0; }
main { min-width: 0; }

/* ===== MIGAS DE PAN ===== */
nav.dondeestoy {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--cian);
  margin-bottom: 22px;
  padding: 7px 16px;
  background: rgba(0, 242, 255, 0.1);
  border: 1px solid rgba(0, 242, 255, 0.2);
  border-radius: 20px;
  font-weight: 500;
}

nav.dondeestoy ul {
  list-style: none;
  display: flex;
  gap: 6px;
  padding: 0;
  margin: 0;
}

/* ===== TEMA PRINCIPAL (Tarjetas Glass) ===== */
div.temaprincipal {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 40px;
  border-radius: var(--radio);
  border: 1px solid var(--borde);
  box-shadow: var(--sombra);
}

h2.tituloh2 {
  font-family: 'Lora', serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 600;
  color: var(--blanco);
  margin: 45px 0 22px;
  line-height: 1.35;
  position: relative;
  padding-left: 22px;
  text-align: left;
}

h2.tituloh2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background: var(--cian);
  box-shadow: 0 0 12px var(--cian);
  border-radius: 4px;
}

h2.tituloh2:first-of-type { margin-top: 5px; }

h3.tituloh3 {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1rem, 1.9vw, 1.18rem);
  font-weight: 600;
  color: var(--cian-osc);
  margin: 35px 0 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: left;
}

div.temaprincipal p {
  font-size: 1rem;
  color: var(--texto-suave);
  margin-bottom: 18px;
  line-height: 1.8;
  text-indent: 0;
}

div.temaprincipal hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 242, 255, 0.3), transparent);
  margin: 50px 0;
}

/* ===== ANUNCIOS INTERNOS ===== */
.anuncio-inarticle, .anuncio-prefooter {
  margin: 35px 0;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: var(--radio-chico);
  border: 1px dashed rgba(0, 242, 255, 0.2);
}

/* ===== GRILLA DE CLUSTERS (Glass Cards con vida) ===== */
#contenedor-grilla {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 20px;
  margin: 28px 0;
  padding: 0;
}

.cluster {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 22px 14px;
  text-align: center;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 195px;
  position: relative;
  overflow: hidden;
}

.cluster::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--cian);
  box-shadow: 0 0 10px var(--cian);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.cluster:hover {
  transform: translateY(-8px);
  background: var(--bg-panel-hover);
  border-color: var(--borde-hover);
  box-shadow: var(--sombra-hover);
}

.cluster:hover::before { transform: scaleX(1); }

.cluster a {
  text-decoration: none;
  color: var(--texto);
  font-weight: 500;
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  transition: color 0.3s;
  line-height: 1.4;
}

.cluster a:hover { color: var(--blanco); }

.cluster img {
  width: 90px;
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  padding: 10px;
  transition: transform 0.4s ease;
  filter: brightness(0) invert(1) sepia(1) saturate(5) hue-rotate(280deg) drop-shadow(0 0 8px rgba(255, 0, 128, 0.4));
}

.cluster:hover img { transform: scale(1.1) rotate(3deg); }



.cluster .emoji-titulo {
  font-size: 1.4rem;
  margin-bottom: 4px;
  display: block;
}

/* ===== SIDEBAR ===== */
aside#col3 {
  display: flex;
  flex-direction: column;
  gap: 22px;
  height: fit-content;
}

.caja-sidebar {
  background: var(--bg-panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--borde);
  border-radius: var(--radio);
  padding: 22px;
  box-shadow: var(--sombra);
}

.caja-sidebar h3 {
  font-family: 'Lora', serif;
  font-size: 1.05rem;
  color: var(--cian);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--borde);
  text-align: center;
}

/* ===== MENÚ SECUNDARIO ===== */
nav.navsecundario ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 0;
}

nav.navsecundario ul li a {
  display: block;
  padding: 11px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--texto-suave);
  text-decoration: none;
  border-radius: var(--radio-chico);
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  transition: all 0.25s ease;
  border-left: 3px solid transparent;
}

nav.navsecundario ul li a:hover {
  background: rgba(0, 242, 255, 0.1);
  color: var(--blanco);
  border-left-color: var(--cian);
  padding-left: 20px;
}

/* ===== REGISTRO CHICO ===== */
.caja-registro { text-align: center; }

a.boton-registro {
  display: inline-block;
  padding: 14px 20px;
  background: var(--cian);
  color: #000;
  text-decoration: none;
  border-radius: var(--radio-chico);
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 15px rgba(0, 242, 255, 0.4);
  width: 100%;
}

a.boton-registro:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 25px rgba(0, 242, 255, 0.7);
}

/* ===== REDES SOCIALES ===== */
.redes-sociales {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 35px 0 10px;
  flex-wrap: wrap;
}

.redes-sociales a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transition: all 0.3s ease;
  border: 1px solid var(--borde);
}

.redes-sociales a:hover {
  background: var(--cian);
  transform: translateY(-4px);
  box-shadow: 0 0 20px rgba(0, 242, 255, 0.4);
  border-color: var(--cian);
}

.redes-sociales img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transition: filter 0.3s;
}

.redes-sociales a:hover img {
  filter: brightness(0); /* Iconos negros al hacer hover */
}

/* ===== FOOTER ===== */
footer#pieprincipal {
  background: rgba(4, 9, 15, 0.9);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--borde);
  color: var(--texto-suave);
  padding: 45px 30px 25px;
  margin-top: 20px;
  width: 100%;
}

.footer-contenido {
  max-width: 1000px;
  margin: 0 auto;
}

/* ===== REPOSITORIO EN FOOTER ===== */
.repositorio {
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radio-chico);
  padding: 22px;
  margin-bottom: 30px;
  border: 1px solid var(--borde);
}

.repositorio h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--cian);
  text-align: center;
  margin-bottom: 6px;
}

.repositorio .subtitulo {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.6;
  margin-bottom: 16px;
}

.repositorio-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 10px;
}

.repositorio-links a {
  color: var(--texto-suave);
  text-decoration: none;
  font-size: 0.78rem;
  padding: 4px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  transition: all 0.25s ease;
  border: 1px solid transparent;
}

.repositorio-links a:hover {
  color: var(--cian);
  background: rgba(0, 242, 255, 0.1);
  border-color: rgba(0, 242, 255, 0.3);
}

/* ===== FOOTER GENERAL ===== */
.footer-legal { text-align: center; margin-bottom: 15px; }
.footer-legal a {
  color: var(--texto);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}
.footer-legal a:hover { color: var(--cian); }

.footer-copy { text-align: center; margin-bottom: 12px; font-size: 0.88rem; }
.footer-copy a { color: var(--cian); text-decoration: none; }
.footer-copy a:hover { text-decoration: underline; }

.footer-datos {
  text-align: center;
  font-style: normal;
  font-size: 0.82rem;
  opacity: 0.6;
  line-height: 1.6;
}

.footer-drones {
  text-align: center;
  background: #0E1028;
  padding: 14px;
  margin: 25px -30px -25px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--borde);
}

.footer-drones span { color: #ffffff; font-family: sans-serif; font-size: 14px; letter-spacing: 1px; }

.footer-drones a {
  color: var(--cian);
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  text-transform: uppercase;
  border: 1px solid var(--cian);
  padding: 5px 15px;
  border-radius: 20px;
  transition: 0.3s;
}

.footer-drones a:hover { background: var(--cian); color: #000; box-shadow: 0 0 15px var(--cian); }

/* ===== RESPONSIVE CORREGIDO ===== */
@media (max-width: 1024px) {
  #contenedor123 { grid-template-columns: 1fr; padding: 20px 20px 40px; }
  .anuncios-top { grid-template-columns: 1fr; padding: 15px 20px; }
  div.temaprincipal { padding: 30px 25px; }
}

@media (max-width: 768px) {
  .menu1 li a { padding: 12px 14px; font-size: 0.95rem; } 
  #cabeceraprincipal { padding: 60px 20px; }
  div.temaprincipal { padding: 22px 18px; }
  #contenedor-grilla { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .cluster { min-height: 165px; padding: 16px 10px; }
  .cluster img { width: 65px; height: 65px; }
  .cluster a { font-size: 0.9rem; } 
}

@media (max-width: 480px) {
  .menu1 { gap: 0; }
  .menu1 li a { padding: 10px 12px; font-size: 0.78rem; }
  .contenedortitulo h1 { font-size: 1.3rem; }
  div.temaprincipal { padding: 20px 15px; }
  #contenedor-grilla { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cluster { min-height: 150px; padding: 14px 8px; }
  .cluster img { width: 55px; height: 55px; }
  .cluster a { font-size: 0.72rem; }

  /* Enlaces del repositorio: cómodos al tacto pero visualmente secundarios */
  .repositorio a, 
  .contenedores-anteriores a {
    font-size: 0.82rem !important;
    font-weight: 400 !important;
    padding: 9px 15px !important;
    margin: 4px 3px !important;
    display: inline-block !important;
    opacity: 0.9;
  }
}
/* ===== BANNER DE REESTRUCTURACIÓN ===== */
.banner-aviso {
  background: #f4c430; /* Amarillo cálido */
  color: #1a2430; /* Azul oscuro para que contraste bien */
  text-align: center;
  padding: 10px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1000;
}

/* Si querés que en el celular se vea bien */
@media (max-width: 768px) {
  .banner-aviso {
    font-size: 0.8rem;
    padding: 8px 10px;
  }
}
/* ===== ESTILOS GENERALES DE ENLACES ===== */
a {
  text-decoration: none; /* Saca el subrayado a TODOS los enlaces por defecto */
  transition: color 0.3s ease; /* Hace que el cambio de color al pasar el mouse sea suave */
}

/* Le devuelve el subrayado SOLO a los enlaces que están dentro de los párrafos de texto */
div.temaprincipal p a {
  text-decoration: underline;
  color: var(--cian); /* Los pinta de turquesa para que resalten en la lectura */
}

div.temaprincipal p a:hover {
  color: var(--blanco); /* Al pasar el mouse se ponen blancos */
}

/* ===== QUITAR SUBRAYADO ===== */
a, 
.cluster a, 
.cluster a:hover,
.menu1 li a {
  text-decoration: none !important;
}

/* Y si querés que el texto de las tarjetas se vea aún mejor, le damos un poco de aire */
.cluster .emoji-titulo,
.cluster img + * { 
  text-decoration: none !important;
}