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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #f5f5f5;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header con fondo de imagen */
header {
    position: relative;
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.95) 0%, rgba(213, 15, 61, 0.95) 50%, rgba(0, 36, 125, 0.95) 100%),
                url('https://images.unsplash.com/photo-1488751045188-3c55bbf9a3fa?w=1600&q=80') center/cover;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 4rem 0;
    text-align: center;
    margin-bottom: 0;
    color: white;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.85) 0%, rgba(213, 15, 61, 0.85) 50%, rgba(0, 36, 125, 0.85) 100%);
    z-index: 1;
}

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

header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.tagline {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Main Content */
main {
    padding: 3rem 0;
    background: #f5f5f5;
}

.section {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 2.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.section h2 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    border: none;
}

.section-description {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.7;
}

/* Forms */
.form-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

textarea,
input[type="text"],
select {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

textarea:focus,
input[type="text"]:focus,
select:focus {
    outline: none;
    border-color: #667eea;
}

textarea {
    resize: vertical;
    min-height: 80px;
}

.btn-primary {
    background: linear-gradient(135deg, #fca311 0%, #d50f3d 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(252, 163, 17, 0.3);
    letter-spacing: 0.3px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(252, 163, 17, 0.4);
    background: linear-gradient(135deg, #ffb732 0%, #e6194e 100%);
}

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

/* Tabs */
.tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Messages */
.mensajes-container,
.ayuda-container {
    display: grid;
    gap: 1rem;
}

.mensaje-card,
.ayuda-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.mensaje-card:hover,
.ayuda-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.mensaje-texto {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.mensaje-autor {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

.mensaje-fecha {
    color: #95a5a6;
    font-size: 0.85rem;
}

.ayuda-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.ayuda-tipo {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.ayuda-ubicacion {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.ayuda-descripcion {
    color: #2c3e50;
    margin-bottom: 0.8rem;
    line-height: 1.5;
}

.ayuda-contacto {
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

.ayuda-fecha {
    color: #95a5a6;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* Footer */
footer {
    background: #1a1a1a;
    padding: 3rem 0;
    text-align: center;
    margin-top: 3rem;
    color: rgba(255, 255, 255, 0.8);
}

footer p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    font-size: 1rem;
}

footer strong {
    background: linear-gradient(90deg, #fca311 0%, #d50f3d 50%, #00247d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.footer-note {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0.5rem auto 0;
    line-height: 1.6;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2rem;
    color: #95a5a6;
    font-style: italic;
}

/* Hero Section */
.hero-section {
    text-align: center;
    position: relative;
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.1) 0%, rgba(213, 15, 61, 0.1) 50%, rgba(0, 36, 125, 0.1) 100%);
    border: none;
    padding: 4rem 3rem;
    margin-bottom: 2.5rem;
}

.hero-section h2 {
    color: #1a1a1a;
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-text {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    line-height: 1.8;
    color: #444;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #fca311 0%, #d50f3d 50%, #00247d 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.25rem;
    display: block;
}

.feature-card h3 {
    color: #1a1a1a;
    margin-bottom: 0.75rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.feature-card p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
}

/* Demo Section */
.demo-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.demo-tab-btn {
    flex: 1;
    min-width: 150px;
    padding: 0.8rem 1rem;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.demo-tab-btn.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

.demo-tab-btn:hover:not(.active) {
    background: #e9ecef;
}

.demo-content {
    display: none;
}

.demo-content.active {
    display: block;
}

/* Poll/Encuesta */
.poll-options {
    display: grid;
    gap: 1rem;
}

.poll-btn {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 1rem;
    text-align: left;
}

.poll-btn:hover {
    border-color: #667eea;
    transform: translateX(5px);
}

.poll-votes {
    color: #667eea;
    font-weight: 600;
    font-size: 0.9rem;
}

/* WhatsApp Demo */
.whatsapp-demo {
    text-align: center;
    padding: 2rem;
}

.whatsapp-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.whatsapp-demo h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.whatsapp-features {
    list-style: none;
    text-align: left;
    max-width: 500px;
    margin: 2rem auto;
}

.whatsapp-features li {
    padding: 0.8rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 1.05rem;
}

.btn-whatsapp {
    background: #25d366;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 1rem;
}

.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.95) 0%, rgba(213, 15, 61, 0.95) 100%),
                url('https://images.unsplash.com/photo-1522202176988-66273c2fd55f?w=1600&q=80') center/cover;
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(252, 163, 17, 0.92) 0%, rgba(213, 15, 61, 0.92) 100%);
    z-index: 1;
}

.cta-section > * {
    position: relative;
    z-index: 2;
}

.cta-section h2 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-section .section-description {
    color: rgba(255, 255, 255, 0.98);
    font-size: 1.15rem;
}

.idea-form {
    background: rgba(255, 255, 255, 0.95);
}

.idea-form input,
.idea-form select,
.idea-form textarea {
    background: white;
}

.btn-large {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
}

.form-note {
    text-align: center;
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-top: 1rem;
}

/* Urgencia Selector */
.urgencia-selector {
    margin-bottom: 1.5rem;
}

.urgencia-selector label {
    display: block;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-weight: 600;
}

.urgencia-buttons {
    display: flex;
    gap: 0.5rem;
}

.urgencia-btn {
    flex: 1;
    padding: 0.8rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
}

.urgencia-btn:hover {
    border-color: #667eea;
}

.urgencia-btn.urgencia-selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
}

/* Ideas Container */
.ideas-container {
    display: grid;
    gap: 1.5rem;
}

.idea-card {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: transform 0.2s, box-shadow 0.2s;
}

.idea-card:hover {
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.idea-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.idea-categoria {
    background: #667eea;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.idea-urgencia {
    font-size: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-weight: 600;
}

.idea-urgencia.alta {
    background: #e74c3c;
    color: white;
}

.idea-urgencia.media {
    background: #f39c12;
    color: white;
}

.idea-urgencia.baja {
    background: #95a5a6;
    color: white;
}

.idea-descripcion {
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.idea-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

.idea-autor {
    color: #7f8c8d;
    font-size: 0.9rem;
    font-style: italic;
}

.idea-likes {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.like-btn {
    background: none;
    border: 2px solid #667eea;
    color: #667eea;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
}

.like-btn:hover {
    background: #667eea;
    color: white;
}

.like-btn.liked {
    background: #667eea;
    color: white;
}

/* WhatsApp Notification Simulation */
.whatsapp-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25d366;
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 300px;
    animation: slideIn 0.3s ease-out;
    z-index: 1000;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.whatsapp-notification h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.whatsapp-notification p {
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Toast Notifications */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: white;
    color: #2c3e50;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 300px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid #667eea;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast.success {
    border-left-color: #2ecc71;
}

.toast.error {
    border-left-color: #e74c3c;
}

.toast.info {
    border-left-color: #3498db;
}

.toast-icon {
    font-size: 1.5rem;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-message {
    font-size: 0.9rem;
    color: #7f8c8d;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(400px);
    }
}

/* Loading spinner */
.btn-primary.loading,
.btn-whatsapp.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after,
.btn-whatsapp.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
}

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

/* Input validation states */
input.error,
textarea.error,
select.error {
    border-color: #e74c3c;
    animation: shake 0.3s;
}

input.success,
textarea.success,
select.success {
    border-color: #2ecc71;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Pulse animation for important elements */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* Smooth transitions */
* {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    .section {
        padding: 1.5rem;
    }

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

    .hero-section h2 {
        font-size: 1.8rem;
    }

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

    .demo-tabs {
        flex-direction: column;
    }

    .demo-tab-btn {
        min-width: auto;
    }

    .urgencia-buttons {
        flex-direction: column;
    }

    .idea-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .whatsapp-notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
