@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,200&display=swap");

@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap");

:root {
  --primary-color: #03a9f5;
  --dark-blue: #011e2b;
  --title-color: #3a526a;
  --border-radius: 30px;
}

*,
*::before,
*::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  color: var(--title-color);
}

main[role="main"] {
  display: contents;
}

section {
  max-width: 1400px;
  margin: 0 auto;
}

.large-banner {
  max-width: 100vw !important;
}

body::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 20px;
  border: 3px solid #f1f1f1;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background-color: #cccccc;
  border-radius: 20px;
  border: 3px solid #f1f1f1;
}

a {
  text-decoration: none;
  color: inherit;
}

#main-nav {
  position: sticky;
  top: 0;
  background-color: white;
  z-index: 999;
  width: 100vw !important;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 5vw;
  gap: 1rem;
  max-width: 1400px !important;
  margin: 0 auto;
}

.navbar .left .logo img {
  height: 65px;
  width: 170px;
  object-fit: contain;
}

.navbar .center .menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.navbar .center .menu li {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--title-color);
  position: relative;
  padding-bottom: 4px;
}

.navbar .center .menu li::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  border-radius: 2px;
  transition: width 0.3s ease, left 0.3s ease;
}

.navbar .center .menu li:hover {
  color: var(--primary-color);
}

.navbar .center .menu li:hover::after {
  width: 100%;
  left: 0;
}

.navbar .center .menu .active {
  color: var(--primary-color);
  font-weight: 600;
}

.navbar .center .menu .active::after {
  width: 100%;
  left: 0;
}

.navbar .center .menu .menu-header {
  display: none;
}

