*, html {
    scroll-behavior: smooth !important;
}

body {
    margin: 0;
    font-family: 'Montserrat';
    overflow-x: hidden;
}

header {
    display: flex;
    position: relative;
    z-index: 10;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 4rem;
    background: linear-gradient(to right, #e8078a, #742899);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.5);
}

.logo {
    width: 130px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 15px;
}

nav ul li a:hover {
    color: #000;
}

.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right, rgba(231, 7, 138, 1), rgba(117, 39, 153, 0.3));
  z-index: 1;
}

.slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    flex: 1 0 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

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

.dot.active {
    background-color: white;
}

.hero-content {
  position: absolute;
  bottom: 80px;
  left: 100px;
  color: white;
  z-index: 3;
  max-width: 400px;
  line-height: 0;
}

.subtitle {
  font-size: 22px;
  font-style: italic;
  margin-bottom: -15px;
}

.title {
  font-size: 55px;
  font-weight: 900;
  width: 200%;
  line-height: 55px;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  padding: 21px 60px;
  background-color: transparent;
  color: #fff;
  border: 3px solid white;
  border-radius: 999px;
  text-decoration: none;
  font-style: italic;
  font-size: 19px;
  font-weight: 400;
  transition: background-color 0.3s, color 0.3s;
}

.cta-button:hover {
  background-color: #fff;
  color: #000;
}

.small-images {
  position: absolute;
  bottom: 50px;
  right: 100px;
  display: flex;
  gap: 50px;
  z-index: 3;
}

.img-item {
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.img-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  margin-bottom: 6px;
}

.img-subtitle {
  font-size: 14px;
  opacity: 0.9;
  margin: 0;
  text-align: center;
}

.custom-section {
  position: relative;
  height: 220px;
  background: url('assets/clients-bg.png') no-repeat right center;
  background-size: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 30px;
  color: white;
  font-family: Arial, sans-serif;
}

.overlay2 {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(8,41,87,1), rgba(38,138,247,1));
  pointer-events: none;
  z-index: 1;
}

.background-image {
  position: absolute;
  top: 0; right: 0; bottom: 0; left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
  z-index: 2;
  pointer-events: none;
}

.circle{
    position: absolute;
    top: -180px;
    left: -100px;
    width: 400px;
    z-index: 999;
}

.content {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  width: 100%;
}

.title-clients {
  flex: 1;
  font-size: 2.5rem;
  line-height: 40px;
  font-weight: 900;
  text-align: left;
  margin-left: 50px;
  color: white !important;
}

.images-row {
  display: flex;
  gap: 20px;
  margin-left: 20px;
}

.images-row img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.arroww {
  margin-left: 20px;
  margin-right: 50px;
  font-size: 2rem;
  cursor: pointer;
  user-select: none;
}

.seccion-servicios {
    height: 320px;
    background-color: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 45px;
    padding-top: 30px;
    box-sizing: border-box;
}

.seccion-servicios h2 {
    margin: 0;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 38px;
    font-family: montserrat;
    font-weight: 900;
}

.items-container {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%;
}

.item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 150px;
}

.item img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.item-title {
    margin: 8px 0 8px 0;
    font-weight: bold;
    font-size: 14px;
    margin-top: 15px;
    text-align: center;
}

.item button {
    background-color: #8419ad;
    border: none;
    font-style: italic;
    padding: 8px 16px;
    color: white;
    border-radius: 100px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.item button:hover {
    background-color: #731598;
}

.seccion-slider {
    position: relative;
    background-color: #28292c;
    color: #fff;
    overflow: hidden;
    padding: 40px 20px;
}

.seccion-slider::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('assets/portafolio-bg.png') no-repeat center/cover;
    opacity: 0.1;
    z-index: 0;
}

.contenido {
    position: relative;
    z-index: 1;
    text-align: center;
}

.titulo {
    font-size: 38px;
    font-weight: bold;
    margin-bottom: 20px;
}

.submenu {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.submenu button {
    background-color: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    font-weight: 600;
    font-size: 18px;
    transition: background 0.3s;
}

.submenu button.active,
.submenu button:hover {
    color: #ef1380;
}

.slider-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
}

.arrow {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    font-size: 30px;
    color: white;
    border: none;
    background-color: transparent;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 2;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.slidesport {
    display: flex;
    overflow: hidden;
    width: 100%;
    max-width: 950px;
}

.slideport {
    min-width: 100%;
    display: none;
    flex-shrink: 0;
    transition: opacity 0.5s ease;
}

.slideport.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 230px); /* Ajustado */
    gap: 20px;
}

