/* Estilos personalizados para CargadoresSolares.com */

/* Animaciones personalizadas */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Efectos hover mejorados */
.product-card {
    transition: all 0.3s ease;
}

.product-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);
}

/* Gradiente personalizado para hero */
.hero-gradient {
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

/* Estilo para badges de descuento */
.discount-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ef4444, #dc2626);
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Estilos para filtros */
.filter-active {
    background-color: #10b981 !important;
    color: white !important;
    border-color: #10b981 !important;
}

/* Efectos de loading */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Estilos para tablas comparativas */
.comparison-table {
    overflow-x: auto;
}

.comparison-table table {
    min-width: 100%;
}

.comparison-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: #374151;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}

.comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.comparison-table tr:hover {
    background-color: #f9fafb;
}

/* Estilos para estrellas de rating */
.star-rating {
    display: inline-flex;
    align-items: center;
}

.star-rating .star {
    color: #fbbf24;
    margin-right: 2px;
}

.star-rating .star.empty {
    color: #d1d5db;
}

/* Estilos para tooltips */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 120px;
    background-color: #374151;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -60px;
    opacity: 0;
    transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* Estilos responsivos mejorados */
@media (max-width: 768px) {
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
}

/* Estilos para formularios */
.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

/* Efectos de botones mejorados */
.btn-primary {
    background: linear-gradient(45deg, #10b981, #059669);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #059669, #047857);
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(16, 185, 129, 0.3);
}

.btn-secondary {
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* Estilos para navegación sticky */
.nav-sticky {
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

/* Estilos para modo oscuro (opcional) */
@media (prefers-color-scheme: dark) {
    .dark-mode-toggle {
        display: block;
    }
}

/* Animaciones de entrada para elementos */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para badges de características */
.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    background-color: #ecfdf5;
    color: #065f46;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin: 2px;
}

.feature-badge.waterproof {
    background-color: #dbeafe;
    color: #1e40af;
}

.feature-badge.fast-charge {
    background-color: #fef3c7;
    color: #92400e;
}

.feature-badge.portable {
    background-color: #f3e8ff;
    color: #6b21a8;
}

/* Estilos para alertas y notificaciones */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    border-left: 4px solid;
}

.alert-success {
    background-color: #ecfdf5;
    border-color: #10b981;
    color: #065f46;
}

.alert-warning {
    background-color: #fffbeb;
    border-color: #f59e0b;
    color: #92400e;
}

.alert-info {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1e40af;
}

/* Estilos para el buscador */
.search-container {
    position: relative;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    z-index: 50;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f9fafb;
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Estilos para FAQ accordion */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}

.faq-question {
    padding: 20px 0;
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #10b981;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding-left: 20px;
}

.faq-answer.active {
    max-height: 200px;
    padding-bottom: 20px;
}

/* Mejoras de accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus states mejorados */
.focus-visible:focus {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Estilos para breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    padding: 16px 0;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #10b981;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #d1d5db;
} 