/* ======= ESTILO REVISTA DOSMILERA ======= */
:root {
  --bg: linear-gradient(to top, #000,#ff2d88,#DEA4D2,#fff);
  --accent: #ff2d88;
  --text: #f4f4f4;
  --glow: #c5c5ff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body, html {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

/* ======= CABECERA ======= */
.mag-header {
  padding: 0.5rem 1rem;
  background: linear-gradient(180deg, rgba(255,45,136,0.15), transparent);
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 0 25px rgba(255,45,136,0.3);
  text-align: center;
  position: relative;
}

.header-line {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.mag-header h1 {
  font-family: 'Playfair Display', serif;
  color: var(--accent);
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 1rem;
  z-index: 2;
}

.mag-header .subtitle {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.8;
  padding: 0.8rem;
  color: black;
  text-shadow: 0 0 15px var(--glow);
}

.logo-left, .logo-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  height: 50px;
}

.logo-left { left: 5%; }
.logo-right { right: 5%; }









/* ======= FLIPBOOK ======= */
.flipbook {
  perspective: 2000px;
  width: 85%;
  max-width: 1000px;
  margin: 2rem auto;
  position: relative;
  height: auto;
}

.page {
  position: relative;
  width: 100%;
  min-height: 80vh;
  background: rgba(0,0,0,0.25);
  border-radius: 15px;
  padding: 2rem;
  overflow-y: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5), inset 0 0 20px rgba(255,255,255,0.05);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.page.active { opacity: 1; pointer-events: auto; }
.page p { color: rgb(54, 54, 54); }

/* ======= PORTADA ======= */
.cover { position: relative; width: 100%; height: 100%; }
.cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 15px;
  filter: brightness(0.9) contrast(1.1);
}
.cover-text {
  position: absolute;
  bottom: 2rem; left: 2rem;
  color: #fff;
  text-shadow: 0 0 10px var(--accent);
  background: rgba(0,0,0,0.3);
  padding: 1rem;
  border-radius: 12px;
}

/* ======= SECCIONES ======= */
.section-title { font-family: 'Playfair Display', serif; color:black; font-size: 1.6rem; margin-bottom: 0.5rem; }

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-top: 1rem;
}

.gallery img {
   width: 100%;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s, filter 0.3s;
  object-fit: cover;
}

.gallery img:hover { transform: scale(1.05); filter: brightness(1.2); }

/* ======= CONTROLES ======= */
/* ======= FLECHAS LATERALES ======= */

/* ======= FLECHAS MINIMALISTAS TRANSPARENTES ======= */

/* ===== Flechas SVG laterales estilo elegante ===== */

.side-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  z-index: 999;
  opacity: 0.7;
  transition: 0.3s ease;
}

/* Icono SVG */
.arrow-icon {
  width: 38px;
  height: 38px;
  stroke: #ff2d88;   /* color rosa */
  stroke-width: 2.3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hover: glow bonito */
.side-arrow:hover {
  opacity: 1;
}

.side-arrow:hover .arrow-icon {
  stroke: #ff4da0;
  filter: drop-shadow(0 0 8px #ff2d88);
}

/* Izquierda */
.side-arrow.left {
  left: 35px;
}

/* Derecha */
.side-arrow.right {
  right: 35px;
}

/* Móvil: mover abajo */
@media (max-width: 480px) {
  .side-arrow {
    top: auto;
    bottom: 25px;
    transform: none;
  }
  .side-arrow.left { left: 70px; }
  .side-arrow.right { right: 70px; }
}







/* ======= LIGHTBOX ======= */
#lightbox {
  position: fixed; inset: 0;
  display: flex; justify-content: center; align-items: center;
  background: rgba(0,0,0,0.85);
  visibility: hidden; opacity: 0;
  transition: opacity 0.4s ease; z-index: 999;
}
#lightbox.active { visibility: visible; opacity: 1; }
#lightbox img {
  max-width: 90%; max-height: 90%;
  border-radius: 15px;
  box-shadow: 0 0 40px var(--glow);
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 2rem; background: rgba(0,0,0,0.3);
  color: #fff; border: none; padding: 0.5rem 1rem; cursor: pointer;
  z-index: 1001;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,45,136,0.7); }

/* ======= BOTÓN VOLVER AL INICIO ======= */


