/* ════════════════════════════════════════════════════════════════ */
/* VARIABLES                                                        */
/* ════════════════════════════════════════════════════════════════ */

:root {
  --color-navy: #1a2751;
  --color-blue: #047aff;
  --color-green: #22bf26;
  --color-sand: #efa367;
  --color-sand2: #e0a271;
  --color-dark: #32373b;
  --color-mid: #6c737d;
  --color-steel: #b6c6d6;
  --color-light: #f0f5fb;
  --color-cream: #faf6f5;
  --color-white: #ffffff;
  --color-black: #333333;

  --noche: #12293b;
  --noche-2: #122233;
  --gris: #e0e0e0;
  --cielo: #c9d9e3;
  --cielo-noche: #bbcbd5;
  --esparto: #b1b17f;
  --esparto-noche: #9fa475;
  --tierra: #dbd1c4;
  --tierra-noche: #cdc1b7;
  --barro: #dba272;
  --barro-noche: #c9946b;

  --font-main: "Sorbas AG", Georgia, serif;
  --page-width: 860px;
}

/* ════════════════════════════════════════════════════════════════ */
/* ESTILOS BASE - DESKTOP / SCREEN                                  */
/* ════════════════════════════════════════════════════════════════ */

body {
  font-family: var(--font-main);
  background: var(--color-white);
  color: var(--color-dark);
  line-height: 1.7;
}

.sb-logo-white {
  width: 56px;
  height: 85px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg version='1.0' xmlns='http://www.w3.org/2000/svg' width='49pt' height='59pt' viewBox='0 0 49 59' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0,59) scale(0.1,-0.1)' fill='%23ffffff' stroke='none'%3E%3Cpath d='M120 489 c-40 -34 -74 -68 -77 -76 -3 -8 -1 -39 5 -69 8 -39 8 -69 0 -108 -6 -30 -8 -65 -4 -78 9 -30 121 -121 149 -120 30 0 238 79 256 97 12 12 13 39 4 175 -6 89 -15 166 -20 171 -10 10 -208 69 -230 69 -7 0 -44 -27 -83 -61z m251 -39 c10 -6 19 -19 19 -28 0 -16 -10 -17 -97 -14 -155 5 -167 -26 -29 -78 102 -39 136 -66 136 -110 0 -80 -94 -106 -262 -74 -22 4 -28 11 -28 30 0 24 1 24 53 17 86 -13 156 -9 175 11 16 16 16 18 -6 36 -12 10 -46 26 -75 36 -117 38 -149 67 -139 122 8 42 56 62 150 62 46 0 92 -5 103 -10z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
}
.sb-logo-dark{
  width: 56px;
  height: 85px;
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg version='1.0' xmlns='http://www.w3.org/2000/svg' width='49pt' height='59pt' viewBox='0 0 49 59' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0,59) scale(0.1,-0.1)' fill='%23ffffff' stroke='none'%3E%3Cpath d='M120 489 c-40 -34 -74 -68 -77 -76 -3 -8 -1 -39 5 -69 8 -39 8 -69 0 -108 -6 -30 -8 -65 -4 -78 9 -30 121 -121 149 -120 30 0 238 79 256 97 12 12 13 39 4 175 -6 89 -15 166 -20 171 -10 10 -208 69 -230 69 -7 0 -44 -27 -83 -61z m251 -39 c10 -6 19 -19 19 -28 0 -16 -10 -17 -97 -14 -155 5 -167 -26 -29 -78 102 -39 136 -66 136 -110 0 -80 -94 -106 -262 -74 -22 4 -28 11 -28 30 0 24 1 24 53 17 86 -13 156 -9 175 11 16 16 16 18 -6 36 -12 10 -46 26 -75 36 -117 38 -149 67 -139 122 8 42 56 62 150 62 46 0 92 -5 103 -10z'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  filter: invert(0.8) grayscale(1) brightness(1.2);
}

.logo {
  display: flex;
  align-items: center;
  font-size: 4rem;
  color: var(--color-dark);
  font-weight: 300;
}

/* ── BOTÓN PDF FLOTANTE ── */
.pdf-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 100;
  background: var(--noche);
  color: var(--color-white);
  font-family: var(--font-main);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 32px rgba(26, 39, 81, 0.35);
  transition:
    background 0.2s,
    transform 0.15s,
    box-shadow 0.2s;
  text-decoration: none;
}

