:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1840a7;
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-soft: #f8fafd;
  --glass: rgba(37, 99, 235, 0.16);
  --side-width: 330px;

  --text: #22223b;
  --text-muted: #444444;
  --subtext: #727994;
  --subtext-light: #adc6fa;
  --divider: #e3e6f0;

  --font-base: "Inter", Arial, sans-serif;
  --font-title: "Montserrat", "Inter", Arial, sans-serif;

  --radius-sm: 14px;
  --radius-md: 15px;
  --radius-lg: 20px;
  --radius-xl: 22px;
  --radius-pill: 28px;
  --radius-full: 999px;

  --shadow-xs: 0 1px 3px #0001;
  --shadow-sm: 0 2px 8px #0002;
  --shadow-md: 0 4px 16px #0003;
  --shadow-lg: 0 10px 34px 0 #1e293b21;
  --shadow-card: 0 4px 24px #2563eb13, 0 1.5px 12px #2563eb07;
  --shadow-card-hover: 0 8px 32px #2563eb22, 0 4px 14px #3b82f622;

  --glass-blur: 12px;
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #b6c7e3 #f3f4f7;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-base);
  letter-spacing: 0.01em;
}

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

/* -------- Layout -------- */
.container {
  display: flex;
  max-width: 1100px;
  min-height: 98vh;
  margin: 30px auto;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  transition: box-shadow var(--transition-medium);
}

.side {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: var(--side-width);
  min-width: var(--side-width);
  max-width: var(--side-width);
  padding: 44px 26px 44px 32px;
  color: #fff;
  background: linear-gradient(140deg, var(--primary) 78%, var(--primary-light) 100%);
  box-shadow: 2px 0 28px 0 #1e293b13;
}

.avatar-glass {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: -50px;
  padding: 8px;
  border-radius: 50%;
  background: var(--glass);
  box-shadow: 0 4px 18px #1e293b18, 0 1px 4px #fff4 inset;
  -webkit-backdrop-filter: blur(var(--glass-blur));
  backdrop-filter: blur(var(--glass-blur));
}

.avatar {
  width: 112px;
  height: 112px;
  overflow: hidden;
  border: 4px solid #fff4;
  border-radius: 50%;
  box-shadow: 0 2px 15px #0003;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.11);
}

.name {
  margin-bottom: 0.11em;
  color: #fff;
  font-family: var(--font-title);
  font-size: 1.54rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.01em;
  text-shadow: 0 3px 16px #0001;
}

.dob {
  margin-bottom: 14px;
  color: #bdd6f7;
  font-family: var(--font-base);
  font-size: 0.98rem;
  font-weight: 400;
  text-align: center;
}

.side .section-title {
  display: flex;
  justify-content: center;
  margin: 25px 0 8px;
  color: #fff;
  font-size: 1.08rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.95;
}

.side ul,
.side .info {
  margin: 0;
  padding: 0;
  font-size: 1.01rem;
  list-style: none;
}

.side .info a {
  color: #bae6fd;
  font-weight: 500;
  text-decoration: underline dotted;
  word-break: break-all;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.side .info a:hover {
  color: #fff;
  text-decoration: underline solid;
}

.side .info a:focus-visible,
.download-btn:focus-visible,
.skill-badge:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.side ul li {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin-bottom: 13px;
  word-break: break-all;
}

.side .skills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.side .skill-chip {
  margin-bottom: 1px;
  padding: 4.5px 15px;
  color: #e0eaff;
  background: #fff3;
  border-radius: 19px;
  box-shadow: var(--shadow-xs);
  font-size: 0.99rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: background 0.22s, color 0.21s;
}

.side .skill-chip:hover {
  color: var(--primary);
  background: #fff9;
}

.side section[aria-label="Idiomas"] {
  width: 100%;
}

.side section[aria-label="Idiomas"] .info {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.side section[aria-label="Idiomas"] .info li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 0;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, transform 0.2s ease;
}

.side section[aria-label="Idiomas"] .info li:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.side section[aria-label="Idiomas"] .info li strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 0.97rem;
  font-weight: 700;
}

.side section[aria-label="Idiomas"] .info li strong::before {
  content: "🌐";
  font-size: 0.95rem;
}

