/* ==========================================================================
   APPS KD · style.css (hoja compartida por todas las páginas)
   Orden: variables · base · header/menú · hero · botones y tarjetas · apps ·
   samplers · sonidos · footer · espaciado global · responsive · "Sobre Apps KD"
   La página de placas conserva su propia hoja: css/placas.css
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
  --bg: #080812;
  --bg2: #111122;
  --card: #17172b;
  --card2: #20203a;
  --text: #fff;
  --muted: #b8b8c9;
  --primary: #ff2bd6;
  --secondary: #6d5dfc;
  --accent: #00e5ff;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* ---------- Base ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(
      circle at 10% 10%,
      rgba(255, 43, 214, 0.15),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 20%,
      rgba(0, 229, 255, 0.12),
      transparent 28%
    ),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}
a {
  text-decoration: none;
  color: inherit;
}
img {
  max-width: 100%;
  display: block;
}
.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* ---------- Header y navegación ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8, 8, 18, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  width: min(1600px, 100%);
}
.navbar {
  position: relative;
  min-height: 73px;
  display: grid;
  grid-template-columns: 122px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 6px 16px;
}
.navbar nav {
  grid-column: 2;
  justify-self: center;
}
.brand {
  grid-column: 1;
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.5px;
}
.brand-logo {
  width: 114px;
  height: 68.4px;
  border-radius: 16px;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(255, 43, 214, 0.3);
}
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 4px;
  list-style: none;
}
.nav-links > li {
  position: relative;
}
.nav-links a {
  display: block;
  padding: 12px 10px;
  border-radius: 10px;
  color: #ddd;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  transition: 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: linear-gradient(
    90deg,
    rgba(255, 43, 214, 0.2),
    rgba(109, 93, 252, 0.2)
  );
  color: #fff;
}
.nav-dropdown-indicator {
  display: inline-block;
  margin-left: 3px;
  font-size: 0.85em;
}
.nav-submenu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 1;
  min-width: 220px;
  padding: 8px;
  list-style: none;
  background: rgba(8, 8, 18, 0.98);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.nav-dropdown:hover > .nav-submenu,
.nav-dropdown:focus-within > .nav-submenu {
  display: block;
}
.nav-submenu a {
  padding: 12px;
}
@media (min-width: 901px) and (max-width: 1200px) {
  .navbar {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    padding-right: 10px;
    padding-left: 10px;
  }
  .brand-logo {
    width: 96px;
    height: 58px;
  }
  .nav-links {
    gap: 1px;
  }
  .nav-links a {
    padding: 10px 5px;
    font-size: 13px;
  }
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}

/* ---------- Hero (inicio) ---------- */
.hero {
  padding: 30px 0 clamp(30px, 5vw, 60px);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 5rem);
  text-transform: uppercase;
  line-height: 1.2;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p {
  margin-top: 18px;
  max-width: 52ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  line-height: 1.7;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}
.hero-cta .btn-ghost {
  width: auto;
  min-width: 200px;
  white-space: nowrap;
}
.hero-cta svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

/* Pads decorativos */
.pads {
  padding: 20px;
  border-radius: 22px;
  background: linear-gradient(160deg, var(--card2), var(--card));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  max-width: 420px;
  margin-inline: auto;
  width: 100%;
}
.pads-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pad {
  aspect-ratio: 1;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1020;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.08s,
    box-shadow 0.25s,
    background 0.25s;
}
.pad::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c);
  opacity: 0.35;
  transition:
    opacity 0.2s,
    box-shadow 0.2s;
}
.pad:hover {
  background: color-mix(in srgb, var(--c) 22%, #0a1020);
}
.pad.hit {
  box-shadow:
    0 0 28px color-mix(in srgb, var(--c) 70%, transparent),
    inset 0 0 0 1.5px var(--c);
}
.pad.hit::after {
  opacity: 1;
  box-shadow: 0 0 10px var(--c);
}
.pads-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Ecualizador animado */
.eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 34px;
}
.eq i {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(var(--secondary), var(--accent));
  height: 30%;
  animation: eq 1.1s ease-in-out infinite;
  transform-origin: bottom;
}
.eq i:nth-child(2n) {
  animation-delay: -0.4s;
  background: linear-gradient(var(--primary), var(--accent));
}
.eq i:nth-child(3n) {
  animation-delay: -0.8s;
}
@keyframes eq {
  0%,
  100% {
    height: 25%;
  }
  50% {
    height: 100%;
  }
}