.pdf-btn:hover {
  background: var(--color-blue);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(4, 122, 255, 0.4);
}

.pdf-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── PÁGINA ── */
.page {
  max-width: var(--page-width);
  margin: 40px auto;
  background: var(--color-white);
  box-shadow: 0 8px 80px rgba(18, 34, 51, 0.22);
  border-radius: 16px;
  overflow: hidden;
}

/* ── PORTADA ── */
.cover {
  background: var(--color-white);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.cover-photo {
  width: 100%;
  height: 380px;
  background: linear-gradient(
    135deg,
    var(--noche-2) 0%,
    var(--noche) 50%,
    var(--color-navy) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-image: url("/wp-content/uploads/2026/04/DJI_0147-HDR-e1777537596877.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cover-photo-placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  line-height: 2;
}

.cover-photo-placeholder span {
  display: block;
  font-size: 28px;
  margin-bottom: 8px;
  opacity: 0.4;
}

.cover-content {
  padding: 44px 56px 52px;
}

.cover-eyebrow {
  font-size: 11px;
  font-weight: 100;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-dark);
  margin-bottom: 12px;
}
.cover-title {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--color-black);

}

.cover-title em {
  display: block;
  font-style: normal;
  font-weight: 400;
  color: var(--color-black);
  font-size: 3.5rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding-left: 0.5rem;
}

.cover-sub {
  margin-top: 20px;
  font-size: 17px;
  font-weight: 400;
  color: var(--color-dark);
  font-style: italic;
  max-width: 520px;
  line-height: 1.5;
}

.cover-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cover-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-white);
  background: var(--barro);
  padding: 5px 14px;
  border-radius: 50px;
}

/* ── CONTENIDO ── */
.content {
  padding: 0 3rem 5rem 3rem;
}

/* ── SECCIÓN STRIPE ── */
.stripe {
  background: var(--color-steel);
  margin: 0;
  color: var(--color-white);
  padding: 18px 56px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stripe i {
  font-size: 3rem;
}

/* ── INTRO BLOCK ── */
.intro-block {
  padding: 0 56px;
}

.intro-block p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.intro-block p:last-child {
  margin-bottom: 0;
}

/* ── TIP ── */
.tip {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 24px 0;
  border-radius: 12px;
  overflow: hidden;
}

.tip-icon {
  background: var(--barro);
  padding: 14px 16px;
  line-height: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tip-icon svg {
  width: 20px;
  height: 20px;
  fill: var(--color-white);
  flex-shrink: 0;
}

.tip-text {
  background: var(--color-cream);
  border-top: 1px solid var(--tierra);
  border-bottom: 1px solid var(--tierra);
  border-right: 1px solid var(--tierra);
  border-radius: 0 12px 12px 0;
  padding: 12px 18px;
  font-size: 15px;
  color: var(--color-dark);
  line-height: 1.6;
  flex: 1;
}

/* ── LINK BOX ── */
.link-box {
  border: 1px dashed var(--color-blue);
  border-left: 4px solid var(--color-blue);
  background: var(--color-light);
  padding: 12px 20px;
  font-size: 15px;
  font-style: italic;
  color: var(--color-mid);
  margin: 20px 0;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(4, 122, 255, 0.06);
}

.link-box::before {
  content: "↓  ";
  font-weight: 700;
  font-style: normal;
  color: var(--color-blue);
}

/* ── CHAPTER BADGE ── */
.chapter {
  display: flex;
  margin: 44px 0 24px;
  border-radius: 12px;
  overflow: hidden;
}

.chapter-num {
  background: var(--color-white);
  color: var(--color-sand);
  font-size: 36px;
  font-weight: 700;
  width: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chapter-title {
  background: var(--color-white);
  color: var(--color-navy);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding: 0 28px;
  flex: 1;
}

/* ── SUB HEADING ── */
.sub-heading {
  font-size: 19px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 36px 0 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--cielo);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sub-heading::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--barro);
  flex-shrink: 0;
  border-radius: 25px;
}

/* ── PÁRRAFO ── */
p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--color-navy);
  text-align: justify;
  margin-bottom: 14px;
}

/* ── FOTO PLACEHOLDER ── */
.photo {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: auto;
  border-radius: 12px;
  overflow: visible;
  position: relative;
}

.photo img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px #d1e1f0;
  display: block;
}

/* ── PHOTOS PITA - LAYOUT 3 FOTOS ── */
.photos.photos-pita {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin: 24px 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
}

