/* ============================================
   MARIO JUIZ - Clone CSS
   ============================================ */

:root {
  --maincolor: #0345bf;
  --secondcolor: #1F1F25;
  --color-body: #6E777D;
  --color-heading-1: #1f1f25;
  --color-white: #fff;
  --font-primary: "Exo", sans-serif;
  --font-secondary: "Albert Sans", sans-serif;
  --transition: 0.3s;
  --h1: 60px;
  --h2: 48px;
  --h3: 30px;
  --h4: 26px;
  --h5: 24px;
  --h6: 18px;
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 16px;
  line-height: 27px;
  color: #74787C;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  line-height: 1.4;
  color: var(--color-heading-1);
  margin-bottom: 20px;
}

h1 { font-size: var(--h1); font-weight: 700; }
h2 { font-size: var(--h2); font-weight: 700; line-height: 1.23; }
h3 { font-size: var(--h3); font-weight: 700; }
h4 { font-size: var(--h4); font-weight: 600; }
h5 { font-size: var(--h5); font-weight: 600; line-height: 1.24; }
h6 { font-size: var(--h6); font-weight: 600; line-height: 1.25; }

p {
  margin-bottom: 20px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

a:hover {
  color: var(--maincolor);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

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

/* ============================================
   TOP BAR
   ============================================ */
#sp-top {
  background: var(--maincolor);
  height: 40px;
  display: flex;
  align-items: center;
}

.top-bar-inner {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  height: 40px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 15px;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 14px;
}

.top-bar-item i {
  color: #fff;
}

.top-bar-item a {
  color: #fff;
}

.top-bar-item a:hover {
  color: #D9D9D9;
}

/* ============================================
   HEADER
   ============================================ */
#sp-header {
  position: relative;
  z-index: 999;
  height: auto;
  background: transparent;
  transition: all 0.3s ease;
}

#sp-header.header-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  backdrop-filter: blur(9px);
  box-shadow: 0px 7px 18px #1810100d;
}

#sp-header .container-inner > .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.col-logo {
  flex: 0 0 auto;
}

.logo {
  padding: 23px 0;
}

.logo-image {
  height: 86px;
  width: auto;
}

.col-header-right {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.header-right-content {
  display: flex;
  align-items: center;
  gap: 30px;
}

.iso-badge {
  height: 80px;
  width: auto;
}

.btn-contact {
  display: inline-block;
  padding: 13px 25px;
  font-size: 16px;
  line-height: 19px;
  font-weight: 600;
  font-family: var(--font-secondary);
  border-radius: 4px;
  color: #fff;
  background: var(--secondcolor);
  position: relative;
  z-index: 0;
  transition: color 0.3s;
  white-space: nowrap;
}

.btn-contact::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  transform: scaleX(1);
  transform-origin: 50%;
  transition: transform 0.3s ease-out;
  border-radius: 4px;
  background: var(--maincolor);
}

.btn-contact:hover {
  color: #fff;
  background: var(--secondcolor);
}

.btn-contact:hover::before {
  transform: scaleX(0);
}

/* ============================================
   HERO SLIDER
   ============================================ */
.hero-slider {
  position: relative;
  width: 100%;
  height: 825px;
  overflow: hidden;
}

.slider-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.sp-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: left;
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  padding: 0 15px;
}

.water-text {
  position: absolute;
  left: 0;
  top: -80px;
  z-index: 0;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-width: 1px;
  -webkit-text-stroke-color: rgba(255, 255, 255, 0.1);
  font-family: var(--font-primary);
  font-size: 180px;
  font-weight: 700;
  line-height: 1;
  user-select: none;
}

.pre {
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
}

.pre span {
  background: var(--maincolor);
  padding: 2px 7px;
  border-radius: 2px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  font-family: var(--font-secondary);
}

.slide-title {
  font-size: 60px;
  line-height: 91px;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
  margin-bottom: 10px;
}

.slide-desc {
  font-size: 16px;
  color: #fff;
  position: relative;
  z-index: 1;
  max-width: 500px;
}

