/*Variables*/
:root {
    --primary-color: #e20612;
    --secondary-color: #6f6f6f;
    /*--accent-color: #fff;*/
}

/* General Styles */
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    margin: 0;
    padding: 0;
    font-display: swap;
}

/*Lista descriptiva*/
dl {
    display: grid;
    grid-gap: 4px 16px;
    grid-template-columns: max-content;
    color: var(--secondary-color);
    font-size: 1rem;
}

dt {
    font-weight: bold;
}

dd {
    margin: 0;
    grid-column-start: 2;
}

/*Divisor entre secciones*/
.split-info {
    background-color: var(--primary-color);
    color: white;
    padding: 30px 0;
    text-align: center;
    /*font-size: 1.5rem;*/

}

.split-info h4 {
    font-weight: bold;
    letter-spacing: 2px;
}


/* Slider */
#headerSlider {
    /*height: 60vh;*/
    height: 55vh;
    position: relative;
    overflow: hidden;
    /* Para evitar que el contenido se desborde */
}

#headerSliderInner .carousel-item {
    height: 55vh;
    min-height: 500px;
}

#headerSliderInner img {
    object-fit: cover;
    width: 100%;
    height: 100%;
    object-position: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent);
    z-index: 1;
    image-rendering: auto;
    /*filter: grayscale(50%); PENDIENTE DEFINIR SI QUEDA FILTRO APLICADO*/
}

/* .overlay {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5); /* oscurece la imagen 
      z-index: 1;
    }*/

.custom-controls-wrapper {
    position: absolute;
    bottom: 8rem;
    top: 75%;
    right: 5rem;
    display: flex;
    gap: 0.75rem;
    z-index: 2;
}

.custom-control {
    width: 60px;
    height: 60px;
    background-color: #ffffffa3;
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-weight: bold;
    /*display: flex;*/
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.custom-control:hover {
    background-color: white;
}

.custom-control i {
    font-size: 1.5rem;
}

.carousel-control-prev {
    left: 8px;
}

/*.carousel-control-prev:hover,
.carousel-control-next:hover {
    color: var(--primary-color);
    
}
*/
.header-text {
    position: absolute;
    top: 55%;
    left: 5%;
    transform: translateY(-50%);
    color: white;
    text-align: left;
    z-index: 2;
    width: 90%;
    /*max-width: 600px;*/
}

/* Animaciones generales */
.fade-in {
    opacity: 0;
    animation: fadeInUp 1s ease forwards;
}

.fade-in.delay-1 {
    animation-delay: 0.3s;
}

.fade-in.delay-3 {
    animation-delay: 3.1s;
}

.experience {
    opacity: 0;
    display: flex;
    width: max-content;
    height: 35px;
    background-color: white;
    color: var(--secondary-color);
    padding: 0px 30px;
    margin-top: 20px;
    border-radius: 25px;
    font-weight: bold;
    font-style: italic;
    align-items: center;
    font-size: 1rem;
    animation: fadeIn 1s ease-in forwards;
    animation-delay: 4.5s;
}

.experience span {
    display: flex;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.9rem;
    margin-right: 5px;
    padding: 0 0 0.4rem;
}

/* Animacion Split-Text personalizado para palabra central*/
.split-text-container {
    display: flex;
    /*gap: 0.5rem;*/
    font-size: 4rem;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    overflow: hidden;
    opacity: 1;
}

.text-part {
    display: inline-block;
    position: relative;
    transform: translateX(0);
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-fill-mode: forwards;
    opacity: 0;
    /* <- Esto es lo nuevo */
}

.text-part.left {
    transform: translateX(-200%);
    animation-name: slide-in-left;
    animation-delay: 1.5s;
    /* <- Mayor que fade-in de CREACIÓN */
}

.text-part.right {
    transform: translateX(200%);
    animation-name: slide-in-right;
    animation-delay: 2.2s;
    /* <- Leve desfase para hacerlo más suave */
}



/* SERVICES */
.services-header {
    position: relative;
    margin: -60px auto 0 auto;
    /* Se monta sobre el slider */
    width: 95%;
    /*max-width: 1200px;*/
    background: white;
    color: var(--primary-color);
    /*padding-top: 1rem;*/
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    /*z-index: 1;*/
    /* CENTRADO VERTICAL CON FLEX */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /*min-height: 10px;  o la altura que necesités */
    text-align: center;
}

.services-section-header {
    background-color: var(--primary-color);
    padding: 20px;
    text-align: center;
    color: white;
}

.services-header i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    padding-right: 10px;
}

