﻿@font-face {
    font-family: 'VolkswagenBlack';
    src: url('../../../assets/fonts/Volkswagen Serial Black.otf');
}
@font-face {
    font-family: 'VolkswagenBold';
    src: url('../../../assets/fonts/Volkswagen Serial Bold.otf');
}
@font-face {
    font-family: 'VolkswagenExtraBold';
    src: url('../../../assets/fonts/Volkswagen Serial ExtraBold.otf');
}
@font-face {
	font-family: 'VolkswagenSerial';
    src: url('../../../assets/fonts/Volkswagen Serial.otf');
}
@font-face {
	font-family: 'VolkswagenSerialItalic';
    src: url('../../../assets/fonts/Volkswagen Serial Italic.otf');
}
@font-face {
	font-family: 'DS-DigitalBold';
    src: url('../../../assets/fonts/DS-DIGIB.TTF');
}

:root {
    --color-blanco: #FFFFFF;
    --color-negro: #000000;

    --color-verde1: #006900;
    --color-verde2: #00AA00;
    --color-verde3: #00FF00;
    --color-azul1: #000069;
    --color-azul2: #0000AA;
    --color-azul3: #0000FF;
    --color-rojo1: #690000;
    --color-rojo2: #AA0000;
    --color-rojo3: #FF0000;
    --color-amarillo1: #696900;
    --color-amarillo2: #AAAA00;
    --color-amarillo3: #FFFF00;
    --color-fucsia1: #690069;
    --color-fucsia2: #AA00AA;
    --color-fucsia3: #FF00FF;
    --color-aqua1: #006969;
    --color-aqua2: #00AAAA;
    --color-aqua3: #00FFFF;
    --color-gris1: #696969;
    --color-gris2: #AAAAAA;
    --color-gris3: #F0F0F0;

    --color-aqua: #6ED2FF;
    --color-naranja: #FBB24A;

    --color-TPborde1: #FBB24A;
    --color-TPborde2: #000069;
    --color-TPtexto: #FFFFFF;

    --color-TSborde1: #FFFFFF;
    --color-TSborde2: #000000;
    --color-TStexto: #F0F0F0;

    --color-fondoA: #6ED2FF50;
}

.colortituloP {
    text-shadow: 
    0px -2px 0px var(--color-TPborde1), /*Arriba*/
    0px 2px 0px var(--color-TPborde2), /*Abajo*/
    -2px 0px 0px var(--color-TPborde1), /*Izquierda*/
    2px 0px 0px var(--color-TPborde2), /*Derecha*/
    -2px 2px 0px var(--color-TPborde1), /*Izquierda-Abajo*/
    2px 2px 0px var(--color-TPborde2), /*Derecha-Abajo*/
    -2px -2px 0px var(--color-TPborde1), /*Izquierda-Arriba*/
    2px -2px 0px var(--color-TPborde2), /*Derecha-Arriba*/
    8px 8px 30px var(--color-TPborde1);
    a {
        color: var(--color-TPtexto);
    }
}

.colortituloS { 
    text-shadow: 
    0px -2px 0px var(--color-TSborde1),
    0px 2px 0px var(--color-TSborde2),
    -2px 0px 0px var(--color-TSborde1),
    2px 0px 0px var(--color-TSborde2),
    -2px 2px 0px var(--color-TSborde1),
    2px 2px 0px var(--color-TSborde2),
    -2px -2px 0px var(--color-TSborde1),
    2px -2px 0px var(--color-TSborde2),
    8px 8px 30px var(--color-TSborde1);
    a {
        color: var(--color-TStexto);
    }
}

* {
	margin: 0;
    padding: 0;
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	-ms-box-sizing: border-box;
    -o-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

h1, h2, h3 {
    font-family: "VolkswagenBlack";
    text-decoration: none;
    text-align: center;
}

p {
    font-family: 'VolkswagenSerial';
    text-decoration: none;
}

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

#rowscreen {
    width: 100%;
    margin-top: 4rem;
}

#rowmenu {
    width: 100vw;
    height: fit-content;
}

.section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.rowoption {
    background-color: var(--color-blanco);
    width: 100%;
    height: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 1rem 0 1rem 0;
}

#bloque2, #bloque4, #bloque6 {
    background-color: var(--color-fondoA);
}

#bloque6 {
    margin-bottom: 1rem;
}

.columnoptionT {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
}

.columnoptionC {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
	height: auto;
    text-align: center;
}

.itemsector, .itemservices, .itemportfolio {
    height: fit-content;
    margin: 0.5rem 0.5rem;
    border-radius: 1rem;
    transition: 500ms;
    img {
        width: 100%;
        border-radius: 1rem;
    }
    img:hover {
        background-color: var(--color-fondoA);
        transition: 500ms;
    }
    p {
        text-align: justify;
        font-size: 1.5rem;
    }
    h2 {
        font-size: 2rem;
    }
    h3 {
        text-align: left;
        font-size: 1.8rem;
    }
}

