/* --- GENERAL & BASE STYLES --- */
body {
    font-family: 'Poppins', sans-serif; /* Default font */
    line-height: 1.7;
    margin: 0;
    background-color: #f8f9fa;
    color: #495057;
}

main {
    max-width: 900px;
    margin: auto;
    padding: 2rem;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif; /* Titles font */
    color: #003366;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #0056b3;
}

strong {
    color: #0056b3;
    font-weight: 600;
}

.blue-text {
    color: #0056b3;
    font-weight: bold;
}

/* --- HEADER --- */
header {
    background: linear-gradient(135deg, #007bff, #003366);
    color: white;
    padding: 2.5rem 1rem;
    text-align: center;
    border-bottom: 4px solid #00bfff;
    margin-bottom: 30px;
}

header .project-brand .project-name {
    font-size: 2.8em;
    font-weight: 800;
    display: block;
    margin-bottom: 0.3rem;
    color: #ffffff;
}

header .project-brand .project-tagline {
    font-size: 1.1em;
    font-weight: 400;
    color: #e1ecf7;
    display: block;
    margin-bottom: 1.5rem;
}

header h1 {
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 2.5em;
    color: white !important;
}

header .subtitle {
    margin: 0;
    font-weight: 300;
    font-size: 1.2em;
    opacity: 0.9;
}

/* --- SECTION STYLING --- */
section {
    background-color: #ffffff;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
}

section h2 {
    color: #0056b3;
    border-bottom: 3px solid #007bff;
    padding-bottom: 12px;
    margin-top: 0;
    margin-bottom: 25px;
    font-weight: 600;
    font-size: 1.8em;
}

/* --- TABLE STYLING --- */
.table-container {
    overflow-x: auto;
    margin: 20px 0;
    -webkit-overflow-scrolling: touch;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #e9ecef;
    padding: 12px 15px;
    text-align: center;
    vertical-align: middle;
}

thead {
    background-color: #007bff;
    color: #ffffff;
}

th {
    font-weight: 600;
    font-size: 1.05em;
}

tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}

tbody tr:hover {
    background-color: #e9ecef;
}

.scroll-hint {
    display: none;
    text-align: center;
    font-size: 0.9em;
    color: #6c757d;
    margin-top: 10px;
    font-style: italic;
}

/* --- LIST STYLING --- */
ul, ol {
    padding-left: 25px;
    margin-top: 15px;
}

li {
    margin-bottom: 12px;
    padding-left: 10px;
}

ul li::marker {
    color: #007bff;
    font-size: 1.2em;
}

.niveles-lista {
    list-style-type: none;
    padding-left: 0;
}
.niveles-lista li {
    background: #f8f9fa;
    border-left: 5px solid #007bff;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
}
.benefit-description {
    font-size: 0.95em;
    margin-left: 10px;
    margin-top: 8px;
    color: #555;
    padding-left: 15px;
}

/* --- BLUE VALUE HIGHLIGHT --- */
#valor-blue {
    background-color: #0056b3;
    color: #ffffff;
    text-align: center;
}
#valor-blue h2 {
    color: #ffffff;
    border-bottom: 2px solid #007bff;
    display: inline-block;
    padding-bottom: 8px;
}
.valor-grande {
    font-size: 2.8em;
    font-weight: 700;
    margin: 10px 0;
    color: #f0c419; /* Gold color */
}
.valor-grande .blue-text {
    color: inherit; /* Inherit the gold color from the parent */
}
.valor-aclaracion {
    font-size: 1em;
    opacity: 0.9;
}

/* --- PAYMENT EXAMPLES & COLLAPSIBLE --- */
.formula-wrapper {
    max-width: 600px;
    margin: 30px auto;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
}
.toggle-button {
    display: block;
    width: 100%;
    background-color: #e9ecef;
    color: #495057;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    margin-top: 20px;
    transition: background-color 0.2s ease;
}
.toggle-button:hover {
    background-color: #dee2e6;
}
.collapsible-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    margin-top: 0;
}
.collapsible-content.show {
    max-height: 1000px; /* Adjust if content is larger */
    margin-top: 15px;
}
table.priority-example td.paid {
    background-color: #d4edda;
    color: #155724;
    font-weight: bold;
}
table.priority-example td.paying {
    background-color: #fff3cd;
    color: #856404;
    font-weight: bold;
}
table.priority-example td.waiting {
    background-color: #f8d7da;
    color: #721c24;
}

.transparencia-aviso {
    margin-top: 25px;
    padding: 15px;
    background-color: #fef9e7;
    border-left: 5px solid #f1c40f;
    font-style: italic;
}

/* --- GOAL HIGHLIGHT & MODAL --- */
.goal-highlight {
    background: linear-gradient(145deg, #fff9e0, #fff3cd);
    border-radius: 10px;
    padding: 25px 30px;
    margin-top: 35px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.goal-highlight h3 {
    color: #b38600;
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 15px;
}
.info-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    margin-top: 15px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.info-button:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
}
.modal-content {
    background-color: #ffffff;
    margin: 10vh auto;
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
    animation: slide-down 0.4s ease-out;
}
@keyframes slide-down {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.close-button {
    color: #888;
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
}
.close-button:hover, .close-button:focus {
    color: #000;
    cursor: pointer;
}

/* --- CALL TO ACTION & FOOTER --- */
.cta {
    background-color: #140277;
    color: white;
    padding: 1.5rem;
    text-align: center;
    border-radius: 8px;
    margin-top: 2rem;
}

.cta h2 {
    color: white;
    border-bottom: none;
}

.cta strong {
    color: #f0f0f0; /* Match the link color for labels */
}

.cta a {
    color: #f0f0f0; /* Lighter color for better readability */
    font-weight: bold;
    text-decoration: underline; /* Add underline for better affordance */
}

.cta a:hover {
    color: #ffffff; /* Bright white on hover */
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 25px;
    border-top: 1px solid #dee2e6;
    color: #6c757d;
    background-color: #e9ecef;
}

/* --- RESPONSIVE DESIGN --- */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }
    header h1 { font-size: 2em; }
    section h2 { font-size: 1.6em; }
    
    .table-container {
        overflow-x: auto; /* Keep scroll for safety */
    }
    .table-container table {
        min-width: 0; /* Allow table to shrink */
        font-size: 0.9em; /* Slightly smaller font */
    }
    th, td {
        padding: 8px 10px; /* Reduce padding */
        word-break: break-word; /* Break long words if needed */
    }
    .scroll-hint { 
        display: none; /* Hide the hint as table should be more readable */
    }
}

@media (max-width: 480px) {
    th, td {
        padding: 6px; /* Even less padding */
        font-size: 0.85em; /* Even smaller font */
    }
}
