:root{
  --radius: 16px;
  --radius-sm: 12px;
  --shadow-sm: 0 8px 18px rgba(0,0,0,.08);
  --border: 1px solid rgba(0,0,0,.08);
  --muted: rgba(0,0,0,.65);
  --muted2: rgba(0,0,0,.45);
  --gap: 16px;
}

.container{
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.page-header{ padding: 18px 0 10px; }
.page-header h1{ margin:0 0 8px; line-height:1.15; }
.page-header p{ margin:0; color:var(--muted); }

.section{ padding: 26px 0; }

.grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--gap);
}

.card{
  background:#fff;
  border: var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow:hidden;
}

.card-pad{ padding: 14px; }

.cover{
  width:100%;
  height:260px;
  object-fit:cover;
  display:block;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(0,0,0,.12);
  background:#111;
  color:#fff;
  text-decoration:none;
  font-weight:700;
  cursor:pointer;
}

.btn:hover{ opacity:.92; }

.btn-outline{ background:transparent; color:#111; }

.input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(0,0,0,.14);
  background:#fff;
}

label{ display:block; margin:10px 0 6px; font-weight:700; }

.filters{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin:14px 0 18px;
}
.filters .input{ min-width: 260px; }

.two-col{
  display:grid;
  grid-template-columns: 340px 1fr;
  gap:22px;
  align-items:start;
}
@media (max-width: 900px){ .two-col{ grid-template-columns:1fr; } }

.muted{ color: var(--muted); }
.muted2{ color: var(--muted2); }
.hr{ border:0; border-top:1px solid rgba(0,0,0,.1); margin:18px 0; }
/* ===== THEME (internas) ===== */
:root{
  --ink:#0f172a;
  --muted:#475569;
  --bg:#f6f8fb;
  --card:#ffffff;
  --line:rgba(15,23,42,.10);
  --shadow: 0 16px 40px rgba(15,23,42,.10);
  --radius:18px;
  --accent:#00AEEF;         /* tu azul */
  --accent2:#1AA1E1;        /* tu celeste */
}

body { background: var(--bg); }
main { background: var(--bg); }

.page-wrap{
  padding: 28px 34px 60px;
}

/* Hero */
.hero{
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:  #0a2a43;
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image: url("img/BOOK_PRINTING.jpg"); /* si está en /img */
  background-size: cover;
  background-position: center;
  filter: saturate(1.1) contrast(1.05);
  opacity: .78;
}

.hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    120deg,
    rgba(0,174,239,.88),
    rgba(26,161,225,.70),
    rgba(10,42,67,.55)
  );
}


.hero-content{
  position: relative;
  padding: 26px 26px 22px;
  color: #fff;
  max-width: 860px;
}

.badge{
  color: #ffffff;
  background: rgba(255,255,255,.18);
  border: 1px solid rgba(255,255,255,.30);
  backdrop-filter: blur(6px);
}


.hero h1{
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 6px 18px rgba(0,0,0,.35);
}

.hero h1::after{
  content:"";
  display:block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: linear-gradient(90deg, #7dd3fc, #38bdf8);
}

.hero p{
  color: rgba(255,255,255,.92);
  font-size: 16px;
  line-height: 1.6;
  max-width: 720px;
}


/* Secciones */
.section{
  margin-top: 18px;
}

.section-title2{
  margin: 22px 0 12px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -.01em;
}

.grid{
  display:grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}

/* Cards */
.cardx{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(15,23,42,.06);
  overflow: hidden;
}

.cardx .pad{
  padding: 16px 16px 14px;
}

.cardx h3{
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 16px;
}

.cardx p{
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 14px;
}

.icon-dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display:inline-block;
  margin-right: 8px;
}

/* KPI tiles */
.kpi{
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(0,174,239,.12), rgba(255,255,255,.0));
  border: 1px solid rgba(0,174,239,.25);
}

.kpi .num{
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
}

