@font-face {
    font-family: 'Graphik';
    src: url('assets/fonts/GraphikLight.woff2') format('woff2'),
         url('assets/fonts/GraphikLight.otf') format('opentype');
    font-weight: lighter;
    font-style: lighter;
}

body {
    font-family: 'Graphik', sans-serif;
    margin-left: 20px;
    background-color: #f4f4f4;
    color: #333;
    margin: 0;
    padding: 0;
}

#main-header {
    position: fixed; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 80px; 
    background-color: #f4f4f4;
    z-index: 1000;
    transition: box-shadow 0.5s ease;
}

#main-header button {
    visibility: hidden;
    opacity: 0;
    font-family: 'Graphik', sans-serif;
    font-size: 1.2rem;
    font-weight: lighter;
    transition: opacity 0.5s ease, margin-top 0.4s ease;
}

#main-header .line.left.bot {
    display: none;
    margin: 0;
}


#main-header .line.right.bot {
    display: none;
    margin: 0;
}

#main-header.scrolled {
    transition: all 0.3s ease;
}

.shadow {
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

#main-header.scrolled img {
    cursor: pointer;
}

#main-header.scrolled .line {
    transform: translateY(-50%);
}

#main-header.scrolled button {
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.5s ease;
}

#main-header.scrolled #btn1 {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
}

#main-header.scrolled #btn1:hover {
    color: #005CC1;
    transition: 0.3s;
}

#main-header.scrolled #btn2 {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
}

#main-header.scrolled #btn2:hover {
    color: #005CC1;
    transition: 0.3s;
}

#main-header.scrolled #btn3 {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
}

#main-header.scrolled #btn3:hover {
    color: #005CC1;
    transition: 0.3s;
}

#main-header.scrolled #btn4 {
    position: absolute;
    top: 50%;
    left: 70%;
    transform: translate(-50%, -50%);
}

#main-header.scrolled #btn4:hover {
    color: #005CC1;
    transition: 0.3s;
}

#main-header.scrolled:hover button {
    visibility: visible;
    opacity: 1;
    margin-top: 20px;
    transition: margin-top 0.4s ease, opacity 1s ease-in-out;
}

#main-header.scrolled:hover .line.left.bot,
#main-header.scrolled:hover .line.right.bot {
    display: flex;
    transform-origin: center;
    transform: translateY(-50%);
    animation: separate1 0.5s forwards;
}

#main-header.scrolled:hover .line.left.top,
#main-header.scrolled:hover .line.right.top {
    display: flex;
    transform-origin: center;
    transform: translateY(-50%);
    animation: separate2 0.5s forwards;
}

@keyframes separate1 {
    to {
        transform: translateY(40px)
    }
}

@keyframes separate2 {
    to {
        transform: translateY(-20px)
    }
}

main {
    display: flex; 
    justify-content: space-between; 
    align-items: top;
    margin-top: 80px;
}

.line {
    margin: 20px;
    flex: 1;
    height: 2px;
    background-color: #005CC1;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    transform-origin: center;
    animation: grow 1s forwards;
}

.line.left {
    left: 50%;
    transform-origin: right;
}

.line.right {
    right: 50%;
    transform-origin: left;
}

.logo {
    z-index: 1;
}

.logo img {
    max-width: 45px;
    height: auto;
}

@keyframes grow {
    to {
        transform: translateY(-50%) scaleX(1);
    }
}

.typing-container {
    margin-left: 20px;
    width: 48%;
    font-size: 3.2rem;
    font-weight: lighter;
}

#cursor {
    animation: blink 0.7s step-end infinite;
}

.medios {
    margin-right: 20px;
    margin-bottom: 38px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.medios a {
    text-decoration: none;
    color: #000;
    text-align: right;
    font-size: 1.2rem;
    padding: 2px;
}

.medios a:hover {
    color: #70BF00;
    text-decoration: underline;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.line.tittle {
    margin-right: 60px;
    margin-top: 0;
    margin-bottom: 0;
    background-color: #000;
    left: 0%;
    transform-origin: left;
}

.line.medios {
    margin-top: 0;
    margin-bottom: 0;
    background-color: #000;
    right: 100%;
    transform-origin: right;
    animation: grow2 1s forwards;
}

@keyframes grow2 {
    to {
        transform: translateY(-50%) scaleX(0.4);
    }
}

#buttons {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    overflow: hidden;
    margin: 14px;
}

#buttons #btn1 {
    grid-column: 1 / 2;
}