.side section[aria-label="Idiomas"] .info li span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #dbeafe;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
}

.download {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: auto;
  margin-bottom: 0;
  padding: 0;
  text-align: center;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 10px;
  padding: 10px 26px 10px 18px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.22s, color 0.22s, box-shadow 0.19s, transform 0.19s;
}

.download-btn:hover {
  color: var(--primary-light);
  background: #e3edff;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.download-ic {
  display: inline-block;
  vertical-align: middle;
}

.main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  padding: 40px;
  background: var(--surface);
}

.section-divider {
  align-self: center;
  width: 90%;
  height: 1.5px;
  margin: 50px 0;
  border: none;
  background: var(--divider);
  opacity: 0.7;
}

/* Main */
.main .section-title {
  margin-bottom: 16px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.19rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  opacity: 0.92;
}

.main .about {
  margin-bottom: -20px;
  color: var(--text);
  font-size: 1.13rem;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.main .exp,
.main .edu {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.main .exp-item,
.main .edu-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 17px;
}

.main .exp-dot,
.main .edu-dot {
  min-width: 10px;
  height: 10px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 1px 3px #2563eb82;
}

.main .exp-info,
.main .edu-info {
  flex: 1;
}

.main .exp-title,
.main .edu-title {
  margin-bottom: 3.5px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.13rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.main .exp-company,
.main .edu-org {
  margin-bottom: 2.5px;
  color: var(--subtext);
  font-size: 1.01rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main .exp-date,
.main .edu-date {
  margin-bottom: 3px;
  color: var(--subtext-light);
  font-size: 0.99rem;
}

.exp-description {
  margin-top: 8px;
}

.exp-description p {
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

.exp-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.exp-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 18px;
  color: #555;
  font-size: 0.84375rem;
  line-height: 1.5;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.exp-list li::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary);
}

.exp-list li:hover {
  color: #111;
  transform: translateX(2px);
}

.skills-cards {
  display: flex;
  gap: 26px;
  width: 100%;
  margin-top: 14px;
  margin-bottom: 14px;
}

.skill-card {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  padding: 26px 22px 21px;
  background: #f7f9fecc;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.21s, transform 0.21s;
  will-change: box-shadow, transform;
}

.card-title {
  display: flex;
  align-items: center;
  margin-bottom: 17px;
  color: var(--primary);
  font-family: var(--font-title);
  font-size: 1.13rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-badge {
  cursor: pointer;
  user-select: none;
  margin-bottom: 4.5px;
  padding: 6px 16px;
  border: 1px solid #2563eb13;
  border-radius: var(--radius-sm);
  background: #2563eb14;
  color: var(--primary);
  box-shadow: 0 1px 4px #2563eb08;
  font-size: 1.01rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: background 0.19s, color 0.18s, box-shadow 0.19s, transform 0.19s;
}

.skill-badge:hover {
  color: var(--primary-dark);
  background: #2563eb22;
  box-shadow: 0 3px 9px #2563eb21;
  transform: translateY(-1px);
}

@media (max-width: 1200px) {
  .container {
    min-width: 0;
    max-width: 99vw;
  }

  .main {
    padding: 34px 10vw 32px 5vw;
  }
}

@media (max-width: 1000px) {
  .container {
    flex-direction: column;
    min-width: 0;
    max-width: 100vw;
  }

  .side {
    width: 100%;
    min-width: unset;
    max-width: unset;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 30px;
    padding: 30px 8vw 30px 6vw;
    box-shadow: none;
  }

  .main {
    gap: 22px;
    padding: 34px 5vw;
  }

  .avatar-glass {
    margin-bottom: 0;
  }
}

@media (max-width: 700px) {
  .container {
    min-height: 100vh;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .side {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    min-width: unset;
    max-width: 100vw;
    padding: 18px 3vw;
  }

  .main {
    gap: 15px;
    padding: 16px 2vw 18px;
  }

  .skills-cards {
    flex-direction: column;
    gap: 15px;
  }

  .skill-card {
    width: 100%;
  }
}

::-webkit-scrollbar {
  width: 7px;
  background: #f3f4f7;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #b6c7e3;
}