/* ======= BOTÓN VOLVER AL INICIO (ESTILO BURBUJA ROSA) ======= */
.scroll-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  font-size: 28px;
  display: none; /* Se muestra con JS */
  justify-content: center;
  align-items: center;
  cursor: pointer;

  /* EFECTO BURBUJA */
  box-shadow: 0 0 20px rgba(255, 45, 136, 0.55),
              0 0 35px rgba(255, 45, 136, 0.3);

  transition: transform 0.3s ease,
              box-shadow 0.3s ease,
              opacity 0.3s ease;
}

.scroll-btn:hover {
  transform: scale(1.12);
  box-shadow: 0 0 25px rgba(255, 45, 136, 0.75),
              0 0 40px rgba(255, 45, 136, 0.45);
  opacity: 1;
}





/* ======= TARJETAS EBOOK ======= */
/* ======= ESTANTERÍA DE EBOOKS ======= */

.ebooks-shelf {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: 1rem 0 2rem;
  position: relative;
}

/* línea suave simulando estante */
.ebooks-shelf::before {
  content: "";
  position: absolute;
  bottom: 1.2rem;
  left: 5%;
  right: 5%;
  height: 4px;
  border-radius: 999px;
  background: rgba(0,0,0,0.15);
  filter: blur(2px);
}

/* Tarjeta-libro */
.ebook-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ff2d88;
  padding: 0.8rem 0.9rem 1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #ffe6f4);
  box-shadow:
    0 8px 18px rgba(0,0,0,0.25),
    0 0 0 1px rgba(255,255,255,0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 190px;
}

/* simulamos el lomo del libro */
.ebook-card::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 7px;
  border-radius: 6px 0 0 6px;
  background: linear-gradient(180deg, #ffb3d6, #ff2d88);
  opacity: 0.85;
}

/* imagen de portada */
.ebook-card img {
  width: 160px;
  height: 220px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.25);
  margin-bottom: 0.6rem;
}

/* títulos */
.ebook-title {
  font-weight: 700;
  font-size: 1rem;
  text-align: center;
  color: #c01568;
}

.ebook-sub {
  font-weight: 500;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 0.15rem;
}

/* hover efecto “saco el libro de la estantería” */
.ebook-card:hover {
  transform: translateY(-8px) rotateY(-5deg);
  box-shadow: 0 15px 28px rgba(0,0,0,0.35);
}


/* ===== SOLO MÓVIL – AJUSTE EBOOKS ===== */
@media (max-width: 480px) {

/* El carrusel no hace falta en móvil → lo alineamos normal */
  .ebooks-shelf {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.2rem;
    padding-bottom: 2rem;
    margin-top: 1rem;
  }

  /* Cada tarjeta será 2 por fila */
  .ebook-card {
    width: calc(50% - 1rem) !important;
    padding: 0.6rem 0.5rem 0.9rem !important;
    border-radius: 12px;
  }

 /* Imagen más pequeña y proporcionada */
  .ebook-card img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 3/4;
    border-radius: 8px;
    object-fit: cover;
  }

  /* Títulos más pequeños */
  .ebook-title {
    font-size: 0.85rem !important;
    line-height: 1.1;
  }

  .ebook-sub {
    font-size: 0.75rem !important;
  }
}

/* Estilo general del menú arriba */
.top-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.5rem; /*espacio entre los elementos*/
  padding: 20px 0;
  width: 100%;
}


/* “Inicio” (botón del dropdown) + enlaces Blog y Contacto */
.dropbtn,
.top-nav > a.nav-link {
  background: transparent;
  border: none;
  color: #ff2d88;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  position: relative;
  padding-bottom: 0.4rem;
  cursor: pointer;
}

/* Línea debajo */
.dropbtn::after,
.top-nav > a.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 110%;
  height: 1px;
  background: #ff2d88;
  transform-origin: left;
  transform: scaleX(0.25);
  opacity: 0.35;
  transition: transform 0.25s ease, opacity 0.25s ease;
}



/* Hover: subrayado completo */
.dropbtn:hover::after,
.top-nav > a.nav-link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}

/* Enlaces sin subrayado feo por defecto */
.top-nav a {
  text-decoration: none;
}

