
:root {
  --scm-primary: #34b7a7;
  --scm-primary-dark: #258d81;
  --scm-primary-soft: #e8f8f5;
  --scm-ink: #2d3436;
  --scm-muted: #6c757d;
  --scm-card: #ffffff;
  --scm-border: #e4ecec;
  --scm-bg: #f5f8f9;
  --scm-shadow: 0 16px 40px rgba(33, 60, 70, 0.08);
  --scm-shadow-soft: 0 10px 30px rgba(33, 60, 70, 0.06);
}

body {
  background: var(--scm-bg);
  color: var(--scm-ink);
}

#header {
  background: rgba(255,255,255,0.96) !important;
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(210, 223, 223, 0.8);
}

#main { margin-top: 72px; }
section { padding: 68px 0; }
.section-title { margin-bottom: 36px; }
.section-title h2 { font-size: 2.3rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.section-title p { max-width: 880px; margin: 14px auto 0; color: var(--scm-muted); font-size: 1.05rem; }

.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700;
  color: var(--scm-primary-dark); background: var(--scm-primary-soft);
  padding: 8px 14px; border-radius: 999px; margin-bottom: 18px;
}

#hero {
  min-height: 92vh;
  padding: 110px 0 72px;
  background:
    linear-gradient(120deg, rgba(248,251,252,0.92), rgba(248,251,252,0.70) 42%, rgba(233,246,243,0.58)),
    url('../img/hero-bg-professional.svg') center/cover no-repeat;
  position: relative;
}

