/* Sitio Dr. José Ventura-León — paleta original GoDaddy (#ba987b) */
:root {
  --bronze: #ba987b;
  --bronze-dark: #9c7a5d;
  --dark: #2b2520;
  --ink: #3a322b;
  --cream: #f7f3ee;
  --white: #ffffff;
  --muted: #7a6f64;
  --radius: 12px;
  --shadow: 0 2px 14px rgba(43, 37, 32, .08);
  --font-head: "Playfair Display", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: var(--bronze-dark); }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--dark); line-height: 1.25; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(186, 152, 123, .25);
}
.header-inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 22px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: relative;
}
.brand {
  font-family: var(--font-head); font-size: 1.45rem; font-weight: 700;
  color: var(--dark); text-decoration: none; white-space: nowrap;
  text-align: center;
}
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; justify-content: center; }
.site-nav a {
  text-decoration: none; color: var(--ink); font-size: .92rem;
  padding: 7px 11px; border-radius: 7px; transition: background .15s;
}
.site-nav a:hover { background: rgba(186, 152, 123, .15); }
.site-nav a.active { background: var(--bronze); color: #fff; }
.nav-toggle { display: none; position: absolute; right: 18px; top: 14px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--dark); margin: 5px 0; transition: .2s; }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; gap: 0;
    padding: 8px 0 4px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 10px; border-bottom: 1px solid rgba(186,152,123,.12); }
}

/* ---------- hero (con efecto Ken Burns) ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 62vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 90px 22px;
}
.hero-small { min-height: 32vh; padding: 64px 22px; }
.hero-bg {
  position: absolute; inset: -2%;
  background-size: cover; background-position: center;
  animation: kenburns 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.14) translate(1.6%, -1.2%); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(rgba(34, 28, 22, .55), rgba(34, 28, 22, .65));
}
.hero-content { position: relative; z-index: 1; }
.hero-content h1 {
  color: #fff; font-size: clamp(2rem, 5vw, 3.4rem); margin-bottom: 14px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, .45);
  animation: hero-rise .9s ease-out both;
}
.hero-content p {
  color: rgba(255, 255, 255, .92); font-size: clamp(1.02rem, 2.2vw, 1.3rem);
  max-width: 720px; margin: 0 auto 26px;
  animation: hero-rise .9s ease-out .25s both;
}
.hero-content .btn { animation: hero-rise .9s ease-out .5s both; }
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg, .hero-content h1, .hero-content p, .hero-content .btn { animation: none; }
}

/* ---------- secciones ---------- */
.content-section { padding: 64px 0; }
.content-section.alt { background: #efe7dd; }
.content-section.center { text-align: center; }
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-align: center; margin-bottom: 38px;
  position: relative;
}
.section-title::after {
  content: ""; display: block; width: 64px; height: 3px;
  background: var(--bronze); margin: 14px auto 0; border-radius: 2px;
}
.intro { max-width: 860px; margin: 0 auto 36px; text-align: center; color: var(--muted); }

.quote-banner {
  background: var(--dark); padding: 70px 0; text-align: center;
}
.quote-banner blockquote {
  font-family: var(--font-head); font-style: italic; color: var(--cream);
  font-size: clamp(1.3rem, 3vw, 2rem); max-width: 880px; margin: 0 auto;
}

/* ---------- botones ---------- */
.btn {
  display: inline-block; background: var(--bronze); color: #fff;
  text-decoration: none; padding: 11px 26px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--bronze-dark); transform: translateY(-1px); }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--cream); }
.btn-big { font-size: 1.05rem; padding: 14px 32px; }

/* ---------- redes ---------- */
.social-icons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.social-icons a {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--bronze); color: #fff; display: flex;
  align-items: center; justify-content: center; transition: background .15s, transform .15s;
}
.social-icons a:hover { background: var(--bronze-dark); transform: translateY(-2px); }
.social-icons svg { width: 24px; height: 24px; }
.social-big a { width: 62px; height: 62px; }
.social-big svg { width: 28px; height: 28px; }

