
/* Estilos Generales*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
    flex: 1;
}

html, body {
    height: 100%;
}
    
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #111;
    color: #fff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/*  Header  */

.nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: #181818;
    box-shadow:  0 2px 8px rgba(0,0,0,0.3);
}

.nav-header a {
    text-decoration: none;
    color: inherit;
}

.nav-header .logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-header .logo img {
    height: 40px;
    width: auto;
    margin-right: 10px;
    border-radius: 6px;
}

.nav-header .logo h2 {
    position: relative;
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
}

.nav-header .logo h2::after {
    content: "";
    position: absolute;
    left: 10px;
    bottom: -4px;
    width: 0%;
    height: 3px;
    background-color: #6BBEF2;
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-header .logo h2:hover::after {
    width: calc(100px + 5px);
}

.nav-header .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: opacity 0.3 ease;
    opacity: 0.7;
}

.nav-header .menu-toggle:active {
    transform: scale(0.85);
    box-shadow: 0 0 8px rgba(107, 190, 242, 0.5);
}

@media (max-width: 768px) {
    .nav-header .menu-toggle{
        display: block;
    }
}

.nav-header nav {
    display: flex;
}

@media (max-width: 768px) {
    .nav-header nav {
        display: none;
        flex-direction: column;
        align-items: flex-start; 
        position: absolute;
        top: 80px;
        right: 2px; 
        background: rgba(20, 20, 20, 0.95);
        backdrop-filter: blur(6px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 15px;
        padding: 20px;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6);
        z-index: 1000;
        transform: translateY(-15px);
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-header nav.active {
        display: flex;
        transform: translateY(0);
        opacity: 1;
    }

    .nav-header nav a {
        margin: 12px 0;
        color: #fff;
        font-size: 1.1rem;
        text-align: left;
        transition: color 0.3s, transform 0.2s;
    }

    .nav-header nav a:hover {
        color: #6BBEF2;
        transform: scale(1.05);
    }
}

.nav-header nav a {
    margin-left: 20px;
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.nav-header nav a:hover {
    color: #6BBEF2;
}

/*  Main  */

/*  formulario-demo  */

.formulario-demo {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
}

.formulario-demo h2 {
    margin-top: 55px;
    margin-bottom: 20px;
}

.formulario-demo p {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.2;
    margin-top: 9px;
    margin-bottom: 35px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    max-width: 500px;
}

fieldset {
    border: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

label {
    font-size: 0.95rem;
    color: #e6e6e6;
    font-weight: 500;
}

input, textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
    transition: border 0.3s ease, background 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #6BBEF2;
    background: rgba(255, 255, 255, 0.08);
}

button {
    margin-top: 10px;
    margin-bottom: 25px;
    background: linear-gradient(90deg, #6BBEF2, #4A9AD4);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    padding: 0.9rem 1.4rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 3px 3px rgba(107, 190, 242, 0.3);
}

/*  Footer  */

footer {
    text-align: right;
    margin-top: 25px;
    padding: 20px;
    background: #181818;
    color: #aaa;
    font-size: 14px;
}
