/**
 * Esperanza Sin Fronteras - Main Stylesheet
 * Brand Colors: Blue #004B8D, Orange #E85D1C, Green #20532C
 */

/* ========================================
   CSS VARIABLES & RESET
   ======================================== */
:root {
    /* Brand Colors */
    --color-blue: #004b8d;
    --color-blue-dark: #003a6e;
    --color-blue-light: #0066b3;
    --color-orange: #e85d1c;
    --color-orange-dark: #c94d15;
    --color-orange-light: #ff7a3d;
    --color-green: #20532c;
    --color-green-dark: #183f22;
    --color-green-light: #2a6b39;

    /* Neutral Colors */
    --color-white: #ffffff;
    --color-light: #f8fafc;
    --color-gray-100: #f1f5f9;
    --color-gray-200: #e2e8f0;
    --color-gray-300: #cbd5e1;
    --color-gray-400: #94a3b8;
    --color-gray-500: #64748b;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1e293b;
    --color-gray-900: #0f172a;
    --color-black: #000000;

    /* Typography */
    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        sans-serif;
    --font-display: "Outfit", var(--font-primary);

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --spacing-4xl: 6rem;

    /* Border Radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow-blue: 0 0 30px rgba(0, 75, 141, 0.3);
    --shadow-glow-orange: 0 0 30px rgba(232, 93, 28, 0.3);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Container */
    --container-max: 1280px;
    --container-padding: 1.5rem;
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--color-gray-800);
    background-color: var(--color-white);
    overflow-x: hidden;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
    margin-bottom: var(--spacing-md);
}

/* ========================================
   UTILITIES
   ======================================== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--spacing-4xl) 0;
}

.section--dark {
    background: var(--color-gray-900);
    color: var(--color-white);
}

.section--blue {
    background: linear-gradient(135deg,
            var(--color-blue) 0%,
            var(--color-blue-dark) 100%);
    color: var(--color-white);
}

.section--gradient {
    background: linear-gradient(135deg,
            var(--color-blue) 0%,
            var(--color-green) 100%);
    color: var(--color-white);
}

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

.text-gradient {
    background: linear-gradient(135deg,
            var(--color-orange) 0%,
            var(--color-orange-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn--primary {
    background: linear-gradient(135deg,
            var(--color-orange) 0%,
            var(--color-orange-light) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md), var(--shadow-glow-orange);
}

.btn--primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(232, 93, 28, 0.4);
}

.btn--secondary {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

.btn--secondary:hover {
    background: var(--color-white);
    color: var(--color-blue);
}

.btn--blue {
    background: linear-gradient(135deg,
            var(--color-blue) 0%,
            var(--color-blue-light) 100%);
    color: var(--color-white);
    box-shadow: var(--shadow-md), var(--shadow-glow-blue);
}

.btn--blue:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl), 0 0 40px rgba(0, 75, 141, 0.4);
}

.btn--small {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.875rem;
}

/* ========================================
   HEADER / NAVIGATION
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--spacing-md) 0;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.header__logo img {
    height: 50px;
    width: auto;
}

.header__logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-blue);
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-xl);
    margin-left: auto;
    /* Force right alignment */
}

.nav__list {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav__link {
    font-weight: 500;
    color: var(--color-gray-700);
    position: relative;
    padding: var(--spacing-xs) 0;
}

.nav__link::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-orange);
    transition: width var(--transition-base);
}

.nav__link:hover,
.nav__link.active {
    color: var(--color-blue);
}

.nav__link:hover::after,
.nav__link.active::after {
    width: 100%;
}

.nav__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    background: var(--color-gray-100);
    border-radius: var(--radius-full);
    padding: 3px;
}

.lang-switcher__btn {
    padding: var(--spacing-xs) var(--spacing-sm);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    color: var(--color-gray-600);
    transition: all var(--transition-fast);
}

.lang-switcher__btn.active {
    background: var(--color-white);
    color: var(--color-blue);
    box-shadow: var(--shadow-sm);
}