/* ---------- tarjetas genericas ---------- */
.about-grid, .post-grid, .dl-grid, .person-grid, .video-grid {
  display: grid; gap: 24px;
}
.about-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.post-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.dl-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.person-grid { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.video-grid { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.about-card, .dl-card, .person-card, .video-card, .link-card, .feature-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px;
}
.about-card h3 { margin-bottom: 10px; font-size: 1.2rem; }

/* descargas */
.dl-card { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.dl-card h3 { font-size: 1.06rem; font-family: var(--font-body); font-weight: 600; flex: 1; }
.dl-card .btn { align-self: stretch; text-align: center; }
.dl-badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: 4px 10px; border-radius: 6px; color: #fff; background: var(--muted);
}
.dl-docx { background: #2b5797; }
.dl-xlsx { background: #1e7145; }
.dl-pdf { background: #b3392f; }

/* publicaciones / link cards */
.post-card, .link-card {
  display: block; text-decoration: none; color: var(--ink);
  overflow: hidden; padding: 0; transition: transform .15s, box-shadow .15s;
}
.post-card:hover, .link-card:hover { transform: translateY(-3px); box-shadow: 0 6px 22px rgba(43,37,32,.14); }
.post-thumb { height: 170px; background-size: cover; background-position: center; }
.post-card-body, .link-card { padding: 22px; }
.link-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.post-card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.post-date { font-size: .82rem; color: var(--muted); display: block; margin-bottom: 8px; }
.post-more { color: var(--bronze-dark); font-weight: 600; font-size: .9rem; }

/* equipo */
.person-card { text-align: center; }
.person-card img {
  width: 168px; height: 168px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 16px; border: 4px solid var(--cream);
}
.person-card h3 { margin-bottom: 10px; font-size: 1.18rem; }
.person-card p { font-size: .92rem; color: var(--muted); text-align: left; }

/* videos */
.video-card { padding: 0; overflow: hidden; }
.video-wrap { position: relative; padding-top: 56.25%; background: #000; }
.video-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-card h3 { padding: 16px 20px 0; font-size: 1.08rem; }
.video-card p { padding: 8px 20px 20px; font-size: .92rem; color: var(--muted); }

/* feature (BifactorCalc) */
.feature-card { display: grid; grid-template-columns: minmax(220px, 380px) 1fr; gap: 30px; align-items: center; }
.feature-card img { border-radius: 8px; }
.feature-card h3 { font-size: 1.5rem; margin-bottom: 10px; }
.feature-card p { margin-bottom: 12px; }
@media (max-width: 760px) { .feature-card { grid-template-columns: 1fr; } }

/* contacto */
.contact-box {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 720px; margin: 0 auto; padding: 42px 34px;
}
.contact-box h3 { margin-bottom: 12px; }
.contact-box p { margin-bottom: 18px; }
.contact-box .nota { font-size: .88rem; color: var(--muted); margin-top: 22px; margin-bottom: 0; }

/* formulario */
.form-box { text-align: left; }
.form-box h3 { text-align: center; margin-bottom: 24px; }
.form-field { margin-bottom: 18px; }
.form-field label {
  display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px;
  color: var(--dark);
}
.form-field input, .form-field textarea {
  width: 100%; padding: 11px 14px; font: inherit; color: var(--ink);
  border: 1px solid rgba(186, 152, 123, .45); border-radius: 8px;
  background: var(--cream); transition: border-color .15s, box-shadow .15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--bronze);
  box-shadow: 0 0 0 3px rgba(186, 152, 123, .2); background: #fff;
}
#form-asesoria button { border: 0; cursor: pointer; width: 100%; margin-top: 6px; }
#form-asesoria button:disabled { opacity: .6; cursor: wait; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.form-status { margin-top: 14px; text-align: center; min-height: 1.4em; }
.form-status.ok { color: #1e7145; font-weight: 600; }
.form-status.err { color: #b3392f; font-weight: 600; }

/* widgets embebidos (cursos / contador) */
.widget-section-full { padding: 30px 0; }
.widget-embed { max-width: 1120px; margin: 0 auto; padding: 0 12px; overflow-x: auto; }
.page-pad { height: 26px; }

/* blog post */
.post-body {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  max-width: 840px; margin: 0 auto; padding: 46px clamp(22px, 5vw, 56px);
}
.post-body h2, .post-body h3 { margin: 28px 0 12px; }
.post-body p { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 26px; }
.post-body blockquote {
  border-left: 4px solid var(--bronze); padding: 8px 18px; margin: 18px 0;
  background: var(--cream); font-style: italic;
}
.post-body figure { margin: 22px 0; }
.post-body img { border-radius: 8px; margin: 0 auto; }
.post-featured { border-radius: 8px; margin-bottom: 26px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--dark); color: rgba(255, 255, 255, .85);
  text-align: center; padding: 46px 22px 38px; margin-top: 0;
}
.footer-social { margin-bottom: 22px; }
.footer-social a { background: rgba(255, 255, 255, .12); }
.footer-social a:hover { background: var(--bronze); }
.site-footer p { font-size: .9rem; }
.footer-contact a { color: var(--bronze); text-decoration: none; }
