/* ===== Moccha Marketing - Paleta ===== */
:root {
  --azul-principal: #0F2E4E;
  --azul-medio: #1E4F8C;
  --verde-agua: #00B3A4;
  --gris-fondo: #F5F7FA;
  --blanco: #ffffff;
  --texto: #0F2E4E;
  --texto-suave: #1E4F8C;
  --sombra: rgba(15, 46, 78, 0.08);
  --sombra-hover: rgba(15, 46, 78, 0.12);
}

/* ===== Reset y base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto);
  background: var(--gris-fondo);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--azul-medio); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== Contenedores ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.max-w { max-width: 720px; margin-left: auto; margin-right: auto; }
.text-center { text-align: center; }

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--sombra);
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--azul-principal);
  font-weight: 600;
  font-size: 1.125rem;
}
.logo:hover { text-decoration: none; }
.logo-img {
  height: 2.25rem;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav a {
  color: var(--azul-principal);
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav a:hover { text-decoration: none; color: var(--azul-medio); }
.nav-cta {
  background: var(--verde-agua);
  color: var(--blanco) !important;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}
.nav-cta:hover { opacity: 0.9; text-decoration: none; }
.menu-toggle {
  display: none;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230F2E4E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 1.5rem;
}

/* ===== Botones ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--verde-agua);
  color: var(--blanco);
}
.btn-primary:hover { opacity: 0.92; box-shadow: 0 4px 12px rgba(0, 179, 164, 0.35); text-decoration: none; color: var(--blanco); }
.btn-secondary {
  background: transparent;
  color: var(--azul-principal);
  border: 2px solid var(--azul-medio);
}
.btn-secondary:hover { background: rgba(30, 79, 140, 0.06); text-decoration: none; color: var(--azul-principal); }
.btn-accent {
  background: #f0b429;
  color: var(--azul-principal);
}
.btn-accent:hover { opacity: 0.95; text-decoration: none; color: var(--azul-principal); }
.btn-block { width: 100%; text-align: center; }

/* ===== Secciones genéricas ===== */
.section {
  padding: 4rem 0;
}
.section-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--azul-principal);
}
.section-lead {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--azul-medio);
}
.section-text {
  margin: 0 0 1rem;
  color: var(--texto);
  opacity: 0.95;
}
.section-text:last-child { margin-bottom: 0; }
.section-desc { margin-bottom: 2rem; }
.section-tag {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--verde-agua);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, var(--azul-medio) 0%, var(--azul-principal) 50%, var(--verde-agua) 100%);
}
/* Hero: usa object-fit: cover. Imagen recomendada 2400×1350 px (16:9). Ver HERO-IMAGE.md */
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}
.hero-seo {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.hero-seo h1 { margin: 0; font-size: 1rem; }
.hero-seo p { margin: 0; font-size: 1rem; }
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 0 1.5rem;
  margin: 0 auto 0 0;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ===== Grid 2 columnas ===== */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.grid-2.reverse .section-media { order: 2; }
.grid-2.reverse .section-body { order: 1; }
.section-media img { border-radius: 12px; }
.img-circle { border-radius: 50%; }
figure.section-media { margin: 0; }
.img-caption {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--azul-medio);
}

/* ===== Quiénes somos ===== */
.section-quienes { background: var(--blanco); }
.section-quienes .section-media { max-width: 400px; margin: 0 auto; }

/* ===== Qué resolvemos ===== */
.section-que-resolvemos { background: var(--gris-fondo); }
.section-que-resolvemos .section-media img { border-radius: 12px; box-shadow: 0 8px 24px var(--sombra); }