#buttons #btn2 {
    grid-column: 3 / 4;
}

#buttons #btn3 {
    grid-column: 5 / 6;
}

#buttons #btn4 {
    grid-column: 7 / 8;
}

.button-flex {
    font-family: 'Graphik', sans-serif;
    font-size: 1.3rem;
    text-align: left;
    border: none;
    background-color: transparent;
    color: black;
    cursor: pointer;
}

.button-flex .line {
    margin: 0;
    margin-top: 20px;
    margin-bottom: 15px;
    background-color: #000;
    animation: none;
}

.button-flex:hover .line {
    animation: grow 0.5s forwards;
}

#section1 {
    scroll-margin-top: 80px;
    position: relative;
    overflow: hidden;
}

#section1::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent);
    pointer-events: none;
    z-index: 10;
}

.video-slider {
    position: relative;
    width: 100%;
    height: calc(100vh - 70px);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .slides-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

.back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-image: url('assets/images/sliders/Back.jpg'); /* Usar background en lugar de <img> */
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
  
.slides {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 1s ease-in-out;
    will-change: transform;
    position: relative;
    z-index: 2;
}
  
.slide {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    flex-shrink: 0;
    z-index: 3;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    width: 0;
    height: 0;
    animation: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.prev { 
    left: 10px; 
    display: block; 
    border-top: 20px solid transparent;  
    border-bottom: 20px solid transparent; 
    border-right: 30px solid white;
}

.next { 
    right: 10px; 
    border-top: 20px solid transparent;  
    border-bottom: 20px solid transparent; 
    border-left: 30px solid white;
}

.indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    justify-content: center;
}

.indicator {
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0.5;
}

.indicator.active {
    opacity: 1;
}

.video-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
}

.watermark1 {
    position: absolute;
    bottom: 75px;
    right: 50px;
    width: 50px;
    opacity: 0.7;
}

.watermark2 {
    position: absolute;
    bottom: 70px;
    right: 120px;
    width: 50px;
    opacity: 0.7;
}

#section2 {
    margin-top: 40px;
    scroll-margin-top: 120px;
}

.titulo1 {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 20px;
    margin-left: 20px;
    margin-right: 20px;
}

.titulo1 h2 {
    grid-column: 1 / 8;
    font-size: 3.5rem;
    font-weight: lighter;
    margin: 0;
}

.titulo1 p {
    font-size: 1.3rem;
    line-height: 1.6;
    grid-column: 11 / 16;
    margin: 0;
}

.linea1 {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 22px;
    align-items: center;
    margin: 20px;
}

.linea1 .line.right {
    grid-column: 1 / 8; 
    margin: 0; 
    background-color: black;
}

.linea1 .line.left {
    grid-column: 11 / 16; 
    margin: 0; 
    background-color: black;
}

.services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 60px;
    margin-bottom: 60px;
    gap: 12px;
}

.services img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.service-item {
    width: 100%;
    height: 530px;
    position: relative;
    overflow: hidden;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.overlay.ie {
    background: rgba(0, 0, 0, 0.1);
}

.overlay.mr {
    background: rgba(0, 0, 0, 0.2);
}

.overlay p, .overlay .button {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.overlay h3 {
    margin-top: 15%;
    margin-left: 20%;
    margin-right: 20%;
    font-size: 3rem;
    transition: transform 0.3s ease;
}

.service-item:hover .overlay {
    background: rgba(112, 191, 0, 0.8);
}

.service-item:hover .overlay h3,
.service-item:hover .overlay p,
.service-item:hover .overlay .button {
    opacity: 1;
    transform: translateY(-40px);
}

.button {
    margin-top: 10px;
    padding: 5px 10px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
}

.button .line {
    background-color: white;
    width: 200px;
    margin: 0;
    margin-bottom: 20px;
}

.button:hover {
    color: #000;
    transition: color 0.3s;
}

.button:hover .line {
    background-color: #000;
    transition: background 0.3s;
}

#section3 {
    scroll-margin-top: 80px;
}

.nosotros {
    background-color: #ebebebd5;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nosotros img {
    width: 48%;
    height: 700px;
    object-fit: cover; 
    object-position: center;
}

.full-width-button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 142px;
    padding: 20px;
    background-color: #70BF00;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: left;
    transition: background-color 0.3s ease;
}

