/* ===== Fuentes ===== */
@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/Baloo2-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Baloo 2";
  src: url("assets/fonts/Baloo2-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-Bold.ttf") format("truetype");
  font-weight: 700;
}
@font-face {
  font-family: "Nunito";
  src: url("assets/fonts/Nunito-ExtraBold.ttf") format("truetype");
  font-weight: 800;
}

/* ===== Tokens de marca ===== */
:root {
  --teal: #00d2a5;
  --teal-dark: #00b28c;
  --purple: #4a027a;
  --purple-bright: #633ba1;
  --charcoal: #2c2a2b;
  --gray: #6b6b6b;
  --gray-light: #9c9c9c;
  --bg: #fbfaf9;
  --bg-card: #ffffff;
  --border: rgba(74, 2, 122, 0.1);
  --shadow: 0 10px 30px rgba(74, 2, 122, 0.08);
  --radius: 20px;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { }
body {
  margin: 0;
  font-family: "Nunito", sans-serif;
  color: var(--charcoal);
  background: var(--bg);
  background-image: url("assets/img/bg_texture.jpg");
  background-repeat: repeat;
  background-size: 900px;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
h1, h2, h3, h4 {
  font-family: "Baloo 2", sans-serif;
  font-weight: 700;
  line-height: 1.1;
  margin: 0;
}
p { line-height: 1.6; color: var(--gray); margin: 0; }
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  background: rgba(74, 2, 122, 0.07);
  padding: 8px 18px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 16px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--purple-bright), var(--purple));
  color: #fff;
  box-shadow: 0 12px 24px rgba(74, 2, 122, 0.25);
}
.btn-outline {
  background: #fff;
  color: var(--charcoal);
  border: 2px solid rgba(0,0,0,0.08);
}

/* ===== Header ===== */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 250, 249, 0.97);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}
.nav img.logo { height: 44px; }
.nav-links { display: flex; gap: 32px; font-weight: 700; font-size: 15px; }
.nav-links a { opacity: 0.75; transition: opacity 0.2s; }
.nav-links a:hover { opacity: 1; color: var(--purple); }
.nav-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; color: var(--purple); }

/* ===== Hero ===== */
.hero {
  padding: 90px 0 110px;
  background: radial-gradient(circle at 15% 20%, rgba(0, 210, 165, 0.16), transparent 45%),
              radial-gradient(circle at 85% 0%, rgba(99, 59, 161, 0.18), transparent 50%);
  text-align: center;
  position: relative;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  max-width: 900px;
  margin: 24px auto;
}
.hero h1 .accent-teal { color: var(--teal-dark); }
.hero h1 .accent-purple { color: var(--purple); font-style: italic; font-family: "Baloo 2"; }
.hero p.lead {
  max-width: 560px;
  margin: 0 auto 36px;
  font-size: 18px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat strong {
  display: block;
  font-family: "Baloo 2";
  font-size: 30px;
  color: var(--purple);
}
.hero-stat span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; color: var(--gray-light); }

/* ===== Nosotros ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.about-grid h2 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 18px; }
.about-grid p { margin-bottom: 16px; font-size: 16px; }
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.pill {
  background: #fff;
  border: 1.5px solid var(--border);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  color: var(--purple-bright);
}
.about-visual {
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  text-align: center;
}
.about-visual .quote {
  font-family: "Baloo 2";
  font-size: 22px;
  color: var(--purple);
  margin-bottom: 10px;
}
.about-visual .who { font-weight: 800; font-size: 14px; color: var(--gray); }

/* ===== Equipo ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.team-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.team-card img { width: 100%; height: 340px; object-fit: cover; object-position: top center; }
.team-card-body { padding: 20px 24px 26px; }
.team-card-body h3 { font-size: 20px; color: var(--purple); margin-bottom: 4px; }
.team-card-body span { font-size: 13px; font-weight: 800; color: var(--gray-light); text-transform: uppercase; letter-spacing: 0.05em; }

/* ===== Servicios ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.service-card .badge-soon {
  position: absolute; top: 18px; right: 18px;
  background: var(--teal); color: #fff; font-size: 11px; font-weight: 800;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.service-icon {
  width: 54px; height: 54px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--teal), var(--purple-bright));
  margin-bottom: 18px;
  font-size: 26px;
}
.service-card h3 { font-size: 19px; margin-bottom: 10px; color: var(--charcoal); }
.service-card p { font-size: 14.5px; }

/* ===== Instagram ===== */
.instagram-section { text-align: center; }
.instagram-section .eyebrow { margin: 0 auto 12px; }
.instagram-section h2 { margin-bottom: 12px; }
.instagram-section p.lead { max-width: 520px; margin: 0 auto 30px; }
.ig-widget-wrap { max-width: var(--max-width); margin: 0 auto; }

/* ===== Portafolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.portfolio-card {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-card);
}
.portfolio-visual {
  height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 46px;
  color: #fff;
}
.portfolio-visual.restaurantes { background: linear-gradient(135deg, #ffb347, #ff7a59); }
.portfolio-visual.salud { background: linear-gradient(135deg, #00d2a5, #00867a); }
.portfolio-visual.autopartes { background: linear-gradient(135deg, #6b7280, #2c2a2b); }
.portfolio-visual.otros { background: linear-gradient(135deg, var(--purple-bright), var(--purple)); }
.portfolio-body { padding: 18px 20px 22px; }
.portfolio-body span.tag {
  font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gray-light);
}
.portfolio-body h3 { font-size: 17px; margin: 6px 0 8px; }
.portfolio-body p { font-size: 13.5px; }

/* ===== Presencia / Mapa ===== */
.presence-wrap {
  background: var(--bg-card);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 48px;
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.presence-map svg { width: 100%; height: auto; }
.presence-wrap-solo {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Contacto ===== */
.contact-wrap {
  background: linear-gradient(135deg, var(--purple), var(--purple-bright));
  border-radius: 32px;
  padding: 64px;
  color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-wrap h2 { color: #fff; font-size: clamp(28px, 4vw, 36px); margin-bottom: 16px; }
.contact-wrap p { color: rgba(255,255,255,0.85); }
form.contact-form { display: flex; flex-direction: column; gap: 14px; }
.contact-form input, .contact-form textarea {
  padding: 15px 18px;
  border-radius: 14px;
  border: none;
  font-family: "Nunito", sans-serif;
  font-size: 15px;
  outline: none;
}
.contact-form textarea { resize: vertical; min-height: 90px; }
.contact-form button {
  margin-top: 6px;
  background: var(--teal);
  color: #06231d;
}
.form-note { font-size: 12.5px; color: rgba(255,255,255,0.65); margin-top: 4px; }

/* ===== Footer ===== */
footer {
  padding: 40px 0;
  text-align: center;
  font-size: 13.5px;
  color: var(--gray-light);
}
footer .footer-logo { height: 36px; margin: 0 auto 14px; opacity: 0.85; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .presence-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .team-grid, .services-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-wrap { padding: 40px 26px; }
  .presence-wrap { padding: 32px 24px; }
}
@media (max-width: 640px) {
  .nav-links { position: fixed; top: 72px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 20px 24px; gap: 18px; box-shadow: var(--shadow); display: none; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .services-grid, .portfolio-grid, .team-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