/* ===== Servicios ===== */
.section-servicios { background: var(--blanco); }
.servicios-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.servicio-card {
  padding: 1.5rem;
  background: var(--gris-fondo);
  border-radius: 12px;
  border: 1px solid rgba(15, 46, 78, 0.06);
  transition: box-shadow 0.2s;
}
.servicio-card:hover { box-shadow: 0 8px 24px var(--sombra); }
.servicio-card-title {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--azul-principal);
}
.servicio-card-text {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--texto-suave);
  line-height: 1.4;
}
.servicios-referencia {
  margin-top: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 12px 40px var(--sombra);
}
.servicios-referencia img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===== Experiencia ===== */
.section-experiencia { background: var(--gris-fondo); }
.experiencia-marcas {
  margin: 1.5rem 0 1rem;
  text-align: center;
}
.experiencia-marcas img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px var(--sombra);
}
.experiencia-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 1.5rem;
}
.experiencia-card {
  padding: 1.75rem;
  background: var(--blanco);
  border-radius: 12px;
  box-shadow: 0 4px 16px var(--sombra);
  text-align: center;
}
.experiencia-card-title {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--azul-principal);
}
.experiencia-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.experiencia-logo {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--azul-medio);
  background: var(--gris-fondo);
  border-radius: 8px;
}
.experiencia-desc {
  margin-top: 0.5rem !important;
  font-size: 0.9375rem;
}

/* ===== Cómo trabajamos ===== */
.section-como { background: var(--blanco); }

/* ===== Formulario / CTA ===== */
.section-formulario { background: linear-gradient(180deg, var(--gris-fondo) 0%, var(--azul-principal) 100%); padding-bottom: 5rem; }
.section-formulario .section-title,
.section-formulario .section-lead,
.section-formulario .section-text { color: var(--blanco); }
.section-formulario .section-text { opacity: 0.9; }
.form-container { max-width: 560px; margin: 0 auto; }
.form-cta {
  margin-top: 2rem;
  padding: 2rem;
  background: var(--blanco);
  border-radius: 16px;
  box-shadow: 0 12px 40px var(--sombra);
}
.form-mensaje {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
}
.form-mensaje.success { background: rgba(0, 179, 164, 0.15); color: var(--azul-principal); }
.form-mensaje.error { background: rgba(200, 60, 60, 0.1); color: #8b2635; }
.form-label {
  display: block;
  margin: 1rem 0 0.35rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--azul-principal);
}
.form-label:first-of-type { margin-top: 0; }
.required { color: var(--verde-agua); }
.form-input {
  width: 100%;
  padding: 0.65rem 0.85rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid rgba(15, 46, 78, 0.2);
  border-radius: 8px;
  background: var(--blanco);
  color: var(--texto);
  transition: border-color 0.2s;
}
.form-input:focus {
  outline: none;
  border-color: var(--verde-agua);
  box-shadow: 0 0 0 3px rgba(0, 179, 164, 0.15);
}
.form-input::placeholder { color: #999; }
.form-fieldset {
  margin: 1.5rem 0 0;
  padding: 1rem;
  border: 1px solid rgba(15, 46, 78, 0.12);
  border-radius: 8px;
  background: var(--gris-fondo);
}
.form-legend {
  padding: 0 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--azul-principal);
}
.form-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--texto);
  cursor: pointer;
}
.form-check input { margin: 0; }
.form-cta .btn { margin-top: 1.5rem; }

/* ===== Footer ===== */
.footer {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #0a1929 0%, #061018 100%);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  border-top: 3px solid var(--verde-agua);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.footer-logo {
  height: 2.25rem;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}
.footer-url {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--blanco);
  text-decoration: none;
}
.footer-url:hover {
  color: var(--verde-agua);
  text-decoration: none;
}
.footer-legal {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 1rem;
    background: var(--blanco);
    box-shadow: 0 8px 24px var(--sombra);
  }
  .nav.is-open { display: flex; }
  .menu-toggle { display: block; }
  .grid-2 {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .grid-2.reverse .section-media,
  .grid-2.reverse .section-body { order: unset; }
  .hero-content { margin: 0 auto; text-align: center; }
  .hero-ctas { justify-content: center; }
  .section { padding: 3rem 0; }
  .servicios-cards {
    grid-template-columns: 1fr 1fr;
  }
  .experiencia-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding-top: 5rem; }
  .section-title { font-size: 1.5rem; }
  .section-lead { font-size: 1.125rem; }
  .servicios-cards { grid-template-columns: 1fr; }
}
