/*
Theme Name: Planeta Hockey SP Gutenberg
Theme URI: https://planetahockeysp.com/
Author: GB2 Comunicación y Estrategia
Description: Tema WordPress editable para Planeta Hockey SP, construido con bloques nativos Gutenberg. Sin Divi, sin shortcodes, sin constructores obligatorios.
Version: 3.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GPLv2 or later
Text Domain: planeta-hockey-sp
Tags: blog, news, custom-logo, custom-menu, featured-images, responsive-layout, block-styles
*/

:root {
  --ph-orange: #ff6a00;
  --ph-orange-2: #ff9d00;
  --ph-black: #060606;
  --ph-dark: #111111;
  --ph-gray: #1b1b1b;
  --ph-light: #f5f5f5;
  --ph-white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ph-black);
  color: var(--ph-white);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }

.ph-container,
.wp-site-blocks > *:not(.alignfull) {
  width: min(1160px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.ph-topbar {
  background: linear-gradient(90deg, var(--ph-orange), var(--ph-orange-2));
  color: #060606;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .82rem;
  padding: 10px 0;
}

.site-header {
  background: rgba(0,0,0,.92);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(12px);
}
.logged-in .site-header { top: 32px; }
.ph-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
}
.ph-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  min-width: 220px;
}
.ph-mark {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  background: linear-gradient(135deg, var(--ph-orange), #b13600);
  color: #090909;
  display: grid;
  place-items: center;
  font-weight: 1000;
  box-shadow: 0 0 28px rgba(255,106,0,.35);
}
.ph-brand-title {
  display: block;
  font-weight: 1000;
  letter-spacing: -.02em;
  font-size: 1.15rem;
  line-height: 1;
  text-transform: uppercase;
}
.ph-brand-subtitle {
  color: var(--ph-orange);
  font-weight: 800;
  font-size: .78rem;
}

.ph-menu-toggle {
  display: none;
  background: var(--ph-orange);
  border: 0;
  color: #050505;
  font-weight: 900;
  border-radius: 999px;
  padding: 10px 14px;
}
.primary-menu ul,
ul.primary-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu a {
  text-decoration: none;
  color: rgba(255,255,255,.9);
  font-weight: 850;
  font-size: .95rem;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--ph-orange); }

.site-main { min-height: 70vh; }
.ph-page-wrap { padding: 50px 0; }

.wp-block-post-title,
.entry-title {
  font-size: clamp(2.2rem, 7vw, 5rem);
  line-height: .95;
  letter-spacing: -.06em;
  margin: 0 0 18px;
  text-transform: uppercase;
}

.entry-content > * {
  margin-top: 0;
  margin-bottom: 1.5rem;
}
.entry-content > .alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.entry-content > .alignwide {
  width: min(1280px, calc(100% - 32px));
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}

.ph-hero,
.wp-block-group.ph-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(70px, 12vw, 140px) 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,106,0,.44), transparent 31%),
    linear-gradient(120deg, rgba(255,106,0,.88) 0%, rgba(255,106,0,.38) 35%, rgba(0,0,0,.96) 36%, rgba(0,0,0,1) 100%);
}
.ph-hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: .35;
}
.ph-hero > * { position: relative; z-index: 1; }
.ph-kicker,
.wp-block-heading.ph-kicker {
  color: var(--ph-orange);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .85rem !important;
  font-weight: 1000;
  margin-bottom: 12px;
}
.ph-display,
.wp-block-heading.ph-display {
  max-width: 850px;
  color: #fff;
  font-size: clamp(3rem, 10vw, 7rem) !important;
  line-height: .84 !important;
  letter-spacing: -.08em;
  text-transform: uppercase;
  margin: 0 0 22px;
  font-weight: 1000;
}
.ph-lead {
  max-width: 720px;
  color: rgba(255,255,255,.85);
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
}

