/* ABOUT */
.about .article-title {
  margin-bottom: 15px;
}
.about-text {
  color: var(--light-gray);
  font-size: var(--fs-4);
  font-weight: var(--fw-300);
  line-height: 1.6;
}
.about-text p {
  margin-bottom: 15px;
}
.service {
  margin-bottom: 20px;
}
.service-title {
  margin-bottom: 20px;
}
.service-list,
.contact-me-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 20px;
}
.service-item,
.contact-me-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}
.service-item::before,
.contact-me-item::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}
.service-icon-box {
  margin-bottom: 10px;
  color: var(--accent-color);
}
.service-mask-icon {
  display: block;
  width: 48px;
  height: 48px;
  margin: auto;
  background-color: currentColor;
  -webkit-mask: var(--service-icon) no-repeat center / contain;
  mask: var(--service-icon) no-repeat center / contain;
  forced-color-adjust: none;
}
.service-content-box {
  text-align: center;
}
.service-item-title,
.contact-me-item-title {
  margin-bottom: 7px;
}
.contact-me-item-description {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}
.service-item-text {
  color: var(--light-gray);
  font-size: var(--fs-5);
  font-weight: var(--fw-3);
  line-height: 1.6;
}

/* CLIENTS */
.clients {
  margin-bottom: 15px;
}
.clients-list {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 15px;
  margin: 0 -15px;
  padding: 25px;
  padding-bottom: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scroll-padding-inline: 25px;
}
.clients-item {
  min-width: 50%;
  scroll-snap-align: start;
}
.clients-item img {
  width: 100%;
  filter: grayscale(1);
  transition: var(--transition-1);
}
.clients-item img:hover {
  filter: grayscale(0);
}

/* RESUME */
.article-title {
  margin-bottom: 30px;
}
.timeline {
  margin-bottom: 30px;
}
.timeline .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}
.timeline-list {
  font-size: var(--fs-6);
  margin-left: 45px;
}
.timeline-item {
  position: relative;
}
.timeline-item:not(:last-child) {
  margin-bottom: 20px;
}
.timeline-item-title {
  font-size: var(--fs-6);
  line-height: 1.3;
  margin-bottom: 7px;
}
.timeline-institution,
.timeline-company {
  font-size: var(--fs-6);
  font-weight: var(--fw-500);
  color: var(--white-2);
  opacity: 0.9;
  line-height: 1.4;
  margin-bottom: 4px;
}
.timeline-list span {
  color: var(--accent-color);
  font-weight: var(--fw-400);
  line-height: 1.6;
}
.timeline-item:not(:last-child)::before {
  content: '';
  position: absolute;
  top: 0;
  left: -30px;
  width: 3px;
  height: 100%;
  background: var(--accent-color);
}
.timeline-item::after {
  content: '';
  position: absolute;
  top: 5px;
  left: -33.5px;
  height: 10px;
  width: 10px;
  background: var(--accent-color);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--jet);
}
.timeline-text {
  color: var(--light-gray);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/* SKILLS */
.skills-title {
  margin-bottom: 20px;
}
.skill .title-wrapper {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 8px;
}
.skill .title-wrapper data {
  color: var(--light-gray);
  font-size: var(--fs-7);
  font-weight: var(--fw-300);
}
.skill-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding-bottom: 20px;
}
.skill-icon-box,
.contact-me-icon-box {
  margin-bottom: 10px;
}
.skill-icon-box img,
.contact-me-icon-box img {
  margin: auto;
  max-width: 120px;
  max-height: 120px;
}
.rounded-background {
  width: 100%;
  height: 100%;
  padding: 2px;
  max-width: 120px;
  max-height: 120px;
  background-color: white;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.skill-icon-box,
.contact-me-icon-box {
  margin-bottom: 0;
  margin-top: 5px;
}
.skill-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 20px;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  z-index: 1;
}
.skill-item::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}
.skill-content-box,
.contact-me-content-box {
  text-align: center;
}
.skill-item-title {
  margin-bottom: 7px;
}

/* BLOG */
.blog-posts {
  margin-bottom: 10px;
}
.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.blog-post-item > a {
  position: relative;
  background: var(--border-gradient-onyx);
  height: 100%;
  box-shadow: var(--shadow-4);
  border-radius: var(--br-3);
  z-index: 1;
}
.blog-post-item > a::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: var(--eerie-black-1);
  z-index: -1;
}
.blog-banner-box {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
}
.blog-banner-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-1);
}
.blog-post-item > a:hover .blog-banner-box img {
  transform: scale(1.1);
}
.blog-content {
  padding: 15px;
}
.blog-meta {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 7px;
  margin-bottom: 10px;
}
.blog-meta :is(.blog-category, time) {
  color: var(--light-gray-70);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
}
.blog-meta .dot {
  background: var(--light-gray-70);
  width: 4px;
  height: 4px;
  border-radius: 4px;
}
.blog-item-title {
  margin-bottom: 10px;
  line-height: 1.3;
  transition: var(--transition-1);
}
.blog-post-item > a:hover .blog-item-title {
  color: var(--orange-yellow-crayola);
}
.blog-text {
  color: var(--light-gray);
  font-size: var(--fs-6);
  font-weight: var(--fw-300);
  line-height: 1.6;
}