h3 {
    font-family: 'Graphik', sans-serif;
    font-weight: lighter;
    font-size: 3rem;
    margin: 0;
}
  
.full-width-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: #191919;
    transition: left 0.3s ease;
    z-index: 0;
}
  
.full-width-button:hover::before {
    left: 0;
}
  
.button-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.right .arrow {
    width: 0;
    height: 0;
    border-top: 20px solid transparent;  
    border-bottom: 20px solid transparent; 
    border-left: 30px solid white;
    animation: none;
}
  
@keyframes moveArrow {
    0%, 100% {
      transform: translateX(0);
    }
    50% {
      transform: translateX(-10px);
    }
}
  
.full-width-button:hover .arrow {
    animation: moveArrowHover 1s infinite ease-in-out;
}
  
@keyframes moveArrowHover {
    0%, 100% {
      transform: translateX(-10px);
    }
    50% {
      transform: translateX(0);
    }
}

.info-nosotros {
    margin: 5%;
    width: 100%;
    font-size: 1.3rem;
    line-height: 1.5;
    height: 100%;
}

.info-nosotros h2 {
    margin: 0;
    margin-bottom: 40px;
    font-size: 4rem;
    font-weight: lighter;
    line-height: 1;
}

.info-nosotros p {
    margin: 0;
}

.info-nosotros .line.right {
    margin: 0; 
    background-color: black; 
    margin-bottom: 40px;
}

#section4 {
    margin-top: 40px;
    scroll-margin-top: 120px;
}

#contactForm {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0 auto;
    padding: 20px;
    gap: 20px;
}

.form-container input, 
.form-container textarea, 
.form-container button {
    font-family: 'Graphik', sans-serif;
    font-weight: bold;
    width: 100%;
    margin: 0;
    padding: 15px;
    border: 1px solid #ccc;
    box-sizing: border-box;
}

.form-container textarea {
    height: 250px;
}

.form-container button {
    cursor: pointer;
    background-color: #191919;
    color: white;
    border: none;
    padding: 15px 20px;
    position: relative;
    overflow: hidden;
    transition: background-color 0.3s ease;
}

.form-container button:hover {
    background-color: #70BF00;
}

#oficina {
    grid-column: 5 / 7;
    grid-row: 1 / span 4;
    width: 100%;
    background: transparent;
    border: 3px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(45deg, #70BF00, #005CC1);
    animation: borderAnimation 1s linear infinite;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#oficina .info-oficina {
    width: 90%;
    height: 70%;
    align-items: center;
    justify-content: center;
    font-family: 'Graphik', sans-serif;
    font-size: 1em;
    text-align: center;
}

#oficina a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    padding: 5px;
}

#oficina a:hover {
    color: #70BF00;
    text-decoration: underline;
}

#oficina h3 {
    font-size: 2.5em;
}

#oficina .line {
    background-color: #000;
}

