/*
Theme Name: Diario de Abordo Godly
Theme URI: https://diariodeabordo.es
Description: Un tema minimalista de alta gama (Godly Edition) diseñado para liderazgo y sistemas.
Author: Jose Maria Galarza & AntiGravity
Author URI: https://diariodeabordo.es
Version: 41.0.1
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
Text Domain: antigravity
*/

/* ── DIARIO DE ABORDO — GODLY EDITION ── */
:root {
  --bg: #000;
  --fg: #fff;
  --fg-dim: #666;
  --accent: #c9a84c;
  --font-mono: 'Space Mono', monospace;
  --font-sans: 'Space Grotesk', sans-serif;
  --line: rgba(255,255,255,0.1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { padding: 0 40px; }

.technical-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
}


/* ── DIARIO DE ABORDO — GODLY EDITION ── */
.container { padding: 0 40px; }

.technical-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--fg-dim);
}

/* ── NAVIGATION ── */
#da-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: all 0.3s ease;
}

.nav-left, .nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-right .links {
    display: flex;
    align-items: center;
    gap: 32px;
}

#nav-links, #nav-links ul {
    list-style: none !important;
    padding: 0;
    margin: 0;
}

#nav-links li {
    list-style: none !important;
}

.nav-tech-data {
    display: flex;
    gap: 20px;
    border-left: 1px solid var(--line);
    padding-left: 20px;
}

@media (max-width: 1024px) {
    .nav-tech-data { display: none; }
}

.marquee-wrap {
  width: 100%;
  overflow: hidden;
  background: #000;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0; /* Minimized height for a subtle data ticker */
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: scroll-left 30s linear infinite;
  gap: 40px;
}

.marquee-item {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #fff;
  text-transform: uppercase;
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.hero-stage {
  min-height: 100vh;
  padding: 140px 8%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 6vw;
  width: 100%;
}

.manifesto-text {
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  margin-bottom: 30px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 90px);
  margin-top: -15px;
  word-wrap: break-word;
}

.hero-image-wrap {
  width: 100%;
  max-width: 400px; /* Asegura que NUNCA pase de este tamaño absoluto */
  height: 45vh; 
  margin-left: auto; 
  border: none;
  overflow: hidden;
  position: relative;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.4s ease;
}

.hero-image-wrap:hover img {
  filter: grayscale(0);
}

.hero-btn-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px; /* Reducido la separacion entre botones */
}

.btn-primary, .btn-secondary {
    min-width: 140px; /* Reducido a la mitad */
    padding: 8px 16px; /* Super sutiles */
    text-align: center;
    font-weight: 500; /* Letra menos agresiva */
    text-transform: uppercase;
    text-decoration: none;
    display: inline-block;
    letter-spacing: 0.1em;
    font-size: 9px; /* Extremadamente minimalista */
}
.btn-primary { 
    background: #fff !important; 
    color: #000 !important; 
    border: 1px solid #fff; 
    padding: 12px 24px; 
    text-transform: uppercase; 
    font-weight: 700; 
    letter-spacing: 0.1em; 
    text-decoration: none;
    transition: all 0.3s ease;
}
.btn-secondary { 
    background: transparent !important; 
    color: #fff !important; 
    border: 1px solid rgba(255,255,255,0.2); 
    padding: 12px 24px; 
    text-transform: uppercase; 
    font-weight: 600; 
    letter-spacing: 0.1em; 
    text-decoration: none;
}

/* ── NAVIGATION DEEP SUPPORT ── */
#nav-links.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.98);
    backdrop-filter: blur(20px);
    padding: 100px 40px;
    z-index: 999;
    text-align: left;
}

#nav-links .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #080808;
    border: 1px solid var(--line);
    padding: 15px;
    list-style: none;
    min-width: 180px;
    z-index: 10;
}

#nav-links li:hover > .sub-menu {
    display: block;
}

#nav-links .sub-menu a {
    font-size: 10px;
    color: var(--fg-dim);
    padding: 8px 0;
    display: block;
}

#nav-links .sub-menu a:hover { color: var(--accent); }

/* Toggle Active State */
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(7px, -6px); }

.sliced-gallery {
  display: flex;
  width: 90%;
  margin: 0 auto;
  height: 70vh;
  gap: 2px;
}

.gallery-slice {
  flex: 1;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(1);
  transition: all 0.4s ease;
  cursor: pointer;
}

.gallery-slice:hover { flex: 5; filter: grayscale(0); }

/* SONAR PING */
.sonar-ping {
    position: fixed;
    border: 2px solid var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    animation: sonar-pulse 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}
@keyframes sonar-pulse {
    0% { width: 0; height: 0; opacity: 1; border-width: 4px; }
    100% { width: 150vw; height: 150vw; opacity: 0; border-width: 1px; }
}

