/*
Theme Name: ABC Psicopedagogía Blog
Theme URI: https://abcpsicopedagogia-com-ar-615639.hostingersite.com/blog
Author: Lic. Alfonsina Andrés Acosta
Description: Tema personalizado para el blog de ABC Psicopedagogía, con la misma estética del sitio principal.
Version: 1.0
Text Domain: abc-psicopedagogia
*/

/* ===== VARIABLES ===== */
:root {
  --violet-50: #f5f3ff; --violet-100: #ede9fe; --violet-200: #ddd6fe;
  --violet-300: #c4b5fd; --violet-400: #a78bfa; --violet-500: #8b5cf6;
  --violet-600: #7c3aed; --violet-700: #6d28d9;
  --emerald-50: #ecfdf5; --emerald-100: #d1fae5; --emerald-200: #a7f3d0;
  --emerald-500: #10b981; --emerald-600: #059669;
  --slate-100: #f1f5f9; --slate-200: #e2e8f0; --slate-300: #cbd5e1;
  --slate-400: #94a3b8; --slate-500: #64748b; --slate-600: #475569;
  --slate-700: #334155; --slate-800: #1e293b;
  --green-500: #22c55e; --green-600: #16a34a;
  --radius-lg: 1rem; --radius-xl: 1.5rem; --radius-2xl: 2rem; --radius-3xl: 2.5rem;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Nunito', sans-serif;
  color: var(--slate-600);
  background: linear-gradient(to bottom right, var(--violet-50), #fff, var(--emerald-50));
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp { from { opacity:0; transform:translateY(20px); } to { opacity:1; transform:translateY(0); } }
@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-10px) rotate(5deg); }
}
.fade-in-up { animation: fadeInUp .8s ease-out forwards; opacity:0; transform:translateY(20px); }
.float-slow { animation: float 6s ease-in-out infinite; }
.float-medium { animation: float 8s ease-in-out infinite reverse; }

/* ===== BACKGROUND DECORATION ===== */
.bg-decoration {
  position: fixed; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none; user-select: none;
}
.bg-decoration .deco {
  position: absolute; font-weight: 800; opacity: .3;
}
.bg-decoration .deco-violet { color: var(--violet-200); }
.bg-decoration .deco-emerald { color: var(--emerald-200); }
.bg-decoration .deco-icon { width: 2rem; height: 2rem; }
.bg-decoration .deco-icon-lg { width: 3rem; height: 3rem; }

