:root {
  --bg: #050b16;
  --bg-strong: #030814;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-strong: rgba(255, 255, 255, 0.1);
  --border: rgba(255, 255, 255, 0.12);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #f5f7fb;
  --text-soft: #c0c9dc;
  --text-muted: #94a3b8;
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --shadow-lg: 0 25px 80px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 14px 35px rgba(37, 99, 235, 0.28);
  --radius-lg: 22px;
  --radius-md: 16px;
  --header-h: 84px;
  --container: 1200px;
  --transition: 0.35s ease;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  padding-top: var(--header-h);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

/* HEADER */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 1200;
  background: rgba(3, 8, 20, 0.38);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background var(--transition), border-color var(--transition),
    backdrop-filter var(--transition), box-shadow var(--transition);
}

.header.scrolled {
  background: rgba(3, 8, 20, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.header__container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  position: relative;
  z-index: 1400;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity 0.25s ease;
}

body.menu-open .logo {
  opacity: 0;
  pointer-events: none;
}

.logo__mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #60a5fa);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.logo__text {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #fff;
}

/* LOGO */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-decoration: none;
}

.logo__img {
  height: 34px;
  width: auto;
  object-fit: contain;

  filter: drop-shadow(0 4px 12px rgba(59, 130, 246, 0.4));
  transition: transform 0.3s ease;
}

.logo:hover .logo__img {
  transform: scale(1.05);
}

.logo__text {
  font-size: 1.05rem;
  font-weight: 700;
  color: white;
}

/* NAV DESKTOP */
.nav {
  display: flex;
  align-items: center;
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  position: relative;
  font-size: 0.96rem;
  color: var(--text-soft);
  transition: color 0.3s ease, transform 0.3s ease;
}

.nav__link:hover {
  color: var(--text);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav__link:hover::after {
  width: 100%;
}

/* HAMBURGUESA */
.menu-toggle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  z-index: 1400;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
}

.menu-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.35s ease, opacity 0.25s ease, width 0.25s ease;
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  background-image: linear-gradient(
      90deg,
      rgba(3, 8, 20, 0.94) 0%,
      rgba(3, 8, 20, 0.84) 28%,
      rgba(3, 8, 20, 0.56) 58%,
      rgba(3, 8, 20, 0.72) 100%
    ),
    url("/static/img/hero2.png");
  background-size: cover;
  background-position: center right;
  background-attachment: fixed;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 18% 25%,
      rgba(59, 130, 246, 0.2),
      transparent 24%
    ),
    radial-gradient(
      circle at 76% 18%,
      rgba(96, 165, 250, 0.12),
      transparent 20%
    ),
    linear-gradient(180deg, rgba(2, 6, 16, 0.18), rgba(2, 6, 16, 0.42));
  pointer-events: none;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(5, 11, 22, 0.06),
      rgba(5, 11, 22, 0.25)
    ),
    linear-gradient(90deg, rgba(3, 8, 20, 0.12), transparent 50%);
  pointer-events: none;
}

.hero__container {
  position: relative;
  z-index: 2;
  width: 70%;
  padding: 78px 0 82px;
}

.hero__content {
  max-width: 720px;
}

.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__description,
.hero__actions {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeUp 0.9s ease forwards;
}

.hero__eyebrow {
  font-size: 1.05rem;
  color: #dbe5f7;
  margin-bottom: 14px;
  animation-delay: 0.1s;
}

.hero__title {
  font-size: clamp(2.9rem, 6vw, 5.6rem);
  line-height: 0.94;
  letter-spacing: -2.4px;
  font-weight: 800;
  margin-bottom: 18px;
  text-wrap: balance;
  animation-delay: 0.22s;
}

.hero__subtitle {
  font-size: clamp(1.08rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #edf2fd;
  margin-bottom: 22px;
  animation-delay: 0.34s;
}

.hero__subtitle span {
  color: var(--primary);
  margin-inline: 8px;
}

.hero__description {
  max-width: 620px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-soft);
  margin-bottom: 34px;
  animation-delay: 0.46s;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation-delay: 0.58s;
}

