:root {
    --primary-color: #0f172a;
    --secondary-color: #1e293b;
    --accent-color: #3b82f6;
    --text-color: #ffffff;
    --text-muted: #e2e8f0;
    --text-light: #f8fafc;
    --card-bg: rgba(30, 41, 59, 0.7);
    --card-border: rgba(255, 255, 255, 0.15);
    --success-color: #10b981;
    --transition: all 0.3s ease;
    --border-radius: 12px;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --border-radius: 12px;
}

/* Botón de volver */
.back-button-container {
    padding: 1rem 0;
    margin: 0 auto 2rem auto;
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 10;
}

.back-button {
    display: inline-flex;
    align-items: center;
    color: #0066cc;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.6rem 1.2rem;
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.back-button i {
    margin-right: 8px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.back-button:hover {
    color: #004080;
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.back-button:active {
    transform: translateY(0);
}

.back-button:hover i {
    transform: translateX(-4px);
}

/* Estilos personalizados para alertas */
.alert {
    background-color: rgba(15, 23, 42, 0.95) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px) !important;
}

.alert-dismissible .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Apple-style Navigation */
.apple-navbar {
    --apple-nav-height: 44px;
    --apple-bg: rgba(255, 255, 255, 0.8);
    --apple-text: #1d1d1f;
    --apple-text-hover: #2997ff;
    --apple-border: rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    background: var(--apple-bg);
    border-bottom: 1px solid var(--apple-border);
    height: var(--apple-nav-height);
    display: flex;
    align-items: center;
    width: 100%;
}

.apple-nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 22px;
}

.apple-nav-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.apple-nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.apple-nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    margin: 0 10px;
}

.apple-nav-link {
    color: var(--apple-text);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: -0.01em;
    text-decoration: none;
    padding: 0 8px;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    transition: color 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.apple-nav-link span {
    position: relative;
    z-index: 1;
}

.apple-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--apple-text-hover);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.apple-nav-link:hover,
.apple-nav-link:focus {
    color: var(--apple-text-hover);
}

.apple-nav-link:hover::after,
.apple-nav-link:focus::after,
.apple-nav-link.active::after {
    transform: scaleX(1);
}

.apple-nav-item.highlight .apple-nav-link {
    color: var(--apple-text-hover);
    font-weight: 500;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .apple-navbar {
        --apple-bg: rgba(22, 22, 23, 0.8);
        --apple-text: #f5f5f7;
        --apple-text-hover: #2997ff;
        --apple-border: rgba(255, 255, 255, 0.08);
    }
}

/* Responsive styles */
@media (max-width: 834px) {
    .apple-navbar {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        -ms-overflow-style: -ms-autohiding-scrollbar;
        justify-content: flex-start;
    }
    
    .apple-nav-container {
        padding: 0;
    }
    
    .apple-nav-content {
        padding: 0 16px;
    }
    
    .apple-nav-item {
        flex-shrink: 0;
    }
    
    .apple-nav-link {
        font-size: 14px;
        padding: 0 12px;
    }
}

/* Animation for active link */
@keyframes appleNavFadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.apple-nav-link.active {
    animation: appleNavFadeIn 0.3s ease-out;
}

/* Estilos para resaltar la sección de donaciones */
.highlight-section {
    animation: highlight 2s ease-in-out;
    position: relative;
}

@keyframes highlight {
    0% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.3); }
    50% { box-shadow: 0 0 0 15px rgba(13, 110, 253, 0); }
    100% { box-shadow: 0 0 0 0 rgba(13, 110, 253, 0); }
}

/* Estilos para la solicitud generada */
.template-wrapper {
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.template-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: #e2e8f0;
    padding: 1.5rem;
    max-height: 60vh;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

/* Estilos para los botones de acción */
.request-actions {
    margin: 0 0 1.5rem 0;
}

.request-actions .btn {
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.request-actions .btn i {
    font-size: 1rem;
}

/* Estilos para la página Acerca de */
.about-page .card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.about-page .card-body {
    padding: 2rem;
}

.about-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.about-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #ffffff;
}

.about-page h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.75rem 0 1rem;
    color: #e2e8f0;
}

