/* KYM 360 Solutions — carta de presentación
   Paleta tomada del logotipo oficial y de las piezas del sitio actual.
   Tipografías: PT Serif y Open Sans, las mismas del sitio original. */

:root {
  --navy: #000c18;
  --navy-2: #071422;
  --cyan: #66cdcc;
  --cyan-dark: #1a7a79;
  --ink: #1c2430;
  --muted: #5a6570;
  --line: #d8dee3;
  --paper: #ffffff;
  --mist: #f4f7f8;
  --shadow: 0 12px 40px rgba(0, 12, 24, 0.08);
  --radius: 16px;
  --header-h: 84px;
  --max: 1120px;
  --font-serif: "PT Serif", Georgia, "Times New Roman", serif;
  --font-sans: "Open Sans", Arial, Helvetica, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: #fff;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--cyan-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--navy);
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--font-serif);
  line-height: 1.24;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: 12px;
  top: 0;
  transform: translateY(-200%);
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}

.skip:focus {
  transform: none;
  top: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 -12px 0 #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
  padding: 10px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
}

.brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.brand-sub {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
}

.nav ul {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav a {
  display: inline-block;
  padding: 10px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--navy);
  background: var(--mist);
}

.nav a.cta {
  background: var(--navy);
  color: #fff;
  margin-left: 8px;
}

.nav a.cta:hover {
  background: #123;
  color: #fff;
}

#nav-toggle {
  display: none;
}

/* Hero */
.hero {
  background: var(--navy);
  color: #e8eef2;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 72px 0 80px;
}

.hero h1 {
  color: #fff;
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  margin-bottom: 0.4em;
}

.hero .lead {
  font-size: 1.15rem;
  line-height: 1.55;
  color: #c5d0d6;
  max-width: 36rem;
  margin-bottom: 1.6em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-cyan {
  background: var(--cyan);
  color: var(--navy);
}

.btn-cyan:hover {
  background: #7fe0df;
  color: var(--navy);
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.hero-photo {
  position: relative;
}

.hero-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.hero-photo figcaption {
  position: absolute;
  left: 16px;
  bottom: 16px;
  margin: 0;
  background: rgba(0, 12, 24, 0.72);
  color: #fff;
  font-size: 0.78rem;
  padding: 6px 10px;
  border-radius: 8px;
}

/* Sections */
.section {
  padding: 80px 0;
  scroll-margin-top: 96px;
}

#inicio {
  scroll-margin-top: 0;
}

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

.eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--cyan-dark);
  margin: 0 0 10px;
}

.section h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.intro {
  font-size: 1.05rem;
  max-width: 46rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.split img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.enfoque {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 26px;
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.4em;
}

.card p {
  color: var(--muted);
  font-size: 0.98rem;
}

.mark {
  width: 36px;
  height: 4px;
  background: var(--cyan);
  border-radius: 4px;
  margin-bottom: 16px;
}

/* Courses */
.catalogo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.curso {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 148px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.curso:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.curso h3 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.35;
  margin: 0;
}

.tag {
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  background: #e6f7f7;
  border: 1px solid #bfe8e7;
  padding: 3px 8px;
  border-radius: 999px;
}

/* Clients */
.clientes-frame {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}

.clientes-frame img {
  width: 100%;
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Contact */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contacto-foto img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-list {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list .label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a,
.contact-list .value {
  color: var(--navy);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--cyan-dark);
}

.wa-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.btn-wa {
  background: #25d366;
  color: #062;
  border: 0;
  font-size: 0.85rem;
  padding: 8px 14px;
}

.btn-wa:hover {
  background: #1fbe5a;
  color: #041;
}

.social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  background: #fff;
}

.social a:hover {
  border-color: var(--navy);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #9aa7b0;
  padding: 28px 0;
  font-size: 0.9rem;
}

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

.site-footer a {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid,
  .split,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-grid {
    padding: 48px 0 56px;
  }

  .hero-photo {
    order: -1;
  }

  .hero-photo img,
  .split img,
  .contacto-foto img {
    height: 260px;
  }

  .enfoque,
  .catalogo {
    grid-template-columns: 1fr 1fr;
  }

  .nav-toggle {
    display: block;
    z-index: 120;
  }

  .nav {
    position: fixed;
    inset: 0 0 auto 0;
    top: var(--header-h);
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 20px 20px;
    display: none;
    box-shadow: var(--shadow);
  }

  #nav-toggle:checked ~ .nav {
    display: block;
  }

  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav a,
  .nav a.cta {
    margin: 0;
    width: 100%;
    text-align: center;
    border-radius: 10px;
  }
}

@media (max-width: 600px) {
  .wrap {
    width: min(var(--max), calc(100% - 28px));
  }

  .section {
    padding: 56px 0;
  }

  .brand-text {
    display: none;
  }

  .brand img {
    width: 48px;
    height: 48px;
  }

  .enfoque,
  .catalogo {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 2rem;
  }
}