.btn {
  min-width: 150px;
  padding: 15px 24px;
  border-radius: 16px;
  font-size: 0.96rem;
  font-weight: 600;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease,
    color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--primary), #60a5fa);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-hover), #3b82f6);
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.34);
}

.btn--secondary {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.14);
}

.btn--ghost {
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: transparent;
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

/* ANIMACIONES */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* MOBILE */
@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    position: relative;
  }

  .nav {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    z-index: 1300;
    display: grid;
    place-items: center;
    background: linear-gradient(
        180deg,
        rgba(3, 8, 20, 0.985),
        rgba(5, 13, 28, 0.985)
      ),
      radial-gradient(circle at top, rgba(59, 130, 246, 0.15), transparent 30%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(1.02);
    transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scale(1);
  }

  .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 26px;
  }

  .nav__link {
    font-size: 2rem;
    font-weight: 700;
    color: #f5f7fb;
    text-align: center;
  }

  .nav__link::after {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-h));
    background-position: 67% center;
  }

  .hero__container {
    padding: 34px 0 46px;
    /* text-align: center; */
  }

  .hero__content {
    max-width: 100%;
  }

  .hero__title {
    max-width: 95%;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 78px;
  }

  body {
    padding-top: var(--header-h);
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .logo__mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
  }

  .logo__text {
    font-size: 0.92rem;
  }

  .menu-toggle {
    width: 50px;
    height: 50px;
    border-radius: 15px;
  }

  .hero {
    background-image: linear-gradient(
        180deg,
        rgba(3, 8, 20, 0.9) 0%,
        rgba(3, 8, 20, 0.76) 38%,
        rgba(3, 8, 20, 0.82) 100%
      ),
      url("/static/img/hero1.png");
    background-position: center;
  }

  .hero__container {
    padding: 26px 0 40px;
  }

  .hero__title {
    font-size: clamp(2.6rem, 12vw, 4rem);
    letter-spacing: -1.4px;
  }

  .hero__subtitle {
    line-height: 1.45;
    margin-bottom: 18px;
  }

  .hero__description {
    max-width: 100%;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 28px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .nav__link {
    font-size: 1.75rem;
  }
}

@media (max-width: 420px) {
  .nav__menu {
    gap: 22px;
  }

  .nav__link {
    font-size: 1.55rem;
  }

  .hero__title {
    max-width: 100%;
  }
}

/* SOBRE MI  -----------------------------------------------------------------------------*/

.about {
  position: relative;
  padding: 110px 0;
  overflow: hidden;
  background: radial-gradient(
      circle at 15% 20%,
      rgba(59, 130, 246, 0.18),
      transparent 22%
    ),
    radial-gradient(
      circle at 85% 15%,
      rgba(139, 92, 246, 0.16),
      transparent 22%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(14, 165, 233, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #07111f 0%, #081221 45%, #050b16 100%);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 90%);
  pointer-events: none;
}

.about::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -120px;
  top: 40px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.18),
    transparent 65%
  );
  filter: blur(30px);
  pointer-events: none;
}

.about__container {
  position: relative;
  z-index: 2;
}

.about__intro {
  max-width: 780px;
  margin-bottom: 44px;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.14);
}

.section-tag::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.8);
}

.section-title {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -1.6px;
  color: #ffffff;
  max-width: 760px;
}

.section-title span {
  background: linear-gradient(135deg, #60a5fa, #8b5cf6, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
}

.about__card {
  position: relative;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.08),
    rgba(255, 255, 255, 0.035)
  );
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.about__card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08),
    transparent 30%,
    transparent 70%,
    rgba(139, 92, 246, 0.08)
  );
  pointer-events: none;
}

.about__card--text {
  padding: 36px;
}

.about__text {
  position: relative;
  z-index: 2;
  font-size: 1.05rem;
  line-height: 1.92;
  color: #d6deef;
}

.about__text strong {
  color: #ffffff;
}

.about__text + .about__text {
  margin-top: 20px;
}

.about__card--highlights {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.about__highlight {
  position: relative;
  padding: 22px 18px;
  border-radius: 22px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.035)
  );
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.about__highlight::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6, #22d3ee);
  opacity: 0.9;
}