.about-page p, 
.about-page li {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.about-page .lead {
    color: #e2e8f0;
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 2rem;
}

.about-page .alert {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem;
    margin: 1.5rem 0;
}

.about-page .alert i {
    margin-right: 0.5rem;
    color: #3b82f6;
}

.about-page .feature-card {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.about-page .feature-card:hover {
    transform: translateY(-5px);
    border-color: #3b82f6;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-page .feature-card i {
    font-size: 2rem;
    color: #3b82f6;
    margin-bottom: 1rem;
    display: inline-block;
}

.about-page .feature-card h3 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.about-page .feature-card p {
    color: #cbd5e1;
    margin-bottom: 0;
}

/* Estilos para móviles - Página Acerca de */
@media (max-width: 767.98px) {
    .about-page .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .about-page .card-body {
        padding: 1.5rem 1.25rem;
    }
    
    .about-page h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .about-page h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 1rem;
    }
    
    .about-page h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .about-page p,
    .about-page li {
        font-size: 0.95rem;
        line-height: 1.7;
        margin-bottom: 1.25rem;
    }
    
    .about-page .lead {
        font-size: 1.05rem;
        margin-bottom: 1.5rem;
    }
    
    .about-page .alert {
        padding: 1rem;
        margin: 1.25rem 0;
    }
    
    .about-page .feature-card {
        margin-bottom: 1rem;
    }
    
    .about-page .feature-card i {
        font-size: 1.75rem;
    }
    
    .about-page .feature-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .about-page .feature-card p {
        font-size: 0.9rem;
    }
    
    .about-page .btn-lg {
        padding: 0.5rem 1.5rem;
        font-size: 1rem;
    }
}

/* Mejoras para móviles */
@media (max-width: 767.98px) {
    .template-content {
        font-size: 0.85rem;
        padding: 1.25rem;
        max-height: 55vh;
        line-height: 1.8;
    }
    
    .template-wrapper {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    /* Mejorar el espaciado entre párrafos */
    .template-content p {
        margin-bottom: 1.25rem;
    }
    
    /* Ajustar el contenedor principal */
    #templateCard {
        margin: 0 -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        background: transparent;
    }
    
    #templateCard .card-body {
        padding: 1.25rem 1rem;
    }
    
    /* Mejorar los botones de acción */
    .request-actions {
        gap: 0.5rem !important;
        margin-bottom: 1.25rem;
    }
    
    .request-actions .btn {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
        width: 100%;
        margin: 0 !important;
    }
    
    .btn-text {
        font-size: 0.9em;
    }
    
    /* Ocultar texto en botones en pantallas muy pequeñas */
    @media (max-width: 360px) {
        .btn-text {
            display: none;
        }
        
        .request-actions .btn i {
            margin: 0;
            font-size: 1.1rem;
        }
    }
}

/* Estilos para páginas legales */
.legal-page .card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.legal-page .card-body {
    padding: 2rem;
}

.legal-page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.legal-page h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #ffffff;
}

.legal-page h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.75rem 0 1rem;
    color: #e2e8f0;
}

.legal-page p, 
.legal-page li {
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-page ul, 
.legal-page ol {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.legal-page a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-page a:hover {
    color: #3b82f6;
    text-decoration: underline;
}

.legal-page .divider {
    height: 2px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    margin: 1.5rem 0;
    border: none;
}

/* Mejoras para móviles en páginas legales */
@media (max-width: 767.98px) {
    .legal-page .card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin: 0 -1rem;
        width: calc(100% + 2rem);
    }
    
    .legal-page .card-body {
        padding: 1.5rem 1.25rem;
    }
    
    .legal-page h1 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .legal-page h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 1rem;
    }
    
    .legal-page h3 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem;
    }
    
    .legal-page p,
    .legal-page li {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .legal-page .lead {
        font-size: 1.05rem;
    }
}

/* Estilos generales */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-light);
    line-height: 1.7;
    min-height: 100vh;
    margin: 0;
    padding: 2rem 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
}

/* Mejorar contraste de textos */
p, li, span, div {
    color: var(--text-light);
}

