:root {
  --color-cyl: #912126;
  --color-cyl-hover: #b12a2f;
  --color-texto: #333333;
  --color-texto-suave: #5f6368;
  --color-gris-suave: #f5f6f8;
  --color-borde: #e6e8ec;
  --color-blanco: #ffffff;
  --sombra-estandar: 0 6px 18px rgba(0, 0, 0, 0.08);
  --sombra-hover: 0 14px 28px rgba(0, 0, 0, 0.12);
  --radio: 14px;
  --fuente: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--fuente);
  color: var(--color-texto);
  background: var(--color-gris-suave);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.page {
  min-height: 100vh;
}

.header-cyl {
  background: var(--color-blanco);
  border-bottom: 1px solid var(--color-borde);
  padding: 48px 20px 32px;
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--color-cyl);
  font-size: 0.92rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-cyl h1,
.page-title {
  margin: 0;
  color: var(--color-cyl);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1.15;
}

.intro,
.page-intro {
  margin: 16px auto 0;
  max-width: 760px;
  color: var(--color-texto-suave);
  font-size: 1.02rem;
  line-height: 1.7;
}

.escuela-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

.card-producto,
.content-card,
.resource-card,
.info-card {
  background: var(--color-blanco);
  border-radius: var(--radio);
  box-shadow: var(--sombra-estandar);
  border: 1px solid transparent;
}

.card-producto {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.card-producto:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-hover);
  border-color: rgba(145, 33, 38, 0.18);
}

.card-image {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: contain;
  background: #eceff3;
}

.card-content {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h2 {
  font-size: 1.3rem;
  margin: 0 0 12px;
  color: var(--color-cyl);
  line-height: 1.2;
}

.card-content p {
  margin: 0 0 22px;
  color: var(--color-texto-suave);
  line-height: 1.65;
}

.btn-cyl,
.btn-secundario,
.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.btn-cyl {
  margin-top: auto;
  background: var(--color-cyl);
  color: var(--color-blanco);
}

.btn-cyl:hover {
  background: var(--color-cyl-hover);
  transform: translateY(-1px);
}

.btn-secundario,
.nav-link {
  background: var(--color-blanco);
  color: var(--color-cyl);
  border: 1px solid rgba(145, 33, 38, 0.18);
}

.btn-secundario:hover,
.nav-link:hover,
.subnav a:hover,
.subnav a[aria-current="page"] {
  border-color: rgba(145, 33, 38, 0.35);
  background: rgba(145, 33, 38, 0.06);
}

.footer-cyl {
  text-align: center;
  max-width:1200px;
  margin:24px auto 34px;
  padding:0 20px;
}

.footer-banner img{
	width:100%;
	height:auto;
	display:block;
}

/* Páginas de contenido */
.content-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.content-card {
  padding: 32px;
}

.top-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
}

.back-link {
  color: var(--color-texto-suave);
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  color: var(--color-cyl);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.subnav a {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-cyl);
  background: var(--color-blanco);
  border: 1px solid rgba(145, 33, 38, 0.16);
}

.hero-block {
  margin-bottom: 22px;
}

.hero-block p {
  margin-top: 14px;
}

.intro-box {
  background: #fafafb;
  border: 1px solid var(--color-borde);
  border-radius: 12px;
  padding: 18px 20px;
  color: var(--color-texto-suave);
  line-height: 1.7;
}

.section-divider {
  height: 1px;
  background: var(--color-borde);
  margin: 28px 0;
}

.content-section h2 {
  margin: 0 0 10px;
  color: var(--color-cyl);
  font-size: 1.55rem;
}

.content-section > p {
  margin: 0 0 18px;
  color: var(--color-texto-suave);
  line-height: 1.7;
}

.resource-list {
  display: grid;
  gap: 18px;
}

.resource-card {
  padding: 22px;
}

.resource-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(145, 33, 38, 0.08);
  color: var(--color-cyl);
  font-size: 0.82rem;
  font-weight: 700;
}

.resource-card h3,
.info-card h3 {
  margin: 0 0 8px;
  color: var(--color-cyl);
  font-size: 1.15rem;
}

