/***************************************Custom Properties***************************************/

:root{
    --black-alpha-color:rgba(0,0,0,0.8);
    --second-color:#17192d;
    --primary-color: rgb(26, 131, 184);
    --primary-color: rgb(7, 168, 137);
    --second-color: rgb(152, 224, 208);
    --primary-font-family:'Gotham Rounded', sans-serif;
    --secondary-font-family:'Montserrat',sans-serif;
    --terciary-font-family:'Clash Display',sans-serif;
    --fourth-font-family: 'Aviano Sans', sans-serif;
    --white-alpha-color:rgba(255, 255, 255, 0.689);

    /*header-properties*/

    --header-color:rgba(231, 231, 231, 0.811);
    --header-secondary-color:rgba(195, 193, 193, 0.811);
    --header-width:150px;
    --header-height-closed: 65px;
    --header-total-width:210px;
    --header-burger-color:rgb(7, 168, 137);

    /****************sections-properties**************/

    /*section generics*/

    --action-button-font:var(--primary-font-family);
    --action-button-font-color:black;
    --content-font: var(--primary-font-family);
    --header-font:var(--primary-font-family);
    --h1-color:#2d2d39;
    --section-background-color:rgba(248,247,247,1);
    --section-top-padding:25px;
    --section-right-padding:30px;
    --header-font-size:min(2.5rem, 4vw);

    /*sections specifics*/

    /*home*/
    --black-alpha-color-home:rgba(0,0,0,0.1);
    --home-legend-font-family:var(--primary-font-family);
    --home-header-font-size:3rem;
    /*menu*/
    --gray-alpha-color-menu:rgba(204, 204, 204, 0.5);
    --gray-color:rgb(204, 204, 204);
    --menu-left-padding:30px;
    --menu-font-family:var(--primary-font-family);
    /*about-me*/
    --about-me-img-border-color:var(--second-color);
    /*service-section*/
    --service-list--color:#2d2d39;
    --services-font-color:rgb(7, 168, 137);
    /*contact-section*/
    --contact-form-font:var(--primary-font-family);
    --submit-form-font-color:black;
    /*footer*/
    --footer-color: rgb(152, 224, 208);
    --footer-h2-color:black;
    --footer-font-color:black;
    /* --header-font:"Clash Display",sans-serif; */
}

/***********************Custom Fonts********************************/ 
/* 
@font-face {
    font-family: "Clash Display";
    src: url('assets/fonts/ClashDisplay.ttf') format('truetype');
}

@font-face {
    font-family: 'Aviano Sans';
    src: url('/assets/fonts/AvianoSans.woff2') format('woff2'),
        url('/assets/fonts/AvianoSans.woff2') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
} */

/*********************************************Reset*********************************************/

html{
    box-sizing: border-box;
    font-family: var(--primary-font-family);
    font-size: 16px;
    scroll-behavior: smooth;
}

*,
*::after,
*::before{
    box-sizing: inherit;
}

body{
    margin: 0;
    overflow-x: hidden;
}

a{
    color: var(--link-color);
    transition: color 0.5s ease-out;
}

a:hover{
    opacity: 0.75;
}

h1{
    margin: 0;
    font-size: 2rem;
}

h2{
    margin: 0;
    font-size: var(--header-font-size);
}

h3{
    margin: 0;
    font-size: 1.25rem;
}

h4{
    margin: 0;
    font-size: 1rem;
}

h5{
    margin: 0;
    font-size: 0.85rem;
}

h5{
    margin: 0;
    font-size: 0.7rem;
}

img{
    max-width: 100%;
    height: auto;
}

p{
    line-height: 1.6;
}

/******************************************Utilities*********************************************/

.scolor{
    color: var(--primary-color);
}

.bold{
    font-weight: bold;
}

.txt-justify{
    text-align: justify;
}

.flex-row{
    display: flex;
}

.hide{
    display: none;
}

.flex-column{
    display: flex;
    flex-direction: column;
}

.align-center{
    align-items: center;
}

.just-cont-center{
    justify-content: center;
}

.align-space-bet{
    justify-content: space-between;
}

.p15{
    padding: 15px;
}

.w80{
    width: 80%;
}

/****************************************Site Specifics *****************************************/

