/* Estilos generales */
html, body {
    min-height: 100%;
    margin: 0;
    padding: 0;
}

html {
    background: linear-gradient(180deg, #ffffff 0%, #f6f8fb 60%, #f6f8fb 100%);
}

body {
    font-family: 'Poppins', sans-serif;
    background: transparent;
    color: #111;
    text-align: center;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Encabezado */
header {
    padding: 40px 20px 20px;
}

header h1 {
    font-size: 2.8rem;
    margin-bottom: 8px;
    font-weight: 700;
}

header p {
    font-size: 1.08rem;
    color: #666;
    margin-top: 0;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

/* Navegación */
nav ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

nav ul li {
    display: inline-block;
    margin: 0 12px;
}

nav ul li a {
    text-decoration: none;
    color: #111;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #00aaaa;
}

/* Contenido principal */
main {
    flex: 1;
    padding: 0 20px 40px;
}

/* Intro */
.intro {
    max-width: 900px;
    margin: 24px auto 32px;
    padding: 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-align: left;
}

.intro h2 {
    font-size: 1.8rem;
    margin-top: 0;
    margin-bottom: 16px;
    text-align: center;
}

.intro p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 0;
}

/* Grid de proyectos */
.projects-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

/* Tarjetas */
.project-card {
    padding: 28px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
    text-align: left;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.project-card h2 {
    font-size: 1.7rem;
    margin: 10px 0 8px;
}

.project-role {
    color: #00aaaa;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 16px;
}

.project-card p {
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
}

.project-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
}

.project-card ul li {
    margin-bottom: 12px;
    padding-left: 18px;
    position: relative;
    color: #222;
}

.project-card ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #00aaaa;
    font-weight: 700;
}

/* Proyecto destacado */
.featured {
    grid-column: span 2;
    border: 1px solid #e9edf3;
    /*background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,251,255,0.98) 100%);*/
}

.project-tag {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #eefbfb;
    color: #008b8b;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Pie */
footer {
    padding: 20px;
    font-size: 0.9rem;
    color: #666;
}

/* Responsive */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .featured {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }

    .intro,
    .project-card {
        padding: 22px;
    }

    nav ul li {
        display: block;
        margin: 10px 0;
    }
}