*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  .align-items {
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e0e0e0;
    min-height: 100vh;
  }

  /* Contenedor principal */
  .cs-art {
    max-width: 600px;
    width: 100%;
    background-color: #1e1e1e;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
  }

  /* Páginas */
  .cs-art-page {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
    /* === clave: que el texto se adapte sin partirse === */
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
  }

  .cs-art-page.active {
    display: block;
  }

  /* ==============================
     PORTADA: LIBRETO VERDE DESGASTADO
  ============================== */
  .cover-page {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 50px 30px 40px;
    background:
      radial-gradient(ellipse 80px 60px at 15% 20%, rgba(20,65,35,0.4), transparent),
      radial-gradient(ellipse 60px 90px at 82% 75%, rgba(18,55,30,0.3), transparent),
      radial-gradient(circle 40px at 72% 18%, transparent 28px, rgba(25,70,38,0.22) 29px, rgba(25,70,38,0.22) 33px, transparent 34px),
      radial-gradient(ellipse 120px 80px at 50% 55%, rgba(18,50,28,0.18), transparent),
      radial-gradient(circle at 30% 15%, rgba(255,255,255,0.035), transparent 50%),
      linear-gradient(155deg, #101a13 0%, #162018 25%, #121c14 50%, #0f1911 75%, #0b140d 100%);
    /* la portada no necesita quiebre de texto */
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  .cover-page.active {
    display: flex;
  }

  .cover-page::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      repeating-linear-gradient(
        0deg,
        rgba(255,255,255,0.016),
        rgba(255,255,255,0.016) 1px,
        transparent 1px,
        transparent 3px
      ),
      repeating-linear-gradient(
        90deg,
        rgba(255,255,255,0.007),
        rgba(255,255,255,0.007) 1px,
        transparent 1px,
        transparent 2px
      );
    opacity: 0.6;
    pointer-events: none;
    z-index: 1;
  }

  .cover-page::after {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(70,150,80,0.18);
    border-radius: 8px;
    transform: rotate(-0.3deg);
    pointer-events: none;
    z-index: 2;
    box-shadow:
      inset 0 0 50px rgba(0,0,0,0.6),
      inset 0 0 100px rgba(0,0,0,0.3),
      0 0 60px rgba(0,0,0,0.4);
  }

  .cover-inner-border {
    position: absolute;
    inset: 18px;
    border: 1px dashed rgba(70,150,80,0.09);
    border-radius: 6px;
    transform: rotate(0.2deg);
    pointer-events: none;
    z-index: 2;
  }

  .cover-spine {
    position: absolute;
    left: 0;
    top: 5%;
    bottom: 5%;
    width: 14px;
    pointer-events: none;
    z-index: 3;
    background: linear-gradient(
      90deg,
      rgba(0,0,0,0.6) 0%,
      rgba(0,0,0,0.3) 30%,
      rgba(20,55,30,0.15) 50%,
      rgba(0,0,0,0.3) 70%,
      rgba(0,0,0,0.6) 100%
    );
    border-right: 1px solid rgba(40,90,45,0.15);
  }

  .cover-crease {
    position: absolute;
    pointer-events: none;
    z-index: 2;
  }

  .cover-crease-1 {
    top: 0;
    left: 38%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
      180deg,
      transparent 5%,
      rgba(255,255,255,0.03) 20%,
      rgba(255,255,255,0.06) 50%,
      rgba(255,255,255,0.03) 80%,
      transparent 95%
    );
    transform: rotate(1deg);
  }

  .cover-crease-2 {
    top: 0;
    left: 62%;
    width: 1px;
    height: 100%;
    background: linear-gradient(
      180deg,
      transparent 10%,
      rgba(255,255,255,0.02) 30%,
      rgba(255,255,255,0.04) 60%,
      rgba(255,255,255,0.02) 85%,
      transparent 100%
    );
    transform: rotate(-0.5deg);
  }

  .cover-dogear {
    position: absolute;
    width: 0;
    height: 0;
    z-index: 4;
  }

  .cover-dogear-tr {
    top: 0;
    right: 0;
    border-style: solid;
    border-width: 0 35px 35px 0;
    border-color: transparent #080e0a transparent transparent;
    filter: drop-shadow(-2px 2px 3px rgba(0,0,0,0.4));
  }

  .cover-dogear-bl {
    bottom: 0;
    left: 0;
    border-style: solid;
    border-width: 28px 0 0 28px;
    border-color: transparent transparent transparent #080e0a;
    filter: drop-shadow(2px -2px 3px rgba(0,0,0,0.3));
  }

  .cover-stain {
    position: absolute;
    pointer-events: none;
    z-index: 2;
  }

  .cover-stain-1 {
    bottom: 12%;
    left: 20%;
    width: 70px;
    height: 45px;
    background: radial-gradient(ellipse, rgba(25,60,35,0.14), transparent 70%);
    border-radius: 50%;
    transform: rotate(-15deg);
  }

  .cover-stain-2 {
    top: 30%;
    right: 10%;
    width: 40px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(20,55,30,0.12), transparent 70%);
    border-radius: 50%;
    transform: rotate(20deg);
  }

  .cover-edge-wear {
    position: absolute;
    pointer-events: none;
    z-index: 3;
  }

  .cover-edge-wear-top {
    top: 0;
    left: 10%;
    right: 15%;
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent 0%,
      rgba(55,130,65,0.1) 10%,
      rgba(55,130,65,0.2) 30%,
      transparent 40%,
      rgba(55,130,65,0.15) 55%,
      rgba(55,130,65,0.2) 75%,
      transparent 90%
    );
  }

  .cover-edge-wear-bottom {
    bottom: 0;
    left: 20%;
    right: 8%;
    height: 3px;
    background: linear-gradient(
      90deg,
      transparent 5%,
      rgba(55,130,65,0.15) 25%,
      transparent 45%,
      rgba(55,130,65,0.2) 60%,
      rgba(55,130,65,0.1) 80%,
      transparent 100%
    );
  }

  .cover-scratches {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
    background:
      linear-gradient(42deg, transparent 42%, rgba(255,255,255,0.02) 42.3%, transparent 42.6%),
      linear-gradient(135deg, transparent 60%, rgba(255,255,255,0.015) 60.2%, transparent 60.5%),
      linear-gradient(78deg, transparent 25%, rgba(255,255,255,0.02) 25.2%, transparent 25.5%);
  }

  .cover-content {
    position: relative;
    z-index: 5;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* que las palabras de la portada tampoco se partan */
    overflow-wrap: normal;
    word-break: normal;
  }

  .cover-icon {
    font-size: 3.8rem;
    margin-bottom: 14px;
    margin-top: 10px;
    filter:
      drop-shadow(0 2px 4px rgba(0,0,0,0.7))
      drop-shadow(0 0 15px rgba(70,180,90,0.15));
    opacity: 0.9;
  }

  .cover-title {
    font-size: 2rem;
    margin: 0 0 6px 0;
    color: #6dbe78;
    letter-spacing: 0.5px;
    text-shadow:
      0 2px 15px rgba(0,0,0,0.8),
      0 0 30px rgba(0,0,0,0.5),
      1px 1px 0 rgba(0,0,0,0.5);
    font-weight: 700;
  }

  .cover-subtitle {
    font-size: 1.15rem;
    margin: 0;
    color: #8aaa8e;
    font-weight: 300;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    letter-spacing: 2px;
    text-transform: uppercase;
  }

  .cover-divider {
    width: 60%;
    max-width: 180px;
    height: 1px;
    margin: 18px auto;
    background: linear-gradient(
      90deg,
      transparent,
      rgba(70,150,80,0.25) 20%,
      rgba(70,150,80,0.45) 50%,
      rgba(70,150,80,0.25) 80%,
      transparent
    );
  }

  .cover-case {
    font-size: 0.92rem;
    color: #6a8a6e;
    line-height: 1.5;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
  }

  .highlight-case {
    color: #4eaa5e;
    font-weight: bold;
  }

  .cover-seal {
    position: absolute;
    bottom: 18px;
    right: 22px;
    width: 52px;
    height: 52px;
    border: 2px solid rgba(140,45,25,0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: rotate(-12deg);
    z-index: 4;
    pointer-events: none;
  }

  .cover-seal::before {
    content: "SECRETO";
    font-size: 7px;
    letter-spacing: 1.5px;
    color: rgba(140,45,25,0.28);
    text-transform: uppercase;
    font-weight: bold;
  }

  .cover-seal::after {
    content: "";
    position: absolute;
    inset: 3px;
    border: 1px solid rgba(140,45,25,0.14);
    border-radius: 50%;
  }

  /* ==============================
     CONTENIDO INTERIOR
  ============================== */
  .cs-art-page h3 {
    color: #5ab868 !important;
    border-bottom: 1px solid #2a3a2c;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 14px;
    font-size: 1.15rem;
  }

  .cs-art-page ul,
  .cs-art-page ol {
    padding-left: 22px;
    margin: 0;
  }

  .cs-art-page ul li,
  .cs-art-page ol li {
    margin-bottom: 10px;
    color: #fff !important;
    font-size: 18px;
    line-height: 1.7;
  }

  .cs-art-page p {
    margin-bottom: 12px;
    color: #fff;
    font-size: 18px;
    line-height: 1.7;
  }


  /* Navegación */
  .cs-art-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
    gap: 12px;
  }

  .cs-art-nav button {
    background: #2a3a2c;
    color: #c0dcc4;
    border: 1px solid #2a3a2c;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    flex: 1;
  }

  .cs-art-nav button:hover:not(:disabled) {
    background: #3a4f3c;
    border-color: #5a8a5e;
  }

  .cs-art-nav button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }

  @keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* ==============================
     RESPONSIVE MÓVIL
  ============================== */
  @media (max-width: 640px) {
    body {
      font-size: 16px;
      background: #080e0a;
    }

    .align-items {
      padding: 0;
      align-items: flex-start;
      min-height: auto;
    }

    .cs-art {
      width: 100%;
      max-width: 100%;
      min-height: 100vh;
      min-height: 100dvh;
      border-radius: 0;
      padding: 0;
      box-shadow: none;
      display: flex;
      flex-direction: column;
    }

    /* === CLAVE: solo la portada llena la pantalla ===
       las páginas interiores se adaptan al contenido */
    .cs-art-page.cover-page {
      flex: 1 1 0%;
      min-height: 0;
      padding: 50px 24px 40px;
      border-radius: 0;
    }

    /* páginas interiores: crecen con su contenido */
    .cs-art-page:not(.cover-page) {
      flex: 0 0 auto;
      padding: 24px 20px;
    }

    .cover-page.active {
      display: flex;
    }

    .cover-icon {
      font-size: 3rem;
    }

    .cover-title {
      font-size: 1.6rem;
    }

    .cover-subtitle {
      font-size: 0.85rem;
      letter-spacing: 1.5px;
    }

    .cover-case {
      font-size: 0.85rem;
    }

    .cover-divider {
      margin: 14px auto;
    }

    .cover-seal {
      width: 42px;
      height: 42px;
      bottom: 14px;
      right: 16px;
    }

    .cover-seal::before {
      font-size: 6px;
    }

    .cover-dogear-tr {
      border-width: 0 28px 28px 0;
    }

    .cover-dogear-bl {
      border-width: 22px 0 0 22px;
    }

    .cover-spine {
      width: 10px;
    }

    .cs-art-nav {
      position: sticky;
      bottom: 0;
      background: #141e16;
      margin: 0;
      padding: 14px 16px;
      gap: 10px;
      border-top: 1px solid #223326;
      flex-shrink: 0;
    }

    .cs-art-nav button {
      font-size: 0.85rem;
      padding: 12px 14px;
      border-radius: 10px;
    }

    h3 {
      font-size: 1.05rem;
    }

    .cs-art-page ul li,
    .cs-art-page ol li,
    .cs-art-page p {
      font-size: 0.95rem;
      line-height: 1.7;
    }

    ul, ol {
      padding-left: 18px;
    }
  }

  @media (max-width: 380px) {
    .cover-title {
      font-size: 1.35rem;
    }

    .cover-icon {
      font-size: 2.5rem;
    }

    .cover-case {
      font-size: 0.8rem;
    }

    .cs-art-nav button {
      font-size: 0.8rem;
      padding: 10px;
    }

    .cs-art-page:not(.cover-page) {
      padding: 20px 16px;
    }
  }
  .arex {
border: 1px solid #444; 
padding: 18px 22px; 
width: 100%; 
margin: 20px 0;
}

.arexi {
border-bottom: 1px dashed #444; 
padding-bottom: 8px; 
margin-bottom: 14px;  
text-transform: uppercase; 
letter-spacing: 1px;
}
.arexp {
margin: 0 0 8px;
}