/* CONTACT */
.mapbox {
  position: relative;
  height: 250px;
  width: 100%;
  border-radius: 16px;
  margin-bottom: 30px;
  border: 1px solid var(--jet);
  overflow: hidden;
}
.mapbox figure {
  height: 100%;
}
.mapbox iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: grayscale(1) invert(1);
}
.contact-form {
  margin-bottom: 10px;
}
.form-title {
  margin-bottom: 20px;
}
.input-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
  margin-bottom: 25px;
}
.form-input {
  color: var(--white-2);
  font-size: max(1rem, var(--fs-6));
  font-weight: var(--fw-400);
  padding: 13px 20px;
  border: 1px solid var(--jet);
  border-radius: 14px;
  outline: none;
}
.form-input::placeholder {
  font-weight: var(--fw-500);
}
.form-input:focus {
  border-color: var(--orange-yellow-crayola);
}
textarea.form-input {
  min-height: 100px;
  height: auto;
  width: 100%;
  resize: vertical;
  margin-bottom: 25px;
}
textarea.form-input::-webkit-resizer {
  display: none;
}

/* TIMELINE GRID IMPROVED */
.timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: flex-start;
}
.timeline-col-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 4px;
}
.timeline-col-right {
  min-width: 0;
  width: 100%;
}
.timeline-logo {
  width: 60px;
  height: 60px;
  padding: 5px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.349);
  display: block;
}

/* ==========================================================================
   EXPERIENCE CARDS & PROGRESSIVE STAGES
   ========================================================================== */

#experience-timeline.timeline-list {
  margin-left: 0;
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#experience-timeline .experience-card::before,
#experience-timeline .experience-card::after {
  display: none !important;
}

.experience-card {
  position: relative;
  background: var(--eerie-black-2);
  border: 1px solid var(--jet);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: var(--shadow-2);
  transition: border-color var(--transition-1), transform var(--transition-1), box-shadow var(--transition-1);
}

.experience-card:hover {
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transform: translateY(-2px);
}

/* Card Header */
.exp-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.exp-card-logo-box {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: #ffffff;
  border-radius: 12px;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.exp-card-logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.exp-card-info {
  flex: 1;
  min-width: 0;
}

.exp-card-company {
  font-size: var(--fs-4);
  font-weight: var(--fw-700);
  color: var(--white-1);
  margin-bottom: 3px;
  line-height: 1.3;
}

.exp-card-dates {
  font-size: var(--fs-7);
  color: var(--accent-color);
  font-weight: var(--fw-500);
  display: block;
}

.exp-card-badge-wrap {
  flex-shrink: 0;
}

.exp-card-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.15);
  color: var(--accent-color);
  border: 1px solid rgba(168, 85, 247, 0.35);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 3px 10px;
  border-radius: 20px;
}

/* Card Body */
.exp-card-body.multi-stage {
  border-left: 2px solid rgba(168, 85, 247, 0.4);
  margin-left: 10px;
  padding-left: 20px;
  position: relative;
}

.exp-card-body.single-stage {
  padding-left: 2px;
}

.exp-stage-item {
  position: relative;
}

.exp-card-body.multi-stage .exp-stage-item:not(:last-child) {
  margin-bottom: 22px;
  padding-bottom: 2px;
}

.exp-stage-marker {
  position: absolute;
  left: -26px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-color);
  box-shadow: 0 0 0 4px var(--eerie-black-2);
}

/* Stage Heading */
.exp-stage-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.exp-stage-role {
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  color: var(--white-2);
  margin: 0;
}

.exp-stage-dates {
  font-size: 11.5px;
  font-weight: var(--fw-500);
  color: var(--light-gray-70);
  background: var(--onyx);
  padding: 2.5px 8.5px;
  border-radius: 6px;
  white-space: nowrap;
}

/* Bullets */
.exp-stage-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-stage-bullet-item {
  position: relative;
  padding-left: 18px;
  font-size: var(--fs-6);
  color: var(--light-gray);
  line-height: 1.55;
  font-weight: var(--fw-300);
}

.exp-stage-bullet-item::before {
  content: '›';
  position: absolute;
  left: 3px;
  top: -1px;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent-color);
}

