/* style.css - Hoja de estilos global para NemaSense */

/* --- VARIABLES --- */
:root {
    --bg-color: #F9F9F9;
    --text-color: #333333;
    --accent-color: #2C5E55; /* Verde corporativo */
    --border-color: #E0E0E0;
    --card-bg: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #121212;
        --text-color: #E0E0E0;
        --accent-color: #81C784;
        --border-color: #333333;
        --card-bg: #1E1E1E;
    }
}

/* --- GENERAL --- */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    transition: background-color 0.3s, color 0.3s;
}

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

/* --- HEADER & LOGO --- */
header { text-align: left; padding-bottom: 40px; position: relative; }

.logo {
    max-width: 100px;
    height: auto;
    display: block;
    margin-bottom: 20px;
    filter: var(--logo-filter);
    transition: filter 0.3s;
}

h1 {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
    letter-spacing: -0.02em;
}

.tagline { color: var(--accent-color); font-size: 1.2rem; font-weight: 500; margin-bottom: 20px; }

/* --- SELECTOR DE IDIOMA --- */
.lang-switch {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Josefin Sans', sans-serif;
    z-index: 100;
}

.lang-switch a {
    color: var(--text-color);
    opacity: 0.5;
    text-decoration: none;
    margin-left: 10px;
    transition: opacity 0.3s;
}

.lang-switch a:hover { opacity: 1; }
.lang-switch a.active { opacity: 1; text-decoration: underline; color: var(--accent-color); }

/* --- BOTONES HEADER --- */
.header-social {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 15px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.insta-btn, .bsky-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    gap: 10px;
    border-radius: 50px;
    font-family: 'Nunito','Quicksand', sans-serif;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, opacity 0.2s;
    justify-content: center;
    color: #ffffff !important;
}

.insta-btn:hover, .bsky-btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
    text-decoration: none;
}

/* Forzamos que los SVG dentro de estos botones se comporten igual */
.insta-btn svg, .bsky-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    display: block; /* Evita espacios extraños debajo del icono */
    overflow: visible; /* Esto evita que Chrome "corte" los bordes del icono */
    flex-shrink: 0;
}

.insta-btn {
    background-color: #E1306C;
}

.bsky-btn {
    background-color: #0085FF;
}

/* --- SECCIONES --- */
h2 { font-weight: 700; font-size: 1.5rem; margin-top: 3rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border-color); padding-bottom: 10px;}
p { margin-bottom: 1.5rem; font-size: 1.1rem; }

ul.values {
    list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 15px;
    font-size: 0.9rem; color: var(--accent-color); font-weight: 500;
}
ul.values li::before { content: "• "; margin-right: 5px; }

/* --- CAJA DE LABOR SOCIAL --- */
.impact-box {
    background-color: transparent;
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 30px;
    margin-top: 20px;
}
.impact-title {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

/* --- PORTFOLIO DE APPS (GRID) --- */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
}

/* En móviles, volvemos a 1 columna para que se vea bien */
@media (max-width: 650px) {
    .app-grid { grid-template-columns: 1fr; }
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex; flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--accent-color); }

.app-cover {
    width: 100%; height: 180px; object-fit: cover;
    background-color: #eee; border-bottom: 1px solid var(--border-color);
}
.card-content { padding: 20px; display: flex; flex-direction: column; flex-grow: 1; }

.category-tag {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em;
    color: var(--accent-color); margin-bottom: 5px; opacity: 0.8;
}
.app-title { font-weight: 700; font-size: 1.2rem; margin-bottom: 0.5rem; color: var(--text-color); display: block; }
.app-desc { font-size: 0.95rem; opacity: 0.8; margin-bottom: 20px; line-height: 1.5; }
.btn { display: inline-block; margin-top: auto; font-size: 0.9rem; font-weight: bold; }
a { color: var(--accent-color); text-decoration: none; }
a:hover { text-decoration: underline; }

.profile-link { text-align: right; margin-bottom: 20px; font-size: 0.95rem; }

/* --- FOOTER --- */
footer {
    margin-top: 60px; padding-top: 20px; border-top: 1px solid var(--border-color);
    font-size: 0.8rem; opacity: 0.6; text-align: center;
}
