body {
    font-family: 'Roboto', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #e0e0e0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    line-height: 1.6;
}

header, footer {
    background-color: #004040;
    color: white;
    padding: 20px 0;
    text-align: center;
}

header h1 {
    font-size: 2.0em;
    margin: 0;
}
footer {
    margin-top: auto;
}
section#calculadora, main {
    padding: 20px;
    max-width: 1200px;
    margin: auto;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

form {
    margin-bottom: 20px;
}

label {
    display: block;
    margin: 10px 0 5px;
}


input[type="number"], select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #333;
    color: #e0e0e0;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #115772;
    color: white;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0d4559;
}

#tramos ul, #detalles ul {
    list-style-type: none;
    padding: 0;
}

#tramos li, #detalles p {
    border-bottom: 1px solid #444;
    padding: 10px 0;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#tramos li span, #detalles p span {
    font-weight: bold;
    color: #115772;
}

#proyectos {
    padding: 20px;
    max-width: 1100px;
    margin: auto;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

#proyectos h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.proyecto {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 300px;
    text-align: center;
    display: inline-block;
    vertical-align: top;
    margin-right: 10px;
}

.proyecto h3 {
    margin-top: 0;
}

.proyecto p {
    font-size: 16px;
    color: #bbbbbb;
}

.proyecto a {
    display: inline-block;
    margin-top: 10px;
    color: #007BFF;
    text-decoration: none;
}

.proyecto:hover {
    background-color: #333; 
}
.project-image {
    width: 100%;
    max-width: 300px;
    border-radius: 8px;
    margin-top: 10px;
}

nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    background-color: #004040;

}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    font-style:bold italic;
    font-size: medium;
    font-weight: bold;
}

nav ul li a:hover {
    background-color: #555;
}   


main {
    padding: 40px 20px;
    max-width: 1000px;
    margin: auto;
    background-color: #1e1e1e;
    border: 1px solid #444;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

section#welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: #e0e0e0;
    padding: 40px;
}

section#welcome h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

section#welcome p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}
button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #115772;
    color: white;
    cursor: pointer;
}

button:hover {
    background-color: #0d4559;
}

.intro {
    max-width: 60%;
}

.intro h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.intro p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}
#salariosMensuales {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#salariosMensuales div {
    flex: 1 1 calc(33.333% - 10px);
}

#resultado {
    margin-top: 20px;
}

#resultado h2 {
    margin-top: 0;
}

#resultado p {
    border-bottom: 1px solid #444;
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#resultado p span {
    font-weight: bold;
    color: #115772;
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
    font-size: 1em;
}

button:hover {
    background-color: #45a049;
}

.profile-pic {
    max-width: 30%;
}

.profile-pic img {
    width: 100%;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

section#about {
    text-align: left;
    color: #e0e0e0;
}

section#about h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

section#about p {
    margin-bottom: 20px;
    font-size: 1.1em;
    line-height: 1.8;
}

footer {
    background-color: #004040;
    color: white;
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
}

.footer-content {
    display: flex;
    align-items: center; /* Alinea verticalmente el texto y los íconos */
    justify-content: center; /* Centra el contenido horizontalmente dentro del footer */
    width: 100%;
}

.footer-text {
    margin-right: 20px; /* Espacio entre el texto y los íconos */
}

.footer-icons {
    display: flex;
    gap: 10px; /* Espacio entre los íconos */
}

.footer-logo {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
    filter: invert(1);
}

.footer-logo:hover {
    transform: scale(1.1);
}


.project-card {
    background-color: #2a2a2a;
    border: 1px solid #444;
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    width: 80%;
    margin: 20px auto;
    text-align: center;
}

.project-card img {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 1px solid #444;
    border-radius: 8px;
    cursor: pointer;
}

.project-card p {
    font-size: 1.2em;
    line-height: 1.6;
    color: #e0e0e0;
    margin-top: 10px;
}

.project-card img.enlarged {
    transform: scale(2); 
    transition: transform 0.3s ease-in-out;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.lightbox-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

#caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

#contact {
    padding: 20px;
}

#contact h2 {
    font-size: 2em;
    margin-bottom: 20px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.contact-logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
}

.contact-item a, .contact-item button {
    font-size: 1.2em;
    color: #e0e0e0;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease;
}

.contact-item a:hover, .contact-item button:hover {
    color: #007BFF;
}


.button {
    display: inline-block;
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #115772;
    color: white;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.button:hover {
    background-color: #0d4559;
}

@media (max-width: 768px) {
    nav ul {
        flex-direction: column;
    }

    nav ul li {
        margin: 10px 0;
    }

    main {
        padding: 20px;
        max-width: 100%;
    }

    .footer-icons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-icons a {
        margin: 5px;
    }

    header h1 {
        font-size: 1.5em;
    }
}