/* Estilos generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-align: center;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    color: #007bff;
}

/* Header */
header {
    background-color: #007bff;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
    display: inline-block;
    font-size: 54px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
}

.logo img {
    width: 180px;
    height: 180px;
    vertical-align: middle;
    margin-right: 10px;
    border-radius: 5px;
}

nav ul {
    list-style: none;
    float: right;
}

nav li {
    display: inline-block;
    margin-left: 30px;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav a:hover {
    color: #7fb9f7;
}

/* Hero */
#hero {
    background-image: url('img/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #007bff;
    text-align: center;
    padding: 100px 0;
}

#hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

#hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

/* Botones */
.btn {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0069d9;
    transform: scale(1.1);
}

/* Secciones con fondo claro */
.bg-light {
    background-color: #f8f9fa;
    padding: 80px 0;
    color: #007bff;
}

/* Servicios */
#servicios h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

.servicios-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.servicio {
    width: 30%;
    margin-bottom: 40px;
    padding: 20px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    
}

.servicio:hover {
    transform: scale(1.2);
}

.servicio img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
    margin-bottom: 20px;
}

.servicio h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* Sobre Nosotros */
#sobre-nosotros {
    text-align: center;
}

/* Contacto */
.contato {
    text-align: center;
}

#contacto h2 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 40px;
}

#contacto form {
    max-width: 600px;
    margin: 0 auto;
}

#contacto input,
#contacto textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
}

#contacto textarea {
    height: 120px;
}

/* Footer */
footer {
    background-color: #007bff;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

footer p {
    color: #ffffff;
}

/* Responsive */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
    }

    nav ul {
        float: none;
        text-align: center;
        margin-top: 20px;
    }

    nav li {
        display: block;
        margin: 10px 0;
    }

    #hero h1 {
        font-size: 36px;
    }

    .servicios-grid {
        flex-direction: column;
    }

    .servicio {
        width: 100%;
    }
}


/* Botão "Voltar ao Topo" */
.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display:block;
    background: #ffffff;
    color: #007bff;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.back-to-top:hover {
    opacity: 1;
}

.back-button:hover {
    transform: scale(1.25);  /* Aumenta um pouco o botão ao passar o mouse */
}


/* Hero (Carrossel) */
.hero {
    position: relative;
    margin-bottom: 0;
}



.carousel {
    width: 100%;
    position: relative;
    /* Mantém o posicionamento relativo */
}

.carousel-inner {
    width: 100%;
    height: auto;
    /* Ajusta a altura ao conteúdo */
    overflow: hidden;
    position: relative;
}

.carousel-item {
    display: none;
}

.carousel-item.active {
    display: block;
}

.carousel img {
    width: 100%;
    height: 650px;
    object-fit: cover;
}



/* Botões do Carrossel */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #007bff;
    padding: 10px 15px;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;


}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background-color: rgba(139, 204, 247, 0.8);
}



.contato {
    margin-left: 30px;

}

.contato h3 {
    color: #007bff;
    margin-bottom: 15px;
}

.contato ul {
    list-style: none;
    padding: 0;
}

.contato li {
    margin-bottom: 10px;
}

.contato svg {
    color: #007bff;
}

a {
    text-decoration: none;
    color: #333;
    position: relative;
    overflow: hidden;
}

a::before {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #007bff;
    bottom: 0;
    left: 0;
    transition: width 0.3s ease;
}

a:hover::before {
    width: 100%;
}

.redes a {
    color: #007bff;
    padding: 4px 40px;
}

hr {
    color: #007bff;
    text-align: center;
    align-items: center;
    width: 100%;
    border-radius: 100%;
    border: solid 0.2em;
}