
:root{

    --c-grey: #d9d9d9;
    --c-blue: #182c61;
    --c-green: #13796c;
    --c-white: white;
    --c-black: black;
    --a-hover: #95a8df;
}

*{
    margin: 0;
    padding: 0;
  }

@font-face {
    font-family: bahnschrift;
    src: url(/fonts/BAHNSCHRIFT\ 1.TTF);
}
@font-face {
    font-family: leaguespartan;
    src: url(/fonts/LeagueSpartan-VariableFont_wght.ttf);
}
html {
    font-family: bahnschrift;
    scroll-behavior: smooth;
}
body{
    width: 100%;
    background-color: var(--c-grey);
}
a{
    color: var(--c-blue);   
}
a:hover{
    color: var(--a-hover);    
}
button{
    background-color: var(--c-blue);
    color: var(--c-white);
    text-align: center;
    padding: 5px 20px;
    text-decoration: none;
    display: inline-block;
    cursor: pointer;
    border-radius: 25px;
}
button:hover{
    
    background-color: var(--a-hover);
}
h1,h2,h3,h4,h5,h6{
    font-family: leaguespartan;
}

section {
    
    scroll-margin-top: 70px; /* Ajusta el margen superior a 70px */
  }
/*___________________________________________________________NAV__________________________________________*/
header{
    width: 100%;
    background-color: var(--c-grey);
    height: 60px;
    position: fixed;
    z-index: 5;
}
header nav{
    height: 100%;
    width: 95%;
    display: flex; 
    align-items: center;
    justify-content: right;
    gap: 15px;
    
}
header nav a:hover{
    color: var(--a-hover);
}
.nav-logo{
    height: 60px;
    width: 60px;
    background-image: url(/images/logos/Satisfacción\ garantizada_20250119_170022_0001.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
@media (max-width: 400px) {
    .nav-logo{
        height: 0px;
        width: 0px;
    }
    header nav {
        justify-content: center;
    }
}
#Home{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url(/images/arrco-img-hero.jpeg);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    height: 700px;
    padding: 15px;
    width: 100%;
    
}
#Home a{
    background-color: var(--c-grey);
    color: var(--c-blue);
    padding: 4px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 25px;
    z-index: 1;
}
#Home a:hover{
    background-color: var(--a-hover);
}
.hero-logo{
    height: 25vh;
    width: 100%;
    background-image: url(/images/logos/Satisfacción\ garantizada_20250119_170125_0003.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
#Home h4{
    margin-top: 100px;
    margin-bottom: 30px;
    color: var(--c-white);
    font-size: 130%;
    text-shadow: 2px 2px 4px #000000;
}
@media (min-width: 1100px) {
    .hero-logo{
        height: 50vh;
    }
}
/*______________________________________________________TRABAJo_________________________________________*/
#Trabajos {
    text-align: center;
    width: 100%;
    
}
#Trabajos h3,h1{
    font-size: 150%;
    margin-top: 20px;
    margin-bottom: 20px;
    
}  
.trabajos-grid{
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: center; /* Center the items horizontally */
    gap: 20px; /* Spacing between items */
    width: 100%;
}

.trabajos-item {
    flex: 1 0 300px; /* Key for responsive sizing */
    min-height: 220px;
    display: flex; /* For positioning content within item */
    align-items: flex-end;
    justify-content: flex-end;
    background-image: url(/images/arrco-img-work2.jpeg);
    background-size: cover;
    background-position: center;
    height: 240px;
    
    
    
  }
  
  .trabajos-item:nth-child(2) {
    background-image: url(/images/arrco-img-work1.jpeg);
    
  }
  
  .trabajos-item:nth-child(3) {
    background-image: url(/images/arrco-img-work3.jpeg);
  }

.trabajos-item > a, .trabajos-item > a > div {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
}

