/* Taktikdata — standalone, zero dependencies */

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

:root {
  --blue: #1e88e5;
  --purple: #6a1b9a;
  --dark-purple: #211645;
  --cream: #f3efea;
  --dark: #333333;
  --gray: #424242;
  --white: #ffffff;
  --max-width: 960px;
}

html { scroll-behavior: smooth; }

body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 22px;
  font-weight: 300;
  color: var(--dark);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1;
  font-weight: 100;
  color: var(--white);
}

h2 {
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.1;
  font-weight: 400;
  margin-bottom: 16px;
}

h3 {
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 8px;
}

.large-text {
  font-size: 18px;
  line-height: 24px;
  font-weight: 100;
}

.text-blue { color: var(--blue); }
.text-purple { color: var(--purple); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn:hover { opacity: 0.88; text-decoration: none; }

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

.btn--full { width: 100%; text-align: center; }

.btn.is-loading,
.contact-form.is-loading .btn {
  pointer-events: none;
  opacity: 0.75;
}

.btn__spinner,
.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.contact-form.is-loading .btn__label { visibility: hidden; }
.contact-form.is-loading .btn__spinner {
  display: inline-block;
  position: absolute;
}

.btn { position: relative; }

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Top bar */
.top-bar {
  background: var(--dark-purple);
  color: var(--white);
  padding: 10px 0;
  font-size: 14px;
}

.top-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.top-bar__left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.top-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  text-decoration: none;
}

.top-bar__item:hover { text-decoration: none; opacity: 0.9; }

.top-bar__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar__icons a { line-height: 0; opacity: 0.9; }
.top-bar__icons a:hover { opacity: 1; }

/* Hero */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(55, 71, 79, 0.55);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 48px 20px;
}

.hero__logo {
  margin: 0 auto 24px;
  max-width: 220px;
}

.hero__subtitle {
  font-size: clamp(16px, 2.5vw, 30px);
  line-height: 1.3;
  font-weight: 400;
  color: var(--white);
  max-width: 700px;
  margin: 24px auto 32px;
}

/* Sections */
.section { padding: 48px 0; }

.section--cream { background: var(--cream); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.service-card__icon {
  width: 200px;
  height: 200px;
  margin: 0 auto 16px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--white);
}

.service-card__icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-card h3 { color: var(--blue); }

/* Banner */
.banner {
  padding: 20px 0;
  text-align: center;
}

.banner--blue {
  background: var(--blue);
  color: var(--white);
}

.banner__text {
  font-size: 20px;
  font-weight: 900;
}

/* Enfoque */
.enfoque-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.enfoque-grid__text h3 { margin-top: 8px; }

/* GEO Coding */
.section--geo { background: var(--white); }

.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
}

.geo-grid__image { text-align: center; }

.geo-grid__text .btn { margin-top: 24px; }

/* Methodology */
.methodology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.methodology-item h3 { color: var(--blue); font-size: 18px; }

.methodology-item p { font-size: 15px; line-height: 22px; }

/* Micro-segmentación */
.micro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.micro-grid__text p { color: var(--gray); font-size: 14px; line-height: 22px; }

.micro-grid__media {
  border-radius: 4px;
  overflow: hidden;
}

/* Contact */
.section--contact { background: var(--cream); }

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

.contact-address {
  font-style: normal;
  margin-top: 24px;
  line-height: 1.8;
}

.contact-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-form.is-loading {
  pointer-events: none;
}

.form-loader {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: rgba(243, 239, 234, 0.86);
  color: var(--dark-purple);
  font-weight: 600;
}

.form-loader[hidden] {
  display: none;
}

.form-loader .spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border-color: rgba(33, 22, 69, 0.2);
  border-top-color: var(--dark-purple);
}

.form-group--honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

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

.form-group label {
  font-size: 14px;
  font-weight: 300;
}

.form-group input[type="text"],
.form-group input[type="email"] {
  padding: 12px 14px;
  border: 1px solid #ddd;
  background: var(--white);
  font-family: inherit;
  font-size: 14px;
  border-radius: 2px;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: var(--blue);
}

.form-group--checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.form-group--checkbox input { width: 16px; height: 16px; accent-color: var(--blue); }

.form-message {
  padding: 12px;
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.form-message--success {
  background: #e8f5e9;
  color: #2e7d32;
}

.form-message--error {
  background: #ffebee;
  color: #c62828;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 32px 0;
  text-align: center;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer__tagline { font-size: 16px; }

.footer__privacy { color: var(--white); font-size: 13px; opacity: 0.8; }
.footer__privacy:hover { opacity: 1; }

/* Responsive */
@media (max-width: 768px) {
  .services-grid,
  .enfoque-grid,
  .geo-grid,
  .micro-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .methodology-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .geo-grid__image { order: -1; }

  .hero { min-height: 360px; }
}

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

  .top-bar__inner { justify-content: center; text-align: center; }

  .service-card__icon { width: 160px; height: 160px; }
}
