/* ============================================================
   TENJO Elementor Widgets — estilos BEM
   ============================================================ */

/* ---------- Hero ---------- */
.tew-hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background-color: #15253b;
}

.tew-hero__media {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.tew-hero__overlay {
  position: absolute;
  inset: 0;
}

.tew-hero__content {
  position: relative;
  z-index: 2;
  width: min(1025px, calc(100% - 48px));
  text-align: center;
  padding: 60px 0;
}

.tew-hero__title {
  margin: 0 0 26px;
  font-size: clamp(42px, 4.8vw, 68px);
  font-weight: 700;
  line-height: 1.2;
}

.tew-hero__description {
  width: min(743px, 100%);
  margin: 0 auto 26px;
  font-size: 24px;
  line-height: 1.4;
}

.tew-hero__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 16px 24px;
  border: 0;
  border-radius: 45px;
  color: #fff;
  background: #e07d2d;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Especialidades ---------- */
.tew-specialties {
  padding: 100px 0 106px;
  background: #e7ddd2;
}

.tew-specialties__inner {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 96px;
}

.tew-specialties__heading {
  text-align: center;
}

.tew-specialties__title {
  margin: 0 0 26px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #15253b;
}

.tew-specialties__sub {
  width: min(521px, 100%);
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.4;
  color: #15253b;
}

.tew-specialties__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 61px;
  width: 100%;
}

.tew-specialty-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 427px;
  overflow: hidden;
  background-color: #15253b;
}

.tew-specialty-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(21, 37, 59, 0) 31%, #15253b 69%);
}

.tew-specialty-card__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 80%;
  object-fit: cover;
}

.tew-specialty-card__icon {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 23px;
  display: grid;
  width: 71px;
  height: 71px;
  place-items: center;
  border-radius: 50%;
  color: #15253b;
  background: rgba(255, 255, 255, 0.6);
  font-size: 34px;
  font-weight: 400;
}

.tew-specialty-card__body {
  position: relative;
  z-index: 2;
  padding: 23px;
}

.tew-specialty-card__title {
  margin: 0 0 17px;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
}

.tew-specialty-card__desc {
  min-height: 45px;
  margin: 0 0 32px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  line-height: 1.4;
}

.tew-specialty-card__link {
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 13px 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 45px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

/* ---------- Experiencia ---------- */
.tew-experience {
  padding: 219px 0 203px;
  background: #fff;
}

.tew-experience__inner {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 138px;
  align-items: center;
}

.tew-experience__title {
  margin: 0 0 45px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #15253b;
}

.tew-experience__text p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.4;
  color: #15253b;
}

.tew-experience__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 16px 24px;
  border: 0;
  border-radius: 45px;
  color: #fff;
  background: #15253b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  margin-top: 1px;
}

.tew-experience__image {
  width: 100%;
  height: 662px;
  object-fit: cover;
}

/* ---------- Equipo ---------- */
.tew-team {
  padding: 0 0 116px;
  background: #fff;
}

.tew-team__panel {
  width: min(1346px, calc(100% - 48px));
  margin-inline: auto;
  padding: 92px 45px;
  border-radius: 35px;
  background: rgba(21, 37, 59, 0.05);
  text-align: center;
}

.tew-team__title {
  margin: 0 0 51px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.2;
  color: #15253b;
}

.tew-team__lead {
  width: min(600px, 100%);
  margin: 0 auto 22px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
  color: #15253b;
}

.tew-team__text {
  width: min(600px, 100%);
  margin: 0 auto 51px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #15253b;
}

.tew-team__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.tew-team-card {
  padding: 13px 13px 23px;
  border-radius: 25px;
  background: #fff;
  text-align: left;
}

.tew-team-card__image {
  width: 100%;
  height: 277px;
  margin-bottom: 24px;
  border-radius: 28px;
  object-fit: cover;
  background: #f6f6f6;
}

.tew-team-card__name {
  margin: 0 10px 7px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  color: #15253b;
}

.tew-team-card__role {
  margin: 0 10px;
  font-size: 16px;
  line-height: 1.4;
  color: #15253b;
}

/* ---------- Instagram ---------- */
.tew-instagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 106px 0 54px;
  background: #e7ddd2;
}

.tew-instagram__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 59px;
  width: min(1080px, calc(100% - 48px));
  margin-bottom: 48px;
}

.tew-instagram__item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
}

.tew-instagram__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 16px 24px;
  border: 0;
  border-radius: 45px;
  color: #15253b;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Contacto ---------- */