h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 600;
}

.text-muted {
    color: var(--text-muted) !important;
}

.card {
    background: rgba(15, 23, 42, 0.9);
    color: var(--text-light);
}

.card-body {
    color: var(--text-light);
}

/* ===== Estilos para alertas ===== */
.alert {
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.alert-primary {
    background-color: rgba(13, 110, 253, 0.15);
    border-color: rgba(13, 110, 253, 0.3);
    color: #9ec5fe;
}

.alert-info {
    background-color: rgba(13, 202, 240, 0.15);
    border-color: rgba(13, 202, 240, 0.3);
    color: #9eeaf9;
}

.alert h3, 
.alert h4, 
.alert h5 {
    color: #ffffff !important;
    margin-top: 0;
    margin-bottom: 0.75rem;
}

.alert p:last-child {
    margin-bottom: 0;
}

.alert .bi {
    margin-right: 0.5rem;
    font-size: 1.25rem;
    vertical-align: middle;
}

/* ===== Estilos para el pie de página ===== */
footer {
    background: linear-gradient(135deg, #0c1120, #1a2238);
    color: #f8fafc;
    padding: 4rem 0 0;
    margin-top: 6rem;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

footer .container {
    position: relative;
    z-index: 2;
}

footer .row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

footer .row > div {
    padding: 0 15px;
    margin-bottom: 2rem;
}

/* Efecto de patrón sutil */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6, #ec4899);
}

.footer-brand {
    padding-right: 1.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-brand h5 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #ffffff;
    position: relative;
    display: inline-block;
    padding-bottom: 0.75rem;
}

.footer-brand h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 50px;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px;
}

.footer-brand p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    max-width: 300px;
}

footer h5 {
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    font-size: 1.1rem;
    position: relative;
    padding-bottom: 0.75rem;
    min-height: 2.5rem;
    display: flex;
    align-items: flex-end;
    line-height: 1.2;
}

footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: #3b82f6;
    border-radius: 2px;
}

footer ul {
    padding-left: 0;
    list-style: none;
}

footer ul li {
    margin-bottom: 0.8rem;
    transition: transform 0.3s ease;
    min-height: 1.5rem;
}

footer ul li:hover {
    transform: translateX(5px);
}

footer a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 400;
    position: relative;
    padding: 0.25rem 0;
}

footer a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #3b82f6;
    transition: width 0.3s ease;
}

footer a:hover {
    color: #ffffff;
    text-decoration: none;
}

footer a:hover::before {
    width: 100%;
}

.text-muted {
    color: #94a3b8 !important;
}

/* Botón de contacto */
.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-weight: 500;
    padding: 0.6rem 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-outline-light i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Iconos de contacto */
