:root {
    --primary: #1e3a5f;
    --secondary: #2d5a87;
    --accent: #3b82f6;
    --background: #f8fafc;
    --surface: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
    --divider: #cbd5e1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Manrope', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.7;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-with-lang {
    background-color: var(--surface);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-with-lang .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
}

.nav-with-lang ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-with-lang a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-with-lang a:hover,
.nav-with-lang a.active {
    color: var(--accent);
}

.logo-link {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary) !important;
}

.language-selector {
    padding: 0.5rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background-color: var(--surface);
    color: var(--text);
    cursor: pointer;
}

.hero-grid-overlay {
    position: relative;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    overflow: hidden;
}

.hero-grid-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--surface);
    max-width: 900px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--surface);
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    color: var(--surface);
}

.cta-button {
    background-color: var(--accent);
    color: var(--surface);
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

.page-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--surface);
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--surface);
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
    color: var(--surface);
}

main {
    padding: 3rem 0;
}

section {
    margin-bottom: 4rem;
}

h2 {
    color: var(--primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

h3 {
    color: var(--secondary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

h4 {
    color: var(--primary);
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.value-proposition {
    background-color: var(--surface);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.value-proposition h2 {
    text-align: center;
    margin-bottom: 1.5rem;
}

.value-proposition p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    color: var(--text);
}

.angled-divider {
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom right, var(--background) 50%, var(--surface) 50%);
    margin: 3rem 0;
}

.angled-divider.reverse {
    background: linear-gradient(to bottom left, var(--background) 50%, var(--surface) 50%);
}

.info-cards-row .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.info-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card-icon {
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.card-icon svg {
    width: 48px;
    height: 48px;
}

.info-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.info-card p {
    color: var(--muted);
    line-height: 1.6;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: center;
}

.grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

article {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
}

.program-card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.program-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    color: var(--surface);
}

.cta-section h2 {
    color: var(--surface);
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--surface);
    opacity: 0.95;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

footer {
    background-color: var(--primary);
    color: var(--surface);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4,
.footer-column h5 {
    color: var(--surface);
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255,255,255,0.8);
    line-height: 1.6;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--surface);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.sticky-contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--accent);
    color: var(--surface);
    padding: 1rem;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.sticky-contact-bar.visible {
    transform: translateY(0);
}

.sticky-contact-bar a {
    color: var(--surface);
    font-weight: 600;
    text-decoration: none;
    margin-left: 1rem;
}

.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--surface);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    padding: 1.5rem;
    z-index: 1001;
    display: none;
}

.cookie-consent.show {
    display: block;
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-content p {
    margin: 0;
    flex: 1;
    min-width: 300px;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
}

.button-accept,
.button-decline {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.button-accept {
    background-color: var(--accent);
    color: var(--surface);
}

.button-accept:hover {
    background-color: var(--secondary);
}

.button-decline {
    background-color: var(--muted);
    color: var(--surface);
}

.button-decline:hover {
    background-color: var(--text);
}

form label {
    display: block;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text);
}

form input,
form textarea,
form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-family: 'Manrope', sans-serif;
    font-size: 1rem;
    margin-top: 0.25rem;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

form button {
    background-color: var(--accent);
    color: var(--surface);
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

form button:hover {
    background-color: var(--secondary);
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-content section {
    margin-bottom: 2.5rem;
}

.legal-content ul,
.legal-content ol {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.legal-content th,
.legal-content td {
    border: 1px solid var(--border);
    padding: 0.75rem;
    text-align: left;
}

.legal-content th {
    background-color: var(--background);
    font-weight: 600;
}

@media (max-width: 768px) {
    .nav-with-lang .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-with-lang ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .grid {
        grid-template-columns: 1fr;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-buttons {
        width: 100%;
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.outline {
    background-color: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.outline:hover {
    background-color: var(--accent);
    color: var(--surface);
}

input.error,
textarea.error {
    border-color: #dc2626;
}