#da-footer {
    padding: 100px 8% 40px;
    background: #000;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    align-items: flex-start;
    margin-bottom: 80px;
}

.footer-block {
    display: flex;
    flex-direction: column;
}

.footer-block.logo-block {
    align-items: center;
    text-align: center;
}

.footer-block.legals-block {
    align-items: flex-end;
    text-align: right;
}

.footer-link {
    color: var(--fg);
    text-decoration: none;
    font-weight: 700;
    margin-top: 10px;
}

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.footer-nav a {
    color: var(--fg-dim);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-nav a:hover { color: var(--fg); }

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 40px;
    text-align: center;
    color: var(--fg-dim);
    font-size: 10px;
}

.social-links {
    margin-top: 20px;
    display: flex;
    gap: 15px;
}

@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-block { align-items: center !important; text-align: center !important; }
    
    .hero-content, .container.hero-content {
        grid-template-columns: 1fr !important;
        text-align: center;
        gap: 40px;
    }

    .hero-left, .hero-right {
        width: 100%;
    }

    .hero-image-wrap {
        height: auto;
        min-height: 50vh;
    }
}

@media (max-width: 768px) {
    .manifesto-text { font-size: 26px !important; }
    .hero-title { font-size: 60px !important; margin-top: 0 !important; }
    
    .sliced-gallery {
        flex-direction: column;
        height: 100vh !important;
    }
    
    .gallery-slice {
        width: 100%;
        height: auto;
    }

    .gallery-slice:hover { flex: 3; }
    
    iframe {
        max-width: 100% !important;
    }
    
    .post-list { gap: 40px !important; }
    .post-title-wrap h2 { font-size: 24px !important; }
    
    .page-content { padding: 120px 20px !important; }
    .container { padding: 0 20px !important; }
}
/* -- BLOG POST CONTENT STYLES -- */
.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    margin: 20px auto;
}

.post-content .hero-image img {
    width: 100%;
    height: auto;
}

/* Fix nested containers from raw HTML imports */
.post-content .container {
    max-width: 100% !important;
    padding: 0 !important;
}

/* Ensure text reading width is elegant */
.post-content p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: rgba(255, 255, 255, 0.85);
}

.post-content h2, .post-content h3 {
    margin-top: 60px;
    margin-bottom: 20px;
    color: var(--godly-gold, #c9a84c);
}

/* -- BLOG ARCHIVE REDESIGN -- */
.blog-archive-redesign {
    position: relative;
    padding: 140px 40px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.blog-background {
    position: absolute;
    inset: 0;
    z-index: -10;
    opacity: 0.6;
    overflow: hidden;
    pointer-events: none;
}

.bg-shape {
    position: absolute;
    top: 0; left: 0;
    border-radius: 50%;
    transform: rotate(-45deg);
}
.shape-1 {
    height: 1280px; width: 560px;
    transform: rotate(-45deg) translateY(-350px);
    background: radial-gradient(68.54% 68.72% at 55.02% 31.46%, rgba(201,168,76, 0.06) 0, rgba(150,150,150,0.02) 50%, rgba(0,0,0,0.01) 80%);
}
.shape-2 {
    height: 1280px; width: 240px;
    transform: translate(5%, -50%) rotate(-45deg);
    background: radial-gradient(50% 50% at 50% 50%, rgba(201,168,76, 0.04) 0, rgba(0,0,0,0.01) 80%, transparent 100%);
}
.shape-3 {
    height: 1280px; width: 240px;
    transform: rotate(-45deg) translateY(-350px);
    background: radial-gradient(50% 50% at 50% 50%, rgba(201,168,76, 0.04) 0, rgba(0,0,0,0.01) 80%, transparent 100%);
}

.blog-header {
    margin-bottom: 40px;
}
.blog-title {
    font-family: var(--font-mono);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-top: 10px;
}
.blog-subtitle {
    color: var(--fg-dim);
    font-size: 16px;
    margin-top: 10px;
    max-width: 600px;
}

.blog-divider {
    width: 100%;
    height: 1px;
    border-bottom: 1px dashed var(--line);
    margin-bottom: 40px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    position: relative;
    z-index: 10;
}
@media (min-width: 768px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
    .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-radius: 8px;
    padding: 12px;
    text-decoration: none !important;
    transition: background-color 0.2s;
    background: transparent;
}
.blog-card:hover {
    background: rgba(201,168,76, 0.05);
}

.blog-card-image-wrap {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    background: #111;
}

.blog-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.blog-card:hover .blog-image {
    transform: scale(1.05);
}

.blog-card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 8px 8px 8px;
}

.blog-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--fg-dim);
    font-size: 11px;
    font-family: var(--font-sans);
}
.meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--fg-dim);
}

.blog-card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--fg);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-desc {
    color: var(--fg-dim);
    font-size: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}
.blog-card-desc p {
    margin: 0;
    font-size: inherit;
    color: inherit;
}
