/**
 * Grupo FAM - Elementor Model Integrator, Technology & Panorama Widget Styles
 */

/* MODELO INTEGRADOR VISUAL */
.model-section,
.fam-model-section {
  padding-top: 60px;
}

.model-root,
.fam-model-root {
  border: 1px solid var(--fam-accent, #212c5d);
  background: var(--fam-accent, #212c5d);
  color: #ffffff;
  padding: 32px 28px;
  text-align: center;
  width: min(440px, 100%);
  margin: 0 auto;
  position: relative;
  border-radius: 6px;
  box-shadow: 0 10px 30px rgba(33, 44, 93, 0.15);
}

.model-root > span,
.fam-model-root > span {
  display: block;
  color: #c9c9c0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.model-root > strong,
.fam-model-root > strong {
  font-size: 38px;
  letter-spacing: -0.05em;
  font-weight: 550;
  line-height: 1;
}

.model-root > p,
.fam-model-root > p {
  font-size: 14px;
  line-height: 1.5;
  max-width: 320px;
  margin: 12px auto 0;
  color: #e3e7f3;
}

.model-root::after,
.fam-model-root::after {
  content: '';
  width: 1px;
  height: 40px;
  background: var(--fam-line);
  position: absolute;
  top: 100%;
  left: 50%;
}

.model-grid,
.fam-model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
  gap: 18px;
  margin-top: 80px;
  position: relative;
}

.model-grid::before,
.fam-model-grid::before {
  content: '';
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  top: -40px;
  height: 1px;
  background: var(--fam-line);
}

.model-card,
.fam-model-card {
  border: 1px solid var(--fam-line);
  background: var(--fam-paper);
  border-radius: 6px;
  position: relative;
  min-width: 0;
}

.model-card::before,
.fam-model-card::before {
  content: '';
  position: absolute;
  bottom: 100%;
  height: 40px;
  width: 1px;
  background: var(--fam-line);
  left: 50%;
}

.model-card summary {
  padding: 22px 18px;
  position: relative;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  list-style: none;
}

.model-card summary::-webkit-details-marker {
  display: none;
}

.model-card summary .feature-num {
  margin: 0;
}

.model-card h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.04em;
  margin: 0;
  padding-right: 25px;
}

.model-card summary .plus {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 28px;
  height: 28px;
}

.model-card summary .plus::before,
.model-card summary .plus::after {
  top: 13px;
  left: 8px;
  width: 12px;
}

.model-card[open] summary {
  background: var(--fam-accent, #212c5d);
  color: #ffffff;
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.model-card[open] summary .feature-num {
  color: #e3e7f3;
}

.model-card[open] summary .plus {
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

.model-details {
  padding: 20px 18px;
}

.model-details > p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--fam-muted);
  margin: 0 0 14px;
}

.model-company {
  display: grid;
  grid-template-columns: 1fr 18px;
  gap: 8px;
  border-top: 1px solid var(--fam-line);
  padding: 12px 0;
  color: var(--fam-ink);
  text-decoration: none;
}

.model-company strong {
  font-size: 14px;
  font-weight: 600;
}

.model-company span {
  grid-column: 1;
  font-size: 12px;
  color: var(--fam-muted);
}

.model-company svg {
  grid-column: 2;
  grid-row: 1;
  width: 15px;
  height: 15px;
  color: var(--fam-muted);
}

.model-company:hover strong {
  color: var(--fam-accent);
}

/* TECNOLOGÍA AMC */
.amc-section,
.fam-amc-section {
  background: var(--fam-accent, #212c5d);
  color: #ffffff;
  padding-block: 100px;
}

.amc-diagram {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 60px;
  align-items: center;
  margin-top: 40px;
}

.amc-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 60px 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.amc-center > strong {
  font-size: 84px;
  color: #ffffff;
  letter-spacing: -0.06em;
  line-height: 1;
  font-weight: 600;
}

.amc-center > span {
  font-size: 15px;
  line-height: 1.5;
  color: #d7dced;
  margin-top: 18px;
  max-width: 250px;
}

.module {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.module summary {
  display: grid;
  grid-template-columns: 28px 1fr 36px;
  gap: 16px;
  align-items: center;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
}

.module summary::-webkit-details-marker {
  display: none;
}

.module summary > span:first-child {
  font-size: 12px;
  color: #d7dced;
}

.module h3 {
  font-size: 22px;
  color: #ffffff;
  margin: 0;
}

.module .plus {
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.module[open] .plus {
  background: #ffffff;
  color: var(--fam-accent);
}

.module .accordion-body > p {
  padding: 0 10px 24px 44px;
  font-size: 15px;
  line-height: 1.6;
  color: #e3e7f3;
  margin: 0;
}

/* PANORAMA / INTERLUDIO EDITORIAL */
.image-interlude,
.fam-panorama-wrap {
  padding-block: 24px;
  display: grid;
  gap: 32px;
  align-items: start;
}

/* DIPTICO (2 fotografias lado a lado) */
.image-diptych {
  grid-template-columns: 1.5fr 1fr;
}

.image-diptych > .editorial-photo:first-child {
  height: clamp(340px, 33vw, 540px);
}

.image-diptych > .editorial-photo:nth-child(2) {
  height: clamp(280px, 27vw, 440px);
  margin-top: clamp(48px, 6vw, 100px);
}

@media (max-width: 1000px) {
  .image-interlude {
    gap: 23px;
  }
  .image-diptych {
    grid-template-columns: 1.25fr 1fr;
  }
}

@media (max-width: 760px) {
  .image-diptych {
    grid-template-columns: 1.2fr 1fr;
    gap: 14px;
  }
  .image-diptych > .editorial-photo:first-child {
    height: 260px;
  }
  .image-diptych > .editorial-photo:nth-child(2) {
    height: 215px;
    margin-top: 45px;
  }
}

@media (max-width: 480px) {
  .image-diptych {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .image-diptych > .editorial-photo:first-child {
    height: 285px;
  }
  .image-diptych > .editorial-photo:nth-child(2) {
    height: 230px;
    margin-top: 0;
    margin-left: 18%;
    width: 82%;
  }
}

/* FOTOGRAFIA INDIVIDUAL DE EQUIPO */
.team-image {
  position: relative;
  height: clamp(360px, 40vw, 650px);
  overflow: hidden;
}

.editorial-photo,
.fam-editorial-photo {
  position: relative;
  overflow: hidden;
  background: #171717;
  border-radius: 4px;
  height: clamp(320px, 32vw, 540px);
}

.editorial-photo > img,
.fam-editorial-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: center center !important;
  filter: saturate(1.06) contrast(1.04);
  transition: filter 0.6s ease, transform 0.6s ease;
}

.editorial-photo:hover > img,
.fam-editorial-photo:hover > img {
  filter: saturate(1.15) contrast(1.08);
  transform: scale(1.02);
}

.editorial-photo > figcaption,
.fam-editorial-photo > figcaption {
  position: absolute;
  bottom: 18px;
  left: 20px;
  font-size: 12px;
  line-height: 1.4;
  color: #ffffff;
  background: rgba(33, 44, 93, 0.9);
  padding: 8px 14px;
  border-radius: 3px;
  max-width: calc(100% - 40px);
}

@media (max-width: 1000px) {
  .model-grid,
  .fam-model-grid {
    grid-template-columns: 1fr 1fr;
    row-gap: 24px;
  }
  .model-grid::before,
  .model-card::before,
  .model-root::after {
    display: none;
  }
  .amc-diagram {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 600px) {
  .model-grid,
  .fam-model-grid {
    grid-template-columns: 1fr;
  }
  .model-card summary {
    min-height: 100px;
  }
}
