html {
    color: #555555;
    margin: 20px;
    font-family: 'Montserrat', sans-serif;
}

h1 {
    color: #00B26B;
    font-size: 50px;
}

h2 {
    color: #00B26B;
}

h3 {
    color: #008F5A;
}

header {
    text-align: center;
    padding: 20px;
    margin-bottom: 30px; 
}

.logo {
    width: 320px;
}

main {
    max-width: 1200px;
    margin: 0 auto;
}

nav ul {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}

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

nav a {
    text-decoration: none;
    color: #00B26B;
    background-color: white;
    padding: 10px 18px;
    border-radius: 25px;
    font-weight: 600;
    transition: 0.3s;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

nav a:hover {
    background-color: #00B26B;
    color: white;
    text-decoration: none;
    text-decoration: underline;
}

section {
    margin-bottom: 70px;
    background-color: #f5f5f5;
    padding: 35px;
    border-radius: 20px;
}

.contenedor-servicios {
    display: flex;
    gap: 20px;
}

.contenedor-servicios article {
    flex: 1;
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    transition: 0.3s;
}

.contenedor-servicios article:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.10);
}

.contenedor-proyectos {
    display: flex;
    gap: 20px;
}

.contenedor-proyectos article {
    flex: 1;
    min-width: 0;
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
}

.contenedor-proyectos article:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

input,
textarea {
    width: 100%;
    padding: 10px;
}

label {
    display: block;
    margin-bottom: 8px;
}

form div {
    margin-bottom: 30px;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cccccc;
    border-radius: 8px;
}

button {
    background-color: #00B26B;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    transition: 0.3s;
}

button:hover {
    background-color: #008F5A;
}

button {
    cursor: pointer;
}

input:focus,
textarea:focus {
    outline: none;
    border: 1px solid #00B26B;
}

#error-nombre,
#error-email,
#error-mensaje {
    color: red;
    font-size: 14px;
    margin-top: 5px;
}

#mensaje-exito {
    color: green;
    font-weight: bold;
    margin-top: 15px;
}

.boton-principal {
    display: inline-block;
    background-color: #00B26B;
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 8px;
    margin-top: 15px;
}

.boton-principal:hover {
    background-color: #008F5A;
}

.imagen-proyecto {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: 0.3s;

}

.contenedor-proyectos article {
    transition: 0.3s;
}

.contenedor-proyectos article:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.contenedor-proyectos article:hover .imagen-proyecto {
    transform: scale(1.05);
}

.hero h2 {
    font-size: 48px;
    line-height: 1.1;
}

.hero {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-texto {
    flex: 1;
}


.hero-imagen img {
    width: 100%;
    border-radius: 20px;
}

footer {
    text-align: center;
}

html.oscuro {
    background-color: #1e1e1e;
    color: #f5f5f5;
}

html.oscuro section {
    background-color: #2d2d2d;
}

html.oscuro .contenedor-servicios article,
html.oscuro .contenedor-proyectos article {
    background-color: #3a3a3a;
}

html.oscuro h1,
html.oscuro h2,
html.oscuro h3 {
    color: #00d17d;
}

html.oscuro nav a {
    color: #00d17d;
}

html.oscuro input,
html.oscuro textarea {
    background-color: #4a4a4a;
    color: white;
    border: 1px solid #666666;
}

#logo-oscuro {
    display: none;
}

html.oscuro #logo-claro {
    display: none;
}

html.oscuro #logo-oscuro {
    display: inline;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: aparecer 0.8s ease;
}


/* ========================= */
/* DISEÑO RESPONSIVE MÓVIL   */
/* ========================= */

@media (max-width: 768px) {

    body {
        margin: 10px;
        font-size: 18px;
    }

    header {
        padding: 10px;
    }

    .logo {
        width: 280px;
        max-width: 100%;
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

    h3 {
        font-size: 24px;
    }

    p,
    label,
    input,
    textarea,
    button,
    a {
        font-size: 18px;
    }

    nav ul {
        padding: 0;
    }

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

    .contenedor-servicios,
    .contenedor-proyectos {
        flex-direction: column;
    }

    .contenedor-servicios article,
    .contenedor-proyectos article {
        width: 100%;
        box-sizing: border-box;
    }

    input,
    textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 18px;
    }

    button {
        width: 100%;
        padding: 15px;
    }

    .boton-principal {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }

    #modo-oscuro {
        width: auto;
        padding: 10px 18px;
    }

}