.resource-card p,
.info-card p,
.info-card li {
  margin: 0;
  color: var(--color-texto-suave);
  line-height: 1.65;
}

.resource-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 22px;
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
}

.pdf-card img {
  max-width: 100%;
  max-height: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin-bottom: 12px;
}

@media (max-width: 760px) {
  .header-cyl {
    padding: 38px 16px 28px;
  }

  .escuela-container {
    gap: 20px;
    margin: 24px auto 30px;
    padding: 0 12px;
  }

  .card-content,
  .content-card,
  .resource-card,
  .info-card {
    padding: 18px;
  }

  .top-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .content-shell {
    padding: 18px 12px 40px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================
   VIDEO GRID
========================= */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.video-card h3 {
  margin-bottom: 12px;
}

/* VIDEO EMBED */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* VIDEO PLACEHOLDER */
.video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #6b7280;
  font-weight: 600;
  text-align: center;
}

.video-placeholder span {
  background: white;
  padding: 8px 14px;
  border-radius: 20px;
  border: 1px solid #d1d5db;
}


/* =========================
   RECURSOS / PDF
========================= */
.resource-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.resource-card {
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--sombra-estandar);
  display: flex;
  flex-direction: column;
}

.resource-card h3 {
  margin-bottom: 10px;
}

/* MINIATURA PDF */
.pdf-thumb {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.pdf-thumb img {
  max-width: 100%;
  max-height: 180px;
  object-fit: contain;
}

/* BADGES */
.resource-meta {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.badge {
  background: #eef2f7;
  color: #4b5563;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 6px;
  font-weight: 600;
}

/* BOTONES RECURSOS */
.resource-actions {
  margin-top: auto;
  padding-top: 10px;
}


/* =========================
   SUBNAV (menú superior)
========================= */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.subnav a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--color-texto-suave);
  padding: 6px 10px;
  border-radius: 6px;
}

.subnav a:hover {
  background: rgba(145,33,38,0.08);
  color: var(--color-cyl);
}

.subnav a[aria-current="page"] {
  background: var(--color-cyl);
  color: white;
}


/* =========================
   INTRO BOX
========================= */
.intro-box {
  background: #f3f4f6;
  border-left: 4px solid var(--color-cyl);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 12px;
  color: var(--color-texto-suave);
}


/* =========================
   FOOTER (unificado)
========================= */
.footer-cyl {
  max-width: 1200px;
  margin: 24px auto 34px;
  padding: 0 20px;
}

.footer-cyl img {
  width: 100%;
  height: auto;
  display: block;
}

.sa-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.sa-top {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  align-items: stretch;
}

.sa-info-card,
.sa-video-card {
  padding: 22px;
}

.sa-info-card h3 {
  margin: 0 0 8px;
  color: var(--color-cyl);
  font-size: 1rem;
}

.sa-info-card h4 {
  margin: 0 0 12px;
  color: var(--color-texto);
  font-size: 1.3rem;
  line-height: 1.3;
}

.sa-info-card p {
  margin: 0;
  color: var(--color-texto-suave);
  line-height: 1.65;
}

.sa-video-card {
  display: flex;
  align-items: center;
}

.sa-video-card .video-embed {
  width: 100%;
}

.sa-documents {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.pdf-card {
  text-decoration: none;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.pdf-thumb {
  width: 100%;
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

.pdf-thumb img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.pdf-card p {
  margin: 0;
  font-weight: 600;
  color: var(--color-texto);
  text-align: center;
  line-height: 1.4;
}

@media (max-width: 760px) {
  .sa-top {.pdf-card p {
  margin: 0;
  font-weight: 600;
  color: var(--color-texto);
  text-align: center;
  line-height: 1.4;
}
    grid-template-columns: 1fr;
  }
}

/* PDF como si fuera un vídeo */
.pdf-viewer {
  display: block;
  width: 100%;
  text-decoration: none;
}

.pdf-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9; /* 🔥 igual que video */
  background: #f3f4f6;
  border-radius: 10px;
  overflow: hidden;
}

/* imagen dentro */
.pdf-embed img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}