/* Floating Chat Icon */
/* Chatbot Floating Icon */
#chatbot-icon {
  position: fixed;
  bottom: 50px;
  right: 20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  animation: anime 2s infinite ease-in-out alternate;
  -webkit-animation: anime 2s infinite ease-in-out alternate;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
  z-index: 99999;

  /* Blue Border */
  border: 3px solid #0070c0;
}

@keyframes anime{
	  100%{
		transform: translateY(10px);
		-webkit-transform: translateY(100px0);
		-moz-transform: translateY(100px);
		-ms-transform: translateY(100px);
		-o-transform: translateY(100px);
		box-shadow: 0 2px 2px 2px rgba(0,0,0,0.2);
	}
  }

/* Profile Image Inside Circle */
#chatbot-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hover Effect */
#chatbot-icon:hover {
  transform: scale(1.1);
}

/* Chatbot Container */
#chatbot-container {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 350px;
  height: 450px;
  background-color: #ffffff;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 99999;
}

/* Hide Chatbot Initially */
.hidden {
  display: none !important;
}

/* Chatbot Header */
#chatbot-header {
  background-color: #0070c0;
  color: white;
  padding: 15px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
}

#close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
}

/* Chatbot Body */
#chatbot-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
}

/* Chatbot Messages */
#chatbot-messages {
  display: flex;
  flex-direction: column;
}

.message {
  margin-bottom: 15px;
  padding: 12px;
  border-radius: 8px;
  max-width: 85%;
}

.message.user {
  background-color: #d0cece;
  color: #303030;
  align-self: flex-end;
}

.message.bot {
  background-color: #0070c0;
  color: white;
  align-self: flex-start;
}

/* Input Section */
#chatbot-input-container {
  display: flex;
  padding: 10px;
  border-top: 1px solid #303030;
  background-color: #303030;
}

#chatbot-input {
  flex: 1;
  padding: 10px;
  border: 1px solid #303030;
  border-radius: 10px;
  background-color: #ffffff;
  color: #303030;
}

#send-btn {
  margin-left: 10px;
  padding: 10px 15px;
  background-color: #0070c0;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}

#send-btn:hover {
  background-color: #bdbdbd;
}

.image-section {
    min-height: 315px;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.promo-bar {
    position: relative;
    width: 100%;
    background: #032f64;
    overflow: hidden;
    white-space: nowrap;
    height: 40px;
    display: flex;
    align-items: center;
}



.promo-track {
    display: flex;
    width: max-content;
    animation: scrollPromo 500s linear infinite;
    will-change: transform;
}

.promo-item {
    color: white;
    font-weight: light;
    font-size: 16px;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.promo-item::after {
    content: "💡";
    margin-left: 30px;
    font-size: 11px;
}




@keyframes scrollPromo {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (max-width: 768px) {
    .promo-item {
        font-size: 16px;
        padding: 0 30px;
    }

    .promo-bar {
        height: 35px;
    }
}

.promo-track:hover {
    animation-play-state: paused;
}





.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 80px;
    padding-left: 40px;
    padding-right: 40px;
}



.card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}


.content {
    padding: 10px 15px;
}


.content h3 {
    margin-bottom: 8px;
    color: #333;
}

.content p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}


.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 999;
}

.lightbox img {
    max-width: 70vh;
    max-height: 80%;
    transition: transform 0.3s ease;
}

.controls {
    margin-top: 20px;
}

.controls button {
    padding: 10px 15px;
    margin: 0 5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 35px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .gallery {
        grid-template-columns: 1fr;
    }
}


.quote-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    
    width: 35px;
    height: 80px;
    
    background: #f9d04b;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    text-decoration: none;
    z-index: 9999;
    
    box-shadow: -2px 2px 8px rgba(0,0,0,.15);
}

