:root {
    --color-primary: #f39200;
    --color-second: #12365a;
    --color-third: #f8b235;
    --color-bg: #ffffff;
    --color-text: #222222;
    --blue-dark: #003366;
    --blue-dark-rgb: 243, 146, 0;
    --yellow: #de953f;
    --white: #ffffff;

    --color-libro3-primary: #f05127;
    --color-libro3-second: #196e81;

    --card-margin: 1.8rem;
    --card-padding: 3rem;
    --card-radius: 20px;
    --card-max-width: 20rem;
    --card-gap: 1rem;
    --image-max-width: 200px;

    --book-radius: 10px;

    --book-width: 34vh;

    --font-size-text: 1.5rem;
    --font-size-text-small : 1rem;

    --media-padding: 1.3rem;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: Arial, sans-serif, 'Montserrat';
  background-color: var(--color-bg);
  color: var(--color-text);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  text-align: center;
  overflow-x: hidden;
}

a {
  text-decoration: none;
}

/* ----------------- */
/* Seccion HEADER */
/* ----------------- */

/* ===== HEADER (Escritorio) ===== */
.header {
  padding: 2rem 2rem;
  background: var(--color-second);
  color: var(--color-bg);
  text-align: center;
}

.header .tagline {
  font-size: var(--font-size-text);
  letter-spacing: 1px;
  margin: 0;
}

.header .authors {
  font-size: var(--font-size-text);
  font-weight: bold;
  margin: 0.3rem 0;
}

/* ===== HEADER (Mobile) ===== */
@media (max-width: 768px) {
  .header {
    padding: 1.2rem;
    text-align: center;
  }

  .header .authors {
    font-size: 1rem; /* ligeramente más pequeño */
    line-height: 1.4;
    font-weight: 600;
  }

  .header .tagline {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-top: 0.4rem;
  }
}

/* ----------------- */
/* Seccion Principal */
/* ----------------- */
.container {
  width: 100%;
  min-height: 90vh;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 50px;
  padding: 10px;
  box-sizing: border-box;
  background-color: var(--color-bg);
  padding-bottom: 7rem;
  position: relative;          /* importante para la capa absoluta */
  overflow: hidden;            /* ocultar burbujas fuera del área */
}

/* Asegurar que el contenido quede encima de las burbujas */
.container > *:not(.bubble-layer) {
  position: relative;
  z-index: 1;
}

/* ============================= */
/* BURBUJAS ANIMADAS (vibrantes) */
/* ============================= */
.bubble-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Estilo base */
.bubble-layer span {
  position: absolute;
  top: -120px;
  border-radius: 50%;
  opacity: 0.9;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.95), rgba(255,255,255,0.4) 60%, rgba(255,255,255,0) 80%),
    linear-gradient(145deg, rgba(243,146,0,0.8), rgba(255,180,50,0.6)); /* 💥 más color y brillo */
  box-shadow:
    0 0 10px rgba(243,146,0,0.4),
    0 0 20px rgba(243,146,0,0.25),
    inset 0 0 10px rgba(255,255,255,0.3);
  animation: bubble-fall linear infinite;
  will-change: transform, opacity;
  filter: blur(0.4px);
}

/* Animación más rápida */
@keyframes bubble-fall {
  0% {
    transform: translateY(0) translateX(var(--start-x)) scale(1);
    opacity: 0;
  }
  10% { opacity: 1; }
  100% {
    transform: translateY(110vh) translateX(var(--end-x)) scale(1.15);
    opacity: 0;
  }
}

