/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Courier New', monospace;
}

body {
    background-color: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.6;
}

a {
    color: #8be9fd;
    text-decoration: none;
}

/* Header */
header {
    background-color: #1a1a2e;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover {
    background-color: #44475a;
    color: #50fa7b;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../images/hollow-knight-bg.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ff79c6;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.btn {
    background-color: #bd93f9;
    color: #282a36;
    padding: 0.8rem 1.5rem;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #ff79c6;
    transform: translateY(-3px);
}

/* Grid de Contenido */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.card {
    background-color: #282a36;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 1rem;
    color: #50fa7b;
}

.card p {
    padding: 0 1rem 1rem;
}

/* Página de Historia */
.historia {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.historia h1 {
    text-align: center;
    margin-bottom: 2rem;
    color: #ff79c6;
}

.timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #bd93f9;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: #ff79c6;
    border: 4px solid #bd93f9;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #bd93f9;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #bd93f9;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #bd93f9;
    border-width: 10px 10px 10px 0;
    border-color: transparent #bd93f9 transparent transparent;
}

.right::after {
    left: -12px;
}

.content {
    padding: 20px 30px;
    background-color: #282a36;
    position: relative;
    border-radius: 6px;
}

/* Footer */
footer {
    background-color: #1a1a2e;
    padding: 2rem;
    text-align: center;
    margin-top: 2rem;
}

.social {
    margin-top: 1rem;
}

.social a {
    margin: 0 10px;
}

.social img {
    width: 30px;
    height: 30px;
}

/* Responsive */
@media screen and (max-width: 768px) {
    header {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 1rem;
    }
    
    .timeline::after {
        left: 31px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }
    
    .timeline-item::before {
        left: 60px;
        border: medium solid #bd93f9;
        border-width: 10px 10px 10px 0;
        border-color: transparent #bd93f9 transparent transparent;
    }
    
    .left::after, .right::after {
        left: 18px;
    }
    
    .right {
        left: 0%;
    }
}
/*segunda parte */
 



    /* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0f0f1a;
    color: #e0e0e0;
    line-height: 1.6;
}

header {
    background-color: #1a1a2e;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo img {
    height: 60px;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li a {
    color: #e0e0e0;
    text-decoration: none;
    padding: 0.5rem 1rem;
    margin: 0 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav ul li a:hover, nav ul li a.active {
    background-color: #4a4a6e;
    color: #ffffff;
}

.audio-controls {
    display: flex;
    gap: 10px;
}

.audio-controls button {
    padding: 0.5rem 1rem;
    background-color: #4a4a6e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.audio-controls button:hover {
    background-color: #6a6a8e;
}

main {
    padding: 2rem;
}

.hero {
    text-align: center;
    padding: 4rem 2rem;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../img/hallownest-bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background-color: #6a4a8e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn:hover {
    background-color: #8a6aae;
    transform: translateY(-2px);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background-color: #1a1a2e;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.feature-card h3 {
    color: #d4af37;
    margin-bottom: 0.5rem;
}

footer {
    text-align: center;
    padding: 1.5rem;
    background-color: #1a1a2e;
    margin-top: 2rem;
}

/* Estilos responsivos */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }
}


/* para ajustar*/

/* Estilos base (móvil) */
body {
  font-size: 16px;
}

/* Tablet (768px o más) */
@media (min-width: 768px) {
  body {
    font-size: 18px;
  }
}

/* Escritorio (1024px o más) */
@media (min-width: 1024px) {
  body {
    font-size: 20px;
  }
}.container {
  width: 100%; /* Ocupa el ancho disponible */
  max-width: 1200px; /* Límite para pantallas grandes */
  margin: 0 auto; /* Centrado */
}
.flex-container {
  display: flex;
  flex-wrap: wrap; /* Permite que los elementos se ajusten */
  gap: 16px;
}
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}
img {
  max-width: 100%;
  height: auto;
}