.tew-contact {
  padding: 102px 0;
  background: #fff;
}

.tew-contact__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 59px;
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  margin-bottom: 27px;
}

.tew-contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 371px;
  border-radius: 15px;
  background: rgba(21, 37, 59, 0.05);
  text-align: center;
}

.tew-contact-card h2 {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #15253b;
}

.tew-contact-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.6;
  color: #15253b;
}

.tew-contact__form {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 24px;
  padding-top: 53px;
  border-top: 1px solid rgba(21, 37, 59, 0.2);
}

.tew-contact__form h2 {
  align-self: stretch;
  margin: 0;
  padding-left: 20px;
  color: #333;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
}

.tew-contact__form-fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tew-contact__form-fields label:not(.tew-contact__check) {
  position: relative;
  width: 100%;
}

.tew-contact__form-fields label:not(.tew-contact__check) span {
  position: absolute;
  top: 23px;
  left: 17px;
  font-size: 16px;
  color: #000;
  pointer-events: none;
}

.tew-contact__form-fields input,
.tew-contact__form-fields textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 20px;
  color: #000;
  background: #fff;
  font: inherit;
}

.tew-contact__form-fields input {
  height: 67px;
  padding: 23px 17px 10px;
}

.tew-contact__form-fields textarea {
  min-height: 150px;
  padding: 48px 17px 17px;
  resize: vertical;
}

.tew-contact__check {
  align-self: stretch;
  display: flex;
  align-items: center;
  gap: 11px;
  color: rgba(21, 37, 59, 0.7);
  font-size: 16px;
  font-weight: 500;
}

.tew-contact__check input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 0;
}

.tew-contact__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 16px 24px;
  border: 0;
  border-radius: 45px;
  color: #fff;
  background: #15253b;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.tew-footer {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #15253b, #101c2c);
}

.tew-footer__inner {
  position: relative;
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 131px;
  align-items: center;
  min-height: 579px;
  padding: 100px 0;
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.tew-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 270px;
  min-height: 379px;
  justify-content: center;
  padding: 26px;
  border-radius: 20px;
  color: #000;
  background: #fff;
  font-style: normal;
}

.tew-footer__contact strong {
  font-size: 18px;
  line-height: 1.5;
}

.tew-footer__contact span,
.tew-footer__contact a {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: #000;
}

.tew-footer__logo {
  width: 345px;
  height: 95px;
  margin-bottom: 51px;
  object-fit: contain;
}

.tew-footer__columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tew-footer__columns p {
  margin: 0 0 25px;
  font-size: 16px;
  line-height: 1.6;
}

.tew-footer__columns h2 {
  margin: 0 0 25px;
  font-size: 24px;
  font-weight: 700;
}

.tew-footer__columns strong {
  font-size: 18px;
  font-weight: 600;
}

.tew-footer__legal {
  position: relative;
  padding: 15px 0 20px;
  background: rgba(0, 0, 0, 0.32);
}

.tew-footer__legal nav {
  display: flex;
  gap: 8px;
  color: #666;
  font-size: 14px;
  font-weight: 700;
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}

.tew-footer__legal a {
  color: #666;
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .tew-specialties__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tew-experience__inner {
    grid-template-columns: 1fr 430px;
    gap: 56px;
  }
  .tew-team__grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .tew-instagram__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
  .tew-footer__inner {
    grid-template-columns: 270px 1fr;
    gap: 56px;
  }
}

@media (max-width: 991px) {
  .tew-experience__inner {
    grid-template-columns: 1fr;
  }
  .tew-experience__image {
    height: auto;
    max-height: 662px;
  }
  .tew-team__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .tew-contact__cards,
  .tew-instagram__grid,
  .tew-footer__inner,
  .tew-footer__columns {
    grid-template-columns: 1fr;
  }
  .tew-footer__inner {
    gap: 40px;
  }
}

@media (max-width: 767px) {
  .tew-specialties__inner {
    gap: 56px;
  }
  .tew-specialties__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .tew-specialties__title,
  .tew-experience__title,
  .tew-team__title {
    font-size: 34px;
  }
  .tew-team__grid {
    grid-template-columns: 1fr;
  }
  .tew-contact__cards {
    gap: 24px;
  }
  .tew-contact-card {
    height: 300px;
  }
  .tew-footer__contact,
  .tew-footer__main,
  .tew-footer__columns > div {
    width: 100%;
  }
  .tew-footer__logo {
    width: min(345px, 100%);
  }
  .tew-footer__legal nav {
    flex-wrap: wrap;
  }
}