footer .bi {
    color: #3b82f6;
    font-size: 1.2rem;
    min-width: 24px;
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: #cbd5e1;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-links a:hover {
    background: #3b82f6;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Copyright */
.copyright {
    margin-top: 3rem;
    padding: 1.5rem 0;
    background: rgba(0, 0, 0, 0.2);
    text-align: center;
    font-size: 0.85rem;
    color: #94a3b8;
    position: relative;
}

.copyright::before {
    content: '';
    position: absolute;
    top: 0;
    left: 5%;
    right: 5%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

/* Efecto de partículas sutiles */
.footer-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.1;
    background-image: radial-gradient(#3b82f6 1px, transparent 1px);
    background-size: 20px 20px;
}

footer .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #f8fafc;
}

footer .bi {
    font-size: 1.25rem;
    vertical-align: middle;
}

footer .social-links a {
    display: inline-block;
    margin-right: 1rem;
    color: #94a3b8;
    transition: color 0.3s ease;
}

footer .social-links a:hover {
    color: #f8fafc;
    text-decoration: none;
}

footer hr {
    border-color: #334155;
    margin: 2rem 0;
}

footer .list-unstyled li {
    margin-bottom: 0.5rem;
}

/* Estilos para la sección de bienvenida */
.welcome-section {
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.welcome-section h2 {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: #ffffff;
}

.welcome-section .lead {
    font-size: 1.25rem;
    color: #e2e8f0;
    margin-bottom: 2rem;
}

.welcome-section img {
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.welcome-section img:hover {
    transform: translateY(-5px);
}

/* Estilos para la sección Cómo funciona */
.how-it-works {
    padding: 4rem 0;
}

.how-it-works h2 {
    font-size: 2.25rem;
    color: #ffffff;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.how-it-works h2:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: #3b82f6;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.how-it-works .card {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.how-it-works .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.how-it-works h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-weight: 600;
}

.how-it-works p {
    color: #cbd5e1;
    margin-bottom: 0;
}

/* Sección de donaciones interactiva */
#donate {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.donation-widget {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.heart-pulse {
    width: 80px;
    height: 80px;
    background: rgba(239, 68, 68, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
}

.heart-pulse i {
    font-size: 2.5rem;
    color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.donation-amount-display {
    position: relative;
    margin-bottom: 3rem;
}

.donation-amount-display .amount {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.donation-amount-display .currency {
    font-size: 2.5rem;
    font-weight: 600;
    color: #94a3b8;
    margin-left: 0.25rem;
}

.impact-badge {
    position: absolute;
    bottom: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.9rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    backdrop-filter: blur(5px);
}

.donation-slider-container {
    padding: 2rem 0;
    position: relative;
    margin: 0 auto;
    max-width: 90%;
}

.donation-slider-track {
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 2rem 0;
}

.donation-slider-rail {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.donation-slider-progress {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 10px;
    transition: width 0.3s ease;
}

.donation-marker {
    position: absolute;
    top: -30px;
    transform: translateX(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.donation-slider-handle {
    position: absolute;
    top: 50%;
    left: 30%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: #ffffff;
    border-radius: 50%;
    cursor: grab;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 10;
}

.donation-slider-handle:active {
    cursor: grabbing;
    transform: translate(-50%, -50%) scale(1.1);
}

.handle-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border-radius: 50%;
}

.impact-visualization {
    display: flex;
    justify-content: space-between;
    margin: 2rem 0;
    padding: 1rem 0;
}

.impact-item {
    flex: 1;
    text-align: center;
    padding: 1rem;
    border-radius: 0.75rem;
    opacity: 0.6;
    transition: all 0.3s ease;
    cursor: pointer;
}

.impact-item:hover {
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.8;
}

.impact-item.active {
    opacity: 1;
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-5px);
}

.impact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 1.5rem;
    color: #3b82f6;
    transition: all 0.3s ease;
}

.impact-item.active .impact-icon {
    background: #3b82f6;
    color: white;
    transform: scale(1.1);
}

.impact-text {
    font-size: 0.85rem;
    color: #94a3b8;
    font-weight: 500;
}

.impact-item.active .impact-text {
    color: #ffffff;
}

.btn-donate {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-donate:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.btn-donate:active {
    transform: translateY(0);
}

.donation-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item {
    padding: 0 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.25rem;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
}

/* Efecto de partículas */
.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Estilos para el contador */
.counter-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.counter-badge:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.counter-badge i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Efectos de fondo */
.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.background-shapes .shape {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(74, 144, 226, 0.15) 0%, rgba(74, 144, 226, 0) 70%);
    filter: blur(30px);
    opacity: 0.6;
    animation: float 15s infinite ease-in-out;
}

.background-shapes .shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.background-shapes .shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 10%;
    animation-delay: 5s;
    background: radial-gradient(circle, rgba(226, 74, 158, 0.15) 0%, rgba(226, 74, 158, 0) 70%);
}

.background-shapes .shape:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 60%;
    left: 30%;
    animation-delay: 10s;
    background: radial-gradient(circle, rgba(74, 226, 144, 0.15) 0%, rgba(74, 226, 144, 0) 70%);
}

.background-shapes .shape:nth-child(4) {
    width: 250px;
    height: 250px;
    top: 20%;
    right: 20%;
    animation-delay: 15s;
    background: radial-gradient(circle, rgba(226, 200, 74, 0.15) 0%, rgba(226, 200, 74, 0) 70%);
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, 20px) rotate(5deg);
    }
    50% {
        transform: translate(0, 40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, 20px) rotate(-5deg);
    }
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

/* Header */
header {
    padding: 2rem 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, #fff, #a5b4fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

header p.lead {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Tarjetas */
.card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
    transition: var(--transition);
    color: #ffffff;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.card-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    margin: -2.5rem -2.5rem 2.5rem -2.5rem;
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    color: #ffffff;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.card-text {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Formulario */
.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #f8fafc !important;
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    line-height: 1.5;
}

.form-control:focus, .form-select:focus {
    background-color: rgba(255, 255, 255, 0.18) !important;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
    opacity: 1;
    font-weight: 400;
}

/* Estilos para el select personalizado */
.select-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.select-wrapper::after {
    content: '⌄';
    position: absolute;
    top: 50%;
    right: 1.25rem;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    pointer-events: none;
    font-size: 1.2em;
    line-height: 1;
    transition: all 0.2s ease;
}

.select-wrapper:hover::after {
    color: #ffffff;
}

/* Estilo personalizado para el select */
select.form-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: rgba(30, 41, 59, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    padding: 0.85rem 3rem 0.85rem 1.25rem !important;
    border-radius: 10px !important;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

select.form-select:hover {
    border-color: rgba(255, 255, 255, 0.3) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

select.form-select:focus {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35) !important;
    outline: none;
}

/* Estilo para las opciones del select */
select.form-select option {
    background-color: #1e293b;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border: none;
}

/* Estilo para el hover de las opciones */
select.form-select option:hover,
select.form-select option:focus {
    background-color: var(--accent-color) !important;
    color: #ffffff;
}

/* Estilo para la opción seleccionada */
select.form-select option:checked {
    background-color: var(--accent-color);
    color: #ffffff;
}

/* Estilo para el placeholder */
select.form-select option[value=""] {
    color: rgba(255, 255, 255, 0.6);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* Botones */
.btn {
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.btn:hover::before {
    opacity: 1;
}

.btn i {
    margin-right: 0.5rem;
    font-size: 1.1em;
    transition: transform 0.2s ease;
}

.btn:hover i {
    transform: translateX(2px);
}

.btn-outline-primary {
    color: var(--accent-color);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    backdrop-filter: blur(5px);
}

.btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.25);
    color: #3b82f6;
}

.btn-outline-success {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(5px);
}

.btn-outline-success:hover {
    background: rgba(16, 185, 129, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    color: #10b981;
}

.btn-outline-secondary {
    color: #94a3b8;
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.3);
    backdrop-filter: blur(5px);
}

.btn-outline-secondary:hover {
    background: rgba(148, 163, 184, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

/* Efecto de pulso al hacer clic */
@keyframes buttonPulse {
    0% { transform: scale(1); }
    50% { transform: scale(0.98); }
    100% { transform: scale(1); }
}

.btn:active {
    animation: buttonPulse 0.3s ease;
}

/* Grupo de botones */
.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Botón de donación */
.btn-donate {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1e293b;
    font-weight: 700;
    padding: 0.875rem 2rem;
    border-radius: 50px;
    box-shadow: 0 4px 14px 0 rgba(245, 158, 11, 0.3);
    transition: var(--transition);
}

.btn-donate:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 7px 20px 0 rgba(245, 158, 11, 0.4);
    color: #1e293b;
}

.btn-donate i {
    margin-right: 0.5rem;
}

/* Sección de donaciones */
#donate {
    margin-top: 6rem;
    padding: 5rem 0;
    position: relative;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(30, 41, 59, 0.9));
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-lg);
}

#donate::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
}

#donate h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 700;
    font-size: 2.25rem;
    color: var(--text-color);
    position: relative;
    padding-bottom: 1rem;
}

