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

:root {
  --primary: #0D47A1;
  --primary-light: #1976D2;
  --secondary: #1565C0;
  --accent: #64B5F6;
  --bg: #F0F4F8;
  --bg-image: none;
  --text: #0A1628;
  --text-light: #37474F;
  --menu-bg: rgba(255,255,255,0.95);
  --menu-text: #fff;
  --menu-text-scrolled: var(--primary);
  --card-bg: rgba(255,255,255,0.55);
  --about-card-bg: var(--card-bg);
  --service-card-bg: var(--card-bg);
  --contact-card-bg: var(--card-bg);
  --stats-opacity: 1;
  --card-border: rgba(255,255,255,0.3);
  --logo-size: 48px;
  --hero-overlay: rgba(255,255,255,0.55);
  --hero-bg-desktop: none;
  --hero-bg-mobile: none;
  --footer-bg: #0A1628;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.08);
  --card-shadow: 0 4px 20px rgba(13,71,161,0.10);
  --hero-title-color: #ffffff;
  --hero-title-size: 4rem;
  --hero-subtitle-color: #f0f4f8;
  --hero-subtitle-size: 1.4rem;
}

#bgOverlay { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--bg-overlay, rgba(255,255,255,0.55)); }

html { scroll-behavior: smooth; }
main { display: block; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg-image) center/cover scroll, var(--bg);
}

.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 1000;
  padding: 1rem 2rem;
  display: flex; justify-content: space-between; align-items: center;
  transition: all 0.4s ease;
}
.navbar.scrolled {
  background: var(--menu-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.08);
  padding: 0.6rem 2rem;
}
.navbar .logo {
  display: flex; align-items: center; gap: 0.6rem;
  text-decoration: none; color: var(--menu-text);
  font-weight: 800; font-size: 1.3rem;
}
.navbar.scrolled .logo { color: var(--menu-text-scrolled); }
.logo img { height: var(--logo-size); width: auto; border-radius: 8px; }
.logo span { font-size: 1.3rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
.nav-links a {
  color: var(--menu-text); text-decoration: none;
  font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 0.3rem 0;
}
.navbar.scrolled .nav-links a { color: var(--menu-text-scrolled); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  width: 28px; height: 3px; background: var(--menu-text);
  border-radius: 3px; transition: all 0.3s ease;
}
.navbar.scrolled .nav-toggle span { background: var(--menu-text-scrolled); }

.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: var(--hero-bg-desktop);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
@media (max-width: 1024px) {
  .hero-bg {
    background-image: var(--hero-bg-mobile);
    background-position: center top;
    background-attachment: scroll;
  }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: var(--hero-overlay); z-index: 1;
}
.overlay-pct {
  position: absolute; right: 16px; bottom: 16px;
  color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 1px; opacity: 0.45;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
  pointer-events: none; z-index: 3;
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 850px; padding: 2rem;
  animation: fadeUp 1.2s ease;
}
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}
.hero h1 {
  font-size: var(--hero-title-size, 4rem); font-weight: 900; color: var(--hero-title-color, var(--text));
  text-shadow: 0 2px 20px rgba(255,255,255,0.3);
  margin-bottom: 1rem; letter-spacing: 2px; line-height: 1.2;
}
.hero h1 .highlight { color: var(--primary); }
.hero p {
  font-size: var(--hero-subtitle-size, 1.4rem); color: var(--hero-subtitle-color, var(--text-light));
  text-shadow: 0 1px 12px rgba(255,255,255,0.2);
  margin-bottom: 2.5rem; font-weight: 300; line-height: 1.6;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.8rem;
  background: rgba(255,255,255,0.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.3); color: var(--badge-text-color, var(--text));
  padding: 0.8rem 2.2rem; border-radius: 50px;
  font-size: 1.05rem; font-weight: 500;
}
.scroll-down {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 2; color: var(--text); font-size: 0.95rem;
  animation: bounce 2s infinite; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 0.3rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(12px); }
}

section { position: relative; padding: 5rem 2rem; }
.section-container { max-width: 1200px; margin: 0 auto; position: relative; z-index: 1; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-title {
  font-size: 2.6rem; font-weight: 800; color: var(--text);
  margin-bottom: 0.8rem; position: relative;
}
.section-title i { color: var(--primary); margin-right: 0.5rem; }
.section-title::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 4px; margin: 0.8rem auto 0;
}
.section-subtitle {
  font-size: 1.1rem; color: var(--text-light);
  max-width: 650px; margin: 0 auto; line-height: 1.7;
}

.ticker-wrap {
  overflow: hidden; width: 100%; height: 36px;
  background: var(--ticker-color, #0D47A1); display: none;
}
.ticker-wrap.active { display: block; }
.ticker-track {
  white-space: nowrap; line-height: 36px;
  will-change: transform;
}
.ticker-track span {
  display: inline-block; padding: 0 1.5rem;
  font-size: 0.85rem; font-weight: 500; color: #fff;
  letter-spacing: 0.3px; white-space: pre;
}

#about { background: transparent; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.about-card {
  background: var(--about-card-bg, var(--card-bg)); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center;
  box-shadow: var(--card-shadow); transition: all 0.4s ease;
}
.about-card:hover { transform: translateY(-8px); box-shadow: 0 16px 48px rgba(13,71,161,0.15); }
.about-icon {
  width: 72px; height: 72px; margin: 0 auto 1.5rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; color: #fff;
}
.about-card h3 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--text); }
.about-card p { color: var(--text-light); line-height: 1.8; font-size: 0.95rem; }

