:root{
  --ups-blue: #0b2f6b;      /* azul oscuro base */
  --ups-blue-2: #0a2552;    /* más profundo para fondos */
  --ups-yellow: #f2c200;    /* acento sutil */
  --text: #0f172a;
  --muted: #475569;
  --bg: #f7f9fc;
  --card: #ffffff;
  --border: #e5e7eb;
  --shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body{
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

.container{
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
}

/* NAVBAR */
.navbar{
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--ups-blue-2), var(--ups-blue));
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.18);
}

.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo{
  height: 44px;
  width: auto;
  display: block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.18));
}

.nav-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-link{
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 14px;
}

.nav-link:hover{
  background: rgba(255,255,255,0.10);
}

.nav-link.active{
  background: rgba(242,194,0,0.16);
  border: 1px solid rgba(242,194,0,0.35);
}

.navbar-accent{
  height: 3px;
  background: linear-gradient(90deg, var(--ups-yellow), rgba(242,194,0,0.1));
}

/* HERO */
.hero{
  padding: 28px 0 10px;
}

.hero-card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 22px;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
}

@media (max-width: 900px){
  .hero-card{ grid-template-columns: 1fr; }
}

.pill{
  display: inline-block;
  margin: 0 0 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--ups-blue-2);
  background: rgba(242,194,0,0.25);
  border: 1px solid rgba(242,194,0,0.35);
}

.hero h1{
  margin: 0;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}

.subtitle{
  margin: 6px 0 12px;
  color: var(--muted);
  font-weight: 600;
}

.lead{
  margin: 0;
  color: #1f2937;
  max-width: 62ch;
}

.hero-actions{
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
}

.btn.primary{
  background: var(--ups-blue);
  color: white;
  border-color: rgba(255,255,255,0.1);
}

.btn.primary:hover{
  background: var(--ups-blue-2);
}

.btn.ghost{
  background: transparent;
  color: var(--ups-blue-2);
  border-color: rgba(11,47,107,0.22);
}

.btn.ghost:hover{
  background: rgba(11,47,107,0.06);
}

/* RIGHT INFO BOX */
.hero-side{
  display: flex;
}

.info-box{
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.info-box h3{
  margin: 0 0 10px;
  font-size: 16px;
}

.info-box ul{
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

/* SECTION */
.section{
  padding: 22px 0 36px;
}

.section-head{
  margin: 14px 0 14px;
}

.section-head h2{
  margin: 0;
  font-size: 22px;
}

.section-desc{
  margin: 6px 0 0;
  color: var(--muted);
}

/* GRID / CARDS */
.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px){
  .grid{ grid-template-columns: 1fr; }
}

.card{
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
  position: relative;
  overflow: hidden;
}

.card::before{
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 4px;
  background: rgba(11,47,107,0.35);
}

.card:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(2, 6, 23, 0.10);
  border-color: rgba(11,47,107,0.25);
}

.card-week{
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  color: var(--ups-blue-2);
  background: rgba(242,194,0,0.18);
  border: 1px solid rgba(242,194,0,0.35);
  padding: 4px 8px;
  border-radius: 999px;
}

.card-title{
  margin: 10px 0 6px;
  font-size: 16px;
  line-height: 1.25;
}

.card-desc{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Disabled cards */
.card.disabled{
  opacity: 0.75;
  filter: grayscale(0.10);
  cursor: not-allowed;
}

.card.disabled:hover{
  transform: none;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.05);
  border-color: var(--border);
}

/* FOOTER */
.footer{
  background: linear-gradient(180deg, var(--ups-blue), var(--ups-blue-2));
  color: rgba(255,255,255,0.90);
  padding: 18px 0;
  margin-top: 20px;
  border-top: 3px solid rgba(242,194,0,0.35);
}

.footer a{
  color: rgba(242,194,0,0.95);
  text-decoration: none;
  font-weight: 700;
}

.footer a:hover{
  text-decoration: underline;
}

.footer-inner p{
  margin: 6px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.88);
}

/* ===== Week pages (e.g., Week 01) ===== */
.page-head{
  padding: 22px 0 6px;
}

.page-title{
  margin: 8px 0 6px;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
}

.page-subtitle{
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 600;
}

.block{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.05);
  margin: 14px 0;
}

.block h2{
  margin: 0 0 10px;
  font-size: 20px;
}

.block h3{
  margin: 10px 0 8px;
  font-size: 16px;
  color: var(--ups-blue-2);
}

.idea-card{
  border: 1px solid rgba(11,47,107,0.18);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.idea-head{
  margin-bottom: 10px;
}

.idea-tag{
  display: inline-block;
  font-weight: 800;
  font-size: 12px;
  color: var(--ups-blue-2);
  background: rgba(242,194,0,0.18);
  border: 1px solid rgba(242,194,0,0.35);
  padding: 4px 8px;
  border-radius: 999px;
}

.idea-one-liner{
  margin: 6px 0 0;
  color: var(--muted);
}

.idea-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 14px;
  align-items: start;
}

@media (max-width: 900px){
  .idea-grid{ grid-template-columns: 1fr; }
}

.idea-figure{
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: white;
}

.idea-figure img{
  width: 100%;
  height: auto;
  display: block;
}

.idea-figure figcaption{
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.pros-cons{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 10px;
}

@media (max-width: 700px){
  .pros-cons{ grid-template-columns: 1fr; }
}

.pc{
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}

.note{
  margin-top: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(242,194,0,0.35);
  background: rgba(242,194,0,0.12);
}

.code{
  background: #0b1220;
  color: #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,0.08);
}

.checklist{
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.checklist li{
  padding: 6px 0;
  border-bottom: 1px dashed rgba(15,23,42,0.12);
}

.checklist li:last-child{
  border-bottom: none;
}

.phases{
  margin: 0;
  padding-left: 18px;
}

/* ===== About page (add-on) ===== */
.about-grid{
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  align-items: start;
}

@media (max-width: 900px){
  .about-grid{ grid-template-columns: 1fr; }
}

.about-figure{
  margin: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 22px rgba(2, 6, 23, 0.05);
}

.about-photo{
  width: 100%;
  height: auto;
  display: block;
}

.about-caption{
  padding: 10px 12px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