/* 30 burbujas distribuidas con distintos tamaños y duraciones (más rápidas) */
.bubble-layer span:nth-child(1)  { --start-x: 3vw;  --end-x: 6vw;  --size: 24px; --dur: 10s; --delay: -2s; }
.bubble-layer span:nth-child(2)  { --start-x: 8vw;  --end-x: 10vw; --size: 30px; --dur: 12s; --delay: -4s; }
.bubble-layer span:nth-child(3)  { --start-x: 13vw; --end-x: 17vw; --size: 26px; --dur: 11s; --delay: -1s; }
.bubble-layer span:nth-child(4)  { --start-x: 18vw; --end-x: 21vw; --size: 32px; --dur: 13s; --delay: -3s; }
.bubble-layer span:nth-child(5)  { --start-x: 23vw; --end-x: 26vw; --size: 28px; --dur: 12s; --delay: -5s; }
.bubble-layer span:nth-child(6)  { --start-x: 28vw; --end-x: 31vw; --size: 20px; --dur: 9s;  --delay: -6s; }
.bubble-layer span:nth-child(7)  { --start-x: 33vw; --end-x: 36vw; --size: 35px; --dur: 14s; --delay: -7s; }
.bubble-layer span:nth-child(8)  { --start-x: 38vw; --end-x: 40vw; --size: 22px; --dur: 8s;  --delay: -9s; }
.bubble-layer span:nth-child(9)  { --start-x: 43vw; --end-x: 45vw; --size: 30px; --dur: 13s; --delay: -10s; }
.bubble-layer span:nth-child(10) { --start-x: 48vw; --end-x: 51vw; --size: 26px; --dur: 11s; --delay: -4s; }
.bubble-layer span:nth-child(11) { --start-x: 53vw; --end-x: 56vw; --size: 32px; --dur: 12s; --delay: -8s; }
.bubble-layer span:nth-child(12) { --start-x: 58vw; --end-x: 61vw; --size: 34px; --dur: 14s; --delay: -6s; }
.bubble-layer span:nth-child(13) { --start-x: 63vw; --end-x: 66vw; --size: 22px; --dur: 10s; --delay: -5s; }
.bubble-layer span:nth-child(14) { --start-x: 68vw; --end-x: 72vw; --size: 26px; --dur: 11s; --delay: -3s; }
.bubble-layer span:nth-child(15) { --start-x: 73vw; --end-x: 76vw; --size: 28px; --dur: 12s; --delay: -9s; }
.bubble-layer span:nth-child(16) { --start-x: 78vw; --end-x: 80vw; --size: 36px; --dur: 15s; --delay: -7s; }
.bubble-layer span:nth-child(17) { --start-x: 83vw; --end-x: 85vw; --size: 22px; --dur: 9s;  --delay: -6s; }
.bubble-layer span:nth-child(18) { --start-x: 88vw; --end-x: 91vw; --size: 32px; --dur: 13s; --delay: -10s; }
.bubble-layer span:nth-child(19) { --start-x: 93vw; --end-x: 96vw; --size: 28px; --dur: 11s; --delay: -4s; }
.bubble-layer span:nth-child(20) { --start-x: 6vw;  --end-x: 9vw;  --size: 34px; --dur: 12s; --delay: -6s; }
.bubble-layer span:nth-child(21) { --start-x: 26vw; --end-x: 30vw; --size: 22px; --dur: 10s; --delay: -8s; }
.bubble-layer span:nth-child(22) { --start-x: 46vw; --end-x: 49vw; --size: 28px; --dur: 13s; --delay: -9s; }
.bubble-layer span:nth-child(23) { --start-x: 66vw; --end-x: 68vw; --size: 32px; --dur: 14s; --delay: -11s; }
.bubble-layer span:nth-child(24) { --start-x: 86vw; --end-x: 89vw; --size: 24px; --dur: 11s; --delay: -12s; }
.bubble-layer span:nth-child(25) { --start-x: 95vw; --end-x: 97vw; --size: 26px; --dur: 10s; --delay: -5s; }
.bubble-layer span:nth-child(26) { --start-x: 15vw; --end-x: 18vw; --size: 30px; --dur: 11s; --delay: -2s; }
.bubble-layer span:nth-child(27) { --start-x: 35vw; --end-x: 38vw; --size: 22px; --dur: 9s;  --delay: -4s; }
.bubble-layer span:nth-child(28) { --start-x: 55vw; --end-x: 58vw; --size: 28px; --dur: 12s; --delay: -8s; }
.bubble-layer span:nth-child(29) { --start-x: 75vw; --end-x: 78vw; --size: 26px; --dur: 10s; --delay: -6s; }
.bubble-layer span:nth-child(30) { --start-x: 90vw; --end-x: 93vw; --size: 32px; --dur: 13s; --delay: -3s; }

