/*
Theme Name: Subaristas
Theme URI: https://subaristas.com
Description: Tema profesional para Subaristas.com — Portal de noticias Subaru en español
Author: Subaristas
Author URI: https://subaristas.com
Template: generatepress
Version: 1.0.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: subaristas
Domain Path: /languages
*/

/* ══════════════════════════════════════════════════════════════
   IMPORTAR ESTILOS DEL TEMA PADRE (GeneratePress)
══════════════════════════════════════════════════════════════ */
@import url("../generatepress/style.css");

/* ══════════════════════════════════════════════════════════════
   VARIABLES Y COLORES SUBARISTAS
══════════════════════════════════════════════════════════════ */
:root {
  --subaru-blue: #0047BB;
  --electric-blue: #1a6fd4;
  --glow-blue: rgba(0, 71, 187, 0.7);
  --deep-blue: #002d7a;
  --chrome: #c8c8c8;
  --chrome-light: #e8e8e8;
  --bg-dark: #0a0a0f;
  --bg-card: #13131a;
  --bg-card-hover: #1a1a24;
  --border: #1e1e2e;
  --border-bright: #2a2a3e;
  --text-main: #e4e4f0;
  --text-muted: #8888aa;
  --text-white: #ffffff;
  --accent-gold: #f0c030;
}

/* ══════════════════════════════════════════════════════════════
   RESET Y BODY
══════════════════════════════════════════════════════════════ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

a {
  color: var(--electric-blue);
  transition: all 0.3s ease;
}

a:hover {
  color: var(--text-white);
}

/* ══════════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════════ */
.site-header {
  background: rgba(5, 5, 10, 0.97);
  border-bottom: 1px solid var(--border-bright);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.8), 0 1px 0 rgba(0, 71, 187, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-branding img {
  max-height: 60px;
  width: auto;
  filter: drop-shadow(0 0 8px var(--glow-blue));
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}

.site-title:hover {
  color: var(--electric-blue);
}

.site-description {
  font-size: 0.65rem;
  color: var(--electric-blue);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* Navigation */
.main-navigation a {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.main-navigation a:hover,
.main-navigation a.current-menu-item {
  color: var(--text-white);
  background: rgba(0, 71, 187, 0.15);
}

.main-navigation a.current-menu-item {
  border-bottom: 2px solid var(--subaru-blue);
}

/* ══════════════════════════════════════════════════════════════
   HERO / FEATURED IMAGE
══════════════════════════════════════════════════════════════ */
.featured-image {
  max-height: 500px;
  object-fit: cover;
  width: 100%;
  filter: brightness(0.85);
  transition: filter 0.3s ease;
}

.featured-image:hover {
  filter: brightness(0.95);
}

/* ══════════════════════════════════════════════════════════════
   CONTENIDO PRINCIPAL
══════════════════════════════════════════════════════════════ */
.content-area {
  background: var(--bg-dark);
}

.site-main {
  padding: 40px 0;
}

/* ══════════════════════════════════════════════════════════════
   POSTS / ARTÍCULOS
══════════════════════════════════════════════════════════════ */
.post,
.page {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 32px;
  transition: all 0.3s ease;
}

.post:hover {
  transform: translateY(-4px);
  border-color: var(--subaru-blue);
  box-shadow: 0 0 30px rgba(0, 71, 187, 0.4), 0 4px 24px rgba(0, 0, 0, 0.6);
  background: var(--bg-card-hover);
}

.post-title,
.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 14px;
  line-height: 1.25;
}

.post-title a {
  color: var(--text-white);
  text-decoration: none;
}

.post-title a:hover {
  color: var(--electric-blue);
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.post-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--electric-blue);
}

.post-excerpt {
  font-size: 1rem;
  color: var(--text-main);
  line-height: 1.8;
  margin: 20px 0;
}

.entry-content {
  font-size: 1.02rem;
  line-height: 1.85;
  color: var(--text-main);
}

.entry-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--subaru-blue);
}

.entry-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 28px 0 10px;
}

.entry-content p {
  margin-bottom: 20px;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 24px 0;
}

