body {
    background-color: #f0f0f0;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    margin: 0;
    padding: 10px;
}

nav img {
    max-width: 250px;
    height: auto;
}

nav {
    background-color: #000000;
    padding: 10px;
    text-align: center;
}

.first-section {
    background-image: url(primerfondo.jpg);
    background-size: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 300px;
    margin-bottom: 10px;
}

.secund-section {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 300px;
    margin-bottom: 20px;
}

.third-section {
    background-image: url(desk\ with\ glasses.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 300px;
    margin-bottom: 20px;
}

.fourth-section {
    background-color: #2a2929;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 300px;
    margin-bottom: 20px;
}

h1 {
    color: #ffffff;
    text-align: center;
    font-size: 5em;
}

h2 {
    color: #ffffff;
    font-size: 5em;
    text-align: center;
}

h3 {
    color: #ffffff;
    font-size: 2em;
    text-align: center;
}

.servicios {
    color: #ffffff;
}

.quienes-somos {
    color: #000000;
}

.nosotros {
    color: #000000;
}

.primer {
    color: #ffffff;
}

.segundo {
    color: #ffffff;
}

.tercero {
    color: #ffffff;
}

p {
    color: #010101;
    text-align: center;
    font-size: 1.2em;
}

a {
    color: #007BFF;
    text-decoration: none;
}

footer {
    background-color: #e3e3e3;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    color: #000000;
    font-size: 1.2em;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    position: relative;

}

footer img {
    max-width: 30px;
    height: auto;
    margin-right: 10px;
}

/* Estilos generales para imágenes y botones */
img {
    max-width: 100%;
    height: auto;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007BFF;
    color: #ffffff;
    text-align: center;
    border-radius: 5px;
    font-size: 1em;
    margin-top: 10px;
}

.btn:hover {
    background-color: #0056b3;
}

/* Diseño responsive */
@media (max-width: 1200px) {

    .first-section,
    .secund-section,
    .third-section,
    .fourth-section {
        padding: 200px 20px;
        /* Reducir el padding */
    }

    h1,
    h2 {
        font-size: 3em;
        /* Reducir tamaño de los encabezados */
    }

    p {
        font-size: 1em;
        /* Reducir tamaño del texto */
    }
}

@media (max-width: 768px) {
    nav {
        text-align: left;
        /* Alinear el contenido del nav */
    }

    .first-section,
    .secund-section,
    .third-section,
    .fourth-section {
        padding: 100px 10px;
        /* Reducir aún más el padding */
    }

    h1,
    h2 {
        font-size: 2em;
        /* Ajustar tamaño de los encabezados */
    }

    p {
        font-size: 0.9em;
        /* Ajustar tamaño del texto */
    }

    .btn {
        font-size: 0.9em;
        /* Ajustar tamaño del botón */
    }
}

@media (max-width: 480px) {
    body {
        padding: 5px;
        /* Reducir padding general */
    }

    nav {
        text-align: center;
        /* Centrar el contenido del nav */
    }

    .first-section,
    .secund-section,
    .third-section,
    .fourth-section {
        padding: 50px 5px;
        /* Reducir padding para pantallas pequeñas */
    }

    h1,
    h2 {
        font-size: 1.5em;
        /* Reducir tamaño de los encabezados */
    }

    p {
        font-size: 0.8em;
        /* Reducir tamaño del texto */
    }

    .btn {
        font-size: 0.8em;
        /* Reducir tamaño del botón */
        padding: 8px 15px;
        /* Ajustar padding del botón */
    }

    footer {
        font-size: 0.9em;
        /* Reducir tamaño del texto en el footer */
    }
}

/* Animación de desvanecimiento y desplazamiento */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animación de deslizamiento desde la izquierda */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Animación de deslizamiento desde la derecha */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Aplicar animaciones */
.first-section {
    animation: fadeInUp 1s ease-out;
}

.secund-section {
    animation: slideInLeft 1.5s ease-out;
}

.third-section {
    animation: slideInRight 1.5s ease-out;
}

.fourth-section {
    animation: fadeInUp 2s ease-out;
}

/* Transiciones en botones */
.btn {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    transform: scale(1.1);
    /* Aumenta ligeramente el tamaño */
    background-color: #0056b3;
}

/* Transiciones en imágenes */
img {
    transition: transform 0.3s ease;
}

img:hover {
    transform: scale(1.05);
    /* Aumenta ligeramente el tamaño */
}