/* ==========================================================
   SECCIONES
   Un bloque por sección, en el mismo orden en que aparecen en la página.
   ========================================================== */

/* ===== HERO (portada) ===== */

.hero {
  background: var(--background);
  min-height: 600px;
  position: relative;
  overflow: hidden;
}
.hero-art {
  object-fit: cover;
  mix-blend-mode: normal;
  filter: brightness(1.18) contrast(1.08) saturate(1.25);
  background: linear-gradient(135deg, rgba(124, 117, 255, 0.08), rgba(88, 164, 255, 0.14));
  border: 1px solid rgba(126, 145, 255, 0.28);
  border-radius: 26px;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.12);
  width: min(500px, 46vw);
  height: auto;
  aspect-ratio: 1200 / 1100;
  padding: 12px;
  position: absolute;
  top: 20px;
  right: clamp(18px, 5vw, 70px);
  z-index: 1;
}
.hero-inner {
  min-height: 600px;
  padding-top: 84px;
  position: relative;
}
.hero-copy {
  max-width: 560px;
  position: relative;
}
.small-line {
  background: var(--primary);
  width: 24px;
  height: 2px;
}
h1 {
  color: var(--ink-deep);
  margin-top: 24px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.14;
}
h1 > span {
  font-weight: 600;
}
.hero-description {
  max-width: 440px;
  color: var(--muted-foreground);
  margin-top: 23px;
  font-size: 16px;
  line-height: 1.8;
}
.hero-actions {
  gap: 12px;
  margin-top: 30px;
  display: flex;
}
.hero-actions a,
.hero-actions button {
  height: 46px;
  padding-inline: 20px;
  font-size: 13px;
}
.hero-actions button:disabled {
  opacity: 0.85;
}
.pending-note {
  color: var(--muted-foreground);
  margin-top: 9px;
  font-size: 10px;
  display: block;
}
.explore-link {
  color: var(--muted-foreground);
  align-items: center;
  gap: 10px;
  font-size: 11px;
  display: flex;
  position: absolute;
  bottom: 35px;
  left: 0;
}
.scroll-circle {
  border: 1px solid var(--border);
  border-radius: 50%;
  place-items: center;
  width: 30px;
  height: 30px;
  display: grid;
}
.hero-caption {
  color: var(--muted-foreground);
  letter-spacing: 1.5px;
  font-size: 9px;
  position: absolute;
  bottom: 44px;
  right: 0;
}

/* ===== SOBRE MÍ ===== */

.about-grid {
  grid-template-columns: 1fr 1.13fr;
  gap: 80px;
  display: grid;
}
.about-content > p {
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.9;
}
.about-content > p + p {
  margin-top: 15px;
}
.about-content strong {
  color: var(--foreground);
  font-weight: 600;
}
.education {
  border-top: 1px solid var(--border);
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
  padding-top: 24px;
  display: flex;
}
.education > svg {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.education h3 {
  font-size: 14px;
  font-weight: 600;
}
.education p {
  color: var(--muted-foreground);
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.8;
}
.education p span {
  margin-inline: 5px;
}
.education-status {
  color: var(--primary);
  background: var(--surface-blue);
  border-radius: 3px;
  margin-top: 9px;
  padding: 3px 8px;
  font-size: 10px;
  display: inline-block;
}

/* ===== HABILIDADES ===== */

.skills-section {
  background: var(--surface-soft);
}
.skills-grid {
  grid-template-columns: repeat(6, minmax(0px, 1fr));
  gap: 14px;
  display: grid;
}
.skill {
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 6px;
  padding: 23px 16px;
  transition: transform 0.2s, border-color 0.2s;
}
.skill:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}
.skill-icon {
  width: 43px;
  height: 43px;
  font-family: var(--font-display);
  border-radius: 6px;
  place-items: center;
  margin-bottom: 20px;
  font-size: 21px;
  font-weight: 600;
  display: grid;
}
.skill-icon--html {
  color: var(--skill-html);
  background: var(--skill-html-bg);
}
.skill-icon--css {
  color: var(--skill-css);
  background: var(--skill-css-bg);
}
.skill-icon--csharp {
  color: var(--skill-csharp);
  background: var(--skill-csharp-bg);
}
.skill-icon--power {
  color: var(--skill-power);
  background: var(--skill-power-bg);
}
.skill-icon--sharepoint {
  color: var(--skill-sharepoint);
  background: var(--skill-sharepoint-bg);
}
.skill-icon--ai {
  color: var(--skill-ai);
  background: var(--skill-ai-bg);
}
.skill h3 {
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}
.skill p {
  color: var(--muted-foreground);
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.6;
}

