/* =========================================
   TMH Consultores — Estilos principales
   Rediseño 2025
   ========================================= */

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

:root {
  --blue:        #1565C0;
  --blue-dark:   #0B2449;
  --blue-light:  #E3F2FD;
  --blue-bg:     #F0F7FF;
  --white:       #ffffff;
  --gray-50:     #F9FAFB;
  --gray-100:    #F3F4F6;
  --gray-200:    #E5E7EB;
  --text:        #111827;
  --text-sec:    #6B7280;
  --font:        'Inter', system-ui, sans-serif;
  --radius:      16px;
  --radius-sm:   10px;
  --shadow:      0 4px 24px rgba(11, 36, 73, 0.08);
  --shadow-lg:   0 12px 40px rgba(11, 36, 73, 0.14);
  --transition:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---- Utilities ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

.btn-primary:hover {
  background: #0d47a1;
  border-color: #0d47a1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.35);
}

.btn-outline-blue {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue);
}

.btn-outline-blue:hover {
  background: var(--blue-light);
  transform: translateY(-2px);
}

.btn-light-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

.btn-light-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

.btn-full { width: 100%; }

/* ---- Section tags ---- */
.section-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
  border: 1px solid #BBDEFB;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);
}

.section-head {
  margin-bottom: 52px;
  max-width: 640px;
}

.section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Reveal animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay {
  transition-delay: 0.15s;
}

/* =========================================
   NAVBAR
   ========================================= */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200);
  transition: box-shadow var(--transition);
}

#navbar.scrolled {
  box-shadow: 0 4px 20px rgba(11, 36, 73, 0.10);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 40px;
  width: auto;
  border-radius: 7px;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-sec);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 7px 13px;
  border-radius: 8px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--blue);
  background: var(--blue-light);
}

.nav-separator {
  width: 1px;
  height: 20px;
  background: var(--gray-200);
  margin: 0 6px;
}

.nav-dashboard {
  color: var(--blue) !important;
  background: var(--blue-bg) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

.nav-dashboard:hover {
  background: var(--blue-light) !important;
}

.nav-btn {
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: 999px !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}

.nav-btn:hover {
  background: #0d47a1 !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(21,101,192,0.3) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* =========================================
   HERO
   ========================================= */
#hero {
  padding: 112px 0 80px;
  background: radial-gradient(ellipse at 75% 40%, #E8F1FF 0%, var(--white) 62%);
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 68px);
  max-height: 860px;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.hero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-light);
  padding: 6px 14px;
  border-radius: 999px;
  align-self: flex-start;
}

#hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}

.hero-highlight {
  color: var(--blue);
}

.hero-p {
  font-size: 1.05rem;
  color: var(--text-sec);
  line-height: 1.7;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-props {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 24px;
  margin-top: 4px;
}

.hero-prop {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.prop-check {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Hero right — visual preview */
.hero-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Hero Card (servicios) ── */
.hero-card {
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
  border-radius: 28px;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 28px 70px rgba(11, 36, 73, 0.30);
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
  bottom: -150px; right: -90px;
  pointer-events: none;
}

.hero-card::after {
  content: '';
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  top: -80px; left: -60px;
  pointer-events: none;
}

.hero-card-logo {
  width: 160px;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  padding: 8px 14px;
  background: white;
  position: relative;
}

.hero-card-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  text-align: center;
  position: relative;
}

.hero-card-sub {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.5);
  text-align: center;
  letter-spacing: 0.04em;
  position: relative;
}

.hero-card-services {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 6px;
  position: relative;
}

.hcs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.83rem;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
  transition: background var(--transition);
}

.hcs-item:hover {
  background: rgba(255,255,255,0.16);
}

.hcs-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.hero-card-location {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.35);
  position: relative;
  margin-top: 4px;
}

/* =========================================
   SERVICIOS
   ========================================= */
#servicios {
  padding: 96px 0;
  background: var(--white);
}

.services-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.svc-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: var(--transition);
}

.svc-card {
  cursor: pointer;
}
.svc-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.svc-card.active {
  border-color: var(--blue);
  background: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(21,101,192,.15);
  transform: translateY(-4px);
}

