html {
  height: auto;           /*ocupar toda la pantalla */
  margin: 5px;              /* quitar márgenes */
  display: flex;
  flex-direction: column; /* apilar header, main y footer */
}
body {
    margin: 10px;
    padding: 0;
    background-image: url(../imagenes/galaxia.jpg);
    background-size: cover;
    background-position: center;
    overflow-y: auto;
    height: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
}
h6 {
    color: white;
}
main {
  flex: 1;                /* ocupa todo el espacio disponible */
}
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    color: white;
    padding: 10px 20px;
    text-align: left;
}
.content {
    height: 100%;
    position: relative;
    overflow: hidden; /* evita que se salga del main */
    min-height: 500px; /* dale un alto para ver la galaxia */
    background: black; /* color de fondo */
    padding: 2rem;
}
/*.card {
  background-color: transparent !important;
}*/
.stars, .shooting-star {
    position: absolute;
    width: 100%;
    height: 100%;
}
.star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle infinite;
}
.stars {
  pointer-events: none;
  z-index: 1; /* Asegura que esté detrás de los elementos interactivos */
}

@keyframes twinkle {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}
.shooting-star {
    position: absolute;
    width: 150px; /* largo de la estela */
    height: 4px;  /* grosor de la estrella fugaz */
    background: linear-gradient(90deg, white );
    border-radius: 50%;
    transform: rotate(45deg); /* inclinación de 45 grados */
    animation: shoot 2s linear forwards;
    opacity: 0.8; /* un poco de transparencia para más realismo */
    filter: drop-shadow(0 0 6px white); /* brillo */
}

@keyframes shoot {
    0% {
        transform: translate(-20%, -20%) rotate(45deg); /* sale de arriba a la izquierda */
        opacity: 1;
    }
    100% {
        transform: translate(120vw, 120vh) rotate(45deg); /* recorre toda la pantalla hasta abajo a la derecha */
        opacity: 0;
    }
}
i.fab:hover {
  color: #007bff; /* Azul Bootstrap */
  transition: color 0.3s ease;
}
img {
    display: block;
    width: 100%;
    max-width: 100%;
}
.logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    text-align: left;
    margin: o;
}
.bold {
    font-weight: 950; /*Letra más gruesa*/
    color: white; /*Esta condición es opcional: cambiar color*/
}
.container {
    width: 100%;
    margin: auto;
}
.main-nav {
    width: 100%;
    position: relative;
    z-index: 2000;
    padding: 10px;
}
/*Boton Hamburguesa*/
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 4px 0;
  transition: 0.3s;
}
/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    .navbar {
        display: none;
        flex-direction: column;
        background-color: #333;
        width: 100%;
    }
    .navbar.active {
        display: flex;
    }
    .nav_enlace {
        padding: 10px;
        border-bottom: 1px solid #444;
    }
}
.navbar{
    position: fixed;
    top: 0;
    left: 10px;
    width: 50%;
    color: white;
    padding: 0;
    z-index: 1000;
}

