/* Estilos personalizados para El Seo Ha Muerto */

:root {
    --primary-color: #1da1f2;
    --secondary-color: #14171a;
    --accent-color: #17a2b8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

/* Cards */
.card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    border-radius: 12px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.card-header {
    border-radius: 12px 12px 0 0 !important;
    border-bottom: none;
}

/* Buttons */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0d8bd9;
    border-color: #0d8bd9;
    transform: translateY(-1px);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.1rem;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.2s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Progress bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
}

.progress-bar {
    background-color: var(--primary-color);
    border-radius: 4px;
}

/* Forms */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 161, 242, 0.25);
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    transition: opacity 0.2s ease-in-out;
}

footer a:hover {
    opacity: 0.8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 3rem 0 !important;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
}

/* Estilos para la sección de recaudación */
.fundraising-section .card {
    transition: transform 0.2s ease-in-out;
}

.fundraising-section .card:hover {
    transform: translateY(-2px);
}

.fundraising-section .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

.fundraising-section .text-primary {
    color: #007bff !important;
}

.fundraising-section .text-danger {
    color: #dc3545 !important;
}

.fundraising-section .text-success {
    color: #28a745 !important;
}

/* Estilos para el botón de compartir */
.alert .btn-primary {
    background-color: #1da1f2;
    border-color: #1da1f2;
    transition: all 0.3s ease;
}

.alert .btn-primary:hover {
    background-color: #0d8bd9;
    border-color: #0d8bd9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
}

.alert .btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.375rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #0d8bd9;
}

/* Loading spinner */
.spinner-border {
    color: var(--primary-color);
}

/* Social media icons */
.bi-twitter-x {
    color: var(--primary-color);
}

.bi-twitter {
    color: var(--primary-color);
}

/* Poll results styling */
.poll-result {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

/* Utility classes */
.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Estilos para la sección de votación */
.voter-item {
    transition: transform 0.2s ease-in-out;
    max-width: 80px;
    min-width: 80px;
    flex-shrink: 0;
}

.voter-item:hover {
    transform: translateY(-2px);
}

.voter-item img {
    transition: all 0.2s ease-in-out;
}

.voter-item:hover img {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.voter-item .username {
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.2s ease-in-out;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.voter-item:hover .username {
    color: #6c757d !important;
}

/* Contenedor de votantes */
.voters-section {
    margin-top: 1rem;
}

.voters-section .d-flex {
    gap: 0.75rem !important;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
}

/* Estilos minimalistas para la sección de votación */
.voting-section {
    
}

.voting-section h4 {
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2rem;
}

.voting-section .btn {
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
}

/* Botón para "SEO tiene vida" - Color pastel verde */
.btn-success {
    background-color: #a8e6cf !important;
    color: #2d5a3d !important;
}

.btn-success:hover {
    background-color: #8dd3b6 !important;
    color: #2d5a3d !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(168, 230, 207, 0.3);
}

/* Botón para "SEO ha muerto" - Color pastel rosa */
.btn-danger {
    background-color: #ffb3ba !important;
    color: #8b2635 !important;
}

.btn-danger:hover {
    background-color: #ff9aa2 !important;
    color: #8b2635 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 179, 186, 0.3);
}

/* Bordes de las fotos de perfil */
.voter-item img[style*="border: 2px solid #28a745"] {
    border-color: #a8e6cf !important;
}

.voter-item img[style*="border: 2px solid #dc3545"] {
    border-color: #ffb3ba !important;
}

.voter-item div[style*="border: 2px solid #28a745"] {
    border-color: #a8e6cf !important;
}

.voter-item div[style*="border: 2px solid #dc3545"] {
    border-color: #ffb3ba !important;
}

/* Badges para mostrar el voto del usuario */
.badge.bg-success {
    background-color: #a8e6cf !important;
    color: #2d5a3d !important;
}

.badge.bg-danger {
    background-color: #ffb3ba !important;
    color: #8b2635 !important;
}

/* Badges de recuento de votos */
.vote-count .badge {
    font-weight: 600;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    min-width: 120px;
    display: inline-block;
}

.total-votes .badge {
    background-color: #e9ecef !important;
    color: #6c757d !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Botón de retirar voto */
.btn-outline-secondary {
    border-color: #dee2e6;
    color: #6c757d;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
    color: #495057;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .voter-item {
        max-width: 70px;
        min-width: 70px;
    }
    
    .voter-item img {
        width: 50px !important;
        height: 50px !important;
    }
    
    .voter-item .username {
        font-size: 0.7rem;
    }
    
    .voting-section {
        padding: 2rem 0;
    }
    
    .voters-section .d-flex {
        gap: 0.5rem !important;
    }
}

/* Estilos para patrocinadores */
.sponsors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin: 2rem 0;
    align-items: center;
    justify-items: center;
    margin-left: auto;
    margin-right: auto;
}

.sponsor-item {
    text-align: center;
    transition: transform 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 200px;
}

.sponsor-item:hover {
    transform: translateY(-2px);
}

.sponsor-logo {
    max-width: 200px;
    max-height: 120px;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: all 0.3s ease-in-out;
    filter: grayscale(100%);
}

.sponsor-item:hover .sponsor-logo {
    transform: scale(1.05);
    filter: grayscale(0%);
}

.sponsor-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 2rem;
    margin-top: 2rem;
}

.sponsor-info h3 {
    color: #495057;
    font-weight: 600;
    margin-bottom: 1rem;
}

.sponsor-info .lead {
    color: #6c757d;
    font-size: 1.1rem;
}

.sponsor-info p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.sponsor-info strong {
    color: #495057;
    font-weight: 600;
}

/* Formulario de patrocinio */

/* Responsive para patrocinadores */
@media (max-width: 992px) {
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 3rem;
        
    }
    
    .sponsor-item {
        max-width: 180px;
    }
}

