#header-principal {
  background: transparent !important;
  height: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}


/* =======================================================
   🔹 DESACTIVAR TODAS LAS ANIMACIONES EN DISPOSITIVOS LENTOS
   🔹 Mantener el contenido visible sin efectos
   ======================================================= */

/* Detecta equipos lentos o con preferencia de menos movimiento */
  /* Toggle principal */
        .toggle-wrapper {
        position: absolute; /* fijo en la pantalla */
        top: 533px;
        right: 20px;
        width: 80px;
        height: 30px;
        background: #f1f1f1;
        border-radius: 30px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 3px;
        cursor: pointer;
        transition: background 0.3s;
        z-index: 1000;
        }

        /* Bola del toggle */
        .toggle-ball {
        width: 24px;
        height: 24px;
        background: #ffcc00;
        border-radius: 50%;
        transition: all 0.3s;
        position: absolute;
        left: 3px;
        }

        /* Iconos de sol y luna */
        .toggle-wrapper .sun,
        .toggle-wrapper .moon {
        z-index: 1;
        font-size: 16px;
        user-select: none;
        }

        /* Modo oscuro */
        body.dark-mode {
        background-color: #121212;
        color: #f0f0f0;
        transition: all 0.3s;
        }

        body.dark-mode #titulo {
        color: #ffffff;
        transition: color 0.3s;
        }

        /* Footer oscuro */
        body.dark-mode footer.site-footer {
        background-color: #1a1a1a;
        color: #ccc;
        }

        body.dark-mode footer.site-footer a {
        color: #f4f4f4;
        }

        /* Toggle oscuro */
        body.dark-mode .toggle-wrapper {
        background: #333;
        }

        body.dark-mode .toggle-ball {
        transform: translateX(50px);
        background: #f4f4f4;
        }
    body.modo-simple * {
    animation: none !important;
    transition: none !important;
    }

        /* Ajustes para pantallas pequeñas */
        @media (max-width: 768px) {
        .toggle-wrapper {
          top: 490px; /* más cerca del borde superior */
          right: 15px;
          width: 70px; /* un poco más pequeño en móvil */
        }

        .toggle-ball {
          width: 22px;
          height: 22px;
        }

        .toggle-wrapper .sun,
        .toggle-wrapper .moon {
          font-size: 14px;
          
        }
        body.dark-mode .toggle-ball {
        transform: translateX(45px);}
        }



/* --- PORTADA --- */
.portada {
  position: relative;
  width: 100%;
  height: 28rem;
  overflow: hidden;
  margin-top: 38px;
}

.portada-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.portada-capa {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.portada-contenido {
  position: absolute;
  bottom: 20px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

/* Imagen de perfil */
.perfil {
  width: 8rem;
  height: 8rem;
  border-radius: 50%;
  border: 4px solid white;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Texto */

.texto {
  color: white !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
}


.texto h1 {
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.texto p {
  font-size: 1rem;
  margin-top: 0.25rem;
  color: #f3f4f6;
}

/* --- 📱 MÓVILES --- */
@media (max-width: 768px) {
  .portada {
    height: 24rem;
  }

  .portada-contenido {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    bottom: 10px;
    left: 0;
    right: 0;
    text-align: center;
  }

  .perfil {
    width: 6rem;
    height: 6rem;
    border-width: 3px;
  }

  .texto h1 {
    font-size: 1.5rem;
  }

  .texto p {
    font-size: 0.9rem;
  }
}

/* 🔹 Mejor desplazamiento */
html {
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