/*****************Header***************/
.header{
    display: flex;
    flex-direction: column;
    height: var(--header-height-closed);
    width: var(--header-width);
    background-color: var(--header-color);
    top: 30px;
    left: var(--menu-left-padding);
    position: fixed;
    min-width: 120px;
    border-radius: 15px;
    transition: width 1s ease-in, height 1s ease-out;
}

.logo a{
    text-decoration: none;
}

.logo-img svg{
    width: 60px;
    height: 41px;
}

.logo-img img{
    width: 60px;
    height: 60px;
    display: flex;
}

.header-main a{
    display: inline-block;
}

.header-main{
    display: flex;
    justify-content: center;
    align-items: center;
    height: var(--header-height-closed);
    width: var(--header-width);
    gap: 5px;
}

/******************Menu*****************/

/*Estilo para la capa de opacidad sobre el fondo cuando el menu está activo*/
.menu-opacity{
    position: fixed; /* Posición fija para que ocupe la pantalla completa */
    top: 0;
    left: 0;
    width: 100%; /* Ancho completo */
    height: 100%; /* Alto completo */
    background-color:var(--black-alpha-color); /* Color de fondo oscuro con opacidad */
    z-index: 900;
    justify-content: center; /* Centra horizontalmente */
    align-items: center; /* Centra verticalmente */
}

.burger-icon{
    display: inline-block;
    cursor: pointer;
}

.burger-icon .line{
    display: block;
    width: 35px;
    height: 3px;
    background-color: var(--header-burger-color);
    border-radius: 10px;
    margin: 6px 0;
    transition: 0.4s;
}

.burger-black{
    background-color: black !important;
}

.menu-collapsed{
    display: flex;
}

.header-collapsed{
    width: calc(50vw - var(--menu-left-padding));
    height: 92vh;
    background-color:  var(--gray-alpha-color-menu);
    z-index: 1000;
}

.menu{
    flex-direction: column;
    align-items: flex-start;
    padding-left: 30px;
    padding-top: 60px;
    font-family: var(--menu-font-family);
    font-weight: 100;
    transition: all 4s ease;
    width: 100%;
    height: 92vh;
}

.menu a{
    padding: 15px;
    font-size: 2.5em;
    color: white;
    text-decoration: none;
    font-family: var(--menu-font-family);
    font-weight: 100;
    transition: color 0.3s ease;
    position: relative;
}

.menu a::before {
    content: ''; /* Contenido vacío necesario para pseudo-elementos */
    position: absolute; /* Posición absoluta relativa al enlace */
    width: 0; /* Ancho inicial del subrayado */
    height: 2px; /* Grosor del subrayado */
    bottom: -2px; /* Posiciona el subrayado justo debajo del texto */
    background-color: white; /* Color del subrayado */
    transition: width 0.3s ease; /* Transición suave para el ancho del subrayado */
}

.menu a:hover::before {
    width: 100%; /* Ancho completo del subrayado */
}

.menu a:hover{
    /* border-bottom: 2px solid #eba029; */
    /* color: #eba029; */
    color: var(--gray-color);
}

/******************Hero Image Section****************/
.home{
    background-image: url('assets/bgimages/home.jpg');
}

.home-opacity-filter{
    height: 100vh;
    width: 100%;
    background-color: var(--black-alpha-color-home);
}

.home-content{
    padding-top: 30px;
    padding-right: 20vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    font-family: var(--home-legend-font-family);
    padding-bottom: 50px;
    padding-left: var(--header-total-width);
}

.home-content h1{
    padding-left: 1vw;
    color: #fff;
    border-left: solid #fff 1px;
    /* font-size: 3.0rem; */
    font-size: var(--home-header-font-size);
    font-weight: 400;
}

.home-content p{
    margin: 0px;
    line-height: 1.25;
}

/*******NAVIGATION CIRCLES*********/

.nav-circle{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
}

.slider-container{
    position: relative;
    top: -70px;
    transition: transform 0.5s ease;
}

.slide{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 70px;
    width: 100%;
}

.circle:hover .slider-container{
    transform: translateY(50%);
}

/***************ABOUT US****************/

.about-me-img{
    height: 70vh;
    border-radius: 50px 0  0 50px;
    border: solid 2px var(--about-me-img-border-color);
    object-fit: cover;
    align-self: flex-start;
}

/********************SERVICES********************/

