/*
Theme Name:   Tailwind Blog Pro
Theme URI:    https://tusitio.com
Author:       Tu Nombre
Author URI:   https://tusitio.com
Description:  Tema WordPress de alto rendimiento para blogs y revistas digitales. Construido con Tailwind CSS, optimizado para SEO, velocidad de carga y monetización con Google AdSense.
Version:      1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License:      GPL-2.0-or-later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  tailwind-blog-pro
Tags: blog, news, magazine, tailwind, adsense, seo, responsive, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   BASE STYLES
   Para producción: usa Tailwind CLI y compila este archivo
   Comando: npx tailwindcss -i ./src/input.css -o ./style.css --minify
   ============================================================ */

/* Prose (Tailwind Typography) — estilos del cuerpo del artículo */
.prose {
  color: #334155;
  line-height: 1.8;
}
.prose h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #0f172a;
  scroll-margin-top: 80px;
}
.prose h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #1e293b;
  scroll-margin-top: 80px;
}
.prose p {
  margin-bottom: 1.5rem;
}
.prose ul, .prose ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose a {
  color: #4f46e5;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prose a:hover {
  color: #4338ca;
}
.prose blockquote {
  border-left: 4px solid #6366f1;
  padding: 0.75rem 1.25rem;
  background: #eef2ff;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #475569;
  margin: 1.5rem 0;
}
.prose code {
  background: #f1f5f9;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.875em;
  color: #be185d;
}
.prose pre {
  background: #1e293b;
  color: #e2e8f0;
  padding: 1.25rem;
  border-radius: 12px;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}
.prose img {
  border-radius: 12px;
  margin: 1.5rem auto;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9rem;
}
.prose th {
  background: #f8fafc;
  font-weight: 700;
  padding: 10px 14px;
  text-align: left;
  border: 1px solid #e2e8f0;
  color: #0f172a;
}
.prose td {
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.prose tr:nth-child(even) td {
  background: #f8fafc;
}
.prose hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 2.5rem 0;
}

/* ============================================================
   COMENTARIOS DE WORDPRESS
   ============================================================ */
#comments {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}
#comments h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 1.5rem;
}
.comment-list {
  list-style: none;
  padding: 0;
}
.comment {
  margin-bottom: 1.5rem;
  padding: 1.25rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}
.comment-author .fn {
  font-weight: 700;
  color: #0f172a;
  font-size: 0.9rem;
}
.comment-metadata {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 0.5rem;
}
.comment-content p {
  font-size: 0.9rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}
.comment-reply-link {
  font-size: 0.8rem;
  color: #4f46e5;
  font-weight: 600;
}
.comment-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 4px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #334155;
  background: #fff;
  outline: none;
  transition: border-color .2s;
  margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}
.comment-form textarea {
  min-height: 120px;
  resize: vertical;
}
.comment-form input[type="submit"] {
  background: #4f46e5;
  color: #fff;
  font-weight: 700;
  padding: 10px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background .2s;
}
.comment-form input[type="submit"]:hover {
  background: #4338ca;
}

/* ============================================================
   UTILIDADES EXTRA
   ============================================================ */
@media (max-width: 640px) {
  .hero-post { margin-bottom: 2rem; }
  .prose h2 { font-size: 1.3rem; }
}

/* Animación de entrada suave */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
article { animation: fadeUp .4s ease forwards; }

/* Scroll suave global */
html { scroll-behavior: smooth; }
