/* ==========================================================
   JHON ARIAS — PORTFOLIO CSS MEJORADO
   Diseño: dark / cyan / glassmorphism
   Mantiene las clases de tu HTML actual.
   ========================================================== */

/* =========================
   1. VARIABLES
========================= */

:root {
  --bg: #030b18;
  --bg-2: #071326;
  --surface: rgba(8, 20, 39, .72);
  --surface-solid: #0a172b;

  --primary: #00e5ff;
  --primary-2: #10b7ff;
  --primary-soft: rgba(0, 229, 255, .14);
  --primary-glow: rgba(0, 229, 255, .28);

  --text: #f5f8fc;
  --text-soft: #a7b5c9;
  --text-dim: #73839a;

  --border: rgba(148, 163, 184, .14);
  --border-strong: rgba(0, 229, 255, .38);

  --white-soft: rgba(255,255,255,.05);

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;

  --container: 1240px;
  --header-height: 82px;

  --shadow:
    0 25px 70px rgba(0, 0, 0, .35);

  --shadow-cyan:
    0 0 45px rgba(0, 229, 255, .16);

  --ease: cubic-bezier(.2,.8,.2,1);
  --transition: .35s var(--ease);
}


/* =========================
   2. LIGHT MODE
========================= */

.light-mode {
  --bg: #f5f8fc;
  --bg-2: #eaf0f7;
  --surface: rgba(255,255,255,.78);
  --surface-solid: #ffffff;

  --primary: #009fbe;
  --primary-2: #087fd4;
  --primary-soft: rgba(0, 159, 190, .10);
  --primary-glow: rgba(0, 159, 190, .18);

  --text: #0d1a2c;
  --text-soft: #536176;
  --text-dim: #748198;

  --border: rgba(15, 23, 42, .11);
  --border-strong: rgba(0, 159, 190, .35);

  --white-soft: rgba(15,23,42,.035);

  --shadow:
    0 22px 60px rgba(15, 23, 42, .12);

  --shadow-cyan:
    0 0 40px rgba(0, 159, 190, .10);
}


/* =========================
   3. RESET
========================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  color: var(--text);

  background:
    radial-gradient(
      circle at 75% 20%,
      rgba(0,229,255,.055),
      transparent 28%
    ),
    radial-gradient(
      circle at 15% 75%,
      rgba(16,183,255,.045),
      transparent 25%
    ),
    linear-gradient(135deg, var(--bg), var(--bg-2));

  overflow-x: hidden;

  transition:
    background .45s ease,
    color .35s ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(0,229,255,.018) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(0,229,255,.018) 1px,
      transparent 1px
    );

  background-size: 80px 80px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

ul {
  list-style: none;
}


/* =========================
   4. PARTICLES
========================= */

#particles-js {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .55;
}

.light-mode #particles-js {
  opacity: .55;
}


/* =========================
   5. CONTAINER / SECTIONS
========================= */

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

section {
  position: relative;
  padding: 105px 0;
  text-align: center;

  background: transparent;

  transition:
    background .4s ease,
    color .35s ease;
}

section:nth-of-type(even) {
  background:
    linear-gradient(
      180deg,
      rgba(7,19,38,.28),
      rgba(7,19,38,.58)
    );
}

.light-mode section:nth-of-type(even) {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,.25),
      rgba(231,238,247,.55)
    );
}

.section-title {
  position: relative;
  width: fit-content;
  margin: 0 auto 42px;

  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -.035em;
}

.section-title::after {
  content: "";
  display: block;

  width: 58px;
  height: 3px;

  margin: 16px auto 0;

  border-radius: 99px;
  background: linear-gradient(
    90deg,
    var(--primary),
    var(--primary-2)
  );

  box-shadow: 0 0 18px var(--primary-glow);
}


/* =========================
   6. HEADER / NAVBAR
========================= */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);

  z-index: 1000;

  background: rgba(3,11,24,.70);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  border-bottom: 1px solid var(--border);

  transition:
    background .35s ease,
    border-color .35s ease,
    box-shadow .35s ease;
}

.light-mode .header {
  background: rgba(255,255,255,.76);
}

.nav {
  height: 100%;

  display: flex;
  align-items: center;
  gap: 28px;
}


/* Logo */

