/* ============================================================
   Sitio web · Dra. Mireya Villalvazo
   Paleta de marca + tipografías Fraunces (títulos) + Inter (cuerpo)
   ============================================================ */

:root {
  --teal: #458998;
  --teal-dark: #2F6571;
  --gold: #DBAE58;
  --gold-dark: #c79a3f;
  --gold-text: #8B6914;
  --dark: #272D34;
  --offset: #F9F9F9;
  --tint-teal: #E8F1F3;
  --tint-gold: #FAF1DE;
  --gray-text: #5a6068;
  --alert: #8B2C2C;
  --alert-bg: #fdf4f4;
  --white: #ffffff;
  --border: rgba(39,45,52,0.08);
  --shadow: 0 4px 20px rgba(39,45,52,0.07);
  --shadow-lg: 0 10px 40px rgba(39,45,52,0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  line-height: 1.65;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  color: var(--dark);
}

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-dark); }

em { color: var(--teal); font-style: italic; }

img { max-width: 100%; display: block; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Fraunces', serif; font-weight: 600; font-size: 18px;
  border: 2px solid var(--gold);
}
.brand-text { line-height: 1.1; }
.brand-name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 17px; color: var(--dark); }
.brand-sub { font-size: 11px; color: var(--gray-text); letter-spacing: .3px; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { color: var(--dark); font-size: 15px; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-cta {
  background: var(--teal); color: #fff !important; padding: 10px 18px;
  border-radius: 999px; font-size: 14px !important; font-weight: 600;
}
.nav-cta:hover { background: var(--teal-dark); }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 26px; color: var(--dark);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 600; font-size: 16px; cursor: pointer; transition: all .2s ease;
  border: 2px solid transparent; text-align: center;
}
.btn-primary { background: var(--teal); color: #fff !important; }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--dark) !important; border-color: var(--gold-dark); }
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--teal) !important; border-color: var(--teal); }
.btn-outline:hover { background: var(--teal); color: #fff !important; }

/* ---------- Hero ---------- */
.hero {
  background: var(--dark); color: #fff; padding: 96px 0;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border-radius: 50%;
  background: radial-gradient(circle, rgba(69,137,152,.35), transparent 70%);
}
.hero-inner { max-width: 720px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.hero .pill {
  display: inline-block; background: rgba(219,174,88,.15); color: var(--gold);
  border: 1px solid rgba(219,174,88,.4); padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: .5px; margin-bottom: 24px;
}
.hero h1 { color: #fff; font-size: 48px; margin-bottom: 20px; }
.hero h1 em { color: var(--gold); }
.hero p { color: rgba(255,255,255,.82); font-size: 19px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section.alt { background: var(--offset); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.badge {
  display: inline-block; background: var(--tint-gold); color: var(--gold-text);
  padding: 6px 16px; border-radius: 999px; font-size: 12px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px;
}
.section-head h2 { font-size: 36px; margin-bottom: 14px; }
.section-head p { color: var(--gray-text); font-size: 18px; }
.gold-rule { width: 60px; height: 2px; background: var(--gold); margin: 18px auto 0; }

/* page hero (interior) */
.page-hero { background: var(--dark); color: #fff; padding: 72px 0; text-align: center; }
.page-hero h1 { color: #fff; font-size: 40px; }
.page-hero h1 em { color: var(--gold); }
.page-hero p { color: rgba(255,255,255,.8); font-size: 18px; margin-top: 12px; }
.page-hero .gold-rule { background: var(--gold); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--border);
  border-left: 3px solid var(--teal); border-radius: 12px;
  padding: 28px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon { font-size: 30px; margin-bottom: 14px; }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--gray-text); font-size: 15.5px; }

/* info boxes */
.box { border-radius: 12px; padding: 22px 24px; margin: 24px 0; }
.box-teal { background: var(--tint-teal); border: 1px solid var(--teal); }
.box-gold { background: var(--tint-gold); border: 1px solid var(--gold); }
.box-alert { background: var(--alert-bg); border: 1px solid var(--alert); }
.box h4 { margin-bottom: 8px; }
.box-alert h4 { color: var(--alert); }

/* ---------- About / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split .photo {
  background: linear-gradient(135deg, var(--tint-teal), var(--tint-gold));
  border-radius: 16px; aspect-ratio: 4/5; display: flex; align-items: center;
  justify-content: center; color: var(--teal-dark); font-family: 'Fraunces', serif;
  text-align: center; padding: 24px; border: 1px solid var(--border);
}
.split h2 { font-size: 34px; margin-bottom: 18px; }
.split p { color: var(--gray-text); margin-bottom: 16px; }
.cred-list { list-style: none; margin-top: 18px; }
.cred-list li { padding: 8px 0 8px 28px; position: relative; color: var(--dark); }
.cred-list li::before {
  content: "✓"; position: absolute; left: 0; color: var(--teal);
  font-weight: 700; background: var(--tint-teal); width: 20px; height: 20px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; top: 9px;
}

/* ---------- Course feature ---------- */
.course-feature {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #fff; border-radius: 20px; padding: 56px; text-align: center;
}
.course-feature .pill {
  display: inline-block; background: rgba(255,255,255,.15); color: var(--gold);
  border: 1px solid rgba(219,174,88,.5); padding: 6px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600; margin-bottom: 18px;
}
.course-feature h2 { color: #fff; font-size: 32px; margin-bottom: 14px; }
.course-feature h2 em { color: var(--gold); }
.course-feature p { color: rgba(255,255,255,.85); font-size: 18px; max-width: 620px; margin: 0 auto 28px; }

/* ---------- Blog ---------- */
.post-card {
  background: var(--white); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post-thumb {
  height: 160px; background: linear-gradient(135deg, var(--tint-teal), var(--tint-gold));
  display: flex; align-items: center; justify-content: center; font-size: 42px;
}
.post-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-tag { font-size: 12px; font-weight: 700; color: var(--gold-text); text-transform: uppercase; letter-spacing: .8px; }
.post-card h3 { font-size: 20px; margin: 8px 0 10px; }
.post-card p { color: var(--gray-text); font-size: 15px; flex: 1; }
.post-meta { font-size: 13px; color: var(--gray-text); margin-top: 16px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 24px; }
.contact-item {
  background: var(--white); border: 1px solid var(--border); border-left: 3px solid var(--gold);
  border-radius: 12px; padding: 24px; box-shadow: var(--shadow);
}
.contact-item .icon { font-size: 26px; margin-bottom: 10px; }
.contact-item h4 { margin-bottom: 6px; }
.contact-item p, .contact-item a { color: var(--gray-text); font-size: 15px; }

/* simple form */
.form { display: grid; gap: 16px; max-width: 560px; margin: 0 auto; }
.form label { font-weight: 600; font-size: 14px; }
.form input, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border);
  border-radius: 10px; font-family: inherit; font-size: 15px; background: var(--white);
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--teal); border-color: var(--teal); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; }
.site-footer a { color: rgba(255,255,255,.75); font-size: 15px; }
.site-footer a:hover { color: var(--gold); }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,.55);
}
.social { display: flex; gap: 14px; }
.social a { color: var(--gold); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; flex-direction: column; gap: 0; padding: 12px 24px 20px;
    border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; }
  .nav-toggle { display: block; }
  .grid-3, .grid-2, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .split { gap: 28px; }
  .hero h1 { font-size: 34px; }
  .hero p { font-size: 17px; }
  .section-head h2 { font-size: 28px; }
  .course-feature { padding: 36px 24px; }
  .page-hero h1 { font-size: 30px; }
  .footer-bottom { flex-direction: column; }
}