.lang-switcher__btn:hover:not(.active) {
    color: var(--color-blue);
}

.header.hide-up {
    transform: translateY(-100%);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
    margin-left: auto;
    /* Push to right since logo is gone */
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-gray-800);
    transition: all var(--transition-fast);
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--color-white);
        padding: var(--spacing-xl);
        flex-direction: column;
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition-base);
    }

    .nav.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__list {
        flex-direction: column;
        width: 100%;
        text-align: center;
    }

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

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-gray-900);
}

.hero__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg,
            rgba(0, 75, 141, 0.8) 0%,
            rgba(32, 83, 44, 0.7) 50%,
            rgba(0, 75, 141, 0.6) 100%);
}

.hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: var(--spacing-xl);
    max-width: 900px;
}

.hero__logo {
    width: 200px;
    height: auto;
    margin: 0 auto var(--spacing-xl);
    animation: floatIn 1s ease-out;
}

.hero__title {
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    animation: fadeInUp 1s ease-out 0.2s backwards;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__title .highlight {
    color: var(--color-orange);
}

.hero__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-2xl);
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.hero__buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s backwards;
}

.hero__scroll {
    position: absolute;
    bottom: var(--spacing-2xl);
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.hero__scroll-icon {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-icon span {
    width: 6px;
    height: 10px;
    background: var(--color-white);
    border-radius: var(--radius-full);
    animation: scrollDown 1.5s infinite;
}

/* ========================================
   ABOUT SECTION
   ======================================== */
.about {
    background: var(--color-light);
}

.about__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.about__header h2 {
    margin-bottom: var(--spacing-md);
}

.about__header p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.about__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
}

.about__card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.about__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg,
            var(--color-blue),
            var(--color-orange),
            var(--color-green));
}

.about__card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.about__card-icon {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: var(--spacing-lg);
}

.about__card-icon--blue {
    background: rgba(0, 75, 141, 0.1);
    color: var(--color-blue);
}

.about__card-icon--orange {
    background: rgba(232, 93, 28, 0.1);
    color: var(--color-orange);
}

.about__card-icon--green {
    background: rgba(32, 83, 44, 0.1);
    color: var(--color-green);
}

.about__card h3 {
    margin-bottom: var(--spacing-md);
}

.about__card p {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ========================================
   SERVICES SECTION
   ======================================== */
.services__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.services__header h2 {
    margin-bottom: var(--spacing-md);
}

.services__subtitle {
    font-size: 1.25rem;
    color: var(--color-gray-600);
}

.services__highlight {
    display: inline-block;
    background: linear-gradient(135deg,
            var(--color-orange),
            var(--color-orange-light));
    color: var(--color-white);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-full);
    font-weight: 600;
    margin-top: var(--spacing-md);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-xl);
}

.service-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.service-card__image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-card__image::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.service-card__content {
    background: var(--color-white);
    padding: var(--spacing-xl);
}

.service-card__icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    margin-top: -50px;
    position: relative;
    z-index: 10;
    box-shadow: var(--shadow-md);
}

.service-card__icon--health {
    background: linear-gradient(135deg,
            var(--color-orange),
            var(--color-orange-light));
    color: var(--color-white);
}

.service-card__icon--education {
    background: linear-gradient(135deg,
            var(--color-blue),
            var(--color-blue-light));
    color: var(--color-white);
}

.service-card__icon--infrastructure {
    background: linear-gradient(135deg,
            var(--color-green),
            var(--color-green-light));
    color: var(--color-white);
}

.service-card h3 {
    margin-bottom: var(--spacing-sm);
}

.service-card p {
    color: var(--color-gray-600);
    margin-bottom: 0;
}

/* ========================================
   SPONSOR SECTION
   ======================================== */
.sponsor {
    background: linear-gradient(135deg,
            rgba(0, 75, 141, 0.05) 0%,
            rgba(32, 83, 44, 0.05) 100%);
}

.sponsor__inner {
    position: relative;
}

.sponsor__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.sponsor__header h2 {
    margin-bottom: var(--spacing-md);
}