.wp-block-button__link,
.ph-button {
  background: var(--ph-orange) !important;
  color: #050505 !important;
  border-radius: 999px !important;
  padding: 13px 22px !important;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-decoration: none;
  border: 2px solid var(--ph-orange) !important;
  box-shadow: 0 10px 30px rgba(255,106,0,.22);
}
.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.45) !important;
}

.ph-section,
.wp-block-group.ph-section { padding: clamp(48px, 8vw, 90px) 0; }
.ph-section-dark,
.wp-block-group.ph-section-dark { background: #0d0d0d; }
.ph-section-orange,
.wp-block-group.ph-section-orange {
  background: linear-gradient(90deg, var(--ph-orange), var(--ph-orange-2));
  color: #090909;
}
.ph-section-orange .wp-block-button__link { background: #090909 !important; color: #fff !important; border-color: #090909 !important; }

.ph-section-title,
.wp-block-heading.ph-section-title {
  font-size: clamp(2rem, 5vw, 4rem) !important;
  line-height: .92 !important;
  text-transform: uppercase;
  letter-spacing: -.05em;
  margin-bottom: 20px;
}
.ph-muted { color: rgba(255,255,255,.7); }

.ph-card,
.wp-block-group.ph-card {
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 50px rgba(0,0,0,.25);
}
.ph-card h2,
.ph-card h3,
.ph-card h4 { margin-top: 0; }
.ph-card strong { color: var(--ph-orange); }

.wp-block-columns { gap: 26px; }
.wp-block-table table {
  border-collapse: collapse;
  width: 100%;
  background: rgba(255,255,255,.04);
  border-radius: 16px;
  overflow: hidden;
}
.wp-block-table td,
.wp-block-table th {
  border: 1px solid rgba(255,255,255,.12);
  padding: 14px;
}
.wp-block-table th {
  background: var(--ph-orange);
  color: #050505;
  text-transform: uppercase;
  font-size: .82rem;
  letter-spacing: .07em;
}

.ph-post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.ph-post-card {
  background: #111;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  overflow: hidden;
}
.ph-post-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.ph-post-card-content { padding: 22px; }
.ph-post-card h2 { font-size: 1.35rem; line-height: 1.1; margin: 0 0 8px; text-transform: uppercase; }
.ph-post-card a { text-decoration: none; }
.ph-post-meta { color: var(--ph-orange); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.ph-empty {
  border: 1px dashed rgba(255,255,255,.25);
  border-radius: 22px;
  padding: 28px;
  color: rgba(255,255,255,.72);
}

.site-footer {
  border-top: 1px solid rgba(255,255,255,.1);
  background: #050505;
  padding: 42px 0 24px;
}
.ph-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 28px;
}
.ph-footer-title { color: var(--ph-orange); font-weight: 1000; text-transform: uppercase; }
.ph-footer-list { list-style: none; margin: 0; padding: 0; }
.ph-footer-list a { color: rgba(255,255,255,.78); text-decoration: none; }
.ph-footer-list a:hover { color: var(--ph-orange); }
.ph-copyright { color: rgba(255,255,255,.52); font-size: .88rem; margin-top: 30px; }

input, textarea, select {
  width: 100%;
  background: #111;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
}
label { display: block; margin-bottom: 14px; font-weight: 800; }
button, input[type="submit"] {
  background: var(--ph-orange);
  border: none;
  color: #050505;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 1000;
  text-transform: uppercase;
}

@media (max-width: 840px) {
  .logged-in .site-header { top: 0; }
  .ph-header-inner { align-items: flex-start; }
  .ph-menu-toggle { display: inline-flex; }
  .primary-menu { display: none; width: 100%; }
  .primary-menu.is-open { display: block; }
  .primary-menu ul,
  ul.primary-menu { display: grid; gap: 12px; padding-top: 18px; }
  .ph-header-inner { flex-wrap: wrap; }
  .ph-post-grid,
  .ph-footer-grid { grid-template-columns: 1fr; }
}