#donate h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
    border-radius: 2px;
}

.donation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.donation-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.donation-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
    transition: var(--transition);
}

.donation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--accent-color);
}

.donation-card.featured {
    border: 1px solid var(--accent-color);
    transform: scale(1.03);
}

.donation-card.featured::after {
    content: 'Recomendado';
    position: absolute;
    top: 15px;
    right: -30px;
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 2.5rem;
    transform: rotate(45deg);
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.donation-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: var(--accent-color);
    transition: var(--transition);
}

.donation-card:hover .donation-icon {
    background: rgba(59, 130, 246, 0.2);
    transform: scale(1.1);
}

.donation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
}

.donation-card .price {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 1.5rem 0;
    color: var(--text-color);
    position: relative;
    display: inline-block;
}

.donation-card .price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-left: 0.25rem;
}

.donation-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.donation-features {
    text-align: left;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.donation-features li {
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.donation-features li i {
    color: var(--accent-color);
    font-size: 0.9em;
    margin-top: 0.2rem;
}

/* Contador de solicitudes */
.request-counter {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(15, 23, 42, 0.6);
    border-radius: var(--border-radius);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.request-counter h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

#requestCounter {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    margin: 0.5rem 0;
}

.request-counter p {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0;
}

/* Footer */
footer {
    margin-top: 6rem;
    padding: 4rem 0 2rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.footer-content {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

.footer-links a i {
    font-size: 0.8em;
    transition: var(--transition);
}

/* Estilos para la imagen de la cabecera */
.welcome-section img {
    max-width: 100%;
    height: auto;
    max-height: 400px; /* Ajusta este valor según necesites */
    width: auto;
    margin: 0 auto;
    display: block;
}

/* Estilos para el contenido de la plantilla */
.template-content {
    white-space: pre-line;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 0.9rem;
    line-height: 1.7;
    background: rgba(255, 255, 255, 0.7);
    color: #2c3e50;
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    margin: 0;
    padding: 1.25rem 1.5rem !important;
    backdrop-filter: blur(4px);
}

/* Contacto */
.contact-info {
    margin-top: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.contact-item i {
    margin-right: 0.75rem;
    color: var(--accent-color);
    font-size: 1.1em;
    margin-top: 0.2rem;
}

/* Redes sociales */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    transition: var(--transition);
    font-size: 1.1em;
}

.social-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Copyright */
.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Efectos de fondo del footer */
.footer-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.15;
    z-index: 0;
}

.footer-shape-1 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: -150px;
    right: -100px;
}

.footer-shape-2 {
    width: 200px;
    height: 200px;
    background: #8b5cf6;
    bottom: -50px;
    left: -50px;
}
/* Plantilla generada */
.template-content {
    background-color: rgba(30, 41, 59, 0.7);
    border-radius: 12px;
    padding: 2rem;
    white-space: pre-wrap;
    font-family: 'Roboto Mono', 'Courier New', monospace;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    max-height: 350px;
    overflow-y: auto;
    margin: 2rem 0;
    line-height: 1.8;
    font-size: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

/* Scrollbar personalizada para el área de texto */
.template-content::-webkit-scrollbar {
    width: 8px;
}

.template-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.template-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.template-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Sección de donación */
#donate {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    margin-top: 4rem;
    padding: 2rem 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .card-body {
        padding: 1.25rem;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .d-flex {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .d-flex .btn {
        width: 100%;
    }
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.6s ease-out forwards;
}

/* Barra de desplazamiento personalizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #357abd;
}

/* ===== Páginas Legales y Acerca de ===== */
.legal-page,
.about-page {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
}

.legal-page .card,
.about-page .card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.legal-page h1,
.about-page h1 {
    color: var(--accent-color);
    font-weight: 700;
    text-align: center;
}

.legal-page .divider {
    height: 3px;
    width: 80px;
    background: var(--accent-color);
    margin: 1.5rem auto;
}

/* ===== Estilos para la tarjeta de confirmación ===== */
#templateCard {
    border: none;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(30, 41, 59, 0.9));
    backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 2rem;
}

#templateCard .card-header {
    background: rgba(59, 130, 246, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

#templateCard .card-header h3 {
    color: #fff;
    font-weight: 600;
    margin: 0;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
}

#templateCard .alert {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #93c5fd;
    border-radius: 10px;
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    margin: 0 1.5rem 1.5rem;
    font-family: 'Montserrat', sans-serif;
}

.template-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    white-space: pre-wrap;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-height: 400px;
    overflow-y: auto;
    padding: 2rem !important;
    font-size: 1rem;
    line-height: 1.8;
    color: #e2e8f0;
    margin: 1.5rem 1.5rem 0;
    transition: all 0.3s ease;
}

