/* Estilos generales provistos por el usuario */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #f8fafc; /* Light gray background */
    min-height: 100vh;
    color: #334155; /* Darker text color for better contrast */
    overflow-x: hidden;
    line-height: 1.6;
    display: flex; /* For sticky footer */
    flex-direction: column; /* For sticky footer */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    width: 100%; /* Ensure container takes width for centering */
}

/* Utility class */
.hidden {
    display: none !important;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between; /* Align logo to left, potential nav to right */
    align-items: center;
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    padding: 15px 30px; /* Increased padding */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px; 
    text-decoration: none; /* If logo is a link */
}

.logo-image {
    height: 45px; /* Slightly larger logo */
    width: auto;
    object-fit: contain;
}

.logo-icon { 
    display: none;
}

.logo-text {
    font-size: 24px; /* Slightly larger text */
    font-weight: 700;
    color: white;
}

/* Header Navigation - Basic styling */
.header nav {
    display: flex;
    gap: 15px;
}
.header nav a {
    color: white;
    text-decoration: none;
    font-size: 1em;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: 500;
}
.header nav a:hover {
    background-color: rgba(255,255,255,0.15);
    text-decoration: none;
}
.header nav a.active {
    background-color: rgba(255,255,255,0.25);
    font-weight: 600;
}


/* Main Blog Content */
.blog-main-content {
    flex: 1; /* For sticky footer */
    padding: 30px 0; /* Adjusted padding based on container having its own */
}

.blog-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b; /* Darker title */
    text-align: center;
    margin-bottom: 10px;
}

.blog-page-subtitle {
    font-size: 1.1rem;
    color: #475569;
    text-align: center;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.blog-post-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08); /* Softer shadow */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}

.blog-post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e2e8f0; /* Separator line */
}

.blog-post-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows button to stick to bottom */
}

.blog-post-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #1e293b;
}

.blog-post-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

.blog-post-title a:hover {
    color: #0ea5e9; /* Accent color on hover */
}

.blog-post-meta {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 15px;
}

.blog-post-meta .author {
    font-weight: 500;
}

.blog-post-excerpt {
    font-size: 0.95rem;
    color: #475569;
    margin-bottom: 20px;
    flex-grow: 1;
    line-height: 1.5;
}

.read-more-btn {
    display: inline-block;
    background-color: #0ea5e9;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
    align-self: flex-start; /* Align to the start of the flex container */
}

.read-more-btn:hover {
    background-color: #0369a1;
    transform: translateY(-2px);
    color: white; /* Ensure text color remains white on hover */
}

.read-more-btn i {
    margin-left: 8px; /* Increased space for icon */
    transition: transform 0.3s ease;
}
.read-more-btn:hover i {
    transform: translateX(3px);
}


/* Footer - Using styles from user prompt */
.footer {
    background: linear-gradient(135deg, #0ea5e9 0%, #0369a1 100%);
    color: white;
    margin-top: auto; /* Pushes footer to bottom with flex body */
    padding: 50px 30px 20px; /* Increased padding */
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); 
    gap: 40px; /* Increased gap */
    margin-bottom: 40px; /* Increased margin */
    max-width: 1200px; /* Align footer content with page content */
    margin-left: auto;
    margin-right: auto;
}

.footer-section h4 {
    font-size: 18px; /* Larger section titles */
    font-weight: 600;
    margin-bottom: 20px; 
    color: white;
    position: relative;
    padding-bottom: 10px; /* Increased padding */
}
.footer-section h4::after { /* Underline effect for titles */
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 3px; /* Thicker underline */
    background-color: rgba(255,255,255,0.7); /* Brighter underline */
}

.footer-logo {
    display: flex;
    flex-direction: column; /* Stack logo and text */
    align-items: flex-start; /* Align content (image, text) to the start of the box */
    gap: 10px;
    margin-bottom: 15px;
    padding: 15px; /* Padding inside the rounded box */
    border: 1px solid rgba(255, 255, 255, 0.25); /* Subtle border for the box */
    border-radius: 12px; /* Rounded corners for the box */
    background-color: rgba(255, 255, 255, 0.08); /* Subtle background for the box */
    max-width: 280px; /* Max width for the logo box */
}

