/*
Theme Name: Samuel Blog
Theme URI: https://blog.samuelcoachdealeman.com
Author: Samuel Coach de Alemán
Author URI: https://www.samuelcoachdealeman.com
Description: Tema de blog para Samuel Coach de Alemán. Mismo diseño que el sitio principal, SEO integrado sin plugins, carga ultrarrápida.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.7
Requires PHP: 8.0
License: Proprietary
Text Domain: samuel-blog
*/

/* ─── Variables ─────────────────────────────────────────────── */
:root {
  --teal:       #3aa9ab;
  --teal-dark:  #2c8182;
  --teal-light: #45c6c9;
  --teal-pale:  #edf8f8;
  --nav-bg:     #455a64;
  --nav-hover:  #4f6672;
  --dark:       #0d3637;
  --text:       #1b1b1b;
  --muted:      #474747;
  --border:     #dbdbdb;
  --bg-alt:     #f6f6f6;
  --white:      #ffffff;
  --radius:     8px;
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Lato", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 16px;
  line-height: 1.65;
}
h1, h2, h3, h4, h5, h6 { font-family: "Cabin", Arial, sans-serif; line-height: 1.25; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
ul, ol { padding-left: 0; list-style: none; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.icon-wa { width: 18px; height: 18px; flex-shrink: 0; }

/* ─── Notice bar ────────────────────────────────────────────── */
.notice {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  font-size: .88rem;
  padding: 10px 20px;
  letter-spacing: .01em;
}
.notice a { color: var(--teal-light); font-weight: 700; }

/* ─── Nav ───────────────────────────────────────────────────── */
nav {
  background: var(--nav-bg);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1060px;
  margin: 0 auto;
  padding: 12px 24px;
  gap: 20px;
}
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 52px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; }
.nav-links a {
  color: rgba(255,255,255,.88);
  font-size: .88rem;
  font-family: "Cabin", sans-serif;
  font-weight: 600;
  padding: 7px 13px;
  border-radius: var(--radius);
  transition: background .15s;
}
.nav-links a:hover { background: var(--nav-hover); color: var(--white); }
.nav-links .nav-cta {
  background: var(--teal);
  color: var(--white) !important;
  border-radius: 50px;
  padding: 8px 18px;
}
.nav-links .nav-cta:hover { background: var(--teal-light); }
.nav-drop { position: relative; }
.nav-drop > a::after { content: " ▾"; font-size: .7rem; opacity: .7; }
.drop-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--nav-hover);
  border-radius: var(--radius);
  min-width: 200px;
  padding: 6px 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
.nav-drop:hover .drop-menu { display: block; }
.drop-menu a {
  display: block;
  padding: 9px 16px;
  color: rgba(255,255,255,.9) !important;
  font-size: .85rem;
  border-radius: 0;
}
.drop-menu a:hover { background: rgba(255,255,255,.1); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: transparent;
  border: 0;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; display: block; }
.mobile-menu {
  display: none;
  background: var(--nav-bg);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 10px 20px 18px;
}
.mobile-menu.is-open { display: grid; gap: 6px; }
.mobile-menu a {
  color: rgba(255,255,255,.9);
  padding: 10px 12px;
  border-radius: var(--radius);
  font-family: "Cabin", sans-serif;
  font-size: .92rem;
}
.mobile-menu a:hover { background: var(--nav-hover); color: var(--white); }
.mobile-menu .mobile-cta { background: var(--teal); color: var(--white); text-align: center; }

/* ─── Page hero (archivos, búsqueda) ────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 56px 24px;
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 10px; }
.page-hero p { font-size: 1.05rem; opacity: .9; max-width: 640px; margin: 0 auto; }
.page-hero .search-form {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 20px auto 0;
}
.page-hero .search-form input {
  flex: 1;
  padding: 12px 16px;
  border: 0;
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
.page-hero .search-form button {
  background: var(--dark);
  color: var(--white);
  border: 0;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  transition: background .15s;
}
.page-hero .search-form button:hover { background: #1a4f50; }

/* ─── Blog listing ──────────────────────────────────────────── */
.blog-wrap { padding: 56px 24px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1060px;
  margin: 0 auto;
}
.post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .2s;
}
.post-card:hover { box-shadow: 0 8px 28px rgba(58,169,171,.15); transform: translateY(-3px); }
.post-card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  flex-shrink: 0;
}
.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.cat-tag {
  display: inline-block;
  background: var(--teal-pale);
  color: var(--teal-dark);
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.cat-tag:hover { background: var(--teal); color: var(--white); }
.post-date { font-size: .78rem; color: var(--muted); }
.post-read-time { font-size: .78rem; color: var(--muted); }
.post-card-body h2 {
  font-size: 1.15rem;
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.35;
}
.post-card-body h2 a { color: var(--text); }
.post-card-body h2 a:hover { color: var(--teal); }
.post-card-body p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; flex: 1; }
.btn-outline-teal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 50px;
  border: 2px solid var(--teal);
  color: var(--teal);
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: .88rem;
  transition: background .15s, color .15s;
  align-self: flex-start;
}
.btn-outline-teal:hover { background: var(--teal); color: var(--white); }

