/* Estilos generales */
:root {
    --brand-green: #39b54a;
    --brand-purple: #5b2e91;
    --brand-text: #111111;
}
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

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

.section {
    padding: 80px 0;
    text-align: center;
}

.bg-light {
    background-color: #e9ecef;
}

h1, h2, h3 {
    margin-top: 0;
    font-weight: 600;
}

h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: var(--brand-purple);
}

/* Header (Hero) */
.hero {
    position: relative;
    background-color: #f7f7f9; /* slightly darker than white */
    color: var(--brand-text);
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
}

.hero .subtitle {
    font-size: 2.4em;
    font-weight: 300;
    color: #000;
    line-height: 1.2;
    margin-top: 0;
}

.btn {
    display: inline-block;
    background-color: var(--brand-green);
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s, transform 0.1s;
}

.btn:hover {
    background-color: var(--brand-purple);
}

.btn:active {
    transform: translateY(1px);
}

/* Sección de Habilidades */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.skill-item {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.skill-item:hover {
    transform: translateY(-10px);
}

.skill-item i {
    font-size: 3em;
    color: var(--brand-purple);
    margin-bottom: 15px;
}

/* Sección de Proyectos */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card h3 {
    color: #007bff;
}

.project-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--brand-purple);
    text-decoration: none;
    font-weight: 600;
}

.project-link:hover {
    text-decoration: underline;
}

/* Contacto */
.contact-links {
    margin-top: 30px;
}

.contact-btn {
    color: var(--brand-purple);
    text-decoration: none;
    margin: 0 15px;
    font-size: 1.2em;
    transition: color 0.3s;
}

.contact-btn:hover {
    color: #4a2578;
}

/* Footer */
footer {
    background-color: #343a40;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Logo */
.logo {
    display: block;
    width: auto;
    height: auto;
    max-width: 90vw;
    max-height: clamp(120px, 28vh, 256px);
    margin: 0 auto 5px;
}

.logo--image {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    mix-blend-mode: multiply;
    filter: saturate(1) contrast(1) brightness(1);
    transition: filter 200ms ease, transform 120ms ease;
}

.logo--image:hover,
.logo-area:hover .logo--image {
    filter: saturate(1.7) contrast(1.2) brightness(1.07) drop-shadow(0 6px 16px rgba(0,0,0,0.08));
}

@media (min-width: 768px) {
    .logo { max-height: 320px; }
}

/* Logo area */
.logo-area {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 10px;
}

/* Canvas background for subtle cells */
#cells-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero > .container { position: relative; z-index: 1; }

/* (removed brand wordmark styles per request) */

/* Accesibilidad: enfoque visible */
.btn:focus-visible,
.contact-btn:focus-visible,
.project-link:focus-visible {
    outline: 3px solid #ffbf47;
    outline-offset: 2px;
    border-radius: 6px;
}