.itemsector {
    flex-basis: 45%;
    img:hover {
        background-color: var(--color-blanco);
    }
}

.itemservices, .imgservices {
    flex-basis: 30%;
    p {
        display: flex;
        justify-content: center;
        margin-bottom: 1rem;
    }
}

.imgservices {
    width: 100%;
    height: fit-content;
}

/*---- ----*/
/* Contenedor visible, muestra solo 3 imágenes */
.carouselwrapper {
    width: 100%; /* Ajusta según tu preferencia */
    height: 250px;
    overflow: hidden;
    margin: 0;
    background-color: var(--color-gris3);
    border: 5px solid #00000020;
    border-left: 0;
    border-right: 0;
    box-shadow: 0 0 15px var(--color-blanco);
    display: flex;
    align-items: center;
}

.filtrarColor {
    filter: grayscale(100%);
    transition: filter 0.5s;
}
.filtrarColor:hover {
    filter: grayscale(0%);
}

/* Cinta que se moverá */
.carouseltrack {
    display: flex;
    width: max-content;
    animation: scrollLoop 60s linear infinite;
}

/* Al hacer hover en el contenedor se pausa la animación */
.carouselwrapper:hover .carouseltrack {
    animation-play-state: paused;
}

.carouseltrack img {
    width: 32vw; /* 3 imágenes visibles en 30vw */
    height: 100%;
    margin: 0 1rem;
    object-fit: cover;
    transition: transform 0.8s ease, opacity 0.8s ease;
    cursor: pointer;
}

/* Efecto zoom con leve opacidad */
.carouseltrack img:hover {
    transform: scale(1.1);
    opacity: 0.85;
}

/* Animación para mover a la izquierda */
@keyframes scrollLoop {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-50%); /* Mueve una vuelta completa (3 imágenes de ancho) */
    }
}
/*---- ----*/

/*---- ----*/
.sidebar {
    position: relative;
    width: 25%;
    height: 800px;
    margin: 0;
    background-color: var(--color-gris3);
    border-right: 2px solid #00000080;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    gap: 3rem;
    a, p {
        font-family: 'VolkswagenSerial';
        margin: 0;
        text-decoration: none;
        color: var(--color-negro);
        font-size: 3rem;
        font-weight: bold;
        transition: transform 0.3s ease;
        z-index: 1;
    }
    p {
        margin-top: 1rem;
    }
}

.sidebar::before {
    content: "";
    position: absolute;
    background-image: url("../img/bgsb1.jpg");
    background-size: cover;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.sidebar a:hover {
    transform: translateY(-5px);
}

.content {
    width: 65%;
    height: 100%;
    padding: 0;
    overflow: hidden;
}

.image-box, .text-box {
    opacity: 0;
    position: relative;
}

.image-box {
    position: relative;
    height: 90%;
    background-color: var(--color-gris3);
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.image-box::before {
    content: "";
    position: absolute;
    background-image: url("../img/bgdb1.jpg");
    background-size: cover;
    width: 100%;
    height: 100%;
    opacity: 0.5;
}

.image-box:hover .optinfo {
    top: 0;
    opacity: 1;
    visibility: visible;
}

.optinfo {
    margin-right: 0;
    margin-left: 0;
    margin-top: 0px;
    position: absolute;
    top: 30px;
    left: 0;
    width: 100%;
    height: 100%;
    background: #00AA0060;
    opacity: 0;
    visibility: 0;
    -webkit-transition: all 200ms linear;
    -moz-transition: all 200ms linear;
    -ms-transition: all 200ms linear;
    -o-transition: all 200ms linear;
    transition: all 200ms linear;
    h1 {
        font-size: 3rem;
        color: var(--color-blanco);
        letter-spacing: 5px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    h2 {
        font-size: 2rem;
        letter-spacing: 5px;
        margin-top: 20px;
        margin-bottom: 10px;
    }
    h3 {
        font-size: 1rem;
        letter-spacing: 5px;
        margin-bottom: 10px;
    }
    p {
        color: var(--color-negro);
        font-size: 20px;
        line-height: 20px;
        margin-bottom: 10px;
    }
}

.optinfo .inside {
    width: 100%;
    padding: 1rem;
    .infoCol {
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }
}

.text-box {
    height: 10%;
    display: flex;
    justify-content: center;
    margin-top: 0;
    background-color: var(--color-gris3);
    padding: 1rem;
    font-size: 2rem;
    transform: translateY(-50px);
    transition: transform 0.6s ease, opacity 0.6s ease;
}

.content .image-box {
    transform: translateX(0);
    opacity: 1;
    img {
        max-width: 100%;
        height: 100%;
        z-index: 1;
    }
}

.content .text-box {
    transform: translateY(0);
    opacity: 1;
}
/*---- ----*/

.itemportfolio {
    flex-basis: 30%;
}

#imgoficinas {
    max-width: 50%;
    max-height: fit-content;
}

.boxtitles {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 90%;
    margin: 1rem 0;
    p {
        font-size: 2rem;
    }
}

.titles {
    font-size: 4rem;
    color: var(--color-aqua);
    text-shadow: 2px 2px var(--color-azul1);
    text-align: center;
    width: 100%;
    border-top-style: dotted;
    border-bottom-style: dotted;
}

.subtitle {
    color: var(--color-naranja);
    text-shadow: 1px 1px var(--color-rojo1);
    margin-bottom: 0.5rem;
}

.infotitulo {
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    height: fit-content;
    font-size: 5rem;
    text-align: center;
    letter-spacing: 4px;
}

.contenido {
    margin: 2rem 0;
}

button {
    font-family: 'VolkswagenBold';
    width: 150px;
    margin: 0 auto;
    padding: 10px;
    background-color: #6ED2FF80;
    color: var(--color-azul1);
    border: 1px solid #6ED2FF80;
    letter-spacing: 1px;
    text-align: center;
    font-size: 14px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.4s;
    a {
        color: var(--color-azul1);
    }
}

button:hover {
    background-color: #00690020;
    color: var(--color-verde1);
    border: 1px solid #00690020;
    transition: all 0.4s;
    a {
        color: var(--color-verde1);
    }
}

button span {
    position: absolute;
    display: block;
}

button span:nth-child(1) {
    width: 200px;
    height: 3px;
    top: 0px;
    left: -200px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--color-azul1));
    border-top-right-radius: 1px;
    border-bottom-right-radius: 1px;
    animation: span1 2s linear infinite;
}