/* ===== PROYECTOS ===== */

.projects-grid {
  grid-template-columns: repeat(3, minmax(0px, 1fr));
  gap: 23px;
  display: grid;
}
.project {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 6px;
  transition: transform 0.2s;
  overflow: hidden;
}
.project:hover {
  transform: translateY(-4px);
}
.project-media {
  aspect-ratio: 1.65 / 1;
  background: var(--surface-blue);
  place-items: center;
  display: grid;
  position: relative;
}
.project-media-2 {
  background: var(--surface-ice);
}
.project-media-3 {
  background: var(--surface-lilac);
}
.project-media img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.project-placeholder {
  color: var(--muted-foreground);
  flex-direction: column;
  align-items: center;
  gap: 12px;
  display: flex;
}
.project-placeholder svg {
  stroke-width: 1.3;
}
.project-placeholder span {
  font-size: 11px;
}
.project-number {
  color: var(--muted-foreground);
  font-size: 10px;
  font-family: var(--font-display);
  position: absolute;
  top: 15px;
  left: 17px;
}
.project-body {
  padding: 23px;
}
.project-tech {
  color: var(--primary);
  font-size: 10px;
}
.project h3 {
  margin-top: 12px;
  font-size: 18px;
  font-weight: 500;
}
.project p {
  color: var(--muted-foreground);
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.8;
}
.pending-project {
  color: var(--muted-foreground);
  align-items: center;
  gap: 7px;
  margin-top: 23px;
  font-size: 10px;
  display: flex;
}
.pending-project svg:last-child {
  margin-left: auto;
}
/* Link de proyecto: para usar cuando reemplaces "Enlace a GitHub pendiente" */
.project-link {
  margin-top: 14px;
  padding: 0;
  font-size: 12px;
}

/* ===== EXPERIENCIA ===== */

.experience-section {
  background: var(--surface-soft);
}
.experience-grid {
  grid-template-columns: 1fr 1.55fr;
  gap: 70px;
  display: grid;
}
.section-description {
  color: var(--muted-foreground);
  margin-top: 18px;
  font-size: 13px;
  line-height: 1.8;
}
.experience-entry {
  grid-template-columns: 45px minmax(0px, 1fr);
  gap: 21px;
  padding-top: 6px;
  display: grid;
}
.experience-icon {
  background: var(--surface-blue);
  width: 44px;
  height: 44px;
  color: var(--primary);
  border-radius: 6px;
  place-items: center;
  display: grid;
}
.experience-dates {
  color: var(--muted-foreground);
  font-size: 10px;
}
.experience-entry h3 {
  margin-top: 9px;
  font-size: 19px;
  font-weight: 500;
}
.company {
  margin-top: 8px;
  font-size: 12px;
  display: block;
}
.experience-entry p {
  color: var(--muted-foreground);
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.8;
}
.entry-pending {
  color: var(--muted-foreground);
  margin-top: 17px;
  font-size: 10px;
  display: block;
}

/* ===== CONTACTO ===== */

.contact-section {
  border-top: 1px solid var(--border);
  padding-block: 80px;
}
.contact-grid {
  grid-template-columns: 1.2fr 1fr;
  gap: 90px;
  display: grid;
}
.contact-section h2 {
  font-size: 38px;
}
.contact-section p {
  color: var(--muted-foreground);
  margin-top: 19px;
  font-size: 14px;
  line-height: 1.8;
}
.contact-row {
  border-bottom: 1px solid var(--border);
  grid-template-columns: 22px minmax(0px, 1fr) 20px;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  display: grid;
}
.contact-row:first-child {
  padding-top: 0;
}
.contact-row > svg:first-child {
  color: var(--primary);
}
.contact-row strong {
  font-size: 13px;
  font-weight: 500;
  display: block;
}
.contact-row small {
  color: var(--muted-foreground);
  overflow-wrap: anywhere;
  margin-top: 6px;
  font-size: 11px;
  display: block;
}
.contact-row > svg:last-child {
  color: var(--muted-foreground);
}
.contact-links a:hover strong {
  color: var(--primary);
}