.navbar .right {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.navbar .right .phone {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.navbar .right .phone .box {
  width: 40px;
  height: 40px;
  max-width: 40px;
  aspect-ratio: 1/1;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.navbar .right .box svg {
  fill: white;
}

.navbar .right .phone a {
  font-weight: 600;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar .right .call-to-action {
  background: var(--primary-color);
  color: white;
  padding: 0.7rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 10px;
  border: 1.5px solid var(--primary-color);
  transition: all 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar .right .call-to-action:hover {
  box-shadow: 0 4px 16px rgba(3, 169, 245, 0.3);
  transform: translateY(-2px);
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.navbar .right .nav-qualiopi {
  height: 45px;
  object-fit: contain;
}

.navbar .right .mb-menu {
  display: none;
}

.search-container {
  width: 100%;
  position: relative;
}

.md-searchbar {
  width: 60% !important;
  min-width: 600px;
}

.md-searchbar {
  height: 60px;
  margin: 1.2rem auto;
  background-color: white;
  border-radius: 30px;
  padding-left: 1rem;
  border: 2px solid var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
}

.md-searchbar input {
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  color: gray;
  width: calc(100% - 45px);
  border: none;
  outline: none;
  flex: 1;
}

.searchbar .btn,
.md-searchbar .btn {
  margin: 0.1rem;
  height: 45px;
  width: 45px;
  max-width: 45px;
  aspect-ratio: 1/1;
  background-color: var(--title-color);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.searchbar .btn svg,
.md-searchbar .btn svg {
  fill: white;
}

.search-results {
  position: absolute;
  top: 100%;
  left: 15%;
  right: 15%;
  min-width: 70%;
  max-width: 70%;
  max-height: 420px;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
  display: none;
  color: var(--dark-blue);
  padding: 0.75rem;
  z-index: 10000 !important;
  text-align: left;
  opacity: 1 !important;
}

.search-results__empty {
  padding: 1rem;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

.search-result-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.search-result-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.35rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(31, 38, 135, 0.06);
}

.search-result-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(3, 169, 245, 0.15);
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(3, 169, 245, 0.2);
}

.search-result-card__body {
  flex: 1;
  min-width: 0;
}

.search-result-card__title {
  font-size: 1rem;
  font-weight: 500;
  color: var(--title-color);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.3rem;
}

.search-result-card__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.search-result-card__badge {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--primary-color);
  background: rgba(3, 169, 245, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.search-result-card__detail {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7b8d;
}

.search-result-card__detail svg {
  color: var(--primary-color);
  flex-shrink: 0;
}

.search-result-card__arrow {
  flex-shrink: 0;
  color: var(--primary-color);
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.25s ease;
}

.search-result-card:hover .search-result-card__arrow {
  opacity: 1;
  transform: translateX(0);
}

.contact-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
}

footer {
  background-color: var(--title-color);
}

.footer {
  background-color: var(--title-color);
  padding: 0.7rem 5vw;
  color: white;
  max-width: 1400px;
  margin: 0 auto;
}

.footer li {
  list-style: none;
}

.footer .info {
  display: flex;
  align-items: start;
  justify-content: space-between;
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 1rem;
  width: 100%;
}

.footer h3 {
  font-weight: 500;
  font-size: 0.9rem;
}

.footer .info .info-left {
  width: 30%;
}

.footer .info .info-left img {
  height: 100%;
  width: 100px;
  object-fit: contain;
}

.footer .info .info-left p {
  font-size: 0.7rem;
}

.footer .info .links .link {
  font-size: 0.8rem;
  text-decoration: underline;
}

.footer .info .info-right .social-media {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
}

.footer .info .info-right .social-media svg {
  fill: white;
  font-size: 1.5rem;
}

.footer .copyright {
  text-align: center;
  padding: 0.5rem 0;
}

.section-title {
  color: var(--title-color);
}

.footer .slogan {
  color: white !important;
  font-size: .8rem !important;
  font-weight: 500;
  margin-top: 0.5rem;
}

.footer .footer-qualiopi {
  height: 70px;
  object-fit: contain;
}

.footer .copyright {
  color: white !important;
}

.images-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* border-top: 1px solid #e6e5e5; */
  padding-bottom: 0.5rem;
  gap: 0.5rem;
}

.images-row .img1 {
  /* width: 140px; */
  height: 40px;
  object-fit: contain;
}

.images-row .img2 {
  /* width: 100%; */
  height: 70px;
  object-fit: contain;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

@media only screen and (max-width: 1300px) {
  .navbar .left .logo img {
    height: 50px;
    width: 150px;
  }
  .navbar .right .phone {
    display: none;
  }
  .navbar .right .nav-qualiopi {
    height: 35px;
  }
}

@media only screen and (max-width: 997px) {
  .navbar .left .logo img {
    height: 45px;
    width: 140px;
  }
  .navbar .center .menu {
    display: none;
    flex-direction: column;
    align-items: start;
    justify-content: flex-start;
    background-color: #f1f1f1f9;
    width: 50%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9900;
  }

  .navbar .center .menu.show {
    display: flex;
    gap: 2rem;
    padding: 2rem;
  }

  .navbar .center .menu .menu-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .navbar .center .menu .menu-header .close-btn {
    cursor: pointer;
  }

  .navbar .center .menu .menu-header .logo img {
    height: 45px;
    width: 100%;
    object-fit: cover;
  }

  .navbar .right .mb-menu {
    display: block;
    cursor: pointer;
  }

  .search-results {
    left: 5%;
    right: 5%;
    min-width: 90%;
    max-width: 90%;
    background-color: #ffffff !important;
    opacity: 1 !important;
    z-index: 10000 !important;
  }

  .footer .info .info-left {
    width: 50%;
  }

  .navbar .right .phone {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .search-results {
    left: 5vw;
    right: 5vw;
    width: 90vw;
    background-color: #ffffff !important;
    opacity: 1 !important;
    z-index: 10000 !important;
  }

  .md-searchbar {
    min-width: 500px;
  }
}
@media only screen and (max-width: 730px) {
  .navbar .right .phone {
    display: none;
  }
}

@media only screen and (max-width: 560px) {
  .navbar .center .menu {
    width: 80%;
  }

  .navbar .right .nav-qualiopi {
    display: none;
  }

  .navbar .right .call-to-action {
    padding: 0.5rem 0.7rem;
    font-size: 0.8rem;
  }

  .md-searchbar {
    width: 100% !important;
  }

  .search-results {
    left: 2%;
    right: 2%;
    min-width: 96%;
    max-width: 96%;
    background-color: #ffffff !important;
    opacity: 1 !important;
    z-index: 10000 !important;
  }

  .md-searchbar {
    min-width: 300px;
  }

  .footer .info {
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer .info .info-left {
    width: 100%;
  }

  .footer .info .info-left img {
    width: 80px;
  }

  .footer .info .links {
    width: 100%;
  }

  .footer .copyright {
    font-size: 0.75rem;
  }
}

@media only screen and (max-width: 300px) {
  .navbar .right .call-to-action {
    display: none;
  }

  .md-searchbar {
    min-width: 250px;
  }
}

/* _Card Styles */

.metro-qualiopi {
  padding: 1rem;
  background-color: #f8f8f8;
  border: 1px solid #03a8f537;
}

.metro-qualiopi .line {
  margin: 0.3rem 0;
  background-color: #e6e5e5;
  height: 1px;
  width: 100%;
}

.metro-qualiopi .row {
  padding: 0.3rem 0;
}

.metro-qualiopi .phone {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 0.5rem;
  margin: 0.5rem 0;
}

.metro-qualiopi .phone .box {
  width: 25px;
  height: 25px;
  max-width: 25px;
  aspect-ratio: 1/1;
  background-color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.metro-qualiopi .phone .box svg {
  fill: white;
  height: 12px !important;
  width: 12px !important;
}

.metro-qualiopi .phone a {
  font-weight: 600;
  font-size: 1rem;
}

.row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.row span {
  font-size: 12px;
}

.row .metro {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.1rem;
}

.row .metro .circle {
  width: 18px;
  height: 18px;
  max-width: 18px;
  aspect-ratio: 1/1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.row .metro .text {
  font-size: 12px;
}

.contact-image-small {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center center;
  border-radius: 6px;
}

.address-nativo h3,
.title-access {
  font-size: 15px;
  font-weight: 600;
}

.address-nativo address {
  font-style: normal;
  font-weight: 600;
  font-size: 0.9rem;
}
.green-dark {
  background-color: rgb(67, 86, 67);
  color: white;
}

.green-secondary {
  background-color: rgb(134, 193, 16);
  color: white;
}

.green {
  background-color: green;
  color: white;
}

.blue {
  background-color: rgb(17, 102, 199);
  color: white;
}

.violet {
  background-color: rgb(44, 2, 74);
  color: white;
}

.red {
  border: 1px solid red;
  color: red;
}

.indigo {
  border: 1px solid indigo;
  color: indigo;
}

.metro-qualiopi .bottom {
  padding-top: 1rem;
  font-size: 12px;
}
.metro-qualiopi .bottom h4 {
  font-weight: 500;
  font-size: 12px;
}

.metro-qualiopi .bottom li {
  list-style: none;
  font-weight: 500;
}

/* ===== Sidebar Card — Redesigned ===== */

.sidebar-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 16px rgba(31, 38, 135, 0.08);
}

.sidebar-card__map {
  position: relative;
  display: block;
  overflow: hidden;
}

.sidebar-card__map img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s ease;
}

.sidebar-card__map:hover img {
  transform: scale(1.03);
}

.sidebar-card__map-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(1, 30, 43, 0.95) 0%, rgba(1, 30, 43, 0.85) 50%, transparent 100%);
  padding: 2.5rem 0.8rem 0.8rem;
  color: white;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sidebar-card__metro-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.25rem;
}


.sidebar-card__circles {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex-wrap: wrap;
}

.sidebar-card__circle {
  width: 20px;
  height: 20px;
  min-width: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: white;
}

.sidebar-card__circle.sc-green-dark { background-color: rgb(67, 86, 67); }
.sidebar-card__circle.sc-green-secondary { background-color: rgb(134, 193, 16); }
.sidebar-card__circle.sc-green { background-color: green; }
.sidebar-card__circle.sc-blue { background-color: rgb(17, 102, 199); }
.sidebar-card__circle.sc-violet { background-color: rgb(44, 2, 74); }
.sidebar-card__circle.sc-red {
  background: transparent;
  border: 2px solid #e74c3c;
  color: #e74c3c;
}
.sidebar-card__circle.sc-indigo {
  background: transparent;
  border: 2px solid #9b59b6;
  color: #9b59b6;
}

.sidebar-card__rer {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0.15rem;
}

.sidebar-card__gmaps {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color);
  transition: color 0.2s;
}

.sidebar-card__gmaps:hover { color: white; }
.sidebar-card__gmaps svg { stroke: var(--primary-color); fill: none; }
.sidebar-card__gmaps:hover svg { stroke: white; }

.sidebar-card__info {
  padding: 0.6rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

a.sidebar-card__info-item,
div.sidebar-card__info-item,
.sidebar-card__info-item {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  white-space: nowrap;
}

.sidebar-card__icon {
  width: 30px;
  height: 30px;
  min-width: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-card__icon--phone {
  background: linear-gradient(135deg, #e8f4fd, #d1ecf9);
}
.sidebar-card__icon--phone svg { stroke: var(--primary-color); }

.sidebar-card__icon--address {
  background: linear-gradient(135deg, #fef3e8, #fde5c8);
}
.sidebar-card__icon--address svg { stroke: #e67e22; }

.sidebar-card__icon--metro {
  background: linear-gradient(135deg, #e8f8ed, #d1f0db);
}
.sidebar-card__icon--metro svg { stroke: #27ae60; }

.sidebar-card__value {
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--title-color);
  line-height: 1.3;
}

.sidebar-card__qualiopi {
  padding: 0.8rem 1rem;
  display: flex;
  justify-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 0 0 var(--border-radius, 8px) var(--border-radius, 8px);
}

.sidebar-card__qualiopi img {
  max-width: 160px;
  height: auto;
  object-fit: contain;
}

.sidebar-card__footer {
  padding: 0.6rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.sidebar-card__footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.sidebar-card__footer a {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--title-color);
  transition: color 0.2s;
}

.sidebar-card__footer a:hover {
  color: var(--primary-color);
}
