﻿/* =========================
KAFKA INGENIERIA - NEGRO, BLANCO Y PLATEADO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --white: #ffffff;
  --paper: #f7f4ef;
  --paper-strong: #efe8df;
  --black: #101010;
  --ink: #1b1b1b;
  --muted: #696969;
  --accent: #c8cdd2;
  --accent-dark: #7f878f;
  --line: rgba(16,16,16,0.12);
  --soft-shadow: 0 22px 70px rgba(16,16,16,0.12);
  --hard-shadow: 0 28px 90px rgba(16,16,16,0.18);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.55;
}

body::selection {
  background: var(--accent);
  color: var(--black);
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

/* =========================
HEADER
========================= */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.9rem clamp(1rem, 4vw, 3rem);
  background: rgba(42,42,42,0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px) saturate(1.35);
}

.logo-buscador {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 1;
  min-width: 0;
}

.logo img {
  width: 500px;
  height: auto;
  display: block;
}

.search-bar {
  position: relative;
  display: flex;
  flex: 1;
  max-width: 420px;
  min-width: 230px;
}

.search-bar input {
  flex: 1;
  min-width: 0;
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-right: none;
  border-radius: 999px 0 0 999px;
  background: #f8f8f8;
  color: var(--black);
  outline: none;
}

.search-bar input:focus {
  border-color: var(--accent);
  background: var(--white);
}

.search-bar button {
  width: 48px;
  border: 1px solid var(--black);
  border-radius: 0 999px 999px 0;
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  transition: 0.22s ease;
}

.search-bar button:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.nav-menu a {
  color: var(--black);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  transition: 0.22s ease;
}

.nav-menu a:hover {
  color: var(--accent-dark);
}

.hamburger {
  display: none;
}

/* =========================
BOTONES
========================= */
.btn-primary,
.btn-secondary,
.btn-servicio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: fit-content;
  min-height: 46px;
  padding: 0.82rem 1.12rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.92rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, color 0.22s ease;
}

.btn-primary,
.btn-servicio {
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--black);
  box-shadow: 0 12px 28px rgba(200,205,210,0.24);
}

.btn-secondary {
  border: 1px solid var(--black);
  background: var(--white);
  color: var(--black);
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-servicio:hover {
  transform: translateY(-2px);
  box-shadow: var(--soft-shadow);
}

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

.btn-secondary:hover {
  background: var(--black);
  color: var(--white);
}

/* =========================
BUSCADOR
========================= */
#search-results {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 60;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--hard-shadow);
}

.search-result-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem;
  color: var(--black);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: 0.2s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--paper);
}

.search-result-item img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.search-result-item h4 {
  font-size: 0.95rem;
}

.search-result-item p,
.no-results {
  font-size: 0.84rem;
  color: var(--muted);
}

.no-results {
  padding: 0.9rem;
}

/* =========================
INDEX HERO
========================= */
.hero-home {
  padding: clamp(1rem, 3vw, 2rem);
  background: linear-gradient(180deg, var(--white), var(--paper));
}

.hero-frame {
  position: relative;
  min-height: calc(100vh - 124px);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--hard-shadow);
  isolation: isolate;
}

.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.56) 0%, rgba(255,255,255,0.34) 34%, rgba(255,255,255,0.08) 64%, rgba(255,255,255,0.02) 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
  min-height: calc(100vh - 124px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.hero-content span,
.section-heading span,
.about-kafka span,
.contacto-principal span,
.brochure-title-block span,
.client-label {
  display: inline-block;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-content h1 {
  margin: 0.8rem 0 1.2rem;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.hero-content p {
  max-width: 620px;
  color: #3b3b3b;
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

@keyframes heroDrift {
  from { transform: scale(1.01) translateX(0); }
  to { transform: scale(1.06) translateX(1.2%); }
}

/* =========================
SECCIONES INDEX
========================= */
.servicios,
.proceso,
.about-kafka,
.contacto-principal {
  padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 3rem);
  background: var(--white);
  color: var(--black);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 0.34fr 0.66fr;
  gap: 2rem;
  align-items: start;
}

.section-heading.compact {
  margin-bottom: 1.4rem;
}

.section-heading h2,
.about-kafka h2,
.contacto-principal h2 {
  font-size: clamp(2.1rem, 5vw, 5rem);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.cards-servicios {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.card-servicio {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 24px;
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--soft-shadow);
  transform: translateY(0);
  transition: transform 0.26s ease, box-shadow 0.26s ease;
}

.card-servicio:hover {
  transform: translateY(-8px);
  box-shadow: var(--hard-shadow);
}

.card-servicio img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-servicio:hover img {
  transform: scale(1.06);
}

.card-servicio::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,0.02), rgba(16,16,16,0.78));
}

.card-servicio > div {
  position: relative;
  z-index: 1;
  padding: 1.35rem;
}

.card-servicio span,
.steps-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.85rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--black);
  font-weight: 900;
}

