:root {
  --ink: #123a3b;
  --ink-2: #1b5e5f;
  --gold: #c9a24b;
  --cream: #f6f1e6;
  --paper: #fffdf7;
  --muted: #5f6f6f;
  --shadow: 0 12px 30px rgba(18, 58, 59, 0.14);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 5vw;
  background: rgba(18, 58, 59, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cream); }
.brand-mark {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  background: var(--gold); color: var(--ink);
  font-weight: 800; border-radius: 10px;
}
.brand-name { font-size: 1.25rem; font-weight: 800; letter-spacing: .5px; }
.brand-name span { color: var(--gold); }

.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--cream); text-decoration: none;
  padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .95rem;
}
.nav a:hover { background: rgba(255,255,255,0.12); }

.menu-btn {
  display: none; background: none; border: none;
  color: var(--cream); font-size: 1.6rem; cursor: pointer;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 70px 5vw 60px;
  background:
    radial-gradient(1200px 500px at 90% -10%, rgba(201,162,75,0.18), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--ink-2) 100%);
  color: var(--cream);
}
.hero-text h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.15; margin: 16px 0 18px; }
.hero-text h1 span { color: var(--gold); }
.hero-text p { font-size: 1.08rem; max-width: 60ch; color: #d7e6e6; }
.pill {
  display: inline-block; padding: 8px 16px;
  background: rgba(201,162,75,0.18); border: 1px solid var(--gold);
  color: var(--gold); border-radius: 999px; font-weight: 700; font-size: .85rem;
}
.hero-cta { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  text-decoration: none; padding: 13px 24px; border-radius: 12px;
  font-weight: 700; transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--gold); color: var(--ink); }
.btn.ghost { border: 1.5px solid var(--cream); color: var(--cream); }

.hero-art { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* FEATURES */
.features {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  padding: 40px 5vw; background: var(--paper);
}
.feature {
  background: var(--cream); border: 1px solid #e6dcc4;
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.feat-icon { font-size: 1.8rem; }
.feature h3 { margin: 10px 0 6px; color: var(--ink-2); }
.feature p { color: var(--muted); font-size: .95rem; }

/* SECTIONS */
.section { padding: 70px 5vw; }
.section.alt { background: var(--paper); }
.section-head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.kicker {
  color: var(--gold); font-weight: 800; letter-spacing: 1px;
  text-transform: uppercase; font-size: .8rem;
}
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--ink); margin: 8px 0 12px; }
.section-head p { color: var(--muted); }

/* CATALOG GRID */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.book-card {
  background: var(--paper); border: 1px solid #e6dcc4;
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease;
}
.book-card:hover { transform: translateY(-5px); }
.book-card .cover { width: 100%; aspect-ratio: 3/4; display: block; }
.book-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.book-body h3 { color: var(--ink-2); font-size: 1.05rem; }
.book-body .author { color: var(--gold); font-weight: 700; font-size: .85rem; }
.book-body p { color: var(--muted); font-size: .92rem; flex: 1; }
.tag {
  align-self: flex-start; padding: 4px 10px; font-size: .75rem; font-weight: 700;
  background: #e7f0f0; color: var(--ink-2); border-radius: 999px;
}

/* VIDEOS */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.video-card img { width: 100%; aspect-ratio: 16/9; display: block; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(18,58,59,0.85); color: var(--gold);
  display: grid; place-items: center; font-size: 1.6rem;
  border: 2px solid var(--gold); transition: transform .15s ease;
}
.video-card:hover .play-btn { transform: translate(-50%, -50%) scale(1.1); }
.video-card figcaption { padding: 14px; color: var(--muted); font-size: .95rem; }

/* IGUALDAD PRODUCTOS */
.igualdad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.product-item {
  background: var(--paper); border: 1px solid #e6dcc4; border-radius: var(--radius);
  padding: 16px; text-align: center; box-shadow: var(--shadow);
}
.product-item img { width: 100%; border-radius: 10px; }
.product-item h4 { margin: 10px 0 4px; color: var(--ink-2); }
.product-item p { color: var(--muted); font-size: .88rem; }

/* SEDES */
.sedes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.sede {
  background: var(--cream); border: 1px solid #e6dcc4; border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.sede-pin { font-size: 1.8rem; }
.sede h3 { color: var(--ink-2); margin: 10px 0 6px; }
.sede p { color: var(--muted); }
.sede .small { font-size: .85rem; margin-top: 8px; color: var(--ink); }

/* SOCIALS */
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.social {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; padding: 12px 20px;
  background: var(--ink); color: var(--cream);
  border-radius: 12px; font-weight: 700; transition: transform .15s ease;
}
.social:hover { transform: translateY(-3px); background: var(--ink-2); }

/* CONTACT */
.contact-card {
  max-width: 720px; margin: 0 auto;
  background: var(--paper); border: 1px solid #e6dcc4;
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
}
.c-info { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.c-icon {
  display: grid; place-items: center; width: 56px; height: 56px;
  background: var(--gold); color: var(--ink); font-size: 1.6rem; border-radius: 14px;
}
.c-info h3 { color: var(--ink-2); }
.c-info p { color: var(--gold); font-weight: 700; }
.c-list { list-style: none; display: grid; gap: 10px; }
.c-list li { padding: 10px 14px; background: var(--cream); border-radius: 10px; color: var(--muted); }
.c-list a { color: var(--ink-2); font-weight: 700; text-decoration: none; }

/* FOOTER */
.footer {
  background: var(--ink); color: var(--cream);
  text-align: center; padding: 30px 5vw;
}
.footer .small { color: #b9cfcf; font-size: .85rem; margin-top: 8px; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr 1fr; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: var(--ink);
    padding: 10px; display: none;
  }
  .nav.open { display: flex; }
}
@media (max-width: 560px) {
  .features { grid-template-columns: 1fr; }
  .hero-art { grid-template-columns: 1fr; }
}