/* Aplicar variables */
.bubble-layer span {
  left: var(--start-x);
  width: var(--size);
  height: var(--size);
  animation-duration: var(--dur);
  animation-delay: var(--delay);
}

/* Mobile (menos burbujas para rendimiento) */
@media (max-width: 800px) {
  .bubble-layer span:nth-child(n+20) { display: none; }
}




.book {
  width: var(--book-width);
  aspect-ratio: 225/350;
  position: relative;
  text-align: center;
  box-shadow: 0px 24px 20px -5px rgba(0, 0, 0, 0.65);
}

.book-cover {
  display: block;
  position: absolute;
  z-index:1;
  width: 100%;
  height: 100%;
  transform-origin: 0 50%;
  -webkit-transform-origin: 0 50%;
  background: #111;
  background-size:cover;
  border-radius: 3px;
  transition: all .5s ease-in-out;
  -webkit-transition: all .5s ease-in-out;
}

.cover1 {
  background: url('../img/libro1.webp');
}

.cover2 {
  background: url('../img/libro2.png');
}

.cover3 {
  background: url('../img/libro3.png');
}

.book .book-cover {
  background-size: 100% 100%;
}


.effect {
  width: 20px;
  height: 100%;
  margin-left: 10px;
  border-left: 2px solid #00000010;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 100%);
  transition: all .5s ease;
}

.light {
  width: 90%;
  height: 100%;
  position: absolute;
  border-radius: 3px; 
  background-image: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
  top: 0;
  right:0;
  opacity: .1;
  transition: all .5s ease;
  -webkit-transition: all .5s ease;
}

.book:hover { cursor:pointer; }

.book:hover .book-cover {
  transform: perspective(2000px) rotateY(-30deg);
  -webkit-transform: perspective(2000px) rotateY(-30deg);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  box-shadow: 0px 24px 20px -5px rgba(0, 0, 0, 0.65);
}

.book:hover .effect {
  width: 40px;
 /** margin-left:13px;
  opacity: 0.5; **/
}

.book:hover .light {
  opacity: 1;
  width: 70%;
}

.book-inside{
  width: calc(100% - 2px);
  height:96%;
  position:relative;
  top: 2%;
  border: 1px solid grey;
  border-radius:3px;
  background: white;
  box-shadow: 
  10px 40px 40px -10px #00000030,
  inset -2px 0 0 grey,
  inset -3px 0 0 #dbdbdb,
  inset -4px 0 0 white,
  inset -5px 0 0 #dbdbdb,
  inset -6px 0 0 white,
  inset -7px 0 0 #dbdbdb,
  inset -8px 0 0 white,
  inset -9px 0 0 #dbdbdb;
}

@media (max-width: 800px) {
  .container {
    padding-top: 4rem;
    gap: 50px;
  }
  
  .book {
    aspect-ratio: 225/350;
    width: 180px;
  }
}


/* ----------------- */
/* Seccion Libro que no la atienda*/
/* ----------------- */
.no-atienda-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding-top:  2rem;
  flex-wrap: wrap;
  flex-direction: column;
  font-size: var(--font-size-text-small);
}

.testimonial {
  max-width: 250px;
  font-style: italic;
  font-family: cursive;
}

.stars {
  color: var(--color-primary);
  font-size: var(--font-size-text);
}

.book-container {
  position: relative;
  order: -1;
}

.book-image {
  aspect-ratio: 225/350;
  max-width: var(--book-width);
  border-radius: var(--book-radius);
  box-shadow: rgb(37, 57, 77) 0px 10px 30px -10px;
}

.badge {
  position: absolute;
  top: 10px;
  right: -20px;
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: bold;
  padding: 0.5rem 1rem;
  border-radius: 20px;
}

.book-description {
  margin: 2rem auto;
  max-width: 700px;
  padding: 1rem;
}

.book-description h1 {
  font-size: var(--font-size-text);
  color: var(--color-second);
}

