div#contenido-cuerpo {
    padding: 0;
}

.certs-section td {
    overflow-wrap: anywhere;
}

/* ========================================
   PORTFOLIO – Main Styles
   ======================================== */

.portfolio-wrapper {
  margin: 0 auto;
  padding: 1rem 0rem;
  font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
  color: #1a1a2e;
  line-height: 1.7;
  padding: 2rem;
}

/* ========================================
   MATERIAL SYMBOLS – Global Icon Styles
   ======================================== */

.material-symbols-sharp {
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
  vertical-align: middle;
  line-height: 1;
  user-select: none;
}

/* Inline icon — sits flush with surrounding text */
.ms-inline {
  font-size: 1.1em;
  vertical-align: -0.18em;
}

/* Section-heading icon — larger, per-section color */
.ms-section {
  font-size: 1.35rem;
  vertical-align: -0.22em;
  color: cornflowerblue;
  margin-right: 0.15em;
}

/* Sub-heading icon inside cards */
.ms-heading {
  font-size: 1.1rem;
  vertical-align: -0.18em;
  color: #64748b;
  margin-right: 0.1em;
}

/* Success / result checkmark */
.ms-success {
  color: #059669;
}

/* Award icon accent */
.ms-award {
  color: #f59e0b;
  margin-right: 0.15em;
}

/* ── Explicit color utility classes ─────────────────────── */