@keyframes borderAnimation {
    0% {
        border-image-source: linear-gradient(45deg, #70BF00, #005CC1);
    }
    50% {
        border-image-source: linear-gradient(405deg, #005CC1, #70BF00);
    }
    100% {
        border-image-source: linear-gradient(45deg, #70BF00, #005CC1);
    }
}

.form-container input:focus,
.form-container textarea:focus {
    border: 2px solid;
    border-image-slice: 1;
    outline: none;
    animation: borderFocusAnimation 1s linear infinite;
}

@keyframes borderFocusAnimation {
    0% {
        border-image-source: linear-gradient(45deg, #70BF00, #005CC1);
    }
    50% {
        border-image-source: linear-gradient(405deg, #005CC1, #70BF00);
    }
    100% {
        border-image-source: linear-gradient(45deg, #70BF00, #005CC1);
    }
}

#fullName {
    grid-column: 1 / 3;
}

#company {
    grid-column: 3 / 5;
}

#position {
    grid-column: 1 / 3;
}

#phone {
    grid-column: 3 / 5;
}

#email {
    grid-column: 1 / 5;
}

#projectDescription {
    grid-column: 1 / 5;
}

#send {
    grid-column: 2 / 4;
}

#redes {
    grid-column: 5 / 7;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#redes a {
    text-decoration: none;
    color: #000;
    font-size: 1rem;
    padding: 5px;
}

#redes a:hover {
    color: #70BF00;
    text-decoration: underline;
}

#footer-buttons {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20%;
    margin-top: 50px;
    margin-bottom: 50px;
}

#footer-buttons .buttons {
        display: flex;
        align-items: center;
        justify-content: center;
    }

#credits {
    text-align: center;
    margin: 0;
    font-size: 1.2rem;
}

.background {
    position: relative;
    width: 100%;
    height: calc(100vh - 240px);
    overflow: hidden;
  }
  
.image-back {
    width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.titulo1 h1 {
    grid-column: 1 / 8;
    font-size: 3.5rem;
    font-weight: lighter;
    margin: 0;
    margin-top: 0;
}

.areas {
    width: 100%;
    margin-top: 50px;
}

.areas .line {
    opacity: 0.5;
    height: 1px;
    background-color: black;
    margin-top: 0;
    margin-bottom: 0;
}

.areas h2 {
    font-family: 'Graphik', sans-serif;
    font-weight: lighter;
    font-size: 1.3rem;
    margin-left: 20px;
    margin-bottom: 10px;
}

.full-width-area {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100px;
    padding: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    color: black;
    text-align: left;
    transition: background-color 0.3s ease;
}

.full-width-area:hover,
.full-width-area.active {
    background-color: #ebebebd5;
}

.right .down.arrow {
    margin-right: 20px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;  
    border-right: 10px solid transparent; 
    border-top: 15px solid black;
}

.full-width-area h3 {
    font-size: 2rem;
}

.extra-content {
    margin-left: 20px;
    margin-right: 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out, padding 0.3s ease-in-out;
}
  
.extra-content p {
    font-size: 1.2rem;
    line-height: 1.5;
}

.form-container.cv {
    margin: 5%;
    width: 100%;
    height: 100%;
    display: none;
}

.form-container.cv h4 {
    font-family: 'Graphik', sans-serif;
    font-weight: lighter;
    font-size: 3rem;
    margin-top: 0;
    margin-bottom: 0;
}

.form-container.cv.show {
    display: block;
}

#application-form {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 20px;
}

#fullnameCV {
    grid-row: 1 / 2;
    grid-column: 1 / 2;
}

#phoneCV {
    grid-row: 1 / 2;
    grid-column: 2 / 3;
}

#emailCV {
    grid-row: 2 / 3;
    grid-column: 1 / 3;
}

#linkedinCV {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
}

#CV {
    grid-row: 4 / 5;
    grid-column: 1 / 2;
}

#sendCV {
    grid-row: 4 / 5;
    grid-column: 2 / 3;
}

.info-nosotros.show {
    display: none;
}

.orbyte {
    text-decoration: none;
    color: #000;
}

.orbyte:hover {
    text-decoration: underline;
    color: #70BF00;
}

/* Ajustes espec¨ªficos para Safari en dispositivos m¨®viles */
@media only screen and (max-width: 768px) {
    .back {
        background-position: center center; /* Asegura que la imagen est¨¦ centrada */
    }

    .slide {
        object-fit: cover;
    }
}