.book-description h2 {
  font-size: var(--font-size-text);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.book-description p {
  font-size: var(--font-size-text);
  color: var(--color-text);
  margin-bottom: 1rem;
}

.buy-btn {
  background: var(--color-primary);
  color: var(--color-bg);
  border: none;
  padding: 0.8rem 1.5rem;
  font-size: var(--font-size-text);
  font-weight: bold;
  border-radius: 25px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  transition: background 0.3s ease;
}

.buy-btn:hover {
  background: var(--color-third);
}

.icon {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .no-atienda-section {
    flex-direction: row;
  }

  .book-container {
    order: 0;
  }
}

@media (max-width: 768px) {
  /*  Texto justificado, NOTE: No se ve bien
  .quote {
    text-align: justify;
  }
  */

  .book-description p {
    text-align: justify;
    padding: 0 var(--media-padding);
  }

  .book-description h2 {
    text-align: justify;
    padding: 0 var(--media-padding);
  } 
}

/* iPad en orientación vertical */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .no-atienda-section {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .book-container {
    order: -1;
    flex-basis: 100%;
    margin-bottom: 2rem;
  }

  .book-image {
    max-width: 450px;
  }
}

/* ----------------- */
/* Formulario de registro */
/* ----------------- */
.form-section {
  background: url("../img/form-fondo.webp") no-repeat center/cover;
  padding: 4rem 1rem;
  color: var(--color-bg);
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: var(--font-size-text-small);
}

/* Fondo oscuro de la imagen */
.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.55);
  z-index: -1;
}

/* TÍTULO PRINCIPAL */
.form-section h1 {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 2rem;       /* tamaño base escritorio */
  margin-bottom: 0.8rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

/* SUBTÍTULO / DESCRIPCIÓN */
.form-section p {
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
  color: var(--color-bg);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* Caja del formulario */
.register-form {
  background: rgba(255, 255, 255, 0.92);
  padding: 2rem;
  border-radius: 10px;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Inputs */
.register-form input {
  padding: 0.9rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.register-form small {
  color: var(--color-text);
  font-size: 0.85rem;
}

/* Botón */
.form-btn {
  background: var(--color-second);
  color: var(--color-bg);
  font-size: 1rem;
  padding: 0.9rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}

.form-btn:hover {
  background: var(--color-primary);
  transform: scale(1.03);
}

/* ----------------- */
/* RESPONSIVE MOBILE */
/* ----------------- */
@media (max-width: 768px) {
  .form-section {
    padding: 3rem 1.2rem;
  }

  .form-section h1 {
    font-size: 1.5rem;    /* más pequeño y legible */
    line-height: 1.3;
    margin-bottom: 0.6rem;
  }

  .form-section p {
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;   /* centrado, mejor lectura */
    margin-bottom: 1.4rem;
  }

  .register-form {
    width: 100%;
    max-width: 340px;
    padding: 1.5rem;
  }
}

/* Tablet (vertical) */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  .form-section h1 {
    font-size: 1.8rem;
  }

  .form-section p {
    font-size: 1rem;
  }
}

/* Animación Form */
#form-box {
  opacity: 0;
  transform: scale3d(0.3, 0.3, 0.3);
}

.zoomIn {
  animation: zoomIn 2s forwards;
  display: block;
}

#form-box.zoomIn {
  opacity: 1;
  transform: none;
}

@keyframes zoomIn {
  0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
  50% { opacity: 1; transform: scale3d(1.05, 1.05, 1.05); }
  100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

/* Asegura que todo mida con padding incluido */
.form-section, .form-section * {
  box-sizing: border-box;
}

/* Centra el contenedor del formulario */
#form-box {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

/* Móvil: respiro lateral simétrico y ancho controlado */
@media (max-width: 768px) {
  .form-section {
    /* padding vertical como ya tienes + padding lateral real */
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }

  .register-form {
    width: 100%;
    max-width: 360px;          /* controla el ancho del card */
    margin-inline: auto;       /* centra de forma fiable */
    padding: 1.25rem;          /* respiro interno coherente */
    border-radius: 12px;
  }
}

/* Asegura que el contenedor no limite el ancho en desktop */
#form-box {
  display: flex;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

/* Desktop: más ancho y respiro del card */
@media (min-width: 1024px) {
  .form-section {
    padding: 5rem 2rem;                 /* más altura y un poco de margen lateral */
  }

  .register-form {
    max-width: 520px;                   /* ↑ antes 400px */
    width: 100%;
    padding: 2rem 2.25rem;              /* un pelín más de padding interno */
    border-radius: 14px;
  }

  .register-form input {
    font-size: 1rem;
    padding: 1rem 1rem;                 /* campo más alto, se ve más “premium” */
  }

  .form-btn {
    font-size: 1.05rem;
    min-height: 52px;
    border-radius: 10px;
  }

  /* Títulos más presentes en desktop */
  .form-section h1 {
    font-size: clamp(2rem, 2.2vw, 2.6rem);
    margin-bottom: 1rem;
  }
  .form-section p {
    font-size: 1.1rem;
    max-width: 680px;                   /* texto más ancho para equilibrar */
  }
}

/* Por si alguna regla externa “estrecha” el card, fuerza centrado */
.register-form { margin-left: auto; margin-right: auto; }



/* ----------------- */
/* Seccion Adquiere */
/* ----------------- */

.book-section .best-seller {
  background-color: rgb(255, 255, 255);
  border-radius: var(--card-radius);
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  padding: 4%;
}

.book-section {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.book-section h1 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}
.book-section p {
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-style: normal;
}

.book-section p {
  color: var(--color-text);
  margin-bottom: 0.5rem;
  font-size: var(--font-size-text);
}

.book-section strong {
  color: var(--color-primary);
  font-size: var(--font-size-text);
}

.country-selector {
  margin-bottom: 1.5rem;
}

.country-selector label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
}

.country-selector select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--color-primary);
  border-radius: var(--card-radius);
  text-align: center;
  font-size: var(--font-size-text);
  background-color: var(--color-bg);
  color: var(--color-primary);
}