button:hover span:nth-child(1) {
    background: linear-gradient(to right, rgba(0, 0, 0, 0), var(--color-verde1));
}

@keyframes span1 {
    0% {
        left: -200px
    }
    100% {
        left: 200px;
    }
}

button span:nth-child(2) {
    width: 3px;
    height: 70px;
    top: -70px;
    right: 0px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-azul1));
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    animation: span2 2s linear infinite;
    animation-delay: 1s;
}

button:hover span:nth-child(2) {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0), var(--color-verde1));
}

@keyframes span2 {
    0% {
        top: -70px;
    }
    100% {
        top: 70px;
    }
}

button span:nth-child(3) {
    width: 200px;
    height: 3px;
    bottom: 0px;
    right: -200px;
    background: linear-gradient(to left, rgba(0, 0, 0, 0), var(--color-azul1));
    border-top-left-radius: 1px;
    border-bottom-left-radius: 1px;
    animation: span3 2s linear infinite;
}

button:hover span:nth-child(3) {
    background: linear-gradient(to left, rgba(0, 0, 0, 0), var(--color-verde1));
}

@keyframes span3 {
    0% {
        right: -200px;
    }
    100% {
        right: 200px;
    }
}

button span:nth-child(4) {
    width: 3px;
    height: 70px;
    bottom: -70px;
    left: 0px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0), var(--color-azul1));
    border-top-right-radius: 1px;
    border-top-left-radius: 1px;
    animation: span4 2s linear infinite;
    animation-delay: 1s;
}

button:hover span:nth-child(4) {
    background: linear-gradient(to top, rgba(0, 0, 0, 0), var(--color-verde1));
}

@keyframes span4 {
    0% {
        bottom: -70px;
    }
    100% {
        bottom: 70px;
    }
}

.rowcont {
    display: flex;
    flex-direction: row;
    width: 90%;
}

.rowcont .cont-form {
    background-color: #33669910;
    width: 90%;
    height: fit-content;
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #80808050;
}

.rowcont #img-form {
    /* background-color: #33669910; */
    background: linear-gradient(
        -135deg, #0000AA50, #FFFFFF, #AA000050
    );
    width: 40%;
    border-radius: 1rem;
    border: 1px solid #80808050;
    margin: 0;
    padding: 0;
    /* box-shadow: 1px 1px 20px #6ED2FF; */
    filter: drop-shadow(1px 1px 10px var(--color-azul1));
    
    display: flex;
    justify-content: center;
    align-items: end;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: auto;
    img {
        width: 80%;
        object-fit: contain;
        mask-image: linear-gradient(
            var(--color-negro) 80%, transparent
        );
    }
}

.txtFULL {
    width: 98%;
}

.txtMID {
    width: 49%;
}

input[type=text], input[type=number], 
input[type=email], input[type=date], select, textarea {
    background-color: #ffffff;
    height: 3rem;
    margin-bottom: 1rem;
    padding: 1rem;
    font-family: 'VolkswagenSerial';
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #00000050;
    border-radius: 20px;
}

