* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    font-size: large;
    line-height: 2;
    color: black;
    background-color: rgba(245, 245, 236, 0.358);
}

a {
    color: #30d1fe;
    text-decoration: none;
    padding: 13px;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

/* Header and navigation */
header {
    padding: 20px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    position: absolute;
    top: 20px;
    right: 180px;
}

nav ul li {
    margin: 0 1rem;
}

nav ul li a {
    color: blue;
    font-size: 1.2rem;
    padding: 5px;
}

/* Estilo para cuando el enlace recibe el foco */
nav ul li a:focus {
    outline: 2px solid #ffbf00;
    /* Cambia el borde del enlace cuando tiene foco */
    background-color: #333;
    color: #fff;
}

/* Estilo al hacer hover para mejorar accesibilidad con el mouse */
nav ul li a:hover {
    background-color: #007BFF;
    color: white;
    border-radius: 5px;
}

/* High-Contrast Mode applied to the whole body */
.high-contrast {
    background-color: #000;
    color: #fff;
    transition: background-color 0.3s, color 0.3s;
}

.high-contrast * {
    color: #fff;

}

.high-contrast a {
    color: #00ff00;
    /* Bright green for links */
}

.high-contrast button {
    background-color: #333;
    color: #fff;
    border: 2px solid #fff;
}

.high-contrast img {
    filter: invert(1);
}

.high-contrast input,
.high-contrast textarea,
.high-contrast select {
    background-color: #333;
    color: #fff;
    border: 1px solid #fff;
}

/* High-Contrast Toggle Button */
.contrast-button {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 0.5rem 1rem;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.contrast-button:hover {
    background-color: #0056b3;
}


/* About Section */
.about-section {
    text-align: center;
    padding: 1rem;
    color: #333;
}

.about-content {
    margin: 0 auto;
    max-width: 90%;

    background-color: rgba(244, 58, 58, 0.638);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.about-video {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;

}

.about-img {
    margin-top: 1rem;
    max-width: 100%;
    border: solid 6px rgba(0, 0, 0, 0.1);
}


/* Services Section */
.services-section {
    padding: 3rem;
    color: #333;
    text-align: center;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 30px 1px;
    max-width: 50%;
    margin: 0 auto;
}

.service-item {
    background-color: rgba(244, 58, 58, 0.638);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.service-item img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;

}

.service-item p {
    margin-top: 1rem;
    text-align: justify;
}

/* Contact Section */
.contact-section {
    padding: 3rem;
    text-align: center;
    max-width: 50%;
    max-height: 30%;
    margin: auto;
}

.contact-section form {
    background-color: rgba(244, 58, 58, 0.638);
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input,
textarea {
    width: 100%;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: white;
}

button {
    background-color: #007BFF;
    color: #fff;
    border: none;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #0056b3;
}

/* Footer */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .about-content {
        max-width: 80%;
    }

    .contact-section {
        max-width: 80%;
    }
}

@media (max-width: 320px) {
    body {
        font-size: medium;
    }

    nav ul {
        flex-direction: column;

        position: static;
        right: auto;
        padding: 10px 0;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    nav ul li a {
        font-size: 1rem;
        padding: 10px;
    }

    .about-content {
        max-width: 90%;
        padding: 1rem;
    }

    .services-section {
        padding: 2rem 1rem;
    }

    .contact-section {
        padding: 2rem 1rem;
    }

    footer {
        padding: 0.5rem;
    }

    button {
        padding: 0.5rem 1rem;
    }
}