/* ============================================================
   CENAMED — Hoja de estilos principal
   Stack: Nginx + PHP | Sin WordPress
   ============================================================ */

/* ── Variables ─────────────────────────────────────────── */
:root {
  --primary:     #16b7cc;
  --primary-dk:  #0d9ab0;
  --pink:        #e91e8c;
  --dark:        #1c006a;
  --dark2:       #35008f;
  --text:        #555;
  --text-light:  #888;
  --bg-light:    #f8f9fa;
  --border:      #e5e5e5;
  --white:       #fff;
  --radius:      6px;
  --shadow:      0 2px 12px rgba(0,0,0,.1);
  --transition:  .3s ease;
  --container:   1200px;
  --font-main:   'Outfit', sans-serif;
  --font-body:   'Inter', sans-serif;
}

/* ── Reset / Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dk); }
ul { list-style: none; }

/* ── Container / Layout ────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* ── Typography utilities ──────────────────────────────── */
.txt-pink    { color: var(--pink); }
.txt-primary { color: var(--primary); }

.section-title {
  text-align: center;
  font-family: var(--font-main);
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: var(--dark);
}
.section-heading {
  text-align: center;
  margin-bottom: 48px;
}
.section-heading h3 {
  font-family: var(--font-main);
  font-size: 1.7rem;
  color: var(--dark);
  margin-top: 8px;
}
.section-heading .section-tag {
  font-size: .85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--primary);
  font-weight: 600;
}
.section-heading p { margin-top: 12px; max-width: 700px; margin-left: auto; margin-right: auto; }
.heading-white h3, .heading-white p { color: var(--white); }
.highlight      { color: var(--primary); }
.highlight-white{ color: var(--white); }
.section-subtitle {
  text-align: center;
  font-style: italic;
  font-weight: 400;
  font-size: 1.3rem;
  padding: 32px 0;
  color: var(--dark);
}

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--radius);
  font-family: var(--font-main);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-dk);
  border-color: var(--primary-dk);
  color: var(--white);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}
.btn-sm { padding: 6px 16px; font-size: .82rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* ── Topbar ────────────────────────────────────────────── */
.topbar {
  background: var(--dark);
  color: rgba(255,255,255,.75);
  font-size: .82rem;
  padding: 6px 0;
}
.topbar-inner {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}
.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.topbar-item .fa { color: var(--primary); }
.topbar-label { color: rgba(255,255,255,.5); margin-right: 4px; }
.topbar-item a { color: rgba(255,255,255,.9); }
.topbar-item a:hover { color: var(--primary); }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,.15); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.logo img { display: block; max-height: 58px; width: auto; }

/* Nav */
.main-nav { display: flex; align-items: center; }
.nav-list  { display: flex; gap: 4px; }
.nav-list a {
  display: block;
  padding: 6px 14px;
  font-family: var(--font-main);
  font-size: .97rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--primary);
  background: rgba(22,183,204,.08);
}

.header-right { display: flex; align-items: center; gap: 12px; }

.search-toggle, .hamburger {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--dark);
  font-size: 1.1rem;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition);
}
.search-toggle:hover, .hamburger:hover { color: var(--primary); }

