/* Basic reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f6f7fb;
}

/* Layout helpers */
.container {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
}

/* Header */
.site-header {
    background: linear-gradient(135deg, #1c3c78, #2474b6);
    color: #fff;
    padding: 3rem 0 2.5rem;
    text-align: center;
}

.site-header h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.site-header .subtitle {
    font-size: 1rem;
    max-width: 700px;
    margin: 0.5rem auto 1.5rem;
    opacity: 0.9;
}

/* Navigation */
.site-nav {
    background-color: #12274a;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
    justify-content: center;
}

.site-nav a {
    color: #f2f5ff;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-nav a:hover {
    background-color: #f2f5ff;
    color: #12274a;
    border-color: #f2f5ff;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: #ffb300;
    color: #1a1a1a;
    padding: 0.7rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    background-color: #ffca3a;
}

/* Main content */
.content {
    padding: 2rem 0 3rem;
}

.section {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.section h2 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    color: #1c3c78;
}

.section h3 {
    font-size: 1.1rem;
    margin-top: 1.1rem;
    margin-bottom: 0.4rem;
    color: #243b70;
}

.section p {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
}

/* Lists */
.section ul,
.section ol {
    margin-left: 1.4rem;
    margin-bottom: 0.75rem;
}

.section li {
    margin-bottom: 0.4rem;
    font-size: 0.96rem;
}

/* Steps grid */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.2rem;
}

.step-card {
    background-color: #f5f7ff;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.step-card h3 {
    margin-bottom: 0.3rem;
}

/* Highlight Spanish text */
.highlight-es {
    background-color: #fff7e6;
    border-left: 4px solid #ffb300;
    padding: 0.6rem 0.75rem;
    border-radius: 4px;
    font-style: italic;
}

/* Areas list */
.areas-list {
    columns: 2;
    column-gap: 2rem;
}

.areas-list li {
    break-inside: avoid;
}

/* Call-to-action card */
.call-to-action-card {
    margin-top: 1rem;
    padding: 1.2rem 1rem;
    background-color: #f5f9ff;
    border-radius: 10px;
    border: 1px solid rgba(37, 99, 235, 0.18);
}

.call-to-action-card h3 {
    margin-bottom: 0.4rem;
}

.call-to-action-card .note {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    padding: 0.6rem 0.8rem;
    font-size: 0.9rem;
    border: none;
    border-radius: 999px;
    background-color: #12274a;
    color: #ffffff;
    cursor: pointer;
    display: none;
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
    z-index: 50;
}

.back-to-top.show {
    display: block;
}

/* Footer */
.site-footer {
    background-color: #0b162b;
    color: #d1d5db;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.85rem;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    .site-header h1 {
        font-size: 1.6rem;
    }

    .site-header .subtitle {
        font-size: 0.9rem;
    }

    .areas-list {
        columns: 1;
    }

    .site-nav ul {
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.75rem 0.5rem;
    }

    .site-nav li {
        flex: 0 0 auto;
    }
}
