:root {
  --brand: #005189;
  --accent: #e50069;
  --deep: #702283;
  --ink: #1f2937;
  --muted: #6b7280;
  --bg: #eef2f6;
  --surface: #fafbfc;
  --line: #e5e7eb;
  --radius: 14px;
  --shadow: 0 10px 26px rgba(0, 0, 0, .06);
}

/* Layout base */
html,
body {
  margin: 0;
  padding: 0;
  height: 100dvh;
  width: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "main"
    "footer";

  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
}

#presentation {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

#photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  margin-bottom: 0.4rem;
}

#p-name {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 0;
  color: var(--brand);
  text-align: center;
}

#p-ocupation {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
  text-align: center;
}


#main {
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 0.8rem;
  padding: 0.8rem;
  grid-template-areas: "information resumen";
}


#information-personal {
  grid-area: information;
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.info-item i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}

.info-item a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

.info-item a:hover {
  color: var(--brand);
}

#information-personal h2 {
  margin-top: 0;
  color: var(--brand);
}

#information-personal h3 {
  margin-top: 1.2rem;
  color: var(--brand);
}


#content-resumen {
  grid-area: resumen;
  background: var(--surface);
  padding: 1.2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow-y: auto;
}

#content-resumen h2 {
  margin-top: 0;
  color: var(--brand);
}

#content-resumen p {
  line-height: 1.6;
  margin-bottom: 1rem;
  text-align: justify;
}


#content-resumen ul {
  padding-left: 1.2rem;
  margin-bottom: 1rem;
}

#content-resumen li {
  margin-bottom: 6px;
}

#content-resumen h3 {
  margin-top: 1.2rem;
  color: var(--brand);
}

.experience-card {
  background: var(--surface);
  border-top: 4px solid var(--brand);
  /* Top accent */
  padding: 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
  /* Ensure full height in grid */
  display: flex;
  flex-direction: column;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.experience-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--brand);
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.experience-card em {
  display: inline-block;
  background: var(--bg);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--ink);
  font-style: normal;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.experience-card ul {
  padding-left: 1.2rem;
  margin: 0;
  flex-grow: 1;
  /* Push content to fill space */
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.experience-card li {
  margin-bottom: 6px;
  line-height: 1.5;
  text-align: justify;
}


footer {
  grid-area: footer;
  text-align: center;
  padding: 0.8rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

#content-resumen h4 {
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--deep);
  font-size: 1.1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.skill-category h4 {
  margin-top: 0 !important;
  /* Override general h4 margin in this context */
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.3rem;
  margin-bottom: 0.8rem;
}

.skill-category ul {
  margin-bottom: 0 !important;
}

/* Button Styles */
.btn-cta {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--brand);
  color: white;
  text-decoration: none;
  font-weight: 500;
  border-radius: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: white;
}