/* Ajustes propios sobre el CSS original de Horizons */

.brand-logo { width: 44px; height: 44px; object-fit: contain; }
img.footer-icon { width: 48px; height: 48px; object-fit: contain; display: block; }

/* Enlaces legales del pie */
.footer-legal { display: flex; gap: 16px; }
.footer-legal a { color: inherit; }
.footer-legal a:hover { color: var(--cyan); }

/* Páginas de aviso legal y privacidad */
.legal-page { max-width: 780px; margin: 0 auto; padding-top: 155px; }
.legal-page h1 { font-size: clamp(44px, 6vw, 68px); margin-bottom: 8px; }
.legal-page h2 { font-size: 26px; margin: 44px 0 14px; }
.legal-page h3 { font-size: 16px; margin: 26px 0 8px; color: #f4f7fc; }
.legal-page p { margin: 0 0 12px; }
.legal-page p, .legal-page li { font-size: 14px; line-height: 1.75; color: #b7c3d4; }
.legal-page ul { padding-left: 20px; margin: 0 0 16px; list-style: disc; }
.legal-page li { margin-bottom: 6px; }
.legal-page strong { color: #f4f7fc; }
.legal-page a { color: var(--cyan); }
.legal-updated { font-size: 12px !important; color: var(--subtle) !important; margin-bottom: 30px; }

/* Datos por rellenar: bien visibles para no publicarlos así */
mark.pendiente { background: #ffd54a; color: #0b1323; padding: 1px 6px; border-radius: 4px; font-weight: 700; }

@media (max-width: 760px) {
  .legal-page { padding-top: 120px; }
}

/* Formato de Términos y Política de Privacidad */
.legal-back { display: inline-block; font-size: 13px; font-weight: 700; color: var(--cyan); margin-bottom: 26px; }
.legal-back:hover { color: #f4f7fc; }
.legal-lead { margin: 0 0 4px; }
.legal-notice { border: 1px solid var(--line); border-left: 3px solid var(--cyan); border-radius: 8px; padding: 18px 22px; background: #0f1a2e; }
.legal-notice p { margin: 0 0 10px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; color: #d5deea; }
.legal-notice p:last-child { margin-bottom: 0; }
.legal-num { display: inline-block; min-width: 34px; font-weight: 800; color: var(--cyan); }
.legal-table-wrap { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--line); border-radius: 8px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.legal-table th { text-align: left; background: #0f1a2e; color: #f4f7fc; font-weight: 700; padding: 12px 14px; }
.legal-table td { color: #b7c3d4; padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.6; }
@media (max-width: 760px) { .legal-table { min-width: 560px; } }

/* Cuenta atrás de la portada: más grande y protagonista */
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(8px, 1.6vw, 18px); max-width: 680px; margin: 6px auto 30px; }
.countdown span { min-width: 0; padding: clamp(14px, 2.2vw, 24px) 6px clamp(12px, 1.8vw, 18px); border: 1px solid #2dc6f466; background: #0b1323d9; border-radius: 14px; box-shadow: 0 0 0 1px #2dc6f41a, 0 14px 40px #0008, inset 0 0 30px #2dc6f414; }
.countdown strong { font-size: clamp(44px, 9vw, 96px); letter-spacing: .02em; text-shadow: 0 0 24px #2dc6f466; font-variant-numeric: tabular-nums; }
.countdown small { margin-top: 8px; font-size: clamp(10px, 1.2vw, 13px); color: #cfe6f5; }
.opening-date { font-size: 15px; }

/* Cómo empezar a jugar: cada paso en su tarjeta, con el número destacado */
.steps article { background: #fff; border: 1px solid #cad8e5; border-radius: 14px; padding: 30px 28px 28px; box-shadow: 0 10px 30px #0b13230f; }
.step-number { right: 22px; top: 14px; font-size: 64px; line-height: 1; color: transparent; background: linear-gradient(160deg, #2dc6f4, #0b6fa8); -webkit-background-clip: text; background-clip: text; }
@media (max-width: 700px) {
  .steps { gap: 18px; }
  .steps article, .steps article:last-child { border: 1px solid #cad8e5; padding: 26px 22px 24px; }
}
/* Logo algo más contenido para que la cuenta atrás quepa en la primera pantalla */
.hero-logo { width: min(520px, 88vw, 40vh); }
/* Portada: las otras imágenes se superponen a la primera y aparecen con un fundido */
.hero-alt { opacity: 0; transition: opacity 1.5s ease; }
.hero-alt.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .hero-alt { transition: none; } }

/* Aviso de «próximamente»: si no cabe a la derecha, se alinea por la derecha del botón */
.action-message.align-right { left: auto; right: 0; }

/* Página de descarga del modpack */
.modpack-page .events-intro { padding-bottom: 20px; }
.modpack-page .section:not(.help):not(.events-intro) { padding-top: 40px; padding-bottom: 40px; }
.modpack-page h2 { font-size: clamp(30px, 3.4vw, 42px); }
.modpack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.modpack-card { position: relative; display: flex; flex-direction: column; background: #0f1a2e; border: 1px solid var(--line); border-radius: 14px; padding: 30px 30px 32px; }
.modpack-card.is-featured { border-color: #2dc6f466; box-shadow: inset 0 0 40px #2dc6f40f; }
.modpack-tag { position: absolute; top: 26px; right: 26px; font-size: 10px; font-weight: 800; letter-spacing: .14em; color: var(--cyan); border: 1px solid #2dc6f455; border-radius: 999px; padding: 5px 11px; }
.modpack-ext { font-family: Barlow Condensed, sans-serif; font-weight: 800; font-size: clamp(44px, 5vw, 60px); line-height: 1; color: var(--cyan); margin-bottom: 14px; }
.modpack-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.modpack-card p { margin-bottom: 14px; }
.modpack-card strong { color: #f4f7fc; }
.modpack-compat { font-size: 13px !important; border-left: 3px solid var(--cyan); padding-left: 12px; }
.modpack-steps { counter-reset: paso; margin: 4px 0 24px; padding: 0; flex: 1; }
.modpack-steps li { counter-increment: paso; position: relative; padding: 0 0 12px 38px; font-size: 14px; line-height: 1.7; color: #b7c3d4; }
.modpack-steps li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; background: #2dc6f41f; color: var(--cyan); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.modpack-video { position: relative; aspect-ratio: 16 / 9; margin: 0 0 20px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #0a1322; }
.modpack-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.modpack-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.modpack-buttons .action-wrap { flex: 1 1 180px; }
.modpack-buttons .button { width: 100%; }
.modpack-list { margin: 0 0 18px; padding: 0; flex: 1; }
.modpack-list li { position: relative; padding: 0 0 9px 24px; font-size: 14px; color: #b7c3d4; }
.modpack-list li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 8px; height: 8px; border-radius: 2px; background: var(--cyan); }
/* Guías de instalación: tres tarjetas en escritorio, una columna en móvil */
.modpack-guides-intro { max-width: 760px; margin-bottom: 26px; }
.modpack-guides-intro strong { color: #f4f7fc; }
.modpack-grid.is-guides { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.modpack-guides .modpack-steps { margin-bottom: 0; }
.modpack-guides .modpack-tag { position: static; align-self: flex-start; margin-bottom: 14px; }
.modpack-steps code { font-size: 12.5px; color: #f4f7fc; background: #ffffff12; border-radius: 5px; padding: 1px 6px; overflow-wrap: anywhere; }
.guide-link { color: var(--cyan); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1100px) { .modpack-grid.is-guides { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .modpack-grid { grid-template-columns: 1fr; }
  .modpack-card { padding: 24px 22px 26px; }
  .modpack-tag { position: static; align-self: flex-start; margin-bottom: 14px; }
}

/* Portada: frase de bienvenida en lugar de la cuenta atrás */
.hero-tagline { font-family: Barlow Condensed, sans-serif; font-weight: 800; font-size: clamp(24px, 3.2vw, 38px); letter-spacing: .02em; line-height: 1.15; color: #f4f7fc; text-shadow: 0 4px 24px #04101ccc; margin: 4px 0 28px; }

/* Portada: botones principales algo más grandes */
.hero-main-buttons { gap: 16px; }
.hero-main-buttons .button { font-size: 13px; padding: 21px 30px; min-height: 60px; }
@media (max-width: 700px) {
  .hero-main-buttons { gap: 10px; }
  .hero-main-buttons .button { font-size: 11px; padding: 17px 22px; min-height: 52px; }
  .hero-main-buttons > .button, .hero-main-buttons .action-wrap { width: min(100%, 280px); }
  .hero-main-buttons .action-wrap .button { width: 100%; }
}

/* Botón naranja de la tienda */
.button.shop { background: #ff8c1a; border-color: #ff8c1a; color: var(--navy); }
.button.shop:hover { background: #ffa547; border-color: #ffa547; box-shadow: 0 8px 24px #ff8c1a59; }

/* Cabecera: la tienda pasa de texto a botón naranja */
.shop-link { cursor: pointer; background: #ff8c1a; color: var(--navy); border: 1px solid #ff8c1a; border-radius: 7px; padding: 12px 16px; min-height: 43px; letter-spacing: .025em; box-shadow: 0 0 18px #ff8c1a40; transition: transform .2s, background .2s, box-shadow .2s; }
.shop-link:hover { transform: translateY(-3px); background: #ffa547; border-color: #ffa547; box-shadow: 0 8px 24px #ff8c1a59; }
.shop-link:active { transform: scale(.98); }
@media (max-width: 700px) { .shop-link { padding: 10px 12px; min-height: 38px; } }

/* Estado de los eventos en mayúsculas, con color según el estado */
.status { text-transform: uppercase; }
.status[data-status="En curso"] { background: #ff8c1a24; color: #ffa547; }
.status[data-status="Finalizado"] { background: #ffffff14; color: #b8c7d7; }

/* Evento destacado: la imagen no fija la altura del bloque (si no carga, el botón
   se cortaba) y el botón no queda pegado al texto */
.featured-event > img { aspect-ratio: auto; }
.featured-event > div .action-wrap { display: inline-block; margin-top: 18px; }
