/*
Theme Name: Aikawa Finanzas
Theme URI: https://aikawa.com.ar
Description: Child theme de Twenty Twenty-Three para aikawa.com.ar — finanzas personales, tonos azules.
Author: Federico Aikawa
Author URI: https://aikawa.com.ar
Template: twentytwentythree
Version: 1.0.0
Text Domain: aikawa-finanzas
*/

/* ========================================
   VARIABLES & RESET
   ======================================== */

:root {
  --ak-blue-900: #0c2340;
  --ak-blue-700: #1a4a7a;
  --ak-blue-500: #2b6cb0;
  --ak-blue-400: #4299e1;
  --ak-blue-200: #bee3f8;
  --ak-blue-100: #ebf8ff;
  --ak-blue-50:  #f0f7ff;
  --ak-white:    #ffffff;
  --ak-gray-100: #f7fafc;
  --ak-gray-200: #edf2f7;
  --ak-gray-500: #718096;
  --ak-gray-700: #2d3748;
  --ak-gray-900: #1a202c;
  --ak-accent:   #ed8936;
  --ak-radius:   6px;
  --ak-max-width: 1140px;
  --ak-gap: 24px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--ak-gray-100);
  color: var(--ak-gray-900);
  line-height: 1.65;
}

/* ========================================
   HEADER / NAV
   ======================================== */

.ak-header {
  background: var(--ak-blue-900);
  border-bottom: 3px solid var(--ak-blue-400);
  padding: 0;
}

.ak-header-inner {
  max-width: var(--ak-max-width);
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.ak-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--ak-white);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.ak-logo span {
  color: var(--ak-blue-400);
}

.ak-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}

.ak-nav a {
  color: var(--ak-blue-200);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.ak-nav a:hover {
  color: var(--ak-white);
}

/* ========================================
   LAYOUT — HOME
   ======================================== */

.ak-home {
  max-width: var(--ak-max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* — Hero / Featured Post — */

.ak-hero {
  margin: 32px 0 0;
  border-radius: var(--ak-radius);
  overflow: hidden;
  background: var(--ak-white);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.ak-hero-img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  display: block;
}

.ak-hero-img-placeholder {
  background: linear-gradient(135deg, var(--ak-blue-700), var(--ak-blue-500));
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ak-blue-200);
  font-size: 3rem;
}

.ak-hero-body {
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ak-hero .ak-cat {
  display: inline-block;
  background: var(--ak-blue-100);
  color: var(--ak-blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  text-decoration: none;
}

.ak-hero h2 {
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 14px;
  color: var(--ak-gray-900);
}

.ak-hero h2 a {
  color: inherit;
  text-decoration: none;
}

.ak-hero h2 a:hover {
  color: var(--ak-blue-500);
}

.ak-hero .ak-excerpt {
  color: var(--ak-gray-500);
  font-size: 0.95rem;
  margin: 0 0 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ak-hero .ak-meta {
  font-size: 0.8rem;
  color: var(--ak-gray-500);
}

/* — AdSense Banners — */

.ak-ad-slot {
  max-width: var(--ak-max-width);
  margin: 28px auto;
  padding: 0 20px;
  text-align: center;
}

.ak-ad-slot-inner {
  background: var(--ak-gray-200);
  border: 1px dashed var(--ak-gray-500);
  border-radius: var(--ak-radius);
  padding: 20px;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ak-gray-500);
  font-size: 0.8rem;
}

.ak-ad-slot.ak-ad-in-content {
  padding: 0;
  margin: 28px 0;
}

.ak-ad-slot.ak-ad-in-content .ak-ad-slot-inner {
  min-height: 250px;
}

/* — Damero / Grid 3×2 — */

.ak-section-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ak-blue-900);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--ak-blue-400);
  margin: 0 0 24px;
}

.ak-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--ak-gap);
  margin-bottom: 12px;
}

.ak-card {
  background: var(--ak-white);
  border-radius: var(--ak-radius);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  transition: box-shadow 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
}

.ak-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.ak-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
  display: block;
}

.ak-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, var(--ak-blue-200), var(--ak-blue-100));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ak-blue-500);
  font-size: 1.5rem;
}

