@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

:root {
  --bg: #020a13;
  --grid: rgba(255, 255, 255, 0.035);
  --grid-strong: rgba(255, 255, 255, 0.06);
  --text: #e6eaee;
  --muted: #aeb6bf;
  --accent: #cdd3d9;
  --accent-warm: #ff7a1a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Poppins", "Segoe UI", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  filter: blur(2px);
  transition: opacity 0.6s ease, transform 0.6s ease, filter 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

.bg {
  min-height: 100vh;
  background:
    radial-gradient(circle at 60% 8%, rgba(255, 255, 255, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(8, 18, 28, 0.85) 0%, rgba(2, 10, 19, 0.95) 55%, rgba(1, 9, 15, 1) 100%),
    var(--bg);
  position: relative;
  overflow: hidden;
  padding-top: 96px;
}

.bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.65;
  pointer-events: none;
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--grid-strong) 1px, transparent 1px),
    linear-gradient(180deg, var(--grid-strong) 1px, transparent 1px);
  background-size: 320px 320px;
  opacity: 0.35;
  pointer-events: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 64px 12px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 5;
}

.menu {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(16, 20, 28, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(14px);
}

.menu-item {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  position: relative;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-item:hover,
.menu-item:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: var(--accent);
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.menu-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-item:hover .menu-icon,
.menu-item:focus-visible .menu-icon {
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.menu-item::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -4px);
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(18, 22, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu-item:hover::after,
.menu-item:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.menu-item.is-active {
  background: rgba(64, 118, 255, 0.2);
}

.menu-item.is-active .menu-icon {
  background: #3d76ff;
  border-color: rgba(255, 255, 255, 0.3);
  color: #f1f6ff;
}

.hero {
  padding: 80px 64px 120px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 48px;
  max-width: 1100px;
}

.profile-card {
  background: rgba(14, 18, 26, 0.92);
  color: var(--text);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.45);
  position: relative;
}

.profile-card::before,
.profile-card::after {
  content: "";
  position: absolute;
  border: 2px dashed rgba(96, 168, 255, 0.6);
  border-radius: 20px;
  pointer-events: none;
}

.profile-card::before {
  width: 70px;
  height: 70px;
  top: -16px;
  left: -16px;
  border-right: none;
  border-bottom: none;
}

.profile-card::after {
  width: 90px;
  height: 90px;
  bottom: -18px;
  left: 220px; /* antes era -12px y despues 200*/
  border-left: none;
  border-top: none;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0f16;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-info h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
}

.profile-info p {
  margin: 0 0 18px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(96, 168, 255, 0.12);
  border: 1px solid rgba(96, 168, 255, 0.35);
  color: #dfe6ff;
  font-size: 12px;
  font-weight: 600;
  width: fit-content;
}

.profile-badge img {
  width: 18px;
  height: 18px;
  display: block;
}

.profile-badge i {
  font-size: 14px;
  color: #e44545;
}

.profile-badges {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  padding-top: 6px;
}

.hero-eyebrow {
  margin: 0;
  font-size: clamp(28px, 6vw, 64px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: #f5f5f5;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 80px);
  margin: 0 0 28px 0;
  font-weight: 600;
}

.hero .dot {
  color: var(--accent);
}

.hero-grid h1 {
  font-size: clamp(44px, 8vw, 92px);
  margin: 0;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.04em;
}

.hero-lead {
  margin: 0;
  max-width: 520px;
  color: #8b9198;
  font-size: 16px;
  line-height: 1.7;
  margin-top: 12px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 22px;
  margin-top: 8px;
}

.stat-number {
  display: block;
  font-size: 36px;
  font-weight: 700;
  color: #f5f5f5;
}

.stat-label {
  display: block;
  color: #8b9198;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 6px;
}

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

.hero-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(12, 16, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hero-link:hover,
.hero-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(96, 168, 255, 0.5);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.45);
}

.hero-link-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #60a8ff;
}

.hero-link-icon svg,
.hero-link-icon i {
  width: 18px;
  height: 18px;
  font-size: 18px;
}

.skills {
  padding: 40px 64px 120px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.skills-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
  margin-bottom: 32px;
}

.skills-header h2 {
  margin: 0;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700;
  color: #60a8ff;
}

.skills-header p {
  margin: 0;
  color: var(--muted);
}

.skills-line {
  width: 220px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 168, 255, 0.2), rgba(96, 168, 255, 0.9));
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); /* antes era (160px, 1fr) */
  gap: 18px;
}

