/* ─────────────────────────────────────────
   VARIABLES & RESET
───────────────────────────────────────── */
:root {
  --dark:        #0d0d0d;
  --gray-mid:    #444444;
  --gray-soft:   #888888;
  --gray-bg:     #f4f4f4;
  --white:       #ffffff;
  --border:      rgba(0, 0, 0, 0.10);
  --ease:        all 0.35s cubic-bezier(.25,.8,.25,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: clip;
}

img { display: block; max-width: 100%; }

/* ─────────────────────────────────────────
   NAVBAR
───────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
  padding: 1.6rem 0;
  transition: var(--ease);
  background: transparent;
}

#navbar.scrolled {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--dark) !important;
  text-decoration: none;
  letter-spacing: -0.01em;
  line-height: 1.35;
  max-width: 200px;
}

.nav-brand small {
  display: block;
  font-weight: 400;
  font-size: 0.72rem;
  opacity: 0.55;
}

.nav-links { list-style: none; display: flex; align-items: center; gap: 0.3rem; }

.nav-links a {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 50px;
  transition: var(--ease);
}

.nav-links a:hover { background: rgba(255,255,255,0.15); }

.nav-links .btn-contact {
  background: var(--white);
  color: var(--dark) !important;
  padding: 0.55rem 1.4rem;
}

.nav-links .btn-contact:hover { background: rgba(255,255,255,0.85); }

/* Al hacer scroll: links oscuros sobre fondo blanco */
#navbar.scrolled .nav-links a {
  color: var(--dark);
}

#navbar.scrolled .nav-links a:hover { background: rgba(0,0,0,0.06); }

#navbar.scrolled .nav-links .btn-contact {
  background: var(--dark);
  color: var(--white) !important;
}

#navbar.scrolled .nav-links .btn-contact:hover { background: var(--gray-mid); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--ease);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
  border-top: 1px solid var(--border);
  position: absolute;
  top: 100%; left: 0; right: 0;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  text-decoration: none;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a:last-child { border-bottom: none; }

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gray-bg);
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 130px 5% 80px 5%;
}

.hero-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-soft);
  font-weight: 600;
  margin-bottom: 2rem;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--dark);
  margin-bottom: 1.4rem;
}

.hero-sub {
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--gray-mid);
  margin-bottom: 3rem;
  max-width: 360px;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-right {
  position: relative;
  overflow: hidden;
}

/* Gradiente oscuro en la parte superior de la imagen
   para dar contraste a los links del navbar */
.hero-right::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 220px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s ease;
}

.hero-right:hover img { transform: scale(1.04); }

.hero-badge {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 0.9rem 1.3rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--dark);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

/* ─────────────────────────────────────────
   BUTTONS
───────────────────────────────────────── */
.btn-dark-filled {
  display: inline-block;
  background: var(--dark);
  color: var(--white);
  text-decoration: none;
  border-radius: 50px;
  padding: 0.95rem 2.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--dark);
  transition: var(--ease);
}

.btn-dark-filled:hover {
  background: var(--gray-mid);
  border-color: var(--gray-mid);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.20);
}

.btn-dark-outline {
  display: inline-block;
  background: transparent;
  color: var(--dark);
  text-decoration: none;
  border-radius: 50px;
  padding: 0.95rem 2.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 2px solid var(--dark);
  transition: var(--ease);
}

.btn-dark-outline:hover {
  background: var(--dark);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* ─────────────────────────────────────────
   WHATSAPP FLOTANTE
───────────────────────────────────────── */
#whatsappBtn {
  position: fixed;
  bottom: 100px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 0.7rem 1.1rem 0.7rem 0.85rem;
  border-radius: 50px;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 700;
  transition: transform 0.22s, box-shadow 0.22s, max-width 0.3s;
  max-width: 56px;
  overflow: hidden;
  white-space: nowrap;
}
#whatsappBtn svg { width: 26px; height: 26px; flex-shrink: 0; }
#whatsappBtn .wa-label {
  opacity: 0;
  max-width: 0;
  transition: opacity 0.25s, max-width 0.3s;
  overflow: hidden;
}
#whatsappBtn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
  max-width: 320px;
}
#whatsappBtn:hover .wa-label { opacity: 1; max-width: 240px; }
@media (max-width: 576px) {
  #whatsappBtn { bottom: 84px; right: 16px; padding: 0.65rem 0.85rem; }
}