/* Espec¨ªfico para Safari en dispositivos m¨®viles */
@supports (-webkit-touch-callout: none) {
    .back {
        background-size: cover;
        background-position: center center;
    }
}

@media (max-width: 1400px) {
    #footer-buttons {
        gap: 10%;   
    }
    .typing-container {
        font-size: 2.7rem;
    }
    .titulo1 h2 {
        font-size: 3rem;
    }
}

@media (max-width: 1100px) {
    #footer-buttons {
        display: block;
        overflow: hidden;
    }
    #credits {
        margin-top: 20px;
    }
    .service-item .overlay h3,
    .service-item .overlay p,
    .service-item .overlay .button {
    opacity: 1;
    transform: translateY(-40px);
    }
    .typing-container {
        font-size: 2.3rem;
    }
    .titulo1 {
        display: block;
    }
    .titulo1 h2 {
        font-size: 2.7rem;
    }
    .titulo1 p {
        font-size: 1rem;
        margin-top: 20px;
        margin-bottom: 40px;
    }
    .services {
        grid-template-columns: 1fr;
        margin: 0px;
        margin-top: 50px;
        margin-bottom: 60px;
    }
    .nosotros {
        flex-direction: column;
        align-items: left;
        justify-content: left;
    }
    .nosotros img {
        width: 100%;
        height: 700px;
    }
    .info-nosotros {
        margin: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        width: auto;
        font-size: 1rem;
        line-height: auto;
    }
    .info-nosotros h2 {
        font-size: 2.7rem;
        font-weight: lighter;
        line-height: 1;
        margin-bottom: 30px;
    }
    .info-nosotros .line.right {
        margin-bottom: 30px;
    }
    .form-container.cv {
        margin: 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        width: fit-content;
    }
    h3 {
        font-size: 2.7rem;
    }
    #oficina {
        grid-column: 1 / 7;
        grid-row: 7;
        height: fit-content;
        min-height: 400px;
    }
    #fullName {
        grid-column: 1 / 4;
    }
    #company {
        grid-column: 4 / 7;
    }
    #position {
        grid-column: 1 / 4;
    }
    #phone {
        grid-column: 4 / 7;
    }
    #email {
        grid-column: 1 / 7;
    }
    #projectDescription {
        grid-column: 1 / 7;
    }
    #send {
        grid-column: 2 / 6;
    }
    #redes {
        grid-column: 2 / 6;
    }
    
    .linea1 .line.right {
        grid-column: 1 / 16;
    }
    
    .linea1 .line.left {
        display: none;
    }
    .medios a {
        padding: 3px;
    }
    #footer-buttons button {
        font-size: 1rem;
    }
    
    #credits {
        font-size: 1rem;
    }
    .full-width-area h3 {
        font-size: 1.7rem;
    }
}

@media (max-width: 700px) {
    .typing-container {
        font-size: 1.9rem;
    }
}

@media (max-width: 480px) {
    #main-header button {
        font-size: 0.7rem;
    }
    .video-slider {
    height: calc(66vh);
    }
    .watermark1 {
        opacity: 0;
    }
    .watermark2 {
        opacity: 0;
    }
    .titulo1 h2 {
        font-size: 2rem;
    }
    .titulo1 h1 {
        font-size: 2rem;
    }
    .nosotros h2 {
        font-size: 2rem;
    }
    .overlay h3 {
        font-size: 2rem;
    }
    .nosotros img {
        height: 450px;
    }
    .full-width-button {
        height: 100px;
    }
    h3 {
        font-size: 1.7rem;
    }
    .button-flex {
        font-size: 0.9rem;
    }
    .typing-container {
        font-size: 1.5rem;
    }
    .medios a {
        font-size: 1rem;
        padding: 4px;
    }
    .medios {
        gap: 1px;
    }
    .full-width-area h3 {
        font-size: 1.5rem;
    }
    .extra-content p {
        font-size: 1rem;
    }
    .areas h2 {
        font-size: 1.2rem;
    }
    .extra-content p {
        font-size: 1rem;
        line-height: 1.4;
    }
    .form-container.cv h4 {
    font-size: 2rem;
    }
}