.slider-dots {
  position: absolute;
  left: 50px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: 0.3s;
}

.dot.active {
  background: #fff;
}

/* ============================================
   SERVICES SECTION
   ============================================ */
.services-section {
  padding: 80px 0 120px;
  position: relative;
  margin-top: -60px;
  z-index: 5;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.service-card {
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 10px;
  padding: 30px;
  min-height: 240px;
  overflow: hidden;
  cursor: pointer;
  z-index: 1;
  border-top: 3px solid var(--maincolor);
}

/* Dark overlay behind image (visible on hover) */
.service-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #1b1b1b86;
  border-radius: 10px;
  z-index: -1;
}

/* White overlay that shrinks on hover */
.service-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 10px;
  z-index: -1;
  transition: 0.3s;
}

.service-card:hover::after {
  height: 0%;
}

.service-content {
  position: relative;
  z-index: 2;
}

.icon-area {
  margin-bottom: 26px;
  text-align: center;
}

.icon-area svg path {
  transition: 0.3s;
}

.service-card:hover .icon-area svg path {
  fill: #fff;
}

.service-card .title h5 {
  color: var(--color-heading-1);
  font-size: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 10px;
  transition: 0.3s;
}

.service-card .title h5 a {
  color: inherit;
}

.service-card:hover .title h5 {
  color: #fff;
}

.service-card .title h5:hover {
  color: var(--maincolor);
}

.service-card .disc {
  transition: 0.3s;
}

.service-card .disc p {
  margin: 0;
  font-size: 16px;
  line-height: 27px;
}

.service-card:hover .disc {
  color: #fff;
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-section {
  padding: 0 0 120px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.section-title {
  color: var(--color-heading-1);
  font-size: var(--h2);
  margin-bottom: 30px;
}

.about-left p {
  margin-bottom: 15px;
}

.about-left .section-pre-title {
  text-align: left;
  margin-bottom: 10px;
}

.counters-row {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

.counter-item {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.counter-number {
  font-family: var(--font-primary);
  font-size: 24px;
  font-weight: 700;
  color: var(--maincolor);
  line-height: 1;
  display: inline;
}

.counter-number::before {
  content: "+";
  display: inline;
}

.counter-prefix {
  display: none;
}

.counter-label {
  font-size: 16px;
  color: var(--color-heading-1);
  width: 100%;
}

/* 60+ counter overlay on image */
.counter-overlay .counter-number {
  font-size: 34px;
  color: var(--color-heading-1);
  display: block;
}

.about-image-main {
  position: relative;
  border-radius: 10px;
  overflow: visible;
  margin-bottom: 20px;
}

.about-image-main > img {
  border-radius: 10px;
  display: block;
  width: 100%;
}

.counter-overlay {
  position: absolute;
  top: 276px;
  left: 10px;
  padding: 15px 25px;
  background: #f0f0f0;
  border: 2px solid var(--maincolor);
  border-radius: 6px;
}

.about-image-main img {
  width: 100%;
  display: block;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.gallery-item {
  display: block;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.8;
}

/* ============================================
   SECTION TITLE AREA (Water text)
   ============================================ */
.section-title-area {
  padding: 60px 0 0;
  position: relative;
  overflow: hidden;
}

.water-text-section {
  font-family: var(--font-primary);
  font-size: 100px;
  font-weight: 700;
  color: var(--maincolor);
  opacity: 0.08;
  line-height: 1;
  margin-bottom: -30px;
  user-select: none;
}

.about-water {
  text-align: left;
  margin-bottom: -20px;
}

.section-pre-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--maincolor);
  margin-bottom: 5px;
}

.section-pre-title span {
  background: var(--maincolor);
  color: #fff;
  padding: 2px 7px;
  border-radius: 2px;
}

.section-title-area h2 {
  font-size: var(--h2);
  color: var(--color-heading-1);
  margin-bottom: 0;
}

/* ============================================
   VISION & MISSION
   ============================================ */
.vision-mission-section {
  padding: 75px 0;
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  text-align: center;
}

.vm-icon {
  margin-bottom: 20px;
}

.vm-icon i {
  font-size: 40px;
  color: var(--maincolor);
}

.vm-item h3 {
  text-align: center;
  margin-bottom: 20px;
}

.vm-item p {
  text-align: center;
}

/* ============================================
   POLITICA DE GESTION
   ============================================ */
.politica-section {
  padding: 75px 0;
}

.politica-icon {
  text-align: center;
  margin-bottom: 15px;
}

.politica-icon i {
  font-size: 40px;
  color: var(--maincolor);
}

.politica-heading {
  font-family: var(--font-primary);
  font-size: var(--h3);
  font-weight: 700;
  text-align: center;
  color: var(--color-heading-1);
  margin-bottom: 30px;
}

.politica-section p {
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.politica-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto 20px;
}

.politica-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 15px;
  text-align: left;
}

.politica-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--maincolor);
}