.sponsor__header p {
    font-size: 1.25rem;
    color: var(--color-gray-600);
    max-width: 700px;
    margin: 0 auto;
}

.sponsor__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

@media (max-width: 992px) {
    .sponsor__grid {
        grid-template-columns: 1fr;
    }
}

.sponsor__info-card {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(32, 83, 44, 0.1);
}

.sponsor__info-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--spacing-lg);
}

.sponsor__info-card h3 {
    color: var(--color-green);
    margin-bottom: var(--spacing-lg);
}

.sponsor__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sponsor__list li {
    padding: var(--spacing-md) 0;
    border-bottom: 1px solid var(--color-gray-100);
    color: var(--color-gray-700);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.sponsor__list li::before {
    content: "✓";
    color: var(--color-green);
    font-weight: 700;
}

.sponsor__list li:last-child {
    border-bottom: none;
}

.sponsor__form-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    box-shadow: var(--shadow-lg);
}

.sponsor__form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.sponsor__form .form-group label {
    color: var(--color-gray-700);
    font-weight: 500;
}

.sponsor__form .form-input {
    background: var(--color-gray-50);
    border: 2px solid var(--color-gray-200);
    color: var(--color-gray-900);
}

.sponsor__form .form-input::placeholder {
    color: var(--color-gray-400);
}

.sponsor__form .form-input:focus {
    border-color: var(--color-green);
    background: var(--color-white);
}

.radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-sm);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-sm) var(--spacing-md);
    border: 2px solid var(--color-gray-200);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.radio-option:hover {
    border-color: var(--color-green);
}

.radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-green);
}

.radio-option input[type="radio"]:checked+span {
    color: var(--color-green);
    font-weight: 600;
}

.radio-option span {
    font-size: 0.95rem;
}

/* ========================================
   DONATE SECTION
   ======================================== */
.donate {
    background: linear-gradient(135deg,
            var(--color-gray-900) 0%,
            var(--color-gray-800) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.donate::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.donate__inner {
    position: relative;
    z-index: 10;
}

.donate__header {
    text-align: center;
    margin-bottom: var(--spacing-3xl);
}

.donate__header h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.donate__header p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
}

.donate__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: start;
}

@media (max-width: 992px) {
    .donate__grid {
        grid-template-columns: 1fr;
    }
}

.donate-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
}

.donate-card__title {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.donate-card__title h3 {
    color: var(--color-white);
    margin: 0;
}

.donate-card__icon {
    font-size: 2rem;
}

.wallet-box {
    background: rgba(0, 0, 0, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.wallet-box__label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--spacing-sm);
}

.wallet-box__address {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
}

.wallet-box__address code {
    font-family: "Monaco", "Courier New", monospace;
    font-size: 0.875rem;
    word-break: break-all;
    flex: 1;
}

.wallet-box__copy {
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--color-orange);
    color: var(--color-white);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.wallet-box__copy:hover {
    background: var(--color-orange-dark);
}

.wallet-box__copy.copied {
    background: var(--color-green);
}

.networks {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.network-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.1);
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
}

.network-badge__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.network-badge__dot--bep20 {
    background: #f3ba2f;
}

.network-badge__dot--uni2 {
    background: #627eea;
}

/* Hash Form */
.hash-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.form-group label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
}

.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    color: var(--color-white);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-input:focus {
    outline: none;
    border-color: var(--color-orange);
    background: rgba(255, 255, 255, 0.1);
}