.services-header h2 {
    font-size: 1.9rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 10px;
}

.services-divider {
    background-color: #fff;
    height: 10px;
    margin: 5px 0;
}

.services-info {
    text-align: center;
    color: white;
    padding: 1.8rem;
    font-size: 1.1rem;
}

.services-info p {
    /*margin-left: 10%;
     margin-right: 10%;*/
    font-size: 1;
    font-weight: bold;
}

.services-content {
    text-align: center;
    align-items: center;
    padding: 40px 20px;
    /*background-color: #f8f9fa;*/
}

.services-content a {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--secondary-color);
    margin-top: 200px;
}

.services-content a:hover {
    font-size: 0.9rem;
    font-weight: bold;
    text-transform: uppercase;
    color: var(--primary-color);
}

/* About Us */
.about {
    padding: 60px 20px;
}

.about img {
    width: 100%;
    max-height: 60vh;
    object-fit: cover;
}

.about h3 {
    margin-top: 40px;
    font-weight: bold;
    color: var(--secondary-color);
}

.about i {
    color: var(--primary-color);
    padding-right: 10px;
}

.about p {
    margin-top: 20px;
    font-size: 1.1rem;
    color: var(--secondary-color);
    text-align: justify;
}



/* Footer */
.footer-top {
    background-color: var(--primary-color);
    color: #fff;
    padding: 70px 0;
}

.footer-top .contact-info {
    font-size: 0.9rem;
}

.footer-top .contact-info h4 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 10px;
}

.footer-divider {
    /*border-top: 1px solid #fff;*/
    background-color: #fff;
    height: 5px;
    margin: 5px 0;
}

.footer-top p {
    font-size: 1rem;
    margin-top: 5px;
    /*text-align: left;*/
}

.footer-top a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
}

.footer-top .social-icons a {
    color: #fff;
    font-size: 1.8rem;
    margin: 0 10px;
}

.footer-top .social-icons h4 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-top: 10px;
    /*text-align: left;*/
}

.footer-bottom {
    background-color: #6f6f6f;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

.footer-bottom h4 {
    font-size: 1.5rem;
    margin-top: 10px;
}

/*Estilo botón WHATSAPP*/
.btn-whatsapp-pulse {
    background: #25d366;
    color: white;
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-size: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 0;
    height: 0;
    padding: 35px;
    text-decoration: none;
    border-radius: 50%;
    animation: pulse 1.5s ease-out infinite;
    z-index: 999;
    /*animation-name: pulse;
    animation-duration: 1.5s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;*/
}

.btn-whatsapp-pulse:hover {
    background: #25d366;
    color: var(--secondary-color);
    text-decoration: none;
}


/*Estilo inputs*/
.inputGroup {
    margin: 1em 0 1em 0;
    position: relative;
}

.inputGroup input,
textarea {
    font-size: 100%;
    padding: 0.8em;
    outline: none;
    border: 2px solid rgb(200, 200, 200);
    background-color: transparent;
    border-radius: 15px;
    width: 100%;
}

.inputGroup label {
    font-size: 100%;
    position: absolute;
    left: 0;
    padding: 0.8em;
    margin-left: 0.5em;
    pointer-events: none;
    transition: all 0.3s ease;
    color: rgb(100, 100, 100);
}

.inputGroup :is(input:focus, input:valid, textarea:focus, textarea:valid)~label {
    transform: translateY(-50%) scale(.9);
    margin: 0em;
    margin-left: 1.3em;
    padding: 0.5em;
    color: var(--primary-color);
    background-color: white;
    font-weight: bold;
}

.inputGroup :is(input:focus, input:valid) {
    border-color: var(--primary-color);
}


/*CSS para página dínamica de servicios - productos*/
/*Header*/
.dynamic-header {
    position: relative;
    width: 100%;
    height: 50vh;
    overflow: hidden;
    border-bottom: solid 7px var(--primary-color);
}

.dynamic-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.dynamic-header-texts {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 5%;
    color: white;
    z-index: 2;
}

.dynamic-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    /* oscurece un poco para mejor contraste */
    z-index: 1;
}