.about__highlight:hover {
  transform: translateY(-4px);
  border-color: rgba(96, 165, 250, 0.22);
  box-shadow: 0 16px 36px rgba(37, 99, 235, 0.12);
}

.about__highlight-number {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 8px;
  color: #ffffff;
}

.about__highlight-label {
  font-size: 0.96rem;
  line-height: 1.5;
  color: #aebbd3;
}

/* variantes con más color */
.about__highlight:nth-child(1) .about__highlight-number {
  color: #60a5fa;
}

.about__highlight:nth-child(2) .about__highlight-number {
  color: #8b5cf6;
}

.about__highlight:nth-child(3) .about__highlight-number {
  color: #22d3ee;
}

.about__highlight:nth-child(4) .about__highlight-number {
  color: #38bdf8;
}

@media (max-width: 900px) {
  .about {
    padding: 90px 0;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .about__card--highlights {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .about {
    padding: 72px 0;
  }

  .about__intro {
    margin-bottom: 28px;
  }

  .section-title {
    letter-spacing: -1px;
  }

  .about__card--text {
    padding: 24px;
  }

  .about__text {
    font-size: 0.98rem;
    line-height: 1.82;
  }

  .about__card--highlights {
    padding: 16px;
    grid-template-columns: 1fr;
  }

  .about__highlight {
    min-height: auto;
  }
}
/* breack visual ---------------------------------------------------------------*/
.passion {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;

  background-image: url("/static/img/tech.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  /* parallax solo en desktop */
  background-attachment: fixed;

  overflow: hidden;
}

/* overlay optimizado */

.passion__overlay {
  position: absolute;
  inset: 0;

  background: linear-gradient(
    180deg,
    rgba(3, 8, 20, 0.55),
    rgba(3, 8, 20, 0.75)
  );
}

.passion__container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 80px 20px;
}

.passion__title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 18px;
}

.passion__title span {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.passion__text {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #c8d6f3;
  max-width: 620px;
  margin: auto;
}

/* decoraciones */

.passion::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  top: -120px;
  right: -120px;

  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.25),
    transparent 70%
  );

  filter: blur(80px);
}

.passion::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  bottom: -140px;
  left: -140px;

  background: radial-gradient(
    circle,
    rgba(139, 92, 246, 0.25),
    transparent 70%
  );

  filter: blur(80px);
}

/* ===================== */
/* MOBILE */
/* ===================== */

@media (max-width: 768px) {
  .passion {
    height: 100dvh; /* ocupa toda la pantalla */
    min-height: 100dvh;

    padding: 40px 20px;

    /* desactivar parallax en mobile */
    background-attachment: fixed;
  }

  .passion__container {
    padding: 40px 10px;
  }

  .passion__title {
    font-size: 2rem;
  }

  .passion__text {
    font-size: 1rem;
    line-height: 1.7;
  }
}
/* HABILIDADES ----------------------------------------------------------------------------*/

.skills {
  position: relative;
  padding: 110px 0;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(59, 130, 246, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 10% 80%,
      rgba(139, 92, 246, 0.14),
      transparent 22%
    ),
    linear-gradient(180deg, #050b16 0%, #07111f 50%, #050b16 100%);
}

.skills__container {
  position: relative;
  z-index: 2;
}

.skills__intro {
  max-width: 720px;
  margin-left: auto;
  margin-bottom: 46px;
  text-align: right;
}

.skills__description {
  margin-top: 18px;
  margin-left: auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-soft);
}

.skills__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* CARD */

.skills__card {
  position: relative;
  padding: 28px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.07),
    rgba(255, 255, 255, 0.03)
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.skills__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.08),
    transparent 30%,
    transparent 70%,
    rgba(139, 92, 246, 0.08)
  );
  pointer-events: none;
}

.skills__card:hover {
  transform: translateY(-6px);
  border-color: rgba(96, 165, 250, 0.25);
  box-shadow: 0 20px 40px rgba(37, 99, 235, 0.12);
}