.services-main-img{
    height: 80vh;
    border-radius: 0 100px 0 0;
    object-fit: cover;
    object-position: top;
    border: solid 1px white;
}

/*************PROPERTIES SEARCH**************/

.properties-content{
    display: flex;
    gap: 15px;
    align-items: center;
}

.zonaprop-icon{
    align-items: center;
    background-color: #261E9A;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    height: 100px;
    width: 100px;
}

.zonaprop-icon img{
    width: 100px;
    height: auto;
    max-width: max-content;
}

/**********CONTACT FORM***********/

.contact-form-container{
    display: grid;
    grid-template-columns:calc(var(--header-total-width) + 25px) 0.5fr 0.5fr ;
    grid-template-rows:auto 1fr 76px;
    min-height: 100vh;
}

.contact-form{
    font-family: var(--contact-form-font);
    justify-content: center;
    line-height: 3rem;
    padding:25px;
}

.contact-form textarea{
    width: 100%;
}

.contact-form input{
    outline: none;
    border: none; /* Elimina todos los bordes predeterminados */
    border-bottom: 1px solid grey; /* Aplica solo un borde inferior gris */
    font-size: 16px; /* Tamaño de letra personalizado */
    font-family: var(--content-font);
    color: black; /* Color de letra personalizado */
    padding: 5px 0; /* Espacio de relleno para evitar que el texto toque el borde inferior */
    outline: none; 
    width: 100%;
    background-color: var(--section-background-color);
}

.form-title{
    color: var(--primary-color);
    font-size: min(2rem, 3vw);
}

.form-submit{
    line-height: 1rem;
    padding-top: 10px;
}

.form-label{
    font-size: 0.8rem;
}

.submit-btn{
    border: solid 1px var(--primary-color) !important;
    /* border: solid 1px var(--gray-color) !important; */
    color: var(--action-button-font-color) !important;
    border-radius: 10px 0 10px 0;
    padding: 15px !important;
    width: auto !important;
    cursor: pointer;
}

.submit-btn:hover{
    opacity: 0.75;
}

.success-message{
    border-left: solid 4px var(--primary-color);
    background-color: white;
    color: var(--primary-color);
}

.error-message{
    border-left: solid 4px red;
    background-color: white;
    color: red;
}

.form-status{
    padding: 5px;
}

/* .success-message::before{
    content: "\f06a";
} */

/*social-media & office*/

.secondary-layout-container{
    display: grid;
    grid-template-columns:calc(var(--header-total-width) + 25px) 0.3fr 0.7fr ;
    grid-template-rows:1fr 76px;
    min-height: 100vh;
}

.secondary-layout-main-content{
    grid-column: 2/3;
    grid-row: 1/2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-family: var(--content-font);
    font-size: 2.2vh;
}

.secondary-layout-main-content h2{
    font-size: min(3rem, 3.5vw);
    font-family: var(--header-font);
}

.secondary-layout-side-content{
    grid-column: 3/4;
    grid-row: 1/2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    font-family: var(--content-font);
}

.secondary-layout-side-content img{
    object-fit: cover; 
    height: 70vh;
    border-radius:0 100px 0 0;
}

.secondary-layout-navigation-section{
    grid-column: 2/4;
    grid-row: 2/4;
}

.social-media{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    padding-left: 5vw;
}

.social-media-container{
    min-height: 60vh !important;
}

.social-media-icon img{
    border-radius: 0;
    height: 6vw;
    object-fit: cover;
    object-position: center;
    margin: 10px;
    width: 6vw;
}

/* .social-media-icon{
    background-image: url('assets/SocialMediaLogoCollection.jpg');
    background-size: 1000px 1000px;
    background-repeat: no-repeat;
    margin: 10px;
    width: 97px;
    height: 97px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
} */

.fb-ico{
    background-position-x: -81px;
    background-position-y: -78px;
}

.insta-ico{
    background-position-x: -453px;
    background-position-y: -81px;
}

.wapp-ico{
    background-position-x: -453px;
    background-position-y: -216px;
}

.tiktok-ico{
    background-position-x: -638px;
    background-position-y: -81px;
}

/********FOOTER*********/