.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--card-gap);
    justify-items: center;
}

.books-grid a {
  box-shadow:
    rgba(var(--blue-dark-rgb), 0.4) 0px 5px,
    rgba(var(--blue-dark-rgb), 0.3) 0px 10px,
    rgba(var(--blue-dark-rgb), 0.2) 0px 15px,
    rgba(var(--blue-dark-rgb), 0.1) 0px 20px,
    rgba(var(--blue-dark-rgb), 0.05) 0px 25px;
}
.book-card {
    border: 2px solid var(--color-primary);
    border-radius: var(--card-radius);
    padding-left: var(--card-padding);
    padding-right: var(--card-padding);
    max-width: var(--card-max-width);
    background: var(--color-bg);
    margin: 0 auto;
    margin-bottom: var(--card-margin);
    display: none;
    text-align: center;
    color: var(--color-text);

    /* Animacion */
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* Animacion */
.book-card:hover {
  transform: translateY(-5px);
}

.book-card:hover img {
  transform: scale(1.05);
  transition: transform 0.5s;
}

.book-card:hover img {
  transform: scale(1.05);
  transition: transform 0.5s;
}

.book-card:hover .cart-icon{
  animation: tilt-shaking 0.25s infinite;
}

@keyframes tilt-shaking {
  0% { transform: rotate(0deg); }
  25% { transform: rotate(5deg); }
  50% { transform: rotate(0eg); }
  75% { transform: rotate(-5deg); }
  100% { transform: rotate(0deg); }
}
/* Animacion Fin*/
.book-card img {
    max-width: var(--image-max-width);
    height: auto;
    margin: 0 auto;
    margin-bottom: var(--card-margin);
    display: block;
}

.book-card p {
    font-size: var(--font-size-text);
    text-align: center;
    font-weight: bolder;
    margin: 0.5rem 0;
    color: var(--color-primary);
}

.book-card .price {
    font-size: var(--font-size-text);
    font-weight: bolder;
    color: var(--color-primary);
}

.book-card .cart-icon{
    width: auto;
    height: 32px;
    color: var(--color-primary);
}
@media (max-width: 768px) {
  .books-grid{
    display: flex;
    flex-direction: column;
    gap: var(--card-gap);
  }
  .book-section h1 {
    padding: 0 var(--media-padding);
  }

  .book-section p {
    text-align: justify;
    padding: 0 var(--media-padding);
  }

  .book-section strong {
    text-align: center;
    padding: 0 var(--media-padding);
  }

  .book-card p {
    text-align: center;
  }
}
/* - - - - - - - - - - */
/* Seccion Nuevo libro */
/* - - - - - - - - - -  */

.libro-destacado {
  text-align: center;
  padding: 40px 20px;
  background-color: #f0f0f0;
  color: var(--blue-dark);
}

.libro-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  align-items: stretch;
}