.arrow-mas {
    background-color: rgb(19, 121, 108, 0.0);
    background-position: right bottom;
    height: 50px;
    width: 50px;
    transition: background-image 0.3s ease; /* Add transition for smooth switching */
    background-image: url(/images/logos/icons8-doppelt-runter-48.png);
    background-repeat: no-repeat;
}

/*-----------------animation for service and trabajos__*/
/* Arrow background animation keyframes */
/* Arrow background animation keyframes */
@keyframes arrow-background-animation {
    0% {
        background-color: rgba(19, 121, 108, 0.0);
        opacity: 0.5;
    }
    50% {
        background-color: rgba(19, 121, 108, 0.5);
        opacity: 1;
    }
    100% {
        background-color: rgba(19, 121, 108, 0.0);
        opacity: 0.5;
    }
}


/* Item animation keyframes */
@keyframes item-animation {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

/* Trigger animation on in-view */
.in-view .arrow-mas, .in-view .service-arrow {
    animation: arrow-background-animation 5s forwards;
}

/* Infinite animation on hover */
.trabajos-item:hover, .service-item:hover {
    animation: item-animation 2s alternate infinite;
}

/*________________________________________________________Conocemos________________________________________*/
#Conocemos {
    margin-top: 40px;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 600px;
}
#Conocemos h2{
    font-size: 300%;  
    margin-bottom: 20px;
    font-family: leaguespartan;
}
.about-grid{
    display: grid;
    grid-template-columns: 2fr 1fr;
    height: 90%;
}
.about-item{
    height: 100%;
    width: 100%;
    min-height: 300px;
   
    
}
.about-item:nth-child(1){
    height: 90%;
    width: 90%;
    background-image: url(/images/arrco-image-about.jpeg);
    background-size: cover;
    margin: auto;
    border-radius: 1%;
    background-color: #fff;
    
}


.about-item:nth-child(2){
   text-align: center;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   padding: 20px
}
#Conocemos a{
    margin-top: 30px;
    background-color: var(--c-blue);
    color: var(--c-white);
    text-align: center;
    padding: 5px 20px;
    text-decoration: none;
    border-radius: 25px;
}
#Conocemos a:hover{
    background-color: var(--a-hover);
}

@media (max-width: 1000px) {
    .about-grid{
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
}
/*__________________________________________________________________________SERVICIOS___________________________*/
#Servicios{
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   background-color: var(--c-green);
   padding: 30px;
   
    
}
#Servicios h3{
    font-size: 300%;
    color: var(--c-white);
    margin-bottom: 20px;
    
    
}

.grid-service{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 20px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;  
}

.service-item{
    background-color: var(--c-grey);
    text-align: center;
    padding: 20px;
    max-height: 400px;
    height: 400px;
    border-radius: 3%;
    
}
.service-item h1{
    font-size: 100%;
    margin-top: 15px;
    margin-bottom: 10px;
    font-weight: bold;
    
}
#Servicios a{
    color: black;
    width: 100%;
}
.service-item-img {
    background-image: url(/images/arrco-image-service1.jpeg);
    background-size: cover;
    background-position: center;
    width: 250px;
    height: 250px;
    border-radius: 3%;
    margin: auto;
}

  
.service-item:nth-child(2) .service-item-img {
    background-image: url(/images/arrco-image-service2.jpeg);
}


.service-item:nth-child(3) .service-item-img {
    background-image: url(/images/arrco-image-service3.jpeg);
}

.service-arrow {
    display: inline-block;
    margin-top: 5px; 
    transition: margin-top 0.3s ease; 
  }
  
  .service-item:hover .service-arrow,
  .service-item.in-view .service-arrow {
    margin-top: 10px; 
  }
/* Overlay styles */
#overlay {
    display: none; /* Initially hidden */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    z-index: 1000; /* Ensure it is above other elements */
    pointer-events: none; /* Allow clicks to pass through when hidden */
}

