/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary: #2ea3f2;
  --primary-dark: #1c9cc9;
  --primary-deep: #094b77;
  --text-dark: #1a1a2e;
  --text-mid: #444;
  --text-light: #666;
  --bg-light: #f8f9fb;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-mid);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { padding-left: 1.2rem; }
li { margin-bottom: 0.4rem; }

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

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(46,163,242,0.35); }

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

.btn-white {
  background: var(--white);
  color: var(--primary-deep);
  border-color: var(--white);
}
.btn-white:hover { background: var(--bg-light); }

.btn-nav {
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  transition: background var(--transition);
}
.btn-nav:hover { background: var(--primary-dark); }

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(9, 75, 119, 0.97);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
  backdrop-filter: blur(8px);
}

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

.logo img { height: 40px; width: auto; }

#navMenu {
  display: flex;
  align-items: center;
  gap: 28px;
}
#navMenu a {
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity var(--transition);
}
#navMenu a:hover { opacity: 1; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 26px;
  cursor: pointer;
  line-height: 1;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: url('../images/analytics-plan-strategy-insight-concept-scaled.jpg') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(9,75,119,0.92) 0%, rgba(28,156,201,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  color: var(--white);
  padding-top: 100px;
  padding-bottom: 80px;
}
.hero-content h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 36px;
  max-width: 540px;
}

/* ===== SECTIONS ===== */
.section-light  { padding: 90px 0; background: var(--white); }
.section-dark   { padding: 90px 0; background: var(--primary-deep); color: var(--white); }
.section-blue   { padding: 90px 0; background: var(--primary); color: var(--white); }
.section-cta    { padding: 90px 0; background: linear-gradient(135deg, var(--primary-deep), var(--primary-dark)); color: var(--white); text-align: center; }
.section-mockup { padding: 60px 0; background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}
.section-header p { font-size: 1.05rem; opacity: 0.8; }

/* ===== TWO COL (DATA SECTION) ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.col-text h2 {
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.col-text .lead { font-size: 1.1rem; font-weight: 600; color: var(--primary-dark); margin-bottom: 12px; }
.col-text p { color: var(--text-light); }
.col-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

.logos-servicios {
  margin-top: 48px;
  text-align: center;
}
.logos-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 20px;
}
.logos-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.logo-pill {
  background: var(--white);
  border: 1.5px solid #e8edf3;
  border-radius: 50px;
  padding: 14px 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.logo-pill:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); transform: translateY(-2px); }
.logo-pill img { height: 40px; width: auto; display: block; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.15); }

.card-white {
  background: var(--white);
  border-color: transparent;
  color: var(--text-mid);
  box-shadow: var(--shadow);
}
.card-white h3 { color: var(--text-dark); }
.card-white p { color: var(--text-light); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 14px;
  line-height: 1;
}
.card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 0.9rem; opacity: 0.88; line-height: 1.55; }

/* ===== FEATURES ===== */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 72px;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse .feature-text { order: 2; }
.feature-row.reverse .feature-image { order: 1; }

.feature-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.feature-text p { color: var(--text-light); margin-bottom: 14px; }
.feature-text ul { color: var(--text-light); }
.feature-text li { margin-bottom: 8px; }
.feature-image img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== MOCKUP ===== */
.mockup-img { margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow); }

/* ===== CTA ===== */
.cta-inner { max-width: 700px; margin: 0 auto; }
.cta-inner h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-inner p { font-size: 1.05rem; opacity: 0.88; margin-bottom: 36px; }

/* ===== CONTACT FORM ===== */
.contact-form { max-width: 700px; margin: 0 auto; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #dde3ec;
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46,163,242,0.15);
}
.form-group textarea { resize: vertical; }
.contact-form .btn { width: 100%; justify-content: center; font-size: 16px; padding: 15px; }
.contact-form .btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; box-shadow: none; }
.form-success {
  background: #e8f8ef;
  border: 1.5px solid #4caf82;
  border-radius: var(--radius);
  padding: 20px 24px;
  text-align: center;
  color: #1e7a4a;
  font-weight: 600;
  font-size: 1.05rem;
}
.form-error {
  margin-top: 12px;
  color: #c0392b;
  font-size: 14px;
  text-align: center;
}

/* ===== FOOTER ===== */
footer {
  background: var(--primary-deep);
  color: rgba(255,255,255,0.85);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 64px 24px 48px;
}
.footer-brand img { height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; opacity: 0.7; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav p { font-size: 14px; font-weight: 700; margin-bottom: 4px; color: var(--white); }
.footer-nav a { font-size: 14px; opacity: 0.75; transition: opacity var(--transition); }
.footer-nav a:hover { opacity: 1; }
.footer-cta p { font-size: 14px; opacity: 0.8; margin-bottom: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  text-align: center;
  padding: 20px 24px;
  font-size: 13px;
  opacity: 0.65;
}
.footer-bottom a { text-decoration: underline; opacity: 0.8; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .two-col,
  .feature-row,
  .feature-row.reverse { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-text,
  .feature-row.reverse .feature-image { order: unset; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .nav-toggle { display: block; }
  #navMenu {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--primary-deep);
    padding: 16px 24px 24px;
  }
  #navMenu.open { display: flex; }
  #navMenu a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); width: 100%; }
  #navMenu a:last-child { border-bottom: none; margin-top: 8px; }
  #navbar { position: relative; background: var(--primary-deep); padding: 14px 0; }
  .hero { min-height: auto; }
  .hero-content { padding-top: 48px; padding-bottom: 60px; }
  .cards-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section-light, .section-dark, .section-blue, .section-cta { padding: 60px 0; }
}