input[type=number] {
    text-align: center;
}

input[type=text]:hover, input[type=number]:hover,
input[type=email]:hover, input[type=date]:hover, select:hover, textarea:hover, 
input[type=text]:focus, input[type=number]:focus,
input[type=email]:focus, input[type=date]:focus, select:focus, textarea:focus {
    border: none;
    border-bottom: 1px solid var(--color-negro);
}

select {
    background-image: url('../img/flechaselect.svg');
    background-repeat: no-repeat;
    background-position: calc(100% - 20px) center;
    -webkit-appearance: none;
    -moz-appearance: none;
    -o-appearance: none;
    appearance: none;
    margin: 0;
    padding: 0;
    padding-left: 1rem;
    color: #6d6d6d;
}

select option {
    background-color: #33669920;
    color: var(--color-negro);
    font-size: 16px;
    border-bottom: 1px solid var(--color-negro);
}

textarea {
    width: 100%;
    height: 14rem;
    resize: none;
}

input[type=submit] {
    background-color: var(--color-verde1);
    color: var(--color-blanco);
    width: 98%;
    height: 4rem;
    margin: 1%;
    padding: 0px;
    border-radius: 50px;
    box-shadow: inset 0 0 0 2px var(--color-blanco);
    font-family: 'VolkswagenBold';
    font-size: 2rem;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
}

input[type=submit]:hover {
    background-color: var(--color-blanco);
    color: var(--color-verde1);
    box-shadow: inset 0 0 0 2px var(--color-verde1);
	text-decoration: none;
    transition: 500ms;
}

#copyright {
    display: flex;
    justify-content: center;
    flex-direction: row;
    width: 100%;
    height: fit-content;
    background-color: var(--color-verde1);
    color: var(--color-blanco);
    font-size: 15px;
    text-align: center;
    letter-spacing: 2px;
    padding: 0;
    p {
        font-family: "VolkswagenBold";
        a {
            text-decoration: none;
        }
    }
}

.stickyBottom {
    position: fixed !important;
    bottom: 0;
    z-index: 2;
}

/* Pantallas pequeñas (móviles) */
@media only screen and (max-width: 600px) {
    #rowscreen {
        width: 100vw;
        margin-top: 0rem;
        overflow: hidden;
    }

    #rowbanner {
        height: 14rem;
    }

    .rowoption {
        margin: 0;
        padding: 0 0 1rem 0;
    }

    .carouselwrapper {
        height: 70px;
        overflow: hidden;
        border: 2px solid #00000020;
    }

    .columnoptionT {
        margin-top: 0;
    }

    .columnoptionC {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .boxtitles {
        width: 90%;
        margin: 1rem 0;
        p {
            font-size: 1.5rem;
            text-align: justify;
        }
    }

    .titles {
        font-size: 3.5rem;
    }

    #infoSIS {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        flex-direction: row;
        img {
            max-width: 20%;
        }
    }
    
    .contenido {
        margin: 0 1rem 0 1rem;
    }

    .itemsector, .itemservices, .itemportfolio {
        width: 100%;
        height: fit-content;
        margin: 0;
        img {
            width: 100%;
            height: fit-content;
            margin: 1rem 0 0 0;
        }
        p {
            text-align: justify;
            font-size: 1.5rem;
        }
        h2 {
            font-size: 2.5rem;
        }
        h3 {
            font-size: 1.5rem;
            margin: 1rem 2rem 0 1rem;
        }
    }

    .itemsector {
        #subtitle {
            display: none;
            visibility: hidden;
        }
        button {
            margin-top: 1rem;
        }
    }

    .itemservices, .imgservices {
        margin: 0;
        p {
            margin-bottom: 1rem;
        }
    }

    #informesBI {
        display: flex;
        flex-direction: row;
        margin-bottom: 1rem;
    }

    .sidebar {
        width: 25%;
        height: 100%;
        gap: 3rem;
        a, p {
            font-family: 'VolkswagenSerial';
            font-size: 1.2rem;
            font-weight: normal;
        }
        p {
            margin-top: 1rem;
        }
    }

    .image-box {
        height: 70%;
    }

    .text-box {
        height: 30%;
        padding: 0.5rem;
        font-size: 1.5rem;
    }

    .rowcont {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .rowcont .cont-form {
        width: 100%;
        height: fit-content;
    }

    .rowcont #img-form {
        width: 100%;
        filter: drop-shadow(1px 1px 2px var(--color-azul1));
        img {
            width: 80%;
            object-fit: contain;
            mask-image: linear-gradient(
                var(--color-negro) 90%, transparent
            );
        }
    }
}

/* Pantallas medianas (tablets) */
@media only screen and (min-width: 601px) and (max-width: 992px) {
    
}

/* Pantallas grandes (desktop) */
@media only screen and (min-width: 993px) {
    
}
