:root {
    --primary: #106ebe;
    --primary-dark: #005a9e;
    --text-color: #24292f;
    --text-muted: #57606a;
    --bg-color: #ffffff;
    --bg-light: #f6f8fa;
    --border-color: #d0d7de;
    --radius: 6px;
    --max-w: 1100px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
.navbar {
    border-bottom: 1px solid var(--border-color);
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

/* Botones */
.btn {
    display: inline-block;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.9rem;
    background: var(--bg-light);
    border-color: var(--border-color);
}

.btn-primary {
    background-color: var(--primary);
    color: #fff !important;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-color);
}

.btn-outline:hover {
    background: var(--bg-light);
}

/* Contenido Principal */
.site-main {
    flex: 1;
}

.hero {
    padding: 5rem 0 3.5rem;
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 680px;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.features {
    padding: 4rem 1.5rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: #fff;
}

.feature-card h3 {
    margin-bottom: 0.75rem;
    color: var(--primary);
}

/* Páginas internas */
.page-header {
    padding: 3rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.service-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.service-item {
    padding: 2rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
}

.service-item h2 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

/* Formulario */
.form-container {
    max-width: 640px;
    margin-bottom: 4rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(16, 110, 190, 0.15);
}

/* Honeypot */
.field-hp {
    display: none !important;
}

/* Alertas */
.alert {
    padding: 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #dafbe1;
    color: #1a7f37;
    border: 1px solid #aceebb;
}

.alert-danger {
    background: #ffebe9;
    color: #cf222e;
    border: 1px solid #ffc1ba;
}

/* Error 404 */
.error-page {
    text-align: center;
    padding: 6rem 1.5rem;
}

.error-page h1 {
    font-size: 5rem;
    color: var(--primary);
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
    padding: 2.5rem 0;
    margin-top: auto;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary);
}

@media (max-width: 600px) {
    .nav-content {
        flex-direction: column;
        height: auto;
        padding: 1rem 0;
        gap: 0.75rem;
    }
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}