.reseña {
  flex: 1;
  max-width: 300px;
  font-size: 0.95rem;
  line-height: 1.5;
  text-align: left;
}

.reseña .estrellas {
  color: var(--yellow);
  font-size: 2rem;
  margin-bottom: 10px;
}

.reseña h4 {
  margin-top: 15px;
  font-weight: bold;
  font-size: 1rem;
}

.reseña span {
  font-size: 0.85rem;
  color: #666;
}

.portada {
  position: relative;
  max-width: 280px;
}

.portada img {
  width: 100%;
  border-radius: 12px;
}

.portada .etiqueta {
  position: absolute;
  top: -10px;
  right: -15px;
  background: var(--yellow);
  color: #000;
  padding: 8px 14px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
}

.libro-descripcion h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 700;
}

.libro-descripcion p {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 1rem;
  color: #444;
}

/* Mobile */
@media (max-width: 768px) {
  .libro-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Portada primero */
  .portada {
    order: 1;
  }

  /* Reseñas después */
  .reseña-izquierda {
    order: 2;
    width: 90%;
    margin-top: 20px;
  }

  .reseña-derecha {
    order: 3;
    width: 90%;
    margin-top: 20px;
  }
}

/* Botón de compra principal */
.compra-principal {
  margin-top: 30px;
}

.btn-compra {
  display: inline-block;
  background: linear-gradient(90deg, var(--yellow), #f0d678);
  color: #000;
  padding: 18px 50px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.2rem;
  text-transform: uppercase;
  transition: transform 0.3s, box-shadow 0.3s;
}

.btn-compra:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

/* 📱 Responsive */
@media (max-width: 768px) {

  .reseña {
    text-align: center;
    max-width: 100%;
  }
  .libro-container {
    flex-direction: column;

  }
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap');

/* ======= SECCIÓN PRÓXIMAMENTE ======= */
.proximamente {
  position: relative;
  background: url("../img/negocios.webp") center/cover no-repeat;
  color: var(--color-text);
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  padding: 6rem 1.5rem;
  overflow: hidden;
}

/* Capa semitransparente para oscurecer la imagen y resaltar el texto */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  z-index: 2;
}

.proximamente-content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  
}

/* Imagen del libro */
.libro img {
  width: 100%;
  max-width: 280px;
  transform: rotate(-10deg);
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  transition: transform 0.4s ease;
}

.libro img:hover {
  transform: rotate(0deg) scale(1.03);
}

/* Texto */
.texto {
  position: relative;
  max-width: 450px;
  background: rgba(255, 255, 255, 0.85); /* Fondo semitransparente */
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px); /* efecto vidrio esmerilado opcional */
  text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(250,250,250,0.7));
}


.lanzamiento {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-second);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.titulo {
  font-size: 2.8rem;
  color: var(--yellow);
  font-weight: 700;
  margin: 0.5rem 0;
}

.subtitulo {
  font-size: 1.1rem;
  color: #333;
  margin-bottom: 1rem;
  
}

.autor {
  font-weight: bold;
  color: var(--color-second);
}

.autor span {
  display: block;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.2rem;
}