.logo {
  position: relative;

  display: inline-flex;
  align-items: center;

  margin-right: auto;

  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 600;
  letter-spacing: 3px;

  color: var(--text);

  transition: var(--transition);
}

.logo span {
  margin-left: 8px;

  font-weight: 800;
  color: var(--primary);

  background: linear-gradient(
    90deg,
    var(--primary),
    #29c9ff,
    var(--primary)
  );

  background-size: 200% auto;

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;

  animation: logoGradient 5s linear infinite;
}

@keyframes logoGradient {
  to {
    background-position: 200% center;
  }
}

.logo::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -7px;

  width: 0;
  height: 2px;

  border-radius: 99px;

  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);

  transition: width .3s ease;
}

.logo:hover::after {
  width: 100%;
}


/* Links */

.nav__list {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
}

.nav__list a {
  position: relative;

  color: var(--text-soft);

  font-size: .98rem;
  font-weight: 500;

  transition:
    color .25s ease,
    transform .25s ease;
}

.nav__list a::after {
  content: "";

  position: absolute;
  left: 50%;
  bottom: -9px;

  width: 0;
  height: 2px;

  transform: translateX(-50%);

  border-radius: 99px;
  background: var(--primary);

  box-shadow: 0 0 12px var(--primary);

  transition: width .25s ease;
}

.nav__list a:hover {
  color: var(--text);
}

.nav__list a:hover::after {
  width: 70%;
}


/* Mobile button */

.nav-toggle {
  display: none;

  width: 42px;
  height: 42px;

  place-items: center;

  border: 1px solid var(--border);
  border-radius: 12px;

  color: var(--primary);
  background: var(--white-soft);

  font-size: 1.5rem;

  transition: var(--transition);
}

.nav-toggle:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-cyan);
}


/* Theme */

.theme-btn {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--white-soft);
  color: var(--primary);

  font-size: 1.05rem;

  transition: var(--transition);
}

.theme-btn:hover {
  transform: translateY(-2px) rotate(8deg);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-cyan);
}


/* =========================
   7. HERO
========================= */

.home {
  min-height: 100vh;

  display: flex;
  align-items: center;

  padding-top: calc(var(--header-height) + 35px);
  padding-bottom: 70px;
}

.hero {
  position: relative;

  width: 100%;

  display: grid;
  grid-template-columns:
    minmax(0, 1.05fr)
    minmax(430px, .95fr);

  align-items: center;

  gap: 45px;

  text-align: left;
}


/* Hero content */

.hero__content {
  position: relative;
  z-index: 3;
}

.hero__content::before {
  content: "";

  position: absolute;
  top: 8%;
  left: -120px;

  width: 360px;
  height: 360px;

  border-radius: 50%;

  background: var(--primary);
  opacity: .035;

  filter: blur(80px);

  pointer-events: none;
}


/* Greeting */

.hero__content::after {
  margin-bottom: 12px;

  color: var(--primary);

  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: .02em;
}


/*
  Tu HTML actual tiene Jhon Arias en .home__title.
  Para evitar verlo dos veces, el HTML debe dejar
  el nombre solo en el navbar. Este CSS transforma
  el título visualmente en un mensaje profesional.
*/

.home__title {
  position: relative;

  max-width: 760px;

  margin-bottom: 18px;

  font-size: clamp(2.9rem, 6vw, 5.2rem);
  line-height: .98;

  font-weight: 800;
  letter-spacing: -.055em;

  color: var(--text);

  background: none;
  -webkit-text-fill-color: initial;
}

.home__title span {
  color: var(--primary);

  background: linear-gradient(
    90deg,
    var(--primary),
    #24bfff
  );

  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}


/* Subtitle / Typed */

.home__subtitle {
  min-height: 40px;

  margin: 0 0 18px;

  color: var(--text-soft);

  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.5;
  font-weight: 500;
}

#typing {
  color: var(--text-soft);
}

.typed-cursor {
  color: var(--primary);
}


/* Hero paragraph if exists */

.hero__description {
  max-width: 590px;

  margin: 0 0 28px;

  color: var(--text-soft);

  font-size: 1rem;
  line-height: 1.8;
}


/* Button */

.hero__buttons {
  margin: 30px 0 0;
}

