/* === BASE STYLES === */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: #000;
    font-family: 'Lora', serif;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    background: radial-gradient(circle at top, #111, #000)
}

/* === HEADER === */
header {
    background-color: #00ff44;
    color: #000;
    height: 100px;
    backdrop-filter: blur(6px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 60px;
    box-shadow: 0 4px 20px rgba(0, 255, 68, 0.25);
    z-index: 10;
    position: relative;
}

.logo h2 {
    color: #000;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo h2:hover {
    transform: scale(1.05);
    color: #ff0033;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: #000;
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 600;
    transition: color 0.3s;
}

nav a:hover {
    background-color: rgba(0, 0, 0, 0.15);
    color: inherit;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    font-size: 0.95rem;
    text-decoration: none;

    color: rgba(255, 0, 51, 0.7);

    margin: 40px auto 0;
    padding: 6px 10px;

    transition: color 0.3s ease, transform 0.3s ease;
}

.back-home:hover {
    color: #ff0033;
    transform: translateX(-4px);
}



/* === MAIN SECTION (HOME) === */
.main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 80px 100px;
    gap: 40px;
}

.main .texto {
    flex: 1;
}

.main img {
    flex: 1;
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
}

.main .texto h1 {
    font-size: 2.2em;
    margin-bottom: 20px;
}

.main .texto p {
    font-size: 1.1em;
    color: #ccc;
    margin-bottom: 25px;
}

.main.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 80px 100px;
    gap: 40px;
}

.main.home .texto {
    flex: 1;
}

.main.home img {
    flex: 1;
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.3);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.main.home img:hover {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(255, 0, 51, 0.6);
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    background-color: #ff0033;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s, box-shadow 0.3s;
}

.btn:hover {
    background-color: #ff2222;
    box-shadow: 0 0 15px rgba(255, 0, 51, 0.5);
}

/* === GRID SECTION === */
.medio {
    padding: 80px 100px;
    background: #000;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.grid {
    background-color: #111;
    border: 1px solid #ff0033;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 0 10px rgba(255, 0, 51, 0.25);
    animation: fadeIn 0.6s ease;

}

.grid img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
}

.grid:hover {
    transform: translateY(-6px);
    box-shadow: 0 0 18px rgba(255, 0, 51, 0.6);
}

.grid:hover h3 {
    color: #ff0033;
}

.about-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 50px;
    padding: 80px 100px;
    text-align: left;
    flex-wrap: nowrap;
}

.about-text {
    flex: 1;
}

.about-text h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #ff0033;
}

.about-text p {
    font-size: 1.1rem;
    color: #ccc;
    line-height: 1.7;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.about-image img {
    max-width: 400px;
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(255, 0, 51, 0.25);
    transition: transform 0.4s ease, filter 0.4s ease;
}

.about-image img:hover {
    transform: scale(1.05);
    filter: contrast(1.2);
}

/* === CONTACT FORM === */
.form-section {
    padding: 80px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1;
}

form {
    background-color: #111;
    border: 2px solid #00ff66;
    border-radius: 15px;
    box-shadow: 0 0 25px rgba(0, 255, 102, 0.3);
    padding: 2rem 3rem;
    width: 380px;
    max-width: 90%;
}

form label {
    color: #00ff66;
    font-weight: bold;
    display: block;
    margin-bottom: 8px;
}

form input {
    width: 100%;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    margin-bottom: 18px;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

form input:focus {
    border-color: #00ff66;
    outline: none;
    box-shadow: 0 0 8px #00ff66;
}

form button {
    background-color: #ff0033;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

form textarea {
    width: 100%;
    min-height: 120px;
    background-color: #000;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    padding: 10px;
    resize: vertical;
}

form button:hover {
    background-color: #ff3355;
    box-shadow: 0 0 10px #ff0033;
}

/* === INPUT VALIDATION === */
input.valid {
    border-color: #00ff44;
    box-shadow: 0 0 8px rgba(0, 255, 68, 0.4);
}

input.invalid {
    border-color: #ff0033;
    box-shadow: 0 0 8px rgba(255, 0, 51, 0.4);
}

.error {
    color: #ff0033;
    font-size: 0.85em;
    margin-top: 3px;
}

/* === BUTTONS (shared) === */
button {
    margin-top: 10px;
    padding: 12px 20px;
    font-size: 1em;
    background-color: #ff0033;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s, box-shadow 0.3s;
}

button:hover {
    background-color: #ff2222;
    box-shadow: 0 0 12px rgba(255, 0, 51, 0.5);
}

/* === SUCCESS MESSAGE === */
.success {
    color: #00ff55;
    font-weight: bold;
    text-align: center;
    opacity: 0;
    transition: opacity 0.5s;
}

.success.show {
    opacity: 1;
}

/* === USER CARDS === */
#listaUsuarios {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.card {
    background-color: #111;
    color: #fff;
    border: 1px solid #00ff44;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 0 10px rgba(0, 255, 68, 0.3);
    text-align: center;
}

/* === MODAL === */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    justify-content: center;
    align-items: center;
}

.modal:not(.hidden) {
    display: flex;
}

.modal-content {
    background: #111;
    border: 1px solid #00ff44;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 68, 0.3);
    width: 90%;
    max-width: 350px;
}

/* === FOOTER === */
footer {
    background-color: #00ff44;
    color: #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 80px;
    margin-top: 80px;
    box-shadow: 0 -4px 20px rgba(0, 255, 68, 0.2);
    position: relative;
    z-index: 5;
}

.footer-title {
    margin: 0;
}

.footer-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0;
    padding: 0;
}

.footer-links li {
    display: flex;
}

.footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;

    /* base negro elegante */
    filter: grayscale(100%) brightness(0.2);

    transition: transform 0.25s ease, filter 0.25s ease;
}

.footer-icon:hover {
    transform: scale(1.15);
    filter: grayscale(100%) brightness(1);
}

main {
    animation: fadeIn 0.6s ease;
}

input.valid {
    border-color: #00ff44;
    box-shadow: 0 0 8px rgba(0, 255, 68, 0.4);
}

input.invalid {
    border-color: #ff0033;
    box-shadow: 0 0 8px rgba(255, 0, 51, 0.4);
}

.email-hint {
    font-size: 0.85rem;
    margin-top: -12px;
    margin-bottom: 12px;
    color: #ff0033;
    opacity: 0;
    transition: opacity 0.3s;
}

.email-hint.show {
    opacity: 1;
}

.field-hint {
    font-size: 0.85rem;
    margin-top: -12px;
    margin-bottom: 12px;
    color: #ff0033;
    opacity: 0;
    transition: opacity 0.3s;
}

.field-hint.show {
    opacity: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        height: auto;
        padding: 20px;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .main {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }

    .about-card {
        flex-direction: column;
        padding: 25px;
    }

    .about-image img {
        width: 100%;
    }

    footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

}