.skills__icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.skills__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.skills__text {
  font-size: 0.96rem;
  line-height: 1.6;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* TAGS */

.skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skills__tags span {
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.18);
  color: #cfe3ff;
}

/* RESPONSIVE */

@media (max-width: 1000px) {
  .skills__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .skills {
    padding: 80px 0;
  }

  .skills__intro {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .skills__description {
    margin-left: 0;
  }

  .skills__grid {
    grid-template-columns: 1fr;
  }

  .skills__card {
    padding: 24px 20px;
  }
}

/* HABILIDADES -----------------------------------------------------------------------*/
.projects {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: radial-gradient(
      circle at 18% 20%,
      rgba(59, 130, 246, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(139, 92, 246, 0.16),
      transparent 22%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(14, 165, 233, 0.12),
      transparent 28%
    ),
    linear-gradient(180deg, #050b16 0%, #07111f 45%, #050b16 100%);
}

.projects::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.45), transparent 90%);
  pointer-events: none;
}

.projects::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -120px;
  top: 120px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.14),
    transparent 68%
  );
  filter: blur(28px);
  pointer-events: none;
}

.projects__container {
  position: relative;
  z-index: 2;
}

.projects__intro {
  max-width: 760px;
  margin-bottom: 54px;
}

.projects__description {
  margin-top: 18px;
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* GRID */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

/* CARD BASE */
.project__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 320px;
  padding: 30px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.35s ease, border-color 0.35s ease,
    box-shadow 0.35s ease, filter 0.35s ease;
}

.project__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.project__card::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  right: -50px;
  top: -50px;
  border-radius: 50%;
  filter: blur(14px);
  pointer-events: none;
  opacity: 0.85;
}

/* HOVER */
.project__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.28),
    0 18px 40px rgba(37, 99, 235, 0.14);
  filter: brightness(1.03);
}

/* PROYECTO PRINCIPAL ARRIBA */
.project__featured {
  grid-column: 1 / -1;
  min-height: 380px;
  padding: 42px;
  background: linear-gradient(
      135deg,
      rgba(16, 32, 72, 0.88),
      rgba(25, 15, 58, 0.82)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}

.project__featured::before {
  background: radial-gradient(
      circle at 15% 18%,
      rgba(96, 165, 250, 0.2),
      transparent 26%
    ),
    radial-gradient(
      circle at 82% 20%,
      rgba(168, 85, 247, 0.18),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      rgba(96, 165, 250, 0.08),
      transparent 32%,
      transparent 68%,
      rgba(139, 92, 246, 0.08)
    );
}

.project__featured::after {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.18),
    transparent 70%
  );
}

.project__featured:hover {
  border-color: rgba(96, 165, 250, 0.3);
}

.project__featured .project__title {
  font-size: 1.95rem;
  margin-bottom: 16px;
}

.project__featured .project__text {
  max-width: 920px;
  font-size: 1.03rem;
  line-height: 1.85;
  margin-bottom: 24px;
}

.project__featured .project__tags {
  margin-bottom: 24px;
}

/* TARJETAS SECUNDARIAS CON MÁS COLOR */
.project__card:nth-child(2) {
  background: linear-gradient(
      135deg,
      rgba(18, 42, 76, 0.78),
      rgba(10, 22, 42, 0.82)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}

.project__card:nth-child(2)::before {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.14),
    transparent 30%,
    transparent 70%,
    rgba(56, 189, 248, 0.12)
  );
}

.project__card:nth-child(2)::after {
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.16),
    transparent 70%
  );
}

.project__card:nth-child(3) {
  background: linear-gradient(
      135deg,
      rgba(48, 18, 66, 0.78),
      rgba(20, 12, 38, 0.82)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}

.project__card:nth-child(3)::before {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.14),
    transparent 30%,
    transparent 70%,
    rgba(236, 72, 153, 0.1)
  );
}

.project__card:nth-child(3)::after {
  background: radial-gradient(
    circle,
    rgba(168, 85, 247, 0.16),
    transparent 70%
  );
}