.slideport img {
    width: 290px;
    height: 230px;
    object-fit: cover;
    border-radius: 8px;
}

section.testimonials {
    position: relative;
    background: linear-gradient(to bottom, rgba(8,41,87,1), rgba(38,138,247,1));
    padding: 100px 0;
    overflow: hidden;
}

.background-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 1;
    transform: translateX(300px);
}

.decorative-image {
    position: absolute;
    top: 0;
    left: -50px;
    height: 100%;
    border-top-right-radius: 999px;
    border-bottom-right-radius: 999px;
    z-index: 10;
}

.content-wrapper {
    position: relative;
    z-index: 20;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: flex-end;
    transform: translateX(50%);
}
    
.image-space {
    flex: 0 0 35%;
    min-width: 250px;
}

.slider-wrapper {
    flex: 1;
    padding-left: 40px;
}

.testimonials-title {
    font-size: 38px;
    font-weight: bold;
    text-align: left;
    margin-bottom: 40px;
    color: white;
}

.slider-t {
    display: flex;
    gap: 22px;
    width: 100%;
    position: relative;
    overflow-x: hidden;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    transition: transform 0.5s ease;
}

.slider-t::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
    box-sizing: border-box;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 24px;
    width: 380px;
    flex-shrink: 0;
    position: relative;
    scroll-snap-align: start;
}

.testimonial-header {
    display: flex;
    align-items: flex-start;
}

.testimonial-header img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 16px;
}

.testimonial-name {
    font-weight: bold;
}

.testimonial-role {
    font-size: 14px;
    color: #777;
}

.stars {
    color: gold;
    margin-top: 4px;
}

.quote-icon {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    fill: #655aef;
}

.testimonial-text {
    margin-top: 16px;
    font-size: 14px;
    color: #555;
}

.slider-dots {
    display: flex;
    justify-content: left;
    gap: 8px;
    margin-top: 10px;
    margin-left: 15%;
}

.slider-dots span {
    width: 12px;
    height: 12px;
    background-color: #ccc;
    border-radius: 50%;
}

.slider-dots span.active {
    background-color: #ffffff;
}

.banner {
    height: 180px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    background: linear-gradient(to right, #742899,#e8078a);
}

.imagen-cuadrada {
    width: 50px;
    height: 50px;
    background-image: url('assets/icon.png');
    background-size: cover;
    background-position: center;
    margin-right: 20px;
    margin-left: 40px;
}

.titulo-banner {
    font-size: 30px;
    color: white;
    flex-grow: 1;
    font-weight: 900;
    margin-right: 30px;
}

.boton-cotizar {
    padding: 15px 90px;
    font-size: 18px;
    font-style: italic;
    color: white;
    background: transparent;
    border: 2px solid white;
    border-radius: 100px;
    cursor: pointer;
    white-space: nowrap;
    margin-right: 50px;
}

.boton-cotizar:hover {
    background: rgba(255, 255, 255, 0.1);
}

.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 30px;
    padding-top: 30px;
    padding-bottom: 50px;
}

.formulario, .calendario, .info-contacto, .mapa {
    background-color: white;
    padding-left: 50px;
    padding-right: 50px;
}

.formulario .insideform {
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-top: 50px;
}

.formulario input,
.formulario select {
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #5c149a;
    border-radius: 5px;
    font-size: 14px;
}

.formulario textarea{
    margin-bottom: 15px;
    padding: 15px;
    border: 2px solid #5c149a;
    border-radius: 5px;
    font-size: 14px;
    font-family: montserrat;
}

.formulario textarea {
    resize: vertical;
    min-height: 100px;
}

.formulario button {
    align-self: flex-end;
    padding: 10px 20px;
    background-color: #5c149a;
    color: white;
    border: none;
    font-size: 12px;
    border-radius: 8px;
    cursor: pointer;
}

.calendario h2 {
    margin-bottom: 15px;
    font-size: 35px;
    font-weight: 900;
    text-align: end;
    margin-right: 20px;
}

.info-contacto h3 {
    margin-bottom: 15px;
    font-size: 35px;
    font-weight: 900;
    text-align: start;
    margin-top: -40px;
}