/* Hamburger lines */
.hamburger { flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: currentColor;
  transition: all var(--transition);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.hamburger { display: none; }

/* Search overlay */
.search-overlay {
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  padding: 20px 0;
  display: none;
  z-index: 999;
}
.search-overlay.open { display: block; }
.search-form { display: flex; gap: 8px; align-items: center; max-width: 600px; }
.search-form input {
  flex: 1; height: 44px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 0 16px;
  font-size: 1rem;
  outline: none;
}
.search-form button {
  height: 44px; padding: 0 20px;
  background: var(--primary); color: var(--white);
  border: none; border-radius: var(--radius);
  cursor: pointer; font-size: 1rem;
}
.search-close {
  background: none; border: none;
  font-size: 1.3rem; cursor: pointer;
  margin-left: 12px; color: var(--text);
}

/* ── Slider ────────────────────────────────────────────── */
.hero-slider {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
}
.heroSwiper  { width: 100%; height: 480px; }
.swiper-slide {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.swiper-button-prev,
.swiper-button-next {
  --swiper-navigation-color: #fff;
  background: rgba(255,255,255,.25);
  border-radius: 50%;
  width: 46px; height: 46px;
  backdrop-filter: blur(4px);
}
.swiper-button-prev:hover,
.swiper-button-next:hover { background: var(--primary); }
.swiper-button-prev::after,
.swiper-button-next::after { font-size: 1rem; font-weight: 700; }
.swiper-pagination-bullet-active { background: var(--primary) !important; }

/* ── Carrusel paquetes/exámenes ───────────────────────── */
.carrusel-section { padding: 40px 0; background: var(--bg-light); }
.carrusel-grid {
  display: flex;
  flex-wrap: wrap;
  column-gap: 16px;
  row-gap: 30px;
}
.carrusel-card {
  flex: 0 0 calc(33.333% - 12px);
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 16px rgba(28,0,106,.09);
  border: 1px solid rgba(28,0,106,.07);
  display: flex;
  flex-direction: column;
  transition: transform .22s, box-shadow .22s;
}
.carrusel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(28,0,106,.15);
}
.carrusel-card img { width: 100%; height: 160px; object-fit: cover; }
.carrusel-card-title {
  background: #1c006a;
  color: var(--white);
  text-align: center;
  padding: 10px 12px;
  font-weight: 600;
  font-size: .87rem;
  letter-spacing: .3px;
}
.carrusel-card-price {
  background: #fff;
  color: #1c006a;
  border-top: 1px solid #ede7f6;
  text-align: right;
  padding: 8px 14px;
  font-size: 1.1rem;
  font-weight: 700;
}
.carrusel-card-price del { color: #bbb; font-size: .9rem; margin-right: 8px; }
.carrusel-card-price .new-price { color: #c62828; }
.carrusel-card-body {
  background: #ede7f6;
  color: #1c006a;
  padding: 10px;
  font-size: .85rem;
  flex: 1;
}
.carrusel-card-body ul { list-style: disc; padding-left: 16px; min-height: 100px; }
.carrusel-card-vigencia {
  font-size: .75rem;
  text-align: center;
  padding: 4px;
}
.carrusel-card-utilidad {
  background: #faf8ff;
  color: #3d2070;
  border-top: 1px solid #ede7f6;
  padding: 12px 14px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .4px;
  line-height: 1.6;
  text-transform: uppercase;
  flex: 1;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.loading-msg { width: 100%; text-align: center; padding: 40px; color: var(--text-light); }

/* ── Info bar ──────────────────────────────────────────── */
.info-bar { padding: 40px 0; background: var(--white); }
.info-list {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}
.info-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 220px;
  max-width: 300px;
}
.info-icon {
  width: 48px; height: 48px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}
.info-label { display: block; font-size: .8rem; color: var(--text-light); }
.info-value  { display: block; font-weight: 600; color: var(--dark); font-size: .9rem; }
.info-value a { color: var(--dark); }
.info-value a:hover { color: var(--primary); }

/* ── Services ──────────────────────────────────────────── */
.services-section { padding: 72px 0; }
.services-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.service-card {
  flex: 0 0 calc(33.333% - 18px);
  min-width: 220px;
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 90px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.service-icon { font-size: 1.8rem; flex-shrink: 0; }
.service-card h5 { font-family: var(--font-main); font-size: .95rem; }
.service-card h5 a { color: var(--dark); }
.service-card h5 a:hover { color: var(--primary); }

/* ── Features ──────────────────────────────────────────── */
.features-section {
  padding: 72px 0;
  background: var(--primary);
}
.features-section .section-heading h3,
.features-section .section-heading p { color: var(--white); }
.features-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
.feature-item {
  flex: 0 0 calc(33.333% - 18px);
  min-width: 220px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.feature-icon {
  width: 44px; height: 44px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.feature-item h5 { color: var(--white); font-family: var(--font-main); margin-bottom: 6px; }
.feature-item p  { color: rgba(255,255,255,.8); font-size: .9rem; }

/* ── CTA ───────────────────────────────────────────────── */
.cta-section {
  padding: 60px 0;
  background: var(--bg-light);
  box-shadow: inset 0 2px 0 var(--border);
}
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-text h4 { font-family: var(--font-main); font-size: 1.3rem; color: var(--dark); }
.cta-text h4 em { color: var(--primary); font-style: normal; }
.cta-text p  { color: var(--text-light); margin-top: 6px; }

/* ── Blog grid ─────────────────────────────────────────── */
.blog-section { padding: 72px 0; }
.blog-listing  { padding: 60px 0; }
.blog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}
.blog-card {
  flex: 0 0 calc(33.333% - 18px);
  min-width: 260px;
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.blog-card-img   { display: block; overflow: hidden; }
.blog-card-img img { width: 100%; height: 200px; object-fit: cover; transition: transform .4s; }
.blog-card:hover .blog-card-img img { transform: scale(1.04); }
.blog-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; gap: 10px; }
.blog-date { font-size: .8rem; color: var(--text-light); }
.blog-card-body h2, .blog-card-body h5 {
  font-family: var(--font-main);
  font-size: 1rem;
  line-height: 1.4;
}
.blog-card-body h2 a,
.blog-card-body h5 a { color: var(--dark); }
.blog-card-body h2 a:hover,
.blog-card-body h5 a:hover { color: var(--primary); }
.blog-card-body p { font-size: .88rem; color: var(--text); flex: 1; }

/* ── Page header ───────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 100%);
  color: var(--white);
  padding: 48px 0 36px;
  margin-bottom: 0;
}
.page-header h1 {
  font-family: var(--font-main);
  font-size: 2rem;
  margin-bottom: 8px;
}
.breadcrumb {
  font-size: .85rem;
  color: rgba(255,255,255,.65);
}
.breadcrumb a { color: var(--primary); }

/* ── Page content (genérico) ───────────────────────────── */
.page-content { padding: 60px 0; }
.content-narrow { max-width: 800px; }
.content-narrow h2 {
  font-family: var(--font-main);
  font-size: 1.6rem;
  color: var(--dark);
  margin: 32px 0 12px;
}
.content-narrow h3 {
  font-family: var(--font-main);
  font-size: 1.2rem;
  color: var(--dark);
  margin: 32px 0 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.content-narrow p  { margin-bottom: 16px; }
.content-narrow ul,
.content-narrow ol { margin: 0 0 16px 20px; list-style: disc; }
.content-narrow li { margin-bottom: 6px; }
.content-spacer    { height: 40px; }
hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── Login ─────────────────────────────────────────────── */
.login-section { padding: 80px 0; background: var(--bg-light); }
.login-box {
  max-width: 440px;
  margin: 0 auto;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 48px 40px;
  text-align: center;
}
.login-icon {
  width: 72px; height: 72px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 2rem;
  margin: 0 auto 24px;
}
.login-box h2 {
  font-family: var(--font-main);
  font-size: 1.4rem;
  color: var(--dark);
  margin-bottom: 8px;
}
.login-desc { color: var(--text-light); font-size: .9rem; margin-bottom: 28px; }
.login-form .form-group { text-align: left; margin-bottom: 18px; }
.login-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }

/* ── Contact ───────────────────────────────────────────── */
.contact-section { padding: 60px 0; }
.contact-grid {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: flex-start;
}
.contact-info { flex: 1 1 320px; }
.contact-info h3 { font-family: var(--font-main); font-size: 1.3rem; margin-bottom: 20px; color: var(--dark); }
.contact-detail-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .92rem;
}
.contact-detail-list .fa { color: var(--primary); width: 18px; text-align: center; margin-top: 3px; }
.contact-detail-list a { color: var(--dark); }
.contact-detail-list a:hover { color: var(--primary); }
.map-wrap { margin-top: 24px; border-radius: 8px; overflow: hidden; }

.contact-form-wrap { flex: 1 1 400px; }
.contact-form-wrap h3 { font-family: var(--font-main); font-size: 1.3rem; margin-bottom: 24px; color: var(--dark); }
.contact-form .form-group { margin-bottom: 18px; }
.contact-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition);
  outline: none;
}
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--primary); }
.contact-form textarea { resize: vertical; min-height: 120px; }

