:root {
  --it-blue: #008fb5;
  --laser-red: #ff2424;
  --dark: #1a1a2e;
  --light: #f5f6fa;
  --white: #ffffff;
  --text: #2d3436;
  --text-muted: #636e72;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --radius: 10px;
  --transition: 0.25s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

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

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

/* ── Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar-logo img {
  height: 44px;
  width: auto;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.navbar-links a {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 2px;
  color: var(--text);
  transition: color var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--it-blue);
  transition: width var(--transition);
}

.navbar-links a:hover {
  color: var(--it-blue);
}

.navbar-links a:hover::after {
  width: 100%;
}

/* Hover rojo exclusivo para 3D & Laser y About Us (solicitado para index, itSupport, portfolio y contact) */
.navbar-links a[href*="3dLaser"]:hover,
.navbar-links a[href*="aboutUs"]:hover {
  color: #ff2424;
}

.navbar-links a[href*="3dLaser"]:hover::after,
.navbar-links a[href*="aboutUs"]:hover::after {
  background: #ff2424;
}

.btn-get-quote {
  background: var(--it-blue);
  cursor:pointer;
  color: var(--white);
  border: 2px solid var(--it-blue);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 3px 10px rgba(0, 143, 181, 0.35);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.btn-get-quote:hover {
  background: #ff2424;
  border-color: #ff2424;
  cursor:pointer;
  box-shadow: 0 5px 16px rgba(255, 36, 36, 0.55), 0 3px 10px rgba(255, 36, 36, 0.35), 0 0 12px rgba(255, 36, 36, 0.25);
  transform: translateY(-1px);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../img/background.jpg') center / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.45) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 720px;
  padding: 2rem;
}

.hero-subtitle {
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2.25rem;
  line-height: 1.65;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-btn {
  padding: 0.8rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  border: 2px solid transparent;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.hero-btn:hover {
  transform: translateY(-2px);
}

.btn-support {
  background: #006d8a;
  border-color: #006d8a;
  box-shadow: 0 4px 16px rgba(0, 143, 181, 0.5);
}

.btn-support:hover {
  box-shadow: 0 6px 20px rgba(0, 143, 181, 0.65);
}

.btn-design {
  background: var(--laser-red);
  border-color: var(--laser-red);
  box-shadow: 0 4px 16px rgba(248, 56, 56, 0.58);
}

.btn-design:hover {
  box-shadow: 0 6px 20px rgba(248, 56, 56, 0.58);
}

.btn-whatsapp {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

.btn-whatsapp:hover {
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.55);
}

/* ── Services Section ── */
.services {
  padding: 5rem 2rem;
  background: var(--light);
}

.services-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
}

.service-card {
  flex: 1;
  background: var(--white);
  border-radius: var(--radius);
  border-left: 5px solid transparent;
  padding: 2.5rem 2rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
  transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
}

.service-card.it-card {
  border-left-color: var(--it-blue);
  box-shadow: 0 6px 20px rgba(0, 143, 181, 0.15);
}

.service-card.laser-card {
  border-left-color: var(--laser-red);
  box-shadow: 0 6px 20px rgba(255, 36, 36, 0.15);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.service-card-header svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.it-card .service-card-header svg {
  color: var(--it-blue);
}

.laser-card .service-card-header svg {
  color: var(--laser-red);
}

.service-card-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.service-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 1.05rem;
  font-weight: 500;
  padding: 0.45rem 0;
}

.service-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.it-card .service-item svg {
  color: var(--it-blue);
}

.laser-card .service-item svg {
  color: var(--laser-red);
}

/* ── Service Card Button ── */
.service-card-btn {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--it-blue);
  color: var(--white);
  border: 2px solid var(--it-blue);
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(0, 143, 181, 0.35);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card-btn:hover {
  background: #007a9e;
  box-shadow: 0 5px 16px rgba(0, 143, 181, 0.5);
  transform: translateY(-1px);
}

.service-card-btn-r {
  display: inline-block;
  margin-top: 1.75rem;
  background: var(--laser-red);
  color: var(--white);
  border: 2px solid var(--laser-red);
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 3px 10px rgba(248, 56, 56, 0.58);
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
}

.service-card-btn-r:hover {
  background: var(--laser-red);
  box-shadow: 0 5px 16px rgba(248, 56, 56, 0.918);
  transform: translateY(-1px);
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 2;
  background: #000000;
  color: rgba(255, 255, 255, 0.8);
  padding: 3rem 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition), background var(--transition), -webkit-text-fill-color var(--transition);
}

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

.footer-social svg {
  width: 22px;
  height: 22px;
}

/* Instagram — degradado oficial (sin hover) */
.footer-social a[aria-label="Instagram"] {
  color: #E1306C;
}

.footer-social a[aria-label="Instagram"] svg {
  color: #E1306C;
}

.footer-social a[aria-label="Instagram"]:hover,
.footer-social a[aria-label="Instagram"]:hover svg {
  color: #E1306C;
}

/* Instagram degradado en texto (fallback sólido si no soporta clip) */
@supports (-webkit-background-clip: text) {
  .footer-social a[aria-label="Instagram"] {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .footer-social a[aria-label="Instagram"] svg {
    color: #d6249f;
    -webkit-text-fill-color: #d6249f;
  }
  .footer-social a[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
  .footer-social a[aria-label="Instagram"]:hover svg {
    color: #d6249f;
    -webkit-text-fill-color: #d6249f;
  }
}

/* WhatsApp — verde (sin hover) */
.footer-social a[aria-label="WhatsApp"] {
  color: #25D366;
}

.footer-social a[aria-label="WhatsApp"] svg {
  color: #25D366;
}

.footer-social a[aria-label="WhatsApp"]:hover,
.footer-social a[aria-label="WhatsApp"]:hover svg {
  color: #25D366;
}

/* Email — azul SocioTI */
.footer-social a[aria-label="Email"] {
  color: var(--it-blue);
}

.footer-social a[aria-label="Email"] svg {
  color: var(--it-blue);
}

.footer-social a[aria-label="Email"]:hover,
.footer-social a[aria-label="Email"]:hover svg {
  color: var(--laser-red);
}

.footer-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-end;
}

.footer-info a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

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

.footer-location {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ── Hamburger Menu Button ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    gap: 0.5rem;
  }

  .navbar-links {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    width: 100%;
    order: 3;
  }

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

  .navbar-links a {
    font-size: 0.85rem;
  }

  .hero-subtitle {
    font-size: 1.75rem;
  }

  .hero-desc {
    font-size: 1rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-btn {
    width: 100%;
    max-width: 280px;
  }

  .services {
    padding: 3rem 1rem;
  }

  .services-container {
    flex-direction: column;
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-info {
    align-items: center;
  }
}