*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --red: #e31837;
  --red-dark: #b8122b;
  --black: #0a0a0a;
  --gray-900: #1a1a1a;
  --gray-700: #444;
  --gray-500: #777;
  --gray-100: #f4f4f5;
  --white: #fff;
  --wa: #25d366;
  --wa-dark: #128c7e;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,.08);
  --nav-h: 80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--gray-900);
  line-height: 1.6;
  background: var(--gray-100);
  overflow-x: hidden;
}

.container, .nav-container, .hero-container, .contact-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* NAV */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  z-index: 1000;
  display: flex; align-items: center;
  transition: box-shadow .3s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.nav-container {
  width: 100%; display: flex;
  justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; text-decoration: none; height: 56px; }
.logo-img { height: 100%; width: auto; max-width: 200px; object-fit: contain; }

.nav-menu { display: flex; list-style: none; gap: 2rem; }
.nav-link {
  text-decoration: none; color: var(--gray-900);
  font-weight: 600; font-size: .95rem;
  transition: color .2s;
}
.nav-link:hover { color: var(--red); }

.nav-actions { display: flex; align-items: center; gap: .75rem; }

.whatsapp-btn {
  background: var(--wa); color: var(--white);
  padding: .65rem 1.25rem; border-radius: 999px;
  text-decoration: none; display: flex; align-items: center; gap: .5rem;
  font-weight: 700; font-size: .9rem;
  transition: transform .2s, background .2s;
}
.whatsapp-btn:hover { background: var(--wa-dark); transform: translateY(-1px); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .5rem;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--black); border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* HERO */
.hero {
  margin-top: var(--nav-h);
  padding: 4rem 0 5rem;
  background: linear-gradient(160deg, #fff 0%, var(--gray-100) 60%, #fde8eb 100%);
  min-height: calc(100vh - var(--nav-h));
  display: flex; align-items: center;
}

.hero-container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(227,24,55,.1); color: var(--red);
  font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .4rem 1rem; border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800; line-height: 1.15; margin-bottom: 1.25rem;
}
.title-main { display: block; color: var(--black); }
.title-accent { display: block; color: var(--red); }

.hero-subtitle {
  font-size: 1.15rem; color: var(--gray-700);
  margin-bottom: 2rem; max-width: 480px;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  padding: .9rem 1.75rem; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .2s, background .2s, color .2s;
  border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--red); border-color: var(--red); }
.btn-secondary:hover { background: var(--red); color: var(--white); }

.hero-visual { display: flex; justify-content: center; }
.hero-logo-card { max-width: 380px; width: 100%; }
.hero-logo { width: 100%; height: auto; display: block; }

/* SERVICES */
.services { padding: 5rem 0; background: var(--white); }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800; text-align: center; margin-bottom: .75rem;
}
.section-subtitle {
  text-align: center; color: var(--gray-500);
  font-size: 1.1rem; margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--gray-100); border-radius: var(--radius);
  padding: 2rem; cursor: pointer;
  border: 2px solid transparent;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  opacity: 0; transform: translateY(24px);
}
.service-card.visible { opacity: 1; transform: translateY(0); }
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--red);
  box-shadow: 0 12px 40px rgba(227,24,55,.12);
}

.service-icon {
  width: 56px; height: 56px;
  background: var(--red); border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.service-icon i { font-size: 1.4rem; color: var(--white); }

.service-title { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; }
.service-preview { color: var(--gray-700); font-size: .95rem; margin-bottom: 1rem; }
.service-arrow { color: var(--red); font-weight: 700; font-size: .9rem; }

/* MODAL */
.modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.65); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }

.modal-content {
  background: var(--white); border-radius: 20px;
  padding: 2.5rem; max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  animation: slideUp .3s ease;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; font-size: 1.75rem;
  color: var(--gray-500); cursor: pointer; line-height: 1;
}
.close-modal:hover { color: var(--red); }