.entry-content a {
  color: var(--electric-blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}

.entry-content a:hover {
  color: var(--text-white);
  border-bottom-color: var(--electric-blue);
}

.entry-content blockquote {
  background: rgba(0, 71, 187, 0.1);
  border-left: 4px solid var(--subaru-blue);
  padding: 16px 20px;
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
  font-size: 1.05rem;
  color: var(--chrome-light);
  font-style: italic;
}

/* Categorías / Tags */
.cat-links,
.tags-links {
  margin: 16px 0;
}

.cat-links a,
.tags-links a {
  display: inline-block;
  background: var(--subaru-blue);
  color: #fff !important;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: all 0.3s;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.cat-links a:hover,
.tags-links a:hover {
  background: var(--electric-blue);
  box-shadow: 0 0 20px rgba(0, 71, 187, 0.5);
  transform: translateY(-2px);
}

/* ══════════════════════════════════════════════════════════════
   GRILLA DE POSTS (HOMEPAGE / ARCHIVE)
══════════════════════════════════════════════════════════════ */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.posts-grid .post {
  margin-bottom: 0;
}

.posts-grid .post-title {
  font-size: 1.2rem;
}

.post-thumbnail {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
  display: block;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════════ */
.sidebar {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
}

.widget {
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.widget:last-child {
  border-bottom: none;
}

.widget-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--subaru-blue);
}

.widget ul {
  list-style: none;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--text-muted);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.3s;
}

.widget a:hover {
  color: var(--electric-blue);
  padding-left: 6px;
}

/* Search Widget */
.widget_search input {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border-bright);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.widget_search input:focus {
  outline: none;
  border-color: var(--subaru-blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.2);
}

.widget_search button {
  width: 100%;
  background: var(--subaru-blue);
  color: #fff;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.widget_search button:hover {
  background: var(--electric-blue);
  box-shadow: 0 0 20px rgba(0, 71, 187, 0.5);
}

/* ══════════════════════════════════════════════════════════════
   FORMULARIOS Y BOTONES
══════════════════════════════════════════════════════════════ */
button,
input[type="button"],
input[type="reset"],
input[type="submit"] {
  background: var(--subaru-blue);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.85rem;
}

button:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
  background: var(--electric-blue);
  box-shadow: 0 0 30px rgba(0, 71, 187, 0.5);
  transform: translateY(-2px);
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
textarea {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-bright);
  padding: 10px 14px;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
  outline: none;
  border-color: var(--subaru-blue);
  box-shadow: 0 0 0 3px rgba(0, 71, 187, 0.2);
}

/* ══════════════════════════════════════════════════════════════
   COMENTARIOS
══════════════════════════════════════════════════════════════ */
.comments-area {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 30px;
  margin-top: 40px;
}

.comments-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 24px;
}

.comment {
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
}

.comment-author {
  font-weight: 600;
  color: var(--text-white);
}

.comment-date {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-left: 8px;
}

.comment-text {
  margin-top: 8px;
  color: var(--text-main);
}

.comment-reply-link {
  color: var(--electric-blue);
  font-size: 0.85rem;
  margin-top: 8px;
}

.comment-form input,
.comment-form textarea {
  width: 100%;
  margin-bottom: 12px;
}

/* ══════════════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════════════ */
.site-footer {
  background: #050508;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-widget h3 {
  color: var(--text-white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.footer-widget a {
  color: var(--text-muted);
  text-decoration: none;
  display: block;
  margin-bottom: 6px;
  transition: all 0.3s;
}

.footer-widget a:hover {
  color: var(--electric-blue);
  padding-left: 4px;
}

.site-info {
  text-align: center;
  border-top: 1px solid var(--border);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ══════════════════════════════════════════════════════════════
   BREADCRUMBS
══════════════════════════════════════════════════════════════ */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 14px 0;
}

.breadcrumbs a {
  color: var(--electric-blue);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--text-white);
}

.breadcrumbs .sep {
  color: var(--border-bright);
}

/* ══════════════════════════════════════════════════════════════
   PAGINATION
══════════════════════════════════════════════════════════════ */
.pagination,
.paging-navigation {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0;
}

.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-main);
  text-decoration: none;
  transition: all 0.3s;
  font-weight: 600;
}

.page-numbers:hover,
.page-numbers.current {
  background: var(--subaru-blue);
  border-color: var(--subaru-blue);
  color: #fff;
  box-shadow: 0 0 20px rgba(0, 71, 187, 0.4);
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }

  .post-title {
    font-size: 1.5rem;
  }

  .entry-content h2 {
    font-size: 1.2rem;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .main-navigation a {
    padding: 6px 10px;
    font-size: 0.8rem;
  }
}

/* ══════════════════════════════════════════════════════════════
   UTILIDADES
══════════════════════════════════════════════════════════════ */
.glow-line {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--subaru-blue), transparent);
  margin: 20px 0;
}

.text-center {
  text-align: center;
}

.text-blue {
  color: var(--electric-blue);
}

.text-muted {
  color: var(--text-muted);
}

.section-header {
  border-bottom: 1px solid var(--border);
  padding-bottom: 14px;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-white);
  text-transform: uppercase;
  letter-spacing: 2px;
}