/* ==== Dropdown desplegable ==== */
.dropdown {
  position: relative;
  display: inline-block;
}
/* Caja del menú desplegable (ESCRITORIO) */
/* AQUÍ SE CONTROLA SI BAJA HACIA ABAJO */
.dropdown-content {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;              /* SIEMPRE HACIA ABAJO */
  left: 50%;
  transform: translateX(-50%);   /* CENTRADO PERFECTO */
  background-color: rgba(255,255,255,0.95);
  border-radius: 10px;
  min-width: 200px;
  padding: 0.5rem 0;
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  text-align: left;
  z-index: 20;
}

/* Estilo enlaces del menú */
.dropdown-content a {
  padding: 0.6rem 1rem;
  color: #333;
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-content a:hover {
  background-color: #ffd6e9;
  color: #ff2d88;
}

/* Activar menú */
.dropdown.show .dropdown-content {
  display: block;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

/* ===== BLOG WRAPPER ===== */
.blog-wrap {
  width: 85%;
  max-width: 900px;
  margin: 2rem auto 3.5rem;
}

/* ===== PAPEL / HOJA DE LIBRO ===== */
.paper {
  position: relative;
  background:
    /* líneas finas como cuaderno */
    repeating-linear-gradient(
      to bottom,
      rgba(0,0,0,0.06) 0px,
      rgba(0,0,0,0.06) 1px,
      transparent 28px,
      transparent 30px
    ),
    /* fondo papel suave */
    linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.85));
  color: #222;
  border-radius: 14px;
  padding: 1.2rem 1.2rem 1.6rem;
  margin: 1.2rem 0 2rem;
  box-shadow:
    0 12px 28px rgba(0,0,0,0.25),
    inset 0 0 18px rgba(0,0,0,0.035);
  overflow: hidden;
}

/* margen/sangría izquierda como encuadernación */
.paper::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 9px;
  background: linear-gradient(180deg, rgba(255,45,136,0.35), rgba(255,45,136,0.15));
  box-shadow: 1px 0 0 rgba(0,0,0,0.05), 0 0 12px rgba(255,45,136,0.25);
}

/* ligera arruga/borde hoja */
.paper::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), inset 0 -1px 0 rgba(0,0,0,0.05);
}

/* ===== TIPOGRAFÍA TIPO LÁPIZ ===== */
.pencil {
  font-family: "Caveat", cursive; /* handwriting */
  font-size: 1.25rem;
  line-height: 1.55;
  color: #1f1f1f;
  /* efecto grafito muy suave */
  text-shadow: 0.2px 0.4px 0 rgba(0,0,0,0.08);
}

/* Mantén Playfair para títulos dentro del papel */
.post-title {
  font-family: 'Playfair Display', serif;
  color: #111;
  font-size: 1.55rem;
  margin: 0 0 0.25rem;
}

.post-head {
  margin-left: 0.6rem; /* respeta la “línea roja” izquierda */
  margin-bottom: 0.6rem;
}

.post-meta {
  font-size: 0.9rem;
  color: #666;
}

/* ===== MEDIA (IMAGEN / VÍDEO) ===== */
.post-media {
  margin: 0.6rem 0 1rem;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
}

.post-media img,
.post-media video {
  display: block;
  width: 100%;
  height: auto;
}

.post-media figcaption {
  font-size: 0.9rem;
  color: #444;
  background: rgba(255,255,255,0.75);
  padding: 0.5rem 0.8rem;
}

/* Enlaces dentro del papel */
.paper a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,45,136,0.45);
  transition: color .2s ease, border-color .2s ease;
}
.paper a:hover {
  color: #ff0e76;
  border-color: rgba(255,45,136,0.8);
}

/* Imagen más pequeña flotada a la izquierda */
.post-media.side {
  float: left;
  width: 280px;               /* ajusta tamaño */
  margin: 0 1rem 0.5rem 0;    /* separación del texto */
}

.post-media.side img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

/* Asegura que el contenedor (article/paper) “envuelva” el float */
.paper::after {
  content: "";
  display: table;
  clear: both;
}



.footer {
  text-align: center;
  padding: 3rem 1rem;
  background: var(bg);
  color: #ff2d88;
  font-family: 'Playfair Display', serif;
}

