/**
 * Rama S.E.A. — capa visual del hub y páginas internas.
 * Complementa javier-public.css (.javier-sea, .sea-*).
 */

.layout-fe .fe-sea-branch {
  background-color: #091612;
  color: #e2e8f0;
  overflow: hidden;
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* —— Hub: mapa del sistema —— */
.layout-fe .sea-hub-pillars {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 6rem) 1.5rem;
}

.layout-fe .sea-hub-pillars__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #7a9a86;
  text-align: center;
  margin: 0 0 0.75rem;
}

.layout-fe .sea-hub-pillars__title {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.25;
  color: #f4f9f4;
  text-align: center;
  margin: 0 0 clamp(2.5rem, 5vw, 3.5rem);
  text-wrap: balance;
}

.layout-fe .sea-hub-pillars__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .layout-fe .sea-hub-pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .layout-fe .sea-hub-pillars__grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .layout-fe .sea-hub-pillars__grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.layout-fe .sea-hub-pillar {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.75rem 1.5rem;
  background: rgba(18, 38, 32, 0.55);
  border: 1px solid rgba(45, 106, 79, 0.35);
  border-radius: 2px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease;
}

.layout-fe .sea-hub-pillar:hover {
  border-color: rgba(64, 145, 108, 0.65);
  background: rgba(27, 67, 50, 0.45);
  transform: translateY(-2px);
}

.layout-fe .sea-hub-pillar__num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #5a7867;
  margin-bottom: 1rem;
}

.layout-fe .sea-hub-pillar__label {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(1.35rem, 2.2vw, 1.55rem);
  font-weight: 400;
  color: #f4f9f4;
  margin: 0 0 0.65rem;
  line-height: 1.2;
}

.layout-fe .sea-hub-pillar__desc {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #a8bba2;
  margin: 0 0 1.25rem;
  flex-grow: 1;
}

.layout-fe .sea-hub-pillar__link {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #95d5b2;
}

/* —— Puente editorial (home) —— */
.layout-fe .sea-hub-bridge {
  position: relative;
  z-index: 2;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem clamp(4rem, 8vw, 6rem);
  text-align: center;
}

.layout-fe .sea-hub-bridge__text {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  line-height: 1.8;
  color: #ccd5d0;
  margin: 0 0 2rem;
}

.layout-fe .sea-hub-bridge__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.layout-fe .sea-hub-bridge__actions .sea-btn-elegant--ghost {
  background: transparent;
  border-color: rgba(149, 213, 178, 0.45);
  color: #d8f3dc;
}

.layout-fe .sea-hub-bridge__actions .sea-btn-elegant--ghost:hover {
  background: rgba(27, 67, 50, 0.35);
  border-color: #40916c;
}

/* —— Páginas internas: cabecera —— */
.layout-fe .sea-page-head {
  position: relative;
  z-index: 2;
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5rem) 1.5rem clamp(2rem, 4vw, 3rem);
  text-align: center;
}

.layout-fe .sea-page-head--left {
  text-align: left;
  max-width: 54rem;
}

.layout-fe .sea-page-head__kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #7a9a86;
  margin: 0 0 0.85rem;
}

.layout-fe .sea-page-head__title {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: #f4f9f4;
  margin: 0 0 1.25rem;
  text-wrap: balance;
}

.layout-fe .sea-page-head__lead {
  font-size: clamp(1.05rem, 1.8vw, 1.15rem);
  line-height: 1.75;
  color: #ccd5d0;
  margin: 0;
  max-width: 40rem;
}

.layout-fe .sea-page-head--left .sea-page-head__lead {
  max-width: none;
}

/* —— Red: activadores S.E.A. —— */
.layout-fe .sea-network {
  position: relative;
  z-index: 2;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem clamp(5rem, 10vw, 7rem);
}

.layout-fe .sea-network__intro {
  max-width: 44rem;
  margin: 0 auto clamp(3rem, 6vw, 4rem);
  text-align: center;
}

.layout-fe .sea-network__intro + .sea-network__intro {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.layout-fe .sea-network__grid-heading {
  max-width: 68rem;
  margin: 0 auto clamp(1.75rem, 3.5vw, 2.5rem);
  padding: 0 1.5rem;
  text-align: left;
}

.layout-fe .sea-network__intro--left {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
}

.layout-fe .sea-network__block-title {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 400;
  color: #f4f9f4;
  margin: 0 0 1rem;
}

.layout-fe .sea-network__p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ccd5d0;
  margin: 0 0 1rem;
}

.layout-fe .sea-network__p:last-child {
  margin-bottom: 0;
}

.layout-fe .sea-network__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 600px) {
  .layout-fe .sea-network__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .layout-fe .sea-network__grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-items: center;
  }
}

.layout-fe .sea-network__grid > li {
  width: 100%;
  max-width: 15.5rem;
}

.layout-fe .sea-network-card {
  --sea-card-thumb: 6.25rem;
  position: relative;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 11.25rem;
  padding: 1.5rem 1.2rem 1.65rem;
  padding-right: calc(var(--sea-card-thumb) + 2.15rem);
  background: rgba(18, 38, 32, 0.5);
  border: 1px dashed rgba(90, 120, 103, 0.55);
  border-radius: 2px;
}

