:root {
    --primary: #1e293b;
    --accent: #2563eb;
    --bg: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #334155;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--primary);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    background: #1e293b;
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 12px;
}

.logo-text h1 {
    font-size: 1.5rem;
    margin-bottom: 0.2rem;
}

.logo-text p {
    font-size: 0.8rem;
    opacity: 0.7;
}

.header-title {
    text-align: right;
}

.header-title h2 {
    font-size: 1.2rem;
}

.header-title p {
    font-size: 0.85rem;
    opacity: 0.7;
}

nav {
    background: white;
    text-align: center;
    padding: 0.8rem;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav a {
    margin: 0 1rem;
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover {
    color: var(--accent);
}

.servicios-section {
    display: flex;
    flex-wrap: wrap;
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    gap: 2rem;
}

.servicio-card {
    flex: 1;
    min-width: 280px;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.servicio-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.servicio-imagen {
    width: 100%;
    max-width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.servicio-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

.servicio-card h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.servicio-card p {
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.6;
}

footer {
    background: #0f172a;
    color: #cbd5f5;
    text-align: center;
    padding: 1.2rem;
    font-size: 0.75rem;
    margin-top: auto;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    .header-title {
        text-align: center;
    }
    nav a {
        margin: 0 0.8rem;
        font-size: 0.85rem;
    }
    .servicios-section {
        padding: 1rem;
    }
    .servicio-card {
        padding: 1.5rem;
    }
    .servicio-imagen {
        height: 180px;
    }
}

@media (max-width: 480px) {
    nav a {
        margin: 0 0.5rem;
        font-size: 0.75rem;
    }
    .servicio-imagen {
        height: 150px;
    }
    .servicio-card h3 {
        font-size: 1.3rem;
    }
}