.card-servicio h3 {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 0.7rem;
}

.card-servicio p {
  color: rgba(255,255,255,0.86);
}

.card-servicio em {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  margin-top: 1rem;
  padding: 0.68rem 0.95rem;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 999px;
  background: rgba(255,255,255,0.88);
  color: var(--black);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.card-servicio:hover em {
  transform: translateY(-2px);
  background: var(--accent);
  color: var(--black);
}

.brochure-brand {
  justify-content: flex-start;
}

.proceso {
  background: var(--paper);
}

.steps-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps-grid article {
  min-height: 260px;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(16,16,16,0.06);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.steps-grid article:hover {
  transform: translateY(-5px);
  border-color: rgba(200,205,210,0.55);
}

.steps-grid h3 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
}

.steps-grid p,
.about-kafka p,
.contacto-principal p {
  color: var(--muted);
}

.visual-band {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem) clamp(4rem, 8vw, 7rem);
  background: var(--paper);
}

.visual-band div {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  border-radius: 26px;
  box-shadow: var(--soft-shadow);
}

.visual-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.visual-band div:hover img {
  transform: scale(1.05);
}

.visual-band p {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  right: 1.2rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--black);
  font-weight: 900;
  width: fit-content;
}

.about-kafka {
  max-width: 1180px;
  margin: 0 auto;
}

.about-kafka p {
  max-width: 720px;
  margin-top: 1rem;
  font-size: 1.12rem;
}

.contacto-principal {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
  margin: 0 clamp(1rem, 4vw, 3rem) clamp(1rem, 4vw, 3rem);
  border-radius: 30px;
  background: var(--black);
  color: var(--white);
}

.contacto-principal p {
  color: rgba(255,255,255,0.72);
  margin-top: 0.8rem;
}

.contact-name {
  color: rgba(255,255,255,0.92) !important;
  font-weight: 900;
}

.contact-name i {
  margin-right: 0.45rem;
}

.contacto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.contacto-principal .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.55);
}

.contacto-principal .btn-secondary:hover {
  background: var(--white);
  color: var(--black);
}

footer {
  padding: 1.5rem 2rem;
  background: var(--white);
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

/* =========================
PAGINAS DE SERVICIO
========================= */
.brochure-main {
  background: linear-gradient(180deg, var(--white), var(--paper));
  padding: clamp(1rem, 3vw, 2rem);
}

.brochure-sheet {
  max-width: 1180px;
  margin: 0 auto;
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--line);
  border-radius: 30px;
  box-shadow: var(--hard-shadow);
  overflow: hidden;
}

.brochure-brand {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  padding: 1.2rem clamp(1.2rem, 4vw, 2rem);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.brochure-brand img {
  width: 94px;
  display: block;
  margin-bottom: 0.2rem;
}

.brochure-brand p,
.brochure-brand span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.brochure-brand span {
  max-width: 430px;
  text-align: right;
}

.brochure-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(320px, 1.05fr);
  min-height: 650px;
}

.brochure-photo {
  position: relative;
  min-height: 650px;
  overflow: hidden;
}

.brochure-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.brochure-sheet:hover .brochure-photo img {
  transform: scale(1.03);
}

.brochure-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16,16,16,0.04), rgba(16,16,16,0.72));
}

.brochure-title-block {
  position: absolute;
  left: clamp(1.2rem, 4vw, 2rem);
  right: clamp(1.2rem, 4vw, 2rem);
  bottom: clamp(1.2rem, 4vw, 2rem);
  z-index: 1;
  color: var(--white);
}

.brochure-title-block h1 {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.brochure-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

.brochure-copy h2 {
  max-width: 620px;
  color: var(--black);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  margin: 0.85rem 0 2rem;
}

.brochure-copy ul,
.brochure-extra ul {
  list-style: none;
}

.brochure-copy li,
.brochure-extra li {
  position: relative;
  padding: 1rem 0 1rem 2rem;
  border-top: 1px solid var(--line);
  color: #2a2a2a;
}

.brochure-copy li::before,
.brochure-extra li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(200,205,210,0.14);
}

.brochure-feature {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 2rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--black);
  color: var(--white);
}