.modal-icon {
  width: 72px; height: 72px; background: var(--red);
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.modal-icon i { font-size: 2rem; color: var(--white); }
.modal-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: 1rem; }
.modal-description { color: var(--gray-700); line-height: 1.75; margin-bottom: 1.5rem; }
.modal-description ul { margin: 1rem 0; padding-left: 1.25rem; }
.modal-description li { margin-bottom: .35rem; }
.modal-btn { width: 100%; justify-content: center; }

/* CONTACT */
.contact {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--gray-100) 0%, #fff 100%);
}

.contact-header { text-align: center; margin-bottom: 3rem; }

.whatsapp-hero {
  background: linear-gradient(135deg, var(--wa), var(--wa-dark));
  border-radius: 24px; padding: 3rem 2rem;
  text-align: center; color: var(--white);
  margin-bottom: 2rem;
  box-shadow: 0 16px 48px rgba(37,211,102,.25);
}

.whatsapp-icon-large {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.2); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
}
.whatsapp-icon-large i { font-size: 2.5rem; }

.whatsapp-hero h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem; }
.whatsapp-hero > p { margin-bottom: 1.75rem; opacity: .95; }

.whatsapp-btn-large {
  background: var(--white); color: var(--wa);
  padding: 1rem 2rem; border-radius: 999px;
  text-decoration: none; display: inline-flex;
  align-items: center; gap: .75rem; font-weight: 700;
  transition: transform .2s;
}
.whatsapp-btn-large:hover { transform: translateY(-2px); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  background: var(--white); border-radius: var(--radius);
  padding: 2rem; text-align: center;
  box-shadow: var(--shadow); border: 1px solid rgba(0,0,0,.04);
  transition: transform .25s;
}
.contact-card:hover { transform: translateY(-4px); }

.contact-card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.contact-card-icon i { font-size: 1.3rem; color: var(--white); }
.contact-card-icon.phone { background: #4caf50; }
.contact-card-icon.email { background: #2196f3; }
.contact-card-icon.location { background: var(--red); }

.contact-card h4 { font-size: 1.1rem; margin-bottom: .5rem; }
.contact-card p { color: var(--gray-700); margin-bottom: 1rem; font-size: .95rem; }

.contact-action {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--red); text-decoration: none; font-weight: 700; font-size: .9rem;
  padding: .5rem 1rem; border-radius: 999px;
  background: rgba(227,24,55,.08);
  transition: background .2s, color .2s;
}
.contact-action:hover { background: var(--red); color: var(--white); }

/* FOOTER */
.footer {
  background: linear-gradient(180deg, #fff 0%, var(--gray-100) 55%, #fde8eb 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  color: var(--gray-700);
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.footer-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}
.footer-logo {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.footer p { font-size: .875rem; color: var(--gray-500); }

/* FLOAT WA */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 58px; height: 58px; background: var(--wa);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.75rem;
  box-shadow: 0 6px 24px rgba(37,211,102,.45);
  z-index: 900; text-decoration: none;
  transition: transform .2s, background .2s;
}
.whatsapp-float:hover { background: var(--wa-dark); transform: scale(1.08); }

/* RESPONSIVE */
@media (max-width: 900px) {
  .hamburger { display: flex; }
  .nav-menu {
    position: fixed; top: var(--nav-h); left: -100%;
    width: 100%; height: calc(100vh - var(--nav-h));
    background: var(--white); flex-direction: column;
    align-items: center; padding-top: 2rem; gap: 1.5rem;
    transition: left .3s; box-shadow: var(--shadow);
  }
  .nav-menu.active { left: 0; }
  .whatsapp-text { display: none; }
  .whatsapp-btn { padding: .65rem; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }

  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-logo-card { max-width: 260px; }
  .hero { min-height: auto; padding: 2.5rem 0 3rem; }
}

@media (max-width: 480px) {
  :root { --nav-h: 68px; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .whatsapp-btn-large { width: 100%; justify-content: center; }
}
