/* RESET Y FUENTE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    overflow-x: hidden;
}

/* HEADER & NAV (ESTILO COMPARTIDO) */
header {
    width: 100%;
    padding: 20px 50px;
    position: fixed;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.9);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 300;
    font-size: 0.9rem;
    transition: 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: #888;
}

/* SECCIÓN DE CUENTOS */
.section-header {
    padding: 150px 20px 50px;
    text-align: center;
}

.section-header h1 {
    font-size: 3rem;
    letter-spacing: 5px;
    margin-bottom: 10px;
}

.section-header p {
    color: #888;
    font-weight: 300;
}

.cuentos-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 50px 20px;
}

.cuento-item {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 120px;
}

.cuento-item.reverse {
    flex-direction: row-reverse;
}

.cuento-img-wrapper {
    flex: 1;
}

.cuento-img-wrapper img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.cuento-text {
    flex: 1;
}

.cuento-text h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    border-left: 3px solid #fff;
    padding-left: 20px;
}

.cuento-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    text-align: justify;
    font-weight: 300;
}

/* FOOTER STYLES */
.main-footer {
  background-color: #050505;
  color: white;
  padding: 80px 60px 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: 'Montserrat', sans-serif;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.footer-brand .logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #888;
  font-weight: 300;
  max-width: 300px;
  line-height: 1.6;
}

.main-footer h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 25px;
  font-weight: 500;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav ul li {
  margin-bottom: 12px;
}

.footer-nav ul li a, 
.social-links a {
  color: #888;
  text-decoration: none;
  font-weight: 300;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover, 
.social-links a:hover {
  color: #ffffff;
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
}

.footer-bottom p {
  color: #444;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
  /* Forzar que el contenido de la navegación se centre */
  .footer-nav {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra el título y la lista */
    width: 100%;
  }

  .footer-nav ul {
    text-align: center; /* Centra el texto dentro de la lista */
    padding: 0;
    margin: 0 auto;
    list-style: none;
    width: 100%;
  }

  .footer-nav ul li {
    margin-bottom: 15px;
    width: 100%;
  }

  /* Mejorar visibilidad y área de toque */
  .footer-nav ul li a {
    display: block;
    color: #ffffff; /* Color blanco para que se vea (en tu foto se ve gris oscuro) */
    font-size: 1rem;
    text-decoration: none;
    padding: 5px 0;
  }
  
  /* Centrar también la sección de contacto */
  .footer-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* RESPONSIVE DISEÑO */
@media (max-width: 1024px) {
  header {
    padding: 15px 30px;
  }

  .nav-links {
    gap: 15px;
  }

  .nav-links a {
    font-size: 0.8rem;
  }

  .section-header {
    padding: 130px 15px 40px;
  }

  .section-header h1 {
    font-size: 2.2rem;
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .cuentos-container {
    padding: 40px 15px;
  }

  .cuento-item {
    gap: 30px;
    margin-bottom: 80px;
  }

  .cuento-img-wrapper img {
    height: 350px;
  }

  .cuento-text h2 {
    font-size: 1.5rem;
  }

  .cuento-text p {
    font-size: 0.95rem;
  }
}

@media (max-width: 768px) {
  header {
    padding: 12px 20px;
  }

  .logo img {
    height: 40px;
  }

  .nav-links {
    gap: 12px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.75rem;
  }

  .section-header {
    padding: 100px 15px 30px;
  }

  .section-header h1 {
    font-size: 1.8rem;
    letter-spacing: 3px;
  }

  .section-header p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .cuentos-container {
    padding: 30px 12px;
  }

  .cuento-item,
  .cuento-item.reverse {
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
  }

  .cuento-img-wrapper {
    width: 100%;
  }

  .cuento-img-wrapper img {
    width: 100%;
    height: 300px;
    object-fit: cover;
  }

  .cuento-text {
    width: 100%;
  }

  .cuento-text h2 {
    font-size: 1.3rem;
    padding-left: 15px;
    margin-bottom: 15px;
  }

  .cuento-text p {
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: left;
  }

  .footer-nav ul {
    text-align: left;
  }
}

@media (max-width: 480px) {
  header {
    padding: 10px 12px;
  }

  .logo img {
    height: 35px;
  }

  .nav-links {
    gap: 8px;
    font-size: 0.65rem;
  }

  .section-header {
    padding: 80px 12px 20px;
  }

  .section-header h1 {
    font-size: 1.4rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
  }

  .section-header p {
    font-size: 0.75rem;
    line-height: 1.4;
  }

  .cuentos-container {
    padding: 20px 10px;
  }

  .cuento-item {
    margin-bottom: 40px;
  }

  .cuento-img-wrapper img {
    height: 220px;
  }

  .cuento-text h2 {
    font-size: 1.1rem;
    padding-left: 12px;
    margin-bottom: 12px;
  }

  .cuento-text p {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .main-footer {
    padding: 40px 20px 20px;
  }

  .footer-content {
    gap: 30px;
    margin-bottom: 30px;
  }

  .footer-brand .logo {
    font-size: 1.2rem;
  }

  .footer-brand p {
    font-size: 0.8rem;
  }

  .main-footer h4 {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .footer-nav ul li a,
  .social-links a {
    font-size: 0.8rem;
  }

  .footer-bottom p {
    font-size: 0.7rem;
  }
}