.brochure-feature h2 {
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.brochure-feature p {
  color: rgba(255,255,255,0.74);
  font-size: 1.05rem;
}

.brochure-extra {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1rem;
  background: var(--paper);
}

.brochure-extra > div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.6rem;
}

.brochure-extra h2 {
  margin-bottom: 1.2rem;
  color: var(--black);
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

.brochure-contact {
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--white);
  color: var(--black);
  border-top: 1px solid var(--line);
}

.brochure-contact h2 {
  margin-bottom: 1.3rem;
  color: var(--black);
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem 1.4rem;
  margin-bottom: 2rem;
}

.contact-grid a,
.contact-grid span {
  color: var(--black);
  text-decoration: none;
  font-weight: 800;
}

.contact-grid i,
.brochure-contact .btn-servicio i {
  margin-right: 0.45rem;
}

/* =========================
LEGACY SLIDER SAFE
========================= */
.hero-slider,
.prev,
.next,
.slide,
.overlay {
  display: none;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 960px) {
  header {
    align-items: flex-start;
    flex-direction: column;
    gap: 1rem;
  }

  .logo-buscador,
  .navegacion,
  .search-bar {
    width: 100%;
  }

  .nav-menu {
    flex-wrap: wrap;
    gap: 0.9rem;
  }

  .section-heading,
  .cards-servicios,
  .steps-grid,
  .visual-band,
  .contacto-principal,
  .brochure-grid,
  .brochure-feature,
  .brochure-extra {
    grid-template-columns: 1fr;
  }

  .card-servicio {
    min-height: 430px;
  }

  .visual-band div {
    min-height: 300px;
  }

  .contacto-principal {
    margin: 0 1rem 1rem;
  }

  .brochure-photo,
  .brochure-grid {
    min-height: auto;
  }

  .brochure-photo {
    height: 520px;
  }

  .brochure-brand {
    flex-direction: column;
    align-items: flex-start;
  }

  .brochure-brand span {
    text-align: left;
  }
}

@media (max-width: 620px) {
  header {
    position: sticky;
    top: 0;
  }

  .logo-buscador {
    flex-wrap: wrap;
  }

  .hero-frame,
  .hero-content {
    min-height: 680px;
  }

  .hero-frame {
    border-radius: 22px;
  }

  .hero-frame::after {
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.78), rgba(255,255,255,0.18));
  }

  .hero-content {
    justify-content: flex-start;
    padding: 2rem 1.2rem;
  }

  .hero-actions,
  .contacto-actions {
    width: 100%;
  }

  .btn-primary,
  .btn-secondary,
  .btn-servicio {
    width: 100%;
  }

  .servicios,
  .proceso,
  .about-kafka,
  .contacto-principal {
    padding: 4rem 1rem;
  }

  .visual-band {
    padding: 1rem 1rem 4rem;
  }

  .brochure-main {
    padding: 1rem;
  }

  .brochure-sheet {
    border-radius: 22px;
  }

  .brochure-copy,
  .brochure-feature,
  .brochure-contact,
  .brochure-extra > div {
    padding: 1.4rem;
  }

  .brochure-photo {
    height: 430px;
  }
}

/* =========================
LIQUID GLASS
========================= */
.hero-content,
.section-heading,
.steps-grid article,
.brochure-brand,
.brochure-copy,
.brochure-extra > div,
.brochure-contact {
  background: linear-gradient(135deg, rgba(255,255,255,0.72), rgba(255,255,255,0.42));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 18px 55px rgba(16,16,16,0.08);
  backdrop-filter: blur(18px) saturate(1.22);
}

.hero-content {
  min-height: auto;
  margin: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 30px;
}

.hero-content::before,
.card-servicio::before,
.brochure-sheet::before {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.88), rgba(255,255,255,0) 34%);
}

.card-servicio::before {
  inset: 0;
  z-index: 2;
  opacity: 0.28;
}

.card-servicio > div {
  padding: 1.35rem;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
  backdrop-filter: blur(14px) saturate(1.18);
}

.section-heading {
  padding: 1.4rem;
  border-radius: 26px;
}

.visual-band p {
  background: linear-gradient(135deg, rgba(255,255,255,0.82), rgba(255,255,255,0.58));
  border: 1px solid rgba(255,255,255,0.74);
  backdrop-filter: blur(14px) saturate(1.2);
}

.brochure-sheet {
  position: relative;
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(16px) saturate(1.16);
}

.brochure-sheet::before {
  inset: 0;
  opacity: 0.35;
  z-index: 0;
}

.brochure-sheet > * {
  position: relative;
  z-index: 1;
}