/* ===== NAVBAR ===== */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 1rem 1rem 0; display: flex; justify-content: center;
  transition: all .5s;
}
.site-nav.scrolled { padding-top: .5rem; }
.nav-pill {
  width: 100%; max-width: 64rem;
  background: rgba(255,255,255,.4); backdrop-filter: blur(40px); -webkit-backdrop-filter: blur(40px);
  border: 1px solid rgba(255,255,255,.4);
  box-shadow: 0 4px 30px rgba(0,0,0,.06);
  border-radius: 9999px; padding: .5rem .75rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all .5s;
}
.site-nav.scrolled .nav-pill { background: rgba(255,255,255,.7); box-shadow: 0 4px 12px rgba(0,0,0,.1); }
.nav-pill:hover { background: rgba(255,255,255,.5); }
.nav-logo { display: flex; align-items: center; gap: .75rem; padding-left: .75rem; }
.nav-logo img { height: 2.25rem; width: auto; object-fit: contain; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name { font-size: .7rem; font-weight: 800; color: var(--slate-800); letter-spacing: -.025em; }
.nav-logo-sub { font-size: .5rem; font-weight: 700; color: var(--slate-500); text-transform: uppercase; letter-spacing: .1em; }
@media(min-width:768px) {
  .site-nav { padding: 1.5rem 1rem 0; }
  .nav-logo img { height: 3.5rem; }
  .nav-logo-name { font-size: .875rem; }
  .nav-logo-sub { font-size: .625rem; }
}
.nav-links {
  display: none; align-items: center;
  background: rgba(255,255,255,.2); border-radius: 9999px;
  padding: .25rem; border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 2px 4px rgba(0,0,0,.03);
}
@media(min-width:768px) { .nav-links { display: flex; } }
.nav-links a {
  padding: .5rem 1.5rem; border-radius: 9999px;
  font-size: .875rem; font-weight: 700; color: var(--slate-600);
  transition: all .3s;
}
.nav-links a:hover { background: rgba(255,255,255,.8); color: var(--violet-600); }
.nav-links a.active { background: rgba(255,255,255,.8); color: var(--violet-600); }
.nav-actions { display: flex; align-items: center; gap: .5rem; padding-right: .25rem; }
.nav-cta {
  display: none; align-items: center; gap: .5rem;
  padding: .625rem 1.5rem; border-radius: 9999px;
  background: var(--violet-700); color: #fff;
  font-size: .875rem; font-weight: 700; transition: all .3s;
}
.nav-cta:hover { background: var(--slate-700); }
@media(min-width:768px) { .nav-cta { display: inline-flex; } }

/* ===== MOBILE MENU ===== */
.menu-toggle {
  width: 2.5rem; height: 2.5rem;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.5); backdrop-filter: blur(12px);
  border-radius: 9999px; border: 1px solid rgba(255,255,255,.6);
  color: var(--slate-600); cursor: pointer;
}
@media(min-width:768px) { .menu-toggle { display: none; } }
.mobile-overlay {
  display: none; position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,.25);
}
.mobile-overlay.open { display: block; }
.mobile-menu {
  display: none; position: absolute;
  top: calc(100% + .5rem); left: 1rem; right: 1rem;
  background: rgba(255,255,255,.92); backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 20px 60px -15px rgba(0,0,0,.15), 0 0 0 1px rgba(139,92,246,.08);
  border-radius: var(--radius-2xl); padding: .5rem;
  flex-direction: column; gap: .25rem; z-index: 50;
  animation: fadeInUp .3s ease-out;
}
.mobile-menu.open { display: flex; }
@media(min-width:768px) { .mobile-menu, .mobile-overlay { display: none !important; } }
.mobile-menu a {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem; border-radius: var(--radius-xl);
  font-weight: 700; color: var(--slate-700); transition: background .2s;
}
.mobile-menu a:hover { background: var(--violet-50); }
.mobile-menu a:active { transform: scale(.98); }
.mobile-menu .mobile-icon {
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mobile-menu .mobile-cta {
  margin-top: .5rem; justify-content: center;
  background: var(--violet-600); color: #fff; gap: .75rem;
}
.mobile-menu .mobile-cta:hover { background: var(--violet-700); }

/* ===== LAYOUT ===== */
.container { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.content-wrap { position: relative; z-index: 10; }

/* ===== HERO / PAGE HEADER ===== */
.blog-hero {
  padding: 7rem 0 2rem; text-align: center;
}
@media(min-width:768px) { .blog-hero { padding: 8rem 0 3rem; } }
.blog-hero .badge {
  display: inline-block; padding: .25rem .75rem;
  background: #fff; border: 1px solid var(--violet-100);
  border-radius: 9999px; color: var(--violet-600);
  font-size: .625rem; font-weight: 700; margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
@media(min-width:768px) { .blog-hero .badge { font-size: .875rem; padding: .375rem 1rem; } }
.blog-hero h1 {
  font-size: 1.875rem; font-weight: 700; color: var(--slate-800);
  margin-bottom: 1rem; line-height: 1.25; letter-spacing: -.025em;
}
@media(min-width:768px) { .blog-hero h1 { font-size: 3rem; } }
.blog-hero h1 .accent {
  color: var(--violet-500);
  text-decoration: underline; text-decoration-style: wavy;
  text-decoration-color: var(--violet-300); text-underline-offset: 8px;
}
.blog-hero p {
  font-size: 1rem; color: var(--slate-500); max-width: 36rem; margin: 0 auto;
  line-height: 1.625;
}
@media(min-width:768px) { .blog-hero p { font-size: 1.25rem; } }

/* ===== POST GRID ===== */
.posts-grid {
  display: grid; grid-template-columns: 1fr; gap: 1.5rem;
  padding-bottom: 3rem;
}
@media(min-width:640px) { .posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media(min-width:1024px) { .posts-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== POST CARD ===== */
.post-card {
  background: #fff; border-radius: var(--radius-3xl); overflow: hidden;
  border: 1px solid var(--violet-100);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  transition: transform .3s, box-shadow .3s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -12px rgba(0,0,0,.12); }
.post-card-img {
  aspect-ratio: 16/10; overflow: hidden; position: relative;
}
.post-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s;
}
.post-card:hover .post-card-img img { transform: scale(1.06); }
.post-card-img .cat-badge {
  position: absolute; top: .75rem; left: .75rem;
  padding: .25rem .75rem; border-radius: 9999px;
  font-size: .75rem; font-weight: 700;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  color: var(--violet-600); border: 1px solid rgba(255,255,255,.5);
}
.post-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.post-card-meta {
  font-size: .75rem; color: var(--slate-400); margin-bottom: .5rem;
  display: flex; align-items: center; gap: .5rem;
}
.post-card-title {
  font-size: 1.25rem; font-weight: 700; color: var(--slate-800);
  margin-bottom: .5rem; line-height: 1.3;
  transition: color .3s;
}
.post-card:hover .post-card-title { color: var(--violet-600); }
.post-card-excerpt {
  font-size: .875rem; color: var(--slate-500); line-height: 1.6;
  flex: 1; margin-bottom: 1rem;
}
.post-card-link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .875rem; font-weight: 700; color: var(--violet-500);
  transition: gap .3s;
}
.post-card-link:hover { gap: .75rem; }
.post-card-placeholder {
  aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--violet-50), var(--emerald-50));
}
.post-card-placeholder i { width: 3rem; height: 3rem; color: var(--violet-300); }

/* ===== SINGLE POST ===== */
.single-header { padding: 7rem 0 1rem; }
@media(min-width:768px) { .single-header { padding: 8rem 0 1.5rem; } }
.breadcrumbs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  font-size: .8rem; color: var(--slate-400); margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--violet-500); font-weight: 600; }
.breadcrumbs a:hover { text-decoration: underline; }
.single-cat-badge {
  display: inline-flex; align-items: center; gap: .375rem;
  padding: .25rem .75rem; border-radius: 9999px;
  background: var(--violet-50); color: var(--violet-600);
  font-size: .75rem; font-weight: 700; margin-bottom: 1rem;
}
.single-title {
  font-size: 2rem; font-weight: 700; color: var(--slate-800);
  line-height: 1.2; letter-spacing: -.025em; margin-bottom: 1rem;
}
@media(min-width:768px) { .single-title { font-size: 2.75rem; } }
.single-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  font-size: .875rem; color: var(--slate-400); margin-bottom: 2rem;
  padding-bottom: 2rem; border-bottom: 1px solid var(--slate-100);
}
.single-meta span { display: flex; align-items: center; gap: .375rem; }
.single-featured {
  border-radius: var(--radius-2xl); overflow: hidden;
  margin-bottom: 2.5rem; border: 4px solid #fff;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.1);
}
.single-featured img { width: 100%; height: auto; display: block; }

