/* GENERAL */
body {
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    margin: 0;
    background: #f5f7fa;
    color: #1a1a1a;
    scroll-behavior: smooth;
}

/* HERO */
.hero {
    height: 90vh;
    background: linear-gradient(135deg, #0b3d91, #1a73e8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
}

.hero h1 {
    font-size: 48px;
    margin: 0;
}

.hero p {
    font-size: 20px;
    margin-top: 10px;
    opacity: 0.9;
}

.btn-hero {
    margin-top: 25px;
    padding: 14px 26px;
    background: white;
    color: #0b3d91;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s;
}

.btn-hero:hover {
    background: #e3e9ff;
}

/* NAV */
nav {
    background: white;
    padding: 12px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 10;
}

nav a {
    color: #0b3d91;
    margin: 0 18px;
    text-decoration: none;
    font-weight: 600;
}

nav a:hover {
    color: #1a73e8;
}

/* SECCIONES */
.section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: auto;
}

.section h2 {
    color: #0b3d91;
    border-left: 5px solid #1a73e8;
    padding-left: 12px;
}

/* TARJETAS */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 25px;
    transition: 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.12);
}

/* BOTONES */
.btn {
    display: inline-block;
    background: #1a73e8;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}

.btn:hover {
    background: #0b3d91;
}

/* GRID DE PROYECTOS */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
}

.project-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.project-card .icon {
    font-size: 40px;
    margin-bottom: 10px;
}

/* ANIMACIONES */
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* FOOTER */
footer {
    background: #0b3d91;
    color: white;
    text-align: center;
    padding: 25px;
    margin-top: 40px;
}
