/*
Theme Name: Tu Camino Child
Template: astra
Version: 2.0.0
*/

/* VARIABLES */
:root {
  --gold:        #B8882A;
  --gold-lt:     #D4A843;
  --gold-bg:     #FBF3DF;
  --beige:       #FDF8F2;
  --beige-dk:    #F3EAD8;
  --white:       #FFFFFF;
  --green:       #4A7C59;
  --text:        #2D2D2D;
  --text-lt:     #666;
  --border:      #E5D9C5;
  --shadow:      0 2px 10px rgba(0,0,0,.07);
  --radius:      10px;
}

/* BASE */
body {
  font-family: 'Nunito', sans-serif;
  background: var(--beige);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
}
h1,h2,h3,h4 {
  font-family: 'Playfair Display', Georgia, serif;
  line-height: 1.3;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--green); }
img { max-width: 100%; }

/* GOOGLE FONTS */
/* cargadas en functions.php */

/* ── HEADER ──────────────────────────────────────────────────────────────── */
.site-header, .ast-primary-header { background: #fff !important; box-shadow: 0 1px 6px rgba(0,0,0,.07); }
.site-title a, .ast-site-title-wrap a {
  font-family: 'Playfair Display', serif !important;
  font-weight: 700 !important;
  font-size: 1.4rem !important;
  color: var(--gold) !important;
}
.ast-builder-menu a { font-weight: 600 !important; font-size: .9rem !important; color: var(--text) !important; }
.ast-builder-menu a:hover { color: var(--gold) !important; }
.ast-header-sections-navigation .sub-menu {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 200px;
}
.ast-header-sections-navigation .sub-menu a { font-size: .85rem !important; padding: 8px 16px !important; }

/* Ir al contenido (accesibilidad, oculto) */
.skip-link { position: absolute; left: -9999px; }

/* ── HOME: ocultar title/breadcrumb Astra ───────────────────────────────── */
.home .entry-title,
.home .ast-breadcrumbs-wrap,
.home .ast-page-title-area { display: none !important; }
.home .entry-content,
.home .ast-article-single { padding: 0 !important; margin: 0 !important; }
.home .ast-container { max-width: 100% !important; padding: 0 !important; }

/* ── UTILIDADES ─────────────────────────────────────────────────────────── */
.tc-wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.tc-titulo {
  text-align: center;
  font-size: 1.35rem;
  color: var(--gold);
  margin: 0 0 28px;
  font-weight: 700;
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.tc-hero {
  background: linear-gradient(160deg, #FDF8EE 0%, #F5DFA0 55%, #EDE0C4 100%);
  border-bottom: 3px solid var(--gold-lt);
  padding: 64px 24px 56px;
  text-align: center;
}
.tc-hero__icon {
  width: 52px; height: 52px;
  margin: 0 auto 18px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.tc-hero__icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.tc-hero h1 { font-size: 2.2rem; color: var(--gold); margin: 0 0 12px; }
.tc-hero p  { font-size: 1rem; color: var(--text-lt); max-width: 520px; margin: 0 auto 28px; }
.tc-hero__btn {
  display: inline-block;
  background: var(--gold);
  color: #fff;
  padding: 12px 30px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .95rem;
  transition: background .2s;
}
.tc-hero__btn:hover { background: var(--green); color: #fff; }

/* ── SECCIÓN CATEGORÍAS ──────────────────────────────────────────────────── */
.tc-cats {
  background: var(--white);
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.tc-cats__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.tc-cat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 14px;
  background: var(--beige);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tc-cat:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(0,0,0,.09); border-color: var(--gold-lt); }
.tc-cat__icon {
  width: 44px; height: 44px;
  background: var(--gold-bg);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.tc-cat__icon svg { width: 22px; height: 22px; stroke: var(--gold); }
.tc-cat:hover .tc-cat__icon svg { stroke: var(--green); }
.tc-cat strong { font-size: .92rem; color: var(--text); font-family: 'Playfair Display', serif; display: block; margin-bottom: 4px; }
.tc-cat span   { font-size: .75rem; color: var(--text-lt); line-height: 1.4; }

/* ── SECCIÓN ARTÍCULOS ───────────────────────────────────────────────────── */
.tc-arts {
  background: var(--beige);
  padding: 48px 0;
}
.tc-arts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tc-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.tc-card:hover { transform: translateY(-3px); box-shadow: 0 6px 20px rgba(0,0,0,.1); }
.tc-card__cat  { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-bottom: 8px; display: block; }
.tc-card h3    { font-size: .97rem; color: var(--text); margin: 0 0 10px; line-height: 1.4; }
.tc-card p     { font-size: .83rem; color: var(--text-lt); line-height: 1.6; margin: 0; flex: 1; }
.tc-card__cta  { display: block; margin-top: 14px; font-size: .8rem; font-weight: 700; color: var(--gold); }
.tc-card:hover .tc-card__cta { color: var(--green); }

/* ── SECCIÓN DESTACADOS ──────────────────────────────────────────────────── */
.tc-dest {
  background: var(--gold);
  padding: 48px 0;
}
.tc-dest .tc-titulo { color: #fff; }
.tc-dest__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.tc-dest__item a {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius);
  padding: 13px 15px;
  color: #fff;
  font-weight: 600;
  font-size: .88rem;
  transition: background .2s;
}
.tc-dest__item a:hover { background: rgba(255,255,255,.22); color: #fff; }
.tc-dest__item svg { width: 16px; height: 16px; stroke: rgba(255,255,255,.7); flex-shrink: 0; }

/* ── PÁGINAS DE CATEGORÍA ────────────────────────────────────────────────── */
.tc-cat-hero {
  background: linear-gradient(160deg, #FDF8EE 0%, #F5DFA0 55%, #EDE0C4 100%);
  border-bottom: 3px solid var(--gold-lt);
  padding: 50px 24px 40px;
  text-align: center;
}
.tc-cat-hero__icon {
  width: 56px; height: 56px;
  background: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
}
.tc-cat-hero__icon svg { width: 26px; height: 26px; stroke: var(--gold); }
.tc-cat-hero h1 { font-size: 1.9rem; color: var(--gold); margin: 0 0 8px; }
.tc-cat-hero p  { font-size: 1rem; color: var(--text-lt); max-width: 520px; margin: 0 auto; }

.tc-cat-body { max-width: 1080px; margin: 0 auto; padding: 40px 24px; }

.tc-cat-desc {
  background: var(--white);
  border-left: 4px solid var(--gold-lt);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 36px;
  color: var(--text);
}

.tc-prox-titulo { font-size: 1.25rem; color: var(--gold); margin-bottom: 16px; }
.tc-prox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 12px;
  margin-bottom: 44px;
}
.tc-prox-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.tc-prox-item svg { width: 18px; height: 18px; stroke: var(--green); flex-shrink: 0; margin-top: 2px; }
.tc-prox-item strong { display: block; font-size: .93rem; color: var(--text); margin-bottom: 3px; }
.tc-prox-item span   { font-size: .8rem; color: var(--text-lt); }

.tc-sug-titulo { font-size: 1.25rem; color: var(--gold); margin-bottom: 16px; padding-top: 32px; border-top: 1px solid var(--border); }

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer, .ast-footer-overlay {
  background: #1E1A14 !important;
  color: #C9B98A !important;
}
.site-footer a { color: #C9B98A !important; }
.site-footer a:hover { color: #fff !important; }
.ast-footer-copyright { font-size: .85rem; }

/* ── ARTÍCULOS INDIVIDUALES ──────────────────────────────────────────────── */
.entry-content { max-width: 760px; margin: 0 auto; padding: 32px 24px; }
.entry-content h1 { font-size: 1.8rem; color: var(--gold); margin-bottom: 20px; }
.entry-content h2 { font-size: 1.3rem; color: var(--text); margin-top: 32px; margin-bottom: 12px; }
.entry-content h3 { font-size: 1.1rem; color: var(--gold); margin-top: 24px; margin-bottom: 8px; }
.entry-content p  { margin-bottom: 16px; }
.entry-content ul { padding-left: 20px; margin-bottom: 16px; }
.entry-content ul li { margin-bottom: 6px; }
.entry-content a  { color: var(--gold); font-weight: 600; }

/* Breadcrumb */
.ast-breadcrumbs { font-size: .82rem; color: var(--text-lt); padding: 10px 24px; max-width: 760px; margin: 0 auto; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .tc-cats__grid  { grid-template-columns: repeat(3, 1fr); }
  .tc-arts__grid  { grid-template-columns: repeat(2, 1fr); }
  .tc-dest__grid  { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .tc-hero h1     { font-size: 1.6rem; }
  .tc-cats__grid  { grid-template-columns: repeat(2, 1fr); }
  .tc-arts__grid  { grid-template-columns: 1fr; }
  .tc-dest__grid  { grid-template-columns: 1fr; }
  .tc-cat-hero h1 { font-size: 1.4rem; }
  .tc-prox-grid   { grid-template-columns: 1fr; }
  .entry-content  { padding: 24px 16px; }
}