/* ===== POST CONTENT (Prose) ===== */
.post-content {
  max-width: 48rem; margin: 0 auto;
  font-size: 1.0625rem; line-height: 1.8; color: var(--slate-700);
}
.post-content h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--slate-800);
  margin: 2.5rem 0 1rem; letter-spacing: -.025em;
}
.post-content h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--slate-800);
  margin: 2rem 0 .75rem;
}
.post-content p { margin-bottom: 1.25rem; }
.post-content a { color: var(--violet-500); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--violet-700); }
.post-content ul, .post-content ol { margin: 1rem 0 1.25rem 1.5rem; }
.post-content li { margin-bottom: .5rem; }
.post-content blockquote {
  border-left: 4px solid var(--violet-300); padding: 1rem 1.5rem;
  background: var(--violet-50); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 1.5rem 0; font-style: italic; color: var(--slate-600);
}
.post-content img {
  border-radius: var(--radius-lg); margin: 1.5rem 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.post-content strong { color: var(--slate-800); }

/* ===== POST NAVIGATION ===== */
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  margin: 3rem 0; max-width: 48rem; margin-left: auto; margin-right: auto;
}
.post-nav a {
  padding: 1.25rem; border-radius: var(--radius-xl);
  background: #fff; border: 1px solid var(--violet-100);
  transition: all .3s; display: flex; flex-direction: column; gap: .25rem;
}
.post-nav a:hover { border-color: var(--violet-300); box-shadow: 0 8px 20px -6px rgba(0,0,0,.08); transform: translateY(-2px); }
.post-nav .nav-label { font-size: .75rem; color: var(--slate-400); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.post-nav .nav-title { font-size: .9rem; font-weight: 700; color: var(--slate-700); }
.post-nav .post-nav-next { text-align: right; }

/* ===== CTA SECTION ===== */
.cta-section {
  max-width: 48rem; margin: 2rem auto 3rem;
  background: linear-gradient(135deg, var(--violet-50), #fff);
  border-radius: var(--radius-3xl); padding: 2.5rem;
  border: 1px solid var(--violet-100); text-align: center;
}
.cta-section h3 { font-size: 1.5rem; font-weight: 700; color: var(--slate-800); margin-bottom: .75rem; }
.cta-section p { color: var(--slate-500); margin-bottom: 1.5rem; }

/* ===== BUTTONS ===== */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .875rem 2rem; border-radius: 9999px;
  background: var(--violet-400); color: #fff;
  font-weight: 700; font-size: .9rem;
  transition: all .3s; box-shadow: 0 4px 14px rgba(139,92,246,.25);
}
.btn-primary:hover { background: var(--violet-500); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1.5rem; border-radius: 9999px;
  background: var(--violet-50); color: var(--violet-600);
  font-weight: 700; font-size: .875rem; transition: all .3s;
}
.btn-secondary:hover { background: var(--violet-100); }

/* ===== PAGINATION ===== */
.pagination {
  display: flex; justify-content: center; align-items: center; gap: .5rem;
  padding: 2rem 0 4rem;
}
.pagination a, .pagination span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.5rem; height: 2.5rem; padding: 0 .75rem;
  border-radius: 9999px; font-weight: 700; font-size: .875rem;
  transition: all .3s;
}
.pagination a { background: #fff; color: var(--slate-600); border: 1px solid var(--violet-100); }
.pagination a:hover { background: var(--violet-50); border-color: var(--violet-300); color: var(--violet-600); }
.pagination .current { background: var(--violet-500); color: #fff; border: 1px solid var(--violet-500); }
.pagination .dots { background: none; border: none; color: var(--slate-400); }
.pagination .prev, .pagination .next { padding: 0 1.25rem; }

/* ===== FOOTER ===== */
.site-footer {
  background: rgba(255,255,255,.8); backdrop-filter: blur(8px);
  padding: 3rem 0 2.5rem; border-top: 1px solid var(--slate-100);
  position: relative; z-index: 20;
}
.footer-cta { text-align: center; margin-bottom: 3rem; }
.footer-cta h2 { font-size: 1.875rem; font-weight: 700; color: var(--slate-800); margin-bottom: 1rem; }
@media(min-width:768px) { .footer-cta h2 { font-size: 2.25rem; } }
.footer-cta p { font-size: 1.125rem; color: var(--slate-500); max-width: 36rem; margin: 0 auto 2rem; }
.footer-bottom {
  padding-top: 2rem; border-top: 1px solid var(--slate-100);
  text-align: center; color: var(--slate-400); font-size: .875rem;
}
.footer-bottom p { margin-bottom: .25rem; }
.footer-bottom a { transition: color .3s; }
.footer-bottom a:hover { color: var(--slate-500); }

/* ===== FLOATING WHATSAPP ===== */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 50;
  background: var(--green-500); color: #fff;
  width: 3rem; height: 3rem; border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(34,197,94,.35);
  transition: all .3s;
}
.whatsapp-float:hover { background: var(--green-600); transform: scale(1.1); }
@media(min-width:768px) { .whatsapp-float { width: 3.5rem; height: 3.5rem; } }

/* ===== SEARCH FORM ===== */
.search-form {
  display: flex; max-width: 32rem; margin: 0 auto 2rem;
}
.search-form input {
  flex: 1; padding: .75rem 1.25rem;
  border: 1px solid var(--violet-100); border-right: none;
  border-radius: 9999px 0 0 9999px;
  font-family: inherit; font-size: .9rem; color: var(--slate-700);
  background: #fff; outline: none;
}
.search-form input:focus { border-color: var(--violet-300); }
.search-form button {
  padding: .75rem 1.5rem; border: none;
  border-radius: 0 9999px 9999px 0;
  background: var(--violet-500); color: #fff;
  font-weight: 700; font-family: inherit; cursor: pointer;
  transition: background .3s;
}
.search-form button:hover { background: var(--violet-600); }

/* ===== 404 ===== */
.page-404 {
  text-align: center; padding: 10rem 0 6rem;
}
.page-404 .big-number {
  font-size: 8rem; font-weight: 800; color: var(--violet-200); line-height: 1;
}
.page-404 h1 { font-size: 1.5rem; font-weight: 700; color: var(--slate-700); margin: 1rem 0 .5rem; }
.page-404 p { color: var(--slate-500); margin-bottom: 2rem; }

/* ===== NO RESULTS ===== */
.no-results {
  text-align: center; padding: 4rem 0;
}
.no-results h2 { font-size: 1.5rem; font-weight: 700; color: var(--slate-700); margin-bottom: .5rem; }
.no-results p { color: var(--slate-500); margin-bottom: 1.5rem; }

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
