/* ==========================================================================
   InovaHR — estilos del sitio
   ========================================================================== */

:root {
  --navy: #1F3864;
  --navy-dark: #142544;
  --accent: #2CA6A4;
  --accent-dark: #21847F;
  --text: #2B2E33;
  --text-light: #5B6270;
  --bg: #FFFFFF;
  --bg-alt: #F4F6F9;
  --border: #E2E6EC;
  --radius: 10px;
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a { color: inherit; text-decoration: none; }

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

.container.narrow {
  max-width: 820px;
}

h1, h2, h3 { color: var(--navy); line-height: 1.25; }
h1 { font-size: clamp(2rem, 4vw, 2.75rem); margin: 0 0 16px; }
h2 { font-size: 1.7rem; margin: 40px 0 16px; }
h3 { font-size: 1.25rem; margin: 24px 0 10px; }

p { margin: 0 0 16px; }
.lead { font-size: 1.15rem; color: var(--text-light); }
.kicker {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-dark);
  margin: 0 0 8px;
}
.note { font-size: 0.9rem; color: var(--text-light); text-align: center; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-dark); }
.btn-secondary { background: var(--accent); color: #fff; }
.btn-secondary:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.cta-group { display: flex; gap: 14px; flex-wrap: wrap; margin: 20px 0; }

/* ---------------- Header ---------------- */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-logo { width: 42px; height: 42px; object-fit: contain; }
.brand-text { font-weight: 700; color: var(--navy); line-height: 1.15; font-size: 1rem; }
.brand-text small { font-weight: 400; color: var(--text-light); font-size: 0.7rem; letter-spacing: 1px; }

.main-nav ul {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav > ul > li { position: relative; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
  padding: 8px 2px;
}
.main-nav a:hover, .main-nav a.active { color: var(--accent-dark); }

.has-dropdown > a::after { content: " \\25BE"; font-size: 0.7em; }
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px;
  list-style: none;
  margin: 8px 0 0;
  box-shadow: 0 12px 24px rgba(20,37,68,0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all .15s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a { display: block; padding: 8px 10px; border-radius: 6px; font-weight: 500; }
.dropdown li a:hover { background: var(--bg-alt); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 26px; height: 2px; background: var(--navy); display: block; }

/* ---------------- Hero (home) ---------------- */
.hero {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(20,37,68,0.92), rgba(20,37,68,0.72));
}
.hero-content { position: relative; z-index: 1; padding: 100px 24px 90px; max-width: 720px; }
.hero-content .kicker { color: #9FD8D6; }
.hero-content h1 { color: #fff; }
.hero-content .lead { color: #E7ECF4; }

.page-hero.small-hero {
  background: var(--bg-alt);
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--border);
}

/* ---------------- Sections ---------------- */
.section { padding: 64px 0; }
.section:nth-of-type(even) { background: var(--bg-alt); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  margin-top: 32px;
}
.app-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: left;
}
.app-card img { border-radius: 8px; margin-bottom: 16px; width: 100%; height: 200px; object-fit: cover; background: var(--bg-alt); }
.app-card h3 { margin-top: 0; }

.services-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));
  gap: 12px;
}
.services-list li a {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 700;
  color: var(--navy);
}
.services-list li a:hover { border-color: var(--accent); color: var(--accent-dark); }

.highlight-box {
  margin-top: 24px;
  padding: 24px;
  background: var(--navy);
  border-radius: var(--radius);
}
.highlight-box h3 { margin: 0; }
.highlight-box h3 a { color: #fff; }

.service-block { padding: 28px 0; border-bottom: 1px solid var(--border); }
.service-block:last-child { border-bottom: none; }
.service-block h2 { margin-top: 0; }

.check-list { list-style: none; padding: 0; margin: 0 0 24px; }
.check-list li {
  padding: 10px 0 10px 30px;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.check-list li::before {
  content: "\\2713";
  position: absolute; left: 0; top: 10px;
  color: var(--accent-dark);
  font-weight: 700;
}

.content-image { border-radius: var(--radius); margin: 12px 0 28px; }

/* ---------------- Videos (Ley Karin) ---------------- */
.videos-section { background: var(--bg-alt); }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.video-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  padding-bottom: 4px;
}
.video-card video { width: 100%; display: block; background: #000; aspect-ratio: 16 / 9; }
.video-title { margin: 12px 14px; font-weight: 600; font-size: 0.95rem; color: var(--navy); }

/* ---------------- Blog ---------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  margin-top: 24px;
}
.blog-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.blog-card img { height: 200px; width: 100%; object-fit: cover; }
.blog-card h2 { font-size: 1.15rem; margin: 16px 18px 8px; }
.blog-card p { margin: 0 18px 16px; color: var(--text-light); }
.blog-meta { font-size: 0.85rem; color: var(--text-light); margin: 0 18px 18px; }
.breadcrumb { margin-bottom: 8px; }
.breadcrumb a { color: var(--accent-dark); font-weight: 600; }
.post-body h2 { font-size: 1.35rem; }
.post-body h3 { font-size: 1.1rem; }
.related-posts { padding-left: 20px; }

/* ---------------- Forms ---------------- */
.mini-contact { padding: 56px 0; background: var(--bg-alt); }
.mini-contact .container { max-width: 620px; }
.contact-form { margin-top: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
.form-success { color: var(--accent-dark); font-weight: 600; margin-top: 12px; }

.hours-table { border-collapse: collapse; width: 100%; margin: 20px 0 40px; }
.hours-table th, .hours-table td {
  text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--border);
}
.hours-table th { color: var(--navy); width: 50%; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--navy-dark); color: #C9D2E3; padding: 48px 0; margin-top: 40px; }
.footer-inner { text-align: center; }
.footer-logo { width: 56px; height: 56px; margin: 0 auto 12px; }
.site-footer h3 { color: #fff; margin: 0 0 16px; font-size: 1.1rem; }
.footer-contact { list-style: none; padding: 0; margin: 0 0 20px; display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-contact a { color: #C9D2E3; }
.footer-contact a:hover { color: #fff; }
.footer-copy { font-size: 0.8rem; color: #8792A8; margin: 0; }

/* ---------------- Responsive ---------------- */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 8px 24px 20px; }
  .main-nav > ul > li { border-bottom: 1px solid var(--border); }
  .dropdown {
    position: static; box-shadow: none; border: none; opacity: 1; visibility: visible; transform: none;
    display: none; padding-left: 12px;
  }
  .has-dropdown.open .dropdown { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .hero-content { padding: 72px 0 60px; }
}