.hero-shell {
  max-width: 780px;
  background: rgba(255,255,255,0.60);
  backdrop-filter: blur(10px);
  padding: 36px 36px 30px;
  border-radius: 28px;
  box-shadow: var(--scm-shadow);
  border: 1px solid rgba(255,255,255,0.6);
}
#hero h1 { font-size: clamp(2.35rem, 4vw, 4.3rem); font-weight: 800; margin-bottom: 10px; color: #243136; }
#hero h2 { font-size: clamp(1.15rem, 2vw, 1.55rem); font-weight: 700; color: var(--scm-primary-dark); margin-bottom: 18px; }
.hero-subtitle-strong { font-size: 1.08rem; line-height: 1.8; color: #3b4b50; margin-bottom: 22px; }
.hero-microcopy { color: var(--scm-muted); font-size: 1rem; margin: 0; }
.badge-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.tech-badge, .project-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--scm-border); color: #425055;
  font-size: .95rem; box-shadow: 0 4px 14px rgba(33,60,70,0.04);
}
.project-badge.important { background: var(--scm-primary-soft); border-color: #c9ece6; color: var(--scm-primary-dark); font-weight: 600; }
.hero-actions {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: flex-start;
}
.btn-filled-scm, .btn-outline-scm {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 170px; padding: 12px 20px; border-radius: 14px; font-weight: 700;
  transition: all .25s ease; border: 2px solid var(--scm-primary);
}
.btn-filled-scm { background: var(--scm-primary); color: #fff; box-shadow: 0 14px 28px rgba(52,183,167,0.22); }
.btn-filled-scm:hover { color: #fff; background: var(--scm-primary-dark); border-color: var(--scm-primary-dark); transform: translateY(-2px); }
.btn-outline-scm { background: rgba(255,255,255,0.8); color: var(--scm-primary-dark); }
.btn-outline-scm:hover { background: var(--scm-primary-soft); color: var(--scm-primary-dark); transform: translateY(-2px); }

.quick-highlights { padding-top: 0; margin-top: -30px; position: relative; z-index: 1; }
.highlight-card, .info-card, .tech-card, .experience-card, .contact-item, .resume-mini-card, .timeline-card, .case-card {
  background: var(--scm-card); border: 1px solid var(--scm-border); border-radius: 22px; box-shadow: var(--scm-shadow-soft);
}
.highlight-card {
  height: 100%; padding: 26px 22px; text-align: left;
}
.highlight-card i, .info-card i, .tech-icon, .resume-icon-box i, .contact-item i {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 16px; background: var(--scm-primary-soft); color: var(--scm-primary-dark); font-size: 1.45rem;
}
.highlight-card h4, .info-card h4, .experience-card h4, .tech-card h4, .resume-mini-card h4 { margin: 18px 0 12px; font-size: 1.25rem; font-weight: 700; }
.highlight-card p, .info-card p, .experience-card p, .tech-card p { margin-bottom: 0; color: #5a696e; line-height: 1.75; }

.profile-photo-card {
  background: linear-gradient(145deg, #ffffff, #f0f6f5);
  border: 1px solid var(--scm-border); border-radius: 28px; box-shadow: var(--scm-shadow); padding: 18px;
}
.profile-photo-card img { width: 100%; border-radius: 20px; display: block; }
.profile-main-card {
  background: #fff; border: 1px solid var(--scm-border); border-radius: 28px; box-shadow: var(--scm-shadow); padding: 32px;
}
.profile-main-card h3 { font-size: 2.1rem; font-weight: 800; margin-bottom: 12px; }
.profile-lead { color: #4b595e; line-height: 1.85; font-size: 1.05rem; }
.profile-stats { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.profile-stat {
  background: #f7fbfb; border: 1px solid var(--scm-border); border-radius: 18px; padding: 18px;
}
.profile-stat strong { display: block; font-size: 1.45rem; color: var(--scm-primary-dark); font-family: "Raleway", sans-serif; }
.profile-stat span { display: block; color: #5e6b70; margin-top: 4px; }
.info-card { height: 100%; padding: 24px; }

.experience-grid .experience-card { padding: 0; overflow: hidden; }
.experience-media { height: 100%; min-height: 100%; background: #eaf4f2; }
.experience-media img { width: 100%; height: 100%; min-height: 100%; object-fit: cover; display: block; }
.experience-body { padding: 28px; }
.timeline-meta { display: inline-flex; align-items: center; gap: 8px; background: var(--scm-primary-soft); color: var(--scm-primary-dark); padding: 8px 14px; border-radius: 999px; font-size: .92rem; font-weight: 700; margin-bottom: 10px; }
.experience-role { color: var(--scm-muted); font-size: .98rem; margin-bottom: 12px; }
.experience-body ul { padding-left: 1.2rem; margin: 16px 0 0; }
.experience-body li { margin-bottom: 10px; color: #536166; line-height: 1.65; }
.experience-footer { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.note-panel {
  margin-top: 30px; padding: 18px 20px; border-left: 4px solid var(--scm-primary); border-radius: 14px; background: #eef8f6; color: #4f5c61;
}

.resume-subtitle { margin: 44px 0 24px; font-size: 1.55rem; font-weight: 800; color: #27353a; }
.resume-entry {
  display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: stretch; margin-bottom: 24px;
}
.resume-logo-box, .resume-icon-box {
  background: #fff; border: 1px solid var(--scm-border); border-radius: 24px; box-shadow: var(--scm-shadow-soft);
  display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 178px;
}
.resume-logo-box img { max-width: 100%; max-height: 120px; object-fit: contain; }
.resume-icon-box i { width: 74px; height: 74px; border-radius: 22px; font-size: 2rem; }
.resume-content {
  background: #fff; border: 1px solid var(--scm-border); border-radius: 24px; box-shadow: var(--scm-shadow-soft); padding: 28px;
}
.resume-content h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 8px; }
.resume-content .resume-year { font-weight: 800; color: var(--scm-primary-dark); margin-bottom: 10px; }
.resume-content .resume-place { color: #526166; margin-bottom: 14px; font-weight: 600; }
.resume-content p { color: #59686d; line-height: 1.8; margin-bottom: 0; }
.resume-content .resume-link { margin-top: 14px; display: inline-flex; font-weight: 700; }

.tech-card { height: 100%; padding: 24px; }
.tech-card-header { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tech-icon { flex-shrink: 0; }
.tech-card h4 { margin: 0; }
.tech-card p { margin-bottom: 14px; }
.tech-card .badge-cloud { margin-top: 10px; }
.tech-card .tech-badge { background: #f8fbfb; }

.portfolio-category-heading { margin: 34px 0 18px; }
.portfolio-category-heading h3 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.portfolio-category-heading p { color: var(--scm-muted); max-width: 920px; }
.portfolio-wrap {
  background: #fff; border: 1px solid var(--scm-border); border-radius: 22px; overflow: hidden; box-shadow: var(--scm-shadow-soft); height: 100%;
  transition: transform .25s ease, box-shadow .25s ease;
}
.portfolio-wrap:hover { transform: translateY(-6px); box-shadow: var(--scm-shadow); }
.portfolio-wrap img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.portfolio-info { position: static !important; background: #fff !important; padding: 20px; opacity: 1 !important; }
.portfolio-info h4 { font-size: 1.18rem; font-weight: 800; margin-bottom: 6px; }
.portfolio-tag { color: var(--scm-muted); font-size: .96rem; margin-bottom: 14px !important; }
.portfolio-links a {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border-radius: 12px; border: 1px solid var(--scm-primary); color: var(--scm-primary-dark); font-weight: 700; background: var(--scm-primary-soft);
}
.portfolio-links a:hover { background: var(--scm-primary); color: #fff; }
.portfolio-links a i { display: inline-flex; align-items: center; gap: 8px; font-style: normal; }
.portfolio-links a i p { margin: 0; display: inline; font-family: "Open Sans", sans-serif; font-size: .95rem; }

.contact-panel { background: #fff; border: 1px solid var(--scm-border); border-radius: 26px; box-shadow: var(--scm-shadow); padding: 28px; }
.contact-item { height: 100%; padding: 24px 18px; }
.contact-item h4 { margin: 16px 0 10px; font-weight: 800; }
.contact-item p { color: #5d6a6f; margin-bottom: 0; }
.contact-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.case-hero { padding-top: 82px; }
.case-summary { background: linear-gradient(145deg, #ffffff, #f4fbfa); border: 1px solid var(--scm-border); border-radius: 28px; box-shadow: var(--scm-shadow); padding: 32px; margin-bottom: 28px; }
.case-summary h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 14px; }
.case-summary p { color: #526166; line-height: 1.8; }
.case-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.case-card { padding: 24px; }
.case-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.case-card p, .case-card li { color: #56646a; line-height: 1.75; }
.case-card ul { padding-left: 1.2rem; margin-bottom: 0; }
.case-links { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 991.98px) {
  #hero { min-height: auto; padding-top: 120px; }
  .hero-shell { padding: 28px 22px; }
  .resume-entry { grid-template-columns: 1fr; }
  .resume-logo-box, .resume-icon-box { min-height: 130px; }
  .case-grid { grid-template-columns: 1fr; }
  .profile-stats { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767.98px) {
  section { padding: 56px 0; }
  .section-title h2 { font-size: 1.95rem; }
  #hero h1 { font-size: 2.45rem; }
  .hero-actions { flex-direction: column; }
  .btn-filled-scm, .btn-outline-scm { width: 100%; }
  .profile-main-card { padding: 24px; }
  .profile-stats { grid-template-columns: 1fr; }
  .contact-panel { padding: 22px; }
}


/* Ajustes finales solicitados */
#hero .hero-shell { max-width: 900px; }
#hero h1 { white-space: nowrap; font-size: clamp(2.7rem, 3.35vw, 3.65rem); line-height: 1.04; }
#hero .hero-actions { gap: 16px; }
#hero .btn-filled-scm, #hero .btn-outline-scm { min-width: 190px; }

.about .section-title { margin-bottom: 28px; }
.profile-photo-card { height: auto !important; }
.profile-photo-card img { height: auto; object-fit: contain; }
.profile-main-card { padding: 26px 28px; }
.profile-main-card h3 { font-size: 1.85rem; margin-bottom: 10px; }
.profile-main-card .hero-kicker { font-size: .76rem; letter-spacing: .09em; padding: 7px 12px; margin-bottom: 14px; }
.profile-main-card .profile-lead { font-size: .98rem; line-height: 1.68; margin-bottom: 12px; }
.profile-main-card .badge-cloud { flex-wrap: nowrap; gap: 7px; margin-top: 12px; overflow: visible; }
.profile-main-card .project-badge { font-size: .75rem; padding: 6px 9px; white-space: nowrap; }
.profile-stats { gap: 10px; margin-top: 14px; }
.profile-stat { padding: 12px 14px; border-radius: 14px; }
.profile-stat strong { font-size: 1.1rem; }
.profile-stat span { font-size: .84rem; line-height: 1.35; }
.info-card { padding: 22px; }
.info-card h4 { font-size: 1.1rem; }
.info-card p { font-size: .94rem; }

.experience-media img { object-position: center; }
.resume-entry.compact { margin-bottom: 18px; }
.resume-logo-box.cert-image img { max-height: 145px; border-radius: 12px; }

.portfolio-grid { position: static !important; height: auto !important; }
.portfolio-grid > [class*="col-"] { position: static !important; left: auto !important; top: auto !important; transform: none !important; }
.portfolio .portfolio-wrap::before { display: none !important; }
.portfolio .portfolio-wrap:hover img { transform: none !important; }
.portfolio .portfolio-wrap .portfolio-info { display: block !important; position: static !important; inset: auto !important; opacity: 1 !important; z-index: auto !important; }
.portfolio .portfolio-wrap .portfolio-info h4 { color: var(--scm-ink) !important; }
.portfolio .portfolio-wrap .portfolio-info p { color: var(--scm-muted) !important; text-transform: none !important; font-style: normal !important; }
.portfolio .portfolio-wrap .portfolio-links a { font-size: .95rem !important; color: var(--scm-primary-dark) !important; margin: 0 !important; }
.portfolio .portfolio-wrap .portfolio-links a:hover { color: #fff !important; }
.portfolio .portfolio-wrap img { aspect-ratio: 4 / 3 !important; object-fit: cover !important; }

@media (max-width: 991.98px) {
  #hero h1 { white-space: normal; }
  .profile-main-card .badge-cloud { flex-wrap: wrap; }
}


/* Final requested adjustments */
.about .row.align-items-stretch > [class*="col-"] { display: flex; }
.about .profile-photo-card,
.about .profile-main-card { width: 100%; height: 100%; }
.about .profile-photo-card { min-height: 0; }
.about .profile-photo-card img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.experience-footer { display: none !important; }
.portfolio .portfolio-wrap,
.portfolio .portfolio-wrap::before,
.portfolio .portfolio-wrap::after,
.portfolio .portfolio-wrap img,
.portfolio .portfolio-info { border-bottom: 0 !important; }
.portfolio .portfolio-info { border-top: 0 !important; }
.portfolio .portfolio-wrap { background: #fff !important; }
.case-honor-note {
  color: var(--scm-primary-dark) !important;
  font-weight: 700;
  background: var(--scm-primary-soft);
  border: 1px solid #c9ece6;
  display: inline-block;
  padding: 9px 14px;
  border-radius: 14px;
  margin: 0 0 16px;
}
.resume-logo-box.cert-image img { max-height: 165px; max-width: 100%; object-fit: contain; }
@media (max-width: 991.98px) {
  .about .row.align-items-stretch > [class*="col-"] { display: block; }
  .about .profile-photo-card img { height: auto; object-fit: contain; }
}


/* Language switcher */
.header-social-links {
  display: flex;
  align-items: center;
  gap: 10px;
}
.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding-left: 12px;
  border-left: 1px solid #dce7e5;
  font-family: "Raleway", sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.language-switcher a {
  color: #6f6f6f;
  padding: 6px 7px;
  border-radius: 999px;
  transition: all .2s ease;
}
.language-switcher a:hover,
.language-switcher a.active-lang {
  background: var(--scm-primary-soft);
  color: var(--scm-primary-dark);
}
.language-switcher span { color: #b2bfbd; }
@media (max-width: 575.98px) {
  .language-switcher { margin-left: 2px; padding-left: 8px; font-size: 12px; }
}