.quote-banner span {
    color: #000;
    font-size: 14px;
    font-weight: 600;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
    
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.quote-banner:hover {
    background: #f9d04b;
}



/* Testimonials Slider */
.testimonials {
    text-align: center;
    padding: 80px 10px;
    background: #f5f5f5;
}

.testimonials .subtitle {
    font-size: 1.1em !important;
    font-weight: 600 !important;
    color: #888;
    letter-spacing: 0px;
    text-transform: uppercase;
}

.testimonials h2 {
    font-size: 40px;
    font-weight: 700;
    margin: 10px 0 10px;
    color: #1f2430;
}

.testimonial-slider {
    max-width: 850px;
    margin: auto;
    position: relative;
}

.slide {
    display: none;
    animation: fade .5s ease;
}

.slide.active {
    display: block;
}

.client-logo {
    width: 110px;
    height: 110px;
    background: #f5f5f5;
    border-radius: 50%;
    margin: 0 auto 0px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.client-logo img {
    max-width: 100px;
    max-height: 100px;
}

.quote {
    font-size: 17.6px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 40px;
    font-weight: 300;
}

.slide h3 {
    font-size: 17.6px;
    font-weight: 800;
    color: #1f2430;
    margin-bottom: 40px;
}

.dots {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.dot {
    width: 12px;
    height: 12px;
    background: #d0d0d0;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #0066b3;
}

@keyframes fade {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .testimonials h2 {
        font-size: 2.30em !important;
    }

    .quote {
        font-size: 16px;
    }

    .slide h3 {
        font-size: 16px;
    }
}


/* Site Content */
.site-content {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 30px;
    padding-right: 30px;
    box-sizing: border-box;
}


/* Projects Section */
.projects-list-section {
    background: #032f64;
    padding: 0px 15px;
    text-align: center;
}

.projects-header {
    text-align: center;
}

.projects-header h2 {
    color: #fff;
    font-size: 3em;
    font-weight: 700 !important;
    text-transform: uppercase;
    margin: 0;
}

.view-all-btn {
    color: #fff;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,.3);
    padding: 18px 35px;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    transition: .3s;
}

.project-item {
    display: flex;
    align-items:center;
    justify-content: center;
    gap: 30px;
    text-decoration: none;
    padding: 35px 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
    transition: .3s;
    padding: 15px 0; /* Reduced vertical space from 35px to 15px */
}

.project-item:hover {
    transform: translateX(10px);
}

.arrow {
    color: #f7b81b;
    font-size: 2.5em;
    font-weight: 700 !important;
    flex-shrink: 0;
    line-height: 1;
}

.project-content h3 {
    color: #fff;
    font-size: 1.1em !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 10px;
    letter-spacing: 1px;
    text-align: center;
}

.project-content p {
    color: rgba(255,255,255,.85);
    font-size: 1.1em !important;
    font-weight: 700 !important;
    margin: 0;
    text-align: center;
}

@media (max-width: 991px) {

    .projects-header h2 {
        font-size: 25px;
        margin-bottom: 20px;
    }

    .projects-header {
        display: block;
        text-align: center;
    }

    .view-all-btn {
        display: inline-block;
    }

    .project-item {
        gap: 18px;
        padding: 25px 0;
        text-align: center;
        justify-content: center;
        padding: 25px 0; /* Reduced vertical space for mobile from 25px to 10px */
    }

    .arrow {
        font-size: 32px;
    }

    .project-content h3 {
        font-size: 34px;
    }

    .project-content p {
        font-size: 18px;
    }
}

.project-title {
    display: flex;
    align-items: center;
    gap: 10px; /* space between icon and text */
}

.project-title img {
    width: 40px; /* adjust as needed */
    height: auto;
}

.btn.border-light {
    background: transparent;
    color: #fff;
    border: 2px solid #fff;
    transition: all .3s ease;
}

.btn.border-light:hover {
    background: #fff;
    color: #000;
}

.btn-arrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-arrow .arrow {
    font-size: 16px;
    font-weight: bold;
    line-height: 1;
    transition: transform 0.3s ease;
}

.btn-arrow:hover .arrow {
    transform: translate(3px, -3px);
}



/* Container masking the overflow - LOGO SLIDER */
.logo-slider-container {
    overflow: hidden;
    padding: 60px 0;
    background-color: #0b162a; /* Dark navy background matching your theme */
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
}

/* The track moving continuously */
.logo-slider-track {
    display: flex;
    width: calc(200px * 12); /* (Width of 1 slide) * (Total slides including duplicates) */
    animation: fluidScroll 25s linear infinite;
}

/* Individual slides */
.logo-slide {
    width: 200px; /* Adjust width to fit your logo dimensions */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
    padding: 0 30px;
}

/* Logo image controls */
.logo-slide img {
    max-width: 100%;
    height: auto;
    max-height: 90px; 
    filter: brightness(0) invert(1) opacity(0.6); /* Makes color logos white/semi-transparent like the reference style */
    transition: all 0.3s ease;
    will-change: transform; /* Signals the browser to use GPU acceleration for ultimate smoothness */
}

/* Optional: Bring logo to full color/brightness on hover */
.logo-slide img:hover {
    filter: none;
    opacity: 1;
}

/* Optimized infinite animation keyframe using percentage for a flawless, fluid reset */
@keyframes fluidScroll {
    0% {
        transform: translate3d(0, 0, 0);
    }
    100% {
        transform: translate3d(-50%, 0, 0); /* Shifts exactly half the track (the first 6 logos) with hardware acceleration */
    }
}


    /* Filter */
    .web-table-wrapper {
        margin-left: 500px;
        margin-right: 500px;
        margin-bottom: 50px;
        background-color: #ffffff;
        font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    }
    .filter-section {
        margin-bottom: 20px;
        text-align: left;
    }
    .filter-section label {
        font-weight: 600;
        font-size: 14px;
        color: #032f64;
        margin-right: 10px;
    }
    .filter-section select {
        padding: 8px 12px;
        border: 1px solid #032f64;
        border-radius: 4px;
        font-size: 14px;
        color: #032f64;
        background-color: #ffffff;
        cursor: pointer;
        width: 100%;
        max-width: 250px;
        box-sizing: border-box;
    }
    .professional-table-container {
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        border-radius: 6px;
        overflow-x: auto; /* Horizontal scroll */
        border: 1px solid #e2e8f0;
        background-color: #ffffff;
    }
    .professional-table {
        width: 100%;
        border-collapse: collapse;
        text-align: left;
        background-color: #ffffff;
    }
    .professional-table th {
        background-color: #032f64;
        color: #ffffff;
        padding: 16px 18px;
        font-weight: 600;
        font-size: 13px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border-bottom: 2px solid #02224a;
    }
    .professional-table td {
        padding: 2px 18px;          /* padding on items */                
        border-bottom: 1px solid #e2e8f0;
        color: #334155;
        font-size: 14px;
        line-height: 1.5;
    }
    .professional-table tr.even-row {
        background-color: rgba(3, 47, 100, 0.04);
    }
    .professional-table tr.odd-row {
        background-color: #ffffff;
    }
    .professional-table tr:hover {
        background-color: rgba(3, 47, 100, 0.08);
    }

    /* RESPONSIVE */
    @media screen and (max-width: 1400px) {
        .web-table-wrapper {
            margin-left: 100px;
            margin-right: 100px;
        }
    }
    @media screen and (max-width: 768px) {
        .web-table-wrapper {
            margin-left: 20px;
            margin-right: 20px;
        }
        .professional-table th, .professional-table td {
            padding: 10px 12px; /* padding */
            font-size: 13px;
        }
        .filter-section select {
            max-width: 100%; /* filter */
        }
    }


.contact-map-section {
    width: 100%;
    max-width: 100%;
}

.contact-map-wrap {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Maintains a 16:9 aspect ratio on mobile */
    height: 0;
    overflow: hidden;
}

.contact-map-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-map-wrap iframe {
    filter: grayscale(100%);
    -webkit-filter: grayscale(100%);
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 300px; /* Ajusta este alto a tu gusto para móvil */
    overflow: hidden;
    background-color: #000;
  }

  .hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%); /* Centrado absoluto */
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
  }

  @media (min-width: 400px) {
    .hero-video-container {
      height: 100vh; /* Altura responsiva para escritorio */
    }
  }