.dynamic-header-texts h1 {
    font-size: 2.7rem;
}

.dynamic-header-texts h2 {
    font-size: 2rem;
}

.dynamic-header-texts p {
    font-size: 1rem;
    color: #ccc;
    max-width: 60%;
}

/*Sección de informacion de los productos y/o servicios*/

.dynamic-Info {
    background-color: #fff;
    
    /*padding: 2rem 0;*/
}

.dynamic-Info strong {
    /*font-weight: bold;*/
    color: var(--primary-color);
}

.info-text {
    text-align: justify;
    color: var(--secondary-color);
    /* max-width: 50%;*/
}

.info-text h4 {
    color: var(--primary-color);
    font-weight: bold;
}

.info-text p {
    margin-bottom: 1rem;
}

.info-image img {
    border-left: solid 8px var(--primary-color);
    /*width: 100%;
    max-height: 50vh;
    object-fit: cover;
    border-radius: 10px;*/
}

/*Slider productos-servicio*/
.product-slider {
    /*padding: 60px 0;*/
    background-color: #f9f9f9;
}

.product-slider .slider-container {
    display: flex;
    overflow-x: auto;
    gap: 20px;
    scroll-snap-type: x mandatory;
}

.product-slider .slide {
    flex: 0 0 auto;
    width: 100%;
    height: 40vh;
    scroll-snap-align: start;
}

.product-slider .slide img {
    object-fit: cover;
    width: 100%;
    height: 40vh;
    /*border-radius: 8px;*/
}

.product-slider button {
    top: 40%;
    width: 60px;
    height: 60px;
    background-color: white;
    border: none;
    border-radius: 50%;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bolder;
}

.product-slider button:hover {
    color: var(--primary-color);
    background-color: white !important;
}

.custom-control i {
    font-size: 1.5rem;
}

/*Secciòn de infografía en la página dinámica*/


.dynamic-card-container {
    position: relative;
    margin-bottom: 3rem;
}

.dynamic-card h2 {
    font-weight: bold;
    color: var(--primary-color);
}

.dynamic-card-step {
    position: relative;
    max-width: 300px;
    width: 100%;
    flex-grow: 1;
    flex-basis: 280px;
    background: white;
    padding: 2rem 1rem;
    /*margin-right: 1rem;*/
    margin: 0 auto;
    text-align: center;
    border-radius: 10px;
    z-index: 2;
    text-align: center;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dynamic-card-background {
    /*max-width: 300px;
    width: 100%;
    flex-grow: 1;
    flex-basis: 280px;
    position: absolute;
    top: 12px;
    right: 12px;
    height: 100%;
    border-radius: 10px;
    z-index: 1;
    background: linear-gradient(135deg, #ccc 50%, var(--accent-color) 50%);*/
    position: absolute;
    content: '';
    display: block;
    top: 10%;
    left: 20%;
    width: 100%;
    max-width: 300px;
    height: 100%;
    border-radius: 10px;
    background: linear-gradient(135deg, #ccc 50%, var(--accent-color) 50%);
}


.dynamic-card-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/*.dynamic-step-number {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}*/

.dynamic-step-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
}

.dynamic-step-title {
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.dynamic-step-text {
    font-size: 0.95rem;
    color: var(--secondary-color);
}



/*Estilo de boton customizado*/
.click-btn {
    display: flex;
    width: 100%;
    height: 40px;
    justify-content: center;
    align-items: center;
    /*margin: 0.5rem;*/
    line-height: 35px;
    border: 1px solid;
    border-radius: 5px;
    text-align: center;
    font-size: 16px;
    color: #000;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.35s;
    box-sizing: border-box;
    /*background: transparent;*/
    background: var(--primary-color);
}

.btn-background {
    position: relative;
    border-color: var(--primary-color);
    /*color: var(--primary-color);*/
    color: white;
    overflow: hidden;
    z-index: 0;
}

.btn-background::before {
    width: 10%;
    height: 150%;
    position: absolute;
    top: 50%;
    left: 0;
    /*background-color: var(--primary-color);*/
    background-color: white;
    transform: rotateZ(-45deg) translate(-50%, -50%);
    transition: all 0.3s;
    content: "";
    z-index: -1;
}

.btn-background:hover {
    /*color: #fff;*/
    color: var(--primary-color);
}

.btn-background:hover::before {
    width: 100%;
    top: 0;
    transform: none;
}


/*Formulario de contacto*/
.contact h2 {
    color: var(--primary-color);
}

.contact p {
    color: var(--secondary-color);
    font-size: 1rem;
}

.contact-map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
    border-radius: 30px;
    border: 2px solid var(--primary-color);
    /*box-shadow: 20px 20px 60px #bebebe,
         -20px -20px 60px #ffffff;*/
}


.contact-map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;

}