.template-content:hover {
    border-color: rgba(59, 130, 246, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

/* Estilos para los botones de acción */
#templateCard .btn-group {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin: 1.5rem;
}

#templateCard .btn {
    flex: 1 1 auto;
    min-width: 120px;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: none;
    position: relative;
    overflow: hidden;
    font-family: 'Montserrat', sans-serif;
}

#copyBtn {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3) !important;
}

#emailBtn {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3) !important;
}

#downloadBtn {
    background: rgba(139, 92, 246, 0.1);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3) !important;
}

#templateCard .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#copyBtn:hover { background: rgba(59, 130, 246, 0.2); }
#emailBtn:hover { background: rgba(16, 185, 129, 0.2); }
#downloadBtn:hover { background: rgba(139, 92, 246, 0.2); }

#templateCard .btn i {
    margin-right: 8px;
    font-size: 1.1em;
}

/* Efecto de brillo al pasar el ratón */
#templateCard .btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: 0.5s;
}

#templateCard .btn:hover::after {
    left: 100%;
}

/* Scrollbar personalizada */
.template-content::-webkit-scrollbar {
    width: 8px;
}

.template-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
}

.template-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.template-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.legal-page .content-wrapper {
    line-height: 1.8;
    color: var(--text-muted);
}

.legal-page h3 {
    color: #e2e8f0;
    font-weight: 600;
    margin-top: 2rem;
}