.ms-color-indigo  { color: #6366f1; }
.ms-color-blue    { color: #3b82f6; }
.ms-color-sky     { color: #0ea5e9; }
.ms-color-violet  { color: #8b5cf6; }
.ms-color-green   { color: #10b981; }
.ms-color-amber   { color: #f59e0b; }
.ms-color-red     { color: #ef4444; }
.ms-color-slate   { color: #64748b; }
.ms-color-brand   { color: cornflowerblue; }

/* ── Per-context icon colors ─────────────────────────────── */

/* Tagline icons */
.tagline .ms-inline { color: #6366f1; }
.location .ms-inline { color: #ef4444; }

/* ── Achievement icon colors ─────────────────────────────── */

.achievement-item:nth-child(1) .achievement-icon { color: #6366f1; }  /* settings  – software */
.achievement-item:nth-child(2) .achievement-icon { color: #0ea5e9; }  /* hub       – network  */
.achievement-item:nth-child(3) .achievement-icon { color: #8b5cf6; }  /* smart_toy – AI/robotics */
.achievement-item:nth-child(4) .achievement-icon { color: #64748b; }  /* shield    – security */

/* ── Education icon colors ───────────────────────────────── */

.edu-item:nth-child(1) .edu-icon { color: #3b82f6; }
.edu-item:nth-child(2) .edu-icon { color: #10b981; }
.edu-item:nth-child(3) .edu-icon { color: #f59e0b; }

/* ── Skill-group heading icon colors ─────────────────────── */

/* Web dev */
.skill-group:nth-child(1) h4 .ms-inline { color: #3b82f6; }
/* AI */
.skill-group:nth-child(2) h4 .ms-inline { color: #8b5cf6; }
/* Infra & Security */
.skill-group:nth-child(3) h4 .ms-inline { color: #10b981; }
/* Design */
.skill-group:nth-child(4) h4 .ms-inline { color: #f59e0b; }
/* Mgmt software */
.skill-group:nth-child(5) h4 .ms-inline { color: #0ea5e9; }

/* ── Awards icon colors ───────────────────────────────────── */
.award-item:nth-child(1) .ms-award { color: #10b981; }  /* globe – OEA */
.award-item:nth-child(2) .ms-award { color: #6366f1; }  /* chart – digital eval */
.award-item:nth-child(3) .ms-award { color: #8b5cf6; }  /* robot – robotics */

/* ── Certs heading icons ─────────────────────────────────── */
.certs-section h4:nth-of-type(1) .ms-inline { color: #6366f1; }
.certs-section h4:nth-of-type(2) .ms-inline { color: #8b5cf6; }

/* Cert table row icons */
.certs-section td .ms-inline { color: #3b82f6; }
.certs-section td:first-child .ms-inline { color: #ef4444; } /* lock – security */

/* ── Languages heading icon ──────────────────────────────── */
h2 .ms-section + * .ms-inline,
.languages-row .ms-section { color: #10b981; }

/* Translate section icon */
h2 > .ms-section { color: cornflowerblue; }

/* ========================================
   HEADER – Photo + Name
   ======================================== */

.profile-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}

.profile-pic {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid cornflowerblue;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.3);
  flex-shrink: 0;
}

.profile-info h1 {
  margin: 0 0 0.4rem 0;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, cornflowerblue, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  margin: 0 0 0.4rem 0;
  font-size: 0.95rem;
  color: #555;
  font-weight: 500;
}

.location {
  margin: 0;
  font-size: 0.9rem;
  color: #888;
}

/* Inline language badge used in profile text */
.lang-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #e0e7ff;
  color: #3730a3;
  vertical-align: 0.05em;
}

/* ========================================
   HEADINGS
   ======================================== */

.portfolio-wrapper h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: cornflowerblue;
  margin: 2rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #e0e7ff;
}

.portfolio-wrapper h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 1.2rem 0 0.5rem;
}

.portfolio-wrapper h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: cornflowerblue;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 1.2rem 0 0.6rem;
}

hr {
  border: none;
  border-top: 1px solid #e0e7ff;
  margin: 2rem 0;
}

/* ========================================
   CARDS
   ======================================== */

.card {
  background: #f8f9ff;
  border: 1px solid #e0e7ff;
  border-radius: 12px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 0.5rem;
}

.card p {
  margin: 0 0 0.6rem;
}

/* ========================================
   EXPERIENCE
   ======================================== */

.exp-summary {
  color: #555;
  font-size: 0.95rem;
  border-left: 3px solid cornflowerblue;
  padding-left: 0.9rem;
  margin: 0.8rem 0 1.2rem !important;
}

.achievements {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.achievement-item {
  display: flex;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 1rem 1.2rem;
}

.achievement-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: cornflowerblue;
}

.achievement-icon .material-symbols-sharp {
  font-size: 1.5rem;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.achievement-item > div {
  flex: 1;
}

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: #059669;
}

/* ========================================
   EDUCATION
   ======================================== */

.education-grid {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.edu-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.edu-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
  color: cornflowerblue;
  margin-top: 0.1rem;
}

.edu-icon .material-symbols-sharp {
  font-size: 1.4rem;
  font-variation-settings: 'FILL' 1, 'wght' 500, 'GRAD' 0, 'opsz' 24;
}

.edu-item strong {
  display: block;
  font-size: 0.95rem;
  color: #1a1a2e;
}

.institution {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.15rem;
  display: block;
}

/* ========================================
   SKILL TAGS
   ======================================== */

.skills-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-group {
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.skill-group h4 {
  margin: 0 0 0.6rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: #e0e7ff;
  color: #3730a3;
}

.tag--ai {
  background: #fce7f3;
  color: #9d174d;
}

.tag--infra {
  background: #d1fae5;
  color: #065f46;
}

.tag--design {
  background: #fef3c7;
  color: #92400e;
}

.tag--mgmt {
  background: #e0f2fe;
  color: #0c4a6e;
}

/* ========================================
   AWARDS
   ======================================== */

.awards-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.award-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
}

.award-year {
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: cornflowerblue;
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.15rem;
  align-self: flex-start;
}

/* ========================================
   CERTIFICATIONS TABLE
   ======================================== */

.certs-section table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0.5rem 0 1rem;
}

.certs-section th {
  text-align: left;
  background: cornflowerblue;
  color: #fff;
  padding: 0.55rem 0.9rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.certs-section th:first-child { border-radius: 8px 0 0 8px; }
.certs-section th:last-child  { border-radius: 0 8px 8px 0; }

.certs-section td {
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid #e0e7ff;
  color: #374151;
}

.certs-section tr:last-child td {
  border-bottom: none;
}

.certs-section tr:hover td {
  background: #f0f4ff;
}

.cert-note {
  background: #fff;
  border: 1px solid #e0e7ff;
  border-left: 4px solid #7c3aed;
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  font-size: 0.9rem;
  color: #374151;
}

.cert-issuers {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #7c3aed;
  letter-spacing: 0.04em;
}

/* ========================================
   LANGUAGES
   ======================================== */

.languages-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: #fff;
  border: 1px solid #e0e7ff;
  border-radius: 10px;
  padding: 0.9rem 1.3rem;
  flex: 1;
  min-width: 180px;
}

/* Language flag replaced with styled text badge */
.lang-flag {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  flex-shrink: 0;
  line-height: 1;
}

.lang-flag--es {
  background: linear-gradient(135deg, #c60b1e, #f1bf00);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.lang-flag--en {
  background: linear-gradient(135deg, #012169, #c8102e);
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.lang-item strong {
  display: block;
  font-size: 0.95rem;
}

.lang-level {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-top: 0.2rem;
}

.lang-level--native {
  background: #d1fae5;
  color: #065f46;
}

.lang-level--advanced {
  background: #e0e7ff;
  color: #3730a3;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }

  .profile-pic {
    width: 110px;
    height: 110px;
  }

  .profile-info h1 {
    font-size: 1.7rem;
  }

  .languages-row {
    flex-direction: column;
  }
}