.politica-date {
  font-weight: 600;
  margin-top: 30px;
}

.politica-firma {
  font-weight: 700;
  color: var(--color-heading-1);
}

/* ============================================
   CLIENTS CAROUSEL
   ============================================ */
.clients-section {
  padding: 0 0 80px;
  overflow: hidden;
}

.clients-section .section-title-area {
  padding: 60px 0 40px;
}

.clients-carousel-wrapper {
  overflow: hidden;
  position: relative;
}

.clients-track {
  display: flex;
  align-items: center;
  gap: 30px;
  animation: scrollClients 30s linear infinite;
  width: max-content;
}

.client-item {
  flex: 0 0 auto;
}

.client-item img {
  height: 57px;
  width: 146px;
  object-fit: contain;
  filter: grayscale(0);
  transition: 0.3s;
}

.client-item img:hover {
  filter: grayscale(0);
  opacity: 0.7;
}

@keyframes scrollClients {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ============================================
   MAP SECTION
   ============================================ */
.map-section {
  width: 100%;
  line-height: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: 450px;
  border: 0;
}

/* ============================================
   FOOTER
   ============================================ */
#sp-footer {
  position: relative;
  z-index: 0;
}

.footer-inner {
  background: #1F1F25;
  padding: 90px 0 55px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 80px;
  flex-wrap: wrap;
}

.footer-about {
  flex-basis: 39%;
}

.footer-logo {
  max-width: 300px;
  margin-bottom: 45px;
}

.footer-desc {
  color: #D9D9D9;
  font-size: 16px;
  line-height: 27px;
}

.footer-contact {
  flex-basis: 30%;
}

.footer-title {
  font-size: 24px;
  line-height: 32px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 45px;
  position: relative;
}

.footer-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -15px;
  height: 2px;
  width: 61px;
  border-bottom: 2px solid #fff;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 32px;
  color: #D9D9D9;
}

.footer-contact-item i {
  font-size: 16px;
  color: #D9D9D9;
}

.footer-contact-item a {
  color: #D9D9D9;
}

.footer-contact-item a:hover {
  color: var(--maincolor);
}

.footer-contact-item h6 {
  font-size: 16px;
  font-weight: 600;
  color: inherit;
  margin: 0;
}

/* ============================================
   SUB FOOTER
   ============================================ */
.sub-footer {
  background: #181820;
  padding: 15px 0;
  text-align: center;
}

.sub-footer p {
  margin: 0;
  font-size: 14px;
  color: #999;
}

.sub-footer a {
  color: #D9D9D9;
  font-weight: 600;
}

.sub-footer a:hover {
  color: var(--maincolor);
}

/* ============================================
   BACK TO TOP
   ============================================ */
.sp-scroll-up {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--maincolor);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 20px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  text-decoration: none;
}

.sp-scroll-up:hover {
  color: #fff;
  background: var(--secondcolor);
}

.sp-scroll-up.visible {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   GALLERY MODAL
   ============================================ */
.gallery-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.active {
  display: flex;
}

.gallery-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.85);
  cursor: pointer;
}

