/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --primary: #16589C;
  --accent: #0FC2DE;
  --accent2: #159ECB;
  --navy1: #1B3868;
  --navy2: #204271;
  --navy3: #254C7B;
  --text: #3B4148;
  --muted: #CFDADE;
  --bg: #081a2b;
  --white: #ffffff;
  --gradient-primary: linear-gradient(135deg, var(--primary), var(--accent2));
  --gradient-hero: linear-gradient(135deg, rgba(22, 88, 156, 0.95), rgba(15, 194, 222, 0.85));
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
  --transition: all 0.3s ease;
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ============================================
   UTILITIES
   ============================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section__title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--navy1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.5px;
}

.btn--primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn--secondary:hover {
  background: var(--white);
  color: var(--primary);
}

.btn--outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn--outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn--large {
  padding: 18px 44px;
  font-size: 1.1rem;
  letter-spacing: 0.8px;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  gap: 24px;
}

.nav__logo img {
  height: 70px;
  width: auto;
}

.nav__menu {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav__link {
  color: var(--text);
  font-weight: 500;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.nav__link:hover::after {
  width: 100%;
}

.btn--header {
  white-space: nowrap;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  overflow: hidden;
  margin-top: 80px;
}

.hero__bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('assets/banner.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--gradient-hero);
  z-index: -1;
}

.hero__content {
  text-align: center;
  z-index: 1;
  padding: 40px 20px;
  animation: fadeInUp 1s ease-out;
}

.hero__title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.2;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero__subtitle {
  font-size: 1.25rem;
  margin-bottom: 40px;
  opacity: 0.95;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__tech {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.tech-chip {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: var(--transition);
}

.tech-chip:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* ============================================
   PROBLEMS SECTION
   ============================================ */
.problems {
  background: #f8fafc;
}

.problems__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.problem-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.problem-card.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.problem-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.problem-card__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 1.25rem;
  color: var(--navy1);
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--text);
  line-height: 1.6;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.service-card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--accent);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.service-card.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.5rem;
  color: var(--navy1);
  margin-bottom: 16px;
}

.service-card>p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.service-card__features {
  list-style: none;
  padding-left: 0;
}

.service-card__features li {
  padding: 8px 0;
  padding-left: 24px;
  position: relative;
  color: var(--text);
}

.service-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* ============================================
   CASES SECTION
   ============================================ */
.cases {
  background: #f8fafc;
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.case-card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-left: 4px solid var(--primary);
  opacity: 0;
  transform: translateY(30px);
}

.case-card.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.case-card:hover {
  box-shadow: var(--shadow-lg);
}

.case-card h3 {
  font-size: 1.5rem;
  color: var(--navy1);
  margin-bottom: 20px;
}

.case-card p {
  margin-bottom: 16px;
  line-height: 1.6;
}

.case-card__challenge strong,
.case-card__solution strong,
.case-card__result strong {
  color: var(--primary);
}

/* ============================================
   PROCESS SECTION
   ============================================ */
.process__timeline {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.process__timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

.process-step {
  display: flex;
  gap: 32px;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateX(-30px);
}

.process-step.animate {
  animation: fadeInLeft 0.6s ease-out forwards;
}

.process-step__number {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.process-step__content h3 {
  font-size: 1.5rem;
  color: var(--navy1);
  margin-bottom: 12px;
}

.process-step__content p {
  color: var(--text);
  line-height: 1.6;
}

/* ============================================
   DIFFERENTIATORS SECTION
   ============================================ */
.differentiators {
  background: #f8fafc;
}

.differentiators__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.diff-card {
  background: var(--white);
  padding: 32px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.diff-card.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.diff-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.diff-card__icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.diff-card h3 {
  font-size: 1.25rem;
  color: var(--navy1);
  margin-bottom: 12px;
}

.diff-card p {
  color: var(--text);
  line-height: 1.6;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.pricing-card {
  background: var(--white);
  padding: 40px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.pricing-card.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
  border: 2px solid var(--accent);
  transform: scale(1.05);
}

.pricing-card--featured:hover {
  transform: scale(1.05) translateY(-8px);
}

.pricing-card__badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: var(--white);
  padding: 8px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.pricing-card__header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 2px solid #f0f0f0;
}

.pricing-card__header h3 {
  font-size: 1.75rem;
  color: var(--navy1);
  margin-bottom: 12px;
}

.pricing-card__price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.pricing-card__features {
  margin-bottom: 32px;
}

.pricing-card__features li {
  padding: 12px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
  line-height: 1.6;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.2rem;
}

.pricing-card .btn {
  width: 100%;
}

.pricing__note {
  text-align: center;
  color: var(--text);
  font-size: 0.9rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto;
}

/* ============================================
   FAQ SECTION
   ============================================ */
.faq {
  background: #f8fafc;
}

.faq__list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  margin-bottom: 16px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}

.faq-item.animate {
  animation: fadeInUp 0.6s ease-out forwards;
}

.faq-item__question {
  width: 100%;
  text-align: left;
  padding: 24px;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-item__question:hover {
  color: var(--primary);
}

.faq-item__icon {
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
  transform: rotate(45deg);
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item__answer p {
  padding: 0 24px 24px;
  color: var(--text);
  line-height: 1.6;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact__intro {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
  color: var(--text);
  font-size: 1.1rem;
}

.contact__form {
  max-width: 700px;
  margin: 0 auto;
  background: var(--white);
  padding: 48px;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  color: var(--navy1);
  letter-spacing: 0.3px;
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 14px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  letter-spacing: 0.3px;
  background: var(--white);
  color: var(--text);
}

.form-group select:invalid {
  color: #999;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-top: 8px;
}

.form-group--checkbox input[type="checkbox"] {
  margin-top: 4px;
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.form-group--checkbox label {
  font-weight: 400;
  cursor: pointer;
}

.form-group--checkbox a {
  color: var(--primary);
  text-decoration: underline;
}

.form-submit {
  margin-top: 32px;
  text-align: center;
}

.contact__success {
  display: none;
  max-width: 500px;
  margin: 48px auto 0;
  text-align: center;
  background: #e8f5e9;
  padding: 48px;
  border-radius: 12px;
}

.contact__success.show {
  display: block;
  animation: fadeInUp 0.6s ease-out;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: #4caf50;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  margin: 0 auto 24px;
}

.contact__success h3 {
  font-size: 1.75rem;
  color: var(--navy1);
  margin-bottom: 12px;
}

.contact__success p {
  color: var(--text);
  font-size: 1.1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg);
  color: var(--white);
  padding: 60px 0 24px;
}

.footer__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 40px;
}

.footer__brand p {
  margin-top: 16px;
  opacity: 0.9;
  line-height: 1.6;
}

.footer__logo {
  height: 60px;
  width: auto;
}

.footer__links h4,
.footer__contact h4 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  opacity: 0.9;
  transition: var(--transition);
}

.footer__links a:hover {
  opacity: 1;
  color: var(--accent);
}

.footer__contact a {
  color: var(--accent);
  font-weight: 500;
  transition: var(--transition);
}

.footer__contact a:hover {
  text-decoration: underline;
}

.footer__bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0.8;
}

/* ============================================
   FOOTER SOCIAL ICONS
   ============================================ */
.footer__social h4 {
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.footer__social-icons {
  display: flex;
  gap: 12px;
  align-items: center;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  transition: var(--transition);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

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

.social-icon--instagram:hover {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(214, 36, 159, 0.4);
}

/* ============================================
   WHATSAPP FLOAT BUTTON
   ============================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 968px) {
  .nav__menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 300px;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    height: calc(100vh - 80px);
    overflow-y: auto;
  }

  .nav__menu.active {
    right: 0;
  }

  .nav__toggle {
    display: flex;
  }

  .btn--header {
    display: none;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.1rem;
  }

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

  .section__title {
    font-size: 2rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .pricing-card--featured {
    transform: scale(1);
  }

  .pricing-card--featured:hover {
    transform: translateY(-8px);
  }

  .process__timeline::before {
    left: 30px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 60px 0;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .contact__form {
    padding: 32px 24px;
  }

  .problems__grid,
  .services__grid,
  .cases__grid,
  .differentiators__grid,
  .pricing__grid {
    grid-template-columns: 1fr;
  }
}