/* ---------- Secciones, tarjetas y botones ---------- */
.section {
  padding: 55px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 35px;
}
.section-title h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.15;
}
.section-title p {
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- Contacto y páginas legales ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 34px;
}
@media (min-width: 821px) {
  .contact-grid {
    max-width: 1100px;
    margin-inline: auto;
  }
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.contact-card .ico {
  font-size: 34px;
  line-height: 1;
}
.contact-card h3 {
  margin-bottom: 0;
}
.contact-card .dato {
  color: var(--accent);
  font-weight: 700;
  word-break: break-word;
}
.contact-card p {
  font-size: 15px;
}
.contact-card .btn {
  margin-top: auto;
}
.contact-card .btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: auto;
  min-height: 48px;
  padding: 12px 24px;
  color: #fff;
  background: #20b85a;
  border: 1px solid #20b85a;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}
.contact-card .btn-wa svg {
  width: 23px;
  height: 23px;
}
.contact-card .btn-wa:hover {
  background: #159447;
  box-shadow: 0 7px 20px rgba(32, 184, 90, 0.23);
  transform: translateY(-2px);
}
.contact-form {
  max-width: 760px;
  margin: auto;
}
@media (min-width: 821px) {
  .contact-form {
    max-width: 900px;
  }
}
.contact-form h2,
.legal-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}
.contact-form h2 {
  margin-bottom: 6px;
  text-align: center;
}
.form-intro {
  margin-bottom: 22px;
  text-align: center;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.field label {
  font-size: 14px;
  font-weight: 700;
}
.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}
.check input {
  margin-top: 3px;
  accent-color: var(--primary);
}
.check a,
.legal-card a,
.form-status a {
  color: var(--accent);
  text-decoration: underline;
}
.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}
.form-status {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
}
.form-status.ok {
  display: block;
  color: #c9f7dc;
  background: rgba(37, 211, 102, 0.12);
  border: 1px solid rgba(37, 211, 102, 0.5);
}
.form-status.err {
  display: block;
  color: #ffd0d0;
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.5);
}
.legal-toc {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}
.legal-toc a {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  font-size: 14px;
  font-weight: 700;
}
.legal-toc a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.legal-card {
  margin-bottom: 24px;
  scroll-margin-top: 90px;
}
.legal-card h2 {
  margin-bottom: 6px;
  line-height: 1.2;
}
.legal-card h3 {
  margin: 22px 0 8px;
  color: var(--accent);
  font-size: 1.08rem;
  text-align: left;
}
.legal-card p,
.legal-card li {
  color: var(--muted);
  line-height: 1.75;
}
.legal-card p {
  margin-bottom: 12px;
}
.legal-card ul {
  margin: 0 0 12px 22px;
}
.legal-card li {
  margin-bottom: 6px;
}
.legal-card a {
  word-break: break-word;
}
.legal-card strong {
  color: #fff;
}
.legal-date {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: linear-gradient(
    145deg,
    rgba(32, 32, 58, 0.9),
    rgba(18, 18, 35, 0.95)
  );
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  box-shadow: var(--shadow);
}
.card h3 {
  text-align: center;
  margin-bottom: 10px;
  font-size: 21px;
}
.card p {
  color: var(--muted);
  line-height: 1.65;
}

.btn,
.btn2 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 11px;
  padding: 12px 18px;
  font-weight: 900;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: 0.2s;
  box-shadow: 0 8px 20px rgba(109, 93, 252, 0.22);
}
.btn {
  width: 100%;
  margin-inline: auto;
}
.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}
.btn2:hover {
  transform: translateY(-5px);
  filter: brightness(1.08);
}
.btn-secondary {
  width: 100%;
  margin-inline: auto;
  background: linear-gradient(90deg, #00a9bd, #2563eb);
}

.quick-card {
  text-align: center;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
}
.icon {
  font-size: 45px;
}
.ios-icon {
  width: 45px;
  height: 45px;
  object-fit: contain;
  display: block;
}

/* ---------- Apps (tarjetas cuadradas) ---------- */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}
.app-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}
.app-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.app-images-single {
  grid-template-columns: 1fr;
}
.app-images img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, #29294a, #111122);
  border: 1px solid var(--border);
}
.app-info {
  min-width: 0;
}
.app-info p {
  font-size: 14px;
  margin-bottom: 14px;
}
.app-info .btn {
  width: 100%;
  font-size: 13px;
  padding: 10px 12px;
}