.project__card:nth-child(4) {
  background: linear-gradient(
      135deg,
      rgba(10, 58, 62, 0.76),
      rgba(10, 24, 30, 0.82)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}

.project__card:nth-child(4)::before {
  background: linear-gradient(
    135deg,
    rgba(34, 211, 238, 0.12),
    transparent 30%,
    transparent 70%,
    rgba(16, 185, 129, 0.1)
  );
}

.project__card:nth-child(4)::after {
  background: radial-gradient(
    circle,
    rgba(34, 211, 238, 0.14),
    transparent 70%
  );
}

/* CONTENIDO */
.project__content {
  position: relative;
  z-index: 2;
}

.project__title {
  position: relative;
  z-index: 2;
  font-size: 1.28rem;
  line-height: 1.28;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}

.project__text {
  position: relative;
  z-index: 2;
  font-size: 0.96rem;
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 18px;
}

/* TAGS */
.project__tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project__tags span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #e6f0ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.project__card:hover .project__tags span {
  border-color: rgba(255, 255, 255, 0.18);
}

/* BUTTON */
.project__btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.project__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.3);
  filter: brightness(1.06);
}

/* RESPONSIVE */
@media (max-width: 1000px) {
  .projects__grid {
    grid-template-columns: 1fr;
  }

  .project__featured {
    grid-column: auto;
    min-height: auto;
  }

  .project__featured .project__title {
    font-size: 1.7rem;
  }

  .project__featured .project__text {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  .projects {
    padding: 95px 0;
  }

  .projects__intro {
    margin-bottom: 38px;
  }

  .project__card {
    min-height: auto;
  }

  .project__featured {
    padding: 32px;
  }
}

@media (max-width: 640px) {
  .projects {
    padding: 78px 0;
  }

  .projects__description {
    font-size: 1rem;
    line-height: 1.7;
  }

  .project__card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .project__featured {
    padding: 28px 20px;
  }

  .project__featured .project__title {
    font-size: 1.45rem;
  }

  .project__title {
    font-size: 1.12rem;
  }

  .project__text {
    font-size: 0.93rem;
    line-height: 1.65;
  }

  .project__tags {
    gap: 7px;
  }

  .project__tags span {
    font-size: 0.76rem;
    padding: 6px 10px;
  }

  .project__btn {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }
}

.project__content {
  position: relative;
  z-index: 2;
}

.project__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #e8efff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.75);
}

.project__title {
  position: relative;
  z-index: 2;
  font-size: 1.28rem;
  line-height: 1.2;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 12px;
  max-width: 95%;
}

.project__featured .project__title {
  font-size: 2rem;
}

.project__text {
  position: relative;
  z-index: 2;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text-soft);
  margin-bottom: 18px;
  max-width: 90%;
}

.project__featured .project__text {
  font-size: 1.04rem;
  max-width: 860px;
}

/* FEATURES */
.project__features {
  position: relative;
  z-index: 2;
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 0 0 22px 0;
  padding: 0;
}

.project__features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.94rem;
  line-height: 1.55;
  color: #d7deed;
}

.project__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.project__featured .project__features {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  max-width: 980px;
}

.project__featured .project__features li {
  font-size: 0.95rem;
}

/* tags un poco más modernas */
.project__tags {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.project__tags span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* botón más moderno */
.project__btn {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 140px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.project__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.3);
  filter: brightness(1.06);
}

@media (max-width: 900px) {
  .project__featured .project__features {
    grid-template-columns: 1fr;
  }

  .project__text,
  .project__featured .project__text {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .project__eyebrow {
    font-size: 0.74rem;
    padding: 6px 10px;
    margin-bottom: 12px;
  }

  .project__title {
    font-size: 1.12rem;
  }

  .project__featured .project__title {
    font-size: 1.45rem;
  }

  .project__features li {
    font-size: 0.9rem;
  }

  .project__btn {
    width: 100%;
  }
}

/* EXPERIENCIA + CONTACTO -----------------------------------------------------------------------------*/
.experience {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(59, 130, 246, 0.18),
      transparent 24%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(139, 92, 246, 0.14),
      transparent 22%
    ),
    linear-gradient(180deg, #050b16 0%, #07111f 50%, #050b16 100%);
}

.experience::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), transparent 90%);
  pointer-events: none;
}