.footer-logo-image {
    height: 50px; /* Adjusted size */
    width: auto;
    object-fit: contain;
}

.footer-logo-text {
    font-size: 22px; /* Slightly larger */
    font-weight: 700; /* Bolder */
    color: white;
    margin: 0;
}

.footer-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem; /* Consistent font size */
    margin: 0;
    line-height: 1.7;
}

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

.footer-links li {
    margin-bottom: 12px; 
}

.footer-links a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.95rem; 
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: flex; /* For icon alignment */
    align-items: center; /* For icon alignment */
    gap: 8px; /* Space between icon and text */
}

.footer-links a:hover {
    color: white;
    padding-left: 5px; /* Slight indent on hover */
}

.footer-links a i {
    width: 16px; /* Ensure icons align nicely */
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 25px; /* Increased padding */
    border-top: 1px solid rgba(255, 255, 255, 0.25); /* Slightly more visible border */
    flex-wrap: wrap; /* Allow wrapping on small screens */
    gap: 15px; /* Space between items if they wrap */
    max-width: 1200px; /* Align footer content with page content */
    margin-left: auto;
    margin-right: auto;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.9); /* Brighter text */
    font-size: 0.9rem; /* Slightly larger */
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 18px; /* Increased gap */
}

.footer-social a {
    color: rgba(255, 255, 255, 0.9); /* Brighter icons */
    font-size: 22px; /* Larger icons */
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.footer-social a:hover {
    color: white;
    transform: scale(1.15) translateY(-2px); /* Enhanced hover effect */
}

/* Responsive Design Adjustments */
@media (max-width: 992px) {
    .blog-posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .blog-page-title {
        font-size: 2.2rem;
    }
    .blog-page-subtitle {
        font-size: 1rem;
    }
    .footer-content, .footer-bottom {
        padding-left: 20px; /* Add padding for content within footer */
        padding-right: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    .header {
        padding: 15px 20px;
        flex-direction: column; 
        gap: 15px;
        align-items: center; /* Center items when stacked for the header itself */
    }
    .header nav {
        flex-wrap: wrap; /* Allow nav items to wrap */
        justify-content: center; /* Center nav items */
        gap: 10px; /* Adjust gap for wrapped items */
    }
    .header nav a {
        padding: 6px 10px; /* Adjust padding for smaller nav items */
    }
    .logo-image {
        height: 40px;
    }
    .logo-text {
        font-size: 22px;
    }

    .blog-page-title {
        font-size: 2rem;
    }
    .blog-page-subtitle {
        font-size: 0.95rem;
        margin-bottom: 30px;
    }
    .blog-posts-grid {
        grid-template-columns: 1fr; /* Single column for posts */
        gap: 25px;
    }
    .blog-post-title {
        font-size: 1.3rem;
    }

    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); 
        gap: 30px;
    }
     .footer-section {
        text-align: center; /* Center footer sections' content */
    }
    .footer-section h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-logo {
        align-items: center; /* Center logo image and text WITHIN the footer-logo box on mobile */
        margin-left: auto; /* To center the .footer-logo block itself */
        margin-right: auto; /* To center the .footer-logo block itself */
    }
     .footer-links a {
        justify-content: center; /* Center footer links with icons */
    }
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    .header {
        padding: 10px 15px;
    }
    .header nav a {
        font-size: 0.9em; /* Smaller nav links */
        padding: 5px 8px; /* Further adjust padding */
    }
    .logo-image {
        height: 35px;
    }
    .logo-text {
        font-size: 20px;
    }

    .blog-page-title {
        font-size: 1.6rem;
    }
    .blog-page-subtitle {
        font-size: 0.9rem;
    }
    .blog-post-title {
        font-size: 1.2rem;
    }
    .blog-post-excerpt {
        font-size: 0.9rem;
    }
    .read-more-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }

    .footer {
        padding: 30px 15px 15px; /* Adjust padding for smaller screens */
    }
    .footer-content, .footer-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }
    .footer-section h4 {
        font-size: 16px;
    }
    .footer-links a, .footer-description, .footer-bottom p {
        font-size: 0.85rem; /* Slightly increased for readability */
    }
    .footer-social a {
        font-size: 20px; /* Maintain social icon size */
    }
}

