:root {
  --color-primary: #0056B3;
  --color-primary-dark: #004494;
  --color-secondary: #8E8E8E;
  --color-dark: #1A2B4A;
  --color-white: #FFFFFF;
  --color-bg: #F8FAFC;
  --color-bg-alt: #EEF2F7;
  --color-whatsapp: #25D366;
  --color-whatsapp-dark: #1DA851;
  --shadow-sm: 0 1px 3px rgba(26, 43, 74, 0.08);
  --shadow-md: 0 4px 20px rgba(26, 43, 74, 0.12);
  --shadow-lg: 0 8px 40px rgba(26, 43, 74, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--color-dark);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--color-dark);
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.1rem;
  color: var(--color-secondary);
  max-width: 560px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
}

.btn--whatsapp:hover {
  background: var(--color-whatsapp-dark);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(26, 43, 74, 0.08);
  height: var(--header-height);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.nav__logo img {
  height: 52px;
  width: auto;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--color-dark);
  transition: var(--transition);
}

.nav__link:hover {
  color: var(--color-primary);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav__toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-height) + 3rem) 0 4rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-bg) 0%, var(--color-white) 50%, rgba(0, 86, 179, 0.06) 100%);
  z-index: -1;
}

.hero__bg::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 70%;
  height: 140%;
  background: radial-gradient(ellipse, rgba(0, 86, 179, 0.08) 0%, transparent 70%);
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(0, 86, 179, 0.1);
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.25rem;
}

.hero__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 1.25rem;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--color-secondary);
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__image {
  display: flex;
  justify-content: center;
}

.hero__image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* Services */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 43, 74, 0.06);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(0, 86, 179, 0.1);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  margin-bottom: 1.25rem;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--color-dark);
}

.service-card p {
  color: var(--color-secondary);
  font-size: 0.95rem;
}

/* Features */
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.feature-card {
  text-align: center;
  padding: 1.5rem;
}

.feature-card__number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--color-secondary);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  padding: 4rem 0;
  color: var(--color-white);
}

.cta-banner__content {
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.cta-banner .btn--whatsapp {
  background: var(--color-white);
  color: var(--color-primary);
}

.cta-banner .btn--whatsapp:hover {
  background: var(--color-bg);
}

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact__card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(26, 43, 74, 0.06);
}

.contact__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.contact__icon--whatsapp {
  background: rgba(37, 211, 102, 0.15);
  color: var(--color-whatsapp);
}

.contact__icon--email {
  background: rgba(0, 86, 179, 0.1);
  color: var(--color-primary);
}

.contact__icon--location {
  background: rgba(142, 142, 142, 0.15);
  color: var(--color-secondary);
}

.contact__card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.contact__card p {
  color: var(--color-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.contact__link {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 0.95rem;
}

.contact__link:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 3rem 0 2rem;
}

.footer__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}

.footer__brand img {
  height: 48px;
  width: auto;
  margin: 0 auto 0.75rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__brand p {
  font-size: 0.9rem;
  opacity: 0.7;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.footer__links a {
  font-size: 0.9rem;
  opacity: 0.8;
  transition: var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  color: #6db3ff;
}

.footer__copy {
  font-size: 0.8rem;
  opacity: 0.5;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 100px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: var(--color-whatsapp);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 900;
  transition: var(--transition);
  animation: pulse 2s infinite;
}

.whatsapp-float:hover {
  background: var(--color-whatsapp-dark);
  transform: scale(1.08);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 950;
}

.chat-widget__toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
}

.chat-widget__toggle:hover {
  background: var(--color-primary-dark);
  transform: scale(1.05);
}

.chat-widget__icon-close {
  display: none;
}

.chat-widget--open .chat-widget__icon-open {
  display: none;
}

.chat-widget--open .chat-widget__icon-close {
  display: block;
}

.chat-widget__panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 480px;
  max-height: calc(100vh - 140px);
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(26, 43, 74, 0.08);
}

.chat-widget__header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 1.25rem;
}

.chat-widget__header strong {
  display: block;
  font-size: 1rem;
}

.chat-widget__header span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.chat-widget__messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--color-bg);
}

.chat-message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  line-height: 1.5;
  word-wrap: break-word;
}

.chat-message--bot {
  background: var(--color-white);
  color: var(--color-dark);
  align-self: flex-start;
  border: 1px solid rgba(26, 43, 74, 0.08);
}

.chat-message--user {
  background: var(--color-primary);
  color: var(--color-white);
  align-self: flex-end;
}

.chat-message--typing {
  opacity: 0.7;
  font-style: italic;
}

.chat-message__whatsapp-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--color-whatsapp);
  font-weight: 600;
  font-size: 0.85rem;
}

.chat-widget__form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(26, 43, 74, 0.08);
  background: var(--color-white);
}

.chat-widget__form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(26, 43, 74, 0.15);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.chat-widget__form input:focus {
  border-color: var(--color-primary);
}

.chat-widget__form button {
  width: 44px;
  height: 44px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chat-widget__form button:hover {
  background: var(--color-primary-dark);
}

.chat-widget__form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__image {
    order: -1;
  }

  .hero__image img {
    max-width: 400px;
  }

  .services__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .features__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
  }

  .nav__menu--open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__cta {
    width: 100%;
    text-align: center;
  }

  .features__grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-float {
    bottom: 90px;
    right: 16px;
    width: 54px;
    height: 54px;
  }

  .chat-widget {
    bottom: 16px;
    right: 16px;
  }

  .chat-widget__toggle {
    width: 54px;
    height: 54px;
  }

  .chat-widget__panel {
    width: calc(100vw - 32px);
    right: -8px;
  }
}
