:root {
  --azul-petroleo: #0f3d4c;
  --azul-petroleo-oscuro: #0f3d4c;
  --gris-claro: #eef2f4;
  --gris-medio: #c9d3d9;
  --blanco: #ffffff;
  --amarillo-tarjeta: #FFFFE0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--azul-petroleo-oscuro);
  background: linear-gradient(180deg, var(--gris-claro) 0%, var(--blanco) 60%);
}

/* =========================
   HERO (NO TOCAR)
========================= */
.hero {
  background: linear-gradient(120deg, var(--azul-petroleo) 0%, var(--azul-petroleo-oscuro) 100%);
  color: var(--blanco);
  padding: 32px 24px 64px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 40px;
}

.hero-label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
  font-weight: 600;
  opacity: 0.9;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.hero h1 {
  font-size: clamp(1.2rem, 1.6vw, 1.95rem);
  line-height: 1.1;
  text-align: left;
  hyphens: none;
  word-break: normal;
  overflow-wrap: normal;
  margin: 0 0 10px;
}

.hero p {
  max-width: 560px;
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  line-height: 1.6;
  text-align: justify;
}

.hero-subtitle {
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 600;
  opacity: 0.9;
  margin-top: 10px;
  overflow-wrap: normal;
}

.hero-subtitle-line {
  white-space: nowrap;
}

.hero-text {
  flex: 1 1 60%;
  max-width: 680px;
  padding-right: 16px;
}

.hero-image {
  flex: 1 1 40%;
  display: flex;
  justify-content: flex-end;
}

.hero-image img {
  width: 100%;
  max-width: 420px;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(11, 47, 58, 0.28);
  object-fit: cover;
  height: auto;
}

/* =========================
   GLOBAL SECTIONS
========================= */
.section {
  max-width: 1100px;
  margin: 48px auto;
  padding: 0 24px;
}

.section h2 {
  margin-bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.25;
}

/* =========================
   RESUMEN BOX
========================= */
.summary-box {
  background: #f3f6f8;
  border: 1px solid rgba(20, 60, 80, 0.08);
  border-radius: 10px;
  padding: 26px 26px 28px;
  box-shadow: 0 10px 22px rgba(15, 61, 76, 0.06);
}

#resumen p {
  text-align: justify;
  line-height: 1.65;
  margin: 0 0 22px;
}

/* =========================
   CARDS
========================= */
.cards-wrap {
  position: relative;
  border: none !important;
  background: transparent !important;
}

.cards-wrap::before,
.cards-wrap::after {
  content: none !important;
  display: none !important;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  position: relative;
  z-index: 2;
}

.card {
  background: var(--amarillo-tarjeta);
  border: 1px solid rgba(20, 60, 80, 0.14);
  padding: 22px 18px;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 61, 76, 0.10);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.25;
  color: #0b2f3a;
}

.card p {
  margin: 0;
  line-height: 1.55;
  color: rgba(11, 47, 58, 0.9);
}

.card:hover {
  transform: translateY(-7px);
  box-shadow: 0 18px 34px rgba(15, 61, 76, 0.18);
}

.cards-highlight {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.card.card-highlight {
  background: #ffa500;
  color: #2b1a00;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(15, 61, 76, 0.18);
  border: none;
  min-width: 280px;
  font-weight: 700;
  padding: 14px 18px;
}

.connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.connectors line {
  stroke: rgba(20, 60, 80, 0.35);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* =========================
   GRAFICA
========================= */
.graphic {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   AUTOR
========================= */
.author-box {
  border-left: 4px solid rgba(15, 61, 76, 0.6);
  padding-left: 16px;
  margin-top: 6px;
}

.author-box p {
  margin: 0;
  line-height: 1.7;
  text-align: justify;
  color: rgba(11, 47, 58, 0.9);
}

.author-box a {
  color: #4b2aa7;
  text-decoration: underline;
}

/* =========================
   CTA (corporativo)
========================= */
.cta-box {
  background: linear-gradient(120deg, var(--azul-petroleo) 0%, var(--azul-petroleo-oscuro) 100%);
  color: var(--blanco);
  padding: 26px 22px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 12px 26px rgba(15, 61, 76, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.10);
}

.cta-box h2 {
  margin: 0 auto 14px;
  max-width: 980px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--blanco);
  letter-spacing: 0.2px;
}

/* Botón base */
.btn {
  display: inline-block;
  padding: 12px 24px;
  background: var(--blanco);
  color: var(--azul-petroleo);
  text-decoration: none;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.9);
}

/* =========================
   BOTÓN DESCARGAR (más pequeño + sin negrita)
========================= */
#btn-descargar-articulo {
  font-family: inherit !important;

  /* Igual que .hero p en tamaño */
  font-size: clamp(0.95rem, 1.1vw, 1.05rem) !important;

  /* QUITAR negrita */
  font-weight: 400 !important;

  /* CLAVE para que se vea pequeño: line-height menor */
  line-height: 1.2 !important;

  letter-spacing: normal !important;
  text-transform: none !important;

  /* CLAVE: padding menor (más fino) */
  padding: 6px 12px !important;

  border-radius: 6px !important;
  border: 1px solid rgba(255, 255, 255, 0.85) !important;

  min-width: 0 !important;
  width: auto !important;
  min-height: 0 !important;

  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

#btn-descargar-articulo .btn-label {
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: 400 !important;
  line-height: inherit !important;
  letter-spacing: inherit !important;
  text-transform: none !important;
}

#btn-descargar-articulo:hover {
  background: #f3f6f8;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

#btn-descargar-articulo:active {
  transform: translateY(0px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.10);
}

/* =========================
   FOOTER
========================= */
.footer {
  background: var(--azul-petroleo-oscuro);
  color: var(--blanco);
  padding: 24px;
  text-align: center;
  font-size: 0.9rem;
}

.footer-meta {
  opacity: 0.7;
  margin-top: 8px;
}

.favicon-placeholder {
  margin-top: 8px;
  font-size: 0.75rem;
  opacity: 0.6;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  display: inline-block;
  padding: 4px 8px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.0rem;
  }

  .topbar {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start; /* NUEVO: alinear a la izquierda en móvil */
  }

  .hero-label {
    text-align: left;        /* NUEVO */
    align-items: flex-start; /* NUEVO */
  }

  .hero-content {
    flex-direction: column;
  }

  .hero-image {
    justify-content: center;
  }

  .hero-image img {
    max-width: 100%;
  }

  .connectors {
    display: none;
  }

  .cta-box {
    padding: 22px 18px;
  }
}