@media (max-width: 580px) {
  .experience-card {
    padding: 16px 16px;
  }
  .exp-card-header {
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
  .exp-card-logo-box {
    width: 42px;
    height: 42px;
  }
  .exp-card-company {
    font-size: var(--fs-5);
  }
  .exp-stage-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .exp-card-body.multi-stage {
    margin-left: 6px;
    padding-left: 14px;
  }
  .exp-stage-marker {
    left: -20px;
  }
}

/* CERTIFICATIONS */
.certifications .title-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.cert-grid {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.cert-card {
  position: relative;
  background: var(--border-gradient-onyx);
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  padding: 16px;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.cert-card::before {
  content: '';
  position: absolute;
  inset: 1px;
  background: var(--bg-gradient-jet);
  border-radius: inherit;
  z-index: -1;
}
.cert-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cert-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.cert-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.cert-title {
  margin: 0;
}
.cert-provider {
  color: var(--light-gray-70);
  font-size: var(--fs-7);
}
.cert-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cert-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--light-gray);
  font-size: var(--fs-6);
}
.cert-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

/* Button styles reused */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: var(--fs-6);
  cursor: pointer;
  transition: var(--transition-1);
  text-decoration: none;
}
.btn-outline {
  background: var(--eerie-black-2);
  color: var(--orange-yellow-crayola);
  border: 1px solid var(--orange-yellow-crayola);
}
.btn-outline:hover {
  background: var(--orange-yellow-crayola);
  color: var(--smoky-black);
}

/* Stacking fallback para pantallas muy pequeñas */
@media (max-width: 470px) {
  .cert-card {
    grid-template-columns: 1fr;
  }
  .cert-actions {
    justify-content: flex-start;
  }
  .cert-media {
    justify-content: flex-start;
  }
}

/* SECURE CONTACT FORM */
.contact-form-section {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--br-4);
  padding: 30px;
  margin-bottom: 35px;
  box-shadow: var(--shadow-2);
}
.contact-form-section .form-title {
  margin-bottom: 20px;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-form .input-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-label {
  font-size: var(--fs-6);
  color: var(--text-primary);
  font-weight: var(--fw-500);
}
.form-input {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--br-2);
  padding: 12px 16px;
  color: var(--text-primary);
  font-size: max(1rem, var(--fs-6));
  font-family: var(--ff-poppins);
  outline: none;
  transition: border-color var(--transition-1), box-shadow var(--transition-1), background-color var(--transition-1);
}
.form-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px hsla(280, 80%, 60%, 0.15);
}
.form-textarea {
  field-sizing: content;
  height: auto;
  width: 100%;
  resize: vertical;
  min-block-size: 6.5rem;
  max-block-size: 16rem;
}
.form-error-msg {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--bittersweet-shimmer);
  font-size: var(--fs-7);
  font-weight: var(--fw-500);
  margin-top: 2px;
}
.form-input:is(:user-invalid, .user-invalid-fallback) {
  border-color: var(--bittersweet-shimmer);
  background-color: hsla(0, 75%, 55%, 0.08);
}
.form-input:is(:user-invalid, .user-invalid-fallback) + .form-error-msg {
  display: flex;
}
.form-btn {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, hsl(280, 85%, 60%) 0%, hsl(265, 90%, 50%) 100%);
  color: #ffffff !important;
  border: 1px solid hsla(280, 80%, 75%, 0.4);
  padding: 13px 28px;
  border-radius: var(--br-2);
  font-weight: var(--fw-600);
  font-size: var(--fs-6);
  cursor: pointer;
  transition: transform var(--transition-1), box-shadow var(--transition-1), filter var(--transition-1);
  box-shadow: 0 4px 16px hsla(275, 85%, 55%, 0.35);
}
.form-btn span,
.form-btn ion-icon {
  color: #ffffff !important;
  font-size: 1.15rem;
}
.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px hsla(275, 85%, 55%, 0.55);
  filter: brightness(1.15);
}
.form-btn:active {
  transform: translateY(0);
}
.form-btn::before {
  display: none !important;
}

/* LANGUAGES SECTION IN ABOUT */
.languages-section {
  margin-top: 30px;
  margin-bottom: 25px;
}
.languages-title {
  margin-bottom: 20px;
}
.languages-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.language-item {
  position: relative;
  background: var(--border-gradient-onyx);
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-2);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: transform var(--transition-1), border-color var(--transition-1), box-shadow var(--transition-1);
}
.language-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 4px 16px hsla(280, 80%, 60%, 0.2);
}
.language-flag-box {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.language-flag-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.language-content {
  flex-grow: 1;
}
.language-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.language-name {
  font-size: var(--fs-5);
  font-weight: var(--fw-600);
  color: var(--white-2);
}
.language-level-badge {
  font-size: var(--fs-8);
  font-weight: var(--fw-600);
  color: var(--accent-color);
  background: hsla(280, 80%, 60%, 0.12);
  border: 1px solid hsla(280, 80%, 60%, 0.28);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}
.language-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-color);
  transition: background var(--transition-1), box-shadow var(--transition-1);
}
.lang-dot.filled {
  background: var(--accent-color);
  box-shadow: 0 0 6px hsla(280, 80%, 60%, 0.5);
}

