/*
Theme Name: ACF Salud
Theme URI: https://assistedcarefacilities.net
Description: Tema dedicado al cuidado integral de personas mayores
Version: 1.0
Author: ACF Team
Text Domain: acf-salud
*/

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

:root {
  --cream: #FDF6EC;
  --blue: #5B8DB8;
  --blue-light: #e8f0f7;
  --green: #7BAE7F;
  --green-light: #e6f2e7;
  --text: #3A3A3A;
  --text-light: #6B6B6B;
  --white: #FFFFFF;
  --shadow: 0 2px 12px rgba(0,0,0,0.06);
  --radius: 12px;
}

html { font-size: 19px; scroll-behavior: smooth; }

body {
  font-family: 'Libre Baskerville', Georgia, serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
}

h1 { font-size: 2.4rem; margin-bottom: 0.6em; }
h2 { font-size: 1.8rem; margin-bottom: 0.5em; }
h3 { font-size: 1.4rem; margin-bottom: 0.4em; }

p { margin-bottom: 1.2em; }

a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

img { max-width: 100%; height: auto; display: block; border-radius: var(--radius); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ── */
.site-header {
  background: var(--white);
  border-bottom: 3px solid var(--blue-light);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-logo {
  font-family: 'Quicksand', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue);
}

.site-logo span { color: var(--green); }

.main-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; }

.main-nav a {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.3rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

/* ── Hero ── */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 5rem 0;
  text-align: center;
  color: var(--white);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(91,141,184,0.82), rgba(123,174,127,0.72));
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; }

.hero h1 { color: var(--white); font-size: 2.8rem; margin-bottom: 0.5em; }

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 2rem;
  opacity: 0.95;
  line-height: 1.7;
}

.btn {
  display: inline-block;
  font-family: 'Quicksand', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  border: none;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { color: var(--white); background: #6a9e6e; }

.btn-secondary { background: var(--white); color: var(--blue); }
.btn-secondary:hover { color: var(--blue); }

/* ── Sections ── */
.section { padding: 4rem 0; }
.section-alt { background: var(--white); }

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  color: var(--blue);
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--green);
  margin: 0.8rem auto 0;
  border-radius: 2px;
}

/* ── Services Grid ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(0,0,0,0.1);
}

.service-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.service-card h3 { color: var(--blue); }

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: var(--cream);
  border-left: 4px solid var(--green);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.testimonial p {
  font-style: italic;
  margin-bottom: 0.8em;
}

.testimonial cite {
  font-family: 'Quicksand', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: var(--blue);
}

/* ── Blog / Articles ── */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}

.post-card:hover { transform: translateY(-3px); }

.post-card img { width: 100%; height: 220px; object-fit: cover; border-radius: 0; }

.post-card-body { padding: 1.5rem; }

.post-card-body h3 { font-size: 1.2rem; }

.post-card-body h3 a { color: var(--text); }
.post-card-body h3 a:hover { color: var(--blue); }

.post-meta {
  font-family: 'Quicksand', sans-serif;
  font-size: 0.85rem;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* ── Single Post ── */
.single-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.single-content h1 { color: var(--blue); }

.single-content h2 {
  color: var(--blue);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--blue-light);
}

.single-content h3 { color: var(--green); margin-top: 1.5rem; }

.single-content ul, .single-content ol {
  margin: 0.8em 0 1.2em 1.5em;
  line-height: 1.9;
}

.single-content li { margin-bottom: 0.4em; }

.single-content blockquote {
  border-left: 4px solid var(--green);
  background: var(--green-light);
  padding: 1.2rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.featured-img {
  margin-bottom: 2rem;
  border-radius: var(--radius);
  overflow: hidden;
}

.featured-img img { border-radius: 0; width: 100%; }

/* ── Contact ── */
.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.contact-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.contact-card .icon { font-size: 2.2rem; margin-bottom: 0.8rem; }

/* ── Footer ── */
.site-footer {
  background: var(--blue);
  color: var(--white);
  padding: 2.5rem 0;
  text-align: center;
  font-family: 'Quicksand', sans-serif;
}

.site-footer a { color: var(--cream); }
.site-footer a:hover { color: var(--white); }

.footer-nav { display: flex; justify-content: center; gap: 1.5rem; margin-bottom: 1rem; flex-wrap: wrap; }

.footer-nav a { font-size: 0.95rem; }

.footer-copy { font-size: 0.85rem; opacity: 0.85; }

/* ── Responsive ── */
@media (max-width: 768px) {
  html { font-size: 17px; }
  .hero { padding: 3rem 0; }
  .hero h1 { font-size: 2rem; }
  .section { padding: 2.5rem 0; }
  .site-header .container { justify-content: center; text-align: center; }
  .main-nav { justify-content: center; }
}

@media (max-width: 480px) {
  html { font-size: 16px; }
  .hero h1 { font-size: 1.6rem; }
  .main-nav { gap: 1rem; }
}