@media (max-width: 768px) {
  .proximamente-content {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .libro img {
    max-width: 220px;
    transform: rotate(0deg);
  }

  .texto {
    text-align: center;
    padding: 1.8rem;
    margin: 0 auto; /* 💡 centra horizontalmente */
    background: rgba(255, 255, 255, 0.9); /* un poco más sólida en móvil */
    backdrop-filter: blur(8px);
  }

  .titulo {
    font-size: 2rem;
  }
}

/* Sección video */
.video-section {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
   background-color: #f0f0f0;
}

.video-card {
  background-color: var(--white);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-radius: var(--card-radius);
  padding: var(--card-padding);
  max-width: 800px;
  width: 100%;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.video-card h2 {
  color: var(--blue-dark);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.video-container {
  margin-bottom: 15px;
}

.video-card iframe {
  width: 100%;
  max-width: 100%;
  height: 400px;
  border-radius: 10px;
  border: none;
}

.video-card p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--color-text);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Responsividad */
@media (max-width: 768px) {
  .video-card iframe {
    height: 250px;
  }

  .video-card h2 {
    font-size: 1.2rem;
  }

  .video-card p {
    font-size: 0.9rem;
  }
}

/* 🎓 SECCIÓN MENTORES */

/* Título principal */
.mentores-titulo {
  font-size: 2.3rem;
  text-align: center;
  margin-bottom: 35px;
  color: var(--blue-dark);
  font-weight: bold;
}

/* Fondo de la sección */
.mentores-doble {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: center;
  margin: 40px 0 10px 0;
  padding: 10px 0 20px;
  border-radius: 0 0 30px 30px;
}

.mentores-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Tarjetas principales */
.mentor-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 20px;
  border-radius: 20px;
  margin: 25px auto;
  width: 90%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeUp 0.8s ease forwards;
  min-height: 400px;
}

/* Animación */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hover */
.mentor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.25);
}

/* Texto */
.mentor-info {
  flex: 1;
  max-width: 550px;
  text-align: left;
  padding: 0 25px;
}

.mentor-titulo {
  font-size: 2.1rem;
  margin-bottom: 14px;
  font-weight: 700;
  color: inherit;
}

.mentor-info p {
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: justify;
  opacity: 0.9;
  margin-bottom: 18px;
}

