/* ===== ESTILO ORIGINAL HOME (Ediboky) ===== */
body {
  margin: 0;
  font-family: Arial, sans-serif;

  /* CLAVE */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


.sidebar {
  width: 50px;
  background-color: #00AEEF;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
}

main {
  margin-left: 50px;
  width: calc(100% - 50px);
}

header {
  background-color: #f0f0f0;
  padding: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav a {
  margin: 0 15px;
  text-decoration: none;
  color: #333;
}

.highlight {
  color: #00AEEF;
  font-weight: bold;
}

.carousel {
  width: 100%;
  height: 700px;
  overflow: hidden;
  position: relative;
}

.carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 1s;
}

.carousel img.active {
  opacity: 1;
}

.section-title {
  background-color: #1AA1E1;
  color: white;
  text-align: center;
  padding: 20px;
}

/* Productos */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 30px;
}

.product-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
}

.product-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  object-fit: cover;
}

.product-title {
  font-weight: bold;
  margin-top: 40px;
}

.product-price {
  color: #00AEEF;
  font-weight: bold;
}

/* Autores */
.authors-carousel {
  display: flex;
  overflow: hidden;
  width: 50%;
  position: relative;
  justify-content: center;
  margin: 0 auto;
}

.authors-container {
  display: flex;
  transition: transform 1s ease-in-out;
  width: fit-content;
}

.author-card {
  min-width: 10%;
  padding: 20px;
  text-align: center;
  opacity: 1;
  transition: opacity 0.5s;
}

.author-card.active {
  opacity: 1;
}

.author-photo {
  width: 140px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}

/* Bloque 50/50 final */
.bky-split {
  display: flex;
  height: 100vh;
  background-color: #f5f5f5;
}

.image-container {
  flex: 1;
  background-size: cover;
  background-position: center;
  transition: background 0.3s ease-in-out;
  background-repeat: no-repeat;
  background-image: url('img/BOOK_PRINTING.jpg');
}

.cards-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 40px;
}

.bky-card {
  background: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
  padding: 20px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.bky-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.bky-card:hover {
  transform: scale(1.05);
}

.bky-card p {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  font-weight: bold;
}
.layout {
  display: flex;
  flex: 1; /* ocupa todo el alto disponible */
}
.site-footer {
  background: #0a2a43;
  color: #ffffff;
  padding: 18px 0;
  margin-top: auto; /* CLAVE para empujarlo abajo */
}

.footer-wrap {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.95;
}
