/* Fuente y reset */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #090329;
    color: #ffffff;
    line-height: 1.6;
}

/* Fade-in general */
.fade-in {
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Encabezado */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1e1e1e;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.logo {
    font-weight: 600;
    font-size: 1.2rem;
    color: #ff9800;
}

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ddd;
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 4px;
    transition: background 0.3s;
}

nav ul li a:hover,
nav ul li a.active {
    background: #0078d7;
    color: #fff;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    color: white;
}

/* Hero */
.hero {
    text-align: center  ;
    padding: 30px 20px;
    background: linear-gradient(135deg, #135e81, #00bfff);
    border-radius: 0 0 20px 20px;
    animation: slideUp 1s ease-in-out;
}
@keyframes slideUp {
    from {transform: translateY(50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}
.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.hero p {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.hero img {
    width: 400px;
    height: auto;
    border-radius: 10px;
   }

/* Botón */
.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 10px 20px;
    background: #ff9800;
    color: white;
    border-radius: 25px;
    text-decoration: none;
    transition: transform 0.3s, background 0.3s;
}
.btn:hover {
    transform: scale(1.05);
    background: #e68a00;
}

/* Secciones */
.about {
    padding: 40px 20px;
    text-align:justify;
}
.about h2 {
    color: #ff9800;
    text-align: center;
}


/* Footer */
footer {
    text-align: center;
    padding: 15px;
    background: #1e1e1e;
    color: #bbb;
    margin-top: 40px;
}

/* Responsive */
@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background: #1e1e1e;
        position: absolute;
        top: 60px;
        right: 0;
        width: 200px;
        padding: 10px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    }
    nav ul li {
        margin: 10px 0;
    }
    .menu-toggle {
        display: block;
    }
}

.azul {

    background: #0d5c9c;
}

.projects {
     padding: 10px;
     margin-left: 30px;
     margin-right: 30px;
     text-align: justify;
}
.projects h1, h2 {
    text-align: center;
    color: #ff9800;
    
}

.projects a {
    text-align: center;
}

.projects52 {
     padding: 10px;
     margin-left: 30px;
     margin-right: 30px;
     text-align: justify;
     background: #4966e6;
     border-radius: 15px;
}
.projects52 h1, h2 {
    text-align: center;
    color: #ff9800;
    
}

.projects52 a {
    text-align: center;
}

.autor {
    display: flex;              /* Activa el modo flexbox */
  align-items: center;        /* Centra verticalmente imagen y texto */
  gap: 108px;                   /* Espacio entre imagen y texto */
  margin-left: 60px;
     margin-right: 60px;
}
.autor img {
     width: 50px;
    height: auto;
    border-radius: 5px;
}

.botones {
    display: flex;              /* Activa el modo flexbox */
  align-items: center;        /* Centra verticalmente imagen y texto */
 
  gap: 108px;                   /* Espacio entre imagen y texto */
  margin-left: 60px;
     margin-right: 60px;
}