/*main class*/
.site-footer{
    display: flex;
    justify-content: center;
    align-items: center;
    /* background-color: #1d83d8; */
    background-color: var(--footer-color);
    /* color: rgba(255, 255, 255, .5); */
    color: var(--footer-font-color);
    font-size: .65rem;
    padding: 1.2rem;
    min-height: 40vh;
    flex-wrap: wrap;
    font-family: var(--content-font);
}

.site-footer strong{
    color:var(--white-color);
}

.footer-content{
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-start;
    font-size: 1rem;
}

.footer-content h2{
    position: relative;
    display: inline-block; /* Asegura que el pseudo-elemento ajuste al contenido */
    font-family: var(--header-font);
    font-weight: 400;
    font-size: 1.3rem;
    color: var(--footer-h2-color);
    margin: 0;
}
.footer-content h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 30%;
    height: 1.5px; /* Grosor del subrayado */
    background-color: var(--section-background-color); /* Color del subrayado */
}

.footer-content aside{
    display: flex;
    flex-direction: column;
    width: 100%;
}

.follow-us{
    display: flex; 
    padding-top: 10px; 
    gap: 2%;
}

.follow-us svg{
    height: 40px;
    width: 40px;
}

.follow-us svg path > *:nth-child(1){
    fill: black;
}

