@import url('https://fonts.googleapis.com/css2?family=PT+Sans:wght@400;700&display=swap');
*{
	padding: 0;
	margin: 0;
	font-family: "PT Sans", sans-serif;
	box-sizing: border-box;
    list-style: none;
}

body{
	min-height: 100vh;
	background-position: center;
	background-color: rgb(255, 255, 255);
	align-items: center;
}




.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.3rem 10%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.3s ease-in-out;
}

.header.off {
    transform: translateY(-100%);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff;
    backdrop-filter: blur(50px);
    z-index: -1;
}

.header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
    translate: .5s;
}

.header:hover::after {
    left: 100%;
}

.logo {
    width: 130px;
}

.navbar a {
    font-size: 1.15rem;
    color: rgb(1, 1, 1);
    text-decoration: none;
    font-weight: 700;
    margin-left: 2.5rem;
    position: relative;
    display: inline-block; /* Asegúrate de que los enlaces sean elementos en línea */
    transition: color .35s ease; /* Transición suave para el color */
}

.navbar a::before,
.navbar a::after {
    content: '';
    height: 7px; /* Aumentado el tamaño de los triángulos */
    width: 7px; /* Aumentado el tamaño de los triángulos */
    position: absolute;
    transition: all .35s ease;
    opacity: 0;
}

.navbar a::before {
    right: -8px; /* Separa más el triángulo del texto */
    top: -8px; /* Separa más el triángulo del texto */
    border-top: 3px solid #3BAA33; /* Cambiado el color del borde superior */
    border-right: 3px solid #3BAA33; /* Cambiado el color del borde derecho */
    transform: translate(-100%, 50%);
}

.navbar a::after {
    left: -8px; /* Separa más el triángulo del texto */
    bottom: -8px; /* Separa más el triángulo del texto */
    border-bottom: 3px solid #3BAA33; /* Cambiado el color del borde inferior */
    border-left: 3px solid #3BAA33; /* Cambiado el color del borde izquierdo */
    transform: translate(100%, -50%);
}

.navbar a:hover::before,
.navbar a:hover::after {
    transform: translate(0, 0);
    opacity: 1;
}

.navbar a:hover {
    color: #1877f2; /* Cambia el color del texto al pasar el mouse */
}

#check {
    display: none;
}

.icons {
    position: absolute;
    right: 5%;
    font-size: 2.8rem;
    color: rgb(4, 4, 4);
    cursor: pointer;
    display: none;
}

.linea {
    width: 100%;
    height: 3px;
    position: absolute;
    bottom: -2px;
    left: 0;
    background: linear-gradient(to right, #3BAA33, #4954A3, #049BE2, #286522);
    background-size: 200% auto;
    animation: cambioColor 2.5s linear infinite;
    z-index: 99;
}

.contenedor-linea {
    position: relative;
}

.linea-footer {
    width: 100%;
    height: 3px;
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(to right, #3BAA33, #4954A3, #049BE2, #286522);
    background-size: 200% auto;
    animation: cambioColor 2.5s linear infinite;
    z-index: 99;
}

.bp {
    color: #f30c0c;
    text-decoration: none;
}

@keyframes cambioColor {
    0% {
        background-position: 0 0; /* Inicia desde el extremo izquierdo */
    }
    100% {
        background-position: 200% 0; /* Termina en el extremo derecho */
    }
}

/*BREAKPOINT*/
@media(max-width:992px) {
    .header {
        padding: 1.3rem 5%;
    }
}

@media(max-width:768px) {
    .icons {
        display: inline-flex;
    }
    
    #check:checked ~ .icons #menu-icon {
        display: none;
    }
    
    .icons #close-icon {
        display: none;
    }
    
    #check:checked ~ .icons #close-icon {
        display: block;
    }
    
    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: 0;
        background: rgba(0, 0, 0, 0.1);
        background-color: #fff;
        box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .1);
        overflow: hidden;
        transition: .3s ease;
    }
    
    #check:checked ~ .navbar {
        height: 17.7rem;
    }
    
    .navbar a {
        display: block;
        font-size: 1.2rem;
        margin: 1.5rem 0;
        color: #000000;
        text-align: center;
        transform: translateY(-50px);
        opacity: 0;
        transition: .3s ease;
    }
    
    #check:checked ~ .navbar a {
        transform: translateY(0);
        transition-delay: calc(.15s * var(--i));
        opacity: 1;
    }
    
    .navbar a::before,
    .navbar a::after {
        content: none;
    }
}


