:root {
    --c-yellow: #FFCD00;
    --c-blue: #003087;
    --c-red: #C8102E;
    
    --bg-white: #ffffff;
    --text-dark: #1a1a1a;
    --text-gray: #666666;
    --border-gray: #e0e0e0;
    
    --font-headline: 'Anton', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Caveat', cursive;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Decorative Background Wrapper */
.decorative-bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Right Background Photo Layer */
.right-bg-photo {
    position: fixed;
    top: 0;
    right: 0;
    width: 60vw;
    height: 100vh;
    background-image: url('assets/colombia-background.jpg');
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: -2;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 70%);
    mask-image: linear-gradient(to right, transparent 0%, black 70%);
}

@media (max-width: 767px) {
    .right-bg-photo {
        width: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 50%, black 100%);
        mask-image: linear-gradient(to right, transparent 0%, transparent 50%, black 100%);
        opacity: 0.25;
    }
    .top-right {
        /* Revert to default */
        right: 20px;
        width: auto;
        gap: 15px;
    }
    .campaign-hashtag {
        position: absolute;
        top: 50px;
        right: -20px;
        width: 100vw;
        text-align: center;
        margin: 0;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .right-bg-photo {
        width: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40%, black 100%);
        mask-image: linear-gradient(to right, transparent 0%, black 40%, black 100%);
        opacity: 0.4;
    }
}

/* Vertical Ribbon */
.ribbon-vertical-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 100vh;
    object-fit: cover;
    object-position: right center;
    mix-blend-mode: multiply;
}
@media (min-width: 768px) {
    .ribbon-vertical-left {
        width: 450px;
    }
}

@media (orientation: landscape) and (max-height: 500px) {
    .ribbon-vertical-left {
        width: 200px;
    }
    .right-bg-photo {
        width: 100%;
        -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 50%, black 100%);
        mask-image: linear-gradient(to right, transparent 0%, transparent 50%, black 100%);
        opacity: 0.25;
    }
}

/* Top Right Language Selector */
.top-right {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    gap: 15px;
    align-items: center;
}
button.custom-lang-selector {
    border: none;
    font-family: inherit;
}
.campaign-hashtag {
    color: var(--c-blue);
    font-weight: 700;
    font-size: 0.95rem;
    margin-right: 10px;
}
.custom-lang-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--c-blue);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    background: transparent;
    transition: background 0.2s;
}
.custom-lang-selector:hover, .custom-lang-selector.open {
    background: rgba(0, 48, 135, 0.05);
}
.globe-icon, .chevron-icon {
    width: 20px;
    height: 20px;
}
.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 5px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: none;
    flex-direction: column;
    min-width: 120px;
    overflow: hidden;
}
.lang-dropdown.open {
    display: flex;
}
.lang-option {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: background 0.2s;
}
.lang-option:hover {
    background: rgba(0, 48, 135, 0.1);
    color: var(--c-blue);
}

.share-option {
    padding: 10px 15px;
    cursor: pointer;
    color: var(--text-dark);
    font-size: 0.9rem;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 10px;
}
.share-option:hover {
    background: rgba(0, 48, 135, 0.1);
    color: var(--c-blue);
}

/* Main Container */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 15;
}

/* Header Section */
.campaign-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 60px; /* More breathing room */
    width: 100%; /* Prevents layout shifting when text width changes */
}
.heart-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 30px; /* More breathing room */
}
.headline {
    font-family: var(--font-headline);
    font-size: clamp(4rem, 10vw, 8rem);
    line-height: 1.05;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.headline div {
    /* Words are visually separated by colors, so they can be compact */
}
.headline div:last-child {
    margin-bottom: 0;
}

/* Precise Color Cuts */
.line-together {
    color: var(--c-yellow);
}

.line-for {
    background: linear-gradient(to bottom, var(--c-yellow) 0%, var(--c-yellow) 66.66%, var(--c-blue) 66.66%, var(--c-blue) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
}

.line-colombia {
    background: linear-gradient(to bottom, var(--c-blue) 0%, var(--c-blue) 33.33%, var(--c-red) 33.33%, var(--c-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent; /* Fallback */
}

.subtitle {
    font-family: var(--font-script);
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--c-blue);
    margin-top: 10px;
}

/* Donation Counter */
.donation-counter {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.raised-amount-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}
.raised-value {
    font-size: 4rem;
    font-weight: 700;
    color: var(--c-blue);
    line-height: 1;
}
.raised-label {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-top: 5px;
}
.raised-label strong {
    color: var(--c-red);
}

.progress-bar-bg {
    width: 100%;
    height: 16px;
    background-color: #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
    border: 1px solid var(--border-gray);
}
.progress-bar-fill {
    height: 100%;
    background-color: var(--c-yellow);
    transition: width 1s ease-out;
}

.stats-row {
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}
.stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
}
.stat-icon {
    width: 32px;
    height: 32px;
    color: var(--text-gray);
}
.stat-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}
.stat-text strong {
    font-size: 1.2rem;
    color: var(--c-blue);
}
.stat-text span {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.donate-btn {
    background-color: var(--c-red);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 16px 40px;
    font-size: 1.4rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(200, 16, 46, 0.3);
}
.donate-btn:hover {
    background-color: #a80d26;
}
.donate-btn:active {
    transform: translateY(2px);
}
.donate-btn svg {
    width: 24px;
    height: 24px;
}
.secure-donation {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-gray);
}

/* Explanation Section */
.explanation-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 60px;
    text-align: left;
    gap: 30px;
}
@media (min-width: 768px) {
    .explanation-section {
        flex-direction: row;
        align-items: center;
    }
}
.explanation-text {
    flex: 1;
}
.explanation-text h2 {
    color: var(--c-blue);
    font-size: 1.8rem;
    margin-bottom: 15px;
}
.explanation-text p {
    margin-bottom: 15px;
    color: var(--text-gray);
}
.explanation-text strong {
    color: var(--text-dark);
}
.explanation-images {
    flex: 1.5;
    display: flex;
    gap: 10px;
    height: 250px;
}
.img-placeholder {
    flex: 1;
    background-color: #f5f5f5;
    border-radius: 4px;
    transform: skewX(-10deg);
    overflow: hidden;
    position: relative;
}
.img-placeholder img {
    position: absolute;
    top: 0;
    left: -15%;
    width: 130%;
    height: 100%;
    object-fit: cover;
    transform: skewX(10deg);
    display: block;
}