/* ─── Pagination ────────────────────────────────────────────── */
.pagination-wrap {
  max-width: 1060px;
  margin: 12px auto 0;
  padding: 0 24px 56px;
  display: flex;
  justify-content: center;
}
.pagination {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pagination a,
.pagination span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: var(--radius);
  font-family: "Cabin", sans-serif;
  font-size: .88rem;
  font-weight: 700;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0 10px;
  transition: background .15s, border-color .15s;
}
.pagination a:hover { background: var(--teal-pale); border-color: var(--teal); color: var(--teal-dark); }
.pagination .current { background: var(--teal); border-color: var(--teal); color: var(--white); }
.pagination .dots { border: 0; background: transparent; }

/* ─── Breadcrumb ────────────────────────────────────────────── */
.breadcrumb {
  font-size: .8rem;
  color: var(--muted);
  padding: 16px 0 0;
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb .current-crumb { color: var(--teal-dark); font-weight: 600; }

/* ─── Single post ───────────────────────────────────────────── */
.single-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px 72px;
}
.single-header { padding-top: 36px; }
.single-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.single-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 16px;
  text-wrap: balance;
}
.single-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  font-size: .82rem;
  color: var(--muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.single-meta strong { color: var(--text); }
.single-featured {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
  border: 1px solid var(--border);
}
.single-featured img { width: 100%; height: auto; }

/* Post content typography */
.entry-content { font-size: 1.02rem; line-height: 1.75; color: var(--text); }
.entry-content h2 { font-size: 1.65rem; margin: 40px 0 14px; color: var(--dark); }
.entry-content h3 { font-size: 1.3rem; margin: 32px 0 12px; color: var(--dark); }
.entry-content h4 { font-size: 1.1rem; margin: 24px 0 10px; color: var(--dark); }
.entry-content p { margin-bottom: 20px; }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 20px; }
.entry-content li { margin-bottom: 8px; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content a { color: var(--teal); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--teal-dark); }
.entry-content strong { font-weight: 700; }
.entry-content em { font-style: italic; }
.entry-content blockquote {
  border-left: 4px solid var(--teal);
  margin: 28px 0;
  padding: 16px 20px;
  background: var(--teal-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--muted);
}
.entry-content blockquote p { margin-bottom: 0; }
.entry-content code {
  background: var(--bg-alt);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: monospace;
  font-size: .9em;
  color: var(--dark);
}
.entry-content pre {
  background: var(--dark);
  color: #e0f2f1;
  padding: 20px;
  border-radius: var(--radius);
  overflow-x: auto;
  margin-bottom: 24px;
}
.entry-content pre code { background: transparent; color: inherit; padding: 0; }
.entry-content img { border-radius: var(--radius); margin: 8px 0; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 8px; }
.entry-content table { border-collapse: collapse; width: 100%; margin-bottom: 24px; font-size: .93rem; }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; }
.entry-content th { background: var(--bg-alt); font-family: "Cabin", sans-serif; }
.entry-content hr { border: 0; border-top: 2px solid var(--border); margin: 40px 0; }

/* Highlight box */
.entry-content .highlight-box {
  background: var(--teal-pale);
  border: 1px solid #b2e0e1;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0;
}
.entry-content .highlight-box p { margin-bottom: 0; color: var(--dark); }