.skill-card {
  background: rgba(12, 16, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.skill-card:hover,
.skill-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(96, 168, 255, 0.5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.skill-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(96, 168, 255, 0.12);
  border: 1px solid rgba(96, 168, 255, 0.35);
  color: #dfe6ff;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.skill-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.skill-name {
  font-size: 14px;
  color: var(--text);
  font-weight: 600;
}

.certs {
  padding: 20px 64px 120px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.certs-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  align-items: center;
  margin-bottom: 32px;
}

.certs-header h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 700;
  color: #60a8ff;
}

.certs-header p {
  margin: 0;
  color: var(--muted);
}

.certs-line {
  width: 200px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 168, 255, 0.2), rgba(96, 168, 255, 0.9));
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.cert-card {
  background: rgba(12, 16, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cert-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.cert-logo {
  width: 100%;
  height: 80px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgb(235, 235, 235);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex: 0 0 auto;
  overflow: hidden;
}

.cert-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cert-card:hover,
.cert-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(96, 168, 255, 0.5);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.5);
}

.cert-card h3 {
  margin: 0 0 6px 0;
  font-size: 18px;
}

.cert-org {
  margin: 0 0 6px 0;
  color: rgba(96, 168, 255, 0.85);
  font-weight: 600;
}

.cert-date {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.cert-actions {
  margin-top: auto;
}

.cert-actions i {
  margin-right: 7px;
}

.card {
  padding: 20px 0 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  color: var(--text);
  margin-bottom: 12px;
}

.orbit {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  position: relative;
}

.orbit::after {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  position: absolute;
  top: 2px;
  right: -2px;
}

.ghost {
  margin-top: 24px;
  display: inline-block;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.section {
  padding: 120px 64px;
  position: relative;
  z-index: 1;
}

.section h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 48px);
  font-weight: 500;
}

.projects {
  padding: 80px 64px 120px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.projects-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.projects-header h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0;
  font-weight: 700;
  color: #f5f7fb;
}

.projects-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.projects-line {
  width: 200px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 168, 255, 0.2), rgba(96, 168, 255, 0.8));
}

.experience {
  padding: 80px 64px 120px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.experience-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 36px;
}

.experience-header h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0;
  font-weight: 700;
  color: #f5f7fb;
}

.experience-header p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.experience-line {
  width: 200px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 168, 255, 0.2), rgba(96, 168, 255, 0.8));
}

.experience-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-left: 26px;
}

.experience-timeline::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: rgba(96, 168, 255, 0.25);
}

.experience-item {
  position: relative;
}

.experience-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 28px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3d76ff;
  box-shadow: 0 0 0 4px rgba(61, 118, 255, 0.2);
}