/* ── Servicio: panel de detalle dinámico ── */
.svc-detail-wrap {
  margin-top: 40px;
  border-radius: var(--radius);
  overflow: hidden;
}
.svc-detail {
  display: none;
  grid-template-columns: 1fr 340px;
  gap: 0;
  background: var(--blue-dark);
  border-radius: var(--radius);
  overflow: hidden;
  animation: fadePanel .3s ease;
}
.svc-detail.active { display: grid; }
@keyframes fadePanel { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.svc-detail-text {
  padding: 44px 48px;
  color: var(--white);
}
.svc-detail-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 14px;
}
.svc-detail-text p {
  font-size: 0.92rem;
  opacity: 0.85;
  line-height: 1.7;
  margin-bottom: 22px;
}
.svc-detail-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.svc-detail-list li {
  font-size: 0.88rem;
  opacity: 0.9;
  padding-left: 22px;
  position: relative;
}
.svc-detail-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #64B5F6;
  font-weight: 700;
}
.btn-svc-detail {
  display: inline-block;
  background: white;
  color: var(--blue-dark);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: var(--transition);
}
.btn-svc-detail:hover { background: var(--blue-light); }
.svc-detail-visual {
  min-height: 280px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
}
.svc-detail-visual--health::after  { content: '🏥'; }
.svc-detail-visual--shield::after  { content: '🦺'; }
.svc-detail-visual--star::after    { content: '⭐'; }
.svc-detail-visual--chart::after   { content: '📊'; }
.svc-detail-visual--people::after  { content: '👨‍⚕️'; }
@media(max-width:768px){
  .svc-detail { grid-template-columns: 1fr; }
  .svc-detail-visual { display: none; }
  .svc-detail-text { padding: 28px 20px; }
}

.svc-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.svc-icon svg {
  width: 28px;
  height: 28px;
}

