/* Estilos globales y paleta de colores Hugo Vecino Pico */
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: linear-gradient(to bottom, #00796B, #00BCD4, #E0F7FA, #FFFFFF);
  color: #0A0F24;
}

/* Header (no sticky) */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
  background: rgba(0, 121, 107, 0.95);
}

.perfil {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 10vw;
}

.foto-perfil {
  width: 140px;
  border-radius: 50%;
  border: 5px solid #00BCD4;
}

.redes a img {
  width: 30px;
  margin: 0 6px;
  filter: brightness(0) invert(1);
  transition: transform 0.2s;
}

.redes a img:hover {
  transform: scale(1.1);
}

.menu ul {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 0;
  margin: 0;
}

.menu a {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.3rem;
  transition: color 0.3s;
}

.menu a:hover {
  color: #E0F7FA;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 60px;
  background: linear-gradient(to right, #004D40, #00BCD4);
  color: #FFFFFF;
  flex-wrap: wrap;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  font-weight: 800;
}

.hero p {
  font-size: 1.4rem;
  margin-bottom: 30px;
}

.btn-cta {
  background-color: #004D40;
  color: #FFFFFF;
  padding: 16px 34px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.btn-cta:hover {
  background-color: #00332C;
}

/* Secciones con franjas amplias y diferenciadas */
section {
  padding: 100px 60px;
}

.sobre-mi {
  background-color: #E0F7FA;
  color: #004D40;
  text-align: center;
}

.ecosistema {
  background-color: #FFFFFF;
  color: #0A0F24;
}

.libros {
  background-color: #B2DFDB;
  color: #0A0F24;
  text-align: center;
}

.sobre-mi h2,
.ecosistema h2,
.libros h2 {
  font-size: 2.4rem;
  margin-bottom: 30px;
  font-weight: 700;
}

.tarjetas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.tarjeta {
  background-color: #FFFFFF;
  color: #0A0F24;
  padding: 28px;
  border-radius: 18px;
  width: 270px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.1);
}

/* Carrusel Libros */
.libros-carousel {
  max-width: 1000px;
  margin: 60px auto;
  position: relative;
}

.swiper-slide {
  background-color: #FFFFFF;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.15);
}

.swiper-slide img {
  width: 70%;
  height: auto;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.btn-comprar {
  display: inline-block;
  margin-top: 12px;
  background-color: #00796B;
  color: #FFFFFF;
  padding: 12px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.btn-comprar:hover {
  background-color: #004D40;
}

/* Footer */
footer {
  background-color: #004D40;
  color: #FFFFFF;
  padding: 60px 40px;
  text-align: center;
  font-size: 0.95rem;
}

footer a {
  color: #00BCD4;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

footer .footer-links {
  margin-bottom: 20px;
}

footer .copyright {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    align-items: center;
  }

  .menu ul {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding: 70px 20px;
  }

  .tarjetas {
    flex-direction: column;
    align-items: center;
  }

  .libros-carousel {
    padding: 0 20px;
  }
}