/* Formato del cuerpo de página */

body {
    background-color: #111111;
    color: #f5f5f5;
    font-family: Georgia, "Crimson Text", serif;
    margin: 40px;
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: #f5f5f5;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Fin del formato del cuerpo de página */

/* Inicio del formato de navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 80px;
    flex-wrap: wrap; /* clave */

}

.logo img {
    height: 40px;
}

.nav-links a {
    margin-left: 25px;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-title {
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Fin del formato de navbar */

/* Inicio de configuración para la imagen de EUPM. */ 
.obra {
    min-height: 200vh;

    background-image:
        linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)),
        url("img/Foto\ 1.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 3rem;

.btn-obra {

    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    
    display: inline-block;

    text-decoration: none;
    color: white;

    border: 1px solid white;
    padding: 0.8rem 2rem;

    letter-spacing: 0.15em;
    text-transform: uppercase;

    transition: all 0.3s ease;
}

.btn-obra:hover {
    background-color: white;
    color: black;
}
} /* Fin de configuración para la imagen de EUPM.*/



/* Formato de blog para el diario */

.post-content {
    white-space: normal;
    line-height: 1.9;
    font-size: 1.15rem;
}

.post-content p {
    margin-bottom: 1.5rem;
    white-space: pre-line;
}


.post-list {
    max-width: 700px;
    margin: auto;
    padding: 2rem;
}

.post-link {
    display: block;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 15px;
    text-decoration: none;
    background: rgba(255,255,255,0.05);
    transition: 0.3s;
}

.post-link:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.02);
}

.post-link h2 {
    color: white;
    font-size: 1.6rem;
}

.post-content {
    width: 92%;
    max-width: 1500px;
    margin: auto;
    padding: 3rem;
    background: rgba(255,255,255,0.03);
    border-radius: 20px;
}


.volver {
    display: inline-block;
    margin: 2rem;
    color: white;
    text-decoration: none;
    opacity: 0.7;
}

.volver:hover {
    opacity: 1;
}


/* INICIO -- Código de estilo para plumas*/
/* Fondo de plumas */
.feathers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* no bloquea clicks */
    overflow: hidden;
    z-index: 0;
}

/* Cada pluma */
.feather {
    position: absolute;
    top: -10vh; /* empieza fuera de la pantalla */
    width: 1000px;
    height: 1000px;
    background-image: url('img/feather.png'); /* ruta a la imagen de la pluma */
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.8;
    animation: fall linear infinite;
}

/* Animación de caída */
@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }
    100% {
        transform: translateY(120vh) rotate(360deg);
    }
}
/* FIN -- Código de estilo para plumas*/


/* Para ventana KE&CO */

.author-title {
    text-align: center;
    font-size: 3rem;
    margin-top: 80px;
    letter-spacing: 4px;
}

.author-subtitle {
    text-align: center;
    font-size: 1.2rem;
    opacity: 0.7;
    margin-bottom: 50px;
}

.author-box {
    max-width: 800px;
    margin: auto;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 15px;
    background: rgba(255,255,255,0.03);
}

.author-text {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    margin-bottom: 30px;
}

.author-pillars {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap; /* 👈 esto es lo importante */
    margin-bottom: 30px;
}

.author-pillars span {
    padding: 8px 18px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    font-size: 0.9rem;
    opacity: 0.8;
}

.author-quote {
    text-align: center;
    font-style: italic;
    opacity: 0.6;
}
/* Final de estilo KE&CO. */


/* Formato responsivo*/
@media (max-width: 768px) {

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .nav-links {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .nav-links a {
    padding: 6px 0;
    font-size: 16px;
  }

  .site-title {
    font-size: 18px;
  }
}


@media (max-width: 768px) {
  .post-content {
    padding: 18px;
    margin: 30px auto;
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .post-link {
    padding: 14px;
    font-size: 16px;
  }
}
/* Fin del formato responsivo para móviles.*/



/* Inicio del estilo de partículas. */

.particle {
  position: absolute;
  bottom: -20px;

  width: 4px;
  height: 4px;
  border-radius: 50%;

  /* Color brasa */
  background: rgba(255, 120, 30, 0.9);

  /* Glow */
  box-shadow:
    0 0 8px rgba(255, 80, 20, 0.8),
    0 0 15px rgba(255, 30, 0, 0.4);

  opacity: 0.8;

  animation: emberRise linear infinite,
             emberFlicker ease-in-out infinite;
}

@keyframes emberRise {
  from {
    transform: translateY(0) translateX(0);
  }

  to {
    transform: translateY(-120vh) translateX(40px);
  }
}

@keyframes emberFlicker {
  0%, 100% {
    opacity: 0.2;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.4);
  }
}

/*Fin de la página de partículas. */