.form-message { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; }
.form-ok  { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.form-err { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

/* ── Examenes ──────────────────────────────────────────── */
.examenes-section { padding: 48px 0; }
.examenes-search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  max-width: 520px;
}
.search-input {
  flex: 1;
  height: 44px;
  padding: 0 14px;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  font-size: .95rem;
  outline: none;
}
.examenes-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.tab-btn {
  padding: 8px 20px;
  border: 2px solid var(--primary);
  border-radius: 24px;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-main);
  font-size: .85rem;
  transition: all var(--transition);
}
.tab-btn:hover, .tab-btn.active {
  background: var(--primary);
  color: var(--white);
}

/* ── Post (single) ─────────────────────────────────────── */
.post-section { padding: 60px 0; }
.post-layout {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}
.post-content { flex: 1 1 0; min-width: 0; }
.post-sidebar { flex: 0 0 280px; }
.post-meta { font-size: .85rem; color: var(--text-light); margin-bottom: 20px; }
.post-featured-img { border-radius: 8px; overflow: hidden; margin-bottom: 28px; }
.post-featured-img img { width: 100%; max-height: 400px; object-fit: cover; }
.post-body h2, .post-body h3, .post-body h4, .post-body h5 {
  font-family: var(--font-main);
  color: var(--dark);
  margin: 28px 0 12px;
}
.post-body p   { margin-bottom: 16px; }
.post-body ul, .post-body ol { margin: 0 0 16px 20px; }
.post-body li  { margin-bottom: 6px; }
.post-body blockquote {
  border-left: 4px solid var(--primary);
  padding: 16px 20px;
  background: var(--bg-light);
  border-radius: 0 8px 8px 0;
  margin: 24px 0;
}
.post-body .post-img-right { float: right; margin: 0 0 20px 24px; }
.post-body .post-img-left  { float: left;  margin: 0 24px 20px 0; }
.post-body::after { content: ''; display: table; clear: both; }
.post-nav { margin-top: 40px; }

