/* Estilos para el portafolio de Teo Melián Fernández */

:root {
    --color-bg: #0e0e10;
    --color-text: #f5f5f5;
    --color-accent: #8b5cf6;
    --color-secondary: #1f1f2e;
    --font: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font);
    line-height: 1.6;
}

header.hero {
    text-align: center;
    padding: 5rem 2rem;
    background-color: var(--color-secondary);
}

header.hero h1 {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

header.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
}

.hero-buttons .btn {
    display: inline-block;
    margin: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--color-accent);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.hero-buttons .btn:hover {
    background-color: #a855f7;
}

section {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
}

h2 {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
    text-align: center;
}

#sobre-mi p,
#proyectos p,
#habilidades ul,
#contacto form {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.habilidades {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    list-style: none;
    padding: 0;
    text-align: center;
}

.habilidades li {
    background-color: var(--color-secondary);
    padding: 1rem;
    border-radius: 8px;
}

.proyecto {
    background-color: var(--color-secondary);
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: 8px;
}

.proyecto img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
    margin: 1rem auto;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

iframe {
    border: none;
    border-radius: 8px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form input,
form textarea {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: #2e2e3e;
    color: var(--color-text);
    font-size: 1rem;
}

form button {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background-color: var(--color-accent);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-color: #a855f7;
}

.redes {
    margin-top: 2rem;
    text-align: center;
}

.redes a {
    color: var(--color-accent);
    font-size: 1.5rem;
    margin: 0 1rem;
    transition: color 0.3s ease;
}

.redes a:hover {
    color: #a855f7;
}

footer {
    text-align: center;
    padding: 2rem;
    background-color: var(--color-secondary);
    color: #888;
    font-size: 0.9rem;
}

/* Estilo para el widget de reCAPTCHA */
.g-recaptcha {
    margin: 1rem auto;
    text-align: center;
}

@media (min-width: 901px) {
    .proyecto img {
        max-height: 400px;
    }
}

@media (max-width: 900px) {
    .proyecto img {
        max-height: 300px;
    }
}

@media (max-width: 600px) {
    header.hero h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .hero-buttons .btn {
        width: 100%;
        margin: 0.5rem 0;
    }

    .proyecto img {
        max-height: 200px;
    }
}