/* Transparency Section */
.transparency-section {
    width: 100%;
    border: 1px solid var(--border-gray);
    border-radius: 8px;
    margin-bottom: 60px;
    background: #fff;
}
.transparency-box {
    display: flex;
    flex-direction: column;
}
@media (min-width: 768px) {
    .transparency-box {
        flex-direction: row;
    }
}
.transparency-col {
    flex: 1;
    padding: 30px;
    display: flex;
    gap: 20px;
    text-align: left;
}
.transparency-col:first-child {
    border-bottom: 1px solid var(--border-gray);
}
@media (min-width: 768px) {
    .transparency-col:first-child {
        border-bottom: none;
        border-right: 1px solid var(--border-gray);
    }
}
.t-icon {
    width: 60px;
    height: 60px;
    color: var(--c-blue);
    flex-shrink: 0;
}
.transparency-col:last-child .t-icon {
    color: var(--c-red);
}
.transparency-col h3 {
    font-size: 3rem;
    line-height: 1;
    color: var(--c-blue);
    margin-bottom: 5px;
}
.transparency-col:last-child h3 {
    color: var(--c-red);
}
.transparency-col strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.transparency-col p {
    font-size: 0.9rem;
    color: var(--text-gray);
}

.transparency-footer {
    padding: 15px;
    background-color: #f9f9f9;
    border-top: 1px solid var(--border-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 600;
}
.transparency-footer svg {
    width: 20px;
    height: 20px;
    color: var(--c-blue);
}


/* Partner Section */
.partner-section {
    width: 100%;
    margin-bottom: 60px;
}
.partner-label {
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-dark);
}
.partner-placeholder {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 20px 40px;
    border: 1px dashed var(--border-gray);
    border-radius: 4px;
    color: #999;
    font-weight: 600;
    text-align: left;
    background: #fafafa;
}
.partner-placeholder svg {
    width: 40px;
    height: 40px;
}


/* Trust Section */
.trust-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 60px;
    border-top: 1px solid var(--border-gray);
    padding-top: 40px;
}
@media (min-width: 768px) {
    .trust-section {
        flex-direction: row;
        justify-content: space-between;
    }
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
    flex: 1;
}
@media (min-width: 768px) {
    .trust-item:not(:last-child) {
        border-right: 1px solid var(--border-gray);
        padding-right: 20px;
    }
}
.trust-item svg {
    width: 32px;
    height: 32px;
    color: var(--c-blue);
    flex-shrink: 0;
}
.trust-item strong {
    display: block;
    font-size: 0.9rem;
    color: var(--c-blue);
}
.trust-item p {
    font-size: 0.8rem;
    color: var(--text-gray);
}

/* Footer Legal */
.site-footer {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding-top: 20px;
    position: relative;
    z-index: 100;
}
.site-footer a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.85rem;
}
.site-footer a:hover {
    text-decoration: underline;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.15);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    padding: 40px;
    border-radius: 8px;
    color: var(--text-dark);
    max-width: 600px;
    width: 90%;
    text-align: center;
    position: relative;
    color: var(--text-dark);
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

/* --- MOBILE PORTRAIT FIXES ONLY --- */
@media (max-width: 1024px) and (orientation: portrait) {
    /* A. Social Icons Fix */
    .top-right {
        top: 15px;
        right: 10px;
        left: 10px;
        gap: 4px;
        justify-content: flex-end;
        flex-wrap: nowrap;
    }
    .top-right button.custom-lang-selector {
        padding: 8px 6px;
    }
    .top-right > div#custom-lang-selector {
        padding: 8px 10px;
        margin-left: 6px;
    }

    /* B. Earthquake Photos Fix */
    .explanation-section {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .explanation-text {
        width: 100% !important;
        padding-right: 0 !important;
    }
    .explanation-images {
        height: auto !important;
        min-height: 120px !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 15px !important;
        margin-top: 20px !important;
        z-index: 2;
    }
    .img-placeholder {
        transform: none !important;
        border-radius: 12px !important;
        height: 200px !important;
        width: 100% !important;
        position: relative !important;
        overflow: hidden !important;
        flex: none !important;
    }
    .img-placeholder img {
        transform: none !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block !important;
    }

}