/* Remove styles that are not relevant to the blog or this page */
.back-btn, .page-title, .page-title.show,
.progress-container, .progress-bar,
.segment, .segment.active, .professional-info, .avatar, .avatar-icon, .info,
.speech-bubble, .speech-bubble::before,
.interactive-element, .risk-profile-test, .risk-options, .risk-option, .risk-icon,
.portfolio-simulator, #segment2 .portfolio-simulator, #segment2 .portfolio-simulator > h3,
#segment2 .portfolio-simulator > .portfolio-chart, #segment2 .portfolio-simulator .simulator-button-container,
.portfolio-chart, .chart-segment, .chart-segment::before, .bonds::before, .stocks::before, .funds::before,
@keyframes fillChart, .simulator-button-container, .simulator-btn, .simulator-btn::before, .simulator-btn::after,
.btn-icon, .btn-text, .btn-arrow, @keyframes gradientShift, @keyframes pulseGlow, @keyframes iconBounce,
.simulator-button-container::before, @keyframes floatingParticles,
.notification-center, .notification-center h3, .notifications, .notification, .notification.rebalance,
.notification.reinvest, @keyframes slideInNotification, .notification-icon, .notification-text,
.notification-link, .notification-link .notification:hover,
.video-section, .professional-video, .welcome-video,
.navigation, .nav-btn, .nav-btn:hover:not(:disabled), .nav-btn:disabled,
.segment-indicators, .indicator, .indicator.active, #professionalsNavigation, #professionalsNavigation.hidden,
.cta-section, .cta-section.show, .cta-section h2, .cta-section p, .cta-button, .cta-button:hover,
/* .welcome-section, */ .welcome-content h1, .welcome-description, .feature-highlights, .feature-item,
.feature-item:hover, .feature-icon, .feature-item h3, .feature-item p,
.navigation-buttons, .nav-button, .nav-button.primary, .nav-button.primary:hover,
.nav-button.secondary, .nav-button.secondary:hover, .button-icon,
.video-container, .video-overlay, .video-overlay h3, .video-overlay p,
.professionals-wrapper, .professionals-wrapper.hidden {
    /* display: none !important; */ /* Commented out to allow some welcome styles, adjust as needed */
}

/* Blog Article Page Specific Styles (Applied to Cookie Policy & About Us) */
.blog-article-content {
    background-color: #fff; /* White background for article area */
    border-radius: 12px; /* Softer radius */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07); /* Slightly softer shadow */
    margin-top: 20px; /* Spacing from potential elements above if any */
    margin-bottom: 30px;
    padding: 35px 40px; /* Increased padding */
}

.article-navigation {
    margin-bottom: 30px;
}

.back-to-blog-btn {
    display: inline-flex; /* Use inline-flex for icon alignment */
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: #0ea5e9;
    font-weight: 500;
    padding: 10px 15px;
    border: 1px solid #0ea5e9;
    border-radius: 6px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.back-to-blog-btn:hover {
    background-color: #0ea5e9;
    color: white;
}

.back-to-blog-btn i {
    font-size: 0.9em;
}

.blog-post-full {
}

.article-header {
    margin-bottom: 30px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 20px;
}

.article-title {
    font-size: 2.4rem; /* Slightly smaller than main blog title, but still prominent */
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 10px;
    line-height: 1.3;
    text-align: left; /* Override potential centered h1s from generic rules */
}

.article-meta {
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 20px;
}

.article-meta .author {
    font-weight: 500;
}

.article-main-image {
    width: 100%;
    max-height: 450px; /* Limit image height */
    object-fit: cover;
    border-radius: 10px; /* Softer radius */
    margin-bottom: 30px; /* Space after image, before text starts */
}

.article-body {
    font-size: 1.05rem; /* Standard text size */
    line-height: 1.8; /* Increased line height for readability */
    color: #334155;
}

.article-body p,
.article-body li {
    margin-bottom: 18px; /* Adjusted for consistency */
    text-align: justify;
}

.article-body h2 {
    font-size: 1.9rem; /* Adjusted size */
    font-weight: 600;
    color: #1e293b;
    margin-top: 40px; /* More space above H2 */
    margin-bottom: 20px; /* More space below H2 */
    padding-bottom: 10px; /* Increased padding */
    border-bottom: 2px solid #0ea5e9; /* Accent underline for H2 */
    display: inline-block; /* To make border-bottom fit content */
}

.article-body h3 {
    font-size: 1.6rem; /* Adjusted size */
    font-weight: 600;
    color: #2c3e50; /* Slightly different H3 color for variance */
    margin-top: 30px;
    margin-bottom: 15px;
}

.article-body ul,
.article-body ol {
    margin-bottom: 20px;
    padding-left: 30px; /* Indent list items */
}
.article-body ul li::marker {
    color: #0ea5e9; /* Style list bullets */
}


.article-body strong {
    font-weight: 600; /* Poppins 500 is semi-bold, 600 is bolder */
    color: #1e293b;
}

.article-body a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease, border-bottom 0.2s ease;
    border-bottom: 1px solid transparent;
}