.photos.photos-pita .photo:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
}

.photos.photos-pita .photo:first-child img {
  width: 100%;
  height: auto;
  min-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px #d1e1f0;
  display: block;
}

.photos.photos-pita .photo:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.photos.photos-pita .photo:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.photos.photos-pita .photo:nth-child(2) img,
.photos.photos-pita .photo:nth-child(3) img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px #d1e1f0;
  display: block;
}

/* ── PHOTOS ALFARERIA - LAYOUT 3 FOTOS ── */
.photos.photos-alfareria {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
  margin: 24px 0;
  border-radius: 0;
  overflow: visible;
  position: relative;
}

.photos.photos-alfareria .photo:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.photos.photos-alfareria .photo:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.photos.photos-alfareria .photo:nth-child(1) img,
.photos.photos-alfareria .photo:nth-child(2) img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px #d1e1f0;
  display: block;
}

.photos.photos-alfareria .photo.photo-main {
  grid-column: 2;
  grid-row: 1 / 3;
}

.photos.photos-alfareria .photo.photo-main img {
  width: 100%;
  height: auto;
  min-height: 450px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px #d1e1f0;
  display: block;
}

.photo-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-blue);
  margin-bottom: 6px;
}

.photo-caption {
  font-family: var(--font-main);
  position: absolute;
  bottom: 1rem;
  left: 0;
  font-size: 1rem;
  font-weight: bold;
  color: var(--color-white);
  padding: 5px 1rem;
  text-align: left;
  background: rgba(18, 34, 51, 0.55);
  backdrop-filter: blur(8px);
  border-radius: 0 20px 12px 0;
  max-width: 80%;
}

.photo-hint {
  font-size: 12px;
  color: var(--color-steel);
  margin-top: 4px;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 2px solid var(--color-steel);
  margin: 40px 0;
}

.divider-navy {
  border-top-color: var(--color-navy);
}

/* ── CIERRE ── */
.closing {
  text-align: center;
  padding: 48px 40px;
  background: var(--color-steel);
}

span.closing-title-logo {
    display: flex;
    align-items: center;
    margin-right: 1rem;
}

.closing h2 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.closing p {
  font-size: 16px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 0;
}

/* ── HEADER ── */
.doc-header {
  padding: 14px 56px;
  border-bottom: 4px solid var(--noche);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
}

.doc-header-brand {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--noche);
}

.doc-header-sub {
  font-size: 12px;
  color: var(--color-mid);
  font-style: italic;
}

/* ── FOOTER ── */
.doc-footer {
  padding: 14px 56px;
  border-top: 1px solid var(--color-steel);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-white);
}