.contacto-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.contacto-item i {
    width: 30px;
    height: 30px;
    background: linear-gradient(to right, #e8078a, #742899);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: normal;
    font-size: 12px;
}

.mapa iframe {
    width: 100%;
    height: 280px;
    border: none;
    border-radius: 8px;
}

.footer {
  height: 80px;
  background: linear-gradient(to right, #e8078a, #742899);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
}

#btnScrollTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: none;
  background-color: #e8078a;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  padding: 10px 15px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 999;
  transition: opacity 0.3s ease;
}

#btnScrollTop:hover {
  background-color: #c60877;
}

/* Hamburger menu */
.hamburger-menu {
    display: none;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

.submenu-select {
    display: none;
}

/* Mobile view - Hide the menu and show hamburger */
@media (max-width: 768px) {
    html{
        overflow-x: hidden;
    }

    .circle {
        display: none; /* Hide .circle */
    }

    header {
        padding: 1rem 1.5rem; /* Reducimos el padding */
    }

    .logo {
        width: 90px; /* Más pequeño en móvil */
    }

    .menu {
        display: flex;
        align-items: center;
    }

    .hamburger-menu {
        display: block;
        font-size: 28px;
        margin-left: auto; /* Empuja el ícono a la derecha */
    }

    nav ul {
        display: none;
        flex-direction: column;
        background-color: #742899;
        position: absolute;
        top: 100%; /* Justo debajo del header */
        right: 0;
        width: 100%;
        padding: 20px 0;
        z-index: 999;
        text-align: center;
    }

    nav ul.activee {
        display: flex;
    }

    .hero {
        height: 500px; /* Reducimos la altura del Hero en pantallas más pequeñas */
    }

    .hero-content {
        top: 200px; /* Colocamos el contenido más cerca de la parte superior */
        left: 20px;
        right: 20px;
        max-width: 90%;
    }

    .subtitle {
        font-size: 18px;
    }

    .title {
        margin-top: 30px;
        font-size: 25px; /* Reducimos el tamaño de la fuente en móviles */
        line-height: 30px;
    }

    .cta-button {
        padding: 18px 40px;
        font-size: 16px;
    }

    .small-images {
        position: absolute;
        bottom: 20px;
        right: 20px;
        gap: 30px;
        justify-content: center;
        flex-wrap: wrap; /* Permite que las imágenes se ajusten a móviles */
    }

    .img-item img {
        width: 50px;
        height: 50px;
    }

    .img-subtitle {
        font-size: 12px;
    }

    .dots{
        display: none;
    }

    .custom-section {
        height: auto;
        padding: 30px 20px;
    }

    .content {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

    .title-clients {
        margin-top: -10px;
        margin-left: 0;
        margin-bottom: 20px;
        text-align: center;
    }

    .images-row {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
        justify-items: center;
        margin: 0;
    }

    .images-row img {
        width: 80px;
        height: auto;
    }

    .arroww {
        display: none;
    }

    .seccion-servicios {
        height: auto; 
        padding-bottom: 30px;
        padding-top: 20px;
    }

    .seccion-servicios h2 {
        text-align: center; 
        margin-bottom: 20px;
    }

    .items-container {
        display: grid; 
        grid-template-columns: repeat(2, 1fr); 
        gap: 20px;
        justify-items: center; 
    }

    .item {
        width: 120px; 
    }

    .item img {
        width: 60px;
        height: 60px;
    }

    .submenu {
        display: none; 
    }

    .submenu-select {
        display: block; 
        margin-bottom: 20px;
    }

    .submenu-select select {
        width: 100%;
        padding: 10px;
        border-radius: 8px;
        border: 1px solid #ccc;
        font-size: 16px;
    }

    .slider-container {
        height: auto; 
        flex-direction: column;
    }

    .slidesport {
        flex-direction: column; 
        max-width: 100%;
    }

    .slideport.active {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }

    .slideport img {
        width: 100%;
        height: auto;
    }

    .arrow {
        display: none; 
    }

    .banner {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        padding: 20px;
        height: auto;
    }

    .imagen-cuadrada {
        display: none;
    }

    .titulo-banner {
        font-size: 22px;
        margin: 0 0 15px 0;
    }

    .boton-cotizar {
        margin: 0;                  
        padding: 10px 30px;
        font-size: 14px;
        border-width: 1.5px;  
    }

    .contact-section {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .formulario,
    .calendario,
    .info-contacto,
    .mapa {
        padding: 20px;
    }

    .calendario h2,
    .info-contacto h3 {
        text-align: center;
        margin: 0 0 15px 0;
    }

    .formulario .insideform {
        margin-top: 0;
    }

    .formulario button {
        align-self: center;
    }

    .mapa iframe {
        height: 250px;
    }
}