.brochure-brand,
.brochure-copy,
.brochure-contact {
  border-radius: 0;
}

.contacto-principal {
  background: linear-gradient(135deg, rgba(16,16,16,0.94), rgba(16,16,16,0.78));
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18), var(--hard-shadow);
  backdrop-filter: blur(18px) saturate(1.2);
}

@media (max-width: 620px) {
  .hero-content {
    margin: 1rem;
  }
}

/* =========================
AJUSTES HEADER DARK GLASS
========================= */
header .logo img {
  width: 126px;
}

header .nav-menu a {
  color: rgba(255,255,255,0.9);
}

header .nav-menu a:hover {
  color: var(--accent);
}

.hero-frame::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.48) 0%, rgba(255,255,255,0.28) 34%, rgba(255,255,255,0.06) 64%, rgba(255,255,255,0) 100%);
}

.hero-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.48), rgba(255,255,255,0.24));
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.58), 0 18px 55px rgba(16,16,16,0.10);
  backdrop-filter: blur(22px) saturate(1.32);
}

.hero-content::before {
  display: none;
}

.hero-frame img {
  filter: saturate(1.08) contrast(1.02) brightness(1.06);
}

/* =========================
AJUSTES FINOS SOLICITADOS
========================= */
header {
  background: rgba(44,44,44,0.72);
  border-bottom: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(22px) saturate(1.35);
}

header .logo img {
  width: 126px;
}

header .nav-menu a {
  color: rgba(255,255,255,0.9);
}

header .nav-menu a:hover {
  color: var(--accent);
}

header .search-bar input {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.16);
  color: var(--white);
}

header .search-bar input::placeholder {
  color: rgba(255,255,255,0.68);
}

header .search-bar input:focus {
  border-color: rgba(200,205,210,0.85);
  background: rgba(255,255,255,0.22);
}

header .search-bar button {
  background: rgba(255,255,255,0.92);
  color: var(--black);
  border-color: rgba(255,255,255,0.92);
}

.hero-frame img {
  filter: saturate(1.08) contrast(1.02) brightness(1.06);
}

.hero-frame::after {
  background: linear-gradient(90deg, rgba(255,255,255,0.48) 0%, rgba(255,255,255,0.28) 34%, rgba(255,255,255,0.06) 64%, rgba(255,255,255,0) 100%);
}

.hero-content {
  background: linear-gradient(135deg, rgba(255,255,255,0.48), rgba(255,255,255,0.24));
  border: 1px solid rgba(255,255,255,0.58);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.58), 0 18px 55px rgba(16,16,16,0.10);
  backdrop-filter: blur(22px) saturate(1.32);
}

.hero-content::before {
  display: none;
}

@media (max-width: 620px) {
  header .logo img {
    width: 112px;
  }
}

/* =========================
LOGO Y WHATSAPP FLOAT
========================= */
header .logo img {
  width: 148px;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(44,44,44,0.72);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
  font-size: 2rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 18px 48px rgba(16,16,16,0.22);
  backdrop-filter: blur(20px) saturate(1.35);
  transition: transform 0.24s ease, background 0.24s ease, color 0.24s ease;
}

.whatsapp-float:hover {
  transform: translateY(-4px) scale(1.04);
  background: rgba(200,205,210,0.86);
  color: var(--black);
}

@media (max-width: 620px) {
  header .logo img {
    width: 126px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
    width: 58px;
    height: 58px;
    font-size: 1.75rem;
  }
}

/* =========================
KAFKA INGENIERIA
========================= */
:root {
  --white: #ffffff;
  --paper: #f4f5f5;
  --paper-strong: #e1e3e3;
  --black: #08090a;
  --ink: #151617;
  --muted: #666b70;
  --accent: #c8cdd2;
  --accent-dark: #7f878f;
  --silver: #c8cdd2;
  --silver-dark: #7f878f;
  --line: rgba(8,9,10,0.12);
  --soft-shadow: 0 22px 70px rgba(8,9,10,0.12);
  --hard-shadow: 0 30px 96px rgba(8,9,10,0.20);
}

body {
  background: #f7f8f8;
}

body::selection {
  background: var(--silver);
  color: var(--black);
}

header {
  background: rgba(8,9,10,0.76);
  box-shadow: 0 14px 36px rgba(8,9,10,0.16);
}

header .logo img,
.brochure-brand img {
  width: 104px;
  max-height: 76px;
  object-fit: contain;
  border-radius: 4px;
}

header .logo img {
  width: 270px;
  max-height: 160px;
}

.hero-home {
  background:
    linear-gradient(180deg, rgba(255,255,255,1), rgba(231,233,234,1));
}