.btn {
  position: relative;
  overflow: hidden;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 56px;

  padding: 0 28px;

  border: 0;
  border-radius: 999px;

  background: var(--primary);
  color: #001018;

  font-size: .98rem;
  font-weight: 700;

  box-shadow:
    0 10px 28px var(--primary-glow);

  transition:
    transform .3s var(--ease),
    box-shadow .3s ease,
    background .3s ease;
}

.btn::after {
  content: "→";

  margin-left: 14px;

  font-size: 1.35rem;
  line-height: 1;

  transition: transform .25s ease;
}

.btn:hover {
  transform: translateY(-4px);

  box-shadow:
    0 16px 40px var(--primary-glow),
    0 0 25px rgba(0,229,255,.12);
}

.btn:hover::after {
  transform: translateX(5px);
}


/* =========================
   8. HERO SOCIALS
========================= */

.socials {
  display: flex;
  align-items: center;
  gap: 14px;

  margin-top: 28px;
}

.socials a {
  width: 54px;
  height: 54px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: rgba(5,17,34,.42);
  color: var(--primary);

  font-size: 1.15rem;

  box-shadow: inset 0 0 20px rgba(255,255,255,.01);

  transition:
    transform .3s var(--ease),
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease,
    color .3s ease;
}

.socials a:hover {
  transform: translateY(-6px);

  border-color: var(--primary);

  background: var(--primary-soft);

  box-shadow:
    0 12px 30px var(--primary-soft),
    0 0 20px rgba(0,229,255,.08);
}


/* =========================
   9. HERO PHOTO
========================= */

.hero__image {
  position: relative;

  min-height: 560px;

  display: grid;
  place-items: center;

  isolation: isolate;
}


/* Large glow */

.hero__image::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 450px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle,
      rgba(0,229,255,.17),
      transparent 65%
    );

  filter: blur(15px);

  z-index: -2;
}


/* Network-like decoration */

.hero__image::after {
  content: "";

  position: absolute;

  width: 570px;
  height: 570px;

  border-radius: 50%;

  border:
    1px solid rgba(0,229,255,.22);

  transform: rotate(8deg);

  z-index: -1;
}


/* Actual photo */

.hero__image .photo,
.hero__image img {
  position: relative;
  z-index: 2;

  width: clamp(300px, 34vw, 440px);
  aspect-ratio: 1;

  object-fit: cover;
  object-position: center;

  border-radius: 50%;

  border: 4px solid var(--primary);

  background: #14223a;

  box-shadow:
    0 0 0 10px rgba(0,229,255,.035),
    0 0 0 28px rgba(0,229,255,.018),
    0 0 60px rgba(0,229,255,.16);

  transition:
    transform .5s var(--ease),
    box-shadow .5s ease;
}

.hero__image:hover .photo,
.hero__image:hover img {
  transform: scale(1.025);

  box-shadow:
    0 0 0 10px rgba(0,229,255,.05),
    0 0 0 28px rgba(0,229,255,.025),
    0 0 85px rgba(0,229,255,.25);
}


/* =========================
   10. FOCUS CARD
========================= */

.focus-card {
    position: absolute;

    right: -8px;
    bottom: 18px;

    z-index: 5;

    width: min(330px, 72%);

    padding: 20px 22px;

    border: 1px solid var(--border-strong);
    border-radius: 18px;

    /* Modo oscuro */
    background: var(--surface);

    color: var(--text);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow: var(--shadow);

    text-align: left;

    transition:
        background .4s ease,
        color .4s ease,
        border-color .4s ease,
        box-shadow .4s ease,
        transform .3s var(--ease);
}

.focus-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow:
        var(--shadow),
        0 10px 30px var(--primary-soft);
}

.focus-title {
  display: flex;
  align-items: center;
  gap: 13px;

  margin-bottom: 9px;
}

.focus-title i {
  flex: 0 0 auto;

  color: var(--primary);
  font-size: 2rem;

  filter: drop-shadow(
    0 0 8px rgba(0,229,255,.45)
  );
}

.focus-title h3 {
  color: var(--primary);

  font-size: 1rem;
  font-weight: 700;
}

.focus-card p {
  padding-left: 48px;

  color: var(--text-soft);

  font-size: .82rem;
  line-height: 1.65;
}


/* =========================
   11. METRICS
========================= */