.contact-card {
    /*width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border-radius: 20px;
    padding: 30px;
    gap: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;*/
    width: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #ffffff;
    color: var(--primary-color);
    border-radius: 20px;
    padding: 30px;
    gap: 10px;
    border: 2px solid transparent;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    text-decoration: none;
    border: solid 2px var(--primary-color);
}

.contact-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.3);
    /*color: #ccc;*/
    color: var(--primary-color);
}

.contact-card i {
    font-size: 2.5rem;
    font-weight: bold;
    transition: all 0.1s ease-in-out;
}

.contact-card>.h1 {
    font-size: 17px;
    font-weight: bold;
    text-align: center;
}

/*Catálogos*/

.catalog h2 {
    color: var(--primary-color);
}

.hover-card-container {
    position: relative;
    /*max-width: 560px;
	max-height: 460px;
	cursor: pointer;*/
    max-width: 400px;
    max-height: 400px;
    cursor: pointer;
    margin: 0 auto;
}

.hover-card-container:before {
    position: absolute;
    content: '';
    display: block;
    top: 50px;
    left: 25%;
    width: 90%;
    height: 100%;
    background-image: repeating-linear-gradient(135deg, rgba(181, 181, 181, 0.27) 0px, rgba(181, 181, 181, 0.27) 1px, transparent 1px, transparent 11px), repeating-linear-gradient(45deg, rgba(181, 181, 181, 0.27) 0px, rgba(181, 181, 181, 0.27) 1px, transparent 1px, transparent 11px), linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
}

.hover-card-container .inner {
    position: relative;
    max-width: 100%;
    height: 400px;
    overflow: hidden;
    z-index: 1;
}

.hover-card-container .inner .front {
    position: absolute;
    height: 100%;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    color: var(--primary-color);
}

.hover-card-container .front-card-title {
    position: absolute;
    width: 90%;
    bottom: 0;
    right: 0;
    background: #fff;
    padding: 2rem;
}

.hover-card-container .inner .back {
    position: absolute;
    display: flex;
    top: 0;
    left: 0;
    transform: translate(-100%);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--secondary-color);
    backdrop-filter: blur(5px);
    padding: 3rem;
    flex-direction: column;
    justify-content: center;
    align-items: start;
    gap: 3rem;
    z-index: 100;
}

.hover-card-container h4 {
    font-size: 2rem;
    font-weight: bold;
}

.hover-card-container img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.hover-card-container:hover .back {
    transform: translate(0);
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Asegura que las fuentes se ajusten */
.hover-card-container h4 {
    font-size: 1.5rem;
}


/*TIMELINE*/
.circle {
    padding: 13px 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    max-height: 100px;
    z-index: 2;
    position: relative;
    font-weight: bold;
}


.timeline div {
    padding: 0;
    height: 40px;
}

.timeline hr {
    border-top: 3px solid var(--secondary-color);
    margin: 0;
    top: 17px;
    position: relative;
    opacity: 0.75;
}

.timeline .col-2 {
    display: flex;
    overflow: hidden;
}

.timeline .corner {
    border: 3px solid var(--secondary-color);
    width: 100%;
    position: relative;
    border-radius: 15px;
}

.timeline .top-right {
    left: 50%;
    top: -50%;
}

.timeline .left-bottom {
    left: -50%;
    top: calc(50% - 3px);
}

.timeline .top-left {
    left: -50%;
    top: -50%;
}

.timeline .right-bottom {
    left: 50%;
    top: calc(50% - 3px);
}

.timeline h5 {
    font-weight: bold;
    color: var(--primary-color);
}

.timeline p {
    font-size: 0.9rem;
    color: var(--secondary-color);
}


/*ACCORDIOM*/
.accordion-item {
    border: none;
}

.accordion .accordion-item {
    border-bottom: 1px solid var(--secondary-color);
}

.accordion .accordion-item button[aria-expanded='true'] {
    border-bottom: 1px solid var(--primary-color);
}

.accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    /*padding: 1em 0;*/
    color: var(--secondary-color);
    font-size: 1.15rem;
    font-weight: 400;
    border: none;
    background: none;
    outline: none;
}