/* ─────────────────────────────────────────
   LICITACIONES — TAB LATERAL Y MODAL
───────────────────────────────────────── */
.licit-tab {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
}
.licit-tab-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--dark);
  color: #fff;
  border: none;
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.75rem 0.9rem 0.75rem 0.8rem;
  border-radius: 10px 0 0 10px;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  letter-spacing: 0.04em;
  transition: background 0.2s;
  box-shadow: -3px 0 16px rgba(0,0,0,0.18);
}
.licit-tab-btn i { font-size: 1rem; transform: rotate(180deg); }
.licit-tab-btn:hover { background: #333; }

.licit-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1040;
  backdrop-filter: blur(3px);
}
.licit-overlay.open { display: block; }

.licit-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -52%) scale(0.96);
  z-index: 1050;
  width: min(540px, 94vw);
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.licit-modal.open {
  display: block;
  animation: licitFadeIn 0.25s forwards;
}
@keyframes licitFadeIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.licit-modal-box {
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.licit-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.8rem 2rem 1.2rem;
  background: var(--dark);
  color: #fff;
}
.licit-modal-title { font-size: 1.15rem; font-weight: 800; margin: 0 0 0.2rem; }
.licit-modal-sub   { font-size: 0.8rem; opacity: 0.6; margin: 0; }
.licit-close {
  background: none; border: none; color: #fff;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  opacity: 0.7; padding: 0; margin-left: 1rem; flex-shrink: 0;
}
.licit-close:hover { opacity: 1; }
#licitForm { padding: 1.5rem 2rem 2rem; }
.licit-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.licit-fields textarea,
.licit-fields select { grid-column: 1 / -1; }
.licit-fields select.form-field { appearance: none; cursor: pointer; }
@media (max-width: 480px) {
  .licit-fields { grid-template-columns: 1fr; }
  #licitForm { padding: 1.2rem 1.2rem 1.5rem; }
  .licit-modal-header { padding: 1.4rem 1.2rem 1rem; }
}

/* ─────────────────────────────────────────
   TRUST BADGES
───────────────────────────────────────── */
.trust-badges {
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  padding: 1.4rem 0;
}
.trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.75rem 2rem;
}
.trust-badge--featured .trust-badge-icon {
  background: var(--dark);
  color: #fff;
}
.trust-badge--featured .trust-badge-org {
  color: var(--dark);
}
.trust-badge--featured .trust-badge-title {
  font-weight: 800;
  color: var(--dark);
}
.trust-badge-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--dark);
  flex-shrink: 0;
}
.trust-badge-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.trust-badge-org {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
}
.trust-badge-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.2;
}
.trust-badge-sub {
  font-size: 0.72rem;
  color: #888;
  line-height: 1.3;
}
.trust-badge-sep {
  width: 1px;
  height: 40px;
  background: #e0e0e0;
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .trust-badge { padding: 0.6rem 1rem; }
  .trust-badge-sep { display: none; }
}

/* ─────────────────────────────────────────
   STATS BAR
───────────────────────────────────────── */
.stats-bar {
  background: var(--dark);
  padding: 4rem 0;
}

.stat-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.stat-item { text-align: center; padding: 0 3rem; flex: 1; }

.stat-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.04em;
  line-height: 1;
  display: block;
}

.stat-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 0.5rem;
  display: block;
}

.stat-sep {
  width: 1px;
  height: 56px;
  background: rgba(255,255,255,0.15);
  flex-shrink: 0;
}

/* ─────────────────────────────────────────
   SECTION LABELS
───────────────────────────────────────── */
.label-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-soft);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--dark);
}

.section-lead {
  font-size: 1rem;
  line-height: 1.85;
  color: #5a5a5a;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */
#nosotros { padding: 120px 0 0; background: var(--white); }

.about-text { max-width: 600px; }

.about-fullimg {
  position: relative;
  width: 100%;
  height: 520px;
  overflow: hidden;
  margin-top: 90px;
}

.about-fullimg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.55);
  transition: transform 1.2s ease;
}

.about-fullimg:hover img { transform: scale(1.04); }

.play-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 76px; height: 76px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ease);
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.play-btn i { font-size: 1.9rem; color: var(--dark); margin-left: 5px; }

.play-btn:hover {
  transform: translate(-50%, -50%) scale(1.12);
  box-shadow: 0 16px 50px rgba(0,0,0,0.35);
}