.contenedor-login {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.img-login {
    width: 30px; /* Tamaño inicial */
    height: auto; /* Mantiene la proporción */
    max-width: 100%; /* Evita que la imagen sobrepase su contenedor */
    margin: 10px;
}
.img-login:hover {
    color: #2c8cf4;
}
.clave {
    color: #0056B3;
    cursor: pointer;
}
.input-wrapper {
    position: relative;
    width: 350px;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 10px 10px 10px; /* espacio para el ojito */
    font-size: 16px;
    height: 40px;
    line-height: 40px;
    box-sizing: border-box;
}

.toggle-visibility {
    position: absolute;
    right: 10px;
    top: 70%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}
/* Ajustes para pantallas más pequeñas */
@media (max-width: 768px) {
    .img-login {
        display: flex;
        align-items: center; /* Alinea verticalmente los elementos */
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .img-login {
        width: 80px;  /*Reduce el tamaño en pantallas pequeñas*/
    }
}
.nav_enlace {
    color: white;
    text-decoration: none;
    padding: 0;
    margin: 5px;
}
.nav_enlace:hover {
    color: #2c8cf4;
    font-weight: bold;
}
a {
    text-decoration: none;
}
.avatar {
    width: 75%;
    margin: 25px auto;
}
.card {
    width: 350px;
    transition: all ease-in;
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    padding: 1rem;
    margin: 10px auto;
}

.imagen-header {
    width: 100%;
    height: 450px;
}
body{
    background-color: rgba(234, 234, 234, 0.918);
}
title{
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}
h1, h2 {
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
}
.nombre {
    color: white;
    margin: 20px;
}
.conoceme {
    color: white;
    font-size: 20px;
}
/*.titulo:hover {
    color: #2c8cf4;
}*/
.text-contact {
    color: white;
}
a{
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
}
p{
    font-family: Arial, Helvetica, sans-serif;
    text-align: center;
    font-size: 20px;
}
.centrar-texto {
    padding: 2rem;
}
.boton {
    display: block;
    font-family: Arial, Helvetica, sans-serif;
    background: black;
    color: white;
    font-weight: bold;
    width: 100%;
    text-align: center;
    text-decoration: none;
    padding: 5px;
    border-radius: 5px;
}
.boton:hover {
    background-color: #0056b3;
}
/*Footer*/
footer {
    display: flex;
    flex-direction: column;
    min-height: 10vh;
    flex: 1;
    background: #222;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Contenedor del formulario contacto */
.container {
    padding: 2rem;
    width: 50%;
    min-width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}
.container--flex {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.column {
  padding: 20px;
}

.column--50 {
  width: 50%;
}
.contenedor-tabla {
    padding: 1rem;
    margin-top: 20px 20px;
}
.subtitulo {
    color: white;
    padding: 1rem;
}
.subtitulo:hover {
    color: #0056b3;
    font-weight: bold;
    cursor: pointer;
}
.btn {
    margin: 20px 5px;
}
.btn-contacto{
    background-color: red;
    color: white;
    border: none;
    font-weight: bold;
    border-radius: 5px;

}
.btn-contacto:hover {
    background-color: #56030fe0;
}
/* Títulos */
h2 {
    margin-bottom: 10px;
    color: #333;
}
/* Etiquetas */
label {
    display: block;
    margin: 10px 0 5px;
    text-align: left;
    font-weight: bold;
    color: #555;
}
/* Campos de entrada */
input, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
}
/* Diseño responsivo */
@media (max-width: 600px) {
    .container {
        width: 90%;
    }
}
/*Consulta contacto*/
.table thead {
    background-color: #007bff;
    color: white;
}
.table tbody tr:hover {
    background-color: #f1f1f1;
}
.parrafo {
    color: white;
    text-align: justify;
    margin: 10px;
}
/*Front End*/
.imagen-frontend {
    width: 100%;          /* se ajusta al contenedor */
    height: 50%;         /* mantiene proporción */
    box-shadow: 0 0 10px rgba(0,0,0,0.1); /* opcional: sombra suave */
  }
.contenedor-columna {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px;
    gap: 40px;
    background-color: #f5f5f5;
}
.columna-texto {
    flex: 1;
}
.columna-texto {
    padding: 20px;
    color: #333;
}
.columna-texto h2 {
    font-size: 2em;
    margin-bottom: 15px;
}
.columna-texto p {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: justify;
}
.columna-imagen img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}
/* Responsive */
@media (max-width: 768px) {
    .contenedor-dos-columnas {
      flex-direction: column;
      text-align: center;
    }
    .columna-texto, .columna-imagen {
      flex: unset;
      width: 100%;
    }  
    .columna-imagen img {
      max-width: 100%;
    }
}
.imagen-texto {
    position: relative;
    display: inline-block;
    width: fit-content;
  }
.imagen-frontend {
    display: block;
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
}
.texto-imagen {
    position: absolute;
    bottom: 100px;
    left: 35%;
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 30px;
    font-weight: 900;
  }
  
  /* RESPONSIVO para móviles */
@media (max-width: 768px) {
    .navbar {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #444;
        position: absolute;
        top: 60px;
        left: 0;
        padding: 10px 0;
    }
    .navbar.active {
        display: flex;
    }
    .menu-toggle {
        display: block;
    }
    .main-header {
        position: relative;
        flex-wrap: wrap;
    }
}
/*Fotmato Registro*/
form {
    width: 400px;
    margin: 50px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #F9F9F9;
}
.form-group {
    margin-bottom: 15px;
}
.title {
  margin-bottom: 20px;
  font-size: 24px;
  text-align: left;
}
label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}
input [type="text"],
input [type="email"],
input [type="password"] {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border-radius: 5px;
    border: 1px solid #ccc;
}
input [type="submit"] {
    width: 100px;
    padding: 10px;
    background-color: #007BCC;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
input [type="submit"]:hover {
    background-color: #0056b0;
}