.experience__container {
  position: relative;
  z-index: 2;
}

.experience__intro {
  max-width: 760px;
  margin-left: auto;
  margin-bottom: 54px;
  text-align: right;
}

.experience__description {
  margin-top: 18px;
  margin-left: auto;
  max-width: 700px;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-soft);
}

/* GRID */
.experience__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 28px;
  align-items: stretch;
}

/* CARD BASE */
.experience__card,
.contact__card {
  position: relative;
  padding: 34px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.experience__card {
  background: linear-gradient(
      135deg,
      rgba(18, 42, 76, 0.8),
      rgba(14, 20, 40, 0.86)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}

.contact__card {
  background: linear-gradient(
      135deg,
      rgba(36, 18, 70, 0.78),
      rgba(14, 18, 40, 0.86)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
}

.experience__card::before,
.contact__card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.experience__card::before {
  background: linear-gradient(
    135deg,
    rgba(96, 165, 250, 0.12),
    transparent 30%,
    transparent 70%,
    rgba(34, 211, 238, 0.08)
  );
}

.contact__card::before {
  background: linear-gradient(
    135deg,
    rgba(168, 85, 247, 0.12),
    transparent 30%,
    transparent 70%,
    rgba(59, 130, 246, 0.08)
  );
}

/* EXPERIENCE */
.experience__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.experience__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.6);
}

.experience__role {
  margin-top: 18px;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
}

.experience__text {
  margin-top: 14px;
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.experience__features {
  list-style: none;
  display: grid;
  gap: 12px;
  margin: 24px 0;
  padding: 0;
}

.experience__features li {
  position: relative;
  padding-left: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #d8e0ef;
}

.experience__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
  transform: translateY(-50%);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.experience__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.experience__tags span {
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.experience__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.experience__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.3);
  filter: brightness(1.06);
}

/* CONTACT */
.contact__title {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 12px;
}

.contact__text {
  font-size: 0.97rem;
  line-height: 1.72;
  color: var(--text-soft);
  margin-bottom: 22px;
}

.contact__info {
  list-style: none;
  padding: 0;
  margin: 0 0 24px 0;
  display: grid;
  gap: 14px;
}

.contact__info li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #9fb2d8;
}

.contact__info a {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}

/* SOCIAL ICONS */
.contact__social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.contact__socialBtn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact__socialBtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact__socialBtn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(96, 165, 250, 0.24);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.16);
}

/* ACTION BUTTONS */
.contact__actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.contact__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.contact__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.contact__btn--mail {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.contact__btn--call {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.18);
}

.contact__btn--wa {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.18);
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .experience {
    padding: 95px 0;
  }

  .experience__intro {
    max-width: 100%;
    margin-left: 0;
    text-align: left;
  }

  .experience__description {
    margin-left: 0;
    max-width: 100%;
  }

  .experience__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .experience {
    padding: 78px 0;
  }

  .experience__card,
  .contact__card {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .experience__role,
  .contact__title {
    font-size: 1.28rem;
  }

  .experience__text,
  .contact__text {
    font-size: 0.94rem;
  }

  .contact__social {
    gap: 10px;
  }

  .contact__socialBtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* seccion logo ------------------------------------------------------------------*/
/* ===============================
   BRAND SECTION
================================ */
.brand {
  position: relative;
  padding: 160px 0;
  overflow: hidden;
  background: radial-gradient(
      circle at center,
      rgba(99, 102, 241, 0.22),
      transparent 42%
    ),
    linear-gradient(180deg, #08111f 0%, #050b16 100%);
}

.brand::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.22),
    rgba(99, 102, 241, 0.14),
    transparent 62%
  );
  filter: blur(120px);
  pointer-events: none;
}