/* FOOTER */
.pie-pagina{
    width: 100%;
    background-color: #ffffff;
	margin-top: auto;
}
.pie-pagina .grupo-1{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap:50px;
    padding: 45px 0px;
}
.pie-pagina .grupo-1 .box-footer figure{
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.pie-pagina .grupo-1 .box-footer figure img{
    width: 200px;
}
.pie-pagina .grupo-1 .box-footer h2{
    color: #049BE2;
    margin-bottom: 25px;
    font-size: 25px;
    font-weight: 700;
}
.pie-pagina .grupo-1 .box-footer p{
    color: #3BAA33;

    margin-bottom: 10px;
    font-weight: 700;
}
.pie-pagina .grupo-1 .red-social a{
    display: inline-block;
    text-decoration: none;
    width: 45px;
    height: 45px;
    line-height: 45px;
    border-radius: 50%;
    color: #ffffff;
    margin-right: 10px;
    text-align: center;
    transition: all 300ms ease;
}
.pie-pagina .grupo-2{
    background:#dcdddc ;
    padding: 15px 10px;
    text-align: center;
    font-weight: 700;
    color: #fff;
}
.pie-pagina .grupo-2 small{
    font-size: 15px;
	color: #020202;
}

.red-social a.instagram {
    background: linear-gradient(45deg, #833ab4, #fd1d1d, #fcb045); 
}

.red-social a.facebook {
    background: linear-gradient(45deg, #3b5998, #1877f2); 
}

.red-social a.tiktok {
    background-color: #000000; 
}

.red-social a.twitter {
    background-color: #1da1f2; 
}

.red-social a:hover {
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}


@media screen and (max-width:800px){
    .pie-pagina .grupo-1{
        width: 90%;
        grid-template-columns: repeat(1, 1fr);
        grid-gap:30px;
        padding: 35px 0px;
    }
}

/* Contact Form Section */
.titulos{
    font-weight: 700;
    font-size: 50px;
    color: #7ED321;
    text-align: center;
}

section.contact-form {
    display: flex;
    flex-direction: column;
    text-align: center;
    width: 90%;
    max-width: 550px;
    margin: auto;
    margin-top: 2em;
}

.sectionHeader{
    text-transform: capitalize;
    font-weight: bold;
    font-size: 3.5em;
    color: #3BAA33; 
    font-weight: 700;
    margin-bottom: .5em;
}

.heading, .sub-heading{
    margin-bottom: .5em;
    font-weight: bold;
}

.heading{
    font-size: 2.5em;
    color: #1877f2;
}

.sub-heading{
    text-align: left;
    color: #1877f2;
    font-weight: 700;
}

.contactForm{
    display: grid;
    gap: 3em;
}

form{
    width: 100%;
    margin-top: 3em;
}

.para{
    color: #4A4A4A; 
    font-size: 1.1rem;
    line-height: 1.5em;
    margin-bottom: 1em;
}

.para2{
    text-align: left;
}

.input{
    width: 95%;
    max-width: 700px;
    border: none;
    font-size: .9rem;
    padding: 1em;
    outline: none;
    background-color: #F5F5F5; 
    color: #4A4A4A; 
    border-radius: 10px;
    border: 1px solid rgb(53, 53, 53);
    margin-bottom: 1em;
}

.input:focus{
    border: 2px solid #049BE2; /* Reemplaza var(--primaryColor) */
}

.input::placeholder{
    text-transform: capitalize;
}

.submit {
    background-color: #049BE2;
    border: none;
    color: #FFFFFF;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
    padding: 1em;
}

.submit:hover:not(:disabled) {
    background-color: #3BAA33;
    transform: scale(1.03);
}

.submit:disabled {
    background-color: #cccccc;
    color: #000000;
    cursor: not-allowed;
    opacity: 0.7;
}

.submit.sending {
    background-color: #3BAA33;
    cursor: wait;
}

.submit.sent {
    background-color: #4CAF50;
}

.submit.limit-reached {
    background-color: #6d6c6a; /* Color naranja para indicar advertencia */
    cursor: not-allowed;
}

.map-container{
    position: relative;
    width: 100%;
    height: 500px;
}

.mapBg{
    position: absolute;
    background-color: #3BAA33; /* Reemplaza var(--primaryColor) */
    top: 0;
    right: 0;
    width: 200px;
    height: 110%;
    border-radius: 20px;
    animation: fadeInRight .3s ease-in-out;
}

.map{
    position: absolute;
    bottom: 0;
    left: 0;
    width: 90%;
    height: 90%;
    animation: fadeInRight 1s ease-in-out;
}

@keyframes fadeInRight {
    from {
      opacity: 0;
      transform: translateX(10%);
    }
    to {
      opacity: 1;
      transform: translateX(0%);
    }
  }

.map iframe{
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

.contactMethod{
    display: flex;
    flex-direction: column;
    margin-top: 2em;
    text-align: left;
}

.method{
    display: flex;
    align-items: center;
}

.contactIcon{
    font-size: 2rem;
    color: #3BAA33; /* Reemplaza var(--primaryColor) */
    width: 70px;
}

@media screen and (min-width:800px) {
    section.contact-form {
        max-width: 1100px;
    }
    .contactForm{
        grid-template-columns: 1fr 1fr;
    }   

    .contactMethod{
        flex-direction: row;
        justify-content: space-between;
    }
}



@keyframes fadeInFromTop {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sectionHeader,
.heading,
.para,
.contactForm,
.contactMethod {
    animation: fadeInFromTop 0.8s ease-out forwards;
    opacity: 0;
}

.sectionHeader {
    animation-delay: 0.1s;
}

.heading {
    animation-delay: 0.2s;
}

.para {
    animation-delay: 0.3s;
}

.contactForm {
    animation-delay: 0.4s;
}

.contactMethod {
    animation-delay: 0.5s;
}

.input,
.method {
    animation: fadeInFromTop 0.6s ease-out forwards;
    opacity: 0;
}

.contactForm .sub-heading {
    animation-delay: 0.6s;
}

.contactForm .para2 {
    animation-delay: 0.7s;
}

.contactForm .input:nth-child(3) { /* Primer input (Nombre) */
    animation-delay: 0.8s;
}

.contactForm .input:nth-child(4) { /* Segundo input (Correo Electronico) */
    animation-delay: 0.9s;
}

.contactForm .input:nth-child(5) { /* Tercer input (Asunto) */
    animation-delay: 1s;
}

.contactForm .input:nth-child(6) { /* Textarea (Tu mensaje...) */
    animation-delay: 1.1s;
}

.contactForm .input:nth-child(7) { /* Botón de enviar (Enviar) */
    animation-delay: 1.2s;
}

.contactMethod .method:nth-child(1) { animation-delay: 1.3s; }
.contactMethod .method:nth-child(2) { animation-delay: 1.4s; }
.contactMethod .method:nth-child(3) { animation-delay: 1.5s; }
::-webkit-scrollbar {
    display: none;
}