.kafka-hero .hero-content {
  max-width: 680px;
}

.hero-content h1 {
  letter-spacing: 0;
}

.hero-content p {
  color: rgba(18,19,20,0.76);
  font-weight: 650;
}

.hero-content span,
.section-heading span,
.about-kafka span,
.contacto-principal span,
.brochure-title-block span,
.client-label {
  color: var(--accent-dark);
}

.btn-primary,
.btn-servicio,
.card-servicio span,
.steps-grid span,
.brochure-copy li::before,
.brochure-extra li::before {
  background: var(--accent);
}

.brochure-copy li::before,
.brochure-extra li::before {
  box-shadow: 0 0 0 5px rgba(200,205,210,0.18);
}

.btn-primary,
.btn-servicio {
  border-color: var(--accent);
  box-shadow: 0 12px 30px rgba(8,9,10,0.12);
}

.search-bar input:focus {
  border-color: rgba(200,205,210,0.95);
}

.search-bar button:hover,
header .nav-menu a:hover,
.whatsapp-float:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
}

.section-heading h2,
.about-kafka h2,
.contacto-principal h2,
.brochure-copy h2,
.brochure-feature h2,
.brochure-contact h2 {
  letter-spacing: 0;
}

.card-servicio {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.22);
}

.card-servicio h3 {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
  letter-spacing: 0;
}

.card-servicio p {
  font-weight: 650;
}

.card-servicio::after {
  background: linear-gradient(180deg, rgba(8,8,8,0.04), rgba(8,8,8,0.84));
}

.proceso,
.visual-band,
.brochure-extra {
  background:
    linear-gradient(135deg, rgba(8,9,10,0.035), rgba(200,205,210,0.22)),
    var(--paper);
}

.visual-band div {
  border-radius: 18px;
}

.visual-band p {
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  color: var(--ink);
}

.contacto-principal {
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(8,9,10,0.96), rgba(31,33,35,0.9)),
    var(--black);
}

.brochure-sheet {
  border-radius: 18px;
}

.brochure-photo::after {
  background: linear-gradient(180deg, rgba(10,10,10,0.02), rgba(10,10,10,0.82));
}

.brochure-title-block h1 {
  letter-spacing: 0;
}

.brochure-extra > div {
  border-radius: 14px;
}

.whatsapp-float {
  background: rgba(8,9,10,0.78);
}

.hero-frame,
.brochure-sheet,
.contacto-principal,
.card-servicio,
.visual-band div {
  border-color: rgba(255,255,255,0.28);
}

.hero-frame::after {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.52) 0%, rgba(255,255,255,0.32) 32%, rgba(255,255,255,0.08) 64%, rgba(255,255,255,0) 100%),
    linear-gradient(180deg, rgba(8,9,10,0.04), rgba(8,9,10,0.12));
}

.hero-content,
.section-heading,
.steps-grid article,
.brochure-copy,
.brochure-extra > div,
.brochure-contact {
  background: linear-gradient(135deg, rgba(255,255,255,0.70), rgba(239,241,242,0.36));
  border: 1px solid rgba(255,255,255,0.62);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.78), 0 18px 56px rgba(8,9,10,0.08);
}

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

.btn-secondary {
  border-color: rgba(8,9,10,0.38);
  background: rgba(255,255,255,0.86);
}

.steps-grid article:hover {
  border-color: rgba(127,135,143,0.48);
}

.brochure-feature {
  background:
    linear-gradient(135deg, rgba(8,9,10,0.98), rgba(35,37,39,0.94));
}

@media (max-width: 620px) {
  header .logo img {
    width: 230px;
    max-height: 140px;
  }

  header .logo {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  header .logo-buscador {
    justify-content: center;
  }

  header .search-bar {
    display: none;
  }

  header .navegacion {
    width: 100%;
  }

  header .nav-menu {
    width: 100%;
    justify-content: center;
    gap: clamp(0.85rem, 5vw, 1.35rem);
  }

  header .nav-menu a {
    text-align: center;
  }

  .hero-home {
    padding: 1rem;
  }

  .hero-frame,
  .hero-content {
    min-height: auto;
  }

  .hero-content {
    width: auto;
    max-width: none;
    margin: 1rem;
    padding: 1.45rem;
    border-radius: 24px;
  }

  .hero-content h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
    line-height: 0.98;
    overflow-wrap: anywhere;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .section-heading h2,
  .about-kafka h2,
  .contacto-principal h2 {
    font-size: clamp(2rem, 11vw, 3.3rem);
  }
}