/* ─────────────────────────────────────────
   SERVICES
───────────────────────────────────────── */
#servicios { padding: 120px 0; background: var(--gray-bg); }

.services-head { text-align: center; margin-bottom: 72px; }

.service-card {
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  height: 100%;
  transition: var(--ease);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 32px 64px rgba(0,0,0,0.11);
}

.service-card-imgwrap { overflow: hidden; height: 220px; }

.service-card-imgwrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.service-card:hover .service-card-imgwrap img { transform: scale(1.07); }

.service-card-body {
  padding: 2rem 2rem 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.service-num {
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gray-soft);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.28;
  color: var(--dark);
  margin-bottom: 1rem;
}

.service-text {
  font-size: 0.88rem;
  line-height: 1.75;
  color: #666;
  flex: 1;
}

.service-bullets {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.service-bullets li {
  font-size: 0.84rem;
  color: #555;
  padding: 0.4rem 0;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.service-bullets li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--dark);
  flex-shrink: 0;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
  text-decoration: none;
  margin-top: 1.5rem;
  transition: var(--ease);
}

.service-link:hover { gap: 1rem; color: var(--gray-mid); }

/* ─────────────────────────────────────────
   PARTNERS
───────────────────────────────────────── */
#socios { padding: 100px 0; background: var(--dark); }

.partners-head { text-align: center; margin-bottom: 64px; }

.partners-head .label-tag { color: rgba(255,255,255,0.4); }

.partners-head .section-title { color: var(--white); }

.partners-head .section-lead { color: rgba(255,255,255,0.5); }

.partners-grid {
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.partner-cell {
  padding: 3.2rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(255,255,255,0.10);
  transition: var(--ease);
  cursor: default;
}

.partner-cell:last-child { border-right: none; }

.partner-cell:hover { background: rgba(255,255,255,0.05); }

.partner-name {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--white);
  opacity: 0.22;
  transition: var(--ease);
  text-align: center;
}

.partner-cell:hover .partner-name { opacity: 1; }

.p-lightning::before {
  content: '⚡';
  font-style: normal;
  margin-right: 2px;
}

.p-boxed {
  display: inline-block;
  border: 2px solid currentColor;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 1rem;
}

/* ─────────────────────────────────────────
   CONTACT
───────────────────────────────────────── */
#contacto { padding: 120px 0 0; background: var(--gray-bg); }

.contact-icon-box {
  width: 46px; height: 46px;
  background: var(--dark);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box i { color: var(--white); font-size: 1.1rem; }

.contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gray-soft);
  font-weight: 700;
  display: block;
  margin-bottom: 0.2rem;
}

.contact-val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
}

.form-field {
  width: 100%;
  background: var(--white);
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  font-family: 'Inter', sans-serif;
  color: var(--dark);
  transition: var(--ease);
  outline: none;
}

.form-field:focus { border-color: var(--dark); }

.form-field.invalid { border-color: #e53e3e; }

textarea.form-field { resize: vertical; min-height: 140px; }

.field-error {
  display: block;
  font-size: 0.75rem;
  color: #e53e3e;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.form-alert {
  padding: 0.9rem 1.2rem;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}

.form-alert.success {
  background: #f0fff4;
  border: 1px solid #9ae6b4;
  color: #276749;
}

.form-alert.error {
  background: #fff5f5;
  border: 1px solid #feb2b2;
  color: #c53030;
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: var(--dark);
  padding: 3rem 0;
  margin-top: 90px;
}

.footer-brand {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.5;
  max-width: 220px;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.38);
}
.footer-dev {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.25rem;
}
.footer-dev a,
.footer-dev a:link,
.footer-dev a:visited {
  color: rgba(255,255,255,0.45) !important;
  text-decoration: none !important;
}
.footer-dev a:hover { color: rgba(255,255,255,0.8) !important; }

.social-btn {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--ease);
}

.social-btn:hover {
  background: var(--white);
  border-color: var(--white);
  color: var(--dark);
}

/* ─────────────────────────────────────────
   SCROLL TO TOP
───────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 46px; height: 46px;
  background: var(--dark);
  color: var(--white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  transition: var(--ease);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

#scrollTop:hover { transform: translateY(-4px); }

/* ─────────────────────────────────────────
   NOSOTROS — TABS MISIÓN/VISIÓN/VALORES
───────────────────────────────────────── */
.about-head { text-align: center; margin-bottom: 2.5rem; }