/* Post footer */
.post-tags { margin: 40px 0 32px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post-tags .label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.tag-pill {
  display: inline-block;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid var(--border);
  transition: background .15s, border-color .15s;
}
.tag-pill:hover { background: var(--teal-pale); border-color: var(--teal); color: var(--teal-dark); }

/* Share buttons */
.share-bar {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.share-bar .share-label { font-family: "Cabin", sans-serif; font-weight: 700; font-size: .88rem; color: var(--muted); flex-shrink: 0; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 50px;
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: .82rem;
  border: 0;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  text-decoration: none;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,.15); color: inherit; }
.share-wa { background: #25d366; color: #fff; }
.share-twitter { background: #000; color: #fff; }
.share-copy { background: var(--white); color: var(--dark); border: 1px solid var(--border) !important; }

/* Author box */
.author-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 48px;
}
.author-avatar-box {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--teal);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Cabin", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--white);
}
.author-box-info h3 { font-size: 1.05rem; margin-bottom: 6px; color: var(--dark); }
.author-box-info p { font-size: .9rem; color: var(--muted); margin-bottom: 10px; }
.author-box-link { font-size: .85rem; font-weight: 700; }

/* Related posts */
.related-posts { margin-bottom: 56px; }
.related-posts h2 {
  font-size: 1.4rem;
  margin-bottom: 20px;
  color: var(--dark);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.related-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: border-color .15s, box-shadow .15s;
}
.related-card:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(58,169,171,.1); }
.related-card .cat-tag { margin-bottom: 8px; }
.related-card h3 { font-size: .95rem; line-height: 1.35; }
.related-card h3 a { color: var(--text); }
.related-card h3 a:hover { color: var(--teal); }
.related-card .post-date { font-size: .76rem; color: var(--muted); margin-top: 8px; display: block; }

/* ─── Comments ──────────────────────────────────────────────── */
.comments-section { border-top: 1px solid var(--border); padding-top: 40px; margin-bottom: 56px; }
.comments-section h2 { font-size: 1.4rem; margin-bottom: 24px; color: var(--dark); }
.comment-list { display: flex; flex-direction: column; gap: 20px; margin-bottom: 40px; }
.comment-item {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 20px;
  border-left: 3px solid var(--teal);
}
.comment-header { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: .85rem;
  flex-shrink: 0;
}
.comment-author-name { font-family: "Cabin", sans-serif; font-weight: 700; font-size: .9rem; }
.comment-date { font-size: .76rem; color: var(--muted); margin-left: auto; }
.comment-text { font-size: .92rem; color: var(--muted); }
.comment-reply { font-size: .8rem; margin-top: 8px; font-weight: 700; }

/* Comment form */
.comment-form-wrap { background: var(--bg-alt); border-radius: 12px; padding: 28px; }
.comment-form-wrap h3 { font-size: 1.15rem; margin-bottom: 20px; color: var(--dark); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: .83rem; font-weight: 700; color: var(--muted); }
.form-group input,
.form-group textarea {
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: .93rem;
  color: var(--text);
  background: var(--white);
  transition: border-color .15s;
}
.form-group input:focus,
.form-group textarea:focus { outline: 0; border-color: var(--teal); }
.form-group textarea { resize: vertical; min-height: 120px; }
.btn-submit {
  background: var(--teal);
  color: var(--white);
  border: 0;
  padding: 13px 28px;
  border-radius: 50px;
  font-family: "Cabin", sans-serif;
  font-weight: 700;
  font-size: .95rem;
  transition: background .15s, transform .15s;
}
.btn-submit:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* No results */
.no-results {
  text-align: center;
  padding: 72px 24px;
  max-width: 560px;
  margin: 0 auto;
}
.no-results h2 { font-size: 1.6rem; margin-bottom: 12px; color: var(--dark); }
.no-results p { color: var(--muted); margin-bottom: 24px; }

/* 404 */
.error-404-wrap {
  text-align: center;
  padding: 80px 24px;
}
.error-404-wrap .error-code {
  font-family: "Cabin", sans-serif;
  font-size: 7rem;
  font-weight: 700;
  color: var(--teal);
  line-height: 1;
  margin-bottom: 0;
}
.error-404-wrap h1 { font-size: 2rem; margin-bottom: 12px; color: var(--dark); }
.error-404-wrap p { color: var(--muted); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* Page */
.page-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.page-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); color: var(--dark); margin-bottom: 28px; padding-bottom: 16px; border-bottom: 2px solid var(--teal); }
.page-wrap .entry-content { margin-top: 8px; }

/* ─── Footer ────────────────────────────────────────────────── */
footer { background: #0d2626; color: rgba(255,255,255,.65); padding: 36px 24px; }
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 28px;
}
.footer-logo { display: inline-flex; align-items: center; }
.footer-logo img { height: 44px; width: auto; opacity: .85; }
.footer-logo-fun img { height: 78px; opacity: 1; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-links a:hover { color: var(--white); }
.socials { display: flex; gap: 10px; }
.socials a {
  min-height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  padding: 0 14px;
  color: rgba(255,255,255,.65);
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.socials a:hover { border-color: var(--teal); color: var(--teal); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  font-size: .8rem;
  text-align: center;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 860px) {
  .blog-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
  .single-title { font-size: 1.7rem; }
  .share-bar { flex-direction: column; align-items: flex-start; }
}
