* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'open sans';
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #1c6bff;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

/* Header */

header {
    width: 100%;
    height: 600px;
    background: #1f0418;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(338, 27%, 8%, 0.459), hsla(0, 0%, 100%, 0.664)), url(../img/¿Qué\ Es\ El\ Marketing\ Digital.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(181, 100%, 74%, 0.459), hsla(231, 45%, 76%, 0.664)), url(../img/¿Qué\ Es\ El\ Marketing\ Digital.jpg);
    /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

nav{
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a{
    color:#fff;
    font-weight: 300;
    text-decoration: none;
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline;
}

header .textos-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 50px;
    color:#fff;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color:#fff;
}

.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* Estilos generales para los botones */
.btn {
    display: inline-block;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0 10px;
}

/* Estilo del botón primario (Iniciar sesión) */
.btn-primary {
    background-color: #1662ef;
    color: white;
    border: none;
}

/* Efecto hover para el botón primario */
.btn-primary:hover {
    background-color: #0056b3;
}

/* Estilo del botón secundario (Registrarse) */
.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

/* Efecto hover para el botón secundario */
.btn-secondary:hover {
    background-color: #1662ef;
}

/* Animación de rebote al pasar el cursor sobre los botones */
.button-bounce:hover {
    transform: translateY(-5px); /* Mueve el botón hacia arriba ligeramente */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3); /* Añade una sombra para dar el efecto de elevación */
}

/* Alineación de los botones utilizando flexbox para una mejor posición */
.my-4 {
    display: flex;
    justify-content: center; /* Centra los botones horizontalmente */
    gap: 20px; /* Añade espacio entre los botones */
    margin-top: 20px;
}

/* Transición suave en el cambio de color y movimiento al pasar el cursor */



/* About us */

main .sobre-nosotros{
    padding: 30px 0 60px 0;
}
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us{
    width: 48%;
}

.sobre-nosotros .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #1662ef;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

/* Galeria */


.portafolio{
    background: #f2f2f2;
}

.galeria-port{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.imagen-port{
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: hsla(0, 0%, 100%, 0.7);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galeria img{
    width: 50px;
}

.hover-galeria p{
    color: #8c0000;
}

.imagen-port:hover .hover-galeria{
    transform: scale(1);
}

/* Clients */

.cards{
    display: flex;
    justify-content: space-evenly;
}

.cards .card{
    background: #0443cc;
    display: flex;
    width: 150%;
    height: 150px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    box-shadow: 0 0 6px 0 rgba(255, 255, 255, 0.6);
}

.cards .card img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: #fff;
}

.cards .card > .contenido-texto-card p{
    font-weight: 300;
    padding-top: 5px;
}

/*  Our team */

.about-services{
    background: #f2f2f2;
    padding-bottom: 30px;
}


.servicio-cont{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.servicio-ind{
    width: 28%;
    text-align: center;
}

.servicio-ind img{
    width: 90%;
}

.servicio-ind h3{
    margin: 10px 0;
}

.servicio-ind p{
    font-weight: 300;
    text-align: justify;
}

/* footer */

footer{
    background: #414141;
    padding: 60px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer{
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 50px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #31a8c3;
    border-bottom: 3px solid #1059cf;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #0f0000;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}

@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

    /* servicios */

    .servicio-cont{
        justify-content: center;
        flex-direction: column;
    }

    .servicio-ind{
        width: 100%;
        text-align: center;
    }

    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 90%;
    }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 20px;
    }

    /* ABOUT US */

    .imagen-about-us{
        margin-bottom: 60px;
        width: 99%;
    }

    .sobre-nosotros .contenido-textos{
        width: 95%;
    }

    /* Galeria */

    .imagen-port{
        width: 95%;
    }

    /* Clients */

    .cards .card{
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    /* Footer */

    .contenedor-footer{
        flex-direction: column;
        border: none;
    }

    .content-foo{
        margin-bottom: 20px;
        text-align: center;
    }

    .content-foo h4{
        border: none;
    }

    .content-foo p{
        color: #ccc;
        border-bottom: 1px solid #b93030;
        padding-bottom: 20px;
    }

    .titulo-final{
        font-size: 20px;
    }
}


/* Estilos generales para la sección de contacto */
.contact {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centra horizontalmente */
    justify-content: center; /* Centra verticalmente */
    text-align: center; /* Alinea el texto en el centro */
    padding: 40px 20px;
    
}

.contact h2, .contact p {
    color: rgb(232, 232, 232); /* Cambia el color del texto a blanco */
}

.contact h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Estilos del formulario */
.contact form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 500px; /* Ancho máximo del formulario */
}

.contact input, .contact textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #cacaca;
    border-radius: 5px;
    font-size: 1rem;
    box-sizing: border-box;
}