.about-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.about-tab {
  border: 2px solid #e0e0e0;
  background: #fff;
  color: #666;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.6rem;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.about-tab.active, .about-tab:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

.about-panels { position: relative; }
.about-panel  { display: none; }
.about-panel.active { display: block; }

.about-panel-content {
  background: #fff;
  border: 1.5px solid #e8e8e8;
  border-radius: 18px;
  padding: 2.5rem 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-panel-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  max-width: 820px;
  margin: 0 0 2rem;
}

/* Badges inline (Misión) */
.about-certs-inline {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  justify-content: center;
}
.aci-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--dark);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 10px;
  font-size: 0.78rem;
  line-height: 1.3;
}
.aci-badge i { font-size: 1.1rem; flex-shrink: 0; }
.aci-badge strong { font-size: 0.82rem; display: block; }

/* Grid Valores */
.valores-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
  text-align: left;
}
.valor-item { padding: 1.4rem; border: 1.5px solid #ebebeb; border-radius: 12px; text-align: left; }
.valor-icon {
  width: 42px; height: 42px;
  background: var(--dark); color: #fff;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: 0.8rem;
}
.valor-item h4 { font-size: 0.95rem; font-weight: 800; color: var(--dark); margin: 0 0 0.4rem; }
.valor-item p  { font-size: 0.83rem; color: #666; line-height: 1.6; margin: 0; }

@media (max-width: 768px) {
  .about-panel-content { padding: 1.5rem 1.2rem; }
  .valores-grid { grid-template-columns: 1fr; }
  .about-panel-text { font-size: 0.95rem; }
}

/* ─────────────────────────────────────────
   SERVICES TABS
───────────────────────────────────────── */
.srv-nav {
  display: flex;
  gap: 0;
  border: 1.5px solid #e0e0e0;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 40px;
  background: #fff;
}
.srv-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 1rem 0.75rem;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  transition: background 0.22s, color 0.22s;
  border-right: 1.5px solid #e0e0e0;
  text-align: center;
  line-height: 1.3;
}
.srv-tab:last-child { border-right: none; }
.srv-tab i { font-size: 1.05rem; flex-shrink: 0; }
.srv-tab.active {
  background: var(--dark);
  color: #fff;
}
.srv-tab:not(.active):hover { background: #f5f5f5; color: var(--dark); }

.srv-panels { position: relative; }
.srv-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #e8e8e8;
}
.srv-panel.active { display: grid; }

.srv-panel-img { overflow: hidden; max-height: 480px; }
.srv-panel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.srv-panel-body {
  padding: 3rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.1rem;
}
.srv-panel-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
}
.srv-panel-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--dark);
  line-height: 1.25;
  margin: 0;
}
.srv-panel-desc {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}
.srv-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.srv-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: #333;
  font-weight: 500;
}
.srv-panel-list li i { color: var(--dark); font-size: 1rem; margin-top: 1px; flex-shrink: 0; }