.sidebar-widget {
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}
.sidebar-widget h4 {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--dark);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary);
}
.sidebar-post { padding: 10px 0; border-bottom: 1px solid var(--border); }
.sidebar-post:last-child { border-bottom: none; }
.sidebar-post a { color: var(--dark); font-size: .88rem; font-weight: 600; display: block; }
.sidebar-post a:hover { color: var(--primary); }
.sidebar-post span { font-size: .78rem; color: var(--text-light); }
.sidebar-cta { background: var(--primary); }
.sidebar-cta h4 { color: var(--white); border-color: rgba(255,255,255,.3); }
.sidebar-cta p  { color: rgba(255,255,255,.85); font-size: .88rem; margin-bottom: 14px; }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { background: var(--dark); color: rgba(255,255,255,.75); }
.footer-main { padding: 64px 0 40px; }
.footer-cols {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-col { flex: 1 1 200px; min-width: 180px; }
.footer-logo { margin-bottom: 16px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-main);
  font-size: 1rem;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary);
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,.7);
  font-size: .88rem;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul a:hover { color: var(--primary); }
.footer-col ul .fa { color: var(--primary); font-size: .85rem; }
.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .88rem;
  padding: 4px 0;
}
.footer-contact .fa { color: var(--primary); margin-top: 3px; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--primary); }
.footer-post { padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-post a { color: rgba(255,255,255,.8); font-size: .86rem; display: block; margin-bottom: 2px; }
.footer-post a:hover { color: var(--primary); }
.footer-post span { font-size: .75rem; color: rgba(255,255,255,.4); }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 0;
  font-size: .82rem;
  display: flex;
}
.footer-copy .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}
.footer-copy a { color: var(--primary); }

/* ── Scroll to top ─────────────────────────────────────── */
.scrollup {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 42px; height: 42px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(22,183,204,.4);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 500;
}
.scrollup.visible { opacity: 1; transform: translateY(0); }
.scrollup:hover   { background: var(--primary-dk); }

/* ── Form utils ────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; color: var(--dark); }
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .carrusel-card { flex-basis: calc(50% - 10px); }
  .blog-card     { flex-basis: calc(50% - 14px); }
}

@media (max-width: 768px) {
  .hamburger    { display: flex; }
  .main-nav {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  .main-nav.open { display: flex; }
  .nav-list { flex-direction: column; align-items: center; gap: 8px; }
  .nav-list a { font-size: 1.2rem; padding: 12px 28px; }

  .heroSwiper { height: 260px; }

  .carrusel-card { flex-basis: 100%; }
  .services-grid { flex-direction: column; }
  .service-card  { flex-basis: 100%; }
  .features-grid { flex-direction: column; }
  .feature-item  { flex-basis: 100%; }
  .cta-inner     { flex-direction: column; align-items: flex-start; }
  .blog-card     { flex-basis: 100%; }
  .info-list     { flex-direction: column; gap: 24px; }

  .contact-grid  { flex-direction: column; }
  .post-layout   { flex-direction: column; }
  .post-sidebar  { flex-basis: 100%; }

  .footer-cols   { flex-direction: column; gap: 32px; }
  .footer-copy .container { flex-direction: column; }

  .topbar-inner  { flex-direction: column; gap: 4px; }
}

@media (max-width: 480px) {
  .header-inner { height: 60px; }
  .logo img     { max-height: 46px; }
  .page-header h1 { font-size: 1.4rem; }
  .login-box    { padding: 32px 20px; }
}