.gallery-modal-content {
  position: relative;
  z-index: 1;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal-img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  border-radius: 5px;
}

.gallery-modal-close {
  position: absolute;
  top: -40px;
  right: -10px;
  background: none;
  border: none;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
  z-index: 2;
}

.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 24px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  z-index: 2;
}

.gallery-modal-prev:hover,
.gallery-modal-next:hover {
  background: rgba(255,255,255,0.3);
}

.gallery-modal-prev {
  left: -60px;
}

.gallery-modal-next {
  right: -60px;
}


/* ============================================
   OFFCANVAS PANEL
   ============================================ */
.offcanvas-toggler {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px;
}

.offcanvas-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
}

.offcanvas-overlay.active {
  opacity: 1;
  visibility: visible;
}

.offcanvas-menu {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100%;
  background: #fff;
  z-index: 10000;
  transition: right 0.4s ease;
  overflow-y: auto;
}

.offcanvas-menu.active {
  right: 0;
}

.offcanvas-header {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 20px 24px 0;
}

.close-offcanvas {
  cursor: pointer;
  display: inline-block;
}

.burger-icon {
  width: 24px;
  height: 20px;
  position: relative;
}

.burger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--maincolor);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 9px; }
.burger-icon span:nth-child(3) { top: 18px; }

.burger-icon.open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

.burger-icon.open span:nth-child(2) {
  opacity: 0;
}

.burger-icon.open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

.offcanvas-inner {
  padding: 30px 40px;
  text-align: center;
}

.offcanvas-img {
  max-width: 310px;
  width: 100%;
  margin-bottom: 25px;
}

.offcanvas-inner h4 {
  font-size: 26px;
  font-weight: 600;
  color: var(--color-heading-1);
  text-align: center;
  margin-bottom: 10px;
}

.offcanvas-inner p {
  font-size: 16px;
  color: #252525;
  text-align: center;
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1199px) {
  .water-text {
    font-size: 120px;
  }
  .water-text-section {
    font-size: 70px;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    gap: 50px;
    flex-wrap: wrap;
  }
  h1 { font-size: 38px; }
  h2 { font-size: 32px; }
  h3 { font-size: 28px; }
  .slide-title { font-size: 48px; line-height: 1.3; }
}

@media (max-width: 991px) {
  .hero-slider {
    height: 600px;
  }
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .vm-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .slide-title { font-size: 38px; }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h5 { font-size: 18px; }
  .water-text {
    font-size: 80px;
  }
  .water-text-section {
    font-size: 50px;
  }
  .iso-badge {
    display: none;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 767px) {
  .hero-slider {
    height: 500px;
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .slide-content {
    padding: 0 20px;
  }
  .water-text {
    font-size: 50px;
    top: -40px;
  }
  .water-text-section {
    font-size: 36px;
  }
  .slide-title {
    font-size: 28px;
    line-height: 1.3;
  }
  .slider-dots {
    left: 15px;
  }
  .footer-grid {
    flex-direction: column;
  }
  .footer-about,
  .footer-contact {
    flex-basis: 100%;
  }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .header-right-content {
    gap: 10px;
  }
  .btn-contact {
    padding: 10px 20px;
    font-size: 13px;
  }
  .counters-row {
    flex-direction: column;
    gap: 20px;
  }
  .counter-number {
    font-size: 36px;
  }
  .counter-prefix {
    font-size: 36px;
  }
  h1 { font-size: 34px; }
  h2 { font-size: 28px; }
  h3 { font-size: 24px; }
  h4 { font-size: 20px; }
  h5 { font-size: 20px; }
  .gallery-modal-prev { left: -30px; }
  .gallery-modal-next { right: -30px; }
}

@media (max-width: 575px) {
  .header-right-content {
    gap: 8px;
  }
  .hero-slider {
    height: 420px;
  }
  .slide-title {
    font-size: 24px;
  }
  .water-text {
    font-size: 36px;
    top: -25px;
  }
  .service-card {
    min-height: 200px;
  }
}