.footer-navigation-links{
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.footer-navigation-links a{
    text-decoration: none;
    font-size: 1rem;
}

.footer-contact-us{
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.footer-contact-us div{
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.footer-contact-us svg{
    height: 30px;
    width: 30px;
}
.footer-contact-us img{
    height: 30px;
    width: 30px;
}

/**************Section Generics*********/

.section{
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-color: var(--section-background-color);
}

.section-container{
    display: grid;
    grid-template-columns:calc(var(--header-total-width) + 25px) 0.6fr 0.4fr ;
    grid-template-rows:auto 1fr 110px;
    min-height: 100vh;
}

.section-menu-section{
    grid-column: 1/2;
    grid-row: 1/4;
}

.section-header{
    color: var(--primary-color);
}

.section-header-content{
    color: var(--primary-color);
    grid-column: 2/3;
    grid-row: 1/2;
    font-family: var(--content-font);
    font-size: 2.2vh;
    padding-top: 30px;
}

.section-header-content h1{
    font-size: var(--header-font-size);
    color: var(--h1-color);
    font-family: var(--header-font);
    font-weight: 500;
}

.section-main-content{
    grid-column: 2/3;
    grid-row: 2/3;
    font-family: var(--content-font);
    font-size: 2.2vh;
    padding-right: var(--section-right-padding);
    padding-top: var(--section-top-padding);
}

.section-side-content{
    grid-column:3/4;
    grid-row: 1/3;
    justify-self: center;
    align-self: center;
    padding-top: var(--section-top-padding);
}

.section-navigation-section{
    grid-column: 2/4;
    grid-row: 3/4;
    display: flex;
    align-items: center;
}

.section-general-img{
    height: 80vh;
    border-radius: 0 100px 0 0;
    object-fit: cover;
    border: solid 1px white;
}



/********************************* COMPONENTS ***********************************/

/********CIRCLE***********/

.circle {
    width: 70px;
    height: 70px;
    border: 1px solid #f8f9fa; /* Borde azul inicial */
    border-radius: 50%; /* Hace que el borde sea redondo */
    overflow: hidden; /* Oculta el contenido que sobresale */
    position: relative; /* Permite posicionar el contenido relativo */
    display: flex;
    flex-direction: column;
  }
  
  .circle::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%; /* Posición inicial en el centro */
    width: 0; height: 0; /* Dimensiones iniciales cero */
    background-color: var(--white-alpha-color); /* Color de fondo inicial */
    border-radius: 50%; /* Hace que el borde sea redondo */
    transition: width 0.4s, height 0.4s; /* Transición para el crecimiento */
    transform: translate(-50%, -50%); /* Centra el contenido */
  }
  
  .circle:hover::before {
    width: 200%; /* Ancho máximo para asegurar que cubra toda la circunferencia */
    height: 200%; /* Alto máximo para asegurar que cubra toda la circunferencia */
    z-index: -10;
  }

  /***********BUTTON ACTION*****************/

.action-button{
    display: flex;
    width: fit-content;
    height: 56px;
    gap: 50px;
}

.action-button a{
    text-decoration: none;
    border: solid 1px var(--gray-color);
    padding: 15px;
    color: var(--action-button-font-color);
    font-family: var(--action-button-font);
    border-radius: 10px 0 10px 0 ;
    display: flex;
    align-items: center;
}

/******ACCORDEON******/

.accordion {
    text-transform: uppercase;
    background-color: var(--section-background-color);
    color: var(--services-font-color);
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 15px;
    transition: 0.4s;
    border-bottom: solid 1px var(--second-color);
  }
  
  .active, .accordion:hover {
    background-color: var(--second-color);
    color: white;
  }
  
  .accordion:after {
    content: '\01F807';
    color: #777;
    font-weight: bold;
    float: right;
    margin-left: 5px;
  }
  
  .active:after {
    content: "\2212";
  }
  
  .panel {
    padding: 0 18px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
  }

  /*WA BUTTON*/

  /* Estilo para el botón de WhatsApp */

.whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #25D366; /* Color verde de WhatsApp */
    border-radius: 50%;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 1000; /* Asegura que el botón esté por encima de otros elementos */
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}

.whatsapp-button svg {
    width: 30px; /* Tamaño del icono */
    height: 30px;
}

.whatsapp-button:hover {
    background-color: #128C7E; /* Color verde oscuro de WhatsApp al pasar el cursor */
}

/********************************MOBILE AND TABLET***********************************/

@media screen and (max-width:768px) {
    
    .section{
        @supports (-webkit-touch-callout: none) {
            background-attachment: initial !important;
        }
    }

    html{
        font-size: 14px;
    }

    /*menu*/

    .header{
        left: auto;
        right: var(--menu-left-padding);
    }

    .header-collapsed{
        width: calc(100% - (var(--menu-left-padding) * 2));
    }

    .logo-img img{
        width: 50px;
        height: 50px;
    }

    /*hero section*/

    .home-content{
        padding: 120px 20px 20px 20px;
    }

    .home-content h1{
        font-size: min(2.5rem,7vw) ;
    }

    .nav-circle{
        flex-direction: column;
        color: white;
        font-size: 2rem;
    }

    /*about me*/

    .about-me-img{
        width: 100%;
    }

    /*services*/

    .services-main-img{
        height: 60vh;
        width: 100%;
    }

    /*properties search*/

    .properties-content{
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: space-around;
        align-items: center;
    }

    /*contact form*/

    .contact-form-container{
        display: flex;
        flex-direction: column;
        padding: 25px;
    }

    .contact-form{
        padding: 0px;
        line-height: 4rem;
    }

    .contact-form-container .section-side-content{
        order:3;
    }

    .contact-form-container .section-main-content p{
        margin: 0px;
    }

    /*social media*/

    .social-media{
        padding-top: 10vh;
        padding-left: 0px;
        width: 100%;
        justify-content: center;
    }

    .social-media-icon img{
        width: 20vw !important;
        height: 20vw !important;
    }

    .social-media-container{
        min-height: 50vh !important;
    }

    /*footer*/

    .footer-content{
        flex-direction: column;
        gap: 20px;
    }

    /*section generics*/

    .section-container, .secondary-layout-container{
        display: flex;
        flex-direction: column;
        padding: 25px;
    }

    .secondary-layout-container{
        min-height: auto;
    }
    
    .section-menu-section{
        display: none;
    }
    
    .section-header-content{
        order: 1;
        padding-top: 0px;
    }
    
    .section-main-content{
        order: 3;
        padding-right: 0px;
        
    }

    .section-main-content p{
        text-align: justify;
    }
    
    .section-side-content{
        order: 2;
        width: 100%;
    }
    
    .section-navigation-section{
        order: 4;
        padding-top: 25px;
    }
    
    .section-general-img{
        height: 40vh;
        border-radius: 0 100px 0 0;
        object-fit: cover;
        border: solid 1px white;
        width: 100%;
    }

    /*secondary layout*/
    
    .secondary-layout-navigation-section, .secondary-layout-side-content{
        padding-top: var(--section-top-padding);
    }

    .secondary-layout-side-content img{
        height: 50vh;
    }

    /*navigation section*/

    .action-button {
        width: 100%;
        flex-grow: 1;
    }

    .action-button a{
        flex-grow: 1;
        justify-content: center;
        background-color: var(--primary-color);
        color: white;
        height: 50px;
    }

    .action-button a svg path{
        stroke: white;
    }

}