/* Imagen */
.mentor-img {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mentor-img img {
  width: 100%;
  max-width: 380px;
  height: 360px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Botón principal */
.btn-mentor {
  display: inline-block;
  background-color: var(--yellow);
  color: var(--white);
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-mentor:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Redes sociales */
.mentor-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

/* 📱 Responsividad */
@media (max-width: 900px) {
  .mentores-titulo {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .mentor-card {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 25px 20px;
    width: 90%;
    margin: 20px auto;
  }

  .mentor-info {
    text-align: center;
    max-width: 100%;
    padding: 10px;
  }

  .mentor-titulo {
    font-size: 1.6rem;
  }

  .mentor-info p {
    font-size: 1rem;
    text-align: justify;
  }

  .mentor-img img {
    max-width: 260px;
    height: auto;
    margin-top: 20px;
  }

  .social-links {
    justify-content: center;
  }
}

/* 🎨 ESTILOS PERSONALIZADOS PARA CADA MENTOR */

/* 🟦 MENTOR 1: texto azul, fondo blanco, borde azul */
.mentor-izq {
  background-color: #ffffff;
  color: var(--blue-dark);
  border: 3px solid var(--blue-dark);
}

/* 🟨 MENTOR 2: texto amarillo, fondo blanco, borde amarillo */
.mentor-der {
  background-color: #ffffff;
  color: var(--yellow);
  border: 3px solid var(--yellow);
}

/* Ajuste de íconos y botones sobre fondos blancos */
.mentor-izq .social-links a {
  background-color: rgba(0, 0, 255, 0.1);
  color: var(--blue-dark);
}

.mentor-izq .social-links a:hover {
  background-color: var(--blue-dark);
  color: #fff;
}

.mentor-der .social-links a {
  background-color: rgba(255, 255, 0, 0.15);
  color: var(--yellow);
}

.mentor-der .social-links a:hover {
  background-color: var(--yellow);
  color: #000;
}


/* Footer */
footer {
  background-color: var(--blue-dark);
  color: var(--white);
  text-align: center;
  padding: 15px 15px;
  font-size: 17px;
}

footer a {
  color: var(--yellow);
  margin: 0 10px;
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 65px;
  height: 65px;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(145deg, #25d366, #1ebe5a);
  border-radius: 50%;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1000;
}

.whatsapp-float img {
  width: 38px;
  height: 38px;
}

/* Animación hover */
.whatsapp-float:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0px 6px 15px rgba(0,0,0,0.4);
}

/* Tooltip */
.whatsapp-float .tooltip {
  position: absolute;
  right: 75px;
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

/*- - - - - - - - - -  */
/* Botón flotante WhatsApp */
/* - - - - - - - - - - */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background-color: #E33220; /* Color de El que tenga Tienda */
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 32px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease;
  z-index: 999;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #c92c1b; /* tono más oscuro al pasar el cursor */
  transform: scale(1.1);
}

.whatsapp-float i {
  line-height: 1;
}

/* ===== Preloader base ===== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--color-bg); /* blanco */
  display: grid;
  place-items: center;
  z-index: 9999;
  overflow: hidden;
}

/* Orbita (contenedor que rota) */
.orbit {
  position: relative;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  animation: spin 1.6s linear infinite; /* giro continuo */
}

/* Línea-flecha: un segmento que orbita */
.arrow-line {
  --radius: 58px;                 /* radio de la órbita */
  position: absolute;
  left: 50%; top: 50%;
  width: 64px;                    /* largo de la “flecha” */
  height: 4px;                    /* grosor */
  background: var(--color-second);
  border-radius: 999px;
  box-shadow:
    0 0 8px rgba(0,0,0,.12),
    inset 0 0 0 1px rgba(255,255,255,.25);
  transform-origin: center;
  /* ubicamos la línea a la derecha del centro (a “radio” px) */
  transform: translate(-50%, -50%) translateX(var(--radius));
}

/* Pista circular (suave, opcional) */
.track {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,.06);
  background:
    radial-gradient(circle, rgba(0,0,0,0.06) 0 2px, transparent 2px) center/8px 8px no-repeat;
  opacity: .25;
}

/* Explosión */
.burst {
  position: absolute;
  width: 22vmax;
  height: 22vmax;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: scale(0);
  background:
    radial-gradient(circle,
      rgba(255,255,255,1) 0 18%,
      rgba(243,146,0,0.35) 18% 42%,
      rgba(248,178,53,0.25) 42% 64%,
      rgba(18,54,90,0.18) 64% 80%,
      rgba(255,255,255,0) 80%);
}

/* Estados de la secuencia */
.preloader.explode .orbit { animation: none; } /* detener giro */
.preloader.explode .arrow-line { animation: to-center 380ms ease-out forwards, pop-out 280ms 180ms ease-out forwards; }
.preloader.explode .burst { animation: burst-expand 620ms 120ms cubic-bezier(.2,.8,.2,1) forwards; }
.preloader.fadeout { animation: preloader-fade 360ms ease forwards; }

/* ===== Animaciones ===== */
@keyframes spin { to { transform: rotate(360deg); } }

/* La línea viaja desde el radio hasta el centro */
@keyframes to-center {
  0%   { transform: translate(-50%, -50%) translateX(var(--radius)) scaleX(1); }
  100% { transform: translate(-50%, -50%) translateX(0)               scaleX(.4); }
}

/* Pequeño “pop” al llegar al centro antes de desaparecer */
@keyframes pop-out {
  0%   { opacity: 1; transform: translate(-50%, -50%) translateX(0) scaleX(.4); }
  60%  { opacity: 1; transform: translate(-50%, -50%) translateX(0) scaleX(.9); }
  100% { opacity: 0; transform: translate(-50%, -50%) translateX(0) scaleX(.05); }
}

/* Expansión de la explosión */
@keyframes burst-expand {
  0%   { transform: scale(0);   opacity: 0; }
  30%  { transform: scale(1);   opacity: 1; }
  100% { transform: scale(6.8); opacity: 0; }
}

/* Desvanecer y ocultar el preloader */
@keyframes preloader-fade { to { opacity: 0; visibility: hidden; } }

/* Evita scroll mientras carga (opcional) */
html.no-scroll, html.no-scroll body { overflow: hidden; }

