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

/* ── VARIABLES ── */
:root {
  --navy:         #275ba8;
  --navy-mid:     #0f2040;
  --navy-light:   #162d55;
  --accent:       #e63946;
  --accent-dark:  #c1121f;
  --accent-glow:  rgba(230, 57, 70, 0.22);
  --sky:          #125e90;
  --sky-dark:     #0f5d94;
  --sky-light:    #e6f3fb;
  --white:        #ffffff;
  --off-white:    #f5f7fa;
  --surface:      #ffffff;
  --surface-2:    #f0f4f9;
  --border:       rgba(20, 50, 100, 0.1);
  --border-dark:  rgba(255,255,255,0.08);
  --text:         #0d1b30;
  --text-soft:    #4a5e7a;
  --text-muted:   #8898b0;
  --text-inv:     rgba(255,255,255,0.85);
  --text-inv-soft:rgba(255,255,255,0.55);
  --radius:       8px;
  --radius-lg:    16px;
  --radius-xl:    24px;
  --gray-light:   #e2e8f0;
  --gray-mid:     #94a3b8;
  --shadow-sm:    0 2px 8px rgba(10,22,40,0.08);
  --shadow-md:    0 6px 24px rgba(10,22,40,0.12);
  --shadow-lg:    0 16px 48px rgba(10,22,40,0.18);
  --ease:         cubic-bezier(0.4,0,0.2,1);
}

/* ── BASE ── */
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); overflow-x: hidden; background: var(--off-white); }
img  { max-width: 100%; display: block; }
a    { color: inherit; }

/* ══ TOP BAR ══ */
.top-bar {
  background: var(--navy);
  color: var(--text-inv-soft);
  font-size: 11.5px;
  padding: 0 32px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--border-dark);
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar-left span { white-space: nowrap; transition: color 0.2s; }
.top-bar-left span:hover { color: var(--white); }

.top-bar-social { display: flex; align-items: center; gap: 4px; flex-shrink: 0; }

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid #fff; /* contorno blanco */
}

.social-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: #fff; /* ícono blanco por defecto */
}

/* Hover: colores oficiales */
.social-icon[aria-label="Facebook"]:hover {
  background: #1877f2;   /* azul Facebook */
  border-color: #1877f2;
}
.social-icon[aria-label="Facebook"]:hover svg {
  fill: #fff;
}

.social-icon[aria-label="Instagram"]:hover {
  background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); /* degradado Instagram */
  border-color: #dc2743;
}
.social-icon[aria-label="Instagram"]:hover svg {
  fill: #fff;
}

.social-icon[aria-label="TikTok"]:hover {
  background: #000; /* negro TikTok */
  border-color: #000;
}
.social-icon[aria-label="TikTok"]:hover svg {
  fill: #fff;
}

.social-icon[aria-label="X (Twitter)"]:hover {
  background: #000; /* negro X */
  border-color: #000;
}
.social-icon[aria-label="X (Twitter)"]:hover svg {
  fill: #fff;
}


/* ══ HEADER ══ */
.site-header {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  height: 72px;
  gap: 20px;
}

.logo-block { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo-img   { height: 52px; width: auto; }
.footer-logo { height: 44px; }

.logo-text {
  font-family: 'Rajdhani', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f2040;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  line-height: 1.1;
}

.logo-sub {
  font-size: 9px;
  color: #0f2040;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-top: 2px;
}

.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none; border-radius: var(--radius);
  background: var(--navy); color: var(--white);
  font-size: 20px; cursor: pointer;
  align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: auto;
}

.main-nav { display: flex; align-items: center; gap: 2px; }

.main-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: none;
  padding: 8px 15px;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  position: relative;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; right: 50%;
  height: 2px;
  background: var(--accent);
  border-radius: 1px;
  transition: left 0.25s var(--ease), right 0.25s var(--ease);
}

.main-nav a:hover { color: var(--navy); background: var(--off-white); }
.main-nav a:hover::after  { left: 15px; right: 15px; }
.main-nav a.active { color: var(--accent); font-weight: 600; }
.main-nav a.active::after { left: 15px; right: 15px; background: var(--accent); }

/* ══ PAGE ══ */
.page {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 48px 32px 80px;
}

.page-hero {
  text-align: center;
  padding: 72px 20px 48px;
  margin-bottom: 52px;
  position: relative;
}

.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 56px; height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

.page-hero h1 {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.0;
}

.page-hero p {
  margin-top: 16px;
  color: var(--text-soft);
  font-size: clamp(15px, 2vw, 17px);
  max-width: 540px;
  margin-left: auto; margin-right: auto;
  line-height: 1.65;
}