.svc-icon--health  { background: #E3F2FD; }
.svc-icon--shield  { background: #E8F5E9; }
.svc-icon--star    { background: #FFF8E1; }
.svc-icon--chart   { background: #F3E5F5; }
.svc-icon--people  { background: #E0F2F1; }

.svc-icon--shield svg  path { fill: #388E3C; }
.svc-icon--star svg    path { fill: #F57C00; }
.svc-icon--chart svg   rect,
.svc-icon--chart svg   path { fill: #7B1FA2; }
.svc-icon--people svg  circle,
.svc-icon--people svg  path  { fill: #00796B; }

.svc-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.35;
}

.svc-card p {
  font-size: 0.85rem;
  color: var(--text-sec);
  line-height: 1.6;
  flex: 1;
}

.svc-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: var(--transition);
  align-self: flex-start;
}

.svc-link:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* =========================================
   FEATURE SECTIONS
   ========================================= */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 96px 0;
}

.feature-grid--reverse {
  direction: rtl;
}

.feature-grid--reverse > * {
  direction: ltr;
}

/* Feature 1 — Navy */
.feature-navy {
  background: var(--blue-dark);
  overflow: hidden;
}

.feature-navy .feature-text h3 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.3;
}

.feature-navy .feature-text p {
  color: rgba(255,255,255,0.72);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(255,255,255,0.85);
  font-size: 0.92rem;
  line-height: 1.5;
}

.feature-list li::before {
  content: '';
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='9' fill='%2390CAF9'/%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='%231565C0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

/* Feature 2 — White */
.feature-white {
  background: var(--white);
}

.feature-title-dark {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-sub-dark {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.feature-list--dark li {
  color: var(--text);
}

.feature-list--dark li::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='9' cy='9' r='9' fill='%23E3F2FD'/%3E%3Cpath d='M4.5 9l3 3 6-6' stroke='%231565C0' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Stats card inside navy feature */
.stats-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 4px;
}

.stats-card-inner {
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%);
  border-radius: 12px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.stat-item {
  padding: 24px 0;
  text-align: center;
}

.stat-item .stat-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.stat-item .stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  height: 1px;
  background: rgba(255,255,255,0.10);
}

/* Professionals card (Feature 2 right) */
.professionals-card {
  background: var(--blue-bg);
  border: 1px solid var(--blue-light);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
}

.prof-card-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue);
  margin-bottom: 28px;
}

.prof-avatars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}

.prof-avatar {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 20px 12px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.prof-avatar:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.prof-emoji {
  font-size: 2rem;
  line-height: 1;
}

.prof-role {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
}

.prof-card-badge {
  font-size: 0.8rem;
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  padding: 6px 18px;
  display: inline-block;
  font-weight: 600;
}

/* =========================================
   MISIÓN / VISIÓN
   ========================================= */
.section-mv {
  padding: 80px 0;
  background: var(--blue-bg);
}
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}
.mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.mv-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  box-shadow: 0 6px 20px rgba(21, 101, 192, 0.12);
}
.mv-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 12px;
}
.mv-card p {
  font-size: 0.95rem;
  color: var(--text-sec);
  line-height: 1.75;
}
@media(max-width:768px){ .mv-grid { grid-template-columns: 1fr; } }

/* =========================================
   ¿POR QUÉ ELEGIRNOS?
   ========================================= */
.section-why {
  background: var(--gray-50);
  padding: 96px 0;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.why-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
}

.why-card:hover {
  border-color: var(--blue);
  border-top-color: var(--blue);
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
}

.why-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.why-card p {
  font-size: 0.85rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* =========================================
   STATS BAR
   ========================================= */
.stats-bar {
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding: 56px 0;
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.sbar-item {
  text-align: center;
  padding: 24px 20px;
  border-right: 1px solid var(--gray-200);
}

.sbar-item:last-child {
  border-right: none;
}

.sbar-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.sbar-label {
  font-size: 0.82rem;
  color: var(--text-sec);
  font-weight: 500;
}

/* =========================================
   CONTACTO
   ========================================= */
.section-contact {
  background: var(--blue-dark);
  padding: 96px 0;
  overflow: hidden;
  position: relative;
}

.section-contact::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  bottom: -250px; left: -150px;
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.contact-info h2 {
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 14px;
}

.contact-sub {
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  margin-bottom: 40px;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon-wrap {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-item-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.45);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-item-val {
  display: block;
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
  word-break: break-all;
}

.contact-item-val:hover { color: #90CAF9; }

/* Form wrapper */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.2);
}

.form-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-sec);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

/* =========================================
   FOOTER
   ========================================= */
#footer {
  background: #0a1628;
  padding: 64px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-logo-img {
  height: 38px;
  width: auto;
  border-radius: 7px;
  background: white;
  padding: 3px 10px;
  display: block;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.7;
  max-width: 280px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(21, 101, 192, 0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--blue);
  transform: translateY(-2px);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul a {
  font-size: 0.87rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 20px 24px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.28);
}

.admin-link {
  text-decoration: none;
  color: rgba(255,255,255,0.15);
  font-size: 0.75rem;
  transition: color var(--transition);
  margin-left: 6px;
}

.admin-link:hover {
  color: rgba(255,255,255,0.35);
}

/* =========================================
   ANIMATIONS
   ========================================= */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   RESPONSIVE — 1100px
   ========================================= */
@media (max-width: 1100px) {
  .services-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* =========================================
   RESPONSIVE — 900px
   ========================================= */
@media (max-width: 900px) {
  .hero-container {
    grid-template-columns: 1fr;
    max-height: none;
    padding: 24px 0 48px;
    gap: 40px;
  }

  .hero-right {
    order: -1;
  }

  .hero-card {
    max-width: 300px;
    padding: 36px 28px;
  }

  #hero {
    padding: 96px 0 60px;
  }

  .hero-left {
    gap: 22px;
    text-align: center;
    align-items: center;
  }

  .hero-tag {
    align-self: center;
  }

  .hero-p {
    margin: 0 auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-props {
    text-align: left;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    padding: 72px 0;
    gap: 40px;
  }

  .feature-grid--reverse {
    direction: ltr;
  }

  .services-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .stats-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .sbar-item:nth-child(2) {
    border-right: none;
  }

  .sbar-item:nth-child(3) {
    border-right: 1px solid var(--gray-200);
    border-top: 1px solid var(--gray-200);
  }

  .sbar-item:nth-child(4) {
    border-right: none;
    border-top: 1px solid var(--gray-200);
  }
}

/* =========================================
   RESPONSIVE — 768px (mobile)
   ========================================= */
@media (max-width: 768px) {
  /* Nav mobile */
  .nav-links {
    display: none;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    box-shadow: 0 12px 40px rgba(11,36,73,0.12);
    border-top: 1px solid var(--gray-200);
    gap: 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
  }

  .nav-separator {
    width: 100%;
    height: 1px;
    margin: 6px 0;
  }

  .nav-dashboard,
  .nav-btn {
    border-radius: 8px !important;
  }

  .nav-toggle {
    display: flex;
  }

  /* Sections */
  #servicios,
  .section-why,
  .stats-bar,
  .section-contact {
    padding: 64px 0;
  }

  .services-row {
    grid-template-columns: 1fr;
  }

  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .section-head {
    margin-bottom: 36px;
  }

  .hero-props {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-wrap {
    padding: 28px 20px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-brand {
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
  }

  .prof-avatars {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =========================================
   RESPONSIVE — 480px
   ========================================= */
@media (max-width: 480px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .stats-bar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-grid {
    padding: 56px 0;
  }

  .contact-form-wrap {
    padding: 24px 16px;
  }

  .section-contact {
    padding: 64px 0 56px;
  }
}

/* =========================================
   NOVEDADES
   ========================================= */
.section-novedades {
  padding: 96px 0 80px;
  background: var(--gray-50);
}

.novedades-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 380px));
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
}

.novedad-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.novedad-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.novedad-img-wrap {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}

.novedad-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.novedad-card:hover .novedad-img {
  transform: scale(1.02);
}

/* Lightbox */
.novedad-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.novedad-lightbox.open {
  display: flex;
}

.novedad-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 8px 48px rgba(0,0,0,.5);
  object-fit: contain;
}

.novedad-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  background: rgba(255,255,255,.15);
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.novedad-lightbox-close:hover {
  background: rgba(255,255,255,.3);
}

.novedad-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--blue);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
}

.novedad-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.novedad-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue);
}

.novedad-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-dark);
  line-height: 1.35;
}

.novedad-desc {
  font-size: .88rem;
  color: var(--text-sec);
  line-height: 1.6;
}

.novedad-link {
  display: inline-block;
  margin-top: 6px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  transition: gap var(--transition);
}

.novedad-link:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .novedades-grid {
    grid-template-columns: 1fr;
  }
}