.metrics {
  padding-top: 65px;
  padding-bottom: 85px;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric {
  position: relative;

  padding: 30px 20px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);

  backdrop-filter: blur(14px);

  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.metric::before {
  content: "";

  position: absolute;
  top: 0;
  left: 20%;
  right: 20%;

  height: 1px;

  background: linear-gradient(
    90deg,
    transparent,
    var(--primary),
    transparent
  );

  opacity: .45;
}

.metric:hover {
  transform: translateY(-7px);

  border-color: var(--border-strong);

  box-shadow: var(--shadow-cyan);
}

.metric h3 {
  margin-bottom: 8px;

  color: var(--primary);

  font-size: 2.15rem;
  line-height: 1;

  font-weight: 800;
}

.metric p {
  color: var(--text-soft);

  font-size: .86rem;
}


/* =========================
   12. CLIENT LOGOS
========================= */

.clients {
  padding: 80px 0;
}

.logos {
  position: relative;

  width: 100%;

  overflow: hidden;

  margin-top: 35px;
  padding: 28px 0;

  isolation: isolate;
}

.logos::before,
.logos::after {
  content: "";

  position: absolute;
  top: 0;

  width: 150px;
  height: 100%;

  z-index: 3;

  pointer-events: none;
}

.logos::before {
  left: 0;

  background:
    linear-gradient(
      90deg,
      var(--bg),
      transparent
    );
}

.logos::after {
  right: 0;

  background:
    linear-gradient(
      270deg,
      var(--bg),
      transparent
    );
}

.logos-slide {
  display: flex;
  align-items: center;

  width: max-content;

  gap: 80px;

  animation:
    scrollLogos 34s linear infinite;

  will-change: transform;
}

.logos-slide img {
  width: auto;
  height: 90px;

  object-fit: contain;

  opacity: .58;

  filter: grayscale(100%);

  transition:
    opacity .3s ease,
    filter .3s ease,
    transform .3s ease;
}

.logos-slide img:hover {
  opacity: 1;
  filter: grayscale(0%);
  transform: scale(1.08);
}

@keyframes scrollLogos {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}


/* =========================
   13. ABOUT
========================= */

.about__grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;

  align-items: center;

  gap: 70px;

  margin-top: 55px;
}

.about__image {
  display: flex;
  justify-content: center;
}

.about__image img {
  width: min(100%, 360px);

  border-radius: var(--radius-lg);

  border: 2px solid var(--border-strong);

  box-shadow: var(--shadow-cyan);

  transition:
    transform .4s var(--ease),
    box-shadow .4s ease;
}

.about__image img:hover {
  transform: translateY(-8px);
}

.about__content {
  text-align: left;
}

.about__text {
  margin-bottom: 28px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.85;
  max-width: 700px;
}


/* Skills */

.skills h3 {
  margin-bottom: 15px;

  font-size: 1.1rem;
}

.skills__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skills__grid span {
  padding: 8px 14px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--white-soft);

  color: var(--text-soft);

  font-size: .82rem;

  transition:
    transform .25s ease,
    border-color .25s ease,
    color .25s ease;
}

.skills__grid span:hover {
  transform: translateY(-3px);

  border-color: var(--border-strong);
  color: var(--primary);
}


/* =========================
   14. PROJECTS
========================= */

.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

  margin-top: 50px;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(16px);
  text-align: left;

  /* Espaciado interno */
  padding: 10px;

  /* Profundidad y transición */
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);

  transition:
    transform .35s var(--ease),
    border-color .35s ease,
    box-shadow .35s ease;
}

.project-card:hover {
  transform: translateY(-9px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-cyan);
}