.footer h3 {
  font-size: 1rem;
  color: #ff2d88;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.footer-line {
  width: 180px;
  height: 2px;
  background: #ff2d88;
  margin: 0 auto 2rem auto;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.icon-circle {
  width: 55px;
  height: 55px;
  background: rgb (255,45,136,0.8);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .3s ease;
}

.icon-circle:hover {
  background: #ff2d88;
  transform: scale(1.1);
}

.icon-circle img {
  width: 28px;
  height: 28px;
  filter: invert(73%) sepia(19%) saturate(6571%) hue-rotate(300deg) brightness(96%) contrast(98%);
}

.footer-copy {
  color: #ccc;
  font-size: 0.9rem;
  margin-top: 1rem;
  letter-spacing: 1px;
}

.email-button {
  position: fixed;
  bottom: 25px;
  left: 25px;
  background: #ff2d88;
  color: white;
  font-size: 1.4rem;
  padding: 12px 14px;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(255, 0, 100, 0.6);
  transition: 0.3s;
  z-index: 9999;
}

.email-button:hover {
  background: #ff5aa8;
  transform: scale(1.1);
}

/*SOLO MÓVIL (≤ 480px) – TODO LO IMPORTANTE JUNTO Y ORDENADO
   ========================================================= */
@media (max-width: 480px) {

  /* Logos visibles pero más pequeños */
  .logo-left,
  .logo-right {
    height: 32px !important;   /* más pequeños */
    width: auto !important;
  }

  /* Título más pequeño */
  .mag-header h1 {
    font-size: 1.25rem !important;
    margin: 0 0.4rem !important;
    text-align: center;
  }

    .mag-header {
    padding: 0.6rem 0 0.6rem !important;
  }


 /* --- MENÚ SUPERIOR --- */
  .top-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;   /* EN LÍNEA, no columna */
    gap: 1.2rem;
    margin-top: 0.2rem;
  }

  .dropbtn,
  .top-nav > a.nav-link {
    font-size: 0.78rem !important;
    letter-spacing: 0.1em !important;
  }

  .dropbtn::after,
  .top-nav > a.nav-link::after {
    transform: scaleX(0.2);
    opacity: 0.5;
  }

  /* Dropdown flotando sobre la portada, sin empujar contenido */
  .dropdown {
    position: relative;
  }

 .dropdown-content {
    position: absolute;
    top: 100%;
    left: 0;               /* pegar a la izquierda del botón */
    transform: none !important;
    width: 220px !important;
    max-width: 90vw !important;
    border-radius: 12px;
    z-index: 9999;
  }

  .dropdown-content a {
    font-size: 0.9rem !important;
    padding: 0.7rem 1rem;
  }

  /* Flechas laterales centradas en vertical en móvil */
  .side-arrow {
    top: 55%;
    bottom: auto;
    transform: translateY(-50%);
    font-size: 1.6rem;
  }

  .side-arrow.left { left: 10px; }
  .side-arrow.right { right: 10px; }

  /* Hero: imagen dentro de la tarjeta sin huecos raros */
  .page,
  .page:first-of-type {
    min-height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .page .content-box,
  .page-card,
  .hero-card,
  .cover {
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
  }

  .page:first-of-type .cover {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 25px;
    overflow: hidden;
  }

  .page:first-of-type .cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    margin: 0 !important;
    padding: 0 !important;
  }

  .page:first-of-type .cover-text {
    left: 1rem !important;
    right: 1rem !important;
    bottom: 1rem !important;
    padding: 0.6rem 0.8rem !important;
    margin: 0 !important;
  }

  .page:first-of-type .cover-text h2 {
    font-size: 1.15rem !important;
    line-height: 1.25;
  }

  .page:first-of-type .cover-text h3 {
    font-size: 0.9rem !important;
  }

   
  /* Ebooks: 2 por fila, más pequeños */
  .ebooks-shelf {
    gap: 1.2rem;
    padding-bottom: 2rem;
    margin-top: 1rem;
  }

  .ebook-card {
    width: calc(50% - 1rem);
    padding: 0.6rem 0.5rem 0.9rem;
    border-radius: 12px;
  }

  .ebook-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 8px;
    object-fit: cover;
  }

  .ebook-title {
    font-size: 0.85rem;
    line-height: 1.1;
  }

  .ebook-sub {
    font-size: 0.75rem;
  }

  /* Blog: quitar float de la imagen lateral */
  .post-media.side {
    float: none;
    width: 100%;
    margin: 0 0 0.8rem 0;
    max-width: 420px;
  }

  .post-media.side img {
    border: 2px solid rgba(255,45,136,0.25);
  }
}
































