/*

TemplateMo 550 Diagoona

https://templatemo.com/tm-550-diagoona


/* fondo diagonal del template */
.tm-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

body {
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 17px;
  font-weight: 300;
  overflow-x: hidden;
  color: white;
  background-color: #2c353c;
}

a {
  transition: all 0.3s ease;
  text-decoration: none;
}

ul {
  padding: 0;
}
a:hover {
  text-decoration: none;
}
button:focus {
  outline: none;
}
p {
  line-height: 1.9;
}
.tm-logo {
  margin-right: 20px;
}
.tm-slogan {
  font-size: 0.8rem;
}

/* Navigation */
.navbar-toggler {
  padding: 8px 15px;
  border: 0;
  border-radius: 0;
  transform: skewX(-15deg);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
}

.navbar-toggler i {
  transform: skewX(15deg);
}

.navbar-expand-lg {
  padding-left: 0;
  padding-right: 0;
}

.navbar-expand-lg .navbar-nav .nav-link {
  padding: 0;
}

.navbar-expand-lg .navbar-nav .tm-nav-link {
  font-size: 1.3rem;
  font-weight: 400;
  color: white;
  padding-bottom: 30px;
}

.nav-item {
  margin-right: 60px;
}

.nav-item:last-child {
  margin-right: 0;
}

.nav-item.active .tm-nav-link,
.nav-item:hover .tm-nav-link {
  color: #00526d;
}
.smc-logo {
  max-width: 220px;
  height: auto;
}
/* Page Background */
.tm-bg {
  position: absolute;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  display: flex;
  z-index: -1;
}

.tm-bg-left,
.tm-bg-right {
  position: relative;
  width: 50%;
  height: 100%;
}

.tm-bg-right {
  background-color: rgba(0, 0, 0, 0.5);
}

.tm-bg-left {
  border-right: 230px solid rgba(0, 0, 0, 0.5);
  border-top: 100vh solid transparent;
}

.tm-bg-controls-wrapper {
  display: inline-block;
  margin-left: -150px;
}

.tm-bg-control {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: rgba(255, 255, 255, 0.5);
  margin: 6px;
  cursor: pointer;
}

.tm-bg-control.active,
.tm-bg-control:hover {
  background-color: white;
}

.tm-container {
  width: 100%;
  height: 100vh; /* pantalla fija */
  overflow: hidden; /* sin scroll general */
  position: relative;
}
main.tm-col-right {
  height: calc(100vh - 120px); /* ajustamos según altura header */
  overflow: hidden;
}

.tm-row {
  display: flex;
}

.tm-col-left {
  width: 50%;
  height: 100%;
  padding-left: 40px;
  padding-right: 40px;
}

.tm-col-right {
  width: 50%;
  padding-left: 70px;
  padding-right: 70px;

  display: flex;
  flex-direction: column;

  min-height: 0; /* ← CLAVE para que overflow funcione */
}

.tm-content {
  display: none;
  flex: 1;
  overflow-y: auto;
  min-height: 0; /* ← MUY IMPORTANTE */
  padding-right: 20px;
}

.tm-row {
  display: flex;
  flex: 1; /* ← ESTA ES LA CLAVE */
  min-height: 0; /* ← permite que el hijo pueda scrollear */
}

.tm-content.active {
  display: block;
}

.tm-about {
  max-width: 525px;
}

::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 6px;
}

::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background-color: rgba(153, 153, 153, 0.055);
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.8);
}

.tm-content-title {
  font-size: 1.5rem;
}
hr {
  border-top: 1px solid rgba(255, 255, 255, 0.116);
}

.btn {
  padding: 10px 25px;
  border-radius: 0;
}

.btn-big {
  padding: 9px 40px;
  font-size: 1.2rem;
}

.btn-primary {
  background-color: white;
  color: black;
  border: 0;
}

.btn-primary:hover {
  background-color: #9cc;
  color: black;
}

.tm-site-footer {
  padding: 40px 0 20px;
  max-width: 660px;
  font-size: 0.95rem;
}

.tm-col-footer {
  padding-left: 0;
}
.tm-text-link {
  color: white;
}

.tm-text-link:hover,
.tm-text-link:focus {
  color: #9cc;
}

/* Service */
.tm-service-text {
  max-width: 365px;
}
.tm-service-img {
  margin-right: 25px;
}
.tm-service-img-r {
  margin-left: 25px;
}
.portfolio-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.portfolio-card img:hover {
  transform: scale(1.03);
}