/* Prevent hover effects when popup is active */
.popup-active .trabajos-item:hover,
.popup-active .service-item:hover {
    animation: none; /* Disable animation */
}
/* Popup styles */
.popupDialog {
    display: none; /* Initially hidden */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1001; /* Ensure it is above the overlay */
    opacity: 0; /* Initially transparent */
    pointer-events: none; /* Allow clicks to pass through when hidden */
    max-height: 80vh; /* Set a maximum height */
    overflow-y: auto; /* Enable vertical scrolling */
    max-width: 900px;
    text-align: center;
}

/* Active state for overlay and popup */
#overlay.active,
.popupDialog.active {
    display: block; /* Show when active */
    opacity: 1; /* Make opaque when active */
    pointer-events: auto; /* Enable interaction when active */
}
.popupDialog button {
    position: absolute;
    top: 10px;
    right: 10px;
    margin: 10px;
    
}
.popupDialog h6,h1{
    margin-top: 60px;
}

/* Adjust width for smaller screens */
@media (max-width: 1250px) {
    .popupDialog {
        width: 80%; /* Use more space on smaller screens */
    }
}
@media (min-width: 1251px) {
    .popupDialog {
        width: 900px; 
    }
}
/*_____________________________________________________________TESTIMONIS__________________________________*/
#Testimonios{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    
    
}
#Testimonios p{
    width: 100%;
    text-align: center;
}
#Testimonios h3{
    font-size: 200%;
    margin-top: 20px;
    margin-bottom: 20px;
    
}
.grid-Testimonios{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 300px));
    gap: 20px;
    width: 100%;
    margin: 0 auto;
    max-width: 900px;
    justify-content: center;

   
}
.Testimonios-item{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 20px;
    border-radius: 3%;
    text-align: center;
    
}
.Testimonios-item h4{
    font-style: italic;
    font-weight: bold; 
    margin-bottom: 15px;
    margin-top: 15px;
    text-align: center;
    width: 100%;
    
}
.Testimonios-item-img {
    background-image: url(/images/testemoni-img1.png);
    background-size: cover;
    background-position: center;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0;
}
.Testimonios-item:nth-child(2) .Testimonios-item-img { 
    background-image: url(/images/testemoni-img2.png);
   
} 

/*____________________________________________________________________CONTACTO_______________________________*/
#Contacto{
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 2fr;
}
#Contacto h2{
    font-size: 300%;
    font-weight: bold;
    color: var(--c-white);
    margin: 5px;
}
#Contacto p{
    color: var(--c-white);
}
#Contacto h4{
    color: var(--c-white);
    margin-top: 40px;
    margin-bottom: 5px;
    font-weight: bold;
}
.info-contact{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--c-blue);
    text-align: center;
}
.img-contact{
    background-image: url(/images/arrco-img-contact.jpeg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 600px;
}
#email-text {
    color: var(--c-white); /* Set to a visible color */
}
/*_____________________________________FOOOTER_____________________________________________________________*/
footer{
    margin: 30px;
    color: var(--c-blue);
    background-color: var(--c-grey);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
footer h6{
    font-size: 250%;
    color: var(--c-blue);
    font-weight: bold;
}
.sozial-links{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 60px;
}
.sozial-logo{
    background-image: url(/images/logos/instagram-blue.png);
    width: 42px;
    height: 42px;
}
.sozial-logo:hover{
    background-image: url(/images/logos/instagram-hover.png);
}
.sozial-logo:nth-child(2){
    background-image: url(/images/logos/email-blue.png);
    width: 42px;
    height: 42px;
}
.sozial-logo:hover:nth-child(2){
    background-image: url(/images/logos/email-hover.png);
}
.sozial-logo:nth-child(3){
    background-image: url(/images/logos/whatsapp-blue.png);
    width: 42px;
    height: 42px;
}
.sozial-logo.sozial-logo:hover:nth-child(3){
    background-image: url(/images/logos/whatsapp-hover.png);
}