.doc-footer span {
  font-size: 12px;
  color: var(--color-mid);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════════════════════════ */
/* MEDIA QUERIES - PRINT / PDF                                      */
/* ════════════════════════════════════════════════════════════════ */

@media screen and (max-width: 440px) {
.cover-title{
  flex-direction: column;
}
.closing h2 {
  flex-direction: column;

}
}
@media print {
  /* ── RESET GENERAL ── */
  *,
  *::before,
  *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html,
  body {
    width: 100%;
    margin: 0;
    padding: 0;
    background: white !important;
    font-family: var(--font-main);
    font-size: 11pt;
    line-height: 1.6;
    color: var(--color-dark);
  }

  @page {
    size: A4;
    margin: 0;
  }

  /* ── OCULTAR ELEMENTOS DE UI ── */
  .pdf-btn,
  .doc-header,
  .doc-footer,
  .elementor-5424,
  .elementor-5475,
  .elementor-5493 {
    display: none !important;
  }

  /* ── PÁGINA CONTENEDORA ── */
  .page {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: white;
  }

  /* ════════════════════════════════════ */
  /* PORTADA                              */
  /* ════════════════════════════════════ */

  .cover {
    page-break-after: always;
    page-break-inside: avoid;
    background: var(--color-navy) !important;
    width: 100%;
  }

  .cover-photo {
    width: 100%;
    height: 320px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    display: block;
  }

  .cover-content {
    padding: 40px 48px 52px;
    background: var(--color-navy) !important;
  }

  .cover-eyebrow {
    font-size: 9pt;
    font-weight: 100;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-dark) !important;
    margin-bottom: 12px;
  }

  .cover-title {
    margin: 0;
  }

  .cover-title em {
    display: block;
    font-style: normal;
    font-weight: 100;
    color: var(--color-blue) !important;
    font-size: 2.2rem;
    letter-spacing: 0.02em;
    line-height: 1.3;
    padding-left: 0.5rem;
  }

  .logo {
    display: flex;
    align-items: center;
    font-size: 3.5rem;
    color: var(--color-dark) !important;
    font-weight: 300;
    gap: 4px;
  }

  .sb-logo-white {
    width: 44px;
    height: 53px;
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg version='1.0' xmlns='http://www.w3.org/2000/svg' width='49pt' height='59pt' viewBox='0 0 49 59' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0,59) scale(0.1,-0.1)' fill='%23ffffff' stroke='none'%3E%3Cpath d='M120 489 c-40 -34 -74 -68 -77 -76 -3 -8 -1 -39 5 -69 8 -39 8 -69 0 -108 -6 -30 -8 -65 -4 -78 9 -30 121 -121 149 -120 30 0 238 79 256 97 12 12 13 39 4 175 -6 89 -15 166 -20 171 -10 10 -208 69 -230 69 -7 0 -44 -27 -83 -61z m251 -39 c10 -6 19 -19 19 -28 0 -16 -10 -17 -97 -14 -155 5 -167 -26 -29 -78 102 -39 136 -66 136 -110 0 -80 -94 -106 -262 -74 -22 4 -28 11 -28 30 0 24 1 24 53 17 86 -13 156 -9 175 11 16 16 16 18 -6 36 -12 10 -46 26 -75 36 -117 38 -149 67 -139 122 8 42 56 62 150 62 46 0 92 -5 103 -10z'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;

  }

  .cover-sub {
    margin-top: 18px;
    font-size: 13pt;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.6) !important;
    font-style: italic;
    line-height: 1.5;
  }

  .cover-tags {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .cover-tag {
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white) !important;
    background: var(--color-sand) !important;
    padding: 4px 12px;
    border-radius: 50px;
  }

  /* ════════════════════════════════════ */
  /* STRIPE (bandas de sección)           */
  /* ════════════════════════════════════ */

  .stripe {
    background: var(--color-navy) !important;
    color: white !important;
    padding: 16px 48px;
    font-size: 11pt;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 16px;
    page-break-inside: avoid;
    page-break-after: avoid;
    margin: 0;
  }

  .stripe::before {
    content: "";
    display: block;
    width: 28px;
    height: 3px;
    background: var(--color-blue) !important;
    flex-shrink: 0;
  }

  /* ════════════════════════════════════ */
  /* CONTENIDO                            */
  /* ════════════════════════════════════ */

  .content {
    padding: 0 48px 40px;
  }

  .intro-block {
    padding: 24px 48px;
    page-break-inside: avoid;
  }

  .intro-block p,
  p {
    font-size: 11pt;
    line-height: 1.7;
    color: var(--color-navy) !important;
    text-align: justify;
    margin-bottom: 10px;
    orphans: 3;
    widows: 3;
  }

  /* ════════════════════════════════════ */
  /* CAPÍTULOS                            */
  /* ════════════════════════════════════ */

  .chapter {
    display: flex;
    margin: 36px 0 20px;
    border-radius: 10px;
    overflow: hidden;
    page-break-inside: avoid;
    page-break-before: avoid;
    page-break-after: avoid;
  }

  .chapter-num {
    background: var(--color-blue) !important;
    color: white !important;
    font-size: 28pt;
    font-weight: 700;
    width: 66px;
    min-width: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 14px 0;
  }

  .chapter-title {
    background: var(--color-navy) !important;
    color: white !important;
    font-size: 13pt;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    padding: 0 24px;
    flex: 1;
  }

  /* ════════════════════════════════════ */
  /* SUB HEADINGS                         */
  /* ════════════════════════════════════ */

  .sub-heading {
    font-size: 13pt;
    font-weight: 700;
    color: var(--color-navy) !important;
    margin: 28px 0 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-steel) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    page-break-after: avoid;
  }

  .sub-heading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    min-width: 12px;
    background: var(--color-blue) !important;
    border-radius: 25px;
    flex-shrink: 0;
  }

  /* ════════════════════════════════════ */
  /* TIPS                                 */
  /* ════════════════════════════════════ */

  .tip {
    display: flex;
    align-items: stretch;
    margin: 18px 0;
    border-radius: 10px;
    overflow: hidden;
    page-break-inside: avoid;
  }

  .tip-icon {
    background: var(--color-sand) !important;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .tip-icon svg {
    width: 18px;
    height: 18px;
    fill: white !important;
    flex-shrink: 0;
  }

  .tip-text {
    background: #fff8f0 !important;
    border: 1px solid #f5dfc0 !important;
    border-left: none !important;
    border-radius: 0 10px 10px 0;
    padding: 10px 16px;
    font-size: 10pt;
    color: var(--color-dark) !important;
    line-height: 1.6;
    flex: 1;
  }

  /* ════════════════════════════════════ */
  /* LINK BOX                             */
  /* ════════════════════════════════════ */

  .link-box {
    border: 1px dashed var(--color-blue) !important;
    border-left: 4px solid var(--color-blue) !important;
    background: var(--color-light) !important;
    padding: 10px 16px;
    font-size: 10pt;
    font-style: italic;
    color: var(--color-mid) !important;
    margin: 16px 0;
    border-radius: 6px;
    page-break-inside: avoid;
  }

  .link-box::before {
    content: "↓  ";
    font-weight: 700;
    font-style: normal;
    color: var(--color-blue) !important;
  }

  /* ════════════════════════════════════ */
  /* FOTOS                                */
  /* ════════════════════════════════════ */

  .photo {
    page-break-inside: avoid;
    margin: 16px 0;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    display: block;
    width: 100%;
  }

  .photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
  }

  .photo-caption {
    position: absolute;
    bottom: 12px;
    left: 0;
    font-size: 9pt;
    font-weight: bold;
    color: white !important;
    padding: 4px 14px;
    background: rgba(0, 0, 0, 0.35) !important;
    backdrop-filter: blur(6px);
    border-radius: 0 20px 12px 0;
    max-width: 80%;
  }

  /* ── LAYOUT PITA (2 col) ── */
  .photos.photos-pita {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 12px !important;
    margin: 16px 0 !important;
    page-break-inside: avoid;
    overflow: visible;
  }

  .photos.photos-pita .photo:first-child {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .photos.photos-pita .photo:first-child img {
    height: auto !important;
    min-height: 380px !important;
    object-fit: cover;
    border-radius: 10px;
  }

  .photos.photos-pita .photo:nth-child(2),
  .photos.photos-pita .photo:nth-child(3) {
    grid-column: 2;
  }

  .photos.photos-pita .photo:nth-child(2) img,
  .photos.photos-pita .photo:nth-child(3) img {
    height: 180px !important;
    object-fit: cover;
    border-radius: 10px;
  }

  /* ── LAYOUT ALFARERÍA (2 col inverso) ── */
  .photos.photos-alfareria {
    display: grid !important;
    grid-template-columns: 1.2fr 1fr !important;
    gap: 12px !important;
    margin: 16px 0 !important;
    page-break-inside: avoid;
    overflow: visible;
  }

  .photos.photos-alfareria .photo:nth-child(1) img,
  .photos.photos-alfareria .photo:nth-child(2) img {
    height: 180px !important;
    object-fit: cover;
    border-radius: 10px;
  }

  .photos.photos-alfareria .photo.photo-main {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .photos.photos-alfareria .photo.photo-main img {
    height: auto !important;
    min-height: 380px !important;
    object-fit: cover;
    border-radius: 10px;
  }

  /* ════════════════════════════════════ */
  /* DIVIDER                              */
  /* ════════════════════════════════════ */

  .divider {
    border: none;
    border-top: 1.5px solid var(--color-steel) !important;
    margin: 28px 0;
    page-break-inside: avoid;
  }

  /* ════════════════════════════════════ */
  /* CIERRE                               */
  /* ════════════════════════════════════ */

  .closing {
    page-break-before: always;
    page-break-inside: avoid;
    text-align: center;
    padding: 56px 48px;
    background: var(--color-navy) !important;
    margin: 0;
    border-radius: 0;
  }

  .closing h2 {
    font-size: 28pt;
    font-weight: 700;
    color: white !important;
    margin-bottom: 12px;
  }

  .closing p {
    font-size: 12pt;
    font-style: italic;
    color: rgba(255, 255, 255, 0.6) !important;
    text-align: center;
  }

  .closing a {
    color: var(--color-blue) !important;
    text-decoration: none;
  }

  /* ── SALTOS DE PÁGINA ── */
  h2,
  h3 {
    page-break-after: avoid;
  }

  .chapter + p,
  .sub-heading + p {
    page-break-before: avoid;
  }
}