.brand__container {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.brand__logo {
  display: block;
  width: 220px;
  max-width: 100%;
  margin: 0 auto 40px;
  filter: drop-shadow(0 0 36px rgba(59, 130, 246, 0.35))
    drop-shadow(0 0 70px rgba(99, 102, 241, 0.18));
  transition: transform 0.35s ease;
}

.brand__logo:hover {
  transform: scale(1.05);
}

.brand__title {
  margin: 0 0 18px;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
}

.brand__title span {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand__text {
  max-width: 760px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-soft);
  text-align: center;
}

@media (max-width: 900px) {
  .brand {
    padding: 130px 0;
  }

  .brand__logo {
    width: 180px;
    margin-bottom: 32px;
  }
}

@media (max-width: 640px) {
  .brand {
    min-height: 100dvh;
    padding: 40px 20px;
    display: flex;
    align-items: center;
  }

  .brand__container {
    width: 100%;
  }

  .brand__logo {
    width: 160px;
    margin-bottom: 24px;
  }

  .brand__title {
    font-size: 1.9rem;
    line-height: 1.18;
  }

  .brand__text {
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 100%;
  }
}

/* modal ----------------------------------------------------------------*/
.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contact-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 20, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(92vw, 560px);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  padding: 34px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(
      135deg,
      rgba(18, 42, 76, 0.92),
      rgba(28, 16, 66, 0.9)
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.03)
    );
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35),
    0 20px 40px rgba(59, 130, 246, 0.12);
  transform: translateY(24px) scale(0.98);
  transition: transform 0.35s ease, opacity 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.contact-modal__dialog::-webkit-scrollbar {
  width: 8px;
}

.contact-modal__dialog::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.contact-modal.active .contact-modal__dialog {
  transform: translateY(0) scale(1);
}

.contact-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  line-height: 1;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.25s ease, background 0.25s ease;
}

.contact-modal__close:hover {
  transform: rotate(90deg);
  background: rgba(255, 255, 255, 0.14);
}

.contact-modal__content {
  position: relative;
  z-index: 2;
}

.contact-modal__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #eef4ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-modal__tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #60a5fa, #8b5cf6);
}

.contact-modal__title {
  font-size: 1.8rem;
  line-height: 1.15;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 14px;
  max-width: 90%;
}

.contact-modal__text {
  font-size: 0.98rem;
  line-height: 1.75;
  color: var(--text-soft);
  margin-bottom: 24px;
}

.contact-modal__info {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-modal__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-modal__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #9fb2d8;
}

.contact-modal__item a {
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
  word-break: break-word;
}

.contact-modal__social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.contact-modal__socialBtn {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-modal__socialBtn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.contact-modal__socialBtn:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(96, 165, 250, 0.24);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.16);
}

.contact-modal__actions {
  display: grid;
  gap: 12px;
}

.contact-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #ffffff;
  transition: transform 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

.contact-modal__btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