.article-body a:hover {
    text-decoration: none;
    color: #0369a1;
    border-bottom: 1px solid #0369a1;
}

.article-body blockquote {
    border-left: 5px solid #0ea5e9; /* Thicker border */
    padding: 15px 25px; /* Added vertical padding */
    margin: 30px 0; /* Adjusted margin */
    font-style: italic;
    color: #475569;
    background-color: #f8fafc; /* Light background for quote */
    border-radius: 0 6px 6px 0; /* Slight rounding */
}
.article-body blockquote p {
    margin-bottom: 0; /* Remove bottom margin from p inside blockquote */
}

.article-body hr {
    border: 0;
    height: 1px;
    background-color: #e2e8f0; /* Lighter HR */
    margin: 40px 0; /* More spacing for HR */
}

/* Responsive adjustments for article page */
@media (max-width: 768px) {
    .blog-article-content {
        padding: 25px 20px; /* Adjusted padding */
        margin-top: 15px;
        margin-bottom: 20px;
    }
    .article-title {
        font-size: 2rem; /* Adjusted size */
    }
    .article-body h2 {
        font-size: 1.6rem; /* Adjusted size */
    }
    .article-body h3 {
        font-size: 1.4rem; /* Adjusted size */
    }
}

@media (max-width: 480px) {
    .blog-article-content {
        padding: 20px 15px; /* Adjusted padding */
    }
    .article-title {
        font-size: 1.7rem; /* Adjusted size */
    }
     .article-meta {
        font-size: 0.85rem;
    }
    .article-body {
        font-size: 1rem; /* Adjusted for readability */
    }
    .article-body h2 {
        font-size: 1.4rem; /* Adjusted size */
        margin-top: 30px;
        margin-bottom: 15px;
    }
     .article-body h3 {
        font-size: 1.25rem; /* Adjusted size */
        margin-top: 25px;
        margin-bottom: 10px;
    }
}

/* Re-integrated table styles for Cookie Policy */
.article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05); /* Subtle shadow for table */
    border-radius: 6px; /* Rounded corners for table */
    overflow: hidden; /* To make border-radius work on child th/td */
}

.article-body table th, 
.article-body table td {
    border: 1px solid #e2e8f0; /* Lighter border */
    padding: 12px 15px; /* More padding */
    text-align: left;
    vertical-align: top;
}

.article-body table th {
    background-color: #f1f5f9; /* Slightly darker header */
    color: #1e293b; /* Darker text for header */
    font-weight: 600; /* Bolder header text */
}

.article-body table tr:nth-child(even) td { /* Zebra striping for td only */
    background-color: #f8fafc; /* Consistent with body background */
}
.article-body table tr:hover td { /* Hover effect on rows */
    background-color: #eef2f7; /* Lighter hover */
}

.article-body table code {
    background-color: #e8edf3; /* Lighter code background */
    padding: 3px 6px; /* Adjusted padding */
    border-radius: 4px;
    font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
    color: #334155;
    font-size: 0.9em;
}
/* Fallback del overlay del modal (por si el shim no carga) */
.calc-modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(30,41,59,0.55);
  align-items:center;
  justify-content:center;
}
.calc-backdrop{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100vw; height:100vh;
}
.calc-card{
  box-shadow:0 12px 30px rgba(0,0,0,0.25);
}