/* ---------- Samplers virtuales y apps PC (tarjetas horizontales) ---------- */
.samp_virtuales-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}
.app-card-horizontal {
  display: grid;
  grid-template-columns: 500px 1fr;
  gap: 28px;
  align-items: center;
  padding: 20px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(32, 32, 58, 0.9),
    rgba(18, 18, 35, 0.95)
  );
  box-shadow: var(--shadow);
}
.app-images-horizontal {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #111122;
}
.app-images-horizontal img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
}
.app-info-horizontal {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 10px 0;
}
.app-info-horizontal h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.app-info-horizontal p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 90%;
}
.app-info-horizontal .btn {
  width: 100%;
  max-width: 300px;
  font-size: 16px;
  padding: 14px 24px;
  align-self: flex-start;
}

/* ---------- Sonidos ---------- */
.sound-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.sound-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}
/* Portada: misma proporción para todas (imagen o símbolo de música). Cambia 4 / 3 si quieres otra. */
.sound-card .sound-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  flex: none;
  overflow: hidden;
  background: linear-gradient(135deg, #ff2bd6, #6d5dfc, #00e5ff);
  display: grid;
  place-items: center;
  font-size: 40px;
}
.sound-card .sound-cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sound-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
/* Título: 1 línea · Descripción: 2 líneas · Botón siempre abajo (mismo tamaño en todas las cards) */
.sound-content h3 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}
.sound-content p {
  color: var(--muted);
  margin: 7px 0 16px;
  min-height: 3.3em;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
}
.sound-content .btn {
  margin-top: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: #06060e;
}
.footer-inner {
  padding: 20px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}
.footer-inner--links {
  flex-direction: column;
  gap: 8px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
}
.footer-links a:hover {
  color: var(--accent);
}
.footer-inner p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

/* ---------- Espaciado uniforme (todas las páginas) ----------
   25px entre el header y el contenido · 10px entre el contenido y el footer
   (los 10px los aporta .site-footer { margin-top }). */