.legal-page ul {
    padding-left: 1.5rem;
}

.legal-page ul li {
    margin-bottom: 0.5rem;
}

/* Estilos específicos para la página Acerca de */
.about-page .about-icon {
    font-size: 5rem;
    color: var(--accent-color);
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 50%;
}

.about-page .feature-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    height: 100%;
}

.about-page .feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.about-page .feature-icon {
    font-size: 2rem;
    color: var(--accent-color);
}

.about-page .btn-primary {
    background-color: var(--accent-color);
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.about-page .btn-primary:hover {
    background-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

/* Estilos para la navegación activa */
.nav-link.active {
    color: var(--accent-color) !important;
    font-weight: 600;
    position: relative;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* Efecto de resaltado para la sección de donaciones */
.highlight-section {
    animation: highlight-fade 2s ease-out;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.2), rgba(30, 41, 59, 0.2));
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

@keyframes highlight-fade {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .about-page .about-icon {
        margin-bottom: 2rem;
    }
    
    .about-page .about-content {
        text-align: center;
    }
    
    .about-page .about-content h2 {
        font-size: 1.8rem;
    }
    
    .about-page .about-content p {
        font-size: 1rem;
    }
    
    .about-page .about-content .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .apple-nav-container {
        width: 100%;
        overflow: hidden;
    }
    
    .apple-nav-content {
        width: max-content;
        max-width: 100%;
        padding: 0 10px;
    }
    
    .apple-nav-links {
        display: flex;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
        padding: 10px 15px 20px 15px;
        margin: 0 -15px;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        width: auto;
        box-sizing: content-box;
        -webkit-overflow-scrolling: touch;
    }
    
    .apple-nav-links::after {
        content: '';
        display: block;
        min-width: 15px;
        height: 1px;
    }
    
    .apple-nav-links::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .apple-nav-item {
        flex: 0 0 auto;
    }
    
    .apple-nav-link {
        white-space: nowrap;
        font-size: 10px;
        padding: 0 4px;
        letter-spacing: -0.02em;
    }
    
    .apple-nav-item {
        margin: 0 3px;
    }
    
    .apple-nav-item.highlight .apple-nav-link {
        padding: 0 6px;
    }
    
    .legal-page,
    .about-page {
        padding: 40px 0;
    }
    
    .legal-page .card,
    .about-page .card {
        padding: 1.5rem !important;
    }
}