.contact-modal__btn--mail {
  background: linear-gradient(135deg, #3b82f6, #6366f1);
  box-shadow: 0 12px 24px rgba(59, 130, 246, 0.18);
}

.contact-modal__btn--call {
  background: linear-gradient(135deg, #8b5cf6, #a855f7);
  box-shadow: 0 12px 24px rgba(139, 92, 246, 0.18);
}

.contact-modal__btn--wa {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow: 0 12px 24px rgba(34, 197, 94, 0.18);
}

@media (max-width: 640px) {
  .contact-modal {
    padding: 16px;
  }

  .contact-modal__dialog {
    width: min(94vw, 560px);
    max-height: calc(100dvh - 32px);
    padding: 22px 18px 20px;
    border-radius: 22px;
  }

  .contact-modal__close {
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    font-size: 1.6rem;
  }

  .contact-modal__title {
    max-width: 100%;
    font-size: 1.35rem;
    padding-right: 48px;
  }

  .contact-modal__text {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .contact-modal__social {
    gap: 10px;
  }

  .contact-modal__socialBtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }
}

/* footer  ------------------------------------------------------------*/

.footer {
  position: relative;
  padding: 70px 0 26px;
  overflow: hidden;
  background: radial-gradient(
      circle at 20% 20%,
      rgba(59, 130, 246, 0.12),
      transparent 24%
    ),
    radial-gradient(circle at 80% 30%, rgba(139, 92, 246, 0.1), transparent 22%),
    linear-gradient(180deg, #040913 0%, #050b16 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 90%);
  pointer-events: none;
}

.footer__container {
  position: relative;
  z-index: 2;
}

.footer__top {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 34px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__brand {
  max-width: 460px;
}

.footer__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer__logoImg {
  height: 34px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 10px rgba(99, 102, 241, 0.4));
  transition: transform 0.3s ease, filter 0.3s ease;
}

.footer__logo:hover .footer__logoImg {
  transform: scale(1.05);
  filter: drop-shadow(0 0 10px #3b82f6) drop-shadow(0 0 18px #6366f1);
}

.footer__logoText {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.footer__text {
  font-size: 0.96rem;
  line-height: 1.75;
  color: var(--text-soft);
}

.footer__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer__links,
.footer__contact {
  display: flex;
  flex-direction: column;
}

.footer__links a,
.footer__contact > a {
  width: fit-content;
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-soft);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer__links a:hover,
.footer__contact > a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer__social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer__social a {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.25s ease, background 0.25s ease,
    border-color 0.25s ease, box-shadow 0.25s ease;
}

.footer__social a:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(96, 165, 250, 0.24);
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.14);
}

.footer__social svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.footer__bottom {
  padding-top: 22px;
  text-align: center;
}

.footer__bottom p {
  font-size: 0.88rem;
  line-height: 1.6;
  color: #98a7c2;
}

/* TABLET */
@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer__brand {
    max-width: 100%;
  }
}

/* MOBILE */
@media (max-width: 640px) {
  .footer {
    padding: 56px 0 24px;
  }

  .footer__top {
    gap: 24px;
    padding-bottom: 22px;
  }

  .footer__brand,
  .footer__links,
  .footer__contact {
    align-items: center;
    text-align: center;
  }

  .footer__logo {
    justify-content: center;
    gap: 10px;
    margin-bottom: 14px;
  }

  .footer__logoImg {
    height: 30px;
  }

  .footer__logoText {
    font-size: 0.95rem;
  }

  .footer__text {
    max-width: 320px;
    margin: 0 auto;
    font-size: 0.92rem;
    line-height: 1.7;
  }

  .footer__title {
    margin-bottom: 12px;
    font-size: 0.92rem;
  }

  .footer__links a,
  .footer__contact > a {
    width: auto;
    margin-bottom: 10px;
    font-size: 0.92rem;
  }

  .footer__links a:hover,
  .footer__contact > a:hover {
    transform: none;
  }

  .footer__social {
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
  }

  .footer__social a {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .footer__bottom {
    padding-top: 18px;
  }

  .footer__bottom p {
    max-width: 280px;
    margin: 0 auto;
    font-size: 0.84rem;
    line-height: 1.55;
  }
}

/* proyectos------------- */
/* =========================================================
   BOTON VER MAS
========================================================= */
.projects__more {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.projects__more-btn {
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.projects__more-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.35);
}

/* =========================================================
   MODAL PROYECTOS
========================================================= */
.projects-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.projects-modal.active {
  visibility: visible;
  opacity: 1;
}

/* overlay */
.projects-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 20, 0.75);
  backdrop-filter: blur(6px);
}

/* contenido */
.projects-modal__content {
  position: relative;
  width: min(640px, 92%);
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0b1222, #0a0f1c);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  z-index: 2;
  transform: translateY(20px) scale(0.96);
  transition: all 0.35s ease;
}

.projects-modal.active .projects-modal__content {
  transform: translateY(0) scale(1);
}

/* cerrar */
.projects-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  font-size: 1.3rem;
  color: #fff;
  cursor: pointer;
}

/* titulo */
.projects-modal__title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.projects-modal__subtitle {
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-bottom: 24px;
}

/* lista */
.projects-modal__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* item */
.projects-modal__item {
  display: flex;
  flex-direction: column;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
  transition: all 0.3s ease;
}

.projects-modal__item span {
  font-weight: 700;
  font-size: 0.95rem;
}

.projects-modal__item small {
  font-size: 0.8rem;
  color: #9aa4b2;
}

.projects-modal__item:hover {
  transform: translateY(-2px);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
}