main > section:first-child {
  padding-top: 25px;
}
main > section:last-child {
  padding-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .pads {
    margin-top: 30px;
  }
  .grid,
  .sound-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .apps-grid {
    grid-template-columns: 1fr;
  }
  .app-card-horizontal {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .app-images-horizontal {
    height: auto;
    max-height: 300px;
  }
  .app-images-horizontal img {
    height: auto;
  }
  .app-info-horizontal {
    margin-top: 16px;
    align-items: center;
  }
  .app-info-horizontal .btn {
    max-width: 280px;
    align-self: auto;
  }
}

@media (max-width: 820px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

@media (max-width: 900px) {
  .navbar {
    min-height: 88px;
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }
  .navbar nav {
    grid-column: 1;
    width: 100%;
  }
  .brand {
    grid-column: 1;
    max-width: calc(100% - 48px);
    gap: 12px;
    font-size: 18px;
  }
  .brand-logo {
    width: 120px;
    height: 72px;
    border-radius: 14px;
    font-size: 30px;
    flex: 0 0 auto;
    object-fit: cover;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 16px;
    font-size: 34px;
  }

  @media (max-width: 700px) {
    .hero-cta {
      justify-content: center;
    }
    .hero-cta > .btn2 {
      min-width: 230px;
    }
  }
  .nav-links {
    display: none;
    position: static;
    width: 100%;
    padding: 10px;
    background: rgba(8, 8, 18, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links li,
  .nav-links a {
    width: 100%;
  }
  .nav-links a {
    text-align: center;
    padding: 13px;
  }
  .nav-submenu {
    display: block;
    position: static;
    min-width: 0;
    padding: 0 0 0 12px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav-submenu a {
    text-align: center;
  }
  .grid,
  .sound-grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    grid-template-columns: 1fr;
  }
  .app-images {
    max-width: 300px;
    margin: auto;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ---------- Sección "Sobre Apps KD" y redes sociales (index) ---------- */

.apps-kd-about {
  padding-top: 55px;
  padding-bottom: 75px;
}

.apps-kd-heading {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 35px;
}

.apps-kd-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.apps-kd-heading h1,
.apps-kd-heading h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 16px;
}

.apps-kd-heading h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: #fff;
}

.apps-kd-heading h1 em,
.apps-kd-heading h2 em {
  color: var(--primary);
  font-style: normal;
}

.apps-kd-heading > p {
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.apps-kd-story {
  position: relative;
  max-width: 950px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
  background:
    radial-gradient(
      circle at top right,
      rgba(109, 93, 252, 0.13),
      transparent 38%
    ),
    var(--card);
  border: 1px solid rgba(109, 93, 252, 0.35);
  border-radius: 22px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.2);
}

.apps-kd-symbol {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  border-radius: 18px;
  color: var(--accent);
  font-size: 2.5rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.08);
}

.apps-kd-story h2 {
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  margin: 0 0 22px;
}

.apps-kd-story > p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.9;
  margin: 0 0 17px;
}

.apps-kd-story > p strong {
  color: #fff;
}

.apps-kd-message {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding: 22px;
  border-radius: 16px;
  background: rgba(255, 43, 214, 0.07);
  border: 1px solid rgba(255, 43, 214, 0.28);
}

.apps-kd-message-icon {
  flex-shrink: 0;
  font-size: 2rem;
}

.apps-kd-message h3 {
  color: var(--primary);
  font-size: 1.25rem;
  margin: 0 0 7px;
}

.apps-kd-message p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Redes sociales */

.apps-kd-social {
  max-width: 1050px;
  margin: 70px auto 0;
}

.apps-kd-social-heading {
  margin-bottom: 30px;
}

.apps-kd-heading h2 {
  color: #fff;
  font-size: clamp(2rem, 5vw, 3rem);
}

.apps-kd-social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.apps-kd-social-card {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
  padding: 22px;
  color: #fff;
  text-decoration: none;
  background: var(--card);
  border: 1px solid rgba(184, 184, 201, 0.16);
  border-radius: 17px;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.apps-kd-social-card:hover {
  transform: translateY(-4px);
  border-color: var(--social-color, var(--primary));
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.apps-kd-social-icon {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  color: var(--social-color);
  background: color-mix(in srgb, var(--social-color) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--social-color) 35%, transparent);
  font-size: 1.8rem;
  font-weight: 700;
}

.apps-kd-social-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.apps-kd-social-info strong {
  color: #fff;
  font-size: 1.05rem;
}

.apps-kd-social-info > span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.apps-kd-social-arrow {
  flex-shrink: 0;
  color: var(--social-color);
  font-size: 1.4rem;
}

.apps-kd-facebook {
  --social-color: #72a4ff;
}

.apps-kd-tiktok {
  --social-color: #ff5bd7;
}

.apps-kd-youtube {
  --social-color: #ff6262;
}

.apps-kd-whatsapp {
  --social-color: #25d366;
}
/* Adaptación a celulares y tablets */

@media (max-width: 650px) {
  .apps-kd-about {
    padding-top: 38px;
    padding-bottom: 50px;
  }

  .apps-kd-social {
    margin-top: 48px;
  }

  .apps-kd-social-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .apps-kd-social-card {
    padding: 17px;
  }

  .apps-kd-message {
    align-items: flex-start;
    padding: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apps-kd-social-card {
    transition: none;
  }

  .apps-kd-social-card:hover {
    transform: none;
  }
}

/* Icono a la izquierda y descripción a la derecha */

.apps-kd-story-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}

.apps-kd-story-header .apps-kd-symbol {
  position: sticky;
  top: 20px;
  margin: 5px 0 0;
  width: 76px;
  height: 76px;
  font-size: 3rem;
}

.apps-kd-story-header h2 {
  margin: 0;
  color: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.2;
}

/* Ampliar únicamente la sección de presentación de Apps KD */
.apps-kd-story.card {
  max-width: 1200px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

/* Ajustes para móviles */

@media (max-width: 600px) {
  .apps-kd-story-header {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 15px;
  }

  .apps-kd-story-header .apps-kd-symbol {
    position: static;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    font-size: 2.2rem;
  }
}

/* Iconos SVG (WhatsApp) contenidos en el recuadro de 48px, alineados con los demás */
.apps-kd-social-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}
