/* ===========================
   MARSH CONSULTORIA – CSS
   =========================== */

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

:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a2f4a;
  --blue:       #0d6efd;
  --blue-light: #4da3ff;
  --cyan:       #00c8ff;
  --accent:     #00e5b4;
  --white:      #ffffff;
  --grey-50:    #f8fafc;
  --grey-100:   #f1f5f9;
  --grey-200:   #e2e8f0;
  --grey-400:   #94a3b8;
  --grey-600:   #475569;
  --grey-800:   #1e293b;
  --radius-sm:  8px;
  --radius:     14px;
  --radius-lg:  22px;
  --shadow:     0 4px 24px rgba(13,27,42,.12);
  --shadow-lg:  0 12px 48px rgba(13,27,42,.20);
  --transition: .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--white);
  color: var(--grey-800);
  line-height: 1.65;
  font-size: 16px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.15; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.2; }
h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BADGE ===== */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(13,110,253,.12), rgba(0,200,255,.12));
  color: var(--blue);
  border: 1px solid rgba(13,110,253,.25);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.badge-dark {
  background: rgba(255,255,255,.06);
  color: var(--blue-light);
  border-color: rgba(77,163,255,.25);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 10px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0052cc);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(13,110,253,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(13,110,253,.45); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.7); }

.btn-full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(13,27,42,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 1.05rem;
  font-weight: 500;
}
.logo strong { font-weight: 700; }
.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), #0052cc);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  box-shadow: 0 4px 14px rgba(13,110,253,.4);
  flex-shrink: 0;
}

#nav { display: flex; align-items: center; gap: 8px; }
#nav a {
  color: rgba(255,255,255,.75);
  font-size: .93rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: var(--transition);
}
#nav a:hover { color: var(--white); background: rgba(255,255,255,.06); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  background: var(--navy);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 30%, rgba(13,110,253,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(0,200,255,.10) 0%, transparent 60%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(77,163,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(77,163,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-content h1 { color: var(--white); margin: 10px 0 20px; }

.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1.12rem;
  max-width: 600px;
  margin-bottom: 36px;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat strong { font-size: 2rem; font-weight: 800; color: var(--white); line-height: 1; }
.stat span { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: 4px; }
.stat-div { width: 1px; height: 40px; background: rgba(255,255,255,.15); }

/* ===== SERVICES ===== */
.services {
  padding: 100px 0;
  background: var(--grey-50);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 60px;
}
.section-header h2 { margin: 8px 0 16px; }
.section-header p { color: var(--grey-600); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 28px;
}

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
  transition: var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card-icon { width: 52px; height: 52px; margin-bottom: 20px; }
.card-icon svg { width: 52px; height: 52px; }

.card p { color: var(--grey-600); margin-bottom: 14px; font-size: .97rem; }

.card-list { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.card-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-600);
  font-size: .9rem;
}
.card-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  flex-shrink: 0;
}

/* ===== WHY ===== */
.why {
  padding: 100px 0;
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

.why::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 80% 50%, rgba(13,110,253,.15) 0%, transparent 70%);
}

.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

@media (max-width: 860px) { .why-inner { grid-template-columns: 1fr; } }

.why-text h2 { color: var(--white); margin: 10px 0 18px; }
.why-text > p { color: rgba(255,255,255,.6); margin-bottom: 32px; }

.why-items { display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 16px; align-items: flex-start; }
.why-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  flex-shrink: 0;
  margin-top: 6px;
  box-shadow: 0 0 12px rgba(0,200,255,.5);
}
.why-item strong { display: block; color: var(--white); font-weight: 600; margin-bottom: 4px; }
.why-item p { color: rgba(255,255,255,.5); font-size: .9rem; margin: 0; }

.tech-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 32px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}

.tech-tag {
  background: rgba(13,110,253,.15);
  border: 1px solid rgba(13,110,253,.3);
  color: var(--blue-light);
  padding: 7px 16px;
  border-radius: 50px;
  font-size: .82rem;
  font-weight: 600;
  transition: var(--transition);
}
.tech-tag:hover { background: rgba(13,110,253,.3); transform: scale(1.04); }

/* ===== ABOUT ===== */
.about {
  padding: 100px 0;
  background: var(--white);
}

.about-inner {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 60px;
  align-items: center;
}

@media (max-width: 860px) { .about-inner { grid-template-columns: 1fr; } }

.avatar-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,.06);
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #0052cc);
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 8px 28px rgba(13,110,253,.4);
}

.avatar-info strong { display: block; color: var(--white); font-size: 1.2rem; font-weight: 700; margin-bottom: 4px; }
.avatar-info span { color: rgba(255,255,255,.5); font-size: .88rem; display: block; margin-bottom: 18px; }

.avatar-tags { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.avatar-tags span {
  background: rgba(13,110,253,.2);
  border: 1px solid rgba(13,110,253,.35);
  color: var(--blue-light);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}

.about-text h2 { margin: 10px 0 18px; }
.about-text p { color: var(--grey-600); margin-bottom: 16px; }
.about-text strong { color: var(--grey-800); }

.about-contact-info { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--grey-600);
  font-size: .9rem;
  transition: var(--transition);
  width: fit-content;
}
.contact-chip svg { width: 18px; height: 18px; color: var(--blue); flex-shrink: 0; }
.contact-chip:hover { color: var(--blue); }

/* ===== CONTACT ===== */
.contact {
  padding: 100px 0;
  background: var(--grey-50);
}

.contact-inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) { .contact-inner { grid-template-columns: 1fr; } }

.contact-info-box {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  color: var(--white);
  box-shadow: var(--shadow-lg);
}

.contact-info-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 14px; }
.contact-info-box > p { color: rgba(255,255,255,.6); margin-bottom: 32px; font-size: .97rem; }

.info-items { display: flex; flex-direction: column; gap: 24px; margin-bottom: 36px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(13,110,253,.2);
  border: 1px solid rgba(13,110,253,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; color: var(--blue-light); }
.info-item strong { display: block; color: var(--white); font-size: .85rem; margin-bottom: 4px; }
.info-item a, .info-item span { color: rgba(255,255,255,.6); font-size: .88rem; transition: var(--transition); display: block; }
.info-item a:hover { color: var(--blue-light); }

.whatsapp-btn {
  width: 100%;
  justify-content: center;
  background: #25d366;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
}
.whatsapp-btn:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(37,211,102,.45); }

/* FORM */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: 1px solid var(--grey-200);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--grey-800); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font-size: .94rem;
  font-family: inherit;
  color: var(--grey-800);
  background: var(--grey-50);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(13,110,253,.12);
}

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

.form-success {
  text-align: center;
  color: #16a34a;
  font-weight: 600;
  padding: 14px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 60px 0 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }

.footer-brand .logo { color: var(--white); margin-bottom: 16px; }
.footer-brand p { color: rgba(255,255,255,.45); font-size: .88rem; line-height: 1.6; }

.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links strong { color: var(--white); font-size: .88rem; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.footer-links a { color: rgba(255,255,255,.45); font-size: .88rem; transition: var(--transition); }
.footer-links a:hover { color: var(--blue-light); }

.footer-bottom {
  padding: 20px 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom span { color: rgba(255,255,255,.3); font-size: .82rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    gap: 4px;
  }
  #nav.open { display: flex; }
  #nav a { padding: 12px 16px; border-radius: 10px; }
  .menu-toggle { display: block; }

  .services-grid { grid-template-columns: 1fr; }
  .card { padding: 28px 24px; }
  .hero { padding: 100px 0 60px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
