:root {
  --primary: #2563eb;
  --accent: #f59e0b;
  --bg: #f4f6fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --radius: 14px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: rgb(129, 125, 125);  text-decoration: none;}

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

/* =============== HEADER (sirve para index nuevo y para tus páginas antiguas) =============== */

/* Header “simple” (index nuevo) */
header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 1100px;
  margin: auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
}

.logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

/* Menú del index nuevo */
nav a {
  margin-left: 20px;
  font-weight: 600;
  color: var(--muted);
}
nav a:hover { color: var(--primary); }

/* Header “antiguo” (site-header + main-menu ul) */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 14px 20px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.main-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

.main-menu a {
  font-weight: 700;
  color: var(--muted);
}
.main-menu a:hover { color: var(--primary); }

/* =============== HERO (solo index) =============== */


.hero-inner {
  max-width: 1100px;
  margin: auto;
}

.hero h1 {
  font-size: 36px;
  margin-bottom: 10px;
}

.hero p {
  max-width: 600px;
  opacity: .95;
}

.hero .btn {
  display: inline-block;
  margin-top: 20px;
  background: var(--accent);
  color: #111;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
}

/* =============== LAYOUT GENERAL =============== */
.container {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 40px 20px;
}

h1, h2 { margin-top: 0; }
h2 { margin-bottom: 20px; }
h3{
  font-weight: 400;
}
h4{
  font-size: 24px;
}

/* =============== CARDS / POSTS =============== */

/* Para tu index nuevo (post-body) */
.posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.post {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .2s ease;
}
.post {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}


.post:hover { transform: translateY(-4px); }

.post img {
  height: 160px;
  object-fit: cover;
  width: 100%;
}
.post-body p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}


/* Si una card usa .post-body */
.post-body { padding: 16px; }
.post-body h3 { margin: 0 0 6px; font-size: 17px; }
.post-body p { font-size: 13px; color: var(--muted); }

/* Para tus páginas antiguas (donde usas .btn directamente dentro de .post) */
.btn {
  display: inline-block;
  text-align: center;
  background: var(--primary);
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
}

.post-body a.btn {
  display: block;
  margin-top: auto;   /* <-- clave para empujarlo abajo */
}

.offer-disclaimer {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0;
}

/* =============== PAGINACIÓN / DISCLAIMER (tus páginas 2 y 3) =============== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px 30px;
}

.page-link {
  width: 42px;
  height: 42px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #e5e7eb;
  font-weight: 800;
  color: var(--muted);
}

.page-link.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.disclaimer-footer {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  color: var(--muted);
}

/* =============== PÁGINAS LEGALES (Aviso/Cookies/Política/Sitemap) =============== */
.legal-page h1 { margin-bottom: 6px; }
.updated { color: var(--muted); margin-top: 0; }

.info-box {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  padding: 14px;
}

.table-responsive { overflow-x: auto; }
.cookies-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius);
  overflow: hidden;
}
.cookies-table th, .cookies-table td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  font-size: 14px;
}
.cookies-table th { background: #f8fafc; }

.sitemap-list { padding-left: 18px; }
.sitemap-list a { color: var(--primary); font-weight: 700; }

/* =============== FOOTER (sirve para ambos footers) =============== */
footer, .site-footer {
  background: #111827;
  color: #9ca3af;
  padding: 40px 20px;
  margin-top: 40px;
}

footer a, .site-footer a { color: #d1d5db; }

.footer-inner, .footer-content {
  max-width: 1100px;
  margin: auto;
  display: grid;
  gap: 20px;
text-align: center;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.pagination{
  display:flex;
  justify-content:center;
  gap:10px;
  padding: 18px 0 0;
}

.page-link{
  width: 42px;
  height: 42px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius: 999px;
  background:#fff;
  border:1px solid #e5e7eb;
  font-weight:800;
  color:#6b7280;
}

.page-link.active{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff;
}
/* HERO con imagen de fondo */
.hero {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;

  /* IMAGEN DE FONDO */
  background-image: url("images/carro.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay oscuro para que el texto se lea bien */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(103, 160, 180, 0.55);
}

/* Aseguramos que el contenido quede por encima */
.hero-inner {
  position: relative;
  z-index: 1;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Contenedor del texto */
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* Texto principal */
.logo-title {
  font-weight: 800;
  font-size: 18px;
}

/* Texto secundario debajo */
.logo-subtitle {
  font-size: 9px;
  color: #6b7280;
}
.texto-informativo{
  font-size: 9px;
}
.btnparticipacion {
display: flex;
color: #f59e0b;
justify-content: center;
font-weight: 500;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f1973c;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 20px;
  transition: all 0.3s;
}

.social-links a:hover {
  background: #e08528;
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(241, 151, 60, 0.4);
}

.social-icon {
  font-weight: bold;
}
/* =============== BOTÓN PARTICIPAR (CORREGIDO) =============== */
.btn-participar {
    display: inline-block;
    padding: 12px 35px;
    background-color: #e08528; /* Naranja corporativo */
    color: #ffffff !important; /* Forzamos el blanco para que no salga el gris de los enlaces */
    text-decoration: none;
    font-weight: 800;
    font-family: system-ui, -apple-system, sans-serif;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 102, 0, 0.3);
    text-align: center;
    cursor: pointer;
    margin: 20px 0;
}

.btn-participar:hover {
    background-color: #e08528; 
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 102, 0, 0.4);
    color: #ffffff !important;
}

.btn-participar:active {
    transform: translateY(0);
}
p{
  color: #6b7280;

}
.aqui{
color: #f1973c;
}
.expiry-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ff6600;
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    z-index: 5;
}

.post { position: relative; } /* Necesario para que el badge no flote */