.layout-fe .sea-network-card:not(:has(.sea-network-card__thumb)) {
  padding-right: 1.2rem;
  min-height: 6rem;
}

.layout-fe .sea-network-card__thumb {
  position: absolute;
  top: 1.25rem;
  right: 1.15rem;
  width: var(--sea-card-thumb);
  height: var(--sea-card-thumb);
  object-fit: cover;
  border-radius: 2px;
  border: 1px solid rgba(90, 120, 103, 0.5);
  background: rgba(12, 28, 24, 0.6);
}

.layout-fe .sea-network-card__tel {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  line-height: 1.4;
}

.layout-fe .sea-network-card__tel a {
  color: #a8c9b4;
  text-decoration: none;
}

.layout-fe .sea-network-card__tel a:hover {
  color: #d8f3dc;
  text-decoration: underline;
}

.layout-fe .sea-network__empty {
  grid-column: 1 / -1;
  list-style: none;
}

.layout-fe .sea-network-card__status {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5a7867;
  margin-bottom: 1rem;
}

.layout-fe .sea-network-card__title {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: #d8f3dc;
  margin: 0 0 0.65rem;
  line-height: 1.25;
  padding-right: 0.15rem;
}

.layout-fe .sea-network-card__meta {
  font-size: 0.88rem;
  color: #7a9a86;
  margin: 0 0 auto;
  padding-bottom: 1rem;
}

.layout-fe .sea-network-card__note {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #6b8578;
  margin: 0;
  font-style: italic;
}

.layout-fe .sea-network__roles {
  display: grid;
  gap: 2rem;
  margin-top: clamp(3rem, 6vw, 4rem);
}

@media (min-width: 800px) {
  .layout-fe .sea-network__roles {
    grid-template-columns: 1fr 1fr;
  }
}

.layout-fe .sea-role-panel {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid rgba(45, 106, 79, 0.3);
  background: rgba(12, 28, 23, 0.6);
}

.layout-fe .sea-role-panel__title {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: 1.35rem;
  color: #f4f9f4;
  margin: 0 0 0.75rem;
}

.layout-fe .sea-role-panel__list {
  margin: 0;
  padding-left: 1.1rem;
  color: #a8bba2;
  font-size: 0.95rem;
  line-height: 1.7;
}

.layout-fe .sea-role-panel__list li {
  margin-bottom: 0.35rem;
}

/* Estado vacío formación: fe-sea-cursos.css (.fe-sea-cursos-block) */

/* —— Experiencias S.E.A. (fondo heredado de .fe-sea-branch) —— */
.layout-fe .fe-sea-exp.fe-exp--home,
.layout-fe .fe-sea-exp.fe-exp--pagina {
  border-top: 1px solid rgba(27, 67, 50, 0.35);
}

.layout-fe .fe-sea-exp .fe-exp__titulo,
.layout-fe .fe-sea-exp .fe-exp__titulo--home,
.layout-fe .fe-sea-exp.fe-exp--pagina .fe-exp__titulo {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-weight: 400;
  color: #f4f9f4;
}

.layout-fe .fe-sea-exp .fe-exp__sub,
.layout-fe .fe-sea-exp .fe-exp__lead,
.layout-fe .fe-sea-exp .fe-exp__kicker {
  color: #a8bba2;
}

.layout-fe .fe-sea-exp .fe-exp__btn-more {
  background-color: #1b4332;
  border: 1px solid #2d6a4f;
  color: #f4f9f4;
}

.layout-fe .fe-sea-exp .fe-exp__btn-more:hover {
  background-color: #2d6a4f;
}

.layout-fe .fe-sea-exp .fe-exp__volver {
  color: #95d5b2;
}

.layout-fe .fe-sea-exp .fe-exp__vacio {
  color: #a8bba2;
}
.fe-sea-exp .fe-exp__archivo {
  margin: 2.5rem 0 0;
  text-align: center;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: rgba(168, 187, 162, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  user-select: none;
}

/* —— Protección imágenes galería S.E.A. —— */
.fe-sea-exp .fe-exp__fig {
  position: relative;
}
.fe-sea-exp .fe-exp__notice {
  position: absolute;
  bottom: 3px;
  right: 4px;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.2);
  padding: 1px 3px;
  border-radius: 1px;
  pointer-events: none;
  user-select: none;
  line-height: 1.1;
  z-index: 1;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0.02em;
}
.fe-sea-exp .fe-exp__img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
.fe-sea-exp .fe-exp__muestra-i .fe-exp__fig {
  position: relative;
}

.layout-fe .sea-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a9a86;
  text-decoration: none;
  transition: color 0.2s ease;
}

.layout-fe .sea-back-link:hover {
  color: #95d5b2;
}

/* Hero compacto (páginas internas) */
.layout-fe .sea-hero--compact {
  min-height: auto;
  padding: clamp(4rem, 8vw, 5.5rem) 1.5rem clamp(2rem, 4vw, 2.5rem);
}