.ak-card-body {
  padding: 18px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ak-card .ak-cat {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--ak-blue-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  text-decoration: none;
}

.ak-card h3 {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 10px;
}

.ak-card h3 a {
  color: var(--ak-gray-900);
  text-decoration: none;
}

.ak-card h3 a:hover {
  color: var(--ak-blue-500);
}

.ak-card .ak-meta {
  font-size: 0.78rem;
  color: var(--ak-gray-500);
  margin-top: auto;
}

/* — Footer Articles — */

.ak-footer-articles {
  background: var(--ak-blue-900);
  padding: 48px 20px 24px;
  margin-top: 48px;
}

.ak-footer-articles-inner {
  max-width: var(--ak-max-width);
  margin: 0 auto;
}

.ak-footer-articles .ak-section-title {
  color: var(--ak-white);
  border-bottom-color: var(--ak-blue-400);
}

.ak-footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.ak-footer-list li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.ak-footer-list li a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 0;
  text-decoration: none;
  color: var(--ak-blue-200);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.ak-footer-list li a:hover {
  color: var(--ak-white);
}

.ak-footer-list .ak-fl-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--ak-blue-400);
  min-width: 28px;
}

.ak-footer-list .ak-fl-date {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ak-gray-500);
  white-space: nowrap;
}

/* — Site Footer — */

.ak-site-footer {
  background: var(--ak-blue-900);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ak-gray-500);
}

.ak-site-footer a {
  color: var(--ak-blue-400);
  text-decoration: none;
}

/* ========================================
   SINGLE POST
   ======================================== */

.ak-single {
  max-width: 740px;
  margin: 40px auto;
  padding: 0 20px;
}

.ak-single-header {
  margin-bottom: 28px;
}

.ak-single-header .ak-cat {
  display: inline-block;
  background: var(--ak-blue-100);
  color: var(--ak-blue-700);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 12px;
  text-decoration: none;
}

.ak-single-header h1 {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ak-gray-900);
  margin: 0 0 14px;
}

.ak-single-header .ak-meta {
  color: var(--ak-gray-500);
  font-size: 0.85rem;
}

.ak-single-featured-img {
  width: 100%;
  border-radius: var(--ak-radius);
  margin-bottom: 28px;
}

.ak-single-content {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--ak-gray-700);
}

.ak-single-content h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ak-gray-900);
  margin: 36px 0 14px;
}

.ak-single-content h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ak-gray-900);
  margin: 28px 0 10px;
}

.ak-single-content p {
  margin: 0 0 18px;
}

.ak-single-content a {
  color: var(--ak-blue-500);
  text-decoration: underline;
}

.ak-single-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--ak-radius);
}

.ak-single-content blockquote {
  border-left: 4px solid var(--ak-blue-400);
  margin: 24px 0;
  padding: 16px 24px;
  background: var(--ak-blue-50);
  border-radius: 0 var(--ak-radius) var(--ak-radius) 0;
  font-style: italic;
  color: var(--ak-gray-700);
}

/* — Related Posts — */

.ak-related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid var(--ak-gray-200);
}

.ak-related .ak-grid {
  grid-template-columns: repeat(3, 1fr);
}

/* ========================================
   SIDEBAR AD (single)
   ======================================== */

.ak-single-wrap {
  max-width: var(--ak-max-width);
  margin: 40px auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.ak-sidebar {
  position: sticky;
  top: 24px;
}

.ak-sidebar .ak-ad-slot {
  padding: 0;
  margin: 0 0 24px;
}

.ak-sidebar .ak-ad-slot-inner {
  min-height: 250px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 900px) {
  .ak-hero {
    grid-template-columns: 1fr;
  }

  .ak-hero-img, .ak-hero-img-placeholder {
    min-height: 220px;
  }

  .ak-hero-body {
    padding: 24px 20px;
  }

  .ak-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ak-footer-list {
    grid-template-columns: 1fr;
  }

  .ak-single-wrap {
    grid-template-columns: 1fr;
  }

  .ak-sidebar {
    position: static;
  }

  .ak-related .ak-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .ak-grid {
    grid-template-columns: 1fr;
  }

  .ak-hero h2 {
    font-size: 1.3rem;
  }

  .ak-single-header h1 {
    font-size: 1.5rem;
  }

  .ak-related .ak-grid {
    grid-template-columns: 1fr;
  }

  .ak-header-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