/* ── Labels & Titles ── */
.section-label, .about-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.about-label.center, .section-label.center { display: block; text-align: center; }

.section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(26px, 3.5vw, 42px);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin-bottom: 36px;
}
.section-title.center { text-align: center; }

/* ── Grid & Cards ── */
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.service-card,
.product-card,
.contact-card,
.about-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}

/* ══ FOOTER ══ */
.site-footer {
  background: #144589;
  color: var(--text-inv-soft);
  border-top: 1px solid rgba(255,255,255,0.04);
}

.footer-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 64px 32px 40px;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 48px;
}

.footer-brand .logo-text { color: var(--white); font-size: 17px; }
.footer-brand p { font-size: 13px; line-height: 1.75; margin-top: 14px; color: var(--text-inv-soft); max-width: 280px; }

.footer-col h4 {
  font-family: 'Rajdhani', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.footer-col a {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-inv-soft);
  text-decoration: none;
  margin-bottom: 11px;
  transition: color 0.2s, padding-left 0.2s;
  padding-left: 0;
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 8px;
}

.footer-accent { color: var(--accent); font-weight: 600; }

/* ══ SCROLL TO TOP ══ */
.scroll-top {
  position: fixed;
  bottom: 32px; right: 32px;
  z-index: 999;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent); border: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px var(--accent-glow);
  opacity: 0; transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s;
}
.scroll-top svg    { width: 20px; height: 20px; color: #fff; }
.scroll-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.scroll-top:hover  { background: var(--accent-dark); transform: translateY(-3px); }

/* ══ WHATSAPP ══ */
.whatsapp-float {
  position: fixed;
  bottom: 88px; right: 26px;
  z-index: 999;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  opacity: 0;
  transform: scale(0.7) translateY(16px);
  pointer-events: none;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.whatsapp-float svg { width: 28px; height: 28px; color: #fff; display: block; }
.whatsapp-float.visible { opacity: 1; transform: scale(1) translateY(0); pointer-events: auto; }
.whatsapp-float:hover   { background: #1ebe5d; transform: scale(1.06) translateY(-2px); }

.wa-tooltip {
  position: absolute;
  right: 66px; top: 50%;
  transform: translateY(-50%);
  background: var(--navy); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius);
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  pointer-events: none; opacity: 0;
  transition: opacity 0.2s;
}
.wa-tooltip::after {
  content: '';
  position: absolute;
  right: -6px; top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right: none;
  border-left-color: var(--navy);
}
.whatsapp-float:hover .wa-tooltip { opacity: 1; }

.whatsapp-float.visible::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background: rgba(37,211,102,0.3);
  animation: wa-pulse 2.2s ease-out infinite;
  pointer-events: none;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.65); opacity: 0;   }
  100% { transform: scale(1.65); opacity: 0;   }
}

/* ══ RESPONSIVE ══ */
@media (max-width: 960px) {
  .header-inner  { padding: 0 20px; height: 64px; }
  .grid-cards    { grid-template-columns: repeat(2, 1fr); }
  .footer-inner  { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 20px 32px; }
  .footer-brand  { grid-column: 1 / -1; }
}
.nav-empleados {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  transition: all 0.3s;
  margin-left: 20px;
}

.empleados-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 2px solid white;
  color: white;
  transition: all 0.3s ease;
  text-decoration: none;
}

.empleados-social:hover {
  background: white;
  color: var(--sky);
  transform: scale(1.1);
}
@media (max-width: 640px) {
  .top-bar     { height: auto; padding: 8px 16px; flex-direction: column; gap: 6px; }
  .top-bar-left { justify-content: center; gap: 8px 14px; font-size: 10.5px; }
  .header-inner { padding: 0 16px; height: 60px; }
  .logo-img    { height: 44px; }
  .logo-text   { font-size: 15px; }
  .logo-sub    { font-size: 8px; }
  .menu-toggle { display: flex; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px 16px 16px;
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 200;
  }
  .main-nav.open { display: flex; }
  .main-nav a { text-align: center; padding: 11px 16px; font-size: 15px; }
  .main-nav a::after { display: none; }
  .page      { padding: 28px 16px 60px; }
  .page-hero { padding: 40px 16px 28px; }
  .grid-cards { grid-template-columns: 1fr; gap: 14px; }
  .footer-inner  { grid-template-columns: 1fr; padding: 40px 16px 24px; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; padding: 16px; }
  .scroll-top     { bottom: 24px; right: 16px; width: 40px; height: 40px; }
  .whatsapp-float { bottom: 76px; right: 14px; width: 50px; height: 50px; }
  .wa-tooltip     { display: none; }
}