.project-image {
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.project-image img {
  width: 100%;
  height: 100%;
  display: block;

  object-fit: cover;

  transition: transform 0.5s var(--ease);
}

.project-card:hover .project-image img {
  transform: scale(1.04);
}

.project-content {
  flex: 1;

  padding: 24px;
}

.project-content h3 {
  margin-bottom: 9px;

  font-size: 1.2rem;
}

.project-content p {
  margin-bottom: 20px;

  color: var(--text-soft);

  font-size: .9rem;
  line-height: 1.7;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  width: fit-content;
  padding: 10px 25px;

  border-radius: 999px;

  background: var(--primary);
  color: #001018;

  font-size: .78rem;
  font-weight: 700;

  transition:
    transform .25s ease,
    box-shadow .25s ease;
}

.project-btn:hover {
  transform: translateY(-3px);

  box-shadow:
    0 10px 25px var(--primary-soft);
}


/* =================================================
15. SERVICES
================================================== */

.services {
position: relative;
padding-top: 80px;
padding-bottom: 80px;
}

/* =================================================
ENCABEZADO
================================================== */

.services-header {
max-width: 720px;
margin: 0 auto 45px;


text-align: center;


}

.services-eyebrow {
display: inline-block;


margin-bottom: 12px;

color: var(--primary);

font-size: .72rem;
font-weight: 800;

letter-spacing: 2px;


}

.services-intro {
max-width: 620px;


margin: 15px auto 0;

color: var(--text-soft);

font-size: .98rem;
line-height: 1.7;


}

/* =================================================
GRID
================================================== */

.services-box {


width: 100%;
max-width: 1050px;

margin: 0 auto;

display: grid;

grid-template-columns:
    repeat(2, minmax(0, 1fr));

gap: 18px;


}

/* =================================================
TARJETA
================================================== */

.service-item {


position: relative;

min-height: 245px;

padding: 30px;

overflow: hidden;

display: flex;
flex-direction: column;

border: 1px solid var(--border);

border-radius: 22px;

background: var(--surface);

backdrop-filter: blur(14px);

text-align: left;

transition:
    transform .35s var(--ease),
    border-color .35s ease,
    box-shadow .35s ease,
    background .35s ease;


}

/* brillo decorativo */

.service-item::before {


content: "";

position: absolute;

width: 180px;
height: 180px;

top: -90px;
right: -90px;

border-radius: 50%;

background: var(--primary-soft);

opacity: .35;

transition:
    transform .4s ease,
    opacity .4s ease;


}

/* línea inferior */

.service-item::after {


content: "";

position: absolute;

left: 30px;
right: 30px;
bottom: 0;

height: 2px;

background: var(--primary);

transform: scaleX(0);

transform-origin: left;

transition: transform .35s ease;


}

/* =================================================
HOVER
================================================== */

.service-item:hover {


transform: translateY(-8px);

border-color: var(--border-strong);

background: var(--surface);

box-shadow:
    0 18px 45px var(--primary-soft);


}

.service-item:hover::before {


transform: scale(1.5);

opacity: .55;


}

.service-item:hover::after {


transform: scaleX(1);


}

/* =================================================
NUMERO
================================================== */

.service-number {


position: absolute;

top: 22px;
right: 25px;

color: var(--text-soft);

font-size: .7rem;
font-weight: 800;

letter-spacing: 1px;

opacity: .55;


}

/* =================================================
ICONO
================================================== */

.service-icon {


width: 56px;
height: 56px;

margin-bottom: 22px;

display: flex;
align-items: center;
justify-content: center;

border-radius: 16px;

background: var(--primary-soft);

border: 1px solid var(--border);

transition:
    transform .35s ease,
    background .35s ease;


}

.service-icon i {


color: var(--primary);

font-size: 1.45rem;


}

.service-item:hover .service-icon {


transform: scale(1.08) rotate(-3deg);

background: var(--primary-soft);


}

/* =================================================
CONTENIDO
================================================== */

.service-content {


position: relative;

z-index: 2;


}

.service-content h3 {


margin: 0 0 10px;

color: var(--text);

font-size: 1.15rem;

font-weight: 750;


}

.service-content p {


margin: 0;

color: var(--text-soft);

font-size: .88rem;

line-height: 1.7;


}

/* =================================================
ENLACE VISUAL
================================================== */

.service-link {


display: inline-flex;
align-items: center;

gap: 8px;

margin-top: 20px;

color: var(--primary);

font-size: .75rem;

font-weight: 750;

transition: gap .25s ease;


}

.service-link i {


font-size: .65rem;


}

.service-item:hover .service-link {


gap: 13px;


}

/* =================================================
SERVICIO DESTACADO
================================================== */

.service-featured {


border-color: var(--border-strong);

background:
    linear-gradient(
        135deg,
        var(--surface),
        var(--primary-soft)
    );


}

.service-featured .service-icon {


box-shadow:
    0 0 25px var(--primary-soft);


}

/* =================================================
BADGE
================================================== */

.service-badge {


display: inline-block;

margin-bottom: 8px;

padding: 4px 8px;

border-radius: 20px;

color: var(--primary);

background: var(--primary-soft);

font-size: .6rem;

font-weight: 800;

letter-spacing: 1px;


}

/* =================================================
CTA
================================================== */

.services-cta {


max-width: 1050px;

margin: 35px auto 0;

padding: 24px 28px;

display: flex;

align-items: center;
justify-content: space-between;

gap: 25px;

border: 1px solid var(--border);

border-radius: 20px;

background: var(--surface);

backdrop-filter: blur(14px);


}

.services-cta div {


display: flex;
flex-direction: column;

gap: 5px;


}

.services-cta strong {


color: var(--text);

font-size: .95rem;


}

.services-cta span {


color: var(--text-soft);

font-size: .82rem;


}

/* =================================================
BOTON CTA
================================================== */

.services-cta-button {


display: inline-flex;

align-items: center;

gap: 9px;

padding: 12px 18px;

border-radius: 12px;

background: var(--primary);

color: #fff;

text-decoration: none;

font-size: .78rem;

font-weight: 750;

white-space: nowrap;

transition:
    transform .25s ease,
    box-shadow .25s ease;


}

.services-cta-button:hover {


transform: translateY(-2px);

box-shadow:
    0 8px 25px var(--primary-soft);

color: #fff;


}

/* =================================================
RESPONSIVE
================================================== */

@media (max-width: 800px) {


.services-box {

    grid-template-columns: 1fr;

}

.services-cta {

    align-items: flex-start;

    flex-direction: column;

}


}

@media (max-width: 500px) {


.services {

    padding-top: 55px;
    padding-bottom: 55px;
}

.service-item {

    min-height: auto;

    padding: 25px;

    border-radius: 19px;
}

.services-cta {

    padding: 22px;

}

.services-cta-button {

    width: 100%;

    justify-content: center;

}


}


/* =========================
   16. BLOG
========================= */

.blog-subtitle {
  max-width: 680px;

  margin: -20px auto 40px;

  color: var(--text-soft);

  line-height: 1.7;
}

.blog-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fit, minmax(280px, 1fr));

  gap: 22px;
}