.contact textarea {
    height: 150px; /* Altura del área de texto */
    resize: none; /* Desactiva la posibilidad de redimensionar el área de texto */
}

.contact button {
    padding: 12px 20px;
    background-color: #376ca4;
    color: rgb(243, 243, 243);
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.contact button:hover {
    background-color: #3878bc;
}

.contact-map {
    margin-top: 1cm; /* Ajusta el margen superior del mapa */
}

.custom-sidebar-container {
    display: flex;
    margin: 0;
    height: 100vh;
}
.custom-sidebar-container .sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    left: 0;
    background-color: #f8f9fa;
    padding-top: 20px;
    transition: width 0.3s;
    overflow: hidden;
}
.custom-sidebar-container .sidebar.collapsed {
    width: 80px;
}
.custom-sidebar-container .sidebar a {
    padding: 10px 15px;
    text-decoration: none;
    font-size: 18px;
    color: #075298e6;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    white-space: nowrap;
}
.custom-sidebar-container .sidebar.collapsed a {
    text-align: center;
    padding-left: 0;
    padding-right: 0;
    font-size: 0;
}
.custom-sidebar-container .sidebar a:hover {
    background-color: #e4dede;
    color: #000;
}
.custom-sidebar-container .sidebar i {
    margin-right: 15px;
}
.custom-sidebar-container .sidebar.collapsed i {
    margin-right: 0;
}
.custom-sidebar-container .sidebar h3 {
    text-align: center;
}
.custom-sidebar-container .sidebar.collapsed h3 {
    display: none;
}
.custom-sidebar-container .toggle-btn-inside {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #3c70a8;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 24px;
    padding: 5px 10px;
    transition: all 0.3s;
    z-index: 1;
    border-radius: 5px;
}
.custom-sidebar-container .toggle-btn-inside:hover {
    background-color: #0677f0;
}
.custom-sidebar-container .toggle-btn-inside.collapsed i {
    transform: rotate(180deg);
}
.custom-sidebar-container .content {
    margin-left: 250px;
    padding: 20px;
    width: 100%;
    transition: margin-left 0.3s;
}
.custom-sidebar-container .content.collapsed {
    margin-left: 80px;
}
.custom-sidebar-container .collapse {
    background-color: #e0f7fa;
}
.custom-sidebar-container .collapse a {
    color: #007bff;
}
.custom-sidebar-container .collapse a:hover {
    background-color: #b3e5fc;
    color: #0056b3;
}


.about-services .contenedor {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.servicio-cont {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.servicio-ind {
    flex: 1 1 22%; /* Tamaño de cada columna (ajustable) */
    margin: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    background-color: #f9f9f9;
    border-radius: 10px;
}

.servicio-ind img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
}

.servicio-ind h3 {
    font-size: 1.2em;
    margin-bottom: 15px;
}

.servicio-ind p {
    font-size: 0.9em;
    line-height: 1.6;
}

/* Aseguramos que sea responsive */
@media (max-width: 1024px) {
    .servicio-ind {
        flex: 1 1 45%;
    }
}

@media (max-width: 768px) {
    .servicio-ind {
        flex: 1 1 100%;
    }
}









.document-viewer {
    margin-bottom: 20px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
}
