/*
Theme Name: Dra. Rossy Quimbert
Theme URI: https://www.draquimbert.com.mx
Author: ZuardServer
Description: Tema personalizado para la Dra. Rossy Quimbert Montes, Cirujana Pediatra & Colorrectal Infantil Certificada.
Version: 1.0
Text Domain: draquimbert
*/

/* === VARIABLES === */
:root {
  --teal-50:   #E1F5EE;
  --teal-100:  #9FE1CB;
  --teal-400:  #1D9E75;
  --teal-600:  #0F6E56;
  --teal-800:  #085041;
  --teal-900:  #04342C;
  --coral-50:  #FAECE7;
  --coral-200: #F0997B;
  --coral-400: #D85A30;
  --coral-600: #993C1D;
  --amber-400: #EF9F27;
  --amber-600: #BA7517;
  --amber-800: #633806;
  --gray-50:   #F9F9F9;
  --gray-100:  #F1EFE8;
  --gray-900:  #2C2C2A;
  --text-primary:   #1a1a1a;
  --text-secondary: #555555;
  --text-muted:     #888888;
  --border:    rgba(0,0,0,0.09);
  --border-md: rgba(0,0,0,0.14);
  --white:     #ffffff;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 100px;
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  color: var(--text-primary);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === NAVIGATION === */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-logo-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal-600);
  letter-spacing: -0.3px;
}
.nav-logo-sub {
  font-size: 11px;
  color: var(--teal-400);
  font-weight: 400;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-menu a {
  font-size: 13px;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-menu a:hover { color: var(--teal-400); }
.nav-cta {
  font-size: 13px !important;
  color: var(--white) !important;
  background: var(--teal-400);
  padding: 9px 20px;
  border-radius: var(--radius-md);
  transition: background 0.2s !important;
}
.nav-cta:hover { background: var(--teal-600) !important; color: var(--white) !important; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}

/* === HERO === */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 560px;
  background: var(--white);
}
.hero-text {
  padding: 64px 48px 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  background: var(--teal-50);
  color: var(--teal-600);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
  width: fit-content;
  letter-spacing: 0.2px;
}
.hero-title {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.hero-title span { color: var(--teal-400); }
.hero-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.btn-primary {
  display: inline-block;
  background: var(--teal-400);
  color: var(--white);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--teal-600); color: var(--white); }
.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--teal-400);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid var(--teal-400);
  transition: all 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { background: var(--teal-50); }
.hero-ilu {
  background: var(--teal-50);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

/* === SECTION COMMONS === */
.section-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--teal-400);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}
.section-sub {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 520px;
}

/* === ABOUT === */
.about-section {
  background: var(--teal-50);
  padding: 80px 48px;
}
.about-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.about-text p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
}
.badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--teal-100);
  color: var(--teal-800);
}

/* === SERVICES === */
.services-section {
  background: var(--white);
  padding: 80px 48px;
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.service-card {
  background: var(--white);
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.service-card:hover {
  box-shadow: 0 4px 20px rgba(29,158,117,0.12);
  transform: translateY(-2px);
}
.service-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 14px;
  margin-bottom: 6px;
}
.service-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.service-link {
  display: inline-block;
  font-size: 12px;
  color: var(--teal-400);
  margin-top: 10px;
  font-weight: 500;
}
.service-link:hover { color: var(--teal-600); }

/* === QUOTE === */
.quote-section {
  background: var(--teal-800);
  padding: 80px 48px;
  text-align: center;
}
.quote-text {
  font-size: 20px;
  font-weight: 500;
  color: var(--teal-100);
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto 14px;
  font-style: italic;
}
.quote-attr {
  font-size: 13px;
  color: var(--teal-400);
  font-weight: 500;
}

/* === CTA / CONTACT === */
.cta-section {
  background: var(--white);
  padding: 80px 48px;
  text-align: center;
}
.cta-section .section-sub { margin: 0 auto; }
.cta-btn-wrap { margin: 28px 0 32px; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}
.contact-card {
  border: 0.5px solid var(--border-md);
  border-radius: var(--radius-lg);
  padding: 20px 16px;
  text-align: center;
  background: var(--gray-50);
  transition: border-color 0.2s;
}
.contact-card:hover { border-color: var(--teal-400); }
.contact-icon {
  font-size: 22px;
  color: var(--teal-400);
  margin-bottom: 6px;
}
.contact-label {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 3px;
}
.contact-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

/* === BLOG SECTION (front page) === */
.blog-preview-section {
  background: var(--gray-100);
  padding: 80px 48px;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.post-card {
  background: var(--white);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.post-card-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.post-card-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.4;
}
.post-card-title a:hover { color: var(--teal-400); }
.post-card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}
.post-card-more {
  display: inline-block;
  font-size: 12px;
  color: var(--teal-400);
  font-weight: 500;
  margin-top: 12px;
}
.section-footer-link {
  text-align: center;
  margin-top: 32px;
}

/* === INNER PAGE HEADER === */
.page-header {
  background: var(--teal-50);
  padding: 48px 48px 40px;
  border-bottom: 0.5px solid var(--border);
}
.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
}

/* === INNER CONTENT === */
.inner-content {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 48px;
}
.inner-content h2 { font-size: 22px; font-weight: 700; margin: 32px 0 12px; }
.inner-content h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.inner-content p { font-size: 15px; line-height: 1.75; margin-bottom: 16px; color: var(--text-secondary); }
.inner-content ul { margin: 12px 0 16px 20px; list-style: disc; }
.inner-content ul li { font-size: 15px; line-height: 1.7; color: var(--text-secondary); margin-bottom: 6px; }

/* === SINGLE POST === */
.post-meta { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.post-content { font-size: 15px; line-height: 1.8; color: var(--text-secondary); }
.post-content h2 { font-size: 22px; font-weight: 700; color: var(--text-primary); margin: 32px 0 12px; }
.post-content p { margin-bottom: 18px; }
.post-content img { border-radius: var(--radius-lg); margin: 24px 0; }
.post-nav { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 24px; border-top: 0.5px solid var(--border); gap: 16px; }
.post-nav a { font-size: 13px; color: var(--teal-400); font-weight: 500; }

/* === FOOTER === */
.site-footer {
  background: var(--teal-900);
  padding: 32px 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-left { font-size: 13px; color: var(--teal-100); }
.footer-right { font-size: 11px; color: var(--teal-400); }
.footer-social { display: flex; gap: 16px; }
.footer-social a { font-size: 16px; color: var(--teal-100); transition: color 0.2s; }
.footer-social a:hover { color: var(--white); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .site-nav { padding: 14px 24px; }
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--white); padding: 20px 24px; border-bottom: 0.5px solid var(--border); gap: 16px; z-index: 99; }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-ilu { display: none; }
  .hero-text { padding: 48px 24px; }
  .hero-title { font-size: 26px; }
  .about-section, .services-section, .quote-section, .cta-section, .blog-preview-section { padding: 56px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .posts-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; max-width: 280px; }
  .section-title { font-size: 22px; }
  .site-footer { padding: 24px; flex-direction: column; text-align: center; }
  .page-header, .inner-content { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; }
}