/* Fix: select dropdown needs dark background so options are readable */
select.form-input {
    background-color: var(--color-gray-800);
    color: var(--color-white);
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='white' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

select.form-input option {
    background: var(--color-gray-800);
    color: var(--color-white);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

@media (max-width: 576px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* Impact Box */
.impact-box {
    background: linear-gradient(135deg,
            var(--color-orange),
            var(--color-orange-light));
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl);
    text-align: center;
    margin-top: var(--spacing-xl);
}

.impact-box__amount {
    font-size: 3rem;
    font-weight: 700;
    font-family: var(--font-display);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.impact-box__label {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: var(--spacing-lg);
    display: block;
}

.impact-box__text {
    font-size: 1.125rem;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter {
    background: linear-gradient(135deg,
            var(--color-blue) 0%,
            var(--color-green) 100%);
}

.newsletter__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: var(--color-white);
    margin-bottom: var(--spacing-md);
}

.newsletter p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.newsletter__form {
    display: flex;
    gap: var(--spacing-md);
}

@media (max-width: 576px) {
    .newsletter__form {
        flex-direction: column;
    }
}

.newsletter__input {
    flex: 1;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.newsletter__input:focus {
    outline: none;
    border-color: var(--color-orange);
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--spacing-4xl) 0 var(--spacing-xl);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-3xl);
}

@media (max-width: 992px) {
    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer__grid {
        grid-template-columns: 1fr;
    }
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.footer__logo img {
    height: 60px;
}

.footer__logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.25rem;
}

.footer__description {
    color: var(--color-gray-400);
    line-height: 1.8;
}

.footer__column h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-lg);
    font-size: 1rem;
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.footer__links a {
    color: var(--color-gray-400);
    transition: color var(--transition-fast);
}

.footer__links a:hover {
    color: var(--color-orange);
}

.footer__social {
    display: flex;
    gap: var(--spacing-md);
}

.footer__social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.footer__social-link:hover {
    background: var(--color-orange);
    transform: translateY(-3px);
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--spacing-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer__copyright {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer__legal {
    display: flex;
    gap: var(--spacing-lg);
}

.footer__legal a {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.footer__legal a:hover {
    color: var(--color-orange);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scrollDown {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   GALLERY (Images Section)
   ======================================== */
.gallery {
    background: var(--color-light);
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--spacing-md);
}

.gallery__item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery__item img,
.gallery__item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-base);
}

.gallery__item:hover img,
.gallery__item:hover video {
    transform: scale(1.1);
}

.gallery__item--video::before {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    opacity: 0.8;
    pointer-events: none;
    transition: all 0.3s;
}

.gallery__item--video:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

.gallery__item:hover img {
    transform: scale(1.1);
}

.gallery__item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery__item:hover::after {
    opacity: 1;
}

/* ========================================
   LOADING SPINNER
   ======================================== */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-gray-200);
    border-top-color: var(--color-orange);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.toast {
    position: fixed;
    bottom: var(--spacing-xl);
    right: var(--spacing-xl);
    background: var(--color-gray-900);
    color: var(--color-white);
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    transform: translateY(100px);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 9999;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.toast--success {
    background: var(--color-green);
}

.toast--error {
    background: #dc2626;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-white);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--spacing-xl);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner__content p {
    margin: 0;
    color: var(--color-gray-800);
    font-size: 0.95rem;
}

.cookie-banner__actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    flex-shrink: 0;
}

.cookie-banner__link {
    color: var(--color-gray-600);
    text-decoration: underline;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.cookie-banner__link:hover {
    color: var(--color-blue);
}

@media (max-width: 768px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: var(--spacing-lg);
    }

    .cookie-banner__actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Lightbox Gallery */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 2rem;
    backdrop-filter: blur(5px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox__content {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    object-fit: contain;
    /* Ensures images/videos don't stretch */
}

.lightbox.active .lightbox__content {
    transform: scale(1);
}

.lightbox__close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2001;
    line-height: 1;
}

.lightbox__close:hover {
    color: var(--color-orange);
}

.gallery__item {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery__item:hover {
    transform: scale(1.02);
}

/* ========================================
   MOBILE RESPONSIVE FIXES
   Prevents overflow on all screen sizes
   ======================================== */

/* Global overflow prevention */
html,
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Ensure all elements respect container */
*,
*::before,
*::after {
    max-width: 100%;
}

/* Text overflow handling */
h1,
h2,
h3,
h4,
h5,
h6,
p,
span,
a,
li,
td,
th,
label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

/* Code blocks should scroll instead of overflow */
code,
pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

/* Tables responsive */
table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

/* Images always fit */
img,
video,
iframe,
embed,
object {
    max-width: 100%;
    height: auto;
}

/* === SMALL PHONES (< 400px) === */
@media (max-width: 400px) {
    :root {
        --container-padding: 1rem;
    }

    .section {
        padding: var(--spacing-2xl) 0;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
        width: 100%;
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
        padding: 0 var(--spacing-md);
    }

    .hero__buttons .btn {
        width: 100%;
    }

    .hero__logo {
        width: 120px;
    }

    .wallet-box {
        padding: var(--spacing-md);
    }

    .wallet-box__copy {
        font-size: 0.9rem;
        padding: 0.75rem 1rem !important;
    }

    .footer__grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer__column {
        text-align: center;
    }

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

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

    .network-badge {
        font-size: 0.75rem;
        padding: var(--spacing-xs) var(--spacing-sm);
    }
}

/* === MEDIUM PHONES (400px - 576px) === */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero__content {
        padding: var(--spacing-md);
    }

    .hero__subtitle {
        font-size: 1rem;
    }

    .about__card {
        padding: var(--spacing-lg);
    }

    .service-card__content {
        padding: var(--spacing-lg);
    }

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

    .donate-card {
        padding: var(--spacing-lg);
    }

    .newsletter__form {
        flex-direction: column;
    }

    .newsletter__form input,
    .newsletter__form button {
        width: 100%;
    }

    .sponsor__form {
        padding: var(--spacing-lg);
    }

    .form-row {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    /* Gallery 2 columns on small phones */
    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }

    /* Footer social icons */
    .footer__social {
        justify-content: center;
    }

    /* Cookie banner */
    .cookie-banner {
        padding: var(--spacing-md);
    }

    .cookie-banner__content p {
        font-size: 0.85rem;
    }
}

/* === TABLETS (576px - 768px) === */
@media (max-width: 768px) {
    .sponsor__grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Hash form responsive */
    .hash-form {
        padding: var(--spacing-lg);
    }

    .hash-form input,
    .hash-form button {
        width: 100%;
    }

    /* Networks badges wrap */
    .networks {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* === FIX SPECIFIC OVERFLOW ISSUES === */

/* Wallet box - prevent long addresses from overflowing */
.wallet-box__address code {
    font-size: 0.7rem;
    word-break: break-all;
}

/* Donation cards */
.donate-card {
    overflow: hidden;
}

/* Services grid - ensure cards don't overflow */
.service-card {
    overflow: hidden;
    max-width: 100%;
}

/* About cards */
.about__card {
    overflow: hidden;
    max-width: 100%;
}

/* Newsletter section */
.newsletter__inner {
    max-width: 100%;
    overflow: hidden;
}

/* Hash form inputs */
.hash-form input[type="text"],
.hash-form input[type="email"],
.hash-form input[type="number"] {
    max-width: 100%;
    box-sizing: border-box;
}

/* Sponsor form */
.sponsor__form {
    max-width: 100%;
    overflow: hidden;
}

/* Footer - prevent text overflow */
.footer__links li {
    word-break: break-word;
}

/* ========================================
   SPONSOR SECTION - MOBILE FIXES
   ======================================== */
.sponsor {
    overflow: hidden;
}

.sponsor__inner {
    max-width: 100%;
    overflow: hidden;
}

.sponsor__grid {
    max-width: 100%;
    overflow: hidden;
}

.sponsor__info-card {
    max-width: 100%;
    overflow: hidden;
}

.sponsor__form-wrapper {
    max-width: 100%;
    overflow: hidden;
}

.sponsor__form {
    max-width: 100%;
}

.sponsor__form .form-input,
.sponsor__form input,
.sponsor__form textarea,
.sponsor__form select {
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

.radio-group {
    max-width: 100%;
}

.radio-option {
    flex-shrink: 0;
    min-width: 0;
}

.radio-option span {
    white-space: nowrap;
}

/* Sponsor section for small phones */
@media (max-width: 576px) {
    .sponsor__grid {
        grid-template-columns: 1fr !important;
        gap: var(--spacing-lg);
    }

    .sponsor__info-card {
        padding: var(--spacing-lg);
    }

    .sponsor__form-wrapper {
        padding: var(--spacing-lg);
    }

    .sponsor__info-icon {
        font-size: 2rem;
    }

    .sponsor__list li {
        font-size: 0.9rem;
        flex-wrap: wrap;
    }

    .radio-group {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .radio-option {
        width: 100%;
        justify-content: flex-start;
    }

    .sponsor__header h2 {
        font-size: 1.5rem;
    }

    .sponsor__header p {
        font-size: 0.9rem;
    }
}

/* Sponsor section for extra small phones */
@media (max-width: 400px) {

    .sponsor__info-card,
    .sponsor__form-wrapper {
        padding: var(--spacing-md);
    }

    .sponsor__info-card h3 {
        font-size: 1.1rem;
    }

    .sponsor__list li {
        font-size: 0.85rem;
        padding: var(--spacing-sm) 0;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-input {
        font-size: 0.9rem;
        padding: var(--spacing-sm) var(--spacing-md);
    }
}

/* ========================================
   FOOTER MOBILE LAYOUT
   Logo and name at top, rest below
   ======================================== */
@media (max-width: 768px) {
    .footer__grid {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-xl);
    }

    .footer__brand {
        order: -1;
        /* Logo first */
        text-align: center;
        padding-bottom: var(--spacing-lg);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        margin-bottom: var(--spacing-md);
    }

    .footer__logo {
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer__logo-text {
        text-align: center;
        width: 100%;
        margin-top: var(--spacing-sm);
    }

    .footer__description {
        text-align: center;
    }

    .footer__column {
        text-align: center;
    }

    .footer__column h4 {
        font-size: 1.1rem;
        margin-bottom: var(--spacing-md);
    }

    .footer__links {
        align-items: center;
    }

    .footer__social {
        justify-content: center;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__legal {
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .footer__logo img {
        height: 50px;
    }

    .footer__logo-text {
        font-size: 1rem;
    }

    .footer__description {
        font-size: 0.85rem;
    }
}

/* ========================================
   HERO TITLE - NO WORD BREAKS
   Words stay complete when wrapping
   ======================================== */
.hero__title {
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
    -webkit-hyphens: none;
    -ms-hyphens: none;
}

.hero__title .highlight {
    word-break: keep-all;
    white-space: nowrap;
}

.hero__subtitle {
    word-break: keep-all;
    overflow-wrap: normal;
    hyphens: none;
}

/* Hero responsive text sizing to prevent overflow */
@media (max-width: 576px) {
    .hero__title {
        font-size: 1.75rem;
        line-height: 1.3;
        padding: 0 var(--spacing-sm);
    }

    .hero__subtitle {
        font-size: 1rem;
        padding: 0 var(--spacing-sm);
    }
}

@media (max-width: 400px) {
    .hero__title {
        font-size: 1.5rem;
    }

    .hero__subtitle {
        font-size: 0.9rem;
    }

    .hero__content {
        padding: var(--spacing-md) var(--spacing-sm);
    }
}

/* ========================================
   GALLERY RESPONSIVE
   Ensure 1 column on small screens
   ======================================== */
@media (max-width: 480px) {
    .gallery__grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CAROUSEL (Slider)
   ======================================== */
.carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: var(--spacing-sm) 0;
}

.carousel-track {
    display: flex;
    gap: var(--spacing-md);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    /* iOS momentum scrolling */
    padding-bottom: 1rem;
    /* Space for shadow/overflow */
    /* Hide scrollbar */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.carousel-track::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

/* Force items to be slides */
.carousel-track .gallery__item {
    flex: 0 0 300px;
    /* Fixed width for slides */
    scroll-snap-align: center;
    aspect-ratio: 4/3;
    /* Taller format (was 16/9) */
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.3s ease, transform 0.3s ease;
    opacity: 0;
    /* Hidden by default, shown on hover of container */
}

.carousel-container:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--color-orange);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

@media (max-width: 480px) {
    .carousel-track .gallery__item {
        flex: 0 0 85%;
        /* Shows part of next slide to hint scroll */
        scroll-snap-align: center;
    }

    /* Always show buttons on mobile if needed, or rely on touch */
    .carousel-btn {
        display: none;
        /* Hide buttons on mobile, use touch */
    }
}

/* ========================================
   FORM VALIDATION STYLES
   ======================================== */

/* Error state for input fields */
.form-input.error,
.form-select.error,
.newsletter__input.error {
    border-color: #dc2626;
    border-width: 2px;
    background-color: #fef2f2;
}

.form-input.error:focus,
.form-select.error:focus,
.newsletter__input.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Error message styling */
.field-error {
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    animation: slideDown 0.2s ease-out;
}

.field-error::before {
    content: "⚠";
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success state (optional) */
.form-input.success,
.form-select.success {
    border-color: var(--color-green);
    border-width: 2px;
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */

.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    min-width: 300px;
    max-width: 500px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 0 1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transform: translateX(150%);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    background: linear-gradient(135deg, var(--color-green), var(--color-green-light));
    color: white;
}

.toast.success::before {
    content: "✓";
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.error {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
}

.toast.error::before {
    content: "✕";
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.toast.info {
    background: linear-gradient(135deg, var(--color-blue), var(--color-blue-light));
    color: white;
}

.toast.info::before {
    content: "ℹ";
    width: 24px;
    height: 24px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile responsive toast */
@media (max-width: 768px) {
    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: auto;
        max-width: none;
    }
}

/* ========================================
   FORM FOCUS IMPROVEMENTS
   ======================================== */

.form-input:focus,
.form-select:focus,
.newsletter__input:focus {
    outline: none;
    border-color: var(--color-blue);
    box-shadow: 0 0 0 3px rgba(0, 75, 141, 0.1);
}

/* Disabled state */
.form-input:disabled,
.form-select:disabled,
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Loading state for buttons */
button.loading {
    position: relative;
    color: transparent;
}

button.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
/* ========================================
   GENERIC SECTIONS - TEXT ALIGNMENT FIX
   ======================================== */
/* Generic sections use full container width for content (not centered 700px like About) */
.generic-section .about__header p,
.proyectos-section .about__header p {
    text-align: left;
    max-width: none; /* Remove 700px limit */
    margin: 0; /* Remove auto centering */
}

/* Body content also uses full width */
.generic-section__body,
.proyectos__content,
.proyectos__body {
    text-align: left;
}

/* Keep title centered like other sections */
.generic-section .about__header h2,
.proyectos-section .about__header h2 {
    text-align: center;
}

/* ========================================
   QUILL EDITOR CONTENT STYLES (Public Page)
   ======================================== */
/* Global Quill alignment - works in ALL sections (about, services, generic, etc.) */
.ql-align-center {
    text-align: center;
}

.ql-align-right {
    text-align: right;
}

.ql-align-left {
    text-align: left;
}

.ql-align-justify {
    text-align: justify;
}

/* Scoped overrides with !important for containers that force centering */
.generic-section__body .ql-align-center,
.proyectos__body .ql-align-center,
.proyectos__content .ql-align-center,
.about__header .ql-align-center {
    text-align: center !important;
}

.generic-section__body .ql-align-right,
.proyectos__body .ql-align-right,
.proyectos__content .ql-align-right,
.about__header .ql-align-right {
    text-align: right !important;
}

.generic-section__body .ql-align-left,
.proyectos__body .ql-align-left,
.proyectos__content .ql-align-left,
.about__header .ql-align-left {
    text-align: left !important;
}

.generic-section__body .ql-align-justify,
.proyectos__body .ql-align-justify,
.proyectos__content .ql-align-justify,
.about__header .ql-align-justify {
    text-align: justify !important;
}

/* Images in content should respect their size attributes */
.generic-section__body img,
.proyectos__body img,
.proyectos__content img {
    max-width: 100%;
    height: auto;
}

/* Centered images */
img.ql-align-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}