.blog-card {
  padding: 25px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);

  backdrop-filter: blur(14px);

  text-align: left;

  transition:
    transform .3s ease,
    border-color .3s ease,
    box-shadow .3s ease;
}

.blog-card:hover {
  transform: translateY(-7px);

  border-color: var(--border-strong);

  box-shadow: var(--shadow-cyan);
}

.blog-tag {
  color: var(--primary);

  font-size: .72rem;
  font-weight: 700;

  text-transform: uppercase;
  letter-spacing: .08em;
}

.blog-card h3 {
  margin: 10px 0;

  font-size: 1.15rem;
}

.blog-card p {
  color: var(--text-soft);

  font-size: .88rem;
  line-height: 1.7;
}

.blog-link {
  display: inline-flex;

  margin-top: 15px;

  color: var(--primary);

  font-size: .85rem;
  font-weight: 700;
}

.blog-more {
  margin-top: 35px;
}

#load-more-btn {
  padding: 12px 22px;

  border: 1px solid var(--border-strong);
  border-radius: 999px;

  background: var(--primary-soft);
  color: var(--primary);

  font-weight: 700;

  transition:
    transform .25s ease,
    background .25s ease;
}

#load-more-btn:hover {
  transform: translateY(-3px);
  background: rgba(0,229,255,.2);
}

#load-more-btn[hidden] {
  display: none;
}


/* =========================
   17. CONTACT
========================= */