@media (max-width: 768px) {
    .sponsors-grid {
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 3rem;
    }
    
    .sponsor-logo {
        max-width: 180px;
        max-height: 100px;
    }
    
    .sponsor-item {
        max-width: 160px;
    }
    
    .sponsor-info {
        padding: 1.5rem;
    }
    
}

@media (max-width: 480px) {
    
}

/* File upload styling */
.form-control[type="file"] {
    padding: 0.5rem;
    border: 2px dashed #dee2e6;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
}

.form-control[type="file"]:hover {
    border-color: var(--primary-color);
    background-color: rgba(29, 161, 242, 0.05);
}

.form-control[type="file"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(29, 161, 242, 0.25);
    background-color: white;
}

.form-control[type="file"]::file-selector-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin-right: 1rem;
    font-weight: 500;
    transition: background-color 0.2s ease-in-out;
}

.form-control[type="file"]::file-selector-button:hover {
    background-color: #0d8bd9;
}

/* File upload preview */
.file-upload-preview {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background-color: #f8f9fa;
    display: none;
}

.file-upload-preview img {
    max-width: 100px;
    max-height: 60px;
    border-radius: 4px;
}

/* Upload progress indicator */
.upload-progress {
    margin-top: 0.5rem;
    display: none;
}

.upload-progress .progress {
    height: 4px;
}

/* File validation feedback */
.file-validation {
    margin-top: 0.25rem;
    font-size: 0.875rem;
}

.file-validation.valid {
    color: var(--success-color);
}

.file-validation.invalid {
    color: var(--danger-color);
}

/* Estilos para la sección de camisetas */
.tshirt-gallery {
    position: relative;
}

.tshirt-gallery .main-image {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.tshirt-gallery .main-image img {
    transition: transform 0.3s ease;
}

.tshirt-gallery .main-image:hover img {
    transform: scale(1.02);
}

.tshirt-gallery .thumbnails {
    margin-top: 1rem;
}

.tshirt-gallery .thumbnails img {
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.tshirt-gallery .thumbnails img:hover {
    transform: scale(1.1);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.tshirt-gallery .thumbnails img.active {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(29, 161, 242, 0.3);
    transform: scale(1.05);
}

/* Selector de colores mejorado */
.color-selector {
    margin-top: 0.5rem;
}

.color-selector .btn {
    position: relative;
    padding: 0.75rem 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
}

.color-selector .btn:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.color-selector .btn-check:checked + .btn {
    border-color: var(--primary-color);
    background-color: rgba(29, 161, 242, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(29, 161, 242, 0.2);
}

.color-selector .color-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.color-selector .btn:hover .color-circle {
    transform: scale(1.1);
}

.color-selector .btn-check:checked + .btn .color-circle {
    transform: scale(1.2);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.color-selector small {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

.color-selector .btn-check:checked + .btn small {
    color: var(--primary-color);
    font-weight: 600;
}

/* Modal de imagen */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 12px 12px 0 0;
}

.modal-body {
    padding: 1.5rem;
}

/* Responsive para la galería */
@media (max-width: 768px) {
    .tshirt-gallery .thumbnails img {
        width: 60px;
        height: 60px;
    }
    
    .color-selector .btn {
        min-height: 50px;
        padding: 0.5rem 0.25rem;
    }
    
    .color-selector .color-circle {
        width: 20px;
        height: 20px;
    }
    
    .color-selector small {
        font-size: 0.7rem;
    }
}

@media (max-width: 576px) {
    .color-selector .row {
        gap: 0.5rem !important;
    }
    
    .color-selector .col-4 {
        flex: 0 0 calc(33.333% - 0.25rem);
        max-width: calc(33.333% - 0.25rem);
    }
    
    .color-selector .col-md-2 {
        flex: 0 0 calc(20% - 0.2rem);
        max-width: calc(20% - 0.2rem);
    }
}

/* Estilos para el selector de modelos de tazas */
.mug-model-option {
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    border-radius: 8px;
    padding: 8px;
    margin-bottom: 10px;
}

.mug-model-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.mug-model-option input[type="radio"]:checked + label {
    background-color: rgba(29, 161, 242, 0.1);
}

.mug-model-option input[type="radio"]:checked + label .mug-thumbnail {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.mug-model-option input[type="radio"] {
    display: none;
}

.mug-model-option label {
    cursor: pointer;
    display: block;
    margin: 0;
    padding: 8px;
    border: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mug-model-option label:hover {
    background-color: rgba(29, 161, 242, 0.05);
}

.mug-thumbnail {
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin: 0 auto 8px;
    transition: all 0.3s ease;
    overflow: hidden;
    text-align: center;
}

.mug-thumbnail img {
    width: 100%;
    height: auto;
    max-height: 80px;
    object-fit: cover;
}

.mug-model-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: #6c757d;
    margin-top: 4px;
    text-align: center;
} 