.accordion button:hover,
.accordion button:focus {
    cursor: pointer;
    color: var(--primary-color);
}

.accordion button:hover::after,
.accordion button:focus::after {
    cursor: pointer;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.accordion button .accordion-title {
    padding: 1em 1.5em 1em 0;
}

.accordion button .icon {
    display: inline-block;
    position: absolute;
    top: 18px;
    right: 0;
    width: 22px;
    height: 22px;
    border: 1px solid;
    border-radius: 22px;
}

.accordion button .icon::before {
    display: block;
    position: absolute;
    content: '';
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
    background: currentColor;
}

.accordion button .icon::after {
    display: block;
    position: absolute;
    content: '';
    top: 5px;
    left: 9px;
    width: 2px;
    height: 10px;
    background: currentColor;
}

.accordion button[aria-expanded='true'] {
    color: var(--primary-color);
}

.accordion button[aria-expanded='true'] .icon::after {
    width: 0;
}

.accordion button[aria-expanded='true']+.accordion-content {
    opacity: 1;
    max-height: max-content;
    transition: all 200ms linear;
    will-change: opacity, max-height;
}

.accordion .accordion-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms linear, max-height 200ms linear;
    will-change: opacity, max-height;
}

.accordion .accordion-content .details {
    font-size: 1rem;
    color: var(--secondary-color);
    margin: 2em 0;
    align-content: justify;
}

/*@media (max-width: 576px) {
  .accordion button span {
    font-size: 14px;
  }
}*/

/* Animaciones keyframes */

/*Animaciones en el texto del header-slide*/
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes slide-in-left {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slide-in-right {
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/*@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    80% {
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }
}*/
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}


/* Responsivo */
@media (min-width: 992px) {
    /*.info-image img {
        height: 40vh;
    }*/
}

@media (max-width: 800px) {
    .dynamic-card-background {
        left: 15%;
        max-width: 290px;
    }
}

@media (max-width: 768px) {

    /*Header Slider*/
    #headerSlider {
        height: 45vh;
    }

    .header-text {
        left: 2%;
        top: 50%;
        transform: translateY(-45%);
        font-size: 1rem;
        width: 95%;
    }

    .split-text-container {
        font-size: 2rem;
        flex-wrap: wrap;
    }

    .experience {
        font-size: 0.85rem;
        padding: 0.3rem 0.8rem;
        margin-top: 1rem;
    }

    .experience span {
        font-size: 1.2rem;
    }

    .custom-controls-wrapper {
        bottom: 8rem;
        right: 4rem;
        gap: 0.5rem;
        z-index: 2;
        position: absolute;
    }

    .custom-control {
        width: 40px;
        height: 40px;
    }

    .custom-control i {
        font-size: 1.25rem;
    }

    /*Section service*/
    .services-header {
        margin: -60px auto 0 auto;
        width: 80%;
        /*padding: 0.2rem;*/
    }

    .services-header h2 {
        font-size: 1.2rem;
    }

    .services-info {
        font-size: 0.95rem;
        padding: 1rem;
    }

    /*Header de página dinámica servicios-productos*/

    .dynamic-header {
        height: 40vh;
    }

    .dynamic-header-texts {
        top: 10%;
    }

    .dynamic-Info .container {
        display: block;
    }

    /*.dynamic-header-texts h1 {
        font-size: 1.5rem;
    }

    .dynamic-header-texts h2 {
        font-size: 1.2rem;
    }

    .dynamic-header-texts p {
        font-size: 0.8rem;
        max-width: 100%;
    }*/

    .dynamic-header-texts h1 {
        font-size: 2.2rem;
    }

    .dynamic-header-texts h2 {
        font-size: 1.5rem;
    }

    .dynamic-header-texts p {
        font-size: 1rem;
    }

    .hover-card-container {
        max-height: none;
    }

    .hover-card-container h4 {
        font-size: 1.25rem;
    }

    .hover-card-container .front-card-title {
        padding: 1rem;
    }

    .hover-card-container .back {
        padding: 2rem;
        gap: 2rem;
    }

    .hover-card-container .back p {
        font-size: 0.9rem;
    }
}