.contact-wrapper {
  display: grid;
  grid-template-columns: .8fr 1.2fr;

  gap: 55px;

  margin-top: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card {
  padding: 22px;

  border: 1px solid var(--border);
  border-radius: 17px;

  background: var(--surface);

  backdrop-filter: blur(14px);

  text-align: left;

  transition:
    transform .3s ease,
    border-color .3s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.contact-card i {
  margin-bottom: 9px;

  color: var(--primary);

  font-size: 1.3rem;
}

.contact-card p {
  color: var(--text-soft);

  font-size: .88rem;
}

.contact-socials {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-btn {
  width: 45px;
  height: 45px;

  display: grid;
  place-items: center;

  border: 1px solid var(--border);
  border-radius: 50%;

  background: var(--white-soft);
  color: var(--text-soft);

  transition:
    transform .25s ease,
    background .25s ease,
    color .25s ease;
}

.social-btn:hover {
  transform: translateY(-4px);
  background: var(--primary-soft);
  color: var(--primary);
}

.contact-form {
  padding: 28px;

  border: 1px solid var(--border);
  border-radius: var(--radius);

  background: var(--surface);

  backdrop-filter: blur(16px);

  box-shadow: var(--shadow);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 14px 16px;

  border: 1px solid var(--border);
  border-radius: 12px;

  outline: none;

  background: rgba(255,255,255,.025);
  color: var(--text);

  transition:
    border-color .25s ease,
    box-shadow .25s ease,
    background .25s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--text-dim);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);

  background: var(--primary-soft);

  box-shadow:
    0 0 0 3px rgba(0,229,255,.07);
}

.contact-form textarea {
  min-height: 145px;
  resize: vertical;
}

.contact-form button {
  border: 0;
  align-self: flex-start;
}

.form-status {
  min-height: 1.4rem;

  color: var(--text-soft);

  font-size: .82rem;
}


/* =========================
   18. ANALYTICS / FOOTER
========================= */

.footer {
  padding: 28px 0;

  border-top: 1px solid var(--border);

  background: rgba(0,0,0,.18);

  color: var(--text-soft);

  font-size: .82rem;
}

.analytics-card {
  display: flex;
  justify-content: center;

  margin-top: 18px;
}

.analytics-item {
  display: flex;
  align-items: center;
  gap: 12px;

  padding: 11px 18px;

  border: 1px solid var(--border);
  border-radius: 999px;

  background: var(--white-soft);

  backdrop-filter: blur(10px);
}

.analytics-icon {
  font-size: 1.1rem;
}

.analytics-number {
  margin: 0;

  color: var(--primary);

  font-size: 1rem;
  font-weight: 700;
}

.analytics-label {
  color: var(--text-dim);
  font-size: .7rem;
}


/* =========================
   19. AOS / ACCESSIBILITY
========================= */

/*
  No ocultamos las secciones con opacity:0.
  AOS ya controla las animaciones y así evitamos
  que la página quede invisible si AOS falla.
*/

[data-aos] {
  will-change: transform, opacity;
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}


/* =========================
   20. RESPONSIVE 1050px
========================= */

@media (max-width: 1050px) {

  .nav__list {
    gap: 20px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .hero__content {
    max-width: 760px;
  }

  .hero__image {
    min-height: 500px;
  }

  .metrics__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about__grid {
    gap: 45px;
  }
}


/* =========================
   21. RESPONSIVE 900px
========================= */

@media (max-width: 900px) {

  :root {
    --header-height: 74px;
  }

  .container {
    width: min(var(--container), calc(100% - 40px));
  }

  .nav__list {
    position: absolute;

    top: calc(100% + 10px);
    right: 20px;

    width: min(280px, calc(100vw - 40px));

    display: none;
    flex-direction: column;
    align-items: stretch;

    gap: 4px;

    padding: 14px;

    border: 1px solid var(--border);
    border-radius: 18px;

    background: rgba(4,13,27,.97);

    backdrop-filter: blur(20px);

    box-shadow: var(--shadow);
  }

  .light-mode .nav__list {
    background: rgba(255,255,255,.97);
  }

  .nav__list.active {
    display: flex;
  }

  .nav__list a {
    padding: 12px 14px;
    border-radius: 10px;
  }

  .nav__list a:hover {
    background: var(--primary-soft);
  }

  .nav__list a::after {
    display: none;
  }

  .nav-toggle {
    display: grid;
  }

  section {
    padding: 85px 0;
  }

  .home {
    min-height: auto;
    padding-top: 115px;
  }

  .hero {
    text-align: center;
  }

  .hero__content {
    text-align: center;
    margin-inline: auto;
  }

  .hero__content::after {
    margin-top: 0;
  }

  .home__title {
    margin-inline: auto;
  }

  .home__subtitle {
    margin-inline: auto;
  }

  .hero__buttons {
    display: flex;
    justify-content: center;
  }

  .socials {
    justify-content: center;
  }

  .hero__image {
    min-height: 460px;
  }

  .focus-card {
    right: 5%;
    bottom: 5px;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__content {
    text-align: center;
  }

  .skills__grid {
    justify-content: center;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}


/* =========================
   22. RESPONSIVE 600px
========================= */

@media (max-width: 600px) {

  .container {
    width: min(100% - 28px, var(--container));
  }

  .logo {
    font-size: 1.35rem;
    letter-spacing: 2px;
  }

  .logo span {
    margin-left: 5px;
  }

  .theme-btn,
  .nav-toggle {
    width: 40px;
    height: 40px;
  }

  .home {
    padding-top: 105px;
    padding-bottom: 50px;
  }

  .hero {
    gap: 5px;
  }

  .home__title {
    font-size: clamp(2.45rem, 13vw, 3.5rem);
  }

  .home__subtitle {
    min-height: 52px;

    font-size: .98rem;
  }

  .hero__buttons {
    margin-top: 24px;
  }

  .btn {
    width: 100%;
    max-width: 310px;
  }

  .socials {
    gap: 10px;
  }

  .socials a {
    width: 47px;
    height: 47px;
  }

  .hero__image {
    min-height: 390px;
  }

  .hero__image::after {
    width: 380px;
    height: 380px;
  }

  .hero__image .photo,
  .hero__image img {
    width: min(320px, 82vw);
  }

  .focus-card {
    right: 0;
    bottom: 0;

    width: min(310px, 88%);

    padding: 15px;
  }

  .focus-card p {
    padding-left: 0;
    margin-top: 8px;

    font-size: .76rem;
  }

  .metrics__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .metric {
    padding: 23px 12px;
  }

  .metric h3 {
    font-size: 1.65rem;
  }

  .metric p {
    font-size: .72rem;
  }

  .projects__grid {
    grid-template-columns: 1fr;
  }

  .logos-slide {
    gap: 55px;
  }

  .logos-slide img {
    height: 55px;
  }

  .logos::before,
  .logos::after {
    width: 70px;
  }

  .service-item {
    padding: 16px;
  }

  .service-item span {
    font-size: .82rem;
  }

  .contact-form {
    padding: 20px;
  }

  .contact-form button {
    width: 100%;
  }
}


/* =========================
   23. REDUCE MOTION
========================= */

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =================================================
BOTÓN FLOTANTE DE WHATSAPP
================================================== */
/* ==========================================
BOTÓN WHATSAPP
========================================== */

.floating-whatsapp {
position: fixed;


right: 25px;
bottom: 25px;

width: 70px;
height: 70px;

display: flex;
align-items: center;
justify-content: center;

background: #25D366;

border-radius: 50%;

text-decoration: none;

z-index: 99999;

box-shadow:
    0 4px 15px rgba(0, 0, 0, 0.25);

animation: whatsapp-pulse 1.8s infinite;


}

/* ICONO GRANDE */

.floating-whatsapp .whatsapp-icon {
width: 48px;
height: 48px;


display: block;


}

/* EFECTO PARPADEO / PULSO */

@keyframes whatsapp-pulse {


0% {
    opacity: 1;

    box-shadow:
        0 0 0 0 rgba(37, 211, 102, 0.70),
        0 4px 15px rgba(0, 0, 0, 0.25);
}

50% {
    opacity: 0.75;

    box-shadow:
        0 0 0 14px rgba(37, 211, 102, 0),
        0 4px 20px rgba(0, 0, 0, 0.30);
}

100% {
    opacity: 1;

    box-shadow:
        0 0 0 0 rgba(37, 211, 102, 0),
        0 4px 15px rgba(0, 0, 0, 0.25);
}


}

/* AL PASAR EL MOUSE */

.floating-whatsapp:hover {
animation-play-state: paused;


transform: scale(1.08);

transition: transform 0.2s ease;


}

/* CELULAR */

@media (max-width: 600px) {


.floating-whatsapp {
    width: 64px;
    height: 64px;

    right: 18px;
    bottom: 18px;
}

.floating-whatsapp .whatsapp-icon {
    width: 44px;
    height: 44px;
}


}
