/*
Theme Name: RedAmbulancias
Theme URI: https://redambulancias.com.mx
Author: RedAmbulancias.com.mx
Description: Custom theme matching RedAmbulancias.com.mx site design
Version: 1.0
*/

/* ── Reset & Variables ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:       #D92B2B;
  --red-dark:  #A81E1E;
  --red-light: #FFF0F0;
  --ink:       #111827;
  --muted:     #6B7280;
  --border:    #E5E7EB;
  --bg:        #FAFAFA;
  --white:     #FFFFFF;
  --radius:    10px;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --font-sans: 'DM Sans', sans-serif;
  --font-serif:'DM Serif Display', serif;
  --max:       1140px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--red); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

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

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px; border-radius: var(--radius);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s ease;
  text-decoration: none;
}
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); text-decoration: none; color:#fff; }
.btn-sm { padding: 9px 16px; font-size: .88rem; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-logo {
  font-family: var(--font-serif);
  font-size: 1.5rem; color: var(--red); font-weight: 400;
  text-decoration: none;
}
.site-logo span { color: var(--ink); font-size: .85em; }
.site-logo:hover { text-decoration: none; }

.header-cta { display: flex; gap: 10px; align-items: center; }
.header-phone {
  font-weight: 700; font-size: .9rem; color: var(--red);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; text-decoration: none;
}

/* ── Article / Blog Post ─────────────────────────────────── */
.post-hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff; padding: 56px 0 48px;
}
.post-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2; margin-bottom: 16px; font-weight: 400;
}
.post-meta {
  font-size: .85rem; opacity: .7;
  display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px;
}
.post-category {
  display: inline-block;
  background: rgba(217,43,43,.25); border: 1px solid rgba(217,43,43,.4);
  color: #ffaaaa; padding: 4px 12px; border-radius: 50px;
  font-size: .78rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; margin-bottom: 16px;
}

.post-body {
  max-width: 740px; margin: 0 auto;
  padding: 48px 20px 64px;
}
.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem; font-weight: 400;
  margin: 40px 0 16px; color: var(--ink);
}
.post-body h3 {
  font-size: 1.2rem; font-weight: 700;
  margin: 28px 0 10px; color: var(--ink);
}
.post-body p {
  margin-bottom: 18px; line-height: 1.8; font-size: 1.05rem;
  color: #1f2937;
}
.post-body ul, .post-body ol {
  margin: 0 0 18px 24px; line-height: 1.8; font-size: 1.05rem;
}
.post-body li { margin-bottom: 6px; }
.post-body strong { font-weight: 700; }
.post-body em { font-style: italic; }
.post-body blockquote {
  border-left: 4px solid var(--red);
  margin: 24px 0; padding: 16px 20px;
  background: var(--red-light); border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic; color: var(--ink);
}
.post-body a { color: var(--red); }
.post-body img {
  border-radius: var(--radius); margin: 24px 0;
  box-shadow: var(--shadow);
}
.post-body hr {
  border: none; border-top: 1px solid var(--border); margin: 32px 0;
}

/* ── CTA strip inside posts ──────────────────────────────── */
.post-cta {
  background: linear-gradient(135deg, #1a1a2e, #0f3460);
  color: #fff; border-radius: 14px;
  padding: 32px; margin: 40px 0; text-align: center;
}
.post-cta h3 {
  font-family: var(--font-serif); font-size: 1.5rem;
  font-weight: 400; margin-bottom: 10px; color: #fff;
}
.post-cta p { opacity: .8; margin-bottom: 20px; font-size: 1rem; }
.post-cta .btn-primary { margin: 0 auto; }

/* ── Related posts ────────────────────────────────────────── */
.related-posts { background: var(--white); padding: 48px 0; border-top: 1px solid var(--border); }
.related-posts h2 {
  font-family: var(--font-serif); font-size: 1.6rem;
  font-weight: 400; margin-bottom: 24px;
}
.related-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px;
}
.related-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  text-decoration: none; color: var(--ink);
  transition: all .15s; box-shadow: var(--shadow);
}
.related-card:hover { border-color: var(--red); transform: translateY(-2px); text-decoration: none; }
.related-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.related-card .date { font-size: .8rem; color: var(--muted); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .site-logo { color: #ff8080; margin-bottom: 10px; display: block; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 300px; }
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 12px; font-size: .9rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.footer-col ul li a { color: rgba(255,255,255,.65); font-size: .85rem; }
.footer-col ul li a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px;
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px;
  font-size: .78rem; color: rgba(255,255,255,.4);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .post-hero { padding: 40px 0 32px; }
}
@media (max-width: 480px) {
  .post-hero h1 { font-size: 1.7rem; }
}