/* Contact */
.form-control,
textarea {
  color: white;
  background-color: transparent;
  background-clip: padding-box;
  border: none;
  border-bottom: 1px solid #999a9b;
  border-radius: 0;
  transition:
    border-color 0.15s ease-in-out,
    box-shadow 0.15s ease-in-out;
  padding: 10px 0;
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.form-control:focus {
  color: white;
  background-color: transparent;
  box-shadow: none;
  border-color: #9cc;
  outline: none;
}

.mb-85 {
  margin-bottom: 85px;
}
.tm-contact-main {
  max-width: 690px;
}

.tm-contact {
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

.form-control::-webkit-input-placeholder {
  color: white;
} /* Edge */
.form-control:-ms-input-placeholder {
  color: white;
} /* Internet Explorer 10-11 */
.form-control::placeholder {
  color: white;
}

/* =========================
   SPA CONTENT HANDLING
   ========================= */

@media (min-width: 1400px) {
  .tm-content {
    max-width: 720px;
  }
}
@media (max-width: 1200px) {
  .nav-item {
    margin-right: 30px;
  }

  .tm-col-right {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ===== Quiénes somos ===== */

#about .tm-content-title {
  font-size: 42px;
  font-weight: 600;
}

#about .about-intro {
  max-width: 720px;
  line-height: 1.6;
  opacity: 0.9;
}

/* Cards */

.team-cards {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.team-card {
  width: 260px;
  padding: 25px;
  text-align: center;

  background: rgba(255, 255, 255, 0.01); /* ← antes 0.06 */

  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.02); /* más sutil */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* más suave */

  transition: transform 0.3s ease;
}

.team-card:hover {
  transform: translateY(-6px);
}
.team-card img {
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.team-card img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
}

.team-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.team-card p {
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.85;
}

/* =========================
   MOBILE LAYOUT + MENU
   ========================= */
@media (min-width: 993px) {
  .tm-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
  #home.tm-content {
    margin-top: 0;
  }
  main.tm-col-right {
    display: flex;
    align-items: center;
  }
  .tm-col-right {
    min-height: 0;
  }
}

@media (max-width: 992px) {
  body.menu-open {
    overflow: hidden;
  }
  .tm-col-right {
    min-height: 0;
  }
  /* Layout */
  .tm-row {
    flex-direction: column;
  }
  #home.tm-content {
    position: relative;
    z-index: 2;
  }

  #home.tm-content::before {
    content: "";
    position: absolute;
    inset: -40px;
    background: rgba(0, 0, 0, 0.6);
    z-index: -1;
  }
  .tm-bg-right {
    background-color: rgba(0, 0, 0, 0.7);
  }
  .tm-col-left,
  .tm-col-right {
    width: 100%;
    padding: 20px;
  }

  /* Header row */
  .tm-row.pt-4 {
    flex-direction: row;
    align-items: center;
  }

  .tm-col-left {
    flex: 1;
    padding-bottom: 0;
  }

  /* Header text */
  .tm-site-header h1 {
    font-size: 1.6rem;
  }

  .tm-slogan {
    font-size: 0.75rem;
  }

  /* Content */
  main.tm-col-right {
    min-height: auto;
    display: block;
  }

  .tm-content {
    margin-top: 0;
  }

  /* Mobile menu */
  .tm-nav {
    position: fixed;
    inset: 0;
    background: #0e1114;
    z-index: 10000;

    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
  }

  .tm-nav .navbar-nav {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .tm-nav .nav-item {
    margin: 0;
  }

  .tm-nav .tm-nav-link {
    display: block;
    padding: 14px 0;
    font-size: 1.05rem;
  }

  /* Background off */
  .tm-bg,
  .tm-bg-controls-wrapper {
    display: none !important;
  }
  .tm-container {
    justify-content: flex-start;
  }
  .tm-content {
    margin-top: 0;
  }
}

@media (max-width: 768px) {
  .tm-content {
    margin-top: 30px;
  }

  .tm-site-header {
    align-items: center;
  }

  .tm-logo {
    font-size: 2.2rem;
  }

  .tm-bg-controls-wrapper {
    margin-top: 30px;
    margin-left: 0;
  }
}
@media (max-width: 576px) {
  .tm-content-title {
    font-size: 1.3rem;
  }

  p {
    font-size: 0.95rem;
  }

  .btn,
  .btn-big {
    width: 100%;
    text-align: center;
  }
}
@media (max-width: 460px) {
  .tm-sitename {
    font-size: 1.6rem;
  }

  .tm-slogan {
    font-size: 0.75rem;
  }

  .tm-logo {
    margin-right: 10px;
  }

  .tm-nav {
    width: 100%;
    right: 0;
    border-radius: 0;
  }
}
