body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero {
    text-align: center;
    max-width: 800px;
    margin: 60px 20px 40px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

.hero h1 span {
    color: #38bdf8;
}

.hero h2 {
    font-size: 1.5rem;
    color: #94a3b8;
    font-weight: 400;
}

.hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #cbd5e1;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    max-width: 1000px;
    width: 90%;
    margin-bottom: 60px;
    grid-auto-rows: 180px; 
}

.bento-item {
    background-color: #1e293b;
    border-radius: 20px;
    padding: 25px;
    text-decoration: none;
    color: white;
    border: 1px solid #334155;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border-color: #38bdf8;
}

.destacado {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.destacado h3 { font-size: 2rem; margin-top: 0;}
.destacado p { font-size: 1.2rem; }

.skills {
    grid-column: span 2;
}

.mindset {
    grid-column: span 2;
    background-color: #0f172a;
    border: 1px dashed #38bdf8;
    text-align: center;
}

.mindset p {
    font-style: italic;
    color: #94a3b8;
}

h3 { margin-top: 0; }
p { margin-bottom: 0; }

.tag {
    display: inline-block;
    background-color: #38bdf8;
    color: #0f172a;
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 0.9rem;
    margin-top: auto;
    width: max-content;
}

.iconos-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.iconos-skills span {
    background-color: #334155;
    padding: 8px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bento-item { grid-column: span 1 !important; grid-row: span 1 !important; }
}