@media (max-width: 576px) {
    .hover-card-container:before {
        top: 35px;
        left: 20%;
        background-image: repeating-linear-gradient(135deg, rgba(181, 181, 181, 0.27) 0px, rgba(181, 181, 181, 0.27) 1px, transparent 1px, transparent 9px), repeating-linear-gradient(45deg, rgba(181, 181, 181, 0.27) 0px, rgba(181, 181, 181, 0.27) 1px, transparent 1px, transparent 9px), linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));

    }

    .hover-card-container {
        max-width: 300px;
        max-width: 300px;
    }

    .hover-card-container .inner {
        max-width: 100%;
        height: 300px;
    }

    .hover-card-container h4 {
        font-size: 1rem;
    }

    .hover-card-container .front-card-title {
        padding: 0.5rem;
    }

    .hover-card-container .inner .back {
        padding: 2rem;
        gap: 1rem;
    }
}

@media (max-width: 480px) {

    #headerSlider {
        height: 40vh;
    }

    .header-text {
        top: 55%;
        font-size: 1rem;
    }

    .split-text-container {
        font-size: 2.5rem;
    }

    .custom-controls-wrapper {
        display: none;
    }

    .experience {
        display: none;
    }

    .services-header {
        width: 100%;
        /*padding: 0.2rem;*/
    }

    .dynamic-header-texts h1 {
        font-size: 1.6rem;
    }

    .dynamic-header-texts h2 {
        font-size: 1.2rem;
    }

    .dynamic-header-texts p {
        font-size: 0.8rem;
    }
}

@media (max-width: 390px) {

    #headerSlider {
        height: 45vh;
    }

    .header-text {
        top: 50%;
        font-size: 1rem;
    }

    .split-text-container {
        font-size: 2.4rem;
    }

    .experience {
        display: none;
    }

    /*Services section*/
    .services-header {
        /* margin: -50px auto 0 auto;*/
        width: 100%;
        /*padding: 0.1rem;*/
    }

    .services-header h2 {
        font-size: 1rem;
        margin-top: 15px;
    }

    .services-header i {
        font-size: 1rem;

    }
}

@media (max-width: 320px) {
    .header-text {
        top: 55%;
        font-size: 1rem;
    }

    .split-text-container {
        font-size: 2.4rem;
    }

    .dynamic-card-background {
        top: 5%;
        left: 10%;
        width: 100%;
        max-width: 275px;
    }

}

@media screen and (orientation: landscape) and (max-height: 500px) {

    /*Header slider*/
    #headerSlider {
        height: 60vh;
    }

    .header-text {
        top: 45%;
        font-size: 1.2rem;
    }

    .custom-controls-wrapper {
        display: none;
    }

    .header-text {
        top: 45%;
        transform: translateY(-25%);
    }

    .header-text h1 {
        font-size: 1.7rem;
    }

    .split-text-container {
        font-size: 2rem;
    }

    .experience {
        display: none;
        /*font-size: 0.75rem;*/
    }

    .services-header {
        /*margin: -46px auto 0 auto;
        height: 50px;*/
        width: 100%;
        height: 50px;
    }

    .services-header h2 {
        font-size: 1rem;
        margin-top: 18px;
    }

    .services-header i {
        font-size: 1rem;

    }

    /*.services-info {
        font-size: 0.95rem;
    }*/

    /*Header de página dinámica servicios-productos*/

    .dynamic-header-texts {
        top: 8%;
    }

    .dynamic-header-texts h1 {
        font-size: 1.5rem;
    }

    .dynamic-header-texts h2 {
        font-size: 1.2rem;
    }

    .dynamic-header-texts p {
        font-size: 0.8rem;
        max-width: 100%;
    }
}

@media screen and (orientation: landscape) and (max-height: 390px) {

    .header-text h1 {
        font-size: 1.5rem;
    }

    .split-text-container {
        font-size: 1.7rem;
    }

    .dynamic-header {
        height: 50vh;
    }

}