.kpi .lbl{
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

/* Proceso */
.step{
  display:flex;
  gap: 12px;
  align-items:flex-start;
}

.step .n{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(0,174,239,.14);
  border: 1px solid rgba(0,174,239,.28);
  color: var(--ink);
  font-weight: 800;
  display:flex;
  align-items:center;
  justify-content:center;
}

.step img{
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-top: 1px solid var(--line);
}

/* Responsivo */
@media (max-width: 980px){
  .page-wrap{ padding: 22px 16px 50px; }
  .hero h1{ font-size: 30px; }
}
/* ===== HERO: contraste alto y texto vivo ===== */

/* 1) Overlay más ligero para que no apague el texto */
.hero::after{
  background: linear-gradient(
    90deg,
    rgba(10,42,67,.78),  /* antes .92 -> baja */
    rgba(10,42,67,.55),
    rgba(10,42,67,.30)
  ) !important;
}

/* 2) Asegura que el contenido quede por encima y no se “ensucie” */
.hero-content{
  position: relative;
  z-index: 2;
}

/* 3) Título BLANCO real + sombra para legibilidad en todo el gradiente */
.hero h1{
  color: #ffffff !important;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 10px 26px rgba(0,0,0,.45);
}

/* 4) Párrafo blanco suave (pero no gris) */
.hero p{
  color: rgba(255,255,255,.95) !important;
  font-size: 16px;
  line-height: 1.65;
  text-shadow: 0 8px 20px rgba(0,0,0,.35);
  max-width: 760px;
}

/* 5) Badge más visible (y con blur para efecto moderno) */
.badge{
  color: rgba(255,255,255,.98) !important;
  background: rgba(0,0,0,.18) !important;   /* más contraste */
  border: 1px solid rgba(255,255,255,.28) !important;
  backdrop-filter: blur(8px);
}

/* 6) Línea decorativa más brillante para “vida” */
.hero h1::after{
  background: linear-gradient(90deg, #ffffff, #7dd3fc) !important;
  opacity: .95;
}
.page{ padding: 36px 0; }
.page.alt{ background: rgba(0,0,0,.02); }
.wrap{ width: min(1100px, calc(100% - 48px)); margin: 0 auto; }

.section-head{ margin: 10px 0 18px; }
.section-head h2{ font-size: 26px; margin: 0 0 6px; }
.muted{ color: rgba(0,0,0,.65); line-height: 1.6; }

.card{
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 18px 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.two-col{ display: grid; grid-template-columns: 1.1fr .9fr; gap: 18px; }
.three-col{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

@media (max-width: 980px){
  .two-col, .three-col{ grid-template-columns: 1fr; }
}

.list{ padding-left: 18px; margin: 10px 0 0; }
.list li{ margin: 6px 0; }

.stats-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 16px 0 18px;
}
@media (max-width: 980px){
  .stats-grid{ grid-template-columns: repeat(2, 1fr); }
}
.stat{
  background: rgba(255,255,255,.65);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 16px;
  padding: 14px 14px;
}
.stat-kpi{ font-size: 22px; font-weight: 800; }
.stat-label{ color: rgba(0,0,0,.65); font-size: 13px; margin-top: 2px; }

.callout{
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,.08);
  background: rgba(0,174,239,.08);
}

.pill-row{ display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.pill{
  display:inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(255,255,255,.7);
  font-size: 12px;
}

/* Timeline simple */
.timeline{ display: grid; gap: 12px; }
.tl-item{ display:flex; gap:12px; align-items:flex-start; }
.tl-dot{
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(0,174,239,1);
  margin-top: 8px;
  box-shadow: 0 0 0 6px rgba(0,174,239,.12);
}
.tl-body h3{ margin: 0 0 6px; font-size: 16px; }
.tl-body p{ margin: 0; color: rgba(0,0,0,.75); line-height: 1.6; }

.site-footer {
  background: #0a2a43;
  color: #ffffff;
  padding: 18px 0;
  margin-top: auto; /* CLAVE para empujarlo abajo */
}

.footer-wrap {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
  font-size: 13px;
  line-height: 1.5;
  opacity: 0.95;
}
/* ===== Catálogo: grid de cards con portadas ===== */
.catalog-grid{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap:18px;
  margin-top:18px;
}

@media (max-width: 1100px){
  .catalog-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 820px){
  .catalog-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px){
  .catalog-grid{ grid-template-columns: 1fr; }
}

.book-card{
  background:#fff;
  border:1px solid rgba(15,23,42,.08);
  border-radius:16px;
  overflow:hidden;
  box-shadow: 0 10px 28px rgba(15,23,42,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  display:flex;
  flex-direction:column;
  min-height: 100%;
}
.book-card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(15,23,42,.12);
}

/* “Portada vertical” */
.book-cover-wrap{
  width:100%;
  aspect-ratio: 2 / 3;           /* vertical */
  background: linear-gradient(135deg, rgba(2,132,199,.14), rgba(15,23,42,.08));
  position:relative;
}
.book-cover{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* Cuerpo */
.book-body{
  padding:14px 14px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.book-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}

.tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  background: rgba(2,132,199,.10);
  border: 1px solid rgba(2,132,199,.18);
  color:#075985;
  font-weight:700;
  font-size:12px;
}

.tag.gray{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.10);
  color:#0f172a;
}

.book-title{
  font-size:16px;
  line-height:1.25;
  margin:0;
  font-weight:900;
  color:#0f172a;
}

.book-author{
  margin:0;
  color: rgba(15,23,42,.70);
  font-weight:600;
  font-size:13px;
}

.book-synopsis{
  margin:0;
  color: rgba(15,23,42,.78);
  font-size:13px;
  line-height:1.45;
}

/* Footer precio + acción */
.book-footer{
  margin-top:auto;
  padding:12px 14px 14px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid rgba(15,23,42,.08);
}

.book-price{
  font-weight:900;
  color:#0ea5e9;
  font-size:15px;
}

.book-link{
  text-decoration:none;
  font-weight:800;
  color:#0f172a;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid rgba(15,23,42,.12);
  background:#fff;
}
.book-link:hover{
  background: rgba(15,23,42,.04);
}

/* Botones generales (arregla el texto invisible) */
.btn{ color:#fff !important; }
.book-title{
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author{
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tag.gray{
  background: rgba(15,23,42,.08);
  border-color: rgba(15,23,42,.14);
}
.book-link{
  background: #0ea5e9;
  color: #fff;
  border-color: transparent;
}
.book-link:hover{
  filter: brightness(.95);
}
