:root {
    --primary-blue: #0056cb;
    --primary-light: #e8f0fb;
    --secondary-blue: #0081ff;
    --navy: #003585;
    --text-dark: #1b1c1e;
    --text-mid: #555f83;
    --text-light: #FFFFFF;
    --bg-light: #f0f4fc;
    --font-stack: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

body {
    font-family: var(--font-stack);
    background-color: #FFFFFF;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}

/* Navbar */
.navbar {
    background-color: var(--navy);
    padding: 0.8rem 2rem;
    color: white;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-img {
    height: 35px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo-icon {
    width: 30px;
    height: 30px;
    background: var(--secondary-blue);
    border-radius: 50%;
}

.segment-switch {
    background: rgba(255,255,255,0.15);
    border-radius: 20px;
    padding: 2px;
    display: flex;
}

.segment-btn {
    padding: 0.3rem 1rem;
    border-radius: 18px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.segment-btn.active {
    background: white;
    color: var(--navy);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.btn-login {
    background: white;
    color: var(--primary-blue);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: box-shadow 0.2s;
}

.btn-login:hover {
    box-shadow: 0 4px 12px rgba(0,53,133,0.3);
}

/* Header */
header {
    background: linear-gradient(135deg, #dce8fb 0%, #b8d0f5 100%);
    border-radius: 0 0 30px 30px;
    padding-top: 4rem;
    padding-bottom: 0;
    position: relative;
    overflow: hidden;
    height: 500px;
    display: flex;
    align-items: center;
}

.header-container {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem;
    height: 100%;
}

.header-content {
    flex: 1;
    max-width: 45%;
    z-index: 2;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

.header-subtitle {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    color: var(--primary-blue);
}

.header-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: var(--navy);
    line-height: 1.1;
    letter-spacing: -1px;
}

.header-desc {
    font-size: 1.1rem;
    color: var(--text-mid);
}

.header-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    position: relative;
    max-width: 50%;
    height: 100%;
}

.header-image img {
    width: auto;
    max-height: 90%;
    object-fit: contain;
    margin-bottom: -1rem;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
}

/* Info Section */
.info-section {
    display: flex;
    gap: 4rem;
    background-color: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 4rem;
}

.info-image {
    flex: 1;
    min-height: 400px;
}

.info-image img {
    width: 100%;
    height: auto;
    min-height: 100%;
    object-fit: cover;
    border-radius: 20px 0 0 20px;
}

.footer-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.info-content {
    flex: 1;
    padding: 3rem 2rem 3rem 0;
}

.info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.info-header h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.btn-primary {
    background: linear-gradient(180deg, var(--secondary-blue), var(--primary-blue));
    color: var(--text-light);
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: box-shadow 0.2s;
}

.btn-primary:hover {
    box-shadow: 0 4px 16px rgba(0,86,203,0.35);
}

.tabs {
    display: flex;
    gap: 2rem;
    border-bottom: 1px solid #ddd;
    margin-bottom: 2rem;
}

.tab {
    padding-bottom: 1rem;
    cursor: pointer;
    font-weight: 600;
    color: #666;
    border-bottom: 2px solid transparent;
}

.tab.active {
    color: var(--primary-blue);
    border-bottom: 2px solid var(--primary-blue);
}

.tab-content p {
    margin-bottom: 1rem;
    color: #555;
    font-size: 0.95rem;
}

.value-box {
    background-color: var(--primary-light);
    border-left: 4px solid var(--primary-blue);
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.value-label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
}

.value-amount {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary-blue);
    letter-spacing: -1px;
}

/* Confirmation Section */
.confirmation-section {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.confirmation-section h2 {
    font-size: 1.8rem;
    font-weight: 700;
}

.confirmation-text p {
    margin-bottom: 1.5rem;
    color: #444;
}

/* Verification Section */
.verification-section {
    margin-bottom: 6rem;
}

.verification-heading {
    margin-bottom: 3rem;
}

.verification-heading h2 {
    font-size: 2rem;
    font-weight: 700;
    max-width: 400px;
}

.verification-cards {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,86,203,0.07);
    border: 1px solid #dce8fb;
}

.card-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card p,
.card a {
    font-size: 0.85rem;
    color: #666;
    text-decoration: none;
}

.card a {
    color: var(--primary-blue);
    font-weight: 500;
}

.requirements-list {
    margin-top: 3rem;
    padding-left: 0;
    list-style: none;
}

.requirements-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.requirements-list li::before {
    content: "•";
    color: var(--primary-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Footer Banner */
.footer-banner {
    background: linear-gradient(135deg, var(--primary-blue), var(--navy));
    border-radius: 20px;
    color: white;
    display: flex;
    overflow: hidden;
    min-height: 400px;
}

.footer-content {
    flex: 1;
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.footer-content h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.footer-btn {
    background-color: white;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    align-self: flex-start;
    transition: box-shadow 0.2s;
}

.footer-btn:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.footer-image {
    flex: 1;
    position: relative;
}

/* Responsive */
@media (max-width: 900px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding-bottom: 0.5rem;
    }

    .nav-left,
    .nav-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-link {
        display: none;
    }

    .btn-login {
        width: 100%;
        text-align: center;
    }

    header {
        height: auto;
        min-height: auto;
        padding-top: 4rem;
        padding-bottom: 0;
        border-radius: 0 0 25px 25px;
    }

    .header-container {
        flex-direction: row;
        text-align: left;
        align-items: center;
        height: auto;
        min-height: 450px;
        padding: 0 1rem;
        gap: 0;
        overflow: hidden;
    }

    .header-content {
        flex: 0 0 55%;
        width: 55%;
        margin-bottom: 0;
        padding-right: 0;
        z-index: 3;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding-bottom: 2rem;
    }

    .header-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        line-height: 1.05;
        margin-bottom: 0.8rem;
        text-align: left;
    }

    .header-desc {
        font-size: 1rem;
        text-align: left;
        line-height: 1.4;
        margin-bottom: 1.5rem;
    }

    .header-content .btn-primary {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin-top: 1rem !important;
        align-self: flex-start;
    }

    .header-image {
        flex: 0 0 45%;
        width: 45%;
        position: relative;
        right: -10px;
        height: 350px;
        margin-top: -2rem;
        display: flex;
        align-items: flex-end;
        justify-content: flex-end;
        overflow: visible;
    }

    .header-image img {
        width: auto;
        height: 120%;
        max-width: none;
        margin-right: -20rem;
        margin-bottom: 0;
        object-fit: contain;
        object-position: bottom right;
    }

    main {
        margin: 0 auto;
        padding: 0 1rem;
    }

    .info-section {
        flex-direction: column;
        gap: 0;
    }

    .info-image {
        width: 100%;
        min-height: 250px;
        order: -1;
    }

    .info-image img {
        border-radius: 20px 20px 0 0;
    }

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

    .info-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .tabs {
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .tab {
        white-space: nowrap;
    }

    .confirmation-section {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .verification-section {
        margin-bottom: 3rem;
    }

    .verification-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

    .verification-heading h2 {
        max-width: 100%;
        text-align: center;
        font-size: 1.8rem;
    }

    .footer-banner {
        flex-direction: column;
        min-height: auto;
    }

    .footer-content {
        padding: 2rem;
        text-align: center;
        align-items: center;
    }

    .footer-btn {
        align-self: center;
    }

    .footer-image {
        height: 250px;
    }
}

/* Blue Footer */
.blue-footer {
    background-color: var(--navy);
    color: white;
    padding: 4rem 1rem 6rem 1rem;
    position: relative;
    font-size: 0.9rem;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    transition: opacity 0.2s;
}

.footer-col a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: white;
    font-size: 1.2rem;
    transition: opacity 0.2s;
}

.social-icons a:hover {
    opacity: 0.8;
}

.footer-legal-section {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.footer-select {
    border: 1px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
    min-width: 200px;
}

.legal-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.vigilado-container img {
    height: 40px;
    width: auto;
}

.aval-logo {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1);
}

@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

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

    .social-icons {
        justify-content: center;
    }
}

/* Floating Help Button */
.help-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--secondary-blue);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0,86,203,0.3);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 1000;
    font-size: 0.95rem;
    transition: box-shadow 0.2s;
}

.help-btn:hover {
    box-shadow: 0 6px 16px rgba(0,86,203,0.4);
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,53,133,0.45);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: white;
    width: 90%;
    max-width: 450px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,53,133,0.25);
    overflow: hidden;
    animation: slideUp 0.3s;
    font-family: var(--font-stack);
}

.modal-header {
    background-color: var(--primary-light);
    padding: 1.2rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #dce8fb;
}

.modal-header h3 {
    font-size: 1.1rem;
    color: var(--navy);
    margin: 0;
    font-weight: 700;
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-mid);
}

.modal-body {
    padding: 2rem 1.5rem;
    text-align: center;
}

.modal-icon {
    margin-bottom: 1rem;
    display: flex;
    justify-content: center;
}

.modal-icon img {
    height: 60px;
    width: auto;
    object-fit: contain;
}

.modal-amount {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-blue);
    margin: 1rem 0;
}

.modal-note {
    font-size: 0.85rem;
    color: #888;
    margin-top: 1rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background-color: #fff;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.btn-secondary {
    padding: 0.8rem 1.5rem;
    border: 1.5px solid var(--primary-blue);
    background: white;
    color: var(--primary-blue);
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font-stack);
}

.btn-secondary:hover {
    background: var(--primary-light);
}

.btn-confirm {
    padding: 0.8rem 1.5rem;
    border: none;
    background: linear-gradient(180deg, var(--secondary-blue), var(--primary-blue));
    color: white;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: box-shadow 0.2s;
    flex: 1;
    font-family: var(--font-stack);
}

.btn-confirm:hover {
    box-shadow: 0 4px 12px rgba(0,86,203,0.35);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
