/* Estilos para Electroral - Hidratación Inteligente */

/* Para el header */
.bg-black-gradient {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2d2d 100%);
}

/* Para el menú móvil */
.bg-black-gradient-mobile {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.mafle-bold {
    font-weight: 700;
}

.mafle-regular {
    font-weight: 400;
}

.mafle-thin {
    font-weight: 100;
}

.hover-grow {
    transition: transform 0.3s, box-shadow 0.3s;
}

.hover-grow:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.hover-bounce:hover {
    animation: bounce 0.5s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-animation {
    animation: slideIn 1s ease-out;
}

@keyframes slideIn {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.carousel-container {
    overflow: hidden;
    white-space: nowrap;
}

.carousel-track {
    display: inline-block;
    animation: scroll 20s linear infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.electroral-gradient {
    background: linear-gradient(135deg, #d92413 0%, #eb5910 50%, #c40a4b 100%);
}

.advance-gradient {
    background: linear-gradient(135deg, #d92413 0%, #fd796b 100%);
}

.plus-gradient {
    background: linear-gradient(135deg, #aa0202 0%, #d9f416 100%);
}

.uva-gradient {
    background: linear-gradient(135deg, #f692f4 0%, #c063fd 50%, #a800a8 100%);
}

.mandarina-gradient {
    background: linear-gradient(135deg, #fec107 0%, #ff6d3d 50%, #ef4900 100%);
}

.coco-gradient {
    background: linear-gradient(135deg, #f7d8b2 0%, #c9a879 50%, #d39142 100%);
}

.cereza-gradient {
    background: linear-gradient(135deg, #ffcdde 0%, #fa7c94 50%, #e92940 100%);
}

.property-gradient {
    background: linear-gradient(135deg, #0077f6 0%, #00e7fe 50%, #00fd7c 100%);
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0px);
    }
}

.pulse-glow {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 5px rgba(217, 36, 19, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(217, 36, 19, 0.8);
    }
    100% {
        box-shadow: 0 0 5px rgba(217, 36, 19, 0.5);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.fade-in {
    animation: fadeIn 1.2s ease-out;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

/* Nuevas animaciones añadidas */
.hover-shake:hover {
    animation: shake 0.5s;
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.hover-pulse:hover {
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.hover-glow:hover {
    box-shadow: 0 0 15px rgba(0, 119, 246, 0.6);
    transition: box-shadow 0.3s;
}

.tooltip {
    position: relative;
    cursor: pointer;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 100;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

.tooltip-top::after {
    bottom: 100%;
    top: auto;
}

.tooltip-bottom::after {
    top: 100%;
    bottom: auto;
}

/* Carrito flotante */
.floating-cart {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    transition: transform 0.3s;
}

.floating-cart:hover {
    transform: translateY(-50%) scale(1.1);
}

.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #d92413;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    animation: pulse 2s infinite;
}

/* Efectos de texto */
.text-glow:hover {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    transition: text-shadow 0.3s;
}

/* Animación de entrada para secciones */
.section-enter {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s, transform 0.6s;
}

.section-enter.active {
    opacity: 1;
    transform: translateY(0);
}

/* Estilos para el formulario */
.form-input {
    transition: all 0.3s;
    border: 2px solid #e5e7eb;
}

.form-input:focus {
    border-color: #d92413;
    box-shadow: 0 0 0 3px rgba(217, 36, 19, 0.1);
    transform: scale(1.02);
}

.form-input:hover {
    border-color: #cbd5e0;
}

.checkbox-container {
    transition: all 0.3s;
}

.checkbox-container:hover {
    transform: scale(1.02);
}

.submit-btn {
    transition: all 0.3s;
    background: linear-gradient(135deg, #d92413 0%, #eb5910 100%);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217, 36, 19, 0.3);
}

/* Botón Participa y Gana */
.participa-btn {
    background: linear-gradient(135deg, #d92413 0%, #eb5910 100%);
    transition: all 0.3s;
}

.participa-btn:hover {
    background: linear-gradient(135deg, #c41f10 0%, #d94e0e 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 36, 19, 0.4);
}

/* Animación para el menú móvil del componente */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slideInRight {
    animation: slideInRight 0.3s ease-out;
}

/* Transición para el header al hacer scroll */
header {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Estilos para enlaces activos */
.nav-link.active,
.mobile-nav-link.active {
    color: #d92413 !important;
    font-weight: bold !important;
}

/* Efecto hover mejorado para enlaces del header */
.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #d92413;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Estilos para el carrito móvil */
#mobile-cart {
    cursor: pointer;
    transition: transform 0.2s ease;
}

#mobile-cart:hover {
    transform: scale(1.1);
}

/* Ajuste de padding para el contenido cuando el header está fijo */
body {
    padding-top: 64px; /* Ajusta según la altura de tu header */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 56px; /* Menor en móvil si el header es más pequeño */
    }
    
    #mobile-menu {
        max-height: calc(100vh - 56px);
        overflow-y: auto;
    }
}

/* Clase para cuando el header está oculto (scroll down) */
.header-hidden {
    transform: translateY(-100%) !important;
}

/* Clase para cuando el header es visible (scroll up) */
.header-visible {
    transform: translateY(0) !important;
}

/* Estilos para el formulario */
.form-input {
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
}

.form-input:focus {
    border-color: #d92413;
    box-shadow: 0 0 0 3px rgba(217, 36, 19, 0.1);
    outline: none;
}

.checkbox-container {
    background-color: #f9fafb;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.submit-btn {
    background: linear-gradient(45deg, #d92413, #ff6b35);
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(217, 36, 19, 0.3);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::after:not(:disabled) {
    left: 100%;
}

.carousel-container {
    overflow: hidden;
    position: relative;
    width: 100%;
}
.carousel-track {
    display: flex;
    animation: scroll 20s linear infinite;
    width: max-content;
}
.carousel-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 200px; /* Ajusta este valor según el tamaño de tus logos */
    padding: 0 1rem;
}
.carousel-logo img {
    max-height: 90px;
    width: auto;
    object-fit: contain;
}
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}
/* Pausa la animación al pasar el ratón */
.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

/* Modal de éxito/error */
.modal-backdrop {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.custom-tooltip {
    position: fixed;
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    z-index: 10000;
    pointer-events: none;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
}

.field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Montserrat', sans-serif;
}

.error-border {
    border-color: #dc2626 !important;
    border-width: 2px !important;
}

.submit-btn {
    background: linear-gradient(45deg, #d92413, #ff6b35) !important;
    transition: all 0.3s ease !important;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 10px 25px rgba(217, 36, 19, 0.3) !important;
}

.submit-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}