/* RESET MUY SUAVE */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Calibri, sans-serif;
  background-color: #ffffff;
  color: #1a1a1a;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* TOP BAR */
.topbar {
  background-color: #0f0f0f;
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  line-height: 1.1;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFD200; /* dorado vivo */
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
  letter-spacing: 0.05em;
}

.menu a {
  color: #ffffff;
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.9rem;
}

.menu a.btn-small {
  background-color: #d4af37;
  color: #0f0f0f;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-weight: 600;
}

/* HERO */
.hero {
  background-color: #0f0f0f;
  color: #ffffff;
  padding: 4rem 0 3rem;
}

.hero-inner {
  max-width: 800px;
}

.hero-text h1 {
  font-size: 2rem;
  font-weight: 600;
  color: #d4af37;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-text p {
  font-size: 1.05rem;
  color: #eaeaea;
  margin-bottom: 1rem;
}

.cta-btn {
  display: inline-block;
  background-color: #d4af37;
  color: #0f0f0f;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  margin-top: 0.5rem;
}

.hero-note {
  font-size: 0.8rem;
  color: #bfbfbf;
  margin-top: 0.75rem;
  font-style: italic;
}

/* SECCIONES */
.section-light {
  background-color: #ffffff;
  color: #1a1a1a;
  padding: 3rem 0;
}

.section-dark {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 3rem 0;
}

.section-support {
  background-color: #f8f5ec;
  color: #1a1a1a;
  padding: 3rem 0;
  border-top: 1px solid #e2d7b0;
  border-bottom: 1px solid #e2d7b0;
}

.light-title {
  color: #d4af37;
}

.center {
  text-align: center;
}

/* QUIEN SOY */
.split {
  display: grid;
  gap: 2rem;
}
@media(min-width: 800px){
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.text-block h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.text-block p {
  font-size: 1rem;
  margin-bottom: 1rem;
  color: #333;
}

.card-highlight {
  background-color: #0f0f0f;
  color: #fff;
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid #2a2a2a;
}

.card-highlight .quote {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #d4af37;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.quote-author {
  font-size: 0.9rem;
  color: #bfbfbf;
  font-style: italic;
}

/* AREAS */
.areas-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}
@media(min-width: 900px){
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.area-card {
  background-color: #0f0f0f;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 1.5rem;
}

.area-card h3 {
  color: #d4af37;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.area-card p {
  font-size: 0.95rem;
  color: #e0e0e0;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.more-link {
  font-size: 0.9rem;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
}

/* LIBROS */
.section-light h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.section-intro {
  font-size: 1rem;
  color: #444;
  max-width: 720px;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.books-grid {
  display: grid;
  gap: 2rem;
}
@media(min-width: 900px){
  .books-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.book-card {
  border: 1px solid #ddd5b5;
  background-color: #fffdf7;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.book-cover {
  background-color: #000;
  width: 100%;
  aspect-ratio: 3/4;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  padding: 1rem 1rem 1.5rem;
}

.book-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0.5rem;
}

.book-author {
  font-size: 0.95rem;
  color: #222;
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-align: left;
}

.collection {
  color: #FFD700; /* dorado vivo */
  font-weight: 700;
  text-shadow: 0 0 4px rgba(255, 215, 0, 0.6);
  font-size: 0.9rem;
  letter-spacing: 0.3px;
  display: inline-block;
  margin-top: 2px;
}

.book-desc {
  font-size: 0.9rem;
  line-height: 1.4;
  color: #444;
  margin-bottom: 1rem;
}

.book-btn {
  background-color: #d4af37;
  border: none;
  color: #0f0f0f;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  text-align: center;
}

/* APOYO */
.section-support {
  background-color: #f8f5ec;
  color: #1a1a1a;
  padding: 3rem 0;
  border-top: 1px solid #e2d7b0;
  border-bottom: 1px solid #e2d7b0;
}

.support-inner {
  max-width: 800px;
}

.support-text h2 {
  font-size: 1.4rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 1rem;
}

.support-text p {
  color: #2b2b2b;
  font-size: 1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.small-legal {
  font-size: 0.8rem;
  color: #6a5d2b;
  margin-top: 1rem;
  font-style: italic;
}

/* FOOTER */
.footer {
  background-color: #0f0f0f;
  color: #ffffff;
  padding: 2rem 0;
  border-top: 1px solid #2a2a2a;
}

.footer-inner {
  display: grid;
  gap: 2rem;
}
@media(min-width: 900px){
  .footer-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

.logo-footer {
  color: #FFD700;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
  letter-spacing: 0.05em;
}

.copy {
  font-size: 0.8rem;
  color: #bfbfbf;
}

.footer-title {
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.footer-link {
  color: #d4af37;
  font-size: 0.9rem;
  text-decoration: none;
  word-break: break-word;
}

.footer-note {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #bfbfbf;
}

.hero {
  position: relative;
  overflow: hidden;
}

.hero-logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(140px, 18vw, 260px);
  height: auto;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.hero-logo-left { left: 2.5vw; }
.hero-logo-right { right: 2.5vw; }

.hero .hero-inner,
.hero .hero-text {
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .hero-logo { display: none; }
}

/* LOGO WATERMARK HERO (1 solo, stesso giallo del brand) */
:root{
  --brand-yellow: #FFD200; /* <-- INCOLLA QUI IL COLORE ESATTO di .logo-text */
}

.hero{
  position: relative;
  overflow: hidden;
}

.hero-mark{
  position: absolute !important;
  top: 50%;
  left: 2.5vw;
  transform: translateY(-50%);
  width: min(380px, 28vw);
  aspect-ratio: 1 / 1;
  background: var(--brand-yellow);
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;

  /* usa l’immagine come maschera e la colora col giallo brand */
  -webkit-mask: url("assets/logo-difundir-yellow.png") center / contain no-repeat;
  mask: url("assets/logo-difundir-yellow.png") center / contain no-repeat;
}

/* testo sempre sopra */
.hero .hero-inner,
.hero .hero-text{
  position: relative;
  z-index: 1;
}

/* su mobile lo nascondiamo */
@media (max-width: 900px){
  .hero-mark{ display:none; }
}

/* ===== LOGO WATERMARK HERO: 1 SOLO, GIALLO BRAND ===== */
.hero{
  position: relative;
  overflow: hidden;
}

.hero-mark{
  position: absolute !important;
  top: 50%;
  left: -2vw;
  transform: translateY(-50%);
  width: min(440px, 30vw);
  aspect-ratio: 1 / 1;
  background: #FFD200;
  opacity: 0.20;
  pointer-events: none;
  z-index: 0;

  -webkit-mask: url("assets/logo-difundir-yellow.png") center / contain no-repeat;
  mask: url("assets/logo-difundir-yellow.png") center / contain no-repeat;
}

.hero .hero-inner,
.hero .hero-text{
  position: relative;
  z-index: 1;
}

@media (max-width: 900px){
  .hero-mark{ display:none; }
}

