/*
Theme Name: DynamicsOnFractals
Theme URI: https://dynamicsonfractals.com
Description: Tema personalizado para DynamicsOnFractals
Version: 1.0
Author: DynamicsOnFractals
*/

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=Rajdhani:wght@300;400;600;700&display=swap');

:root {
  --red: #cc0000;
  --red-dim: #7a0000;
  --red-glow: #ff2200;
  --grey: #888888;
  --grey-light: #aaaaaa;
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #161616;
  --border: #2a2a2a;
  --text: #cccccc;
  --mono: 'Share Tech Mono', monospace;
  --sans: 'Rajdhani', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dim); }

/* ── NAV ── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 60px;
  background: rgba(10,10,10,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.site-branding a {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--red);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: 0;
  list-style: none;
}

.main-nav ul li a {
  display: block;
  padding: 8px 20px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey);
  border-left: 1px solid var(--border);
  transition: color 0.2s, background 0.2s;
}

.main-nav ul li:last-child a { border-right: 1px solid var(--border); }

.main-nav ul li a:hover,
.main-nav ul li.current-menu-item a {
  color: var(--red);
  background: rgba(204,0,0,0.06);
}

/* ── MAIN CONTENT ── */
.site-main {
  margin-top: 60px;
}

/* ── HERO ── */
.hero-section {
  background: #000;
  height: calc(100vh - 60px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeUp 1s ease both;
  padding: 20px 20px 50px;
  width: 100%;
}

.hero-logo {
  max-height: calc(100vh - 80px);
  max-width: 100%;
  width: auto;
  height: auto;
  display: block;
  animation: pulse 6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { filter: drop-shadow(0 0 20px rgba(204,0,0,0.2)); }
  50% { filter: drop-shadow(0 0 50px rgba(204,0,0,0.5)); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── SECTIONS ── */
.page-section {
  min-height: 100vh;
  padding: 80px 0 60px;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
}

.sec-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 50px;
}

.sec-header h2 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
}

.sec-header::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.sec-num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red-dim);
  letter-spacing: 1px;
}

/* ── BLOG / OPERATIVA DIARIA ── */
.blog-section {
  background: var(--bg);
  min-height: 100vh;
  padding: 80px 0 60px;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2px;
}

.post-card {
  background: var(--bg3);
  padding: 30px 28px;
  border-left: 3px solid transparent;
  transition: border-color 0.3s, background 0.3s;
  position: relative;
  overflow: hidden;
}

.post-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.post-card:hover {
  border-left-color: var(--red);
  background: #1a1a1a;
}

.post-card .card-tag {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red-dim);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.post-card .card-title {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 600;
  color: #e0e0e0;
  margin-bottom: 12px;
  line-height: 1.3;
}

.post-card .card-title a {
  color: inherit;
  text-decoration: none;
}

.post-card .card-title a:hover { color: var(--red); }

.post-card .card-body {
  font-size: 14px;
  color: var(--grey);
  line-height: 1.7;
}

.post-card .card-arrow {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--red-dim);
  letter-spacing: 2px;
  text-decoration: none;
  transition: color 0.2s, letter-spacing 0.2s;
}

.post-card:hover .card-arrow { color: var(--red); letter-spacing: 4px; }

/* ── SINGLE POST ── */
.single-post {
  background: var(--bg2);
  min-height: 100vh;
  padding: 80px 0 60px;
}

.post-content {
  max-width: 800px;
}

.post-content h1 {
  font-size: 32px;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 20px;
  line-height: 1.2;
}

.post-content .post-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red-dim);
  text-transform: uppercase;
  margin-bottom: 40px;
}

.post-content p {
  font-size: 16px;
  color: var(--grey-light);
  line-height: 1.8;
  margin-bottom: 24px;
}

.post-content h2 {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  margin: 40px 0 20px;
}

.post-content img {
  width: 100%;
  border: 1px solid var(--border);
  margin: 24px 0;
}

/* ── CONTACTO ── */
.contact-section {
  background: var(--bg2);
  min-height: 60vh;
  padding: 80px 0 60px;
}

.contact-info {
  margin-top: 40px;
}

.contact-info p {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--grey-light);
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.contact-info a {
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info a:hover { color: var(--red-glow); }

/* ── FOOTER ── */
.site-footer {
  padding: 40px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 3px;
  color: var(--red-dim);
  text-transform: uppercase;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .site-header { padding: 0 20px; }
  .main-nav ul li a { padding: 8px 12px; font-size: 10px; }
  .container { padding: 0 20px; }
}
