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

:root {
    --primary-color: #1a365d;
    --secondary-color: #2c5282;
    --accent-color: #f7fafc;
    --text-color: #2d3748;
    --text-light: #4a5568;
    --border-color: #e2e8f0;
    --success-color: #38a169;
    --link-color: #2b6cb0;
    --footer-bg: #1a202c;
    --max-content-width: 680px;
    --spacing-unit: 1.5rem;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #ffffff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
}

h3 {
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

h4 {
    font-size: 1.2rem;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

ul, ol {
    margin-bottom: 1.5rem;
    margin-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nav-editorial {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    gap: 2rem;
}

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    text-decoration: none;
}

.sticky-cta {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 999;
}

.btn-sticky {
    display: inline-block;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-sticky:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(26, 54, 93, 0.4);
    text-decoration: none;
}

.editorial-container {
    max-width: 100%;
    margin: 0 auto;
}

.hero-editorial {
    padding: 4rem 2rem 3rem;
    background-color: #ffffff;
}

.hero-text-center {
    max-width: var(--max-content-width);
    margin: 0 auto;
    text-align: center;
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.hero-image-inline {
    margin: 2.5rem auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.content-narrow {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.content-narrow.bg-accent {
    background-color: var(--accent-color);
    margin-left: 0;
    margin-right: 0;
    padding-left: calc((100% - var(--max-content-width)) / 2 + 2rem);
    padding-right: calc((100% - var(--max-content-width)) / 2 + 2rem);
}

.section-image {
    margin: 2rem auto;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.inline-cta-block {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem 0;
}

.btn-inline {
    display: inline-block;
    padding: 0.9rem 2rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-inline:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
    text-decoration: none;
    color: #ffffff;
}

.btn-text-link {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    color: var(--link-color);
    text-decoration: none;
    border-bottom: 2px solid var(--link-color);
    transition: all 0.2s ease;
}

.btn-text-link:hover {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

.services-embed {
    background-color: #fafbfc;
    border-top: 3px solid var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding: 3.5rem 2rem;
}

.service-list-editorial {
    margin-top: 2rem;
}

.service-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
}

.service-item:last-child {
    border-bottom: none;
}

.service-item h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.service-item p {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.price {
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin: 1rem 0;
}

.service-link {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background-color: transparent;
    color: var(--primary-color);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid var(--primary-color);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.service-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    text-decoration: none;
}

.testimonial-block {
    background-color: #f8f9fa;
    padding: 3rem 2rem;
    border-left: 4px solid var(--primary-color);
}

blockquote {
    margin: 0;
    font-size: 1.2rem;
    font-style: italic;
    color: var(--text-color);
}

cite {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    font-style: normal;
    color: var(--text-light);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.form-section {
    background-color: var(--accent-color);
    padding: 4rem 2rem;
}

.form-container-editorial {
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.pension-form {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-submit {
    display: inline-block;
    padding: 1rem 2.5rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(26, 54, 93, 0.2);
}

.page-header-editorial {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 4rem 2rem 2rem;
    text-align: center;
}

.header-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
}

.services-detailed {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 2rem;
}

.service-card-editorial {
    background-color: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 3rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.service-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background-color: var(--accent-color);
    border-bottom: 2px solid var(--border-color);
}

.service-header h3 {
    margin: 0;
    font-size: 1.6rem;
}

.service-price {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.service-body {
    padding: 2rem;
}

.service-body h4 {
    margin-top: 1.5rem;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.btn-service {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    background-color: var(--primary-color);
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 6px;
    margin-top: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
}

.btn-service:hover {
    background-color: var(--secondary-color);
    transform: translateY(-1px);
    text-decoration: none;
    color: #ffffff;
}

.contact-details {
    max-width: 900px;
    margin: 3rem auto;
    padding: 0 2rem;
}

.contact-grid {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-item {
    padding: 2rem;
    background-color: var(--accent-color);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.contact-item h3 {
    margin-top: 0;
    font-size: 1.4rem;
}

.cta-block {
    text-align: center;
    padding: 3rem 0;
    background-color: var(--accent-color);
}

.thanks-container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 4rem 2rem;
}

.thanks-content {
    text-align: center;
}

.thanks-content h1 {
    color: var(--success-color);
    margin-bottom: 1.5rem;
}

.thanks-message {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
}

.service-confirmation {
    padding: 1.5rem;
    background-color: var(--accent-color);
    border-radius: 8px;
    margin-bottom: 2.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    color: var(--primary-color);
}

.next-steps {
    text-align: left;
    margin: 3rem auto;
    max-width: 500px;
}

.next-steps ol {
    margin-left: 1.5rem;
}

.thanks-info,
.thanks-contact {
    text-align: left;
    margin: 2.5rem auto;
    padding: 2rem;
    background-color: var(--accent-color);
    border-radius: 8px;
}

.thanks-actions {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.legal-content {
    line-height: 1.8;
}

.legal-content h2 {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
}

.cookie-table thead {
    background-color: var(--primary-color);
    color: #ffffff;
}

.cookie-table th,
.cookie-table td {
    padding: 1rem;
    text-align: left;
    border: 1px solid var(--border-color);
}

.cookie-table tbody tr:nth-child(even) {
    background-color: var(--accent-color);
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #1a202c;
    color: #ffffff;
    padding: 1.5rem 2rem;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    z-index: 2000;
    display: none;
}

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

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

.cookie-content p {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    flex: 1;
}

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

.btn-cookie {
    padding: 0.6rem 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--success-color);
    color: #ffffff;
}

.btn-cookie:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-cookie.btn-secondary {
    background-color: transparent;
    border: 2px solid #ffffff;
    color: #ffffff;
}

.btn-cookie.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-editorial {
    background-color: var(--footer-bg);
    color: #cbd5e0;
    padding: 3rem 2rem 1.5rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-column {
    flex: 1;
}

.footer-column h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-column p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
    margin: 0;
}

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

.footer-column a {
    color: #cbd5e0;
    text-decoration: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: #ffffff;
    text-decoration: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    text-align: center;
}

.footer-bottom p {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.85rem;
    margin: 0;
}

@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.2rem;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #ffffff;
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 0.5rem;
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .sticky-cta {
        bottom: 1rem;
        right: 1rem;
    }

    .btn-sticky {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero-editorial {
        padding: 3rem 1.5rem 2rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .content-narrow {
        padding: 2rem 1.5rem;
    }

    .content-narrow.bg-accent {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .service-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .service-price {
        font-size: 1.6rem;
    }

    .cookie-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .cookie-actions {
        width: 100%;
        flex-direction: column;
    }

    .btn-cookie {
        width: 100%;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .thanks-actions {
        width: 100%;
    }

    .thanks-actions a {
        width: 100%;
        text-align: center;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .content-narrow.bg-accent {
        padding-left: 3rem;
        padding-right: 3rem;
    }
}

@media (min-width: 1025px) {
    .contact-grid {
        flex-direction: row;
    }
}