@media (max-width: 991px) {
  .srv-nav { flex-wrap: wrap; border-radius: 10px; }
  .srv-tab { flex: 1 1 50%; border-bottom: 1.5px solid #e0e0e0; font-size: 0.78rem; padding: 0.8rem 0.5rem; }
  .srv-tab:nth-child(2) { border-right: none; }
  .srv-tab:nth-child(3), .srv-tab:nth-child(4) { border-bottom: none; }
  .srv-tab:nth-child(3) { border-right: 1.5px solid #e0e0e0; }
  .srv-panel.active { grid-template-columns: 1fr; }
  .srv-panel-img { max-height: 260px; }
  .srv-panel-body { padding: 2rem 1.5rem; }
}
@media (max-width: 480px) {
  .srv-tab { flex: 1 1 100%; border-right: none !important; }
  .srv-tab:nth-child(3) { border-bottom: 1.5px solid #e0e0e0 !important; }
}

/* ─────────────────────────────────────────
   CERTIFICACIONES
───────────────────────────────────────── */
#certificaciones { background: var(--dark); }

/* — Bloque superior (oscuro) — */
.cert-hero {
  background: var(--dark);
  padding: 100px 0 80px;
}

.cert-lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
  max-width: 620px;
  margin: 1.5rem auto 0;
}

.cert-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 20px;
  padding: 2.4rem 2rem;
  height: 100%;
  transition: var(--ease);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: var(--ease);
}

.cert-card:hover {
  background: rgba(255,255,255,0.08);
  transform: translateY(-8px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.5);
}

.cert-card:hover::before { opacity: 1; }

.cert-icon-wrap {
  width: 56px; height: 56px;
  background: rgba(255,255,255,0.10);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.6rem;
  color: var(--white);
  transition: var(--ease);
}

.cert-card:hover .cert-icon-wrap {
  background: var(--white);
  color: var(--dark);
}

.cert-badge {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  margin-bottom: 0.75rem;
}

.cert-entity {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.cert-desc {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.75;
  margin: 0;
}

.cert-desc strong { color: rgba(255,255,255,0.85); }

/* — Bloque inferior (gris claro) — */
.cert-about {
  background: var(--gray-bg);
  padding: 100px 0;
}

.cert-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.92rem;
  color: #444;
  line-height: 1.5;
}

.cert-list li i {
  color: var(--dark);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.cert-list li strong { color: var(--dark); }

.cert-lema-box {
  background: var(--dark);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  position: relative;
  overflow: hidden;
}

.cert-lema-icon {
  font-size: 3rem;
  color: rgba(255,255,255,0.10);
  line-height: 1;
  margin-bottom: 1rem;
}

.cert-lema {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.35;
  color: var(--white);
  font-style: italic;
  border: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.cert-lema-sub {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin: 0;
}

/* ─────────────────────────────────────────
   ÁREAS DE ESPECIALIZACIÓN
───────────────────────────────────────── */
#areas {
  padding: 120px 0;
  background: var(--white);
}

.areas-head {
  margin-bottom: 72px;
}

.areas-intro {
  font-size: 1rem;
  line-height: 1.8;
  color: #5a5a5a;
  max-width: 580px;
  margin-top: 1.2rem;
}

.areas-list {
  border-top: 1px solid var(--border);
}

.area-item {
  display: grid;
  grid-template-columns: 80px 1fr 64px;
  align-items: center;
  gap: 2.5rem;
  padding: 3rem 0;
  transition: var(--ease);
}

.area-item:hover { background: var(--gray-bg); padding-left: 1.5rem; padding-right: 1.5rem; border-radius: 16px; }

.area-num {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: var(--dark);
  opacity: 0.10;
  line-height: 1;
  transition: var(--ease);
  flex-shrink: 0;
}

.area-item:hover .area-num { opacity: 0.35; }

.area-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--dark);
  margin-bottom: 0.3rem;
  line-height: 1.25;
}

.area-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-soft);
  margin-bottom: 0.9rem;
}

.area-text {
  font-size: 0.9rem;
  line-height: 1.75;
  color: #666;
  margin: 0;
  max-width: 680px;
}

.area-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--dark);
  opacity: 0.3;
  transition: var(--ease);
  flex-shrink: 0;
}

.area-item:hover .area-icon {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  opacity: 1;
}

.area-divider {
  height: 1px;
  background: var(--border);
}

/* ─────────────────────────────────────────
   DIVIDER
───────────────────────────────────────── */
.divider { height: 1px; background: var(--border); }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */
@media (max-width: 991px) {
  #hero { grid-template-columns: 1fr; }

  .hero-right { height: 55vh; }

  .hero-left { padding: 110px 1.5rem 60px; }

  .stat-wrap { flex-wrap: wrap; gap: 2rem 0; }

  .stat-sep { display: none; }

  .stat-item { flex: 0 0 50%; padding: 0 1.5rem; }

  .about-fullimg { height: 340px; }

  .area-item { grid-template-columns: 56px 1fr; }

  .area-icon { display: none; }

  .partners-grid { grid-template-columns: repeat(2, 1fr); }

  .partner-cell:nth-child(2) { border-right: none; }

  .partner-cell:nth-child(3) { border-top: 1px solid var(--border); }

  .partner-cell:nth-child(4) {
    border-right: none;
    border-top: 1px solid var(--border);
  }

  .hamburger { display: flex; }

  .nav-links { display: none; }

  #navbar .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 575px) {
  .hero-title { font-size: 2.6rem; }

  .stat-item { flex: 0 0 100%; }

  .stat-sep { display: none; }

  .about-fullimg { height: 260px; }

  .partners-grid { grid-template-columns: 1fr 1fr; }

  .hero-badge { display: none; }
}
