/* Estilos específicos de la página en construcción */

:root {
  --tc-primary: #2E7D5A;
  --tc-text: #F5F5F5;
  --tc-text-dim: #D0D0D0;
  --tc-overlay-strength: 0.55;
  /* Nuevo: color del overlay (formato r,g,b) para fácil edición */
  --tc-overlay-color: 46,125,90; /* Cambia a 46,125,90 por un tono verde marca */
}

body {
  background: linear-gradient(rgba(var(--tc-overlay-color), var(--tc-overlay-strength)), rgba(var(--tc-overlay-color), var(--tc-overlay-strength))),
             url('../img/libros-reciclados.webp') center/cover no-repeat fixed;
  color: var(--tc-text);
  padding-top: 70px; /* Ajustado a nueva altura de header */
  font-family: system-ui,-apple-system,Segoe UI,Roboto,"Helvetica Neue",Arial,sans-serif;
  min-height: 100vh;
}

h1,h2,h3,h4 {color: var(--tc-text);}
.lead {color: var(--tc-text-dim);}

/* Header */
.site-header .brand-logo {height:40px; width:auto;}

/* Hero */
#hero {min-height:calc(100vh - 70px); display:flex; align-items:center; padding-top:0; padding-bottom:2rem;}
.hero-logo {max-width:320px; width:100%; height:auto; margin-bottom:0.8rem;}
.hero-heading {font-size:clamp(1.75rem,4.5vw,2.2rem); margin-bottom:1rem!important;}

/* Noscript aviso */
.noscript-warning {background:rgba(255,255,255,0.1); color:var(--tc-text-dim);}

/* Countdown */
.countdown {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.countdown > div {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  min-width: 115px;
}
.countdown h3 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  margin: 0 0 .15rem;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
}
.countdown h4 {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tc-text-dim);
  white-space: nowrap;
}

/* Botón primario */
.btn-primary {
  background-color: var(--tc-primary);
  border-color: var(--tc-primary);
}
.btn-primary:hover, .btn-primary:focus {
  background-color: #359268;
  border-color: #359268;
}

.social-links a {color: var(--tc-text); opacity:.85; transition:opacity .2s ease;}
.social-links a:hover {opacity:1;}

footer {
  background: rgba(0,0,0,0.65);
  color: var(--tc-text-dim);
  border-top: 1px solid rgba(255,255,255,0.12);
  padding:2rem 0; font-size:0.9rem;
}
footer a {color: var(--tc-text); text-decoration: none;}
footer a:hover {text-decoration: underline;}

/* Responsive ajustes */
@media (max-width: 576px) {
  .countdown {justify-content: center;}
  .countdown > div {flex: 1 1 calc(50% - 1rem); min-width: auto;}
  h2 {font-size: 1.9rem;}
  .lead {font-size: 1rem;}
}

@media (max-width: 380px) {
  .countdown > div {flex: 1 1 100%;}
}

/* Accesibilidad visual focos */
:focus-visible {outline:2px solid var(--tc-primary); outline-offset:2px;}
