/* === ESTILOS GENERALES === */
html, body {
  height: auto; /* Cambiado de 100% a auto */
  margin: 0;
  padding: 0;
  overflow-x: hidden; /* Evita scroll horizontal no deseado */
}

body {
  /* Quitar flex para que scroll funcione normalmente */
  /* display: flex; */
  /* flex-direction: column; */
  /* min-height: 100vh; */
  background: #fff; /* Fondo para el efecto de luz */
  position: relative;
  overflow-x: hidden;
}

main {
  /* Quitamos flex-grow para que main no limite altura */
  /* flex-grow: 1; */
}

/* El resto queda igual */

section {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
  border-bottom: 1px solid #ddd;
}

section h2 {
  color: #2c3e50;
}

section p {
  color: #555;
  font-size: 1.1em;
  text-align: justify;
}

/* === HEADER === */
header {
  background-color: #2c3e50;
  color: white;
  padding: 30px 20px;
  text-align: center;
}

/* === NAVBAR === */
nav {
  background-color: #34495e;
  padding: 15px 0;
}

.nav-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.menu {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.menu li {
  margin: 0 15px;
}

.menu li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.menu li a:hover {
  text-decoration: underline;
}

/* Redes sociales en NAV */
.social-icons-nav,
.navbar .social-icons-nav {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  color: white;
  font-size: 1.3em;
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons-nav a,
.navbar .social-icons-nav a {
  color: white;
}

.social-icons-nav a:hover,
.navbar .social-icons-nav a:hover {
  color: #ffd700;
  transform: scale(1.2);
}

/* === MEDIA QUERIES === */
@media (max-width: 600px) {
  .nav-container {
    flex-direction: column;
    align-items: center;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu li {
    margin: 10px 0;
  }

  .social-icons-nav {
    margin-top: 15px;
  }
}

/* === SECCIÓN OFIMÁTICA === */
.ofimatica-section {
  background: #ffffff;
  padding: 40px 20px;
  max-width: 800px;
  margin: 40px auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
}

.ofimatica-section h2 {
  color: #0066cc;
  text-align: center;
}

.ofimatica-section p {
  margin-bottom: 20px;
}

/* === CONTENIDO OCULTO CON EFECTO === */
.contenido-extra {
  display: none;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === BOTONES === */

/* Botón base (cromado gris) */
.chrome-btn {
  background: linear-gradient(145deg, #d4d4d4, #f8f8f8, #bcbcbc);
  border: 2px solid #888;
  color: #000;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 16px;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 #fff, 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
  display: block;
  margin: 0 auto;
}

/* Hover y active */
.chrome-btn:hover {
  background: linear-gradient(145deg, #f0f0f0, #ffffff, #c0c0c0);
  box-shadow: inset 0 1px 0 #fff, 0 3px 6px rgba(0, 0, 0, 0.4);
  color: #333;
}

.chrome-btn:active {
  background: linear-gradient(145deg, #cfcfcf, #e0e0e0, #b0b0b0);
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.4);
}

/* Botón personalizado para "Ver más" */
.boton-ver-mas {
  background: linear-gradient(145deg, #28a745, #5cd65c, #1e7e34); /* Verde */
  color: white;
}

/* Botón personalizado para "Ver menos" */
.boton-ver-menos {
  background: linear-gradient(145deg, #dc3545, #f56c6c, #bd2130); /* Rojo */
  color: white;
}

/* === FOOTER === */
footer {
  background: #222;
  color: #eee;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
  font-size: 0.9em;
}

/* Redes sociales en FOOTER */
footer .social-icons {
  margin-top: 10px;
}

footer .social-icons a {
  color: #eee;
  margin: 0 10px;
  font-size: 20px;
  transition: color 0.3s;
}

footer .social-icons a:hover {
  color: #00aced;
}

/* Fondo con capa de luz */
.body-luz {
  position: relative;
  overflow: hidden;
  background: #fff; /* Fondo oscuro para que el efecto resalte */
  transition: background-color 0.3s ease;
}

.luz-efecto {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 0%, transparent 80%);
  box-shadow: 0 0 30px 10px rgba(255,255,255,0.7);
  mix-blend-mode: screen;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: background 0.3s ease;
  pointer-events: none;  /* <== Esto evita que bloquee clicks */
}


.enlace-seccion {
  color: #007bff;
  text-decoration: none!important; /* Quita subrayado */
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
}

.enlace-seccion:hover {
  color: #0056b3;
  transform: translateY(2px);
  text-decoration: none; /* Evita que se subraye al pasar el mouse */
}


.sidebar {
  background-color: #f8f9fa;
  padding: 20px;
  border-left: 3px solid #ccc;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 20px;
}

.sidebar h4 {
  color: #2c3e50;
  margin-bottom: 10px;
}

.sidebar ul li {
  margin-bottom: 8px;
}

.sidebar a {
  text-decoration: none;
  color: #007bff;
}

.sidebar a:hover {
  text-decoration: underline;
  color: #0056b3;
}