.experience-card {
  background: rgba(12, 16, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.experience-card:hover,
.experience-card:focus-within {
  transform: translateY(-4px);
  border-color: rgba(96, 168, 255, 0.5);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.experience-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.experience-card h2 {
  margin: 0 0 6px 0;
  font-size: 20px;
}

.experience-company {
  margin: 0 0 6px 0;
  color: rgba(96, 168, 255, 0.9);
  font-weight: 600;
}

.experience-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.experience-date {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.experience-card ul {
  margin: 0 0 14px 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 14px;
}

.experience-card li + li {
  margin-top: 6px;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(96, 168, 255, 0.12);
  border: 1px solid rgba(96, 168, 255, 0.35);
  font-size: 12px;
  color: #dfe6ff;
}

.contact {
  padding: 80px 64px 120px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.contact-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.contact-header h1 {
  font-size: clamp(40px, 6vw, 72px);
  margin: 0;
  font-weight: 700;
  color: #f5f7fb;
}

.contact-header p {
  margin: 0;
  color: var(--muted);
}

.contact-line {
  width: 200px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(96, 168, 255, 0.2), rgba(96, 168, 255, 0.8));
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.55fr);
  gap: 24px;
  align-items: start;
}

.contact-card {
  background: rgba(10, 14, 21, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 168, 255, 0.5), rgba(96, 168, 255, 0.05));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.contact-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(96, 168, 255, 0.12), transparent 55%),
    radial-gradient(circle at 80% 90%, rgba(96, 168, 255, 0.08), transparent 50%);
  pointer-events: none;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px; /* antes era 16px*/
  position: relative;
  z-index: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  min-width: 0;
}

.contact-form input,
.contact-form textarea {
  background: rgba(6, 9, 14, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  min-width: 0;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(174, 182, 191, 0.7);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: rgba(96, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(96, 168, 255, 0.25);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}

.form-honeypot {
  display: none;
}

.btn-submit {
  padding: 10px 22px;
  font-size: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(96, 168, 255, 1), rgba(61, 118, 255, 0.9));
  box-shadow: 0 12px 24px rgba(61, 118, 255, 0.35);
}

.btn-submit:hover,
.btn-submit:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(61, 118, 255, 0.45);
}

.contact-form.is-sent .btn-submit {
  background: linear-gradient(135deg, rgba(96, 168, 255, 0.5), rgba(61, 118, 255, 0.5));
  box-shadow: 0 0 0 4px rgba(96, 168, 255, 0.2);
}

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

.contact-panel {
  background: rgba(9, 13, 19, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.4);
}

.contact-label {
  margin: 0 0 8px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: rgba(96, 168, 255, 0.7);
}

.contact-value {
  margin: 0;
  font-size: 16px;
  color: var(--text);
}

.contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  background: rgba(12, 18, 28, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cfe1ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.icon-btn i {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(96, 168, 255, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.thanks {
  min-height: calc(100vh - 140px);
  display: grid;
  place-items: center;
  padding: 80px 24px 120px;
  position: relative;
  z-index: 1;
}

.thanks-card {
  max-width: 720px;
  width: min(90vw, 720px);
  padding: 36px 40px;
  border-radius: 22px;
  background: rgba(10, 14, 21, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(96, 168, 255, 0.18),
    0 0 40px rgba(96, 168, 255, 0.2);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.thanks-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(96, 168, 255, 0.55), rgba(96, 168, 255, 0.05));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.thanks-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at top left, rgba(96, 168, 255, 0.18), transparent 55%),
    radial-gradient(circle at 75% 90%, rgba(96, 168, 255, 0.12), transparent 55%);
  pointer-events: none;
}

.thanks-card > * {
  position: relative;
  z-index: 1;
}

.thanks-eyebrow {
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: rgba(96, 168, 255, 0.7);
}

.thanks-card h1 {
  margin: 0 0 12px 0;
  font-size: clamp(32px, 5vw, 56px);
  color: #f5f7fb;
}

.thanks-copy {
  margin: 0 0 28px 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.thanks-btn {
  padding: 12px 22px;
  font-size: 14px;
  border-radius: 999px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.project-card {
  background: rgba(12, 16, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-6px);
  border-color: rgba(96, 168, 255, 0.55);
  box-shadow:
    0 28px 50px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(96, 168, 255, 0.35),
    0 0 30px rgba(96, 168, 255, 0.35),
    0 0 60px rgba(96, 168, 255, 0.2);
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  box-shadow: 0 0 22px rgba(96, 168, 255, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 1;
}

.project-thumb {
  height: 160px;
  background: linear-gradient(135deg, rgba(64, 118, 255, 0.35), rgba(12, 16, 23, 0.1));
  position: relative;
}

/* .project-thumb::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12), transparent 60%);
} efecto para las fotos de los proyectos */

.project-thumb--two {
  background: linear-gradient(135deg, rgba(255, 168, 96, 0.25), rgba(12, 16, 23, 0.1));
}

.project-thumb--three {
  background: linear-gradient(135deg, rgba(96, 168, 255, 0.3), rgba(12, 16, 23, 0.1));
}

.project-thumb--image {
  background: none;
}

.project-thumb--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.project-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.project-title-row h2 {
  margin: 0;
  font-size: 20px;
}

.project-year {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.project-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(64, 118, 255, 0.12);
  border: 1px solid rgba(64, 118, 255, 0.35);
  font-size: 12px;
  color: #dfe6ff;
}

.tag-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.tag-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.project-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-actions i {
  margin-right: 7px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #3d76ff;
  color: #f1f6ff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text);
}

@media (max-width: 760px) {
  .topbar {
    padding: 20px 16px 12px;
  }

  .menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    padding: 56px 24px 96px;
  }

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

  .hero-copy {
    align-items: flex-start;
  }

  .section {
    padding: 96px 24px;
  }

  .projects {
    padding: 56px 24px 96px;
  }

  .experience {
    padding: 56px 24px 96px;
  }

  .experience-top {
    flex-direction: column;
  }

  .contact {
    padding: 56px 24px 96px;
  }

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

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

  .skills {
    padding: 32px 24px 96px;
  }

  .certs {
    padding: 16px 24px 96px;
  }
}