.separator {
  position: relative;
  padding: 4rem 2rem;
  color: #fff; text-align: center;
}
.separator::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--primary), #001F4A);
  opacity: var(--stats-opacity, 1);
  z-index: 0;
}
.separator-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.separator-item h3 { font-size: 2.6rem; font-weight: 900; }
.separator-item p { font-size: 1rem; opacity: 0.85; margin-top: 0.3rem; }

#services { background: transparent; }
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.service-card {
  background: var(--service-card-bg, var(--card-bg)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem; display: flex; align-items: flex-start; gap: 1.2rem;
  box-shadow: var(--card-shadow); border: 1px solid var(--card-border);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 40px rgba(13,71,161,0.15); }
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  border-radius: 4px 0 0 4px;
}
.service-icon-wrap {
  width: 52px; height: 52px; min-width: 52px; border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; color: #fff;
}
.service-card .service-body h4 { font-size: 1.05rem; margin-bottom: 0.4rem; color: var(--text); }
.service-card .service-body p { color: var(--text-light); line-height: 1.6; font-size: 0.88rem; }

#gallery { background: transparent; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: pointer;
  box-shadow: var(--card-shadow); transition: all 0.4s ease;
}
.gallery-item:hover { transform: scale(1.03); box-shadow: 0 16px 48px rgba(0,0,0,0.15); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery-item:hover img { transform: scale(1.1); }
.gallery-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(transparent 40%, rgba(0,20,50,0.8));
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.5rem; color: #fff; opacity: 0; transition: opacity 0.4s ease;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-overlay h4 { font-size: 1.1rem; margin-bottom: 0.3rem; }
.gallery-overlay p { font-size: 0.85rem; opacity: 0.9; }

.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 2000;
  align-items: center; justify-content: center; padding: 2rem;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 1.5rem; right: 2rem;
  color: #fff; font-size: 2.5rem; cursor: pointer; background: none; border: none;
}
.lightbox-caption { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: #fff; text-align: center; font-size: 1.1rem; }

#contact { background: transparent; }
.contact-wrapper { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; max-width: 700px; margin: 0 auto; }
.contact-info-card {
  background: var(--contact-card-bg, var(--card-bg)); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border: 1px solid var(--card-border); border-radius: var(--radius);
  padding: 2.5rem; box-shadow: var(--card-shadow);
}
.contact-info-card h3 { font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text); }
.contact-info-card > p { color: var(--text-light); margin-bottom: 2rem; }
.contact-item { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.contact-item i {
  width: 44px; height: 44px; min-width: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.1rem;
}
.contact-item div h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 0.2rem; }
.contact-item div p { font-size: 0.9rem; color: var(--text-light); }

footer { background: var(--footer-bg); color: rgba(255,255,255,0.8); padding: 3rem 2rem; text-align: center; }
footer .footer-brand { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 0.5rem; }
footer .footer-brand i { color: var(--accent); margin-right: 0.4rem; }
footer p { font-size: 0.9rem; margin-bottom: 0.4rem; }
footer .social-links { display: flex; justify-content: center; gap: 1rem; margin: 1.5rem 0; }
.social-links a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; font-size: 1.1rem; transition: all 0.3s ease;
}
.social-links a:hover { background: var(--primary-light); transform: translateY(-4px); }

.reveal { opacity: 0; transform: translateY(40px); transition: all 0.7s cubic-bezier(0.23, 1, 0.32, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

.admin-btn {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 999;
  background: var(--primary); color: #fff;
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(13,71,161,0.35);
  transition: all 0.3s ease; opacity: 0.7;
}
.admin-btn:hover { opacity: 1; transform: scale(1.1); }

.whatsapp-btn {
  position: fixed; left: 20px; bottom: 90px; z-index: 998;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; text-decoration: none;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  animation: waBounce 2s ease-in-out infinite;
  transition: all 0.3s ease;
}
.whatsapp-btn:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }
@keyframes waBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.whatsapp-btn::before, .whatsapp-btn::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.4);
  animation: waRipple 2s ease-out infinite;
}
.whatsapp-btn::after { animation-delay: 1s; }
@keyframes waRipple {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.4rem; }
  .hero p { font-size: 1.1rem; }
  .section-title { font-size: 2rem; }
  .nav-links {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: var(--card-bg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    flex-direction: column; justify-content: center; align-items: center; gap: 1.5rem;
    transition: right 0.4s ease; box-shadow: -8px 0 32px rgba(0,0,0,0.1);
  }
  .nav-links.active { right: 0; }
  .nav-links a { color: var(--text) !important; font-size: 1.1rem; }
  .nav-toggle { display: flex; }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -5px); }

  .separator-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .navbar { padding: 0.8rem 1.2rem; }
  section { padding: 3rem 1.2rem; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 1.2rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-badge { font-size: 0.85rem; padding: 0.6rem 1.2rem; }
  .gallery-grid { grid-template-columns: 1fr; }
  .separator-grid { grid-template-columns: 1fr; }
}