.layout-fe .sea-hero--compact .sea-logo {
  max-width: clamp(260px, 48vw, 380px);
  margin-bottom: 1.5rem;
}

.layout-fe .sea-hero--compact .sea-main-title {
  font-size: clamp(1.65rem, 3.5vw, 2.25rem);
  margin-bottom: 0;
}

/* —— «Qué es la S.E.A.» — 4 bloques congelados —— */
.layout-fe .fe-sea-que--frozen {
  overflow-x: clip;
}

.layout-fe .fe-sea-que--frozen .sea-hero--compact {
  min-height: min(52vh, 520px);
}

.layout-fe .sea-que-flow {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 68rem;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) 1.25rem clamp(3.5rem, 7vw, 5rem);
  overflow-x: clip;
}

.layout-fe .sea-que-block {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.layout-fe .sea-que-block:last-of-type {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

/* Móvil: siempre foto → texto (evita foto+foto seguidas) */
@media (max-width: 899px) {
  .layout-fe .sea-que-block {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .layout-fe .sea-que-block__media {
    order: 1;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
  }

  .layout-fe .sea-que-block__text {
    order: 2;
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }

  .layout-fe .sea-que-block__img,
  .layout-fe .sea-que-block__video {
    position: static;
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    max-height: min(52vw, 220px);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center 42%;
  }
}

/* PC: alternancia foto|texto y texto|foto */
@media (min-width: 900px) {
  .layout-fe .sea-que-block {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(2rem, 3.5vw, 3rem);
    align-items: stretch;
  }

  .layout-fe .sea-que-block--img-right .sea-que-block__text {
    order: 1;
  }

  .layout-fe .sea-que-block--img-right .sea-que-block__media {
    order: 2;
  }

  .layout-fe .sea-que-block--img-left .sea-que-block__media {
    order: 1;
  }

  .layout-fe .sea-que-block--img-left .sea-que-block__text {
    order: 2;
  }
}

.layout-fe .sea-que-block__media {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 2px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
  max-width: 100%;
}

@media (min-width: 900px) {
  .layout-fe .sea-que-block__media {
    min-height: 100%;
    align-self: stretch;
  }

  .layout-fe .sea-que-block--img-right.sea-que-block--tall .sea-que-block__media,
  .layout-fe .sea-que-block--img-left.sea-que-block--tall .sea-que-block__media {
    min-height: 340px;
  }
}

.layout-fe .sea-que-block__img,
.layout-fe .sea-que-block__video {
  display: block;
  max-width: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: grayscale(100%) contrast(112%) brightness(88%);
}

.layout-fe .sea-que-block__video {
  background-color: #091612;
}

@media (min-width: 900px) {
  .layout-fe .sea-que-block__img,
  .layout-fe .sea-que-block__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 300px;
  }

  .layout-fe .sea-que-block__media {
    min-height: 300px;
  }

  .layout-fe .sea-que-block--tall .sea-que-block__media {
    min-height: 360px;
  }
}

.layout-fe .sea-que-block__text {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 900px) {
  /* Ocupa el hueco de la columna junto a la foto: más ancho y centrado, sin amontonar a 24rem */
  .layout-fe .sea-que-block__text {
    align-self: center;
    justify-self: center;
    width: min(100%, 38rem);
    max-width: 92%;
    margin-inline: auto;
    padding-inline: clamp(0.35rem, 1.5vw, 1rem);
    box-sizing: border-box;
  }

  .layout-fe .sea-que-block--img-right .sea-que-block__text,
  .layout-fe .sea-que-block--img-left .sea-que-block__text {
    justify-self: center;
    margin-inline: auto;
  }
}

.layout-fe .sea-que-block__text p.sea-que-block__eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9aac9f;
  line-height: 1.4;
  margin: 0.35rem 0 1rem;
}

.layout-fe .sea-que-block__title {
  font-family: "Cormorant Garamond", "Lora", Georgia, serif;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 400;
  line-height: 1.25;
  color: #f4f9f4;
  margin: 0 0 1rem;
  text-wrap: balance;
}

.layout-fe .sea-que-block__title:has(+ .sea-que-block__eyebrow) {
  margin-bottom: 0;
}

.layout-fe .sea-que-block__text p {
  font-size: 0.98rem;
  line-height: 1.65;
  color: #ccd5d0;
  margin: 0 0 0.85rem;
}

.layout-fe .sea-que-block__text p:last-child {
  margin-bottom: 0;
}

.layout-fe .sea-que-foot {
  text-align: center;
  padding-top: 0.5rem;
}

.layout-fe .sea-que-foot .sea-cta-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 0;
}

.layout-fe .sea-que-foot__back {
  margin: 1.75rem 0 0;
}

.layout-fe .fe-sea-que--frozen .sea-btn-elegant--ghost {
  background: transparent;
  border-color: rgba(149, 213, 178, 0.45);
  color: #d8f3dc;
}

.layout-fe .fe-sea-que--frozen .sea-btn-elegant--ghost:hover {
  background: rgba(27, 67, 50, 0.35);
  border-color: #40916c;
}
