.profession-section{
  position:relative;
  padding:92px 0 98px;
  overflow:hidden;
  color:#111827;
  background:
    radial-gradient(circle at 8% 8%,rgba(28,132,255,.12),transparent 28%),
    radial-gradient(circle at 92% 92%,rgba(109,70,245,.12),transparent 31%),
    linear-gradient(180deg,#f8fbff 0%,#f3f4ff 100%);
}
.profession-section:before{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background-image:linear-gradient(#6670850a 1px,transparent 1px),linear-gradient(90deg,#6670850a 1px,transparent 1px);
  background-size:48px 48px;
  mask-image:linear-gradient(to bottom,black,transparent 72%);
}
.profession-section .shell{position:relative}
.profession-section .section-head{max-width:900px;margin-bottom:38px}
.profession-section .section-head.light>.eyebrow{color:#1769f5}
.profession-section .section-head.light h2{color:#111827;font-size:52px;letter-spacing:-2.8px}
.profession-section .section-head.light p{color:#667085;font-size:18px}

.visual-professions{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  grid-auto-rows:270px;
  gap:16px;
}
.visual-professions .profession-photo,
.visual-professions .profession-photo.featured,
.visual-professions .profession-photo:nth-last-child(-n+2){
  position:relative;
  isolation:isolate;
  display:flex;
  grid-column:span 4;
  min-height:0;
  padding:0;
  overflow:hidden;
  border:1px solid #dfe5ef;
  border-radius:28px;
  flex-direction:column;
  justify-content:flex-end;
  background:#fff;
  box-shadow:0 18px 55px rgba(31,42,68,.10);
  transition:transform .35s ease,box-shadow .35s ease,border-color .35s ease;
}
.visual-professions .profession-photo.featured,
.visual-professions .profession-photo:nth-child(4),
.visual-professions .profession-photo:nth-child(5),
.visual-professions .profession-photo:nth-child(6){grid-column:span 4}
.visual-professions .profession-photo:before,
.visual-professions .profession-photo:nth-child(2n):before{
  content:"";
  position:absolute;
  z-index:-2;
  inset:0!important;
  width:auto!important;
  height:auto!important;
  border-radius:0!important;
  background-image:var(--photo);
  background-size:cover;
  background-position:center;
  filter:saturate(1.04) contrast(1.02);
  transition:transform .65s cubic-bezier(.2,.7,.2,1),filter .45s ease;
}
.visual-professions .profession-photo:before{background-position:center}
.visual-professions .profession-photo:after{
  content:"";
  position:absolute;
  z-index:-1;
  inset:0;
  background:linear-gradient(180deg,rgba(5,12,25,0) 26%,rgba(6,14,29,.12) 52%,rgba(6,14,29,.88) 100%);
  transition:background .35s ease;
}
.visual-professions .profession-photo:hover{
  transform:translateY(-7px);
  border-color:#b9cdf4;
  box-shadow:0 28px 70px rgba(31,54,104,.19);
}
.visual-professions .profession-photo:hover:before{transform:scale(1.055);filter:saturate(1.16) contrast(1.03)}
.visual-professions .profession-photo:hover:after{background:linear-gradient(180deg,rgba(5,12,25,0) 32%,rgba(6,14,29,.08) 57%,rgba(6,14,29,.92) 100%)}
.visual-professions .profession-photo>small{
  position:absolute;
  top:22px;
  left:22px;
  width:max-content;
  max-width:calc(100% - 44px);
  margin:0;
  padding:9px 13px;
  border:1px solid rgba(255,255,255,.58);
  border-radius:999px;
  background:rgba(255,255,255,.82);
  color:#25324a;
  font-size:11px;
  font-weight:850;
  letter-spacing:.09em;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
  backdrop-filter:blur(12px);
}
.visual-professions .profession-photo>span{
  margin:0 26px 8px;
  color:#fff;
  font-size:30px;
  font-weight:800;
  line-height:1.08;
  letter-spacing:-.8px;
  text-shadow:0 3px 18px rgba(0,0,0,.36);
}
.visual-professions .profession-photo>b{
  display:flex;
  min-height:62px;
  padding:0 26px 23px;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  color:rgba(255,255,255,.86);
  font-size:13px;
  font-weight:600;
}
.visual-professions .profession-photo>b i{
  display:grid;
  place-items:center;
  width:42px;
  height:42px;
  flex:0 0 auto;
  border:1px solid rgba(255,255,255,.5);
  border-radius:50%;
  background:rgba(255,255,255,.95);
  color:#1769f5;
  font-size:19px;
  font-style:normal;
  box-shadow:0 10px 28px rgba(0,0,0,.2);
  transition:transform .25s ease,background .25s ease;
}
.visual-professions .profession-photo:hover>b i{transform:translateX(4px);background:#fff}

@media(max-width:900px){
  .profession-section{padding:76px 0 82px}
  .profession-section .section-head.light h2{font-size:44px}
  .visual-professions{grid-template-columns:1fr 1fr;grid-auto-rows:280px}
  .visual-professions .profession-photo,
  .visual-professions .profession-photo.featured,
  .visual-professions .profession-photo:nth-child(4),
  .visual-professions .profession-photo:nth-child(5),
  .visual-professions .profession-photo:nth-child(6){grid-column:span 1}
}
@media(max-width:620px){
  .profession-section{padding:64px 0 70px}
  .profession-section .section-head{margin-bottom:34px}
  .profession-section .section-head.light h2{font-size:36px;letter-spacing:-1.8px}
  .profession-section .section-head.light p{font-size:16px}
  .visual-professions{display:flex;width:calc(100vw - 14px);margin-left:0;padding:0 14px 12px 0;gap:14px;overflow-x:auto;overscroll-behavior-inline:contain;scroll-snap-type:x mandatory;scrollbar-width:none}
  .visual-professions::-webkit-scrollbar{display:none}
  .visual-professions .profession-photo,
  .visual-professions .profession-photo.featured,
  .visual-professions .profession-photo:nth-child(4),
  .visual-professions .profession-photo:nth-child(5),
  .visual-professions .profession-photo:nth-child(6){grid-column:auto;min-width:min(82vw,330px);min-height:270px;height:270px;border-radius:23px;scroll-snap-align:start}
  .visual-professions .profession-photo>small{top:17px;left:17px;max-width:calc(100% - 34px);font-size:10px}
  .visual-professions .profession-photo>span{margin:0 21px 7px;font-size:27px}
  .visual-professions .profession-photo>b{padding:0 21px 19px}
}

/* Continuidad compacta entre secciones de la portada. */
.profession-section{padding:68px 0 72px}
.profession-section .section-head{margin-bottom:30px}
@media(max-width:900px){.profession-section{padding:58px 0 64px}}
@media(max-width:620px){.profession-section{padding:48px 0 